lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:
 <SN7PR12MB720127C32746523921BCC3F28BFB2@SN7PR12MB7201.namprd12.prod.outlook.com>
Date: Mon, 17 Feb 2025 05:38:13 +0000
From: "Havalige, Thippeswamy" <thippeswamy.havalige@....com>
To: Manivannan Sadhasivam <mani@...nel.org>
CC: "bhelgaas@...gle.com" <bhelgaas@...gle.com>, "lpieralisi@...nel.org"
	<lpieralisi@...nel.org>, "kw@...ux.com" <kw@...ux.com>,
	"manivannan.sadhasivam@...aro.org" <manivannan.sadhasivam@...aro.org>,
	"robh@...nel.org" <robh@...nel.org>, "krzk+dt@...nel.org"
	<krzk+dt@...nel.org>, "conor+dt@...nel.org" <conor+dt@...nel.org>,
	"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
	"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, "Simek,
 Michal" <michal.simek@....com>, "Gogada, Bharat Kumar"
	<bharat.kumar.gogada@....com>
Subject: RE: [PATCH v2 2/2] PCI: xilinx-cpm: Add support for Versal Net CPM5NC
 Root Port controller

Hi Sadhasivam,

> -----Original Message-----
> From: Manivannan Sadhasivam <mani@...nel.org>
> Sent: Friday, February 14, 2025 9:26 PM
> To: Havalige, Thippeswamy <thippeswamy.havalige@....com>
> Cc: bhelgaas@...gle.com; lpieralisi@...nel.org; kw@...ux.com;
> manivannan.sadhasivam@...aro.org; robh@...nel.org; krzk+dt@...nel.org;
> conor+dt@...nel.org; linux-pci@...r.kernel.org; devicetree@...r.kernel.org;
> linux-kernel@...r.kernel.org; Simek, Michal <michal.simek@....com>;
> Gogada, Bharat Kumar <bharat.kumar.gogada@....com>
> Subject: Re: [PATCH v2 2/2] PCI: xilinx-cpm: Add support for Versal Net
> CPM5NC Root Port controller
> 
> On Wed, Feb 12, 2025 at 11:20:59AM +0530, Thippeswamy Havalige wrote:
> > The Versal Net ACAP (Adaptive Compute Acceleration Platform) devices
> > incorporate the Coherency and PCIe Gen5 Module, specifically the
> > Next-Generation Compact Module (CPM5NC).
> >
> > The integrated CPM5NC block, along with the built-in bridge, can
> > function as a PCIe Root Port & supports the PCIe Gen5 protocol with
> > data transfer rates of up to 32 GT/s, capable of supporting up to a
> > x16 lane-width configuration.
> >
> > Bridge errors are managed using a specific interrupt line designed for
> > CPM5N. Intx interrupt support is not available.
> >
> > Currently in this patch Bridge errors support is not added.
> 
> s/patch/commit,
Thank you for reviewing, Will update this in next patch.
> 
> >
> > Signed-off-by: Thippeswamy Havalige <thippeswamy.havalige@....com>
> > ---
> > Changes in v2:
> > - Update commit message.
> > ---
> >  drivers/pci/controller/pcie-xilinx-cpm.c | 85
> > ++++++++++++++----------
> >  1 file changed, 51 insertions(+), 34 deletions(-)
> >
> > diff --git a/drivers/pci/controller/pcie-xilinx-cpm.c
> > b/drivers/pci/controller/pcie-xilinx-cpm.c
> > index 81e8bfae53d0..c26ba662efd7 100644
> > --- a/drivers/pci/controller/pcie-xilinx-cpm.c
> > +++ b/drivers/pci/controller/pcie-xilinx-cpm.c
> > @@ -84,6 +84,7 @@ enum xilinx_cpm_version {
> >  	CPM,
> >  	CPM5,
> >  	CPM5_HOST1,
> > +	CPM5NC_HOST,
> >  };
> >
> >  /**
> > @@ -483,31 +484,33 @@ static void xilinx_cpm_pcie_init_port(struct
> xilinx_cpm_pcie *port)
> >  	else
> >  		dev_info(port->dev, "PCIe Link is DOWN\n");
> >
> > -	/* Disable all interrupts */
> > -	pcie_write(port, ~XILINX_CPM_PCIE_IDR_ALL_MASK,
> > -		   XILINX_CPM_PCIE_REG_IMR);
> > -
> > -	/* Clear pending interrupts */
> > -	pcie_write(port, pcie_read(port, XILINX_CPM_PCIE_REG_IDR) &
> > -		   XILINX_CPM_PCIE_IMR_ALL_MASK,
> > -		   XILINX_CPM_PCIE_REG_IDR);
> > -
> > -	/*
> > -	 * XILINX_CPM_PCIE_MISC_IR_ENABLE register is mapped to
> > -	 * CPM SLCR block.
> > -	 */
> > -	writel(variant->ir_misc_value,
> > -	       port->cpm_base + XILINX_CPM_PCIE_MISC_IR_ENABLE);
> > +	if (variant->version != CPM5NC_HOST) {
> 
> How about,
Thank you for reviewing, Will update this in next patch.
> 
> 	if (variant->version != CPM5NC_HOST)
> 		return;
> 
> Btw, what is the reason to skip these register settings for this controller?
> Especially the 'Bridge enable bit'.
Thank you for reviewing, Here Bridge enable bit is enabled with in IP & no need of Root Port
driver to handle Bridge enable bit.
> 
> > +		/* Disable all interrupts */
> > +		pcie_write(port, ~XILINX_CPM_PCIE_IDR_ALL_MASK,
> > +			   XILINX_CPM_PCIE_REG_IMR);
> > +
> > +		/* Clear pending interrupts */
> > +		pcie_write(port, pcie_read(port, XILINX_CPM_PCIE_REG_IDR)
> &
> > +			   XILINX_CPM_PCIE_IMR_ALL_MASK,
> > +			   XILINX_CPM_PCIE_REG_IDR);
> > +
> > +		/*
> > +		 * XILINX_CPM_PCIE_MISC_IR_ENABLE register is mapped to
> > +		 * CPM SLCR block.
> 
> Please make use of 80 column width.
- Thank you for reviewing, Will update in next patch.
> 
> > +		 */
> > +		writel(variant->ir_misc_value,
> > +		       port->cpm_base + XILINX_CPM_PCIE_MISC_IR_ENABLE);
> > +
> > +		if (variant->ir_enable) {
> 
> nit: you don't need braces here.
Thank you for reviewing will update in next patch.
> 
> - Mani
> 
> --
> மணிவண்ணன் சதாசிவம்

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