On Mon, Apr 14, 2025 at 02:30:54PM -0400, Frank Li wrote:
Marc Zyngier:
Do you have additional comments for this version?
Frank Li
│ ││
││ │ │ ││
││ │ │ ││
└┘ └───┘ └┘
This patches based on old
https://lore.kernel.org/imx/20221124055036.1630573-1-frank...@nxp.com/
Original patch only target to vntb driver. But actually it is common
method.
This patches add new API to pci-epf-core, so any EP driver can use it.
Previous v2 discussion here.
https
Add msi-map for pci-ep device.
Signed-off-by: Frank Li
---
change from v14 to v16
- 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
iklas Cassel
Signed-off-by: Frank Li
---
Change from v15 to v16
- fix rebase conflict
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
Add doorbell test case.
Signed-off-by: Frank Li
---
change from v14 to v16
- Add set IRQ type
change from v13 to v14
- merge to selftests framework
---
.../selftests/pci_endpoint/pci_endpoint_test.c | 28 ++
1 file changed, 28 insertions(+)
diff --git a/tools/testing
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 v16
- none
change from v13 to v14
- new patch
---
drivers/pci/controller/dwc/pci-imx6.c | 8 +++-
1 file changed, 7
systems and is therefore not
a reliable identifier.
Signed-off-by: Frank Li
---
Change from v17 to v18
- mask max value should 0x7
- order according to property name
Change from v16 to v17
- new patch
---
Documentation/devicetree/bindings/pci/pci-ep.yaml | 68 +++
1 file
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 v16
- none
change from v13 to v14
- new patch
---
drivers/pci/controller/dwc/pci-imx6.c | 17 ++---
1 file changed
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
- none
Change from v14 to v15
- change out address type to dma_addr_t
case as
usual.
Tested-by: Niklas Cassel
Signed-off-by: Frank Li
---
change from v14 to v16
- 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
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 v15 to v16
- use le32
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 v16
- none
change from
hem. Setting the ID and 'of_node' prepares for
proper support.
Signed-off-by: Frank Li
---
change from v14 to v16
- 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
^^^ 0xc is implement defined 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
the PCIe Root Complex (RC) side.
Signed-off-by: Frank Li
---
change from v14 to v16
- 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
remain unchanged after setup. Use this
function to verify if the MSI controller is immutable.
Signed-off-by: Frank Li
---
change from v14 to v16
- 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
: Marc Zyngier
Signed-off-by: Frank Li
---
Change from v14 to v16
- use Marc Zyngier's suggested commit message
- Add Marc Zyngier's ack tag
change from v14 to v15
- none
change from v13 to v14
- bring back from v9 and remove fixup and cc stable before it is new use
case.
---
dr
^^^ 0xc is implement defined 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
│ ││
││ │ │ ││
││ │ │ ││
└┘ └───┘ └┘
This patches based on old
https://lore.kernel.org/imx/20221124055036.1630573-1-frank...@nxp.com/
Original patch only target to vntb driver. But actually it is common
method.
This patches add new API to pci-epf-core, so any EP driver can use it.
Previous v2 discussion here.
https
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 v16
- none
change from v13 to v14
- new patch
---
drivers/pci/controller/dwc/pci-imx6.c | 17 ++---
1 file changed
Add msi-map for pci-ep device.
Signed-off-by: Frank Li
---
change from v14 to v16
- 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
: Marc Zyngier
Signed-off-by: Frank Li
---
Change from v14 to v16
- use Marc Zyngier's suggested commit message
- Add Marc Zyngier's ack tag
change from v14 to v15
- none
change from v13 to v14
- bring back from v9 and remove fixup and cc stable before it is new use
case.
---
dr
iklas Cassel
Signed-off-by: Frank Li
---
Change from v15 to v16
- fix rebase conflict
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
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
- none
Change from v14 to v15
- change out address type to dma_addr_t
Add doorbell test case.
Signed-off-by: Frank Li
---
change from v14 to v16
- Add set IRQ type
change from v13 to v14
- merge to selftests framework
---
.../selftests/pci_endpoint/pci_endpoint_test.c | 28 ++
1 file changed, 28 insertions(+)
diff --git a/tools/testing
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 v16
- none
change from
case as
usual.
Tested-by: Niklas Cassel
Signed-off-by: Frank Li
---
change from v14 to v16
- 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
hem. Setting the ID and 'of_node' prepares for
proper support.
Signed-off-by: Frank Li
---
change from v14 to v16
- 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
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 v15 to v16
- use le32
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 v16
- none
change from v13 to v14
- new patch
---
drivers/pci/controller/dwc/pci-imx6.c | 8 +++-
1 file changed, 7
systems and is therefore not
a reliable identifier.
Signed-off-by: Frank Li
---
Change from v16 to v17
- new patch
---
Documentation/devicetree/bindings/pci/pci-ep.yaml | 67 +++
1 file changed, 67 insertions(+)
diff --git a/Documentation/devicetree/bindings/pci/pci-ep.yaml
b
the PCIe Root Complex (RC) side.
Signed-off-by: Frank Li
---
change from v14 to v16
- 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
remain unchanged after setup. Use this
function to verify if the MSI controller is immutable.
Signed-off-by: Frank Li
---
change from v14 to v16
- 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
queue_add_split
> virtqueue_add_inbuf
> rpmsg_recv_done
> vring_interrupt
> rproc_vq_interrupt
> imx_rproc_vq_work
> process_one_work
> worker_thread
> kthread
> ret_from_fork
>
> Signed-off-by: Peng Fan
Reviewed-by: Frank Li
> ---
> drivers/remoteproc/
On Fri, Apr 04, 2025 at 03:11:40PM -0500, Rob Herring wrote:
> On Fri, Apr 04, 2025 at 03:01:05PM -0400, Frank Li wrote:
> > Document the use of msi-map for PCI Endpoint (EP) controllers, which can
> > use MSI as a doorbell mechanism. Each EP controller can support up to 8
> &g
Add msi-map for pci-ep device.
Signed-off-by: Frank Li
---
change from v14 to v16
- 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
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 v16
- none
change from v13 to v14
- new patch
---
drivers/pci/controller/dwc/pci-imx6.c | 17 ++---
1 file changed
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 v16
- none
change from v13 to v14
- new patch
---
drivers/pci/controller/dwc/pci-imx6.c | 8 +++-
1 file changed, 7
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 v16
- none
change from
Add doorbell test case.
Signed-off-by: Frank Li
---
change from v14 to v16
- Add set IRQ type
change from v13 to v14
- merge to selftests framework
---
.../selftests/pci_endpoint/pci_endpoint_test.c | 28 ++
1 file changed, 28 insertions(+)
diff --git a/tools/testing
case as
usual.
Tested-by: Niklas Cassel
Signed-off-by: Frank Li
---
change from v14 to v16
- 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
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 v15 to v16
- use le32
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
- none
Change from v14 to v15
- change out address type to dma_addr_t
iklas Cassel
Signed-off-by: Frank Li
---
Change from v15 to v16
- fix rebase conflict
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
hem. Setting the ID and 'of_node' prepares for
proper support.
Signed-off-by: Frank Li
---
change from v14 to v16
- 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
^^^ 0xc is implement defined 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
], enabling msi-map to associate each child device
with a specific msi-specifier.
Include a device tree example illustrating this configuration.
Signed-off-by: Frank Li
---
change from v15 to v16
- new patch
---
Documentation/devicetree/bindings/pci/pci-msi.txt | 51 +++
1 file
the PCIe Root Complex (RC) side.
Signed-off-by: Frank Li
---
change from v14 to v16
- 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
remain unchanged after setup. Use this
function to verify if the MSI controller is immutable.
Signed-off-by: Frank Li
---
change from v14 to v16
- 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
│ ││
││ │ │ ││
││ │ │ ││
└┘ └───┘ └┘
This patches based on old
https://lore.kernel.org/imx/20221124055036.1630573-1-frank...@nxp.com/
Original patch only target to vntb driver. But actually it is common
method.
This patches add new API to pci-epf-core, so any EP driver can use it.
Previous v2 discussion here.
https
: Marc Zyngier
Signed-off-by: Frank Li
---
Change from v14 to v16
- use Marc Zyngier's suggested commit message
- Add Marc Zyngier's ack tag
change from v14 to v15
- none
change from v13 to v14
- bring back from v9 and remove fixup and cc stable before it is new use
case.
---
dr
gic number.\n");
> + goto ignored;
> + }
> +
> + /*
> + * For now, in struct fw_rsc_imx_dsp, version 0,
> + * only FEATURE_DONT_WAIT_FW_READY is valid.
> + *
> + * When adding new features, please upgrade version.
> + */
> + if (
m to ensure that the underlying irqdomain provides a
> immutable address/data pair.
>
> So it does not matter for GIC-ITS, but in the larger picture it matters.
Marc:
Do you satisfy Thomans's anwser? So I can respin this series.
Frank
>
> Thanks,
>
> tglx
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
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
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
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
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
; ---
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
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
tive_low configuratin option.
> ^
> missing 'o'.
run ./scripts/checkpatch.pl -g HEAD --strict --codespell
Frank
>
> >
> > Signed-off-by: Daniel Baluta
> > ---
> > drivers/reset/reset-imx8mp-aud
ASK 0x3
> +#define IMX8MP_AUDIOMIX_EARC_RESET_MASK 0x1
> +#define IMX8MP_AUDIOMIX_EARC_PHY_RESET_MASK 0x2
> +
> +#define IMX8MP_AUDIOMIX_EARC 0
> +#define IMX8MP_AUDIOMIX_EARC_PHY 1
Does dt binding need such macro?
If not, you
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
> ---
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
│ ││
││ │ │ ││
││ │ │ ││
└┘ └───┘ └┘
This patches based on old
https://lore.kernel.org/imx/20221124055036.1630573-1-frank...@nxp.com/
Original patch only target to vntb driver. But actually it is common
method.
This patches add new API to pci-epf-core, so any EP driver can use it.
Previous v2 discussion here.
https
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
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
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
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
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
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
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
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
-
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
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
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
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
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
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
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
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
│ ││
││ │ │ ││
││ │ │ ││
└┘ └───┘ └┘
This patches based on old
https://lore.kernel.org/imx/20221124055036.1630573-1-frank...@nxp.com/
Original patch only target to vntb driver. But actually it is common
method.
This patches add new API to pci-epf-core, so any EP driver can use it.
Previous v2 discussion here.
https
On 2/4/25 9:48 AM, Colin Ian King wrote:
There is a spelling mistake in a literal string. Fix it.
Signed-off-by: Colin Ian King
---
tools/testing/selftests/kvm/s390/cmma_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/kvm/s390/cmma_test.c
b
AULT_FLAGS,
> + .flags = XDP_UMEM_TX_METADATA_LEN,
look like "XSK_UMEM__DEFAULT_FLAGS | XDP_UMEM_TX_METADATA_LEN"
You clean other flags, does it what you what?
Frank
> .tx_metadata_len = sizeof(struct xsk_tx_metadata),
> };
> __u32 idx = 0;
> --
> 2.34.1
>
of strings, the first being the type of
> + widget ("Microphone", "Line", "Headphone", "Speaker"), the
> + second being the machine specific name for the widget.
> +$ref: /schemas/types.yaml#/definitions/non-unique-string-array
Is it
L",
> + "Headphones", "HPOUTR",
> + "Headset Mic", "MICBIAS",
> + "IN3R", "Headset Mic",
> + "IN1R", "Headset Mic";
> + };
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
1 - 100 of 1606 matches
Mail list logo