Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1396216rdd; Wed, 10 Jan 2024 19:33:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9eTrku2NCsn7ajejLpN1tka5HcSdR5h3sGtmkAkXU5XOXxDs4Q79Y/xA7PjD4zf+QEhEg X-Received: by 2002:a05:6a20:a112:b0:19a:42e4:1908 with SMTP id q18-20020a056a20a11200b0019a42e41908mr446936pzk.56.1704943994552; Wed, 10 Jan 2024 19:33:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704943994; cv=none; d=google.com; s=arc-20160816; b=1FzsBCEt6Deert69lKL8JSst11u2aGNBAiNkk7UD/3c/es3kx1GHy2RK6+oThH5Hru JrCOYIkA3L/WkkT8vP7UpQDsUcGwU/lYXfXpp4ESa0afoftcnia3UgOjwUIZeQk8MWON OjrUCnJMTBLerKWxUtIsLpclWiOwGxM1/0A15L/q6ldQM8g4sHLgf2pevWPvCc2S1H/P l47z5ZvHc59RUpu+BhrQDFSiwvC61YYpd/Bo7hubQ/LUDFs4lUSgAD+XnSrAZg/iUp1l eKMuwvLfImkuffkOP2spbIoryuW7hqSRNKbtLqQ+c5lejhX9lMuKEu9Tobw8TRRLshN9 ZTcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=iScWVuqhfpheqwtS8P8/yXNx/aCMkmPoM914hptI/Iw=; fh=Adi5oVEXJwOZHAZNdI8xxl336sFZsxHFsfO2/gFPmbo=; b=bP8KjPYTz7+gV+uQvnTYD1q0nXwB8Su2fykHknrUc3/aLXjRTr/zT0ZjOaSUrMckwS 0kL7vqkD3mCduEYgnVPB6U8pfhTVr6Hw4Lk0uds+McqWnDX5nF5A3Nbaev5FChid5GJm GZLzEAixMeYWR1gyLhBGAz1ccxfBbRWzga6DS/h7aD9wstDX/F+33r0zdagUSr0PA+8i ardlaZxYhAN6LQfDbKH3UPCcaPcAk9s+HDy/w55Y/88WpLUNtWYpGhyytF4KVHY6ZPgA LzDGXWJE6HQaz3ntHfo4SNAH2C0LrhOk6GkrkaIGigyhaLXp4mtfMoWjKrkbPyDjO9Is /nzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nX+1BjAo; spf=pass (google.com: domain of linux-kernel+bounces-23032-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23032-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ka3-20020a056a00938300b006d79648a64dsi160196pfb.31.2024.01.10.19.33.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 19:33:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23032-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nX+1BjAo; spf=pass (google.com: domain of linux-kernel+bounces-23032-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23032-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3947B283100 for ; Thu, 11 Jan 2024 03:33:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 54A40110F; Thu, 11 Jan 2024 03:33:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="nX+1BjAo" Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 537FA20F5 for ; Thu, 11 Jan 2024 03:33:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1d45f182fa2so41895425ad.3 for ; Wed, 10 Jan 2024 19:33:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704943982; x=1705548782; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=iScWVuqhfpheqwtS8P8/yXNx/aCMkmPoM914hptI/Iw=; b=nX+1BjAofLKSavGr9BrS/IxpxaO8EYYt4ruNfmsymXIud7gdiXMtRKb4MiyaVEMrPF qUMv2o8vkPqLOUKit7GZSFDz9r/kNXMZNWwimIRKAi/G0BkBT12/SflZStMJW+o6WjMf R7dFmrJDKbFpVfhIdaumUeOceKbrdGJ8DJwam5ATw0/lIRoVD00lFfzxSBLGKjwKJIYH EJSpWre2w0gIB1A6AfwX6K1Ah1AGtMBnFVwZTyShxhmcy+6AL6ijfEC21e4FadUtfcz4 qAr4iMjzDuASVef41kbt02Ka/STFQzVaixD2MZtzus3jdOk7rkIZhHAeS+rc4jURvSZv 6K2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704943982; x=1705548782; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=iScWVuqhfpheqwtS8P8/yXNx/aCMkmPoM914hptI/Iw=; b=ZZQib7w37VTOfAsNZd5qdmUj4UQrzzqsXpJUyXWYL5FC0GJdDui6rgrZzIeOPHsWYx MdFVXoAme9VUaMudIhgXczppa3aTF62TDkYaYDno0ldSXdb/nEf8igbXRaVZ7yORV3+Z MK6VR0QQ1ltOk1TmLOp/SSCx5pCnucc7fYwCOLSpzPOa5ryCLlXJaoHsWCaF2MKAbAjQ 0wWamuaK7z57T/MrxTnGZ/f8xyevecoiUz5DvIHRV4Xm3q6DDdmWDgFXUZkA1IaYXXcj +PWTkv/xWCjhC1kRHKhWJ4k2eGrDUjZGcSLr/7y2090Gk3JFmSDBvZhm8CaBeA7j4CHc t+XQ== X-Gm-Message-State: AOJu0YwWF/a4QYOwM48x/kT7jIcOO5RJ3TR622u7RxVd2NGiFcGqSUos p/Syfjxh38gtVSK8ji3KfHxcQmNuKGefmw== X-Received: by 2002:a17:902:eb83:b0:1d5:89c8:3fc9 with SMTP id q3-20020a170902eb8300b001d589c83fc9mr483209plg.1.1704943982624; Wed, 10 Jan 2024 19:33:02 -0800 (PST) Received: from localhost ([122.172.81.83]) by smtp.gmail.com with ESMTPSA id kk11-20020a170903070b00b001cf96a0e4e6sm80235plb.242.2024.01.10.19.33.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 19:33:01 -0800 (PST) Date: Thu, 11 Jan 2024 09:02:59 +0530 From: Viresh Kumar To: Krishna Chaitanya Chundru Cc: Bjorn Helgaas , agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, vireshk@kernel.org, nm@ti.com, sboyd@kernel.org, mani@kernel.org, lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, rafael@kernel.org, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, quic_vbadigan@quicinc.com, quic_nitegupt@quicinc.com, quic_skananth@quicinc.com, quic_ramkri@quicinc.com, quic_parass@quicinc.com Subject: Re: [PATCH v5 5/5] PCI: qcom: Add OPP support to scale performance state of power domain Message-ID: <20240111033259.7h2jdr76wvkfnges@vireshk-i7> References: <20231102053013.7yt7pxin5awlu7w7@vireshk-i7> <20231102120950.GA115288@bhelgaas> <20231103051247.u4cnckzstcvs4lf5@vireshk-i7> <15a98ec0-214b-218b-1e3c-c09f770fce2e@quicinc.com> <0ba9f2af-169e-a9a2-9ae4-4c6a70b0a94e@quicinc.com> <20240110065757.xde2nvpr3z7c4isu@vireshk-i7> <376b3716-46ff-2324-73fc-f3afa3f7af1c@quicinc.com> <20240110073807.sqwmsyr6nmigg6zc@vireshk-i7> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On 10-01-24, 18:28, Krishna Chaitanya Chundru wrote: > it might be less only for now may be around 20 opp entries, but PCIe spec is > being updated every few years and a new gen > > gen speed will release, right now PCIe GEN6 is released but I don't we had > any device in the market now and GEN7 is in process. > > So in future it might become very big table. Either we need to come up with > a framework in the OPP to select the BW based up on lane width > > for particular speed or use the driver way. Lets solve the problem the right (current) way for right now and revisit the whole thing when it gets complex ? So I would suggest configuring the bw via the OPP framework only, since it takes care of that for all other device types too. We can surely revisit and try to do it differently if we find some issues going forward. -- viresh