Re: (subset) [PATCH v21 0/9] PCI: EP: Add RC-to-EP doorbell with platform MSI controller

2025-07-21 Thread Manivannan Sadhasivam
PCI: endpoint: pci-epf-test: Add doorbell test support commit: 5d4da5f8092e5a77ae371ae1112283b59790ac22 [7/9] misc: pci_endpoint_test: Add doorbell test case commit: a1a293e709a4ec0fa2e4253993a4b75f581c6cf2 [8/9] selftests: pci_endpoint: Add doorbell test case commit: b964b4894fcfc72e

Re: (subset) [PATCH v21 0/9] PCI: EP: Add RC-to-EP doorbell with platform MSI controller

2025-07-21 Thread Manivannan Sadhasivam
b [2/9] PCI: imx6: Add LUT configuration for MSI/IOMMU in Endpoint mode commit: 234b9258c6907cabbb2594ee366286d35ff056f3 NOTE: I've dropped the Tested-by tag from Niklas since the tag was only given for the EP patches. Best regards, -- Manivannan Sadhasivam

Re: [PATCH v19 01/10] PCI: endpoint: Set ID and of_node for function driver

2025-07-09 Thread Manivannan Sadhasivam
On Tue, Jul 08, 2025 at 03:06:02PM GMT, Frank Li wrote: > On Tue, Jul 08, 2025 at 04:51:55PM +0530, Manivannan Sadhasivam wrote: > > On Mon, Jul 07, 2025 at 12:41:22PM GMT, Frank Li wrote: > > > On Wed, Jul 02, 2025 at 11:19:36AM -0400, Frank Li wrote: > > > > On W

Re: [PATCH v19 00/10] PCI: EP: Add RC-to-EP doorbell with platform MSI controller

2025-07-08 Thread Manivannan Sadhasivam
On Tue, Jul 08, 2025 at 01:12:02PM GMT, Niklas Cassel wrote: > On Wed, Jul 02, 2025 at 06:57:23PM +0530, Manivannan Sadhasivam wrote: > > On Mon, Jun 09, 2025 at 12:34:12PM GMT, Frank Li wrote: > > > > Frank, thanks for your persistence in pushing this series, really >

Re: [PATCH v19 01/10] PCI: endpoint: Set ID and of_node for function driver

2025-07-08 Thread Manivannan Sadhasivam
On Mon, Jul 07, 2025 at 12:41:22PM GMT, Frank Li wrote: > On Wed, Jul 02, 2025 at 11:19:36AM -0400, Frank Li wrote: > > On Wed, Jul 02, 2025 at 08:25:17PM +0530, Manivannan Sadhasivam wrote: > > > On Wed, Jul 02, 2025 at 10:40:53AM GMT, Frank Li wrote: > > > > On W

Re: [PATCH v19 09/10] pci: imx6: Add LUT setting for MSI/IOMMU in Endpoint mode

2025-07-02 Thread Manivannan Sadhasivam
On Mon, Jun 09, 2025 at 12:34:21PM GMT, Frank Li wrote: > Support only one physical function, so call imx_pcie_add_lut_by_rid(0) > to add a single LUT entry when operating in EP mode. > So previously LUT config was not present and endpoint mode continued to work? Please explain why this is necess

Re: [PATCH v19 03/10] PCI: endpoint: pci-ep-msi: Add MSI address/data pair mutable check

2025-07-02 Thread Manivannan Sadhasivam
On Wed, Jul 02, 2025 at 10:42:43AM GMT, Frank Li wrote: > On Wed, Jul 02, 2025 at 05:00:23PM +0530, Manivannan Sadhasivam wrote: > > On Mon, Jun 09, 2025 at 12:34:15PM GMT, Frank Li wrote: > > > Some MSI controller change address/data pair when irq_set_affinity(). > > >

Re: [PATCH v19 01/10] PCI: endpoint: Set ID and of_node for function driver

2025-07-02 Thread Manivannan Sadhasivam
On Wed, Jul 02, 2025 at 10:40:53AM GMT, Frank Li wrote: > On Wed, Jul 02, 2025 at 04:30:48PM +0530, Manivannan Sadhasivam wrote: > > On Mon, Jun 09, 2025 at 12:34:13PM GMT, Frank Li wrote: > > > Set device ID as 'vfunc_no << 3 | func_no' and use > >

Re: [PATCH v19 10/10] arm64: dts: imx95: Add msi-map for pci-ep device

2025-07-02 Thread Manivannan Sadhasivam
On Mon, Jun 09, 2025 at 12:34:22PM GMT, Frank Li wrote: > Add msi-map for pci-ep device. > > Signed-off-by: Frank Li Acked-by: Manivannan Sadhasivam - Mani > --- > change from v14 to v16 > - none > > change from v13 to v14 > - new patch > --- > arch/arm64/

Re: [PATCH v19 06/10] misc: pci_endpoint_test: Add doorbell test case

2025-07-02 Thread Manivannan Sadhasivam
On Mon, Jun 09, 2025 at 12:34:18PM GMT, Frank Li wrote: > Add three registers: PCIE_ENDPOINT_TEST_DB_BAR, PCIE_ENDPOINT_TEST_DB_ADDR, > and PCIE_ENDPOINT_TEST_DB_DATA. > > Trigger the doorbell by writing data from PCI_ENDPOINT_TEST_DB_DATA to the > address provided by PCI_ENDPOINT_TEST_DB_OFFSET a

Re: [PATCH v19 08/10] pci: imx6: Add helper function imx_pcie_add_lut_by_rid()

2025-07-02 Thread Manivannan Sadhasivam
On Mon, Jun 09, 2025 at 12:34:20PM GMT, Frank Li wrote: > Add helper function imx_pcie_add_lut_by_rid(), which will be used for > Endpoint mode in the future. No functional change. > What do you mean by 'used for Endpoint mode'? Endpoint mode is already supported by this driver. So be explicit on

Re: [PATCH v19 00/10] PCI: EP: Add RC-to-EP doorbell with platform MSI controller

