Re: Freescale FEC: fall back to random address

2013-04-02 Thread Frank Li
I think it is okay. 2013/4/1 Pavel Machek : > If there's no valid ethernet address, fall back to randomly generated > one. > > (Yes, I need to get newer u-boot for the board, but as the only > available one is from 2009... this might be good idea). > > Signed-off-by: Pavel Machek > > > index e3f3

Re: PCI host merge strategy and maintainers

2013-09-27 Thread Frank Li
awn already acked and send out v7 version. best regards Frank Li > tegra: Thierry Reding > > Bjorn -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/maj

Re: [PATCH 0/3] of: add update device node status via cmdline feature

2013-08-23 Thread Frank Li
2013/8/23 Shawn Guo : > You can have all above environments defined in U-Boot mx6qsabreauto.h > at compile time. Then at runtime, you only need the following two > commands to boot kernel with the device that you want. I think uboot method is better than kernel. -- To unsubscribe from this list:

Re: [PATCH] net: ethernet: freescale: use devm_ioremap_resource()

2013-05-13 Thread Frank Li
2013/5/14 Laurent Navet : > Replace a call to deprecated devm_request_and_ioremap by > devm_ioremap_resource. > also remove tests on 'r' since devm_ioremap_resource() checks for it > in a better way. > > Found with coccicheck and this semantic patch: > scripts/coccinelle/api/devm_ioremap_resource

Re: [PATCH] net: ethernet: freescale: use devm_ioremap_resource()

