Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp658549pxb; Thu, 31 Mar 2022 14:10:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxEBqUbXMDAHOVhXdHDNxa1RR5xS65F9h1wySQyjpBhlGaYkpgMyRFvcaSHgOTFE0vHGGe X-Received: by 2002:a05:6a00:b87:b0:4fa:a79a:72e7 with SMTP id g7-20020a056a000b8700b004faa79a72e7mr7457355pfj.68.1648761013088; Thu, 31 Mar 2022 14:10:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648761013; cv=none; d=google.com; s=arc-20160816; b=mk3NqNRvNjejg8HvpP6RTn3vFW5cXxxRUcrIKSqAgriwY/yVsDeNRI0hDQAeK0vWRS HE/SOtl7SODmppD2VsOZv4vB9cKdg2OlgWOjDy5AqenUzjT48sQZAQQenLLuDyL3AxJI 2kD/TnNM8I8Kw3xBD1JocRg3Gk9JN22tm3T/sE9yrTpDVbzJ40kjnLD+8ObKDfSM0CoQ CGMgyKCT/NAHt/xwmK07gWnLPPd/iQwViu0oGkIdGIgzk0rZ3ZZ9oG9DjPz8pLbTD0Bl LZrRDg89V/Roq+HW5zjZbkiPr4TtN+tS3xBisASCrNSNm8m2V3NY/5Eq8zUdgxanftdA 7DtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=Kz+8x3WxsvNJ26vGqzSDTx3CFC4YAXGPSadB0vSRpGg=; b=h1u9nBdUZr7Nzza4/lSd61qgsdMiVGVcaSmL1fMsmD1YfE3gKTrakNLe/FYwXycDqg haJ/4aUILNhwpz1nZoZUT10kSmBHymQCWrgJzM/SdBRQoN94drkD498AeL1NeIlRr8lw yBUeTlmJyOtt+qm5K8d9yS5cvjHmooXwt1BAYnpkzQ2eWami8AsgOJ16141tdEkb4Ysr EL2szPkDF7cPCHA09nvD8g3NTYk/cxGVpH1sWIqaKJVp3vZaBnWV0k5VInOwE7vp/+nB fFdEMSeAsArkKTfa5Uk3ecXGKgB1s49/mOt5lnzXJywbfRYH1RAvyIy7OR7a11tuYEsU gh6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a0bOq58j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f4-20020a056a00238400b004faaaf18941si651942pfc.8.2022.03.31.14.09.56; Thu, 31 Mar 2022 14:10:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a0bOq58j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237594AbiCaOdH (ORCPT + 99 others); Thu, 31 Mar 2022 10:33:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237694AbiCaOc7 (ORCPT ); Thu, 31 Mar 2022 10:32:59 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22FE01DE6F4; Thu, 31 Mar 2022 07:31:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 708ACB8213B; Thu, 31 Mar 2022 14:31:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F523C340ED; Thu, 31 Mar 2022 14:31:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648737063; bh=SNXLMin1yPeR9fXtTHf11aJlFW1shy9T5oOySNUqpRo=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=a0bOq58j3m4sHXGsLJmOPypzaAgKs84C42qg4qA36vdMaWONZibKL1en9U1/x9KlD iMK05xfh1Z23snWcdLcA2CE5Ovh2dJuRkdUOZjRoQryGbkrJqgid/mjAXbn9nb++TM n5f1OXbK41b+d1FrJbPuMjoU9O2fjvJkQihkQaQ6WEwPWjyZ3fk4hV9dFcUICEoED7 yR/R5heDVsInICR6Acx9IfZJONGWhv06Zvy3PSXIBEhVGmxideMm20oW7nhFdL3oHN FlwjltplWRc35ISFSoK/zcTq6oPyTSoZasgyxBzu01u4w2h2Vk72YkVMb/ALzfGiPX ONuN3aumuqDoA== Date: Thu, 31 Mar 2022 09:31:01 -0500 From: Bjorn Helgaas To: Shlomo Pongratz Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, andrew.maier@eideticom.com, logang@deltatee.com, bhelgaas@google.com, jgg@nvidia.com, Shlomo Pongratz Subject: Re: [PATCH V5 1/1] Intel Sky Lake-E host root ports check. Message-ID: <20220331143101.GA4846@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220331073539.14499-2-shlomop@pliops.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 31, 2022 at 10:35:39AM +0300, Shlomo Pongratz wrote: > In commit 7b94b53db34f ("PCI/P2PDMA: Add Intel Sky Lake-E Root Ports B, C, D to > the whitelist") > Andrew Maier added the Sky Lake-E additional devices > 2031, 2032 and 2033 root ports to the already existing 2030 device. > > The Intel devices 2030, 2031, 2032 and 2033 which are root ports A, B, C and D, > respectively and if all exist they will occupy slots 0 till 3 in that order. Please make this a sentence. > The original code handled only the case where the devices in the whitelist are > host bridges and assumed that they will be found on slot 0. > > This assumption doesn't hold for root ports so an explicit test was added to > cover this case. Please update the subject line to match the style of previous ones. Please wrap the commit log to fit in 80 columns (including the 4 spaces added by "git log") like previous commits. Please figure out whether you want "Sky Lake-E" or "SkyLake-E" and use it consistently in commit log and code comments. It seems to be "Skylake" on intel.com, so I suggest using that. Please use imperative mood, e.g., instead of "an explicit test was added ...," write "add a test to cover this case." Do the same in code comments. Bjorn