2025-07-02 Thread Manivannan Sadhasivam
On Mon, Jun 09, 2025 at 12:34:12PM GMT, Frank Li wrote: > ┌┐ ┌───┐ ┌┐ > ││ │ │ ││ > ││ │ PCI Endpoint │ │ PCI Host │ > │

Re: [PATCH v19 07/10] selftests: pci_endpoint: Add doorbell test case

2025-07-02 Thread Manivannan Sadhasivam
On Mon, Jun 09, 2025 at 12:34:19PM GMT, Frank Li wrote: > Add doorbell test case. > This also warrants a documentation change. - Mani > Signed-off-by: Frank Li > --- > change from v14 to v16 > - Add set IRQ type > > change from v13 to v14 > - merge to selftests framework > --- > .../selftest

Re: [PATCH v19 05/10] PCI: endpoint: pci-epf-test: Add doorbell test support

2025-07-02 Thread Manivannan Sadhasivam
On Mon, Jun 09, 2025 at 12:34:17PM GMT, Frank Li wrote: [...] > +static irqreturn_t pci_epf_test_doorbell_handler(int irq, void *data) > +{ > + struct pci_epf_test *epf_test = data; > + enum pci_barno test_reg_bar = epf_test->test_reg_bar; > + struct pci_epf_test_reg *reg = epf_test->

Re: [PATCH v19 04/10] PCI: endpoint: Add pci_epf_align_inbound_addr() helper for address alignment

2025-07-02 Thread Manivannan Sadhasivam
On Mon, Jun 09, 2025 at 12:34:16PM GMT, Frank Li wrote: > Introduce the helper function pci_epf_align_inbound_addr() to adjust > addresses according to PCI BAR alignment requirements, converting addresses > into base and offset values. > > Signed-off-by: Frank Li > --- > Change from v15 to v16 >

Re: [PATCH v19 02/10] PCI: endpoint: Add RC-to-EP doorbell support using platform MSI controller

2025-07-02 Thread Manivannan Sadhasivam
On Wed, Jul 02, 2025 at 04:54:12PM GMT, Manivannan Sadhasivam wrote: > On Mon, Jun 09, 2025 at 12:34:14PM GMT, Frank Li wrote: > > Doorbell feature is implemented by mapping the EP's MSI interrupt > > controller message address to a dedicated BAR in the EPC core. It is the &

Re: [PATCH v19 03/10] PCI: endpoint: pci-ep-msi: Add MSI address/data pair mutable check

2025-07-02 Thread Manivannan Sadhasivam
On Mon, Jun 09, 2025 at 12:34:15PM GMT, Frank Li wrote: > Some MSI controller change address/data pair when irq_set_affinity(). > Current PCI endpoint can't support this type MSI controller. Call > irq_domain_is_msi_immutable() check if address/data pair immutable. > > Signed-off-by: Frank Li > -

Re: [PATCH v19 02/10] PCI: endpoint: Add RC-to-EP doorbell support using platform MSI controller

2025-07-02 Thread Manivannan Sadhasivam
On Mon, Jun 09, 2025 at 12:34:14PM GMT, Frank Li wrote: > Doorbell feature is implemented by mapping the EP's MSI interrupt > controller message address to a dedicated BAR in the EPC core. It is the > responsibility of the EPF driver to pass the actual message data to be > written by the host to th

Re: [PATCH v19 01/10] PCI: endpoint: Set ID and of_node for function driver

2025-07-02 Thread Manivannan Sadhasivam
On Mon, Jun 09, 2025 at 12:34:13PM GMT, Frank Li wrote: > Set device ID as 'vfunc_no << 3 | func_no' and use > 'device_set_of_node_from_dev()' to set 'of_node' the same as the EPC parent > device. > > Currently, EPF 'of_node' is NULL, but many functions depend on 'of_node' > settings, such as DMA,

Re: [PATCH v18 00/15] PCI: EP: Add RC-to-EP doorbell with platform MSI controller

2025-05-11 Thread Manivannan Sadhasivam
On Thu, May 08, 2025 at 07:26:31PM +0200, Thomas Gleixner wrote: > On Mon, Apr 14 2025 at 14:30, Frank Li wrote: > > This patches add new API to pci-epf-core, so any EP driver can use it. > > platform-msi: Add msi_remove_device_irq_domain() in > > platform_device_msi_free_irqs_all() > >

Re: [PATCH v4 4/6] misc: pci_endpoint_test: Fix irq_type to convey the correct type

2025-03-13 Thread Manivannan Sadhasivam
b2ba9225e031 ("misc: pci_endpoint_test: Avoid using module parameter > to determine irqtype") > Reviewed-by: Niklas Cassel > Signed-off-by: Kunihiko Hayashi Reviewed-by: Manivannan Sadhasivam - Mani > --- > drivers/misc/pci_endpoint_test.c | 1 + > 1 file change

Re: [PATCH v4 5/6] misc: pci_endpoint_test: Remove global 'irq_type' and 'no_msi'

2025-03-13 Thread Manivannan Sadhasivam
ioctl(SET_IRQTYPE) will return an error. > > Suggested-by: Niklas Cassel > Suggested-by: Manivannan Sadhasivam > Signed-off-by: Kunihiko Hayashi Reviewed-by: Manivannan Sadhasivam - Mani > --- > drivers/misc/pci_endpoint_test.c | 18 +++--- > 1 file

[PATCH v6 4/4] selftests: pci_endpoint: Migrate to Kselftest framework

2025-01-16 Thread Manivannan Sadhasivam
Cassel Reviewed-by: Niklas Cassel Signed-off-by: Manivannan Sadhasivam --- Documentation/PCI/endpoint/pci-test-howto.rst | 173 +--- tools/testing/selftests/Makefile | 1 + .../testing/selftests/pci_endpoint/.gitignore | 3 +- tools/testing/selftests/pci_endpoint/Build

[PATCH v6 2/4] misc: pci_endpoint_test: Fix the return value of IOCTL

2025-01-16 Thread Manivannan Sadhasivam
Fixes: 2c156ac71c6b ("misc: Add host side PCI driver for PCI test function device") Reviewed-by: Damien Le Moal Reviewed-by: Niklas Cassel Tested-by: Niklas Cassel Signed-off-by: Manivannan Sadhasivam --- drivers/misc/pci_endpoint_test.c | 255 +++ tool

[PATCH v6 3/4] selftests: Move PCI Endpoint tests from tools/pci to Kselftests

2025-01-16 Thread Manivannan Sadhasivam
This just moves the existing tests under tools/pci to tools/testing/selftests/pci_endpoint and adjusts the paths in Makefile accordingly. Migration to Kselftest framework will be done in subsequent commits. Tested-by: Niklas Cassel Reviewed-by: Niklas Cassel Signed-off-by: Manivannan Sadhasivam

[PATCH v6 1/4] PCI: endpoint: pci-epf-test: Fix the check for DMA MEMCPY test

2025-01-16 Thread Manivannan Sadhasivam
reword the error message. Reported-by: Niklas Cassel Closes: https://lore.kernel.org/linux-pci/Z3QtEihbiKIGogWA@ryzen Fixes: 8353813c88ef ("PCI: endpoint: Enable DMA tests for endpoints with DMA capabilities") Tested-by: Niklas Cassel Reviewed-by: Niklas Cassel Signed-off-by:

[PATCH v6 0/4] Migrate PCI Endpoint Subsystem tests to Kselftest

2025-01-16 Thread Manivannan Sadhasivam
fix for BARs on Qcom devices * Updated documentation and also added fixture variants for memcpy & DMA modes Manivannan Sadhasivam (4): PCI: endpoint: pci-epf-test: Fix the check for DMA MEMCPY test misc: pci_endpoint_test: Fix the return value of IOCTL selftests: Move PCI Endpoint

Re: [PATCH v5 0/4] Migrate PCI Endpoint Subsystem tests to Kselftest

2025-01-16 Thread Manivannan Sadhasivam
On Thu, Jan 16, 2025 at 05:39:30PM +0100, Niklas Cassel wrote: > [...] > So the output matched the suggested values in the documentation. > > After this series, the documentation still suggests msi == 16 and msi-x == 8, > but the example output now shows that > there was no failures. > Ah, I

Re: [PATCH v5 0/4] Migrate PCI Endpoint Subsystem tests to Kselftest

2025-01-16 Thread Manivannan Sadhasivam
On Thu, Jan 16, 2025 at 04:36:07PM +0100, Niklas Cassel wrote: > On Thu, Jan 16, 2025 at 07:21:02PM +0530, Manivannan Sadhasivam wrote: > > Hi, > > > > This series carries forward the effort to add Kselftest for PCI Endpoint > > Subsystem started by Aman Gupta [1]

[PATCH v5 4/4] selftests: pci_endpoint: Migrate to Kselftest framework

2025-01-16 Thread Manivannan Sadhasivam
: Manivannan Sadhasivam --- Documentation/PCI/endpoint/pci-test-howto.rst | 169 +-- tools/testing/selftests/Makefile | 1 + .../testing/selftests/pci_endpoint/.gitignore | 3 +- tools/testing/selftests/pci_endpoint/Build| 1 - tools/testing/selftests/pci_endpoint

[PATCH v5 3/4] selftests: Move PCI Endpoint tests from tools/pci to Kselftests

2025-01-16 Thread Manivannan Sadhasivam
This just moves the existing tests under tools/pci to tools/testing/selftests/pci_endpoint and adjusts the paths in Makefile accordingly. Migration to Kselftest framework will be done in subsequent commits. Signed-off-by: Manivannan Sadhasivam --- Documentation/PCI/endpoint/pci-test-howto.rst

[PATCH v5 2/4] misc: pci_endpoint_test: Fix the return value of IOCTL

2025-01-16 Thread Manivannan Sadhasivam
Fixes: 2c156ac71c6b ("misc: Add host side PCI driver for PCI test function device") Reviewed-by: Damien Le Moal Reviewed-by: Niklas Cassel Signed-off-by: Manivannan Sadhasivam --- drivers/misc/pci_endpoint_test.c | 255 +++ tools/pci/pcitest.c | 51 +

[PATCH v5 1/4] PCI: endpoint: pci-epf-test: Fix the check for DMA MEMCPY test

2025-01-16 Thread Manivannan Sadhasivam
reword the error message. Reported-by: Niklas Cassel Closes: https://lore.kernel.org/linux-pci/Z3QtEihbiKIGogWA@ryzen Fixes: 8353813c88ef ("PCI: endpoint: Enable DMA tests for endpoints with DMA capabilities") Signed-off-by: Manivannan Sadhasivam --- drivers/pci/endpoint/functio

[PATCH v5 0/4] Migrate PCI Endpoint Subsystem tests to Kselftest

2025-01-16 Thread Manivannan Sadhasivam
their addresses are bouncing. Changes in v2: * Added a patch that fixes return values of IOCTL in pci_endpoint_test driver * Moved the existing tests to new location before migrating * Added a fix for BARs on Qcom devices * Updated documentation and also added fixture variants for memcpy &

Re: [PATCH v4 3/3] selftests: pci_endpoint: Migrate to Kselftest framework

2025-01-15 Thread Manivannan Sadhasivam
On Thu, Jan 02, 2025 at 03:23:14PM +0100, Niklas Cassel wrote: > Hello Mani, Vinod, > > On Thu, Jan 02, 2025 at 12:34:04PM +0530, Manivannan Sadhasivam wrote: > > On Tue, Dec 31, 2024 at 08:33:57PM +0100, Niklas Cassel wrote: > > > > > > I have some patches tha

Re: [PATCH v4 3/3] selftests: pci_endpoint: Migrate to Kselftest framework

2025-01-01 Thread Manivannan Sadhasivam
On Tue, Dec 31, 2024 at 08:33:57PM +0100, Niklas Cassel wrote: > > > On 31 December 2024 20:18:12 CET, Manivannan Sadhasivam > wrote: > >On Tue, Dec 31, 2024 at 06:42:42PM +0100, Niklas Cassel wrote: > >> On Tue, Dec 31, 2024 at 06:43:41PM +0530,

Re: [PATCH v4 3/3] selftests: pci_endpoint: Migrate to Kselftest framework

2024-12-31 Thread Manivannan Sadhasivam
On Tue, Dec 31, 2024 at 06:42:42PM +0100, Niklas Cassel wrote: > On Tue, Dec 31, 2024 at 06:43:41PM +0530, Manivannan Sadhasivam wrote: > > (...) > > > + # RUN pci_ep_data_transfer.dma.COPY_TEST ... > > + #OK pci_ep_data_transfer.dma

Re: [PATCH v4 2/3] selftests: Move PCI Endpoint tests from tools/pci to Kselftests

2024-12-31 Thread Manivannan Sadhasivam
On Tue, Dec 31, 2024 at 06:17:05PM +0100, Niklas Cassel wrote: > On Tue, Dec 31, 2024 at 06:43:40PM +0530, Manivannan Sadhasivam wrote: > > This just moves the existing tests under tools/pci to > > tools/testing/selftests/pci_endpoint and adjusts the paths in Makefile > > acco

Re: [PATCH v4 1/3] misc: pci_endpoint_test: Fix the return value of IOCTL

2024-12-31 Thread Manivannan Sadhasivam
On Tue, Dec 31, 2024 at 05:57:47PM +0100, Niklas Cassel wrote: > On Tue, Dec 31, 2024 at 06:43:39PM +0530, Manivannan Sadhasivam wrote: > > IOCTLs are supposed to return 0 for success and negative error codes for > > failure. Currently, this driver is returning 0 for failure and 1

[PATCH v4 3/3] selftests: pci_endpoint: Migrate to Kselftest framework

2024-12-31 Thread Manivannan Sadhasivam
(excluding MEMCPY tests) Co-developed-by: Aman Gupta Signed-off-by: Aman Gupta Co-developed-by: Padmanabhan Rajanbabu Signed-off-by: Padmanabhan Rajanbabu [mani: reworked based on the IOCTL fix, cleanups, documentation, commit message] Signed-off-by: Manivannan Sadhasivam --- Documentation

[PATCH v4 2/3] selftests: Move PCI Endpoint tests from tools/pci to Kselftests

2024-12-31 Thread Manivannan Sadhasivam
This just moves the existing tests under tools/pci to tools/testing/selftests/pci_endpoint and adjusts the paths in Makefile accordingly. Migration to Kselftest framework will be done in subsequent commits. Signed-off-by: Manivannan Sadhasivam --- Documentation/PCI/endpoint/pci-test-howto.rst

[PATCH v4 1/3] misc: pci_endpoint_test: Fix the return value of IOCTL

2024-12-31 Thread Manivannan Sadhasivam
Fixes: 2c156ac71c6b ("misc: Add host side PCI driver for PCI test function device") Reviewed-by: Damien Le Moal Signed-off-by: Manivannan Sadhasivam --- drivers/misc/pci_endpoint_test.c | 250 +++ tools/pci/pcitest.c | 51 +++ 2 files changed,

[PATCH v4 0/3] Migrate PCI Endpoint Subsystem tests to Kselftest

2024-12-31 Thread Manivannan Sadhasivam
BARs on Qcom devices * Updated documentation and also added fixture variants for memcpy & DMA modes Manivannan Sadhasivam (3): misc: pci_endpoint_test: Fix the return value of IOCTL selftests: Move PCI Endpoint tests from tools/pci to Kselftests selftests: pci_endpoint: Migrate to Kselftest f

Re: [PATCH v3 0/4] Migrate PCI Endpoint Subsystem tests to Kselftest

2024-12-15 Thread Manivannan Sadhasivam
On Thu, Dec 12, 2024 at 10:25:53AM +0100, Niklas Cassel wrote: > Hello Mani, > > On Wed, Dec 11, 2024 at 01:31:01PM +0530, Manivannan Sadhasivam wrote: > > Hi, > > > > This series carries forward the effort to add Kselftest for PCI Endpoint > > Subsystem started

Re: [PATCH v3 2/4] misc: pci_endpoint_test: Fix the return value of IOCTL

2024-12-11 Thread Manivannan Sadhasivam
On Wed, Dec 11, 2024 at 05:37:27PM +0900, Damien Le Moal wrote: > On 12/11/24 5:01 PM, Manivannan Sadhasivam wrote: > > struct pci_test { > > @@ -52,63 +51,65 @@ static int run_test(struct pci_test *test) > > ret = ioctl(fd, PCITEST_BAR, test->barnum); > &

[PATCH v3 4/4] selftests: pci_endpoint: Migrate to Kselftest framework

2024-12-11 Thread Manivannan Sadhasivam
) Co-developed-by: Aman Gupta Signed-off-by: Aman Gupta Co-developed-by: Padmanabhan Rajanbabu Signed-off-by: Padmanabhan Rajanbabu [mani: reworked based on the IOCTL fix, cleanups, documentation, commit message] Signed-off-by: Manivannan Sadhasivam --- Documentation/PCI/endpoint/pci-test

[PATCH v3 2/4] misc: pci_endpoint_test: Fix the return value of IOCTL

2024-12-11 Thread Manivannan Sadhasivam
Fixes: 2c156ac71c6b ("misc: Add host side PCI driver for PCI test function device") Reviewed-by: Damien Le Moal Signed-off-by: Manivannan Sadhasivam --- drivers/misc/pci_endpoint_test.c | 236 +++ tools/pci/pcitest.c | 47 +++--- 2 files changed, 140 ins

[PATCH v3 3/4] selftests: Move PCI Endpoint tests from tools/pci to Kselftests

2024-12-11 Thread Manivannan Sadhasivam
This just moves the existing tests under tools/pci to tools/testing/selftests/pci_endpoint and adjusts the paths in Makefile accordingly. Migration to Kselftest framework will be done in subsequent commits. Signed-off-by: Manivannan Sadhasivam --- Documentation/PCI/endpoint/pci-test-howto.rst

[PATCH v3 1/4] PCI: qcom-ep: Mark BAR0/BAR2 as 64bit BARs and BAR1/BAR3 as RESERVED

2024-12-11 Thread Manivannan Sadhasivam
only_64bit flag Fixes: f55fee56a631 ("PCI: qcom-ep: Add Qualcomm PCIe Endpoint controller driver") Reviewed-by: Dmitry Baryshkov Signed-off-by: Manivannan Sadhasivam --- drivers/pci/controller/dwc/pcie-qcom-ep.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/pci/cont

[PATCH v3 0/4] Migrate PCI Endpoint Subsystem tests to Kselftest

2024-12-11 Thread Manivannan Sadhasivam
r memcpy & DMA modes Manivannan Sadhasivam (4): PCI: qcom-ep: Mark BAR0/BAR2 as 64bit BARs and BAR1/BAR3 as RESERVED misc: pci_endpoint_test: Fix the return value of IOCTL selftests: Move PCI Endpoint tests from tools/pci to Kselftests selftests: pci_endpoint: Migrate to Kselftest framework Do

Re: [PATCH v2 2/4] misc: pci_endpoint_test: Fix the return value of IOCTL

2024-12-10 Thread Manivannan Sadhasivam
On Fri, Nov 29, 2024 at 10:00:30PM +0530, Manivannan Sadhasivam wrote: > On Fri, Nov 29, 2024 at 07:51:30PM +0900, Damien Le Moal wrote: > > On 11/29/24 18:24, Manivannan Sadhasivam wrote: > > > IOCTLs are supposed to return 0 for success and negative error codes for > > &g

Re: [PATCH v2 1/4] PCI: qcom-ep: Mark BAR0/BAR2 as 64bit BARs and BAR1/BAR3 as RESERVED

2024-12-02 Thread Manivannan Sadhasivam
On Fri, Nov 29, 2024 at 01:55:37PM -0600, Bjorn Helgaas wrote: > On Fri, Nov 29, 2024 at 02:54:12PM +0530, Manivannan Sadhasivam wrote: > > On all Qcom endpoint SoCs, BAR0/BAR2 are 64bit BARs by default and software > > cannot change the type. So mark the those BARs as 64bit BAR

Re: [PATCH v2 4/4] selftests: pci_endpoint: Migrate to Kselftest framework

2024-11-29 Thread Manivannan Sadhasivam
On Fri, Nov 29, 2024 at 06:13:12PM +0100, Niklas Cassel wrote: > On Fri, Nov 29, 2024 at 10:22:56PM +0530, Manivannan Sadhasivam wrote: > > On Fri, Nov 29, 2024 at 05:42:26PM +0100, Niklas Cassel wrote: > > > On Fri, Nov 29, 2024 at 10:05:55PM +0530, Manivannan Sadhasivam wro

Re: [PATCH v2 4/4] selftests: pci_endpoint: Migrate to Kselftest framework

2024-11-29 Thread Manivannan Sadhasivam
On Fri, Nov 29, 2024 at 05:42:26PM +0100, Niklas Cassel wrote: > On Fri, Nov 29, 2024 at 10:05:55PM +0530, Manivannan Sadhasivam wrote: > > On Fri, Nov 29, 2024 at 02:51:26PM +0100, Niklas Cassel wrote: > > > Hello Mani, > > > > > > On Fri, Nov 29, 2024 at 02:

Re: [PATCH v2 4/4] selftests: pci_endpoint: Migrate to Kselftest framework

2024-11-29 Thread Manivannan Sadhasivam
On Fri, Nov 29, 2024 at 02:51:26PM +0100, Niklas Cassel wrote: > Hello Mani, > > On Fri, Nov 29, 2024 at 02:54:15PM +0530, Manivannan Sadhasivam wrote: > > Migrate the PCI endpoint test to Kselftest framework. All the tests that > > were part of the previous pcitest.

Re: [PATCH v2 2/4] misc: pci_endpoint_test: Fix the return value of IOCTL

2024-11-29 Thread Manivannan Sadhasivam
On Fri, Nov 29, 2024 at 07:51:30PM +0900, Damien Le Moal wrote: > On 11/29/24 18:24, Manivannan Sadhasivam wrote: > > IOCTLs are supposed to return 0 for success and negative error codes for > > failure. Currently, this driver is returning 0 for failure and 1 for > > succes

[PATCH v2 0/4] Migrate PCI Endpoint Subsystem tests to Kselftest

2024-11-29 Thread Manivannan Sadhasivam
fix for BARs on Qcom devices * Updated documentation and also added fixture variants for memcpy & DMA modes Manivannan Sadhasivam (4): PCI: qcom-ep: Mark BAR0/BAR2 as 64bit BARs and BAR1/BAR3 as RESERVED misc: pci_endpoint_test: Fix the return value of IOCTL selftests: Move PCI Endpoint

[PATCH v2 4/4] selftests: pci_endpoint: Migrate to Kselftest framework

2024-11-29 Thread Manivannan Sadhasivam
) Co-developed-by: Aman Gupta Signed-off-by: Aman Gupta Co-developed-by: Padmanabhan Rajanbabu Signed-off-by: Padmanabhan Rajanbabu [mani: reworked based on the IOCTL fix, cleanups, documentation, commit message] Signed-off-by: Manivannan Sadhasivam --- Documentation/PCI/endpoint/pci-test