2013-05-14 Thread Frank Li
2013/5/14 Laurent Navet : > struct resource *res) > { > ... > if (!res || resource_type(res) != IORESOURCE_MEM) { > dev_err(dev, "invalid resource\n"); > return ERR_PTR(-EINVAL); Okay, thanks. Acked -- To unsubscribe from this list: send the line "unsubs

[PATCH 1/1 v7] ARM: imx: Added perf functionality to mmdc driver

2016-09-19 Thread Frank Li
mmdc/write-accesses/ 427.76 MB mmdc/write-bytes/ 5.334757334 seconds time elapsed Signed-off-by: Zhengyu Shen Signed-off-by: Frank Li --- Changes from v6 to v7 use mmdc_pmu prefix remove unnecessary check improve group event check according to mark's feed

[PATCH 1/1 v8] ARM: imx: Added perf functionality to mmdc driver

2016-09-19 Thread Frank Li
mmdc/write-accesses/ 427.76 MB mmdc/write-bytes/ 5.334757334 seconds time elapsed Signed-off-by: Zhengyu Shen Signed-off-by: Frank Li --- Changes from v7 to v8 fix a group event check problem, should be slibling. Changes from v6 to v7 use mmdc_pmu prefix

[PATCH 1/1 v5] ARM: imx: Added perf functionality to mmdc driver

2016-09-06 Thread Frank Li
mmdc/write-accesses/ 427.76 MB mmdc/write-bytes/ 5.334757334 seconds time elapsed Signed-off-by: Zhengyu Shen Signed-off-by: Frank Li --- Changes from v4 to v5 Remove mmdc_pmu:irq remove static variable cpuhp_mmdc_pmu remove spin_lock check is_sampling_e

[PATCH 1/1 v6] ARM: imx: Added perf functionality to mmdc driver

2016-09-14 Thread Frank Li
mmdc/write-accesses/ 427.76 MB mmdc/write-bytes/ 5.334757334 seconds time elapsed Signed-off-by: Zhengyu Shen Signed-off-by: Frank Li --- Changes from v5 to v6 Improve group event error handle Changes from v4 to v5 Remove mmdc_pmu:irq remove stati

[PATCH 1/1] dt-bindings: remoteproc: imx_rproc: add minItems for power-domain

2024-06-05 Thread Frank Li
"fsl,imx8qxp-cm4" just need 2 power domains. Keep the same restriction for other compatible string. Signed-off-by: Frank Li --- Notes: pass dt_binding_check. make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8 dt_binding_check DT_SCHEMA_FILES=fsl,imx-rproc.yaml

[PATCH v2 1/1] dt-bindings: remoteproc: imx_rproc: add minItems for power-domain

2024-06-06 Thread Frank Li
"fsl,imx8qxp-cm4" and "fsl,imx8qm-cm4" need minimum 2 power domains. Keep the same restriction for other compatible string. Signed-off-by: Frank Li --- Notes: Change from v1 to v2 - set minitem to 2 at top - Add imx8qm compatible string also - use not logic

Re: [PATCH v2 1/1] dt-bindings: remoteproc: imx_rproc: add minItems for power-domain

2024-06-07 Thread Frank Li
On Fri, Jun 07, 2024 at 09:32:26AM +0200, Krzysztof Kozlowski wrote: > On 06/06/2024 17:00, Frank Li wrote: > > "fsl,imx8qxp-cm4" and "fsl,imx8qm-cm4" need minimum 2 power domains. Keep > > the same restriction for other compatible string. > > > >

[PATCH v3 1/1] dt-bindings: remoteproc: imx_rproc: add minItems for power-domain

2024-06-10 Thread Frank Li
"fsl,imx8qxp-cm4" and "fsl,imx8qm-cm4" need minimum 2 power domains. Other platform doesn't require 'power-domain'. Signed-off-by: Frank Li --- Notes: Change from v2 to v3 - only imx8qxp and imx8qm need power-domain, other platform don

Re: [PATCH 6/6] remoteproc: imx_rproc: handle system off for i.MX7ULP

2024-08-05 Thread Frank Li
On Fri, Jul 12, 2024 at 04:34:59PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > The i.MX7ULP Cortex-A7 is under control of Cortex-M4. The i.MX7ULP Linux > poweroff and restart rely on rpmsg driver to send a message to Cortex-M4 > firmware. Then Cortex-A7 could poweroff or restart by Cortex-M4

[PATCH 1/1] firmware: imx: scu-pd: add missed ADC1 pd

2021-03-19 Thread Frank Li
ADC1 is not defined in pd driver on 8QM. Signed-off-by: Frank Li Reviewed-by: Dong Aisheng --- drivers/firmware/imx/scu-pd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/imx/scu-pd.c b/drivers/firmware/imx/scu-pd.c index 338800d16c653..966de5e5fc44a

[PATCH v2 1/1] mmc: cqhci: fix random crash when remove mmc module

2021-03-03 Thread Frank Li
y free } } Signed-off-by: Frank Li --- Change from v1 to v2 - use Adrian Hunter suggested method to fix this problem drivers/mmc/core/bus.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/mmc/core/bus.c b/drivers/mmc/core/bus.c index c2e70b

[PATCH 1/1] mmc: cqhci: fix random crash when remove mmc module

2021-03-01 Thread Frank Li
y free } } Signed-off-by: Frank Li --- drivers/mmc/host/cqhci-core.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/cqhci-core.c b/drivers/mmc/host/cqhci-core.c index 93b0432bb601..36d292261e50 100644 --- a/drivers/mmc/host

RE: [PATCH] ARM: dts: imx7d-pinfunc: add input mux for UART2 RX DTE mode

2016-05-05 Thread Frank Li
to use UART2 in DTE mode and the > particular pads on the Colibri iMX7 platform. > > Signed-off-by: Stefan Agner Acked-by: Frank Li > --- > arch/arm/boot/dts/imx7d-pinfunc.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/i

RE: [PATCH] ARM: imx: hide unused variable in #ifdef

2017-01-10 Thread Frank Li
> -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: Tuesday, January 10, 2017 6:19 AM > To: Shawn Guo > Cc: Thomas Gleixner ; Arnd Bergmann > ; Sascha Hauer ; Fabio Estevam > ; Russell King ; Frank Li > ; linux-arm-ker...@lists.inf

[PATCH V3 1/2] ARM: imx: mmdc perf function support i.MX6QP

