Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3248327pxb; Mon, 1 Mar 2021 05:34:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJy7IbpeH2AbiXgGbs8zZVTfP+FMJYwmC0SHn5p5b6an67ru7rVeO7VG94oFhJOppe4PDOAA X-Received: by 2002:a17:906:3496:: with SMTP id g22mr15212637ejb.143.1614605679668; Mon, 01 Mar 2021 05:34:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614605679; cv=none; d=google.com; s=arc-20160816; b=bbEPC8vNcefsprMXM7HONOxxnn9w7R7uSoP79XADsL6ifC+cVv9y7sgcdu9piTc5b1 KbdjmnvTbLvdURtZA5kk2HkRXU4SBJDvK1xW0JgkCO5iYDiarL60t58fsk1QwxSQB5du lUSDqlld27sfF6wgzhVE19Fc1nCuI9PXu2s1uy7Wrnokn+B4WqtvHdCn2NAWCKJxwAsc pHwQP4P0xuFUSfFNjsI8SzgcXIlevaLcYrOsndKBSt9Gjbltri5t0BSspC8wtcWf/MO8 BR/6MzbWG1OqrBQeU9SNyzHXmlTHbsL4mW9kKtng6OK41ku/Ya7Av60LN1yHhHbMJtL5 ckfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version; bh=wqxUviNOjv3VW+O7zg7cZ+VQgU0MvrMZaw6+8b96bMw=; b=qqvO/xV+otYHJ0jI6/KoUqd73ngFuKZ8TZWG3U6Ccku4Lj06/qI5FQBE7yX3sXO/Pa bd1FHuAuTCfYqrKTK+r//dTe8yq61KhAZxv+ThHEkGlz++IB2Ah3h8Suq43uN/Nmiyor qg6INvYBAhUH6IY9CjHdzmQLwna1KU+WioPI5yVKy+rUSzPo9Wv/Bf7kQKObmHupJDFA VieyHdMPeResgmH+VYZgVomb7XdOudCq/TTuwX43+CogKkbtbW5eLCeoZuwfxZfoDi3Z SN71vUtrYg2FMtxh7fCO+FS5S79Ho1XYYFT/ticU7zrckc9Fr8jxG4kXPr269atyaW9Y 5ziA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 s12si11062894edd.70.2021.03.01.05.34.17; Mon, 01 Mar 2021 05:34:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S235762AbhCANcl (ORCPT + 99 others); Mon, 1 Mar 2021 08:32:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:36486 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235730AbhCANcR (ORCPT ); Mon, 1 Mar 2021 08:32:17 -0500 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CF77864D9F; Mon, 1 Mar 2021 13:31:36 +0000 (UTC) Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1lGie6-00GPaX-Od; Mon, 01 Mar 2021 13:31:34 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 01 Mar 2021 13:31:34 +0000 From: Marc Zyngier To: Frank Wunderlich Cc: Lorenzo Pieralisi , Bjorn Helgaas , Thierry Reding , Thomas Gleixner , Rob Herring , Will Deacon , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Thierry Reding , Jonathan Hunter , Ryder Lee , Marek Vasut , Yoshihiro Shimoda , Michal Simek , Paul Walmsley , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-hyperv@vger.kernel.org, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-renesas-soc@vger.kernel.org Subject: Re: Aw: Re: [PATCH 09/13] PCI: mediatek: Advertise lack of MSI handling In-Reply-To: References: <20210225151023.3642391-1-maz@kernel.org> <20210225151023.3642391-10-maz@kernel.org> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <5afd1d656299d87c43bdf31b8ced2d5f@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: frank-w@public-files.de, lorenzo.pieralisi@arm.com, bhelgaas@google.com, treding@nvidia.com, tglx@linutronix.de, robh@kernel.org, will@kernel.org, kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, thierry.reding@gmail.com, jonathanh@nvidia.com, ryder.lee@mediatek.com, marek.vasut+renesas@gmail.com, yoshihiro.shimoda.uh@renesas.com, michal.simek@xilinx.com, paul.walmsley@sifive.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-hyperv@vger.kernel.org, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-renesas-soc@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Frank, >> > i guess it's a bug in ath10k driver or my r64 board (it is a v1.1 >> > which has missing capacitors on tx lines). >> >> No, this definitely looks like a bug in the MTK PCIe driver, >> where the mutex is either not properly initialised, corrupted, >> or the wrong pointer is passed. > > but why does it happen only with the ath10k-card and not the mt7612 in > same slot? Does mt7612 use MSI? What we have here is a bogus mutex in the MTK PCIe driver, and the only way not to get there would be to avoid using MSIs. > >> This r64 machine is supposed to have working MSIs, right? > > imho mt7622 have working MSI > >> Do you get the same issue without this series? > > tested 5.11.0 [1] without this series (but with your/thomas' patch > from discussion about my old patch) and got same trace. so this series > does not break anything here. Can you retest without any additional patch on top of 5.11? These two patches only affect platforms that do *not* have MSIs at all. > >> > Tried with an mt7612e, this seems to work without any errors. >> > >> > so for mt7622/mt7623 >> > >> > Tested-by: Frank Wunderlich >> >> We definitely need to understand the above. > > there is a hardware-bug which may cause this...afair i saw this with > the card in r64 with earlier Kernel-versions where other cards work > (like the mt7612e). I don't think a HW bug affecting PCI would cause what we are seeing here, unless it results in memory corruption. Thanks, M. -- Jazz is not dead. It just smells funny...