[PATCH v2 2/4] misc: pci_endpoint_test: Fix the return value of IOCTL

2024-11-29 Thread Manivannan Sadhasivam
Fixes: 2c156ac71c6b ("misc: Add host side PCI driver for PCI test function device") Signed-off-by: Manivannan Sadhasivam --- drivers/misc/pci_endpoint_test.c | 236 +++ tools/pci/pcitest.c | 47 +++--- 2 files changed, 140 insertions(+), 143 deletions(-

[PATCH v2 3/4] selftests: Move PCI Endpoint tests from tools/pci to Kselftests

2024-11-29 Thread Manivannan Sadhasivam
This just moves the existing tests under tools/pci to tools/testing/selftests/pci_endpoint and adjusts the paths in Makefile accordingly. Migration to Kselftest framework will be done in subsequent commits. Signed-off-by: Manivannan Sadhasivam --- Documentation/PCI/endpoint/pci-test-howto.rst

[PATCH v2 1/4] PCI: qcom-ep: Mark BAR0/BAR2 as 64bit BARs and BAR1/BAR3 as RESERVED

2024-11-29 Thread Manivannan Sadhasivam
only_64bit flag Fixes: f55fee56a631 ("PCI: qcom-ep: Add Qualcomm PCIe Endpoint controller driver") Signed-off-by: Manivannan Sadhasivam --- drivers/pci/controller/dwc/pcie-qcom-ep.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/pci/controller/dwc/pcie-qcom-ep.c b/d

Re: [PATCH] virtio-pci: Add MSI support

2024-11-07 Thread Manivannan Sadhasivam
On Wed, Nov 06, 2024 at 04:37:57AM -0500, Michael S. Tsirkin wrote: > On Fri, Jul 12, 2024 at 07:59:14PM +0530, Manivannan Sadhasivam wrote: > > Virtio spec has so far only supported MSI-X and INTX for receiving the > > interrupts from the virtio device on PCI transport. But

[PATCH 2/2] virtio-pci: Do not break the error message for VIRTIO_F_VERSION_1

2024-08-09 Thread Manivannan Sadhasivam
Breaking the error message will make it harder to grep for it in the driver. So let's put the error message in a single line. Signed-off-by: Manivannan Sadhasivam --- drivers/virtio/virtio_pci_modern.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/v

[PATCH 1/2] virtio: Remove redundant 'virtio:' prefix in error messages

2024-08-09 Thread Manivannan Sadhasivam
s not have VIRTIO_F_VERSION_1 So remove the 'virtio:' prefix which is redundant. Signed-off-by: Manivannan Sadhasivam --- drivers/virtio/virtio.c| 3 +-- drivers/virtio/virtio_pci_modern.c | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/virtio/virti

Re: [PATCH] virtio-pci: Add MSI support

2024-07-12 Thread Manivannan Sadhasivam
+ Jason Wang (email got truncated). On Fri, Jul 12, 2024 at 07:59:14PM +0530, Manivannan Sadhasivam wrote: > Virtio spec has so far only supported MSI-X and INTX for receiving the > interrupts from the virtio device on PCI transport. But this becomes a > limiting factor for devices s

[PATCH] virtio-pci: Add MSI support

2024-07-12 Thread Manivannan Sadhasivam
ies such as IRQ affinity are also reused for MSI (but the affinity setting really depends on the underlying IRQCHIP controller). [1] https://lore.kernel.org/virtio-comment/20240712140144.12066-1-manivannan.sadhasi...@linaro.org/ Signed-off-by: Manivannan Sadhasivam --- drivers/virtio/virtio_pc

Re: [PATCH v5 2/3] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 soc

2024-04-01 Thread Manivannan Sadhasivam
On Fri, Mar 22, 2024 at 08:59:12AM +0100, Luca Weiss wrote: > On Mon Dec 4, 2023 at 6:28 PM CET, Manivannan Sadhasivam wrote: > > On Mon, Dec 04, 2023 at 01:21:42PM +0100, Luca Weiss wrote: > > > On Mon Dec 4, 2023 at 1:15 PM CET, Nitin Rawat wrote: > > > > > &

Re: [PATCH] bus: mhi: host: Change the trace string for the userspace tools mapping

2024-02-21 Thread Manivannan Sadhasivam
On Sun, Feb 18, 2024 at 02:13:39PM +0530, Krishna chaitanya chundru wrote: > User space tools can't map strings if we use directly, as the string > address is internal to kernel. > > So add trace point strings for the user space tools to map strings > properly. > > Signed-off-by: Krishna chaitany

Re: [PATCH] bus: mhi: host: Change the trace string for the userspace tools mapping

2024-02-21 Thread Manivannan Sadhasivam
On Wed, Feb 21, 2024 at 09:11:03AM -0500, Steven Rostedt wrote: > On Wed, 21 Feb 2024 11:41:46 +0530 > Manivannan Sadhasivam wrote: > > > On Sun, Feb 18, 2024 at 02:13:39PM +0530, Krishna chaitanya chundru wrote: > > > User space tools can't map strings if w

Re: [PATCH] bus: mhi: host: Change the trace string for the userspace tools mapping

2024-02-20 Thread Manivannan Sadhasivam
gt; Signed-off-by: Krishna chaitanya chundru Reported-by: Steven Rostedt Reviewed-by: Manivannan Sadhasivam - Mani > --- > drivers/bus/mhi/host/main.c | 4 ++-- > drivers/bus/mhi/host/trace.h | 2 ++ > 2 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/bus/m

Re: [PATCH v11] bus: mhi: host: Add tracing support

2024-02-06 Thread Manivannan Sadhasivam
t in both trace header file and other files. > > Where ever the trace events are added, debug messages are removed. > > Signed-off-by: Krishna chaitanya chundru Applied to mhi-next! - Mani > Reviewed-by: Manivannan Sadhasivam > Reviewed-by: "Steven Rostedt (Google)&qu

Re: [PATCH v11] bus: mhi: host: Add tracing support

2024-02-06 Thread Manivannan Sadhasivam
On Tue, Feb 06, 2024 at 02:33:12PM +0530, Manivannan Sadhasivam wrote: > On Tue, Feb 06, 2024 at 12:25:30PM +0530, Krishna Chaitanya Chundru wrote: > > > > > > On 2/6/2024 11:56 AM, Manivannan Sadhasivam wrote: > > > On Tue, Feb 06, 2024 at 10:02:05AM +0530, K

Re: [PATCH v11] bus: mhi: host: Add tracing support

2024-02-06 Thread Manivannan Sadhasivam
On Tue, Feb 06, 2024 at 12:25:30PM +0530, Krishna Chaitanya Chundru wrote: > > > On 2/6/2024 11:56 AM, Manivannan Sadhasivam wrote: > > On Tue, Feb 06, 2024 at 10:02:05AM +0530, Krishna chaitanya chundru wrote: > > > This change adds ftrace support for following functi

Re: [PATCH v11] bus: mhi: host: Add tracing support

2024-02-05 Thread Manivannan Sadhasivam
t in both trace header file and other files. > > Where ever the trace events are added, debug messages are removed. > > Signed-off-by: Krishna chaitanya chundru There are a lot of checkpatch errors. Please fix them and resubmit. - Mani > Reviewed-by: Manivannan Sadhasivam &g

Re: [PATCH v10] bus: mhi: host: Add tracing support

2024-02-02 Thread Manivannan Sadhasivam
On Wed, Jan 31, 2024 at 09:54:04AM +0530, Krishna chaitanya chundru wrote: > This change adds ftrace support for following functions which > helps in debugging the issues when there is Channel state & MHI > state change and also when we receive data and control events: > 1. mhi_intvec_mhi_states >

Re: [PATCH v10] bus: mhi: host: Add tracing support

2024-02-02 Thread Manivannan Sadhasivam
t in both trace header file and other files. > > Where ever the trace events are added, debug messages are removed. > > Signed-off-by: Krishna chaitanya chundru Reviewed-by: Manivannan Sadhasivam - Mani > Reviewed-by: "Steven Rostedt (Google)" > --- > Changes i

Re: [PATCH v9] bus: mhi: host: Add tracing support

2024-01-30 Thread Manivannan Sadhasivam
On Tue, Jan 30, 2024 at 09:22:52AM -0500, Steven Rostedt wrote: > On Tue, 30 Jan 2024 13:41:52 +0530 > Manivannan Sadhasivam wrote: > > > So same trace will get printed for both mhi_channel_command_start() and > > mhi_channel_command_end()? > > The trace output will

Re: [PATCH v9] bus: mhi: host: Add tracing support

2024-01-30 Thread Manivannan Sadhasivam
On Fri, Jan 05, 2024 at 05:53:03PM +0530, Krishna chaitanya chundru wrote: > This change adds ftrace support for following functions which > helps in debugging the issues when there is Channel state & MHI > state change and also when we receive data and control events: > 1. mhi_intvec_mhi_states >

Re: [PATCH v6 2/3] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 soc

2023-12-05 Thread Manivannan Sadhasivam
additions as written in the cover letter] > Signed-off-by: Luca Weiss Acked-by: Manivannan Sadhasivam - Mani > --- > arch/arm64/boot/dts/qcom/sc7280.dtsi | 74 > +++- > 1 file changed, 73 insertions(+), 1 deletion(-) > > diff --git a/a