2016-11-07 Thread Frank Li
i.MX6QP added new register bit PROFILE_SEL in MADPCR0. need set it at perf start. Signed-off-by: Frank Li --- Change from V2 - V3 - Use MMDC_FLAG_PROFILE_SEL - Use flags instead of driver_data - fix commit message typo - add const - use u32 val. Change from V1 - V2 - remove fsl_mmdc_devtype

[PATCH V3 2/2] ARM: dts: add new compatible stream for i.MX6QP mmdc

2016-11-07 Thread Frank Li
MMDC has a slightly different programming model between imx6q and imx6qp in terms of perf support, it's exactly same for suspend support, so we have fsl,imx6q-mmdc here to save patching suspend driver with the new compatible. Signed-off-by: Frank Li --- Change from V3 to V2 - change c

[PATCH V2 2/2] ARM: dts: add new compatible stream for i.MX6QP mmdc

2016-11-02 Thread Frank Li
mmdc of i.MX6QP are little difference with i.MX6Q. added new compatible stream fsl,imx6qp-mmdc Signed-off-by: Frank Li --- No change for this patch. suspend resume code need fsl,imx6q-mmdc arch/arm/boot/dts/imx6qp.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot

[PATCH v2 1/2] ARM: imx: mmdc perf function support i.MX6QP

2016-11-02 Thread Frank Li
i.MX6QP added new reigster bit PROFILE_SEL in MADPCR0. need set it at perf start. Signed-off-by: Frank Li --- V1 to V2: remove fsl_mmdc_devtype arch/arm/mach-imx/mmdc.c | 38 -- 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-imx

[PATCH 1/2] ARM: imx: mmdc perf function support i.MX6QP

2016-10-25 Thread Frank Li
i.MX6QP added new reigster bit PROFILE_SEL in MADPCR0. need set it at perf start. Signed-off-by: Frank Li --- arch/arm/mach-imx/mmdc.c | 45 +++-- 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-imx/mmdc.c b/arch/arm/mach-imx

[PATCH 2/2] ARM: dts: add new compatible stream for i.MX6QP mmdc

2016-10-26 Thread Frank Li
mmdc of i.MX6QP are little difference with i.MX6Q. added new compatible stream fsl,imx6qp-mmdc Signed-off-by: Frank Li --- arch/arm/boot/dts/imx6qp.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/imx6qp.dtsi b/arch/arm/boot/dts/imx6qp.dtsi index 886dbf2

RE: [PATCH 12/14] keyboard: snvs-pwrkey: use __maybe_unused to hide pm functions

2016-03-02 Thread Frank Li
> -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: Wednesday, March 02, 2016 9:59 AM > To: Dmitry Torokhov > Cc: linux-arm-ker...@lists.infradead.org; Arnd Bergmann ; > Shawn Guo ; b38...@freescale.com; Javier > Martinez Canillas ;

RE: [PATCH] ARM: dts: imx6q-bx50v3: Enable secure-reg-access

2018-02-02 Thread Frank Li
> -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Friday, February 02, 2018 1:18 AM > To: Sebastian Reichel > Cc: Sascha Hauer ; Frank Li ; > Fabio Estevam ; Ian Ray ; Rob > Herring ; Mark Rutland ; > devicet...@vger.kernel.org; linu

Re: [PATCH 1/4] dt-bindings: remoteproc: fsl,imx-rproc: add new compatible

2024-10-23 Thread Frank Li
On Wed, Oct 23, 2024 at 12:21:11PM -0400, Laurentiu Mihalcea wrote: > From: Laurentiu Mihalcea > > Add new compatible for imx95's CM7 with SOF. It is not only add compatible string, but also change reg, reg-names ... Please add descripts in commit message about these. > > Signed-off-by: Laurent

Re: [PATCH 2/4] ASoC: dt-bindings: audio-graph-card2: add widgets and hp-det-gpios support

2024-10-23 Thread Frank Li
On Wed, Oct 23, 2024 at 12:21:12PM -0400, Laurentiu Mihalcea wrote: > From: Laurentiu Mihalcea > > Introduce the 'widgets' property, allowing the creation of widgets from > 4 template widgets: Microphone, Line, Headphone, and Speaker. Also > introduce the 'hp-det-gpios' property, which allows usin

