Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1339942lqb; Thu, 30 May 2024 07:33:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVt7cpIUbZ2yF2z92cfaMYryateTYYiPqCvw1Ja39pv/ji7w4qO29uDgLgXsQ/BFLPQ6w7IJ7PgXoOQCvdREbnPSDmaakK/G1Y9Qm5gXw== X-Google-Smtp-Source: AGHT+IFw2GfvmVW8LAR1wRh/aHgsBqDqylC7Fg1dJTjlmn1V6L1btwQPJlksd6qdsR7uJDFkG7of X-Received: by 2002:a50:d4d8:0:b0:579:a956:76fd with SMTP id 4fb4d7f45d1cf-57a177d2720mr2201716a12.8.1717079611030; Thu, 30 May 2024 07:33:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717079611; cv=pass; d=google.com; s=arc-20160816; b=CSuuyYBcKEa4zT2uGqgNBnCInDFrH4JhSe1VWPTG9uI+eoNpBhq2ovRCcdup7l7nNy 7CstH6dG2riihwXzn71DZ85oGgkUYLM2d++3HLhRlYMY6xTG984VxVkAD2Mz3A8CATK3 k6PNbMnULv1MHW9GuQ/PcXfVO8ouBYPPMT1OaeTshUngu+wQ4iEpEV3keiL+4d7DIj4O xKyuTEI4RTzyzrNGcKHAwE8KKG1RIRj/4D9X9qzme9UCHK2OuhHxLxt3VIezFhMuIl5M g57Dh9M6uwZ6qP+kfO823TwsR/3aU9SGq4HZq11kyo3Ix9Q575cbtMimKqp6AqreV7Be zUmw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9rsxfg0ajNel8sjNgxKotar2LATgR1rr/+y6RU/woKE=; fh=f0p8CiHLBUYkMWR11MZqqF0YCjJs8wn0a2+2fD/K3pk=; b=ku/pkoWQbwTBqsgL7Vu2Y3DbazF1tlfDodHQ8rQlWzcQDfydWLCYAxWvJdPuOaSJHb PXsZxg74bJZgmABJjT5k5pgYUfek5dmCczM7u6f0oU8n1c49+aA+qvYR8UESc/I3LDvd 40UhirnzxsLplOS1uOVV2IBDP4MCK5cP9I19DTSKMw0dT1+nApdSfwn3zaCWg5JipqaE jfmbz7tjVeYroF2PBHkcg5g9qA4DXgTqON7hgVj1Mkd2sw+Aqn5l4ZOQmf1dylEHGKvA RUdpR+6EewUNUNxc4wZ0DJHfdXxbKapYgvGVI5TyEdPEWVVWR9hBr2hJfb/8VYUkBO+M 1YcQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ieQgh+8J; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-195525-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195525-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-579db1e7084si4272384a12.445.2024.05.30.07.33.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 07:33:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195525-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ieQgh+8J; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-195525-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195525-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5150C1F23E38 for ; Thu, 30 May 2024 14:33:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B1AC1E4AD; Thu, 30 May 2024 14:33:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ieQgh+8J" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 9E0A116EC1E; Thu, 30 May 2024 14:33:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717079584; cv=none; b=Ze2afb8/b0QhwU8kLRfrRSh4EeFxK03G1BC2wLw7phGCWMsQFL4u5X702Fgt6G6SKRbLnHHEeBuy+3EabhHtPFRCltsPpYQKx75xgV7llVXqjRNgvQwcvRVjWTjd5gSvFQIJsdhklRZ6WYEwkgI38H1p3iLZYC3BzOahIVqXamw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717079584; c=relaxed/simple; bh=FgNZ6UjOzMWytcVycdPrNhtaXn45l9qWzklpNQ44q/g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gjtl3G8F65D+IAF96jpJFiQ8VW+lrHARAK6+o3m9xBx+IksS1Z8+Fp8vkigdS6aMVPVSlp3tpbSrlhHIF9WCWZURbE3kt8n05h3UoBicWrndf83iAdr9qboGgpaM11RPswaeKCruCHVwX1ntsYoSlCuNdo7CQHkfjcjS7HDOqhc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ieQgh+8J; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E047C2BBFC; Thu, 30 May 2024 14:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717079584; bh=FgNZ6UjOzMWytcVycdPrNhtaXn45l9qWzklpNQ44q/g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ieQgh+8J1zMd+M7lZKkSMAAW+nBzU7iyminVY9mOzC4OvUHf76yVw0iUFzkm7v6Cz H9OtSrjVMLk8g4rAZAqChoL4sADAT2SLccwSJwgZure+lRUweRMgkccCh6v6JiKPif 2SzjvDkobOkdS2uQf1dpAyNAf0hlQyYbpcfg/KpXu4Ah5a4up2e0n3W97oBbklQwrb pVTBRLlgyHeh3B20/aJu+0wjKFMm1PT3HZFgmneyGZBvNvaWycAQjZItGv8rx2QEnz sN1fr7Rm4cmUus6x1WYwpoULzIOeES1gLQYNwCaGtIP+fLIVDJiM009oWCV5UsFznr DxiyTi/Ls9Eig== Date: Thu, 30 May 2024 20:02:54 +0530 From: Manivannan Sadhasivam To: Shashank Babu Chinta Venkata Cc: jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, manivannan.sadhasivam@linaro.org, andersson@kernel.org, agross@kernel.org, konrad.dybcio@linaro.org, quic_msarkar@quicinc.com, quic_kraravin@quicinc.com, Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Yoshihiro Shimoda , Serge Semin , Conor Dooley , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v4 0/3] pci: qcom: Add 16GT/s equalization and margining settings Message-ID: <20240530143254.GE2770@thinkpad> References: <20240501163610.8900-1-quic_schintav@quicinc.com> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240501163610.8900-1-quic_schintav@quicinc.com> On Wed, May 01, 2024 at 09:35:31AM -0700, Shashank Babu Chinta Venkata wrote: > Add 16GT/s specific equalization and rx lane margining settings. These > settings are inline with respective PHY settings for 16GT/s > operation. > > In addition, current QCOM EP and RC drivers do not share common > codebase which would result in code duplication. Hence, adding > common files for code reusability among RC and EP drivers. > For the next revision, please rebase on top of [1]. - Mani [1] https://lore.kernel.org/linux-pci/20240518-opp_support-v13-2-78c73edf50de@quicinc.com/ > v3 -> v4: > - Addressed review comments from Mani and Konrad. > - Preceded subject line with pci: qcom: tags > > v2 -> v3: > - Replaced FIELD_GET/FIELD_PREP macros for bit operations. > - Renamed cmn to common. > - Avoided unnecessary argument validations. > - Addressed review comments from Konrad and Mani. > > v1 -> v2: > - Capitilized commit message to be inline with history > - Dropped stubs from header file. > - Moved Designware specific register offsets and masks to > pcie-designware.h header file. > - Applied settings based on bus data rate rather than link generation. > - Addressed review comments from Bjorn and Frank. > > Shashank Babu Chinta Venkata (3): > PCI: qcom: Refactor common code > PCI: qcom: Add equalization settings for 16 GT/s > PCI: qcom: Add RX margining settings for 16 GT/s > > drivers/pci/controller/dwc/Kconfig | 5 + > drivers/pci/controller/dwc/Makefile | 1 + > drivers/pci/controller/dwc/pcie-designware.h | 30 ++++ > drivers/pci/controller/dwc/pcie-qcom-common.c | 144 ++++++++++++++++++ > drivers/pci/controller/dwc/pcie-qcom-common.h | 14 ++ > drivers/pci/controller/dwc/pcie-qcom-ep.c | 44 ++---- > drivers/pci/controller/dwc/pcie-qcom.c | 74 ++------- > 7 files changed, 218 insertions(+), 94 deletions(-) > create mode 100644 drivers/pci/controller/dwc/pcie-qcom-common.c > create mode 100644 drivers/pci/controller/dwc/pcie-qcom-common.h > > -- > 2.43.2 > -- மணிவண்ணன் சதாசிவம்