From owner-freebsd-wireless@freebsd.org Mon Jun 20 10:02:28 2016 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C6EEEA79DE6 for ; Mon, 20 Jun 2016 10:02:28 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com [IPv6:2a00:1450:400c:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 531662A31 for ; Mon, 20 Jun 2016 10:02:28 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: by mail-wm0-x22c.google.com with SMTP id v199so62125976wmv.0 for ; Mon, 20 Jun 2016 03:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lwxc9nDWfIUFVxpwthj56ZlmlQSfNRKApBKa6g+HSQM=; b=cb09vr64zUewaWQLX3WZi29mgrQ+dRFRAAxkA81Ri8NbYU23klHEG1Pk2Abg+vP4XN M8Je6iHTHhrlZJbp5OJjQZ9hLAXMKBYLt4KBCNbKR6bF33CeNwqsNzLW/9q+4mqx5rN0 LJQyKE3x7yxiw25c5KFG/9n3dNdogozMe9rJYlnsNhJLguX0Mt3IJycRkq+ayNQ0WfC4 9pdvB7dCKhmCBMHYFWsTzaS8xeXZC6wnSXtEx4dn2gNUnSJUhc+HiIiy/oyZv+KER6L0 fuelc7lF9KPffLzay65a8rOpLWXxSPCWu2h470WIw8MdpEHdOjL2yVtrqy3Z0A/oQNX7 mLJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=lwxc9nDWfIUFVxpwthj56ZlmlQSfNRKApBKa6g+HSQM=; b=CRxoxej57LmR4z0IRe+dOlQXBcCLy/auOjfwunVNPvAHvWBalqGvvrP6LSOezkjz9v DDnhHa1N0k+Q2gxBZHriBeof0rdpaB4mTnsadyaBrGUxwyTzl69agw6bwXG+e/WdHbPF HLSciZ/GjFUoLztQwfCg1z93vwyRrXv4eBZFcrsS0LPZh1bi4PArRoNK55xYM3p2PsUj +YNAF1B2xDRm+jJv/SkPAR2CerimTK/GhD3IRpCRnCXVJKDLaMn1zeZkHW+u4yUgwM4G kDqJTfpL18GbY6LIIh3dCbs1BUOwbNVo+8JjiAYFWxMC3BcTBIeJKXJ8B5bVSWzsFEvW Nlkg== X-Gm-Message-State: ALyK8tIaMoZp+nqJyLkOrn7PpOa3vV0NUCjFYCKCVb7SWforfAEDDMk7ebr3MlnHf4lQhKPmpsvnyLMj1xrNgQ== X-Received: by 10.194.79.198 with SMTP id l6mr13474049wjx.27.1466416946861; Mon, 20 Jun 2016 03:02:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.116.193 with HTTP; Mon, 20 Jun 2016 03:02:26 -0700 (PDT) In-Reply-To: <20160619172035.020eacde012a13c0c5f9b90d@bidouilliste.com> References: <20160619172035.020eacde012a13c0c5f9b90d@bidouilliste.com> From: Ben Woods Date: Mon, 20 Jun 2016 12:02:26 +0200 Message-ID: Subject: Re: [CFT] iwm driver synced with DragonflyBSD To: Emmanuel Vadot Cc: "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2016 10:02:28 -0000 On 19 June 2016 at 17:20, Emmanuel Vadot wrote: > > Hello all, > > I've sync our driver with the DragonflyBSD one. > I'm currently happilly running it on three on my laptops : > - HP 840 G1 (iwm 7260) > - HP 840 G2 (iwm 7265) > - HP 840 G3 (iwm 8000C) > > Just so you know : > 1) I know nothing about wireless > 2) This was only done in one day > 3) I started the day sober, I finished it drunk > 4) There is still locking problem at fw load and scan (probably > because of 1, 2 and 3) > 5) I do NOT plan to commit this for 11.0 > 6) I DO plan to commit this for 12 once code freeze is finished (and > when the last problems would be corrected) > 7) I will eventually commit this for 11.1 > > I you want to test it (especially if you have the 3160 serie) all the > code is in my github branch : https://github.com/evadot/freebsd/tree/iwm > Just recompile the modules from sys/modules/{iwm,iwmfw}. > You need the last firmware (version 16.XXX) for the driver to work. > > The main news is that the serie 8000 is supported (found in skylake > laptop) and that the led works (not on the 8000 serie thought). > > Knowing nothing about wireless I do not plan to maintain this driver > but I'll try keep it synced with DragonflyBSD/OpenBSD (so yeah I think > that this is maintening ...) > > Please let me know (here would be better) if you have any problem (or > not) with this update. > > Cheers, > > -- > Emmanuel Vadot > Hi Emmanuel, Thank you for your work on this. I have just tried building and installing this on FreeBSD 11-current r302020, and unfortunately it failed. To be clear, I took the following steps to perform my testing: - git clone -b iwm --single-branch https://github.com/evadot/freebsd.git - cd freebsd/sys/modules/iwm - make - sudo cp if_iwm.ko /boot/kernel/ - cd ../iwmfw - make - find . -name "*.ko*" -exec sudo cp {} /boot/kernel/ \; - reboot Upon reboot I got a kernel panic after it loaded the module. I took photos of my screen at the debug console, which you can find at the link below. If there is a way to get a better output for debugging, please let me know. http://imgur.com/a/TJ7i5 I am not sure what you meant when you said I need the latest firmware (16.XXX) for the driver to work. Regards, Ben