Re: [PATCH v5 2/3] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 soc

2023-12-05 Thread Manivannan Sadhasivam
On Tue, Dec 05, 2023 at 08:51:05AM +0100, Luca Weiss wrote: > On Mon Dec 4, 2023 at 6:28 PM CET, Manivannan Sadhasivam wrote: > > On Mon, Dec 04, 2023 at 01:21:42PM +0100, Luca Weiss wrote: > > > On Mon Dec 4, 2023 at 1:15 PM CET, Nitin Rawat wrote: > > > > > &

Re: [PATCH v5 2/3] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 soc

2023-12-04 Thread Manivannan Sadhasivam
On Mon, Dec 04, 2023 at 01:21:42PM +0100, Luca Weiss wrote: > On Mon Dec 4, 2023 at 1:15 PM CET, Nitin Rawat wrote: > > > > > > On 12/4/2023 3:54 PM, Luca Weiss wrote: > > > From: Nitin Rawat > > > > > > Add UFS host controller and PHY nodes for sc7280 soc. > > > > > > Signed-off-by: Nitin Rawat

Re: [PATCH v5] bus: mhi: host: Add tracing support

2023-12-04 Thread Manivannan Sadhasivam
On Mon, Nov 27, 2023 at 04:39:12PM +0530, Krishna chaitanya chundru wrote: > This change adds ftrace support for following functions which > helps in debugging the issues when there is Channel state & MHI > state change and also when we receive data and control events: > 1. mhi_intvec_mhi_states >

