Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2076817pxb; Wed, 30 Mar 2022 16:03:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwg2TLz1NqjnkMoatyF97R3r3wJNwYQS9Nn/lbVl4cGAv43Fpc92GMfGjivbRro7koyD/C/ X-Received: by 2002:a05:6402:278d:b0:419:3794:de39 with SMTP id b13-20020a056402278d00b004193794de39mr13622809ede.137.1648681439030; Wed, 30 Mar 2022 16:03:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648681439; cv=none; d=google.com; s=arc-20160816; b=C/14sP+7MIwxjwSiGMRL16UN0JJTMyfUmtuw7IIEZpudO6sH1Sfmq6HkIbnfqHplBI t/0N394D0ZumvNGSpns6pr/mmOOdlQBoHiiJtTktctiW3f4O/y9fnKl1Zct6Za7kGBFg hq4IWQXSKyP7EG8NMd/idJ+m/RbiOXAzyTPZeo2Prnnvuq+wffMRCUhQ5xFxgH5QnzpF y0VwgbU9omU5aeGtfxDs9E2LFY9oAyiRiW8sX8BI0Pzftt9pmUOIggiqBTm5bgUYvfRO qWfkuu6XHmidnN/g2tw5p5t6ZPXanIy1EGBK0G9e0T17oZtW9chs3LepZOzpKZ3vuCSB xWHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:in-reply-to :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=9wM6FQB7fW1D8tg4Fc2Q9KgBOZZpfHiBHzAL+ITMNbY=; b=HFHW4KAjbfC7EUhgVZgBq7sTUeaPvSNcd0x/Q0ZhMUDNWT3Ognu/DEWHSzYRYs62dv msiqy4C5DqojyaYBZCLI6O59VotAvvDHGFh9MFTeeDVYvapvVtvk25vwytoTk9enlYzB FRT74+E1wexqyP1C+ZzNnzOvcH6yuikczwbNArICrFu4Ukf6zTvK4pjYv/jP2lDw8zi+ 7M2ub6YFJLurmliWvuCsqztaPA7scgk4vOvGA5NIEjH1By6FXxZp1nEHzvzNNUoSas/k 9kzgL1Ww8rniiO7KDuou8YPnjJrAciXRkBEEEhvzwMP8uNKNVwxnaUocLm7+I9pat23Q 8HPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=o+QKq04k; 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=deltatee.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h5-20020a1709067cc500b006e06d4769f3si21936306ejp.692.2022.03.30.16.03.33; Wed, 30 Mar 2022 16:03:59 -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=@deltatee.com header.s=20200525 header.b=o+QKq04k; 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=deltatee.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346711AbiC3PWW (ORCPT + 99 others); Wed, 30 Mar 2022 11:22:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236742AbiC3PWV (ORCPT ); Wed, 30 Mar 2022 11:22:21 -0400 Received: from ale.deltatee.com (ale.deltatee.com [204.191.154.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2567C190EA0; Wed, 30 Mar 2022 08:20:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:In-Reply-To:From:References:Cc:To: MIME-Version:Date:Message-ID:content-disposition; bh=9wM6FQB7fW1D8tg4Fc2Q9KgBOZZpfHiBHzAL+ITMNbY=; b=o+QKq04kVAnT6POMwoZ/FBmjbv pwtdHUbqYteLwliqYlLp87bmyLjoTxqPaKqX0DfvX8VPMxhf4SyXoy3lN1+KY0/a+KTARCHcjqE9f 9JvwMouO7BVrkBwa/Om5HJ5mV9/I/+JemzvkbnqyWxYkQujweQFUyFJi2Tu38/YUce4FrgslV5aCW hOk5lkQTxolNxvjg5Ki3PJ5MttsKd8mt0JDz58udYckZ0pwluJ2cy6SjXGTLOxmF+OL+4V1ywbmLx 3s2gBG7qUwOZW8+WjdMTb01RsPb9NTjLyv2oefy112bazpDowFhzofy7djnA1amsAeCUMD7Uy4WLD KLlP7P0w==; Received: from s0106a84e3fe8c3f3.cg.shawcable.net ([24.64.144.200] helo=[192.168.0.10]) by ale.deltatee.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1nZa7Z-00D4UW-Ki; Wed, 30 Mar 2022 09:20:30 -0600 Message-ID: Date: Wed, 30 Mar 2022 09:20:26 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Content-Language: en-CA To: Shlomo Pongratz , linux-pci@vger.kernel.org Cc: linux-kernel@vger.kernel.org, andrew.maier@eideticom.com, bhelgaas@google.com, jgg@nvidia.com, helgaas@kernel.org, Shlomo Pongratz References: <20220330140823.28826-1-shlomop@pliops.com> <20220330140823.28826-2-shlomop@pliops.com> From: Logan Gunthorpe In-Reply-To: <20220330140823.28826-2-shlomop@pliops.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 24.64.144.200 X-SA-Exim-Rcpt-To: shlomopongratz@gmail.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, andrew.maier@eideticom.com, bhelgaas@google.com, jgg@nvidia.com, helgaas@kernel.org, shlomop@pliops.com X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Subject: Re: [PATCH V4 1/1] Intel Sky Lake-E host root ports check. X-SA-Exim-Version: 4.2.1 (built Sat, 13 Feb 2021 17:57:42 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-03-30 08:08, 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. > > The original code handled only the case where the devices in the whiltlist are s/whiltlist/whitelist/ > 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. > > Signed-off-by: Shlomo Pongratz This patch looks good to me. Much cleaner and easier to understand than the previous ones. Reviewed-by: Logan Gunthorpe Thanks, Logan