Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp435901imm; Thu, 5 Jul 2018 02:59:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcKOczGNi4cgV2rN7/7o1AxCqLoBMls56zJ3BQTpryptL22rn45JgO1JAHwPrZYB9ZF8tEw X-Received: by 2002:a63:9311:: with SMTP id b17-v6mr4959261pge.261.1530784754418; Thu, 05 Jul 2018 02:59:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530784754; cv=none; d=google.com; s=arc-20160816; b=hcvoHVM0cCBSZrnBWoqJaBTuyTEk02kgM8InXK6l3QT3iLKG4vuxuD6ZgyDHg010zd 6hYQaiY9kvzaZEimnkNj1SeoIJ4VZlbUewXlXLvYfZ5Wlqlj8nRDriADfdLHFZr9Hy0C wjutFrFALaxTngw3n+SohgHzzug+Sk1AkAOQf1JrOzzjfQU38OXAsGPf0B1bwzagbmDE Pbjhs/DAf7bYrx7WCdasaXiQcqnyjFiI3EkPae+IIpAzFJOXn9RkC3KpFoL1W+llSuOi /3Hhbxt3In7a1Oanhp8arddHbE84qlBBDLB3eZu2adDPMsRFOofum1rygPHU4M0kzRmD RRfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=SK3GNceKbuCLpLCvIxGOF8u8siznIciBHVldSWBrRN8=; b=hcOItTDps/3hGdSHPTWh27zgsarl3+bT71+SFyZrWHQ2lVh1SmlBnZkDg/hErwiq2m u5A17rFvyt+4/+65l41eMEdLFk99eZZ5qo2BqV+XdKBODinGhECc2CYqCqluozHC4TVe TbnYsl0oCaBjtWFClsc/qDAwf36Gtb+cVeHejYN4o1WqPlGItiLwjMugOksi/55cMVl9 o5Kwvd6J6Y6bxjREU4bHpxoVAUsz2Dz8d/PAEeZ0CrWZTePICwKnKo2QCfh4aJcdskW/ ax+OR6rdVxD3rhY04wzgzLbMxQjXitO3AQiv8iLhbByg6DH+cw0Svo4sxGD3Z7S/rBHA S7cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b="cuv/vYhl"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o126-v6si5623823pfo.72.2018.07.05.02.59.00; Thu, 05 Jul 2018 02:59:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b="cuv/vYhl"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753401AbeGEJ5i (ORCPT + 99 others); Thu, 5 Jul 2018 05:57:38 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:39754 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753259AbeGEJ5g (ORCPT ); Thu, 5 Jul 2018 05:57:36 -0400 Received: by mail-it0-f65.google.com with SMTP id p185-v6so11510267itp.4 for ; Thu, 05 Jul 2018 02:57:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=SK3GNceKbuCLpLCvIxGOF8u8siznIciBHVldSWBrRN8=; b=cuv/vYhljzXWmQ7NNI/11QHCpZ9yK9VEhkVvcWcw7rfoAhW0wRpX9AFEooDVwBf3BC yZhl0B9W2EzGJ9VemuZQpwHmGefgw9JDdyuzk2IQ3OcEFzbgWmnJ9TSUTysZAQ/4geRL N0kCQrTMSQnux7xjDeTaNCmz/aKtgdJJXelpJcSb5X9N5gr6ONUoBY2SaM7KNBIlUHpu CW0OGXkoDMZggReCnjOMff5etchf/B3qohS63m+0pv1QoxHfgr+UFA7+GDotG/VOra8E 7Gk/I+8wmuTKBETUvzibcTBigmSfgKD+5HrlPm7FCLIYqYAArhRYD197NZN7Be51DWF3 o71w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=SK3GNceKbuCLpLCvIxGOF8u8siznIciBHVldSWBrRN8=; b=j2IkHQo5fvARWKpF5V3UXhgIm0sLa/iSXvyb2mr5UWzBpMYOvE/C2sSB3kBhCrRqjO jmbTSjrqu7v/EIzX8JlALVouDMfqD0w04ymDLUk1o8UPG8A+x2CFMwjO2m0+VzKeYi75 azfDw2LNQ6frNIcaVDHlhvedbmzniE9dT/QYCj7g8oD3y95+02wEtQ4Rx6SE2giPTvkt p8mK0RloO52F/Aj8KwhCqKDeHxyknNXx6HIgM6cRCbndZNSiWJz+ZxQeYsGN5oybXRlt G/IFHwkKfnaXxx3msbugTdzKZovnxhd+JgcOKNMI8mD4od8tOix2JZx98jX+O3qQiCIc mhVA== X-Gm-Message-State: APt69E34Bc4p3jGa/grfFwdi2PVMTRZcrXjuYjO6FNrky8NWBH2b54oE RpsrYva5oFw+Zgoc/BlWKMJ6BBRdFbgQx3kt6ZBQaw== X-Received: by 2002:a24:95c6:: with SMTP id m189-v6mr4048839itd.87.1530784655262; Thu, 05 Jul 2018 02:57:35 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:7391:0:0:0:0:0 with HTTP; Thu, 5 Jul 2018 02:57:34 -0700 (PDT) In-Reply-To: <20180705093230.byqbk6f5ornezmka@mwanda> References: <20180704140933.3dk2ylbntltz6jqd@mwanda> <7e95bd6a-97bc-b030-26ce-83da66e5f279@lwfinger.net> <1530776154.4156.12.camel@realtek.com> <20180705093230.byqbk6f5ornezmka@mwanda> From: Jian-Hong Pan Date: Thu, 5 Jul 2018 17:57:34 +0800 Message-ID: Subject: Re: [BUG] staging: r8822be: RTL8822be can't find any wireless AP To: Dan Carpenter Cc: Pkshih , "devel@driverdev.osuosl.org" , Tony Chuang , "arnd@arndb.de" , Steven Ting , "linux-wireless@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Birming Chiu , "drake@endlessm.com" , "sgruszka@redhat.com" , "kvalo@codeaurora.org" , "gregkh@linuxfoundation.org" , "frank@generalsoftwareinc.com" , "colin.king@canonical.com" , "linux@endlessm.com" , "Larry.Finger@lwfinger.net" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-07-05 17:32 GMT+08:00 Dan Carpenter : > On Thu, Jul 05, 2018 at 05:26:28PM +0800, Jian-Hong Pan wrote: >> 2018-07-05 15:36 GMT+08:00 Pkshih : >> > On Wed, 2018-07-04 at 10:33 -0500, Daniel Drake wrote: >> >> On Wed, Jul 4, 2018 at 10:13 AM, Larry Finger wrote: >> >> > We will have to agree to disagree. >> >> > >> >> > I have no idea what the vendors are doing that cause some motherboards to >> >> > need a different aspm value. What I do know is that we have had to live with >> >> > the idiocy of some vendors saving a few pennies by only including a single >> >> > antenna, rather than two, and then making a problem by miscoding the EFUSE >> >> > bit that indicates which connector is actually in use. As we have no means >> >> > that I know about to detect which boxes have the problem, a module parameter >> >> > was created, just as in this case. >> >> > >> >> > I agree that drivers should work "out of the box", but finite resources and >> >> > lack of vendor cooperation make this a goal that may not be attainable. >> >> >> >> As you touched on, the ideal situation is that Realtek solve the >> >> issue. Ping-Ke Shih is on CC and I am adding a few more contacts from >> >> the commit log. The context is that the r8822 driver fails on several >> >> platforms unless setting aspm=0 (the default is 1). >> > >> > It's hard to have all laptop or motherboards and all rtl8822be modules in my side, >> > so what I can do is to analyze the issue when user encountered. >> > >> >> >> >> https://gist.github.com/dsd/20c05f0c6d66ee2ef9bfbb17f93f18ba >> >> https://bugzilla.kernel.org/show_bug.cgi?id=199651 >> >> >> >> >> >> If we don't get a timely fix from Realtek though, I think there is a >> >> key difference between the antenna selection headache and this one. In >> >> the antenna case, there isn't a good value that you can set that will >> >> work on all systems. If you change the default behaviour you will >> >> solve the issue for some users while simultanously introducing the >> >> problem on other systems that were previously fine. >> >> >> >> However in this case, it's highly likely that setting aspm=0 (off) by >> >> default would work for everyone. It has the disadvantage of using a >> >> bit more power, but especially with the indications that this issue >> >> affects a significant number of systems, I think that having the >> >> driver working out of the box everywhere is more important. The module >> >> parameter can be left in place so that unaffected users that want to >> >> save power can set aspm=1. >> >> >> > >> > I think this issue may be due to L1 latency, so below patch would be >> > helpful but not sure because I don't have the same laptop. >> > Is there anyone can help to test? >> >> I do not know why I cannot apply this patch directly. So, I apply >> each line manually. >> >> However, here is a good news. I tested this fix, and it works >> correctly on ASUS X530UN. System can scan and get the access points >> list. Finally, it also connects to the access point. >> Maybe, you can have a formal patch for this. >> > > That's good news. What does the "dmesg | grep r8822be" say now? dev@endless:~/linux-eos$ dmesg | grep r8822be [ 8.538404] r8822be: module is from the staging directory, the quality is unknown, you have been warned. [ 8.541706] r8822be 0000:02:00.0: enabling device (0000 -> 0003) [ 8.571568] r8822be: Using firmware rtlwifi/rtl8822befw.bin [ 8.572370] r8822be: rtlwifi: wireless switch is on [ 8.573338] r8822be 0000:02:00.0 wlp2s0: renamed from wlan0 [ 11.346560] Modules linked in: nouveau(+) snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel mxm_wmi snd_hda_codec r8822be(C) x86_pkg_temp_thermal snd_hwdep snd_hda_core efivarfs i915 The warning message comes from nouveau. That is no matter. Here is the full dmesg https://gist.github.com/starnight/29b1ead5659868fcfb7f172e51a96535#file-gistfile1-txt Regards, Jian-Hong Pan