Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp811137pxv; Fri, 9 Jul 2021 09:32:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTjLv/lj8op9kK66FXUCFWsZPIkuMpk9pTQqAc/+jS7F/SbxS1WUcrHPO7oc7kvr5ub7/B X-Received: by 2002:a92:b003:: with SMTP id x3mr27473927ilh.93.1625848334581; Fri, 09 Jul 2021 09:32:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625848334; cv=none; d=google.com; s=arc-20160816; b=FLnXTYZ+OfFcqvOjdIgxOPoZlQzf8Z5bWdhLNj70ByujRn1Is323vfiJ+KM0RQOtV6 DSUqMg1aApvaLQRV/+HKqW2wS+tjBucvFK0tzxk4UerY/cr8adv5VpV5RjN4802T8sUk JMMJPTIut8E+AVmf99EenOYaJiNpOTq0UdkZR8/Q9HqEMBDePle8/lMx2LRXDGlPhkbZ 5ey0iocyzatWl8hWcvZxxZdGB/L8ZKpg4uYlJG6UTE+ClBjKzV6ykY6g6NT6VpTu5wKl fIPhJIgimt1n8yI1y0LgxhibQ/qkW3MaAo44kfYwSUVizr3+bS+xdePOCjPE293PFmOF EiJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=f7TBRFmA8JJR0PzukkiBOlpesNReykpKOUqmkVUHGEU=; b=AGwhWIHMML90/DXs40nLcJbtDJZ2Yky4yRd5AP+Av2/zINgDInkOqc9b8AdBlN0jaK nAKMxTIQ3jyzp/W7uyRSndoR69G9zy82Xz5WZ0vw/re9QDMP3CgeZsGzBeauQzqdftUf SSmmenLAFZHmBvC5aI7da5tUcRNYz9qK7TxfDqRmagg5l2uyUJpQdLXrZK4GdnVq9fXH Z3VcfagVak4P7i1T8+w02Xg/bJkm4ivhfJy7RgyYaeRqokR0aq0BwymAzejaG20A7mxp khx3YqUFstYwaC5M9E2lKXI0nMsf9BBJtvVETe+QxTs1vQxEF6BY6ASdI0ctvV4Mg2xa dAmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U1DYYcXC; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k11si7093840jav.18.2021.07.09.09.31.51; Fri, 09 Jul 2021 09:32:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U1DYYcXC; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229552AbhGIQe3 (ORCPT + 99 others); Fri, 9 Jul 2021 12:34:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:58588 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbhGIQe2 (ORCPT ); Fri, 9 Jul 2021 12:34:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C98CC6139A; Fri, 9 Jul 2021 16:31:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625848305; bh=PEw0NEaUyBjfW7GXEDHxHYCvnLY7I1NpyX1B2xWF90M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=U1DYYcXCOFbm42pmjM3ROP8WlTfqPN3f97C/qSoFOlKAw3b4Od2DOzJrYlg4c/U9t d41LE5LBhjbAfxKyTh00SH5Hzm6Sf7XDDsNsL6Zq4O/1QITASB/KGLChrwJeO4itfY uex6w1Tb0n/wG7/X9oLNI7LjCLZSmmvb7MJ9uIkDsMntmcXrXBmPMxqVBr8qx89wEy Nmrvlhu1EuOTILdddo8eWVqaYdp5PWiWZIfPYr0WLiiVh9KEusHyWL7QdM7GOY8yUg KM+4+ihGaoKJfKAweCKJwuV/Bl8bMsRXnzw/OS5j5C3oV44WNFi1zQvkJI5KgXpTIp 3dwLaHqUz0F1g== Received: by pali.im (Postfix) id 3CF6F77D; Fri, 9 Jul 2021 18:31:42 +0200 (CEST) Date: Fri, 9 Jul 2021 18:31:42 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Andy Shevchenko Cc: Jonas =?utf-8?Q?Dre=C3=9Fler?= , Amitkumar Karwar , Ganapathi Bhat , Xinming Hu , Kalle Valo , "David S. Miller" , Jakub Kicinski , Tsuchiya Yuto , "open list:TI WILINK WIRELES..." , netdev , Linux Kernel Mailing List , linux-pci , Maximilian Luz , Andy Shevchenko , Bjorn Helgaas Subject: Re: [PATCH v2 2/2] mwifiex: pcie: add reset_d3cold quirk for Surface gen4+ devices Message-ID: <20210709163142.e3jilbxjjlpzs7qf@pali> References: <20210709145831.6123-1-verdre@v0yd.nl> <20210709145831.6123-3-verdre@v0yd.nl> <20210709151800.7b2qqezlcicbgrqn@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Friday 09 July 2021 19:01:44 Andy Shevchenko wrote: > On Fri, Jul 9, 2021 at 6:18 PM Pali Rohár wrote: > > On Friday 09 July 2021 16:58:31 Jonas Dreßler wrote: > > > > Hello! Now I'm thinking loudly about this patch. Why this kind of reset > > is needed only for Surface devices? AFAIK these 88W8897 chips are same > > in all cards. Chip itself implements PCIe interface (and also SDIO) so > > for me looks very strange if this 88W8897 PCIe device needs DMI specific > > quirks. I cannot believe that Microsoft got some special version of > > these chips from Marvell which are different than version uses on cards > > in mPCIe form factor. > > > > And now when I'm reading comment below about PCIe bridge to which is > > this 88W8897 PCIe chip connected, is not this rather an issue in that > > PCIe bridge (instead of mwifiex/88W8897) or in ACPI firmware which > > controls this bridge? > > > > Or are having other people same issues on mPCIe form factor wifi cards > > with 88W8897 chips and then this quirk should not DMI dependent? > > > > Note that I'm seeing issues with reset and other things also on chip > > 88W8997 when is connected to system via SDIO. These chips have both PCIe > > and SDIO buses, it just depends which pins are used. > > I'm replying loudly :-) > > You know that depending on the interface the firmware even for the > same chip may be way different. And if you have had any experience > working in product companies you should know well that bug in product > X is not gonna be fixed if it was not reported, but gets fixed on > product Y due to that. Besides that, how do you know that MS has not > been given the special edition of the FW? Yes! But I know something about these chips/cards (I have also one development kit) and it is quite different. It is possible that Microsoft may have its special version, because I know that e.g. Google got "fixed version" for some 88W8xxx chips (it is/was available on internet). But firmware is loading by mwifiex driver and we (linux-firmware) have just one version of firmware for these cards. These 88W8xxx cards lost state and running firmware after reset/power so after linux is booted, it loads "linux-firmware" version into 88W8897 card and then card not run "possibly MS special edition FW". What can be possible is that we are dealing with ACPI firmware (which is same for both Windows and Linux OS) and then it is related to PCIe bridge where are some PCIe parts implemented... > As icing on the cake, the Marvell has been bought and I believe they > abandoned their products quite a while ago. You may read kernel > bugzilla for the details (last Marvell developer who answered to the > reports seems has no clue about the driver). Marvell 88W[89]xxx wifi cards were sold to NXP together with developers. Old @marvell addresses do not work so it is required to find new @nxp addresses for developers. There are recent firmware upgrades from NXP for linux-firmware, see: https://lore.kernel.org/linux-firmware/DB7PR04MB453855B0D6C41923BCB0922EFC1C9@DB7PR04MB4538.eurprd04.prod.outlook.com/ (just only SDIO firmware for 88W8897, not PCIe) But I know that response from NXP about these cards is slow... And more people are complaining about firmware/driver issues for these cards. > All that said, I believe that we have to follow whatever fixes we > would have and be thankful to contributors and testers. I agree. If this is really fixing these issues and we do not have better fix yet, go ahead with it (if PCIe/WiFi maintainers are fine with it). Once we have better fix, we can replace it. Currently I'm just trying to understand this issue more deeply (e.g. how it can relate with similar issue which I see on SDIO and if I cannot fix also SDIO in better way) but seems that nobody knows more than "this hack/quirk somehow works for PCIe". > For the record, I've been suffering from the Linux driver of this > hardware for a while. And I'm fully in support of any quirks that will > help UX. > > -- > With Best Regards, > Andy Shevchenko