Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933169AbdGKTIH (ORCPT ); Tue, 11 Jul 2017 15:08:07 -0400 Received: from mail-sn1nam01on0064.outbound.protection.outlook.com ([104.47.32.64]:22992 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932750AbdGKTIF (ORCPT ); Tue, 11 Jul 2017 15:08:05 -0400 From: "Deucher, Alexander" To: "'Joerg Roedel'" , Bjorn Helgaas CC: Bjorn Helgaas , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Daniel Drake , "Samuel Sieb" , David Woodhouse Subject: RE: [PATCH v2] PCI: Add ATS-disable quirk for AMD Stoney GPUs Thread-Topic: [PATCH v2] PCI: Add ATS-disable quirk for AMD Stoney GPUs Thread-Index: AQHSr6vHBMNtgiI4D0yTU57sgEnxvKImYTqAgABXAYCAAWPagIAlvtIAgAE9WQCAADo6gA== Date: Tue, 11 Jul 2017 19:08:03 +0000 Message-ID: References: <1491575538-22694-1-git-send-email-joro@8bytes.org> <20170615140421.GB25710@suse.de> <20170615191545.GB12735@bhelgaas-glaptop.roam.corp.google.com> <20170616162923.GE25710@suse.de> <20170710165358.GD20365@bhelgaas-glaptop.roam.corp.google.com> <20170711114948.GA6244@suse.de> In-Reply-To: <20170711114948.GA6244@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-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY4PR12MB1653;20:7ZZjQTTz1odhNsxt1puDkwCLbhckv87C8UNYKNZ6K4SmdmT0YIxH80lbx2CFElVBaujX6BAEhAK2tP/q0LNR9Hu6Y7qYO37Z5IBdOuPblh7rHrIGaPSbSXubVUwlnD5NJp+YmIVr5PhK+cMfdWDVsumiS9Hi8PMnbncUqbUmljndV4tw30zCyIgDOChzsWmfnhAs1H4By9zpQkynmX66zfEvY8d+B5gehBIMTf8sUbFdjq0u06cgbpMmXqJMUQzk x-ms-office365-filtering-correlation-id: cd575a9c-af5e-43fa-2a4c-08d4c8902797 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(48565401081)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:CY4PR12MB1653; x-ms-traffictypediagnostic: CY4PR12MB1653: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(133145235818549)(236129657087228)(9452136761055)(189930954265078)(217544274631240)(256282310955234)(247924648384137); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(5005006)(8121501046)(100000703101)(100105400095)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY4PR12MB1653;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY4PR12MB1653; x-forefront-prvs: 0365C0E14B x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(39860400002)(39850400002)(39400400002)(39450400003)(39840400002)(39410400002)(13464003)(24454002)(377454003)(3280700002)(3660700001)(66066001)(25786009)(6116002)(3846002)(2906002)(93886004)(33656002)(2950100002)(86362001)(102836003)(45080400002)(189998001)(7696004)(5660300001)(50986999)(478600001)(74316002)(2900100001)(53546010)(8936002)(6306002)(77096006)(54356999)(6436002)(81166006)(9686003)(38730400002)(53936002)(4326008)(305945005)(6246003)(7736002)(6506006)(72206003)(54906002)(14454004)(966005)(99286003)(229853002)(55016002)(76176999)(8676002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR12MB1653;H:CY4PR12MB1653.namprd12.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; 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: 11 Jul 2017 19:08:03.0365 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1653 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 nfs id v6BJ8FQS031780 Content-Length: 1950 Lines: 45 > -----Original Message----- > From: Joerg Roedel [mailto:jroedel@suse.de] > Sent: Tuesday, July 11, 2017 7:50 AM > To: Bjorn Helgaas > Cc: Bjorn Helgaas; linux-pci@vger.kernel.org; linux-kernel@vger.kernel.org; > Daniel Drake; Deucher, Alexander; Samuel Sieb; David Woodhouse > Subject: Re: [PATCH v2] PCI: Add ATS-disable quirk for AMD Stoney GPUs > > Hi Bjorn, > > On Mon, Jul 10, 2017 at 11:53:58AM -0500, Bjorn Helgaas wrote: > > I'm still confused. Per Samuel > > (6dd9dbac-9b65-bc7c-bb08-413a05d09fc8@sieb.net): > > > > Samuel> The other patch seems to fix this issue without disabling ATS. > > Samuel> Isn't that better? > > > > and Alex > > > (BN6PR12MB1652DF4130FC792B71DD9974F7C00@BN6PR12MB1652.namprd1 > 2.prod.outlook.com): > > > > Alex> I talked to our validation team and ATS was validated on Stoney, > > Alex> so this patch is just working around something else. The other > > Alex> patch fixes it and is a valid optimization ... > > > > I'm confused about what this "other patch" is and whether we want that > > one, this one, or both. Here's the other patch: https://lists.freedesktop.org/archives/amd-gfx/2017-May/009421.html > > The other patches floating around lowered the ATS flush-rate from the > AMD IOMMU driver, which makes the issue disappear as well. But the issue > only disappeared, it is not solved and could probably still be > reproduced with a GPU usage pattern that increases the ATS flush-rate. > > So blacklisting the device for ATS is still the safest thing we could do > here. I don't have any objection per se, but I'd hate to add a quirk to disable it only to remove it again in the future if we needed ATS related functionality later. We are in the process of upstreaming KFD support for Carrizo (which is a bigger version of Stoney) and that utilizes ATS related functionality to provide GPU access to pageable memory. There are no immediate requirements for Stoney, but that may change. Alex