From patchwork Tue Jul 18 00:45:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Feng Kan X-Patchwork-Id: 9846549 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BF47260392 for ; Tue, 18 Jul 2017 00:45:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D010E26419 for ; Tue, 18 Jul 2017 00:45:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C48C126AE3; Tue, 18 Jul 2017 00:45:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4AF9F26419 for ; Tue, 18 Jul 2017 00:45:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751995AbdGRAp6 (ORCPT ); Mon, 17 Jul 2017 20:45:58 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:34914 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751977AbdGRAp5 (ORCPT ); Mon, 17 Jul 2017 20:45:57 -0400 Received: by mail-pf0-f174.google.com with SMTP id e199so2848092pfh.2 for ; Mon, 17 Jul 2017 17:45:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apm.com; s=apm; h=from:to:cc:subject:date:message-id; bh=c+UvcWOek9j3TQNjZ7+uIiIVinNvOuUERsSAizMgn6s=; b=ZOy/OeyOL0W6hGm3ptKPuNRjpjqNHyBipxNxXPz6lMFpa3yVbfjjHB7sUM0IQzoBWw 4HpCmQ9RqH7GSzghib/MYgKitSx2cVHobqaJzRlR+yO2LJMvmtQ8M3/Jc33hJS0Hsy51 9y3O+VBOZd1TNd0KYi+pr9FnxQOzvbFvNLxoo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=c+UvcWOek9j3TQNjZ7+uIiIVinNvOuUERsSAizMgn6s=; b=miB8BCJ4Pdns78d8xTY+pw6i925yK8cNa4R0cAsWVwpxTzmNjpVF0h+PwV+psDKekk 6yTwpQFisPN2fH0U1D5ttk4UKgugtne4uAEqLHOYKzRhRUfUK28/LXaZxlzQ8PDkDRUM CKWdZ4X2jfOxUM9/Yc4yG0SckaJ0rj2rLUco+YTj2SxT442CoJmo2vSRs/heELILNAU1 vq1IA/yRnnhuwbjZhaejSFLTE7FSoRkdM4KoMafMVNRyv72tcA1I48yCCPOlHyjEw1dj HET5n0/GAxqPkNE8TQCnrNGIIcmueBmgIRlOumcUxZKdnB51FzBbRrU3+rlEk/AguqZk cMkg== X-Gm-Message-State: AIVw110yOlhcs3fcG7AJGR8EBV2NcqZRWg0WEdGbHCZWHC5xJEjNhgYU 7ROdiDAkNJUu34CE X-Received: by 10.99.8.129 with SMTP id 123mr275761pgi.87.1500338756658; Mon, 17 Jul 2017 17:45:56 -0700 (PDT) Received: from goldengate.amcc.com ([206.80.4.98]) by smtp.gmail.com with ESMTPSA id x3sm731306pgx.29.2017.07.17.17.45.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Jul 2017 17:45:55 -0700 (PDT) From: Feng Kan To: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, bhelgaas@google.com, alex.williamson@redhat.com Cc: Feng Kan Subject: [PATCH] pci: quirk: Apply APM ACS quirk to XGene devices Date: Mon, 17 Jul 2017 17:45:52 -0700 Message-Id: <1500338752-30576-1-git-send-email-fkan@apm.com> X-Mailer: git-send-email 2.7.4 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The APM X-Gene PCIe root port does not support ACS at this point. Since the root does not allow peer to peer transactions, mask out ACS capability flag bits. Signed-off-by: Feng Kan --- drivers/pci/quirks.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 085fb78..951064d 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -4368,6 +4368,8 @@ static int pci_quirk_mf_endpoint_acs(struct pci_dev *dev, u16 acs_flags) { 0x10df, 0x720, pci_quirk_mf_endpoint_acs }, /* Emulex Skyhawk-R */ /* Cavium ThunderX */ { PCI_VENDOR_ID_CAVIUM, PCI_ANY_ID, pci_quirk_cavium_acs }, + /* APM XGene */ + { PCI_VENDOR_ID_AMCC, 0xE004, pci_quirk_mf_endpoint_acs }, { 0 } };