Re: MHI changes for v5.13

2021-04-11 Thread Manivannan Sadhasivam
Hi Greg, On Sun, Apr 11, 2021 at 08:57:03AM +0200, Greg KH wrote: > On Sun, Apr 11, 2021 at 11:25:59AM +0530, Manivannan Sadhasivam wrote: > > Hi Greg, > > > > Here is the MHI Pull request for the v5.13 cycle. I stayed with the PR as > > the > > number patche

MHI changes for v5.13

2021-04-10 Thread Manivannan Sadhasivam
: pci_generic: Add FIREHOSE channels Manivannan Sadhasivam (2): bus: mhi: pci_generic: Constify mhi_controller_config struct definitions bus: mhi: core: Fix shadow declarations drivers/bus/mhi/core/boot.c | 64 ++-- drivers/bus/mhi/core/debugfs.c | 2 +- drivers/bus/mhi/core

Re: [PATCH] clk: qcom: rpmh: add support for SDX55 rpmh IPA clock

2021-04-09 Thread Manivannan Sadhasivam
On Fri, Apr 09, 2021 at 08:44:07AM -0500, Alex Elder wrote: > The IPA core clock is required for SDX55. Define it. > > Signed-off-by: Alex Elder I tested this patch on couple of SDX55 based boards like Telit FN980 and Thundercomm T55. Hence, Tested-by: Manivannan Sadhasivam A