Re: [PATCH 3/4] ASoC: SOF: imx: add driver for imx95

2024-10-23 Thread Frank Li
On Wed, Oct 23, 2024 at 12:21:13PM -0400, Laurentiu Mihalcea wrote: > From: Laurentiu Mihalcea > > Add SOF driver for imx95. > > Signed-off-by: Laurentiu Mihalcea > --- > sound/soc/sof/imx/Kconfig | 8 + > sound/soc/sof/imx/Makefile | 2 + > sound/soc/sof/imx/imx95.c | 383

Re: [PATCH 4/4] arm64: dts: imx: add imx95 dts for sof

2024-10-23 Thread Frank Li
On Wed, Oct 23, 2024 at 12:21:14PM -0400, Laurentiu Mihalcea wrote: > From: Laurentiu Mihalcea > > Add imx95 DTS for SOF usage. > > Signed-off-by: Laurentiu Mihalcea > --- > arch/arm64/boot/dts/freescale/Makefile| 1 + > .../dts/freescale/imx95-19x19-evk-sof.dts | 86 +++

[PATCH v14 05/15] PCI: endpoint: Set ID and of_node for function driver

2025-02-07 Thread Frank Li
hem. Setting the ID and 'of_node' prepares for proper support. Signed-off-by: Frank Li --- drivers/pci/endpoint/pci-epf-core.c | 4 include/linux/pci-epf.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/pci/endpoint/pci-epf-core.c b/drivers/pci/endpoint/pci

[PATCH v14 03/15] irqchip/gic-v3-its: Set IRQ_DOMAIN_FLAG_MSI_IMMUTABLE for ITS

2025-02-07 Thread Frank Li
the PCIe Root Complex (RC) side. Signed-off-by: Frank Li --- change from v13 to v12 - roll back to v12 version because Marc Zyngier have concern about add DOMAIN_BUS_DEVICE_PCI_EP_MSI. https://lore.kernel.org/imx/861pxfq315.wl-...@kernel.org/ change from v11 to v12 - new patch --- drivers

[PATCH v14 04/15] irqchip/gic-v3-its: Add support for device tree msi-map and msi-mask

2025-02-07 Thread Frank Li
ined sideband information, which append to AXI write transaction. ^ 0 is function index. msi-mask = <0x7> } Check msi-map if msi-parent missed to keep compatility with existed system. Signed-off-by: Frank Li --- drivers/irqchip/irq-gic-v3-its-ms

[PATCH v14 02/15] irqdomain: Add IRQ_DOMAIN_FLAG_MSI_IMMUTABLE and irq_domain_is_msi_immutable()

2025-02-07 Thread Frank Li
remain unchanged after setup. Use this function to verify if the MSI controller is immutable. Signed-off-by: Frank Li --- change from v13 to v14 - Roll back to v12 version because Marc Zyngier have concern about add DOMAIN_BUS_DEVICE_PCI_EP_MSI. https://lore.kernel.org/imx/861pxfq315.wl

[PATCH v14 06/15] PCI: endpoint: Add RC-to-EP doorbell support using platform MSI controller

2025-02-07 Thread Frank Li
iklas Cassel Signed-off-by: Frank Li --- Change from v13 to v14 - basic roll back to v9 - use device:id as msi-map input, its will handle it - use existed platform_device_msi_init_and_alloc_irqs() - pass down epf->dev point, because epf->dev of-node will be the same as epc's parent. Ch

[PATCH v14 07/15] PCI: endpoint: pci-ep-msi: Add MSI address/data pair mutable check

2025-02-07 Thread Frank Li
Some MSI controller change address/data pair when irq_set_affinity(). Current PCI endpoint can't support this type MSI controller. So add flag MSI_FLAG_MUTABLE in include/linux/msi.h and check it when allocate doorbell. Signed-off-by: Frank Li --- change fomr v13 to v14 - bring v10 back C

[PATCH v14 08/15] PCI: endpoint: Add pci_epf_align_inbound_addr() helper for address alignment

