Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2351720rdb; Wed, 21 Feb 2024 05:15:19 -0800 (PST) X-Forwarded-Encrypted: i=4; AJvYcCViimKYBYRkuUlYWiU32Ddyf1l3G8yIKUn9iyeeSuKPkW9qrDeIpicrBN6xZv2u8/CP+lOCHP8yTQMcMfbc0MlzLN/N4Dtn7DqwCVxn6Q== X-Google-Smtp-Source: AGHT+IEJNZdI1dfJzai3phkudTkJqb30kB45zImS0xfBQgtC4EBdRBLQPFpH+yxOupUidY0g8SUJ X-Received: by 2002:a05:620a:8386:b0:787:4cae:d21f with SMTP id pb6-20020a05620a838600b007874caed21fmr16719830qkn.13.1708521319643; Wed, 21 Feb 2024 05:15:19 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1708521319; cv=pass; d=google.com; s=arc-20160816; b=FlAQ5JsUHVUPJABvoZ+/4wZOQSZ1S22qgBIMQuRMLcEIB75Tz9nfCYmorDzuxv+ugW sdJSeegut0MwFVrDTz0tYS9lxT0d8kvq0oDhrES0yE1U/PKFdxBnHTR4uZeNmiolVNL/ J+Qf2KzGcEqeCgYzhVUiEkm8WyN3xm4UbU/IVxk6lEwW2vSnLW5lFza9Nsx7KdiWNEd1 Z3kVJ7W+paFGkpwxq//6n2nA5ewZiKK/7SrosX1XTjmBpz8aJiSPUMER2Aqt2eLstfa0 kFQPe5+2yMDvfSoHldlYOPJnsAIzKunmAKRuQ9fDHStqfCX8cykArc4GCtJwJchMKe0j CeVQ== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature:dkim-signature; bh=AjrVEp3fpkZRCO/o25RmtJVX3tFJ8i0+SruCDOkqxVc=; fh=s3p/+9pn/U5Rpf8Nrk6sZQ0PpwN6W9zEjnHG6XhnPd4=; b=Xs/6YFkDyGX2tzrcp7+85gv3UAjpzdAPmRw58gHLMTut3k0sDLsyOGWeLP1S+LG3iO XPLd5XqHkJ0MkQqG+FWtlW2ihM0r6WN0h0qVIqMhGEMnZa4W2y4VSd8YGnxixa/QO7WA M+4KRoM90hTKyZLogdDznP/DtThS9K57SRTirEdNtrLqaORyl5eAk/9vqABJh5rYiUjm TdEtONQsczAXRKIRTsj8EHdZi6jjqHfTxPirxYIkiOdbvVraOY/GjczVLDs9u2ZgOo87 zlXh2I2E7kTRhCXF2WVJAZKn19qzYNCKfS7tPEg0VRVanR+o8R1toZGgbrlyL0mQbkm6 20vw==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@iokpp.de header.s=strato-dkim-0002 header.b=SpodSi7z; dkim=neutral (no key) header.i=@iokpp.de header.s=strato-dkim-0003; arc=pass (i=2 dkim=pass dkdomain=iokpp.de); spf=pass (google.com: domain of linux-kernel+bounces-71282-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71282-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bk2-20020a05620a1a0200b00787268097dbsi11590120qkb.637.2024.02.21.05.15.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 05:15:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71282-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@iokpp.de header.s=strato-dkim-0002 header.b=SpodSi7z; dkim=neutral (no key) header.i=@iokpp.de header.s=strato-dkim-0003; arc=pass (i=2 dkim=pass dkdomain=iokpp.de); spf=pass (google.com: domain of linux-kernel+bounces-71282-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71282-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 158BE1C23446 for ; Mon, 19 Feb 2024 12:09:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64A322E40C; Mon, 19 Feb 2024 12:09:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=iokpp.de header.i=@iokpp.de header.b="SpodSi7z"; dkim=permerror (0-bit key) header.d=iokpp.de header.i=@iokpp.de header.b="l3tiWElU" Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [85.215.255.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D484C2DF9C; Mon, 19 Feb 2024 12:09:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=85.215.255.51 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708344566; cv=pass; b=g0y2IxYXAe7qSub1lW/NXsCADapRRvZqbPrZJjMbESRkxSuPcc1bD/cMa8PZjfnvpWsthAhR7mlWTCgHhDaOGY/EumpbZ1tlV+WrxItPLkx3Zf8ZK49pE1GSubi4P7WH0LxbrLRIeV7wkB8U44yXocYO7JUS3QYPcK49dD+9Aec= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708344566; c=relaxed/simple; bh=AjrVEp3fpkZRCO/o25RmtJVX3tFJ8i0+SruCDOkqxVc=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=PKZgYT/JkUOBQPK7u63GwepypgIV0VrVYzR02A7J2CpoBjLFZNjPN8EAR/O+B4F+MHVjRRH4GIziAA9un2oqf9/YVEyEtZ6rKRLqDP5OFVZVEs5tFuq4xI+Lh+uV/mcjeN6XcAXlbH+HF1GNLxk7YOQOjQs9nuteCScZj/AncHI= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iokpp.de; spf=none smtp.mailfrom=iokpp.de; dkim=pass (2048-bit key) header.d=iokpp.de header.i=@iokpp.de header.b=SpodSi7z; dkim=permerror (0-bit key) header.d=iokpp.de header.i=@iokpp.de header.b=l3tiWElU; arc=pass smtp.client-ip=85.215.255.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iokpp.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=iokpp.de ARC-Seal: i=1; a=rsa-sha256; t=1708344556; cv=none; d=strato.com; s=strato-dkim-0002; b=qcCuu30vrT9ipND9ROtbvG+H753q3gyJ4pvPZo0p0jDe+PLmdxKqiNoBkXgGL01um0 u2bcJDBrLzNNgSCIix/D3bnfcjN3N0ty1Pi59XGnEAbLeXLZFrP44yxHlt6DgYxBfE5c SIgPu6DnEmDG35wCtY0VZ8kT9bzFAPGQQ1njmAlNQyo+1IzON7vu1pY+K/LRirg62VG/ GSEkQwTEpfUW6aysGnhd+ClmofgBDF4DfaoELM2hKyS/ichqAcVvqmNMqSyD4JIRjS34 e067damlRfMPf85/1ZvtCvy347kvJrwRfk8+Urwo2hYnryJC+5KfYRiwv9wIOFLNczSF X6sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1708344556; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Cc:Date: From:Subject:Sender; bh=AjrVEp3fpkZRCO/o25RmtJVX3tFJ8i0+SruCDOkqxVc=; b=U/N6tOSurMwh9euZTjLenRadLMg+TvdrX9Yc8jqydZQbj0hHTY9mgt0iEdRHuRxtyX acTrYx4/slsIXmPtHL1qW7wSlJDb/k1tu6FG1fYlNZO6jyJ6ClYjexmrHJpKKYhWG2EM /UHIRUMC0b8qCMKLBEq9QNZrt4NzUXaHrlmpxJBXC5MrupGfh4gy2UQj5g+MMECYawLB omdr+Y8pf+t09JUB5tg/wJAqr0UST1433TnS2OCIU6ReO9iwR5o8C4B37kdPvNMQUk2R /QHqYlXZ08K1+UYYl66fzMvUxHwfxY2CAS0MoGYot0M9z21VyijkjkAMtkeetAYSC3rw EtMQ== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1708344555; s=strato-dkim-0002; d=iokpp.de; h=References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Cc:Date: From:Subject:Sender; bh=AjrVEp3fpkZRCO/o25RmtJVX3tFJ8i0+SruCDOkqxVc=; b=SpodSi7z0nOve6xepgf+5NIJ3W/dFpmsvbfyQ2CNNGRTaGc1iSgPkZLcdFLMmh4r5N lZZ4Mi4aGk+m9r2jLQft4nL+IW6MxE1Y29VLZubaq2JaI+g1SxPOIYsKNuzRVkDQ5Zim qX+sJVtbt40Bq+bulrWE/KCEMEEr3aS9uqi7z/+0glwYNHa3ws9tOouNh2ngJM615cZ6 GgRu2w6k91okdtZbX+2laOjcYmouHqn1mr/4fnC6E7+XYevKJHz/cMnEM6Y8R4xJQrqj +nAc/vwDa9zMbXzjvyNLplcRBro2bJwCveksLLayZlYZFucQvvPGwWmZRLEc0Gm1cdrp 10jQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1708344555; s=strato-dkim-0003; d=iokpp.de; h=References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Cc:Date: From:Subject:Sender; bh=AjrVEp3fpkZRCO/o25RmtJVX3tFJ8i0+SruCDOkqxVc=; b=l3tiWElUoTRAGkwsTxJHK4fOZt2M2ZKN/F4JiVqegz2UlxKYdDF26KL89t/pAAl/SO hFfuhpMCYWdlsK9qkbAQ== X-RZG-AUTH: ":LmkFe0i9dN8c2t4QQyGBB/NDXvjDB6pBSeBwhhSxarlUcu05JCAPyj3VPAceccYJs0uz" Received: from [10.176.235.119] by smtp.strato.de (RZmta 49.11.2 AUTH) with ESMTPSA id z34ed901JC9EFwE (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 19 Feb 2024 13:09:14 +0100 (CET) Message-ID: Subject: Re: [PATCH v3] PCI: Increase maximum PCIe physical function number to 7 for non-ARI devices From: Bean Huo To: Siddharth Vadapalli Cc: bhelgaas@google.com, helgaas@kernel.org, sathyanarayanan.kuppuswamy@linux.intel.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Bean Huo , stable@vger.kernel.org Date: Mon, 19 Feb 2024 13:09:14 +0100 In-Reply-To: <37d21806-d964-40e0-a5a5-3173996e601f@ti.com> References: <20240219112422.54657-1-beanhuo@iokpp.de> <37d21806-d964-40e0-a5a5-3173996e601f@ti.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Mon, 2024-02-19 at 17:30 +0530, Siddharth Vadapalli wrote: > The function "next_fn()" seems to provide the next valid function. > Therefore, if the current function is 0 (fn =3D 0), then the next valid > function will be 1 which is returned by next_fn(). It extends > similarly > until the case where current function is 6 (fn =3D 6) which shall > return > the next valid function as 7. So all 8 PFs are still treated as valid > and there doesn't seem to be any limitation. Only in the case where > the > EP doesn't support ARI (there is no function 8 (fn =3D 8)), the call to > next_fn() with the fn parameter set to 7, will return -ENODEV which > seems to be the expected behavior. >=20 > Regards, > Siddharth. yes, you are right, the fn 7 has no next_fn, hence should return - ENODEV.=20 ignore this patch! kind regards, Bean