Re: [PATCH 2/2] bus: mhi: fix typo in comments for struct mhi_channel_config

2021-04-09 Thread Manivannan Sadhasivam
On Thu, Apr 08, 2021 at 03:02:20AM -0700, Jarvis Jiang wrote: > The word 'rung' is a typo in below comment, fix it. > * @event_ring: The event rung index that services this channel > > Signed-off-by: Jarvis Jiang Applied to mhi-next! Thanks, Mani > --- > include/linux/mhi.h | 2 +- > 1 file c

Re: [PATCH 2/2] bus: mhi: fix typo in comments for struct mhi_channel_config

2021-04-09 Thread Manivannan Sadhasivam
On Thu, Apr 08, 2021 at 03:02:20AM -0700, Jarvis Jiang wrote: > The word 'rung' is a typo in below comment, fix it. > * @event_ring: The event rung index that services this channel > > Signed-off-by: Jarvis Jiang Reviewed-by: Manivannan Sadhasivam Thanks, Mani > -

Re: [PATCH] usb: dwc3: qcom: Fixed an issue that the ret value is incorrect in dwc3_qcom_probe()

2021-04-09 Thread Manivannan Sadhasivam
On Fri, Apr 09, 2021 at 08:49:45AM +0800, Bixuan Cui wrote: > There is a error message after devm_ioremap_resource failed, and the ret > is needs to be obtained through PTR_ERR(qcom->qscratch_base). > We need to move the dev_err() downwards to ensure that the ret value is > correct. > > Fixes: a43