2025-02-07 Thread Frank Li
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 form v9 to v14 - none change from v8 to v9 - pci_epf_align_inbound_addr(), base and

[PATCH v14 10/15] misc: pci_endpoint_test: Add doorbell test case

2025-02-07 Thread Frank Li
case as usual. Tested-by: Niklas Cassel Signed-off-by: Frank Li --- Change from v13 to v14 - update to use pci_endpoint_test -f pcie_ep_doorbell - change ioctrl id to fix conflict Change from v9 to v13 - none Change from v8 to v9 - change PCITEST_DOORBELL to 0xa Change form v6

[PATCH v14 13/15] pci: imx6: Add LUT setting for MSI/IOMMU in Endpoint mode

2025-02-07 Thread Frank Li
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. Signed-off-by: Frank Li --- change from v13 to v14 - new patch --- drivers/pci/controller/dwc/pci-imx6.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff

[PATCH v14 11/15] selftests: pci_endpoint: Add doorbell test case

2025-02-07 Thread Frank Li
Add doorbell test case. Signed-off-by: Frank Li --- change from v13 to v14 - merge to selftests framework --- .../selftests/pci_endpoint/pci_endpoint_test.c | 25 ++ 1 file changed, 25 insertions(+) diff --git a/tools/testing/selftests/pci_endpoint/pci_endpoint_test.c

[PATCH v14 09/15] PCI: endpoint: pci-epf-test: Add doorbell test support

2025-02-07 Thread Frank Li
pci_endpoint_test -f pcie_ep_doorbell' return success. If EP side doesn't support MSI, the same to 'F'. F: 'pci_endpoint_test -f pcie_ep_doorbell' return failure, other case as usual. Tested-by: Niklas Cassel Signed-off-by: Frank Li --- Change from v9 to v14 -

[PATCH v14 12/15] pci: imx6: Add helper function imx_pcie_add_lut_by_rid()

2025-02-07 Thread Frank Li
Add helper function imx_pcie_add_lut_by_rid(), which will be used for Endpoint mode in the future. No functional change. Signed-off-by: Frank Li --- change from v13 to v14 - new patch --- drivers/pci/controller/dwc/pci-imx6.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions

[PATCH v14 15/15] arm64: dts: imx95-19x19-evk: Add PCIe1 endpoint function overlay file

2025-02-07 Thread Frank Li
Add an overlay file to configure PCIe1 to function as an endpoint. Enable PCIe1 to work as endpoint mode on the imx95-19x19-evk platform. Signed-off-by: Frank Li --- change from v13 to v14 - new patch --- arch/arm64/boot/dts/freescale/Makefile | 3 +++ .../dts/freescale/imx95

[PATCH v14 14/15] arm64: dts: imx95: Add msi-map for pci-ep device

2025-02-07 Thread Frank Li
Add msi-map for pci-ep device. Signed-off-by: Frank Li --- change from v13 to v14 - new patch --- arch/arm64/boot/dts/freescale/imx95.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale/imx95.dtsi index 6b8470cb3461a

[PATCH v14 01/15] platform-msi: Add msi_remove_device_irq_domain() in platform_device_msi_free_irqs_all()

2025-02-07 Thread Frank Li
call msi_remove_device_irq_domain(). This cause above kernel dump when call platform_device_msi_init_and_alloc_irqs() again. Signed-off-by: Frank Li --- change from v13 to v14 - bring back from v9 and remove fixup and cc stable before it is new use case. --- drivers/base/platform-msi.c | 1 + 1

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

2025-02-07 Thread Frank Li
rovide general help function for EPC driver to alloc platform msi irq. - Fixed manivannan's comments. Signed-off-by: Frank Li --- Frank Li (15): platform-msi: Add msi_remove_device_irq_domain() in platform_device_msi_free_irqs_all() irqdomain: Add IRQ_DOMAIN_FLAG_MSI_

[PATCH v15 14/15] arm64: dts: imx95: Add msi-map for pci-ep device

