Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1372581rdh; Mon, 25 Sep 2023 10:37:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHtO/tiPyy6G8IfDWPWV3mLKPfjPkNuihJCsjYC4JzwS0CPa3UIRIdTcfQdxkVnwW4l13eA X-Received: by 2002:a17:902:c94f:b0:1c5:f663:1722 with SMTP id i15-20020a170902c94f00b001c5f6631722mr5393375pla.6.1695663478466; Mon, 25 Sep 2023 10:37:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695663478; cv=none; d=google.com; s=arc-20160816; b=mZD51t1sR/zl/r1uZdMcaJsmzQ1b2BgjD48xZn6BybChRVk+O3zdjom/7Wtrl/4wW9 L8525yAEHJxA/irDXFWwOl/Q9MyJRIZFDp32uM7ro1qv/me5JYjVdlnhWklScdJOCFnP XADkX5VdbEsM0J/zJD32sqjKrfifjeBDmooxHvmK/jdgHB2NcoSpvyfsCo7gH6KCVaMN uDsPCt+pT8goxBQXqRh5C/rV3cYlQsjG+5KpufOTzxyaGhYhWuGVjIG1W6YFZJlIsrjL izDDfJvIvzXQPzPohhaEsCO0ctGXf/9juJ1w4sX33YlD4NP8AJ0WSD0YgFVkZJez96ax 2cmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=QeiscEmudwX6iiv93Ap/+0Zo6O9kpRXW1Uvz3CHutP8=; fh=HeQeI37vOd97cCIHFvG73Tq84TaKLV4OrGDCSKA4sNk=; b=JhenOAbGp1aspHRpXJrImuLcoKQLcq99KWCBPG27Qsy1IM34xqAQSm6BMdQQayWiEb R8mrRTbPuS/hph871TSGj3wS0M/i4ojhMiWNoNuD3ZPM4nMQjqfkYoTw34/C5NqVVO30 ZTjuRZ87cgqHDvEgyGlgfNVJ8bUm1t34mTgiktbZ0PuMh2oVpUx2fyIhdeElbsK8pobb oTlikYkmQmRvnVYIRiSllJVDcZJMhTaLElB8faFj4KcEcDwkGVFwWTAIGPJWxylZLFDd v2OssKQ62RHEj0YVJhC+nNDFlVq9+isvfEEOSzoqZh57vdFYCjGAEiJnaoI93H+DvLsW XKkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jSkc+fCf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id h6-20020a170902680600b001c434927d8dsi10654336plk.131.2023.09.25.10.37.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 10:37:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jSkc+fCf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B67CB82A855E; Mon, 25 Sep 2023 03:35:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231888AbjIYKfF (ORCPT + 99 others); Mon, 25 Sep 2023 06:35:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231276AbjIYKfE (ORCPT ); Mon, 25 Sep 2023 06:35:04 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A0CAAB for ; Mon, 25 Sep 2023 03:34:57 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-9ad8bf9bfabso764940766b.3 for ; Mon, 25 Sep 2023 03:34:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695638095; x=1696242895; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=QeiscEmudwX6iiv93Ap/+0Zo6O9kpRXW1Uvz3CHutP8=; b=jSkc+fCfLAsecscoLI9FBb97bcdHrzluVoezWRD9ytOAEMmqAm+/cYRV0pVLc3cxQf iHos+aTmOnGinypCVd8kEvk7GVz25f+0jfOZ4T1ivhq0qNwQSELO3oDqVi8LaIuhRfW6 FcgaX3OkLA+jBdSHc7ZdRKVgd/RXXhDLeyspeO0B8qLjCHckfVTrwRXGd8Wga8lkPYa7 tsb9LsoPl/CLeowOfdrMdDRoy+NbEm9Sgqv4IThG/cKYjR9gwr2M6szt/Hec7qHiq6ur PMfwtn9XQRPS3P4+IFwBoRpi6cTuQTTl1riaV8SMyACdPBaMmYqbPSKMzzS+tOJImxQa miXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695638096; x=1696242896; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QeiscEmudwX6iiv93Ap/+0Zo6O9kpRXW1Uvz3CHutP8=; b=MV40U7dI2ijb8O5ik3fEXdT0shSJpUUMf2+l08ID3EAJXjB5b9fVQqWVJdxbc8hnzJ yQLzUoL6muJ+fCd36oMPoJGttQSBWF4y4AMRXkuQJuc9CFIqqDLWM21DvI06OZoc9JAN +7zrOa5REeUMPFiZ+lreLg8fhf9YMjAVkcIGLNKfWp4htv7vfijVbQMMpj6U0MxdbhjL kforAJhOz4cikTbpicEXZYjbytPEeU8oMGLtUoO5pnsVhb2GAr9zI1WpgBLfZIM+N2BI rATfliVz/aXduB6fS18W6BJ383Laui44bixZs+JGGMbmUk5/l0CT3LwuDLhLHwKyjhiS 9Pew== X-Gm-Message-State: AOJu0Yw0GE0DYf7hooitQdqP82KWjBwpuqZGu5/A+FY1QzchNWud077w anqQvS6GxsQXsN5PrjRdOze+nA== X-Received: by 2002:a17:907:77c7:b0:9ae:5a9f:6aa0 with SMTP id kz7-20020a17090777c700b009ae5a9f6aa0mr5178905ejc.33.1695638095705; Mon, 25 Sep 2023 03:34:55 -0700 (PDT) Received: from [192.168.101.165] (178235177023.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.23]) by smtp.gmail.com with ESMTPSA id g13-20020a170906594d00b009a1b857e3a5sm6120674ejr.54.2023.09.25.03.34.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Sep 2023 03:34:55 -0700 (PDT) Message-ID: <18635bed-b7e3-4acb-b176-cd9f87a35c7f@linaro.org> Date: Mon, 25 Sep 2023 12:34:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] PCI: qcom: Add interconnect bandwidth for PCIe Gen4 Content-Language: en-US To: Abel Vesa Cc: Manivannan Sadhasivam , lpieralisi@kernel.org, kw@linux.com, andersson@kernel.org, bhelgaas@google.com, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230924160713.217086-1-manivannan.sadhasivam@linaro.org> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhx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llsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 25 Sep 2023 03:35:06 -0700 (PDT) On 25.09.2023 12:33, Abel Vesa wrote: > On 23-09-25 10:57:47, Konrad Dybcio wrote: >> On 24.09.2023 18:07, Manivannan Sadhasivam wrote: >>> PCIe Gen4 supports the interconnect bandwidth of 1969 MBps. So let's add >>> the bandwidth support in the driver. Otherwise, the default bandwidth of >>> 985 MBps will be used. >>> >>> Signed-off-by: Manivannan Sadhasivam >>> --- >>> drivers/pci/controller/dwc/pcie-qcom.c | 7 +++++-- >>> 1 file changed, 5 insertions(+), 2 deletions(-) >>> >>> diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c >>> index 297442c969b6..6853123f92c1 100644 >>> --- a/drivers/pci/controller/dwc/pcie-qcom.c >>> +++ b/drivers/pci/controller/dwc/pcie-qcom.c >>> @@ -1384,11 +1384,14 @@ static void qcom_pcie_icc_update(struct qcom_pcie *pcie) >>> case 2: >>> bw = MBps_to_icc(500); >>> break; >>> + case 3: >>> + bw = MBps_to_icc(985); >>> + break; >>> default: >>> WARN_ON_ONCE(1); >>> fallthrough; >>> - case 3: >>> - bw = MBps_to_icc(985); >>> + case 4: >>> + bw = MBps_to_icc(1969); >>> break; >> Are you adding case 4 under `default`? That looks.. bizzare.. > > That's intentional. You want it to use 1969MBps if there is a different > gen value. AFAIU. Gah right, then the commit message is wrong. Konrad