From owner-freebsd-wireless@freebsd.org Mon Jun 20 11:22:29 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 6BCD9A7B73A for ; Mon, 20 Jun 2016 11:22:29 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D306C1EA8 for ; Mon, 20 Jun 2016 11:22:28 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 3b515e5b; Mon, 20 Jun 2016 13:22:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=cvNCCQyYwTM8iAGruh+70G2xBeg=; b=U79LfCIKJmnXMLlfm4rJU4Oi6jaI 3Dm1wVLb/xvLr0eUWdX0AhjGshkPl51qdy3T7jGPSwRTCuvpacD7euAHRNUK8+NB 0b9Y3N0fBgpIjLWG8zVQ3YDFAVaSxZ7cfRX2BTA2Pd1xiRioCeyF6pSThq/ogc67 +9F26/JIyYQO5pM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=FDdrpRS7z7ZO6t3rj1CADlsn5ntpRpxR+vFXQX8khG6WbBuwEUQUJunT 10TnO+ue2DjMYOjZaI4edijh/QtFYGwd6BGLvPL7A/Sl4LCG0wGBzD+0qFPsdUQg y4v2bmeySqijaM0q6B/oTKE3EtCDcU8BNgnOX/2v5UJ8Hu1LxoA= Received: from atlantis.staff.bocal.org (163.5.251.41 [163.5.251.41]) by mail.blih.net (OpenSMTPD) with ESMTPSA id f6060166 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Mon, 20 Jun 2016 13:22:25 +0200 (CEST) Date: Mon, 20 Jun 2016 13:22:24 +0200 From: Emmanuel Vadot To: Ben Woods Cc: "freebsd-wireless@freebsd.org" Subject: Re: [CFT] iwm driver synced with DragonflyBSD Message-Id: <20160620132224.0d52ff7a9bb9f64bc4a0ffe1@bidouilliste.com> In-Reply-To: References: <20160619172035.020eacde012a13c0c5f9b90d@bidouilliste.com> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.29; amd64-portbld-freebsd10.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 11:22:29 -0000 On Mon, 20 Jun 2016 12:02:26 +0200 Ben Woods wrote: > 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. Hello Ben, > I have just tried building and installing this on FreeBSD 11-current > r302020, and unfortunately it failed. Sorry to hear that, we'll try to find the problem. > 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 That seems right. > 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 It seems that it kernel panic when creating the wlan0 interface. I guess that the modules are loaded by the loader ? (i.e. in /boot/loader.conf) Could you test not loading them by the loader but by manually after login ? kldload iwmXXXXfw.ko && kldload if_iwm Then restart the netif service (or create the wlan0 directly). > I am not sure what you meant when you said I need the latest firmware > (16.XXX) for the driver to work. I wasn't very clear on this, the firmware is in the kernel modules and they have been updated so you won't need to worry about this. > Regards, > Ben -- Emmanuel Vadot