Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10358627imu; Wed, 5 Dec 2018 22:47:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/U2KDu418peEg7n+9EcUuTP8O3piTk7DB2YecR4PV7sqi6oMlGgk5rnNF1OYnlu9dJ8u0kp X-Received: by 2002:a63:e711:: with SMTP id b17mr22416598pgi.363.1544078866815; Wed, 05 Dec 2018 22:47:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544078866; cv=none; d=google.com; s=arc-20160816; b=09EwLEfuaR8rgbTcEqe0SYhDcUaRdjARBm3LxPQ6BC6eqOuXMUQHtNRycPbV8wqfFj QnxhRX8paWEchAcZs8YCSWM6fjMUTnrNhF2/yU1yoE4rfT7u9E57wmEJIllTnfs7mKxL KwJpOO5tiGcxgxHHUuyusg+6VoTYWRZFtZQwUDR2qj3iVjyFaMDqOuSggz/oo6tDO3p/ zTaY6h3mhtkTodhNmLRdUMmYBaDWcF419EdBNTDF/sdUq363+oCNUgVxgjhIWZJuG3fg b/qirMIHd1itYe/wn/i1RIJR/N8QYr3XOqvsx51coO+gA2qn0VSDX/3MtT/Z1yQnfSyO zvUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=surmcTTiWUw0Psorj7bLn/U7V+crai7ZNv84l/jkEjY=; b=cH/pr/7wRoKLbyqiredvrUZLDL85tXwHzBADhbWM/bvLFRu/iZJmBMuKP2cRUXtFTk uk9rgFOKUp2hcaEor+xdE5kjDibuGvcwbf8F2R1+fcqJHSgfd169H9BpnepBRlHlPZhr t0PNWBz/hSafStzvMlhGcCb4tZUFao+ouEc204rf3vCQqMNRMsQZnf4Az+ryo6atSf81 5/FRsHzEztbOO8wjcK/5kHM9UcdPRrKpM/rdcPvGrqsQ65V/s8JYxsK+ZyWhHzruDNUv gTaNDaE6HIyRmRTtuJg8UKOjVA12fp4d/9cMBJwcO8K9LkCUdIL4OdosV7GNdPrdGeqI ggfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OJLScHgL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p127si22475974pfp.119.2018.12.05.22.47.31; Wed, 05 Dec 2018 22:47:46 -0800 (PST) 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=@kernel.org header.s=default header.b=OJLScHgL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729116AbeLFGpP (ORCPT + 99 others); Thu, 6 Dec 2018 01:45:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:57192 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728294AbeLFGpP (ORCPT ); Thu, 6 Dec 2018 01:45:15 -0500 Received: from localhost (unknown [77.138.135.184]) (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 3EB3220989; Thu, 6 Dec 2018 06:45:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544078714; bh=g6Czx7nLEy93+bDguAtYiatB9x3PPOqHGI/j5b57/Ak=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OJLScHgLgDQ1JZdxw2PmXeliVG9qLciE4iGyalPGKT+MNhI93eh5pXXbcuP2axMx2 ccmKIP3uIzsXH0/L7Q5FdKTNj8uMco4eTGSAqj5/S+b7z7HeKBOTvLQae1yJ13vM4w Jv1XIReSKLcBBTG4dxsiL7CsUOxuhY/+G4wjWdyw= Date: Thu, 6 Dec 2018 08:45:09 +0200 From: Leon Romanovsky To: David Gibson Cc: davem@davemloft.net, saeedm@mellanox.com, ogerlitz@mellanox.com, tariqt@mellanox.com, bhelgaas@google.com, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, netdev@vger.kernel.org, alex.williamson@redhat.com, linux-pci@vger.kernel.org, linux-rdma@vger.kernel.org, sbest@redhat.com, paulus@samba.org, benh@kernel.crashing.org Subject: Re: [PATCH] PCI: Add no-D3 quirk for Mellanox ConnectX-[45] Message-ID: <20181206064509.GM15544@mtr-leonro.mtl.com> References: <20181206041951.22413-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Re2uCLPLNzqOLVJA" Content-Disposition: inline In-Reply-To: <20181206041951.22413-1-david@gibson.dropbear.id.au> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Re2uCLPLNzqOLVJA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Dec 06, 2018 at 03:19:51PM +1100, David Gibson wrote: > Mellanox ConnectX-5 IB cards (MT27800) seem to cause a call trace when > unbound from their regular driver and attached to vfio-pci in order to pass > them through to a guest. > > This goes away if the disable_idle_d3 option is used, so it looks like a > problem with the hardware handling D3 state. To fix that more permanently, > use a device quirk to disable D3 state for these devices. > > We do this by renaming the existing quirk_no_ata_d3() more generally and > attaching it to the ConnectX-[45] devices (0x15b3:0x1013). > > Signed-off-by: David Gibson > --- > drivers/pci/quirks.c | 17 +++++++++++------ > 1 file changed, 11 insertions(+), 6 deletions(-) > Hi David, Thank for your patch, I would like to reproduce the calltrace before moving forward, but have trouble to reproduce the original issue. I'm working with vfio-pci and CX-4/5 cards on daily basis, tried manually enter into D3 state now, and it worked for me. Can you please post your full calltrace, and "lspci -s PCI_ID -vv" output? Thanks --Re2uCLPLNzqOLVJA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBAgAGBQJcCMV1AAoJEORje4g2clinjAQP/1QohDmpz3Nx1/0h9KEad/Gv xb/XKSpynLFHroGdEEAHUaDgLOfsp5WoJxVs5sj8/EI7ZB7+jT89DAByeXkFQI5J 8LBm+eEZboNTLa2lOcl5yBSVNWb3POGFmsuTAf2q4F+fijds+lyATk3kKYpDc7wC 4zJ22LiEr4rryTOuxZyFi5YTaNso3WhHs0XB8bAFoJar9ypY+aSPq48C+wU+08da AbD3yThzPT++z61FgK5tmyaG2xN8uZmHzeRpSaX7vEDMgPznJk4qnIaA0FtCnjRu SYOg8XLPksqmrdU/N/vV5FM2uk77s8yoNtOEkdCg19rkG04c2pzqdX/aZtW4epKX h1mKWK2x21U2+l/gd5atRuFuJfP3k7P6LEsfzWprmFsyC6fwrt2H8ojN+10fuEiP 1KURSsGdMYCrKrDklpsAeu5JHRc5UEOKyQsWPQZ+wmZtpI4zJTW9Av9YfYd/RZ6d PefEN2j6gmDpC7ffZqV0oenEuEgGAPGFiBRRTeOqgggfLMT1Rn9FZHX4zAGLZMpR jciOwJNwN9rPTkLyEyCQItjhqQjty3gvDMlYpuMpNsYIXcyl/gkjMWuke4TaHHZP M6g+P6qfUvDEDTlMO+wU6hcKRmqLFr+LsjQhtfHza9j1gGIcYO6FFTvPN0o0tGcq mItAd9DzgosnlmUT2DHQ =Hvye -----END PGP SIGNATURE----- --Re2uCLPLNzqOLVJA--