FlexRM support in VFIO platform
Subsystems (3)
PATCH v5 1/1 FlexRM support in VFIO platform
This patchset primarily adds Broadcom FlexRM reset module for VFIO platform driver.
The patches are based on Linux-4.13-rc3 and can also be found at flexrm-vfio-v5 branch of
https://github.com/Broadcom/arm64-linux.git
Changes since v4:
- Use "--timeout" instead of "timeout--" in
vfio_platform_bcmflexrm_shutdown()
Changes since v3:
- Improve "depends on" for Kconfig option VFIO_PLATFORM_BCMFLEXRM_RESET
- Fix typo in pr_warn() called by vfio_platform_bcmflexrm_shutdown()
- Return error from vfio_platform_bcmflexrm_shutdown() when FlexRM ring flush timeout happens
Changes since v2:
- Remove PATCH1 because fixing VFIO no-IOMMU mode is a separate topic
Changes since v1:
- Remove iommu_present() check in vfio_iommu_group_get()
- Drop PATCH1-to-PATCH3 because IOMMU_CAP_BYPASS is not required
- Move additional comments out of license header in vfio_platform_bcmflexrm.c
Anup Patel (1):
vfio: platform: reset: Add Broadcom FlexRM reset module
drivers/vfio/platform/reset/Kconfig | 8 ++ drivers/vfio/platform/reset/Makefile | 1 + .../vfio/platform/reset/vfio_platform_bcmflexrm.c | 100 +++++++++++++++++++++ 3 files changed, 109 insertions(+) create mode 100644 drivers/vfio/platform/reset/vfio_platform_bcmflexrm.c
Signature · 1 line
2.7.4
PATCH v5 1/1 vfio: platform: reset: Add Broadcom FlexRM reset module
This patch adds Broadcom FlexRM low-level reset for VFIO platform.
It will do the following:
1. Disable/Deactivate each FlexRM ring
2. Flush each FlexRM ring
The cleanup sequence for FlexRM rings is adapted from Broadcom FlexRM mailbox driver.
--- drivers/vfio/platform/reset/Kconfig | 8 ++ drivers/vfio/platform/reset/Makefile | 1 + .../vfio/platform/reset/vfio_platform_bcmflexrm.c | 100 +++++++++++++++++++++ 3 files changed, 109 insertions(+) create mode 100644 drivers/vfio/platform/reset/vfio_platform_bcmflexrm.c
drivers/vfio/platform/reset/Kconfig +8 -0
@@ -13,3 +13,11 @@ config VFIO_PLATFORM_AMDXGBE_RESET Enables the VFIO platform driver to handle reset for AMD XGBE If you don't know what to do here, say N. + +config VFIO_PLATFORM_BCMFLEXRM_RESET + tristate "VFIO support for Broadcom FlexRM reset" + depends on VFIO_PLATFORM && (ARCH_BCM_IPROC || COMPILE_TEST) + help + Enables the VFIO platform driver to handle reset for Broadcom FlexRM + + If you don't know what to do here, say N.
drivers/vfio/platform/reset/Makefile +1 -0
@@ -5,3 +5,4 @@ ccflags-y += -Idrivers/vfio/platform obj-$(CONFIG_VFIO_PLATFORM_CALXEDAXGMAC_RESET) += vfio-platform-calxedaxgmac.o obj-$(CONFIG_VFIO_PLATFORM_AMDXGBE_RESET) += vfio-platform-amdxgbe.o +obj-$(CONFIG_VFIO_PLATFORM_BCMFLEXRM_RESET) += vfio_platform_bcmflexrm.o
drivers/vfio/platform/reset/vfio_platform_bcmflexrm.c new file +100 -0
100 lines not on this page · raw message
Signature · 1 line
2.7.4
Re: [PATCH v5] vfio: platform: reset: Add Broadcom FlexRM reset module
Hi Anup,
We should add default (as below).
Quoted 26 lines · Anup Patel
This patch adds Broadcom FlexRM low-level reset for VFIO platform.
It will do the following:
1. Disable/Deactivate each FlexRM ring
2. Flush each FlexRM ringThe cleanup sequence for FlexRM rings is adapted from Broadcom FlexRM mailbox driver.
Reviewed-by Eric Auger <[email protected]>--- drivers/vfio/platform/reset/Kconfig | 8 ++ drivers/vfio/platform/reset/Makefile | 1 + .../vfio/platform/reset/vfio_platform_bcmflexrm.c | 100 +++++++++++++++++++++ 3 files changed, 109 insertions(+)create mode 100644
drivers/vfio/platform/reset/vfio_platform_bcmflexrm.cdrivers/vfio/platform/reset/Kconfig +0
-0
drivers/vfio/platform/reset/Kconfig config VFIO_PLATFORM_AMDXGBE_RESET · line 19
Quoted 7 lines
drivers/vfio/platform/reset/Kconfig +4
-0@@ -13,3 +13,11 @@ config VFIO_PLATFORM_AMDXGBE_RESET Enables the VFIO platform driver to handle reset for AMD XGBE If you don't know what to do here, say N. + +config VFIO_PLATFORM_BCMFLEXRM_RESET + tristate "VFIO support for Broadcom FlexRM reset" + depends on VFIO_PLATFORM && (ARCH_BCM_IPROC || COMPILE_TEST)
default ARCH_BCM_IPROC
Quoted 5 lines
drivers/vfio/platform/reset/Kconfig +4
-0+ help + Enables the VFIO platform driver to handle reset for Broadcom FlexRM + + If you don't know what to do here, say N.