2025-02-11 Thread Frank Li
Add msi-map for pci-ep device. Signed-off-by: Frank Li --- change from v14 to v15 - none change from v13 to v14 - new patch --- arch/arm64/boot/dts/freescale/imx95.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale

[PATCH v15 15/15] arm64: dts: imx95-19x19-evk: Add PCIe1 endpoint function overlay file

2025-02-11 Thread Frank Li
Add an overlay file to configure PCIe1 to function as an endpoint. Enable PCIe1 to work as endpoint mode on the imx95-19x19-evk platform. Signed-off-by: Frank Li --- change from v14 to v15 - none change from v13 to v14 - new patch --- arch/arm64/boot/dts/freescale/Makefile | 3

Re: [PATCH bpf] selftests/bpf: add XDP_UMEM_TX_METADATA_LEN flag to umem_config

2024-12-20 Thread Frank Li
On Fri, Dec 20, 2024 at 05:18:06PM +0800, Wei Fang wrote: > The Tx metadata test has been broken since the commit d5e726d9143c ("xsk: > Require XDP_UMEM_TX_METADATA_LEN to actuate tx_metadata_len"). Nit: Fixes tag already include this information. The Tx metadata test has been broken becasue XDP

[PATCH v15 01/15] platform-msi: Add msi_remove_device_irq_domain() in platform_device_msi_free_irqs_all()

2025-02-11 Thread Frank Li
call msi_remove_device_irq_domain(). This cause above kernel dump when call platform_device_msi_init_and_alloc_irqs() again. Signed-off-by: Frank Li --- change from v14 5o v15 - none change from v13 to v14 - bring back from v9 and remove fixup and cc stable before it is new use case

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

2025-02-11 Thread Frank Li
ll disabled* * Behavior remains unchanged. Change from v1 to v2 - Add missed patch for endpont/pci-epf-test.c - Move alloc and free to epc driver from epf. - Provide general help function for EPC driver to alloc platform msi irq. - Fixed manivannan's comments. Signed-off-by: Frank Li --

[PATCH v15 02/15] irqdomain: Add IRQ_DOMAIN_FLAG_MSI_IMMUTABLE and irq_domain_is_msi_immutable()

2025-02-11 Thread Frank Li
remain unchanged after setup. Use this function to verify if the MSI controller is immutable. Signed-off-by: Frank Li --- change from v14 to v15 - none change from v13 to v14 - Roll back to v12 version because Marc Zyngier have concern about add DOMAIN_BUS_DEVICE_PCI_EP_MSI. https://lore.kernel.org

[PATCH v15 03/15] irqchip/gic-v3-its: Set IRQ_DOMAIN_FLAG_MSI_IMMUTABLE for ITS

2025-02-11 Thread Frank Li
the PCIe Root Complex (RC) side. Signed-off-by: Frank Li --- change from v14 to v15 - none change from v13 to v12 - roll back to v12 version because Marc Zyngier have concern about add DOMAIN_BUS_DEVICE_PCI_EP_MSI. https://lore.kernel.org/imx/861pxfq315.wl-...@kernel.org/ change from v11 to v12

[PATCH v15 06/15] PCI: endpoint: Add RC-to-EP doorbell support using platform MSI controller

2025-02-11 Thread Frank Li
iklas Cassel Signed-off-by: Frank Li --- Change from v14 to v15 - check CONFIG_GENERIC_MSI Fix below build error | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202502082204.6prr3cfg-...@intel.com/ All errors (new ones prefixed by >>): drivers/pci/e

[PATCH v15 07/15] PCI: endpoint: pci-ep-msi: Add MSI address/data pair mutable check

2025-02-11 Thread Frank Li
Some MSI controller change address/data pair when irq_set_affinity(). Current PCI endpoint can't support this type MSI controller. So add flag MSI_FLAG_MUTABLE in include/linux/msi.h and check it when allocate doorbell. Signed-off-by: Frank Li --- change from v14 to v15 - none change from

[PATCH v15 04/15] irqchip/gic-v3-its: Add support for device tree msi-map and msi-mask

