Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp873885imm; Wed, 11 Jul 2018 12:29:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeYEWP9wrJ6t1ic9VhI+wsCNK2wNmDy7wy7HiiT/mDyCtjj1av03UJRj/KWtr5X0GEB/jJJ X-Received: by 2002:a17:902:14b:: with SMTP id 69-v6mr30025748plb.184.1531337366208; Wed, 11 Jul 2018 12:29:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531337366; cv=none; d=google.com; s=arc-20160816; b=l7e486WojCCPQgV8mKu6oiChOz935TFx7u1BZzzcWfzJoqcuYD0qseE92+i4PEc3VP KDu810/CC17tMEkBvqGagPVJwssXI4sfbd9zaeV3vt6RYq1xhzL8/K7DARFuNABVerSO SkuX0hdRpGvP+KamiWhX5oLo1mVVLH5/if+PQVyDj3zVLS6hrQV2e74vjx3ObB9bs1aK H3I/iv0ZmW9JSmJuKPlCxQElb32BxwE+MTLPwh32Nqjz37zXMpFRTANzr78y6NNcdXCF OXX8hvsaK7YYbgha3R23PFXotn5ELc0I5OC2OCbKrN4RhpLxik13MDIhwmrJPfRLa+z1 ZVXQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=8MawT6/lVl3lTLS0vgnKT9s27x5bdYQ2FFiKZv0TqRs=; b=E7W01lb0FSJ4cj8WxGSpfg8w/4zJctqfpJxOSetm6kXKivLd3sh4v9jnv/m56reN7s hsa17VZ/NHFWXF0GGbHOdCPT3/7ydrqglUzWQRUcm6194eX4Gttgeu70W1jTg3gFgF2i vCJC7dm9QTslxYyRcFcoYLt1WKJmx0x2YhJ0OoUQybBKmLYZm7ihFmTmZP6kuS1w8Xqd 3ZtFQWhLW5MLjOUji6giU+kzmKhwARB4zR/dNp/w5nkmn0rUgcqHwJBguTVBVP2yI9Ju 2m/6XsvDTCIJZOcamjHqpdsmZ0X7ABJ7qtzfNZ948HCVToYKqkaPB5Z5DUqsTryqOVzG gsUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="Qca7qo9/"; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si20566911plf.84.2018.07.11.12.29.10; Wed, 11 Jul 2018 12:29:26 -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; dkim=pass header.i=@broadcom.com header.s=google header.b="Qca7qo9/"; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389962AbeGKQ5s (ORCPT + 99 others); Wed, 11 Jul 2018 12:57:48 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:42417 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387689AbeGKQ5r (ORCPT ); Wed, 11 Jul 2018 12:57:47 -0400 Received: by mail-qk0-f195.google.com with SMTP id 26-v6so3345788qks.9 for ; Wed, 11 Jul 2018 09:52:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=8MawT6/lVl3lTLS0vgnKT9s27x5bdYQ2FFiKZv0TqRs=; b=Qca7qo9/cnb68OGGY79xDClkrBYKPA9cAy5TzSDdFRIxqIhOa0W3lcw98aI0alyk6M d2zChPDAzxYVC8jAEqQeAP16PbcssvZ5nl2j8i4kv9blbOO+g28Pd9g72mxTUnDZiJE7 Cs7HmAPEAKmkpWbsa+nUpKz5IFdZa0wjVlq9k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8MawT6/lVl3lTLS0vgnKT9s27x5bdYQ2FFiKZv0TqRs=; b=QYgCxEC3nskeoytZwilbaFnw1dDE+lsldfol8a0Z3l90oNL7OERu12zuyqOE4kqWph CAkWouNXRJ0Q94JxRCC71KfDNxu1miIAjYG9MADz9oVKYa2Eq07lhKVb+tjcb6weXute gFLeTUHLNK3Q234Xau4nmAyKq3+pCxMZWlcLqmB7EtNX0dqGJ9e18zTHO3xZ9Z3RGND3 UjHTDzdMNjmJ82HHVM+cVvk+4sEikwdil790wEqAL6RUFTA/7YYVzIATi6iGOGql7Vnz Hvr+Se0OM65ISaagIYnUnCfbx3otgOGCGPQ0muEfDmxZ9OWOEeMDCuJJVPXKP00k+Fnr DgeQ== X-Gm-Message-State: APt69E26yjrUHRaFNUcBHHSJB5LxpV6j0K+/IcguliJf/LYRlREuc4ar VUbbSH5Q7WDPcuiYIl8rSNR9jw== X-Received: by 2002:a37:b001:: with SMTP id z1-v6mr26752065qke.156.1531327955425; Wed, 11 Jul 2018 09:52:35 -0700 (PDT) Received: from [10.136.8.248] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id f64-v6sm22170592qkf.2.2018.07.11.09.52.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jul 2018 09:52:34 -0700 (PDT) Subject: Re: [PATCH v2 1/5] PCI: iproc: Activate PAXC bridge quirk for more devices To: Bjorn Helgaas Cc: Lorenzo Pieralisi , Bjorn Helgaas , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-pci@vger.kernel.org References: <1528762867-16823-1-git-send-email-ray.jui@broadcom.com> <1528762867-16823-2-git-send-email-ray.jui@broadcom.com> <20180711131138.GE188359@bhelgaas-glaptop.roam.corp.google.com> From: Ray Jui Message-ID: <6a931918-f5ba-1b80-658d-1f7ed1e8c84e@broadcom.com> Date: Wed, 11 Jul 2018 09:52:31 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180711131138.GE188359@bhelgaas-glaptop.roam.corp.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, On 7/11/2018 6:11 AM, Bjorn Helgaas wrote: > On Mon, Jun 11, 2018 at 05:21:03PM -0700, Ray Jui wrote: >> Activate PAXC bridge quirk for more PAXC based PCIe root complex with >> the following PCIe device ID: >> 0xd750, 0xd802, 0xd804 >> >> Signed-off-by: Ray Jui > > Because this quirk_paxc_bridge() mechanism is already established, > > Acked-by: Bjorn Helgaas > Thanks! > BUT, I would push back on quirk_paxc_bridge() if it were new code. > > I think it would be much better to implement this in the driver's > config accessors so lspci would show the correct things and the > generic code that deals with pcie_mpss would work unmodified. > Noted. I agree with you. I'll find time to improve this by moving them into the driver's config accessors in the future, after v4.19. >> --- >> drivers/pci/quirks.c | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c >> index 2990ad1..47dfea0 100644 >> --- a/drivers/pci/quirks.c >> +++ b/drivers/pci/quirks.c >> @@ -2195,6 +2195,9 @@ static void quirk_paxc_bridge(struct pci_dev *pdev) >> } >> DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0x16cd, quirk_paxc_bridge); >> DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0x16f0, quirk_paxc_bridge); >> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0xd750, quirk_paxc_bridge); >> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0xd802, quirk_paxc_bridge); >> +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0xd804, quirk_paxc_bridge); >> #endif >> >> /* Originally in EDAC sources for i82875P: >> -- >> 2.1.4 >>