Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753301AbdFOSOA (ORCPT ); Thu, 15 Jun 2017 14:14:00 -0400 Received: from mail-sn1nam02on0073.outbound.protection.outlook.com ([104.47.36.73]:58096 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751546AbdFOSN5 (ORCPT ); Thu, 15 Jun 2017 14:13:57 -0400 From: "Deucher, Alexander" To: "'Samuel Sieb'" , Joerg Roedel , "Bjorn Helgaas" CC: "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Daniel Drake , 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: AQHSr6vHBMNtgiI4D0yTU57sgEnxvKImYTqAgAAxmoCAABM/MA== Date: Thu, 15 Jun 2017 18:13:49 +0000 Message-ID: References: <1491575538-22694-1-git-send-email-joro@8bytes.org> <20170615140421.GB25710@suse.de> <6dd9dbac-9b65-bc7c-bb08-413a05d09fc8@sieb.net> In-Reply-To: <6dd9dbac-9b65-bc7c-bb08-413a05d09fc8@sieb.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: sieb.net; dkim=none (message not signed) header.d=none;sieb.net; dmarc=none action=none header.from=amd.com; x-originating-ip: [165.204.55.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BN6PR12MB1652;20:UJinTS2oXQDAvKclLa9Kf+BgFx8d3C7JkDH70o70uDKQcv0yDTMQYFUoJBSHC2PVHEYw3TQU1MpTSNXTJ5xmjnEJ2NVFTFqJkXufumRs7dG98NALQXtZay4CHdFry0CsVf5kNJ3UQms0fwmZoxrrS//rdTHX+5t5Zc00sLZ0u0lPF98eUB5aMsPJDTOK/pDww0D0JspnfiEYcGQGgOTI7vt24fxMV+IosPsfWpw7OpQ9VoBOaVi9VT88xtmukQmj x-ms-office365-filtering-correlation-id: ad247236-63a0-4d2a-336d-08d4b41a45dc x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081);SRVR:BN6PR12MB1652; x-ms-traffictypediagnostic: BN6PR12MB1652: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041248)(20161123564025)(20161123558100)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN6PR12MB1652;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN6PR12MB1652; x-forefront-prvs: 0339F89554 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(39850400002)(39860400002)(39840400002)(39450400003)(39400400002)(39410400002)(24454002)(377454003)(13464003)(5660300001)(38730400002)(6246003)(50986999)(81166006)(33656002)(8936002)(2906002)(4326008)(6116002)(3846002)(3280700002)(122556002)(102836003)(189998001)(3660700001)(25786009)(53546009)(72206003)(14454004)(8676002)(76176999)(53936002)(305945005)(7696004)(86362001)(2950100002)(54356999)(6506006)(77096006)(54906002)(74316002)(2900100001)(6436002)(55016002)(7736002)(229853002)(66066001)(99286003)(478600001)(9686003);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR12MB1652;H:BN6PR12MB1652.namprd12.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jun 2017 18:13:49.8103 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1652 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 base64 to 8bit by mail.home.local id v5FIEEJv020382 Content-Length: 1566 Lines: 38 > -----Original Message----- > From: Samuel Sieb [mailto:samuel@sieb.net] > Sent: Thursday, June 15, 2017 1:02 PM > To: Joerg Roedel; Bjorn Helgaas > Cc: linux-pci@vger.kernel.org; linux-kernel@vger.kernel.org; Daniel Drake; > Deucher, Alexander; David Woodhouse > Subject: Re: [PATCH v2] PCI: Add ATS-disable quirk for AMD Stoney GPUs > > On 06/15/2017 07:04 AM, Joerg Roedel wrote: > > Hi Bjorn, > > > > On Fri, Apr 07, 2017 at 04:32:18PM +0200, Joerg Roedel wrote: > >> From: Joerg Roedel > >> > >> ATS is broken on this hardware and causes IOMMU stalls and > >> system failure. Disable ATS on these devices to make them > >> usable again with IOMMU enabled. > >> > >> Note that the commit in the Fixes-tag is not buggy, it > >> just uncovers the problem in the hardware by increasing > >> the ATS-flush rate. > >> > >> Fixes: b1516a14657a ('iommu/amd: Implement flush queue') > >> Signed-off-by: Joerg Roedel > >> --- > >> drivers/pci/quirks.c | 19 +++++++++++++++++++ > >> 1 file changed, 19 insertions(+) > > > > Any more objections on this patch? Please let me know if you want to > > have something changed. > > The other patch seems to fix this issue without disabling ATS. Isn't > that better? I talked to our validation team and ATS was validated on Stoney, so this patch is just working around something else. The other patch fixes it and is a valid optimization (it should be applied eventually), but apparently the current behavior is allowed even if it's now optimal. I'm not really an ATS expert. Alex