Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp462700lqt; Fri, 19 Apr 2024 00:36:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWZuSEj0WmsW7PSpnpnkJkTUZLGzzDONyL31jfexqVbBU4liCmKsfT8NQT0yN0ZkHvqpvtthuzG0UQ6ZJ74LsjzwbYz+ZdAUczanoRPxw== X-Google-Smtp-Source: AGHT+IGc2NUBauZsDHb4icrAWqCvF1/4UNuz/CG9ov20M8ttnWpw3RQDVyWbVJjKpwaKiyJgdgkV X-Received: by 2002:a05:6512:36c5:b0:518:bd38:1ed3 with SMTP id e5-20020a05651236c500b00518bd381ed3mr1002414lfs.53.1713512193179; Fri, 19 Apr 2024 00:36:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713512193; cv=pass; d=google.com; s=arc-20160816; b=jHYVdvuTtjQtRbzWqmQzm1hu0O8kH4C39LRRmZfaGRdBtT7szHJI0Vyhz8T4fTR4yN t76V0sL+jITLFREf9dvmWLh7jCjpJFxSLTjtXtV5YC8z0W1Q0lZ9/XTC/Z7/t508Yw5C UbYPk1u9BbJCkT99zMi4jn4Qkke0bVkMIPIVWIi+DmAwtnYwiI8LA37v/3/rC+05EYw9 SOFqSl2SID+s6ceq5K5GehmJMKZBWD4prqMSCmUn2zMXj3a58wO6hSO8dURMTo06gczw Ri2qcH0n9lmihq8eqSVb4X6fsY2zzEXhksMciJGaCJNq2BXwupPl/CnfS89XdEeAF92C r75w== ARC-Message-Signature: i=2; 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=+2a8wWsTtYmMsyv/Ujz06dWks3j8Yda7RxkhWx8gFOA=; fh=ySRVxk6BxvSybFKUz1oZ31T1345ii8jO7brtrsfL37M=; b=AytBLQ+8kDcPmm7zZGTS/usK9waWtTInqnwnMPhEQE35U7OZ6oxXh1JKyjrviiaTyY vzZAwXhsGJ6Kg/4htfOencrav8jfl7Cyd+UropdUnfnHRQ/pH7oLXOzG5WEJtxZEX4Sd xUPDh0Xh7R21E9VDr9VLi77IC5I7sGjjnE0A5l/n4GlZ0fstdvM2fn00TuFfziX/mH6Q qcrQmz2j51c54XyCOk2Ko3uxDVlNNFAbZipiCAJeDHzAr7vMeyrUqsF8OlSehNOs6+0W bzXdepElvU8nMuun3aGtUEt0tjdcCrQXRNy5Irc8VnOlGzHcrkp9KLIh34oJvdzEzD6q v9ZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=McI3rUdk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151115-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151115-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. [147.75.80.249]) by mx.google.com with ESMTPS id b9-20020a170906038900b00a557be8d562si1059555eja.265.2024.04.19.00.36.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 00:36:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151115-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=McI3rUdk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151115-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151115-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 E0B641F21FE8 for ; Fri, 19 Apr 2024 07:36:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 886FF4C3D0; Fri, 19 Apr 2024 07:36:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="McI3rUdk" 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 A3E5846453; Fri, 19 Apr 2024 07:36:18 +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=1713512178; cv=none; b=dvxgebFd49k81PR2b4bV2hbiIIx3oAwLHFFcyY4QXZehMq1MGfVK9w56FVFEf/x+2NAWqG9YM0Rrp1+7viY+UC04SDJ/hjL1T62nMcbVYH6R5VVeWFqjUwc1aq+fssls4Cs6OepLpBP0YKCVgb00y+7Ed5Rktah5sQfjAFJMHOk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713512178; c=relaxed/simple; bh=Y+PE+i9/isbjj3qorbMc3Yvs+fiun2TXziDvq9ODPR4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HPkoR/dAp+qC5krpivR6I6WfNP1taiIkZMn8ooBnhD68DoRuwe1dLn63qRMx8D4Zq+6MFKUGZOyPT3VZa/ZJ2pIYuc49ZRNxk5cXK77cFaoDlhCWa4HvDGVzMdxuUdztECuknhIx8vsUSwoLDnKBhMoBQe9w00RMCorbmAzQuoc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=McI3rUdk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05CB4C072AA; Fri, 19 Apr 2024 07:36:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713512178; bh=Y+PE+i9/isbjj3qorbMc3Yvs+fiun2TXziDvq9ODPR4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=McI3rUdkIx/edZ4XzqZpd27Tt3DhXs6611Kr3jwFQR7243R+DXbRyGO3nRIJFAchN mmJM75XghUK4c/xWOW1q5Pk3QwwBSffBE2sD8nFNKeodws8h8H9oY330AWyD2amK3o l//9i7FEKbxPGEyydZo+My12mkK/DM+PJ+2FVHY8mIlZyHAdcY12LchQ+xbzTXq4EH y6mVNI+VxulkCAQYYgGUj9RC1faDKlMPEJznqgRCzePUxSiWvW8YBESZiQLw1VkGlA GbX6OSoi/6Vh2ooA8Ud5iOicxC/ESQbXGoitsJQNqek4xGHVhwFowyup7fhH3v1pPG EQmVl1NGIndvg== Date: Fri, 19 Apr 2024 09:36:08 +0200 From: Niklas Cassel To: Shashank Babu Chinta Venkata Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, mani@kernel.org, quic_msarkar@quicinc.com, quic_kraravin@quicinc.com, Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Jingoo Han , Gustavo Pimentel , Manivannan Sadhasivam , 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 v3 0/3] Add 16GT/s equalization and margining settings Message-ID: References: <20240419001013.28788-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=us-ascii Content-Disposition: inline In-Reply-To: <20240419001013.28788-1-quic_schintav@quicinc.com> On Thu, Apr 18, 2024 at 05:09:33PM -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. > > 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 16GT/s > PCI: qcom: Add rx margining settings for 16GT/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 | 129 ++++++++++++++++++ > 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 | 72 ++-------- > 7 files changed, 201 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 > FWIW: I think the subject of the cover-letter should have been prefixed with: "PCI: qcom: " Kind regards, Niklas