Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752931AbdC2QVO (ORCPT ); Wed, 29 Mar 2017 12:21:14 -0400 Received: from mail-sn1nam01on0061.outbound.protection.outlook.com ([104.47.32.61]:43712 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752175AbdC2QVM (ORCPT ); Wed, 29 Mar 2017 12:21:12 -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/yXBLO6GqsIHAgAADzgCAAACekIAABxQAgAABsSCAABeBgIABBgIg Date: Wed, 29 Mar 2017 16:21:08 +0000 Message-ID: References: <1490703404-4944-1-git-send-email-joro@8bytes.org> <20170328202844.GQ8329@suse.de> <20170328205616.GR8329@suse.de> <20170328222627.GS8329@suse.de> In-Reply-To: <20170328222627.GS8329@suse.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: suse.de; dkim=none (message not signed) header.d=none;suse.de; dmarc=none action=none header.from=amd.com; x-originating-ip: [165.204.55.251] x-microsoft-exchange-diagnostics: 1;BN6PR12MB1505;7:DJnl/ZMkfwcJT3j6zBZTwzqDkF2O8PDLHUOiPgi/81HpAJ4b3YiM0dN+8CUzNl+TCpkMneMyueGhqAYju89XqxAizvrVGpWBtrbw8d5NiIgnP7x4xgxc9hDJfbk2ZDMCcXa37UD5XdPVZvN1LY2E1aNLCqw0RXClHEJyTvzFmUr5HURQLMpyZB8fDtKgfatJtu7z467Jif4Hz02oQHRV26zZTSfBDO50zo96/ZQLqbdFtgPMq867Jr86Ba2FjXzJ7koxxP33NnfTLBl6VGgdPEciUR4vUqK9LnTgqYqm5soOG2FLJF2PM7w9e/d5+gN10Pgy0utoCQyrQftBfdrlWA==;20:1LXS3NWQYcYrCQ+bk718bx198c77uh60WMus2jt9q3tFoSCX2PBByzvU7VhE+7QR2hc7TMOKToTn0Iu++M2zf0yXhNldHRxo75hZ99UgqMqneld5o831w83y+4GrEeqODm9d1AAPQqep4MhSR/bZh3i3BfXltQ4c+PfN1kQPxvGjZREeBbGAzt/fKzk3WShhuPwOEHNt9kGxQ/SfBhB7I26EQGkkpkJ2gGwJBQoMgWyqW/AH2GIYBX8t8+RxYpMx x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10009020)(6009001)(39860400002)(39850400002)(39410400002)(39400400002)(39450400003)(39840400002)(377454003)(24454002)(13464003)(2906002)(8936002)(2900100001)(8676002)(76176999)(3660700001)(54356999)(50986999)(3846002)(6116002)(102836003)(81166006)(3280700002)(6246003)(110136004)(38730400002)(66066001)(33656002)(53546009)(25786009)(4326008)(77096006)(6916009)(189998001)(2950100002)(5660300001)(122556002)(7696004)(7736002)(229853002)(305945005)(86362001)(55016002)(6436002)(74316002)(9686003)(54906002)(6506006)(93886004)(99286003)(53936002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR12MB1505;H:BN6PR12MB1652.namprd12.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; x-ms-office365-filtering-correlation-id: d07d8422-b926-4412-3874-08d476bf9bb8 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081);SRVR:BN6PR12MB1505; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(767451399110); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406075)(20161123562025)(20161123555025)(20161123564025)(20161123558025)(6072148);SRVR:BN6PR12MB1505;BCL:0;PCL:0;RULEID:;SRVR:BN6PR12MB1505; x-forefront-prvs: 0261CCEEDF 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: 29 Mar 2017 16:21:08.6943 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1505 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 v2TGLJJE032340 Content-Length: 1699 Lines: 34 > -----Original Message----- > From: 'Joerg Roedel' [mailto:jroedel@suse.de] > Sent: Tuesday, March 28, 2017 6:26 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 09:13:23PM +0000, Deucher, Alexander wrote: > > If I understand Arindam's patch correctly, it only flushes TLB entries > > for domains in the flush queue whereas the previous behavior was to > > flush all domains. If there was no TLB flush in the queue for that > > domain, could flushing it cause a problem? > > No, that can't cause a problem. An io/tlb flush for the device is just a > message that the device should invalidate its own tlb. The device can't > know and doesn't need to know whether the page-tables it used to fill > the tlb really changed. > > As it looks, the problem we are seeing here is that we are sending a > large amount of these requests to the GPU device, and wait for its > completion every time. This shouldn't be a problem for ATS devices, but > the GPU here seems to fail at some point and doesn't answer to the > invalidation request anymore, causing the completion-wait loop timeouts. > > Arindam's patch makes the high flush-frequency less likely, but it can > still happen, depending on how the GPU is used. So its the best to > keep ATS disabled on the device as it doesn't work correctly and we risk > running in the same problem again when we leave it enabled and just make > the trigger less likely. Thanks for clarifying. The patch is: Acked-by: Alex Deucher