Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3820481imm; Tue, 17 Jul 2018 10:49:39 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd5Ndm47uLTLFw4fPV8PAKnauic0LLuwJUI+kvhWJjJB3myL0Ino3yXSeAA9zlwOJ/R3VIR X-Received: by 2002:a17:902:9b82:: with SMTP id y2-v6mr2547951plp.69.1531849779671; Tue, 17 Jul 2018 10:49:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531849779; cv=none; d=google.com; s=arc-20160816; b=Ub0pvRC6YiyvMDFxuYV5/MMTCV8zFP9y1cB1BFy2M67RB1/WOQFgPYri/gUUKqCGQq OZb9H+MwvuCw9AMMCep/z3hBJT6pyijfizYaSsXKfGlhQvpIH8DQvfyMMEuK8TEV1mIB KkRkP5cI6bAf50i9FzbLET6HfPirpjoydlcN39JJcqoxdVqyj9O/hxnxeTwHNjRdqtSv ehq16mM9FoH16C+lZ1Aa4iF/8ImN3re0u+Q6LdVhSfnz1wN1nCLMyQyOrrKpTzeQt1Ss JSDdnNYu2QKZ1PDwzNQ4tfSBQaktzmpdlmSSXuyNMF3QGBkqxR7sqkcXRL0kbdDiU8Rw ByOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=ZDd9Rns84C+bPPwlXZYCmm6KwKPtNynLZIRII0ChGCw=; b=LG6PLPd23uidHLmccCk0iqzPWgaOGpbKW0uG6mAVM3tkoQivcS4t7+LwRgWBS69Oqr nx+IT8JXnYIxEn7PL5RRqu9tTaTEcu920ANjAATXviZRitGCr7J4PeQFAp7ShnFWpGtI f10vH2HxIPJuP8pdiQxLxwdovZHjH3Uut2U/v3p29uchxhAsctZppwzvHp36LeJAuas+ EokR+oEZWnjQO2tsE+J2ksUVE2HmXow6yQBxEF8skNiBBZcZd8K9lQO9l9zahJpRbmzW V80fXgq4C46oUZJ45Av9b63omeKjq1Hiu452bHu7uN+uxZX+rK7YGyuwD/uKI1fe0G06 LaYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 138-v6si1313850pga.188.2018.07.17.10.49.24; Tue, 17 Jul 2018 10:49:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730375AbeGQSWd (ORCPT + 99 others); Tue, 17 Jul 2018 14:22:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48064 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729737AbeGQSWd (ORCPT ); Tue, 17 Jul 2018 14:22:33 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E030415553; Tue, 17 Jul 2018 17:48:49 +0000 (UTC) Received: from t450s.home (ovpn-116-29.phx2.redhat.com [10.3.116.29]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9412819483; Tue, 17 Jul 2018 17:48:47 +0000 (UTC) Date: Tue, 17 Jul 2018 11:48:47 -0600 From: Alex Williamson To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-doc@vger.kernel.org, Stephen Bates , Christoph Hellwig , Bjorn Helgaas , Jonathan Corbet , Ingo Molnar , Thomas Gleixner , "Paul E. McKenney" , Marc Zyngier , Kai-Heng Feng , Frederic Weisbecker , Dan Williams , =?UTF-8?B?SsOpcsO0bWU=?= Glisse , Benjamin Herrenschmidt , Christian =?UTF-8?B?S8O2bmln?= , Matthew Wilcox Subject: Re: [PATCH v7 3/4] PCI: Introduce disable_acs_redir quirk Message-ID: <20180717114847.5c407c59@t450s.home> In-Reply-To: <20180717170204.30470-4-logang@deltatee.com> References: <20180717170204.30470-1-logang@deltatee.com> <20180717170204.30470-4-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 17 Jul 2018 17:48:50 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 Jul 2018 11:02:03 -0600 Logan Gunthorpe wrote: > Intel SPT PCH hardware has an implementation of the ACS bits that > does not comply with the PCI express standard. To deal with this > the existing code has an enable_acs() quirk for the hardware. > > In order to be able to correctly disable the ACS redirect bits for > all hardware we need an analagous quirk to disable those bits. > > This adds the function pci_dev_specific_disable_acs_redir() which > behaves similarly to pci_dev_specific_enable_acs() but uses a new > function pointer for quirks which disables the ACS redirect bits. > > Signed-off-by: Logan Gunthorpe > --- > drivers/pci/quirks.c | 78 ++++++++++++++++++++++++++++++++++++++++++++-------- > include/linux/pci.h | 5 ++++ > 2 files changed, 71 insertions(+), 12 deletions(-) Reviewed-by: Alex Williamson