Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932787AbdDGMen (ORCPT ); Fri, 7 Apr 2017 08:34:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:57728 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932075AbdDGMef (ORCPT ); Fri, 7 Apr 2017 08:34:35 -0400 Date: Fri, 7 Apr 2017 14:34:31 +0200 From: Joerg Roedel To: Bjorn Helgaas Cc: Joerg Roedel , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Drake , Alexander Deucher Subject: Re: [PATCH] PCI: Blacklist AMD Stoney GPU devices for ATS Message-ID: <20170407123431.GC23944@suse.de> References: <1490703404-4944-1-git-send-email-joro@8bytes.org> <20170404164311.GB27692@bhelgaas-glaptop.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170404164311.GB27692@bhelgaas-glaptop.roam.corp.google.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 699 Lines: 28 Hi Bjorn, On Tue, Apr 04, 2017 at 11:43:11AM -0500, Bjorn Helgaas wrote: > > +static const struct pci_device_id broken_ats_tbl[] = { > > + { PCI_DEVICE(PCI_VENDOR_ID_AMD, 0x98e4) }, /* AMD Stoney GPU part */ Just found out that the affected GPU uses PCI_VENDOR_ID_ATI, fixed that too. > > + { 0 } > > +}; > > + > > void pci_ats_init(struct pci_dev *dev) > > > > int pos; > > > > + if (pci_match_id(broken_ats_tbl, dev)) > > + return; > > This is fine functionally, but from a stylistic point of view, I guess > I would prefer to have it implemented in drivers/pci/quirks.c just to > have some consistency in how we work around device defects. Done, I send a new patch shortly. Joerg