Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932245AbdC1USb (ORCPT ); Tue, 28 Mar 2017 16:18:31 -0400 Received: from mail-bn3nam01on0084.outbound.protection.outlook.com ([104.47.33.84]:49440 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752358AbdC1US3 (ORCPT ); Tue, 28 Mar 2017 16:18:29 -0400 From: "Deucher, Alexander" To: "'Joerg Roedel'" , Bjorn Helgaas CC: "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Joerg Roedel , Daniel Drake , "Nath, Arindam" Subject: RE: [PATCH] PCI: Blacklist AMD Stoney GPU devices for ATS Thread-Topic: [PATCH] PCI: Blacklist AMD Stoney GPU devices for ATS Thread-Index: AQHSp70w+OLXANWfy0m3Sq7/yXBLO6GqsIHA Date: Tue, 28 Mar 2017 20:18:26 +0000 Message-ID: References: <1490703404-4944-1-git-send-email-joro@8bytes.org> In-Reply-To: <1490703404-4944-1-git-send-email-joro@8bytes.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: 8bytes.org; dkim=none (message not signed) header.d=none;8bytes.org; dmarc=none action=none header.from=amd.com; x-originating-ip: [165.204.55.251] x-microsoft-exchange-diagnostics: 1;BN6PR12MB1507;7:1fB2plStpAauybAuI0KICUEeB7//YB3QKV9uOLCL7t4NqwclN6R7a1Dmg9BKxNQ70DmYfk5t7AiRKQjXCMd4ozCl5xJy76ApaPkpkp6dCUTqQCK4ua3mnKBw0YBz1xNsas/XhFxBc3TVPlMSeJV/Rm3VP5e6bT5Ylc1DTPKZFPzVAVnCyVS4FxHje0dgnPXbi8jx8fRswiW7hOdXmlZv2uQGQutu11pKEVfxP4pO6wSj50cYMAfDI9+Y9o2ITl/pKQMG7gBMCkB+UgGf7Jjq1cqYGWCPlHtiPqMT83IIX0NIxgS3LUwQobE+sWqs51zks6aTwag/zuL2yP2TiOeFJA==;20:tSKFOWxNm8qiNlsz28w75b4N3v16sWn1BPwxNGxpC0ENsLBTsF2AGS0Wdu0i+/jfRGilsvPSNHesX8s9WiF3a8Bxca3o2yuAqTTW1WoqqL+7Vs6TaU2Mo3mXiB6XpBAdoWQct2WmaXXLWXHMXAemV96bQHECCW/RJWxJWSZD5SmWHffq/XqgzPKjZFwR3czBlbZyFV2uJlHUD2kcE1Yyal4t4eqWk0+ZNnoHqvd4D1GU3XUclWPBOCBTFBVvFTNB x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10009020)(6009001)(39410400002)(39450400003)(39860400002)(39840400002)(39850400002)(39400400002)(13464003)(377454003)(8936002)(6246003)(38730400002)(77096006)(3280700002)(54356999)(81166006)(8676002)(2906002)(3660700001)(6506006)(25786009)(4326008)(76176999)(53546009)(102836003)(3846002)(6116002)(55016002)(50986999)(6436002)(54906002)(9686003)(6306002)(53936002)(99286003)(122556002)(5660300001)(33656002)(7736002)(189998001)(229853002)(66066001)(86362001)(74316002)(7696004)(2900100001)(305945005)(2950100002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR12MB1507;H:BN6PR12MB1652.namprd12.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; x-ms-office365-filtering-correlation-id: 2daf61a2-893e-4c0d-0c69-08d4761797af x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(48565401081)(201703131423065)(201703031133071)(201702281549065);SRVR:BN6PR12MB1507; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(767451399110)(217544274631240); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040440)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123558025)(201703131423065)(201702281528065)(201703061421065)(201703061406065)(20161123562025)(20161123564025)(20161123560025)(20161123555025)(6072148);SRVR:BN6PR12MB1507;BCL:0;PCL:0;RULEID:;SRVR:BN6PR12MB1507; x-forefront-prvs: 0260457E99 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Mar 2017 20:18:26.4066 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1507 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v2SKJVsH004872 Content-Length: 1793 Lines: 62 > -----Original Message----- > From: Joerg Roedel [mailto:joro@8bytes.org] > Sent: Tuesday, March 28, 2017 8:17 AM > To: Bjorn Helgaas > Cc: linux-pci@vger.kernel.org; linux-kernel@vger.kernel.org; Joerg Roedel; > Daniel Drake; Deucher, Alexander > Subject: [PATCH] PCI: Blacklist AMD Stoney GPU devices for ATS > > From: Joerg Roedel > > ATS is broken on these devices. Under invalidation load, the > GPU does not reply to invalidations anymore, causing > Completion-wait loop timeouts on the AMD IOMMU driver side. > Fix it by not enabling ATS on these devices. > > Note that below mentioned commit is not broken, it just > triggers the issue because it might cause invalidation > storms on devices. > > Fixes: b1516a14657a ('iommu/amd: Implement flush queue') > Reported-by: Daniel Drake > Cc: Daniel Drake > Cc: Alexander Deucher > Signed-off-by: Joerg Roedel Did you see Arindam's patch from yesterday[1]? Not sure which is the proper fix, maybe both? Alex [1] - https://lists.freedesktop.org/archives/amd-gfx/2017-March/006862.html > --- > drivers/pci/ats.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/pci/ats.c b/drivers/pci/ats.c > index eeb9fb2..711bdb2 100644 > --- a/drivers/pci/ats.c > +++ b/drivers/pci/ats.c > @@ -17,10 +17,18 @@ > > #include "pci.h" > > +static const struct pci_device_id broken_ats_tbl[] = { > + { PCI_DEVICE(PCI_VENDOR_ID_AMD, 0x98e4) }, /* AMD Stoney GPU > part */ > + { 0 } > +}; > + > void pci_ats_init(struct pci_dev *dev) > { > int pos; > > + if (pci_match_id(broken_ats_tbl, dev)) > + return; > + > pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ATS); > if (!pos) > return; > -- > 1.9.1