Re: [PATCH -next] spi: qup: fix PM reference leak in spi_qup_remove()

2021-04-09 Thread Manivannan Sadhasivam
ter balanced. > > Reported-by: Hulk Robot > Signed-off-by: Wang Li Reviewed-by: Manivannan Sadhasivam Thanks, Mani > --- > drivers/spi/spi-qup.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c > index 8d

Re: [PATCH V2 2/2] soc: qcom: aoss: Add debugfs entry

2021-04-09 Thread Manivannan Sadhasivam
", ret); Does the userspace need to know how many bytes were not copied? I don't think this is a useful information. So you could remove this err print. With that, Reviewed-by: Manivannan Sadhasivam Thanks, Mani > + return -EFAULT; > + } > + > +

Re: [PATCH V1 1/2] soc: qcom: aoss: Expose send for generic usecase

2021-04-09 Thread Manivannan Sadhasivam
On Sun, Apr 04, 2021 at 12:17:52PM -0500, Bjorn Andersson wrote: > On Fri 02 Apr 01:17 CDT 2021, Deepak Kumar Singh wrote: > > > Not all upcoming usecases will have an interface to allow the aoss > > driver to hook onto. Expose the send api and create a get function to > > enable drivers to send t

Re: [PATCH -next] mmc: sdhci-msm: Remove unnecessary error log

2021-04-08 Thread Manivannan Sadhasivam
On Fri, Apr 09, 2021 at 09:54:24AM +0800, Jia Yang wrote: > devm_ioremap_resource() has recorded error log, so it's > unnecessary to record log again. > > Reported-by: Hulk Robot > Signed-off-by: Jia Yang Reviewed-by: Manivannan Sadhasivam Thanks, Mani > --- > dr

Re: [PATCH -next] clocksource/drivers/qcom: add missing iounmap() on error in msm_dt_timer_init()

2021-04-08 Thread Manivannan Sadhasivam
> cpu0_base = ioremap(res.start + percpu_offset, resource_size(&res)); > if (!cpu0_base) { > pr_err("Failed to map source base\n"); > - return -EINVAL; Missing "ret = -EINVAL" assignment. With that fixed, Reviewed-by: Manivan

Re: [PATCH -next] clk: qcom: Add missing MODULE_DEVICE_TABLE

2021-04-08 Thread Manivannan Sadhasivam
On Thu, Apr 08, 2021 at 09:55:09PM +0800, Chen Hui wrote: > Add missing MODULE_DEVICE_TABLE entries to support module autoloading, > as these drivers can be compiled as external modules. > > Signed-off-by: Chen Hui Reviewed-by: Manivannan Sadhasivam Thanks, Mani > --- > dr

Re: [PATCH -next] mmc: owl-mmc: Remove unnecessary error log

2021-04-08 Thread Manivannan Sadhasivam
On Fri, Apr 09, 2021 at 10:33:49AM +0800, Laibin Qiu wrote: > devm_ioremap_resource() has recorded error log, so it's > unnecessary to record log again. > > Reported-by: Hulk Robot > Signed-off-by: Laibin Qiu Reviewed-by: Manivannan Sadhasivam Thanks, Mani > ---

[PATCH v3] bus: mhi: core: Fix shadow declarations

2021-04-08 Thread Manivannan Sadhasivam
local [-Wshadow] 856 | enum mhi_pm_state new_state; | ^ drivers/bus/mhi/core/main.c:837:19: note: shadowed declaration is here 837 |enum mhi_state new_state; | ^ Signed-off-by: Manivannan Sadhasivam --- Changes in v3

[PATCH] remoteproc: qcom: pas: Add modem support for SDX55

2021-04-08 Thread Manivannan Sadhasivam
Add remoteproc support for Hexagon modem found on the Qualcomm SDX55 platform. Signed-off-by: Manivannan Sadhasivam --- drivers/remoteproc/qcom_q6v5_pas.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc

[PATCH 4/7] ARM: configs: qcom_defconfig: Enable Q6V5_PAS remoteproc driver

2021-04-08 Thread Manivannan Sadhasivam
Enable the Qualcomm Q6V5_PAS (Peripheral Authentication Service) remoteproc driver to manage the modem co-processor in SDX55 platform. Signed-off-by: Manivannan Sadhasivam --- arch/arm/configs/qcom_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/qcom_defconfig b

[PATCH 7/7] ARM: configs: qcom_defconfig: Reduce CMA size to 64MB

2021-04-08 Thread Manivannan Sadhasivam
Not all platforms are able to allocate CMA size of 256MB. One such platform is SDX55. Hence, use the standard 64MB size for CMA. Signed-off-by: Manivannan Sadhasivam --- arch/arm/configs/qcom_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/configs

[PATCH 6/7] ARM: configs: qcom_defconfig: Enable GLINK SMEM driver

2021-04-08 Thread Manivannan Sadhasivam
Enable the Qualcomm GLINK SMEM driver to support GLINK protocol over shared memory. Signed-off-by: Manivannan Sadhasivam --- arch/arm/configs/qcom_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/qcom_defconfig b/arch/arm/configs/qcom_defconfig index 5955aeb0646e

  1   2   3   4   5   6   7   8   9   10   >