2025-02-11 Thread Frank Li
ined sideband information, which append to AXI write transaction. ^ 0 is function index. msi-mask = <0x7> } Check msi-map if msi-parent missed to keep compatility with existed system. Signed-off-by: Frank Li --- change from v14 to v15 - none c

[PATCH v15 05/15] PCI: endpoint: Set ID and of_node for function driver

2025-02-11 Thread Frank Li
hem. Setting the ID and 'of_node' prepares for proper support. Signed-off-by: Frank Li --- change from v14 to v15 - none change from v13 to v14 new patch --- drivers/pci/endpoint/pci-epf-core.c | 4 include/linux/pci-epf.h | 2 ++ 2 files changed, 6 insertions(+) diff --gi

[PATCH v15 09/15] PCI: endpoint: pci-epf-test: Add doorbell test support

2025-02-11 Thread Frank Li
pci_endpoint_test -f pcie_ep_doorbell' return success. If EP side doesn't support MSI, the same to 'F'. F: 'pci_endpoint_test -f pcie_ep_doorbell' return failure, other case as usual. Tested-by: Niklas Cassel Signed-off-by: Frank Li --- change from v14 to v15 - none Ch

[PATCH v15 10/15] misc: pci_endpoint_test: Add doorbell test case

2025-02-11 Thread Frank Li
case as usual. Tested-by: Niklas Cassel Signed-off-by: Frank Li --- change from v14 to v15 - none Change from v13 to v14 - update to use pci_endpoint_test -f pcie_ep_doorbell - change ioctrl id to fix conflict Change from v9 to v13 - none Change from v8 to v9 - change PCITEST_DOORBELL to 0xa Cha

[PATCH v15 08/15] PCI: endpoint: Add pci_epf_align_inbound_addr() helper for address alignment

2025-02-11 Thread Frank Li
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 form v14 to v15 - change out address type to dma_addr_t to fix below build issue

[PATCH v15 11/15] selftests: pci_endpoint: Add doorbell test case

2025-02-11 Thread Frank Li
Add doorbell test case. Signed-off-by: Frank Li --- change from v14 to v15 - none change from v13 to v14 - merge to selftests framework --- .../selftests/pci_endpoint/pci_endpoint_test.c | 25 ++ 1 file changed, 25 insertions(+) diff --git a/tools/testing/selftests

[PATCH v15 12/15] pci: imx6: Add helper function imx_pcie_add_lut_by_rid()

2025-02-11 Thread Frank Li
Add helper function imx_pcie_add_lut_by_rid(), which will be used for Endpoint mode in the future. No functional change. Signed-off-by: Frank Li --- change from v14 to v15 - none change from v13 to v14 - new patch --- drivers/pci/controller/dwc/pci-imx6.c | 17 ++--- 1 file changed

[PATCH v15 13/15] pci: imx6: Add LUT setting for MSI/IOMMU in Endpoint mode

2025-02-11 Thread Frank Li
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. Signed-off-by: Frank Li --- change from v14 to v15 - none change from v13 to v14 - new patch --- drivers/pci/controller/dwc/pci-imx6.c | 8 +++- 1 file changed, 7

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

2025-02-20 Thread Frank Li
On Tue, Feb 11, 2025 at 02:21:53PM -0500, Frank Li wrote: Thomas Gleixner and Marc Zyngier: Do you have any comments about irq/msi part? Frank

Re: [PATCH 1/5] reset: imx8mp-audiomix: Add prefix for internal macro

2025-02-18 Thread Frank Li
On Tue, Feb 18, 2025 at 10:57:08AM +0200, Daniel Baluta wrote: > This adds IMX8MP_AUDIOMIX_ prefix to internal macros > in order to show that specific macros are related to > audiomix. nit: warp at 75 chars Reviewed-by: Frank Li > > Signed-off-by: Daniel Baluta > --- >

Re: [PATCH 3/5] reset: imx8mp-audiomix: Introduce active_low configuration option

2025-02-18 Thread Frank Li
On Tue, Feb 18, 2025 at 10:30:21AM +0100, Philipp Zabel wrote: > On Di, 2025-02-18 at 10:57 +0200, Daniel Baluta wrote: > > For EARC and EARC PHY the reset happens when clearing the reset bits. > > Refactor assert/deassert function in order to take into account > > the active_low configuratin optio

Re: [PATCH 3/5] reset: imx8mp-audiomix: Introduce active_low configuration option

2025-02-18 Thread Frank Li
On Tue, Feb 18, 2025 at 10:57:10AM +0200, Daniel Baluta wrote: > For EARC and EARC PHY the reset happens when clearing the reset bits. > Refactor assert/deassert function in order to take into account > the active_low configuratin option. > > Signed-off-by: Daniel Baluta Review

Re: [PATCH 4/5] reset: imx8mp-audiomix: Add support for DSP run/stall

2025-02-18 Thread Frank Li
; --- Reviewed-by: Frank Li > drivers/reset/reset-imx8mp-audiomix.c | 12 ++-- > 1 file changed, 10 insertions(+), 2 deletions(-) > > diff --git a/drivers/reset/reset-imx8mp-audiomix.c > b/drivers/reset/reset-imx8mp-audiomix.c > index 8cc0a6b58cbc..ee56d52a7278 10064

Re: [PATCH 2/5] reset: imx8mp-audiomix: Prepare the code for more reset bits

2025-02-18 Thread Frank Li
On Tue, Feb 18, 2025 at 10:57:09AM +0200, Daniel Baluta wrote: > Current code supports EARC PHY Software Reset and EARCSoftware > Reset but it is not easily extensible to more reset bits. > > So, refactor the code in order to easily allow more reset bits > in the future. Nit: wrap at 75 ch

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

2025-02-28 Thread Frank Li
On Thu, Feb 20, 2025 at 09:42:57PM +0100, Thomas Gleixner wrote: > On Thu, Feb 20 2025 at 15:01, Frank Li wrote: > > On Tue, Feb 11, 2025 at 02:21:53PM -0500, Frank Li wrote: > > > > Thomas Gleixner and Marc Zyngier: > > > > Do you have any comments about

Re: [PATCH v15 07/15] PCI: endpoint: pci-ep-msi: Add MSI address/data pair mutable check

2025-03-03 Thread Frank Li
On Sat, Mar 01, 2025 at 11:44:50AM +, Marc Zyngier wrote: > On Tue, 11 Feb 2025 19:22:00 +, > Frank Li wrote: > > > > Some MSI controller change address/data pair when irq_set_affinity(). > > Current PCI endpoint can't support this type MSI controller. So add

Re: [PATCH v15 02/15] irqdomain: Add IRQ_DOMAIN_FLAG_MSI_IMMUTABLE and irq_domain_is_msi_immutable()

2025-03-03 Thread Frank Li
On Sat, Mar 01, 2025 at 11:10:35AM +, Marc Zyngier wrote: > On Tue, 11 Feb 2025 19:21:55 +, > Frank Li wrote: > > > > Add the flag IRQ_DOMAIN_FLAG_MSI_IMMUTABLE and the API function > > irq_domain_is_msi_immutable() to check if the MSI controller retains an > &g

Re: [PATCH v15 04/15] irqchip/gic-v3-its: Add support for device tree msi-map and msi-mask

2025-03-03 Thread Frank Li
On Sat, Mar 01, 2025 at 11:37:14AM +, Marc Zyngier wrote: > On Tue, 11 Feb 2025 19:21:57 +, > Frank Li wrote: > > > > Some platform devices create child devices dynamically and require the > > parent device's msi-map to map device IDs to actual sideband infor

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

2025-03-10 Thread Frank Li
On Sat, Mar 01, 2025 at 07:09:35PM +0100, Thomas Gleixner wrote: > On Sat, Mar 01 2025 at 12:02, Marc Zyngier wrote: > > - This IMMUTABLE thing serves no purpose, because you don't randomly > > plug this end-point block on any MSI controller. They come as part > > of an SoC. > > Yes and no. The