From owner-freebsd-acpi@freebsd.org Sat Jan 30 22:35:47 2016 Return-Path: Delivered-To: freebsd-acpi@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 65FA3A731F9 for ; Sat, 30 Jan 2016 22:35:47 +0000 (UTC) (envelope-from fbsd@opal.com) Received: from outbound3d.ore.mailhop.org (outbound3d.ore.mailhop.org [54.186.57.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2FA3A158D for ; Sat, 30 Jan 2016 22:35:46 +0000 (UTC) (envelope-from fbsd@opal.com) Received: from homobox.opal.com (unknown [71.255.165.9]) by outbound3.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Sat, 30 Jan 2016 22:32:33 +0000 (UTC) Received: from shibato (shibato.opal.com [IPv6:2001:470:8cb8:3:21e:33ff:fe5f:cb65]) (authenticated bits=0) by homobox.opal.com (8.15.2/8.15.2) with ESMTPSA id u0UMYZIf038901 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Sat, 30 Jan 2016 17:34:35 -0500 (EST) (envelope-from fbsd@opal.com) Date: Sat, 30 Jan 2016 17:34:34 -0500 From: "J.R. Oldroyd" To: freebsd-wireless@freebsd.org, freebsd-acpi@freebsd.org Subject: Toshiba L675D wifi rfkill acpi support Message-ID: <20160130173434.58cafbd1@shibato> X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; amd64-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (homobox.opal.com [IPv6:2001:470:8cb8:2::1]); Sat, 30 Jan 2016 17:34:35 -0500 (EST) X-Spam-Status: No, score=-0.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_50, T_RP_MATCHES_RCVD shortcircuit=no autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on homobox.opal.com X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jan 2016 22:35:47 -0000 I have just upgraded the wifi mini-PCIe adapters in some older model Toshiba laptops, specifically L305D and L675D models, to AR9280 adapters. This in order to be able to use the 5 GHz band. On the L305D, everything is working well. But on the L675D, the AR9280 radio remains off. Switching the wifi adapter to an Intel 6200 actually reports: iwn0: radio is disabled by hardware switch They both probe and initialize normally in the dmesg and you can talk to them normally using ifconfig. It is just the radio that remains off. Thing is, the L675D does not have a hardware rfkill switch. It does have Fn+F8, however. I should note that two other wifi adapters, the original RTL8191SE and also an AR9285 do both work fine in the L675D. They do not seem to see a phantom rfkill switch! But, neither of these adapters support the 5 GHz band. Despite the RTL8191SE and AR9285 working, I figured that it would be useful to have Fn+F8 working so that I could check and toggle the radio state of the AT9280. I therefore set about updating acpi_toshiba.c to support the TOS1900 HID [1]. I am still no closer, though. I was not able to enable the hotkey Fn+Fx support, so I've implemented a hw.acpi.toshiba.wireless_wifi sysctl which shows that the wifi is enabled and allows it to be toggled. Testing with one of the working adapters (AR9285) does show the wifi LED going on and off and the interface does pass or not-pass traffic accordingly. But, with the AR9280, the LED and the radio remain steadfastly off. I have studied the acpidump[2] and found that the relevant ACPI method (TOI0==0xFF00 TOI1==0x56) supports four devices: 0x0200 wifi 0x0800 unknown 0x2000 wwan (3G device, according to google) 0xFFFF unknown I have played with all of them, but still cannot get the AR9280 radio or the wifi LED on. I have not found any documentation, other than the Linux driver toshiba_acpi.c which provides no further help. Anyone have any thoughts about what is needed to enable the AR9280 (or Intel 6200) in the Toshiba L675D? Thanks, -jr [1] http://opal.com/jr/toshiba_l675d/acpi_toshiba.c [2] http://opal.com/jr/toshiba_l675d/toshiba_l675d.asl From owner-freebsd-acpi@freebsd.org Sat Jan 30 22:53:10 2016 Return-Path: Delivered-To: freebsd-acpi@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 4FF56A7381E; Sat, 30 Jan 2016 22:53:10 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com [IPv6:2607:f8b0:4001:c05::229]) (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 1F3021E50; Sat, 30 Jan 2016 22:53:10 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-ig0-x229.google.com with SMTP id h5so11347222igh.0; Sat, 30 Jan 2016 14:53:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=KADa4oG+FBzgMTXz/jVzzd2SC0M8Dal4fQ4bqolktms=; b=LqwB3rH8UHTPxjlESlFDsl4hH+e+K1dbhJUOscxmFRzE0CN6CIJf6y84GLn4tgP0HS S+CCfpahBoedAY7dvQwX6zQRr4CuFWww749TBr9yOUvMcd28OO9b3gMBU3j2xjOnuXjh 7uhoKACoGkEU7E7l7/H8t9Hat7E2oR4KujPR3sCaNcjLCVBp5b/6GfsIAAsftjcyp8tF hn2PY+pGUXydUd7pdu784Titd6Zpo66sXwx7VHuLRFGR2PypaOeF9lL3+Y5plQXyl4cb PT6Ex5XMPUZ152qS/WkqZiZdfkMEEDq9+gSezHkHaNg8LeGXx9Zc7gjJiMRPTdXSwwCn qYwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=KADa4oG+FBzgMTXz/jVzzd2SC0M8Dal4fQ4bqolktms=; b=UAu2pHAq4p+UNWKRuY0FrbNVRLb0vXq24lqfRQOjwW4F4/JBUjqDY3dcSdKnRW86nf 6SrZ2yIWRscQ6QyAHoUt3GDcrnyWEksOcwXn9do2HxuobhaNsqSmqtntEPb2jq2M60GT ARZtXqMJrzkWQLoBLnAbF+HVWnBWRTGPoYFNi98QFozD0QXN3MHGX9HGM8Umx8xqugqZ HWKD6lwIO3fjAkDNKNe67aYKftlfMEUEGzhEEvMMQMGHfEaIV5Q8XlFVgZny6hqGaCNp DQqjMKg751hor8YiQouMT4vp+EQqpOH3QxvEpbp0Q5shZDGwhiuQKXp3FHAvzDSGbBU1 rYXA== X-Gm-Message-State: AG10YOTIhxRDE+EICwS8gNm1i2blZsJ5yxq5Em87jIF+rLwx1Q0wsYOHYW44qBKrWpk3DxKHJI8B5ziMIgFj1A== MIME-Version: 1.0 X-Received: by 10.50.115.40 with SMTP id jl8mr2339437igb.22.1454194389585; Sat, 30 Jan 2016 14:53:09 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.36.121.16 with HTTP; Sat, 30 Jan 2016 14:53:09 -0800 (PST) In-Reply-To: <20160130173434.58cafbd1@shibato> References: <20160130173434.58cafbd1@shibato> Date: Sat, 30 Jan 2016 14:53:09 -0800 X-Google-Sender-Auth: SpFXCtvWb3CquczIrEg2M0kMAcA Message-ID: Subject: Re: Toshiba L675D wifi rfkill acpi support From: Adrian Chadd To: "J.R. Oldroyd" Cc: "freebsd-wireless@freebsd.org" , "freebsd-acpi@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jan 2016 22:53:10 -0000 You'll have to figure out what the deal is, or disable it in the driver. The rfkill switch is either hardware or software. Yours is hardware, so I'm guessing it's one of the GPIO lines on the PCIE bus. I don't know how the intel driver figures out which GPIO line is rfkill and pays attention to it; search for that error string in the if_iwn.c driver. Chances are it's reading a register and disabling it in software. -a On 30 January 2016 at 14:34, J.R. Oldroyd wrote: > I have just upgraded the wifi mini-PCIe adapters in some older model > Toshiba laptops, specifically L305D and L675D models, to AR9280 > adapters. This in order to be able to use the 5 GHz band. > > On the L305D, everything is working well. > > But on the L675D, the AR9280 radio remains off. Switching the wifi > adapter to an Intel 6200 actually reports: > iwn0: radio is disabled by hardware switch > They both probe and initialize normally in the dmesg and you can > talk to them normally using ifconfig. It is just the radio that > remains off. > > Thing is, the L675D does not have a hardware rfkill switch. It does > have Fn+F8, however. > > I should note that two other wifi adapters, the original RTL8191SE > and also an AR9285 do both work fine in the L675D. They do not seem > to see a phantom rfkill switch! But, neither of these adapters > support the 5 GHz band. > > Despite the RTL8191SE and AR9285 working, I figured that it would be > useful to have Fn+F8 working so that I could check and toggle the > radio state of the AT9280. I therefore set about updating > acpi_toshiba.c to support the TOS1900 HID [1]. > > I am still no closer, though. I was not able to enable the hotkey > Fn+Fx support, so I've implemented a hw.acpi.toshiba.wireless_wifi > sysctl which shows that the wifi is enabled and allows it to be > toggled. Testing with one of the working adapters (AR9285) does show > the wifi LED going on and off and the interface does pass or not-pass > traffic accordingly. But, with the AR9280, the LED and the radio > remain steadfastly off. > > I have studied the acpidump[2] and found that the relevant ACPI method > (TOI0==0xFF00 TOI1==0x56) supports four devices: > 0x0200 wifi > 0x0800 unknown > 0x2000 wwan (3G device, according to google) > 0xFFFF unknown > > I have played with all of them, but still cannot get the AR9280 radio > or the wifi LED on. > > I have not found any documentation, other than the Linux driver > toshiba_acpi.c which provides no further help. > > Anyone have any thoughts about what is needed to enable the AR9280 (or > Intel 6200) in the Toshiba L675D? > > Thanks, > -jr > > [1] http://opal.com/jr/toshiba_l675d/acpi_toshiba.c > [2] http://opal.com/jr/toshiba_l675d/toshiba_l675d.asl > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org"