Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755543AbdC2JsD (ORCPT ); Wed, 29 Mar 2017 05:48:03 -0400 Received: from mail-sn1nam02on0089.outbound.protection.outlook.com ([104.47.36.89]:45248 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755038AbdC2JsB (ORCPT ); Wed, 29 Mar 2017 05:48:01 -0400 From: "Nath, Arindam" To: "'Joerg Roedel'" CC: "Deucher, Alexander" , "'Joerg Roedel'" , Bjorn Helgaas , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Daniel Drake 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/yXBLO6GqsIHAgAADzgCAAACekIAABxQAgAABsSCAABeBgIAAkQOwgAAr0gCAAAEfQA== Date: Wed, 29 Mar 2017 09:47:52 +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> <20170329094218.GU8329@suse.de> In-Reply-To: <20170329094218.GU8329@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: [122.172.141.26] x-microsoft-exchange-diagnostics: 1;MWHPR12MB1661;7:CjfpqiuQ25WwJo+NmS40DcwDUCzUX81KYTQqf75oKwQ8rAXBuQsBhwLYWnvKgqCC9n7btUl23rF1BvOpVm4YpLzuAW0ANZaANV7AbAZk6vjE/ucTDJshc2LWR1Gy+/rf0r+woC4tRq9r8l7nFrLDdpvV2HUnGqugeZUbY4q212CqUvn9wWwMoBYvNFQQLHmTGQxWx+V3pGvjbRZ3ySu74invWE+yDPVBi6a/3QzftbOJkHvvHg5OEij8yfk+wBDMk6dA+kjpf4vZc0G20GFyJJ6SL8awrzAWjrXfQTacLtfSZ2XxhB6QjKAz/l9NX5D8YtYh1S12z01SogQs/e//zA==;20:LdPH+VIkd7o/UHFyMDq7NE6uDusBw7dDfHjPAeOU9FAnW51HaK/lmJouxp1r9dzW8ZZmqDec0l/D4X5c8CQXDyyUl4UpisyVJMPiHT2pYdHN++8lOhaqSD6agbw0uUUufeJ9Df4fvOAaSi5cATOxNHLEOijpXobgkn6VfZh2MKIZVuou2my4d1il7FYt+68McKksCDerT5T+1gGOaJBSZjohvWtG1kHn5cYsBm8ZF7AoTQRcRLXDsNRMXFowadc7 x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10009020)(6009001)(39840400002)(39450400003)(39850400002)(39410400002)(39400400002)(39860400002)(13464003)(377454003)(24454002)(4326008)(2900100001)(305945005)(8936002)(6246003)(8676002)(50986999)(66066001)(7736002)(81166006)(76176999)(3280700002)(3660700001)(54356999)(77096006)(6506006)(2906002)(6916009)(74316002)(25786009)(9686003)(55016002)(99286003)(53936002)(110136004)(93886004)(2950100002)(6436002)(33656002)(38730400002)(122556002)(551934003)(5660300001)(229853002)(7696004)(6116002)(3846002)(189998001)(86362001)(102836003);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR12MB1661;H:MWHPR12MB1518.namprd12.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; x-ms-office365-filtering-correlation-id: ef17ff70-30a1-4eba-97ee-08d47688ab12 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(48565401081)(201703131423074)(201703031133080)(201702281549074);SRVR:MWHPR12MB1661; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040449)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123555025)(20161123564025)(20161123558025)(20161123562025)(20161123560025)(201703131423074)(201702281528074)(201703061421074)(201703061406074)(6072148);SRVR:MWHPR12MB1661;BCL:0;PCL:0;RULEID:;SRVR:MWHPR12MB1661; 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 09:47:52.1172 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1661 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 v2T9mMPl024305 Content-Length: 1327 Lines: 37 >-----Original Message----- >From: 'Joerg Roedel' [mailto:jroedel@suse.de] >Sent: Wednesday, March 29, 2017 3:12 PM >To: Nath, Arindam >Cc: Deucher, Alexander; 'Joerg Roedel'; Bjorn Helgaas; linux- >pci@vger.kernel.org; linux-kernel@vger.kernel.org; Daniel Drake >Subject: Re: [PATCH] PCI: Blacklist AMD Stoney GPU devices for ATS > >Hi Arindam, > >On Wed, Mar 29, 2017 at 07:15:42AM +0000, Nath, Arindam wrote: >> Joerg, as per my limited understanding of ATS, the ATC will respond to >> invalidation requests after making sure there are no in-flight DMA >> transactions with the address requested by IOMMU to be invalidated. >> Now since the IOMMU was sending invalidate command to GPU even >though >> there was no explicit page unmapping request from the graphics >> subsystem, we _might_ end up in a situation where the ATC takes longer >> than the invalidation timeout to respond to IOMMU. > >The maximum wait-time in the loop is 100ms. This should be more than >enough for the ATC to complete any in-flight transaction and flush its >internal TLB. > >If that is not enough, there is almost certainly something wrong with >the hardware. Actually what you said is correct. Before creating the patch, I had experimented with 1s and 10s invalidation timeout values, but none of them helped. Thanks, Arindam > > > > Joerg