Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755722AbdC1UhJ (ORCPT ); Tue, 28 Mar 2017 16:37:09 -0400 Received: from mail-by2nam01on0080.outbound.protection.outlook.com ([104.47.34.80]:64384 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754328AbdC1UhH (ORCPT ); Tue, 28 Mar 2017 16:37:07 -0400 From: "Deucher, Alexander" To: "'Joerg Roedel'" CC: "'Joerg Roedel'" , Bjorn Helgaas , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , 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/yXBLO6GqsIHAgAADzgCAAACekA== Date: Tue, 28 Mar 2017 20:37:01 +0000 Message-ID: References: <1490703404-4944-1-git-send-email-joro@8bytes.org> <20170328202844.GQ8329@suse.de> In-Reply-To: <20170328202844.GQ8329@suse.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Deucher@amd.com; x-originating-ip: [165.204.55.251] x-microsoft-exchange-diagnostics: 1;BN6PR12MB1507;7:voE5bzeDeWR2YmzLoGbTHH0wB3UMscT+vULfCdr4oDwJyco+i7x+rw2cykxIPU6UYzWxcVhD6st6VJ0v2P3slLCVhKwH/lsDR4rdcYkZHnIXQRS5LZseyn/gcZyF1hYu9Hu9s2K5h32jNt5seUtBwMY2LNC5/qn2GSzv1vfdJI58NJ0Xq5AbGhWu+fWNcc3+fQ0GxW0+rUkKUg3HXx+u3jhTchnezQ4T8NUB8wB+xBHUkEFn80JHeGTWZvXK5AJLlHg4EPQWb1ZcVuCnaKN1OD3oK8tjWhxCit7/aWzBgvMDm7oSfNewTChAcuPz1UPNj/Z7tYCeewbWsn2334Fn/Q==;20:ACglgyv6nM/9+ECyv5+3mjcaVESdFvPkp9Sb9ROOfIlUSW0QTy9GteyE/IUJHT/PshbQxo7/lz81K2hBE7n+bfheqzlL7w4QR4GZylnIEAoP1QD18tFUx+qyXTJAzHuMs3yxIOsSXrWAtDAD+hinIC7lnO2Y9fk1XKmmUy5/Xfcc+IaFkPLdDhi2ty9C044EW8IMDqfVAb9hTq/aL8NfurWBvTFu7CqPkMQtuVo9sxALBmsLntid4sKKB+uRQRBG x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10009020)(979002)(6009001)(39450400003)(39410400002)(39840400002)(39860400002)(39400400002)(39850400002)(24454002)(13464003)(377454003)(8936002)(6246003)(38730400002)(77096006)(110136004)(3280700002)(54356999)(81166006)(8676002)(2906002)(3660700001)(6506006)(25786009)(4326008)(76176999)(53546009)(102836003)(3846002)(6116002)(55016002)(50986999)(6436002)(54906002)(9686003)(53936002)(99286003)(122556002)(5660300001)(6916009)(7736002)(33656002)(189998001)(229853002)(7696004)(66066001)(86362001)(74316002)(2900100001)(305945005)(2950100002)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR12MB1507;H:BN6PR12MB1652.namprd12.prod.outlook.com;FPR:;SPF:None;MLV:ovrnspm;PTR:InfoNoRecords;LANG:en; x-ms-office365-filtering-correlation-id: 1873c830-669a-4be7-47a8-08d4761a3050 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(48565401081)(201703131423066)(201703031133072)(201702281549066);SRVR:BN6PR12MB1507; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(767451399110); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040440)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123564025)(20161123555025)(20161123560025)(20161123558025)(201703131423065)(201702281528065)(201703061421065)(201703061406065)(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:37:01.5665 (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 v2SKcxx5007661 Content-Length: 2115 Lines: 49 > -----Original Message----- > From: Joerg Roedel [mailto:jroedel@suse.de] > Sent: Tuesday, March 28, 2017 4:29 PM > To: Deucher, Alexander > Cc: 'Joerg Roedel'; Bjorn Helgaas; linux-pci@vger.kernel.org; linux- > kernel@vger.kernel.org; Daniel Drake; Nath, Arindam > Subject: Re: [PATCH] PCI: Blacklist AMD Stoney GPU devices for ATS > > On Tue, Mar 28, 2017 at 08:18:26PM +0000, Deucher, Alexander wrote: > > > -----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? > > Arindam's patch makes sense on its own, but not as a fix for this issue. > It lowers the invalidation load on the GPU, but there are still ways to > trigger a high invalidation rate on the device. So it might hide the > issue, but not fix it. > > We need to disable ATS on the device if it doesn't work reliably. The question is, could the problem stem from flushing an entity that didn't request it, or should that not matter? I guess it shouldn't matter otherwise we'd see this on other platforms like Carrizo as well. Alex