From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Return-Path: From: Peter Griffin Subject: [PATCH v8 00/18] Add support for FDMA DMA controller and slim core rproc found on STi chipsets Date: Fri, 26 Aug 2016 15:56:35 +0100 Message-Id: <1472223413-7254-1-git-send-email-peter.griffin@linaro.org> To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@stlinux.com, vinod.koul@intel.com, patrice.chotard@st.com, dan.j.williams@intel.com, airlied@linux.ie, kraxel@redhat.com, ohad@wizery.com, bjorn.andersson@linaro.org Cc: peter.griffin@linaro.org, lee.jones@linaro.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, linux-remoteproc@vger.kernel.org List-ID: Hi Vinod, Bjorn, Patrice, This patchset adds support for the Flexible Direct Memory Access (FDMA) core found on STi chipsets from STMicroelectronics. The FDMA is a slim core CPU with a dedicated firmware. It is a general purpose DMA controller supporting 16 independent channels and data can be moved from memory to memory or between memory and paced latency critical real time targets. After quite a few review rounds, I'm hoping this series can get taken for v4.9. After some discussion with the DT maintainers I've removed the firmware name from DT, and now generate the name based on the compatible string. I've also dropped the dma xbar support for the moment, as I believe it should be re-worked based on some of the xbar API's that TI recently added. V3 also included some updates to the ASoC st,sti-asoc-card.txt DT documentation to make the doc align with the driver code. These patches have already been applied and are now dropped from this series. Other changes included enabling the ASoC drivers in multi_v7 defconfig and adding DT patches for Patrices STi DT tree to enable ASoC on STiH407/10 based platforms using the fdma driver. v4 includes a new slim core rproc driver for loading the slim elf firmware. This enables us to use the generic rproc elf loading code. This has deliberately not been implemented as a platform_driver, to avoid having to have double mappings of I/O memory from two device drivers, and also to ensure that the DT node reflects the actual hardware rather than Linux subsystems. The slim core is the basis for various pieces of IP in STi chipsets and the intention is that other drivers (e.g. demux) can also be migrated over to using the slim rproc for their elf firmware loading and start/stop control. v5 includes various updates from Bjorn related to the slim rproc implementation. It also includes a patch to make rsc_table optional in remoteproc_core and various other cleanups and review feedback from Vinod to do with the actual fdma implementation. It also fixes a regression introduced in v4 when all drivers are built-in spotted by Aranud. v6 goes back to having a dummy rsc_table and fixes some kbuild warnings. However a change is still required in rproc core when all drivers are built-in as the initial async firmware resource table parsing can fail when built-in, which causes subsequent calls to rproc_boot() to also fail. V6 changes this behaviour to retry rproc_fw_config_virtio() from rproc_boot(), in cases where it previously failed, as at this point we know the irmwaref has been successfully obtained. v7 removes all remoteproc core changes required to get -EPROBE_DEFER working properly when firmware resides on a rootfs and compiling as built-in. The fdma driver now relies on the firmware being available in the initramfs when building fdma as built-in. This has been tested and works well. If remoteproc subsystem implements a new mechanism for firmware on late mounted root filesystems, we can migrate this driver over to use it at that point. v8 actions some review feedback from Bjorn to the slim rproc driver, and also includes a patch which fixes a recursive Kconfig error which is triggered when st_fdma selects slim_rproc driver. The series has also been rebased on v4.8-rc3. regards, Peter. Changes since v7: - Rebase on v4.8-rc3 (Peter) - Double check that len is <= mem[i].size (Bjorn) - Remove if (!fw) checks (Bjorn) - Omit reference from fw_ops struct (Bjorn) - Call rproc_del() before rproc_put() (Bjorn) - Fix some odd line breaks (Bjorn) - Rename SLIM_* and slim_* with st prefix (Bjorn) Changes since v6: - Fix recursive Kconfig warning (Patrice) - Fix various Intel zero day compiler warnings - Remove all changes related to late firmware load (now relies on initramfs) (Peter) Changes since v5: - Remove optional rsc table and go back to dummy resource table (Bjorn) - Retry rproc_fw_config_virtio() from rproc_boot() if previously failed (Peter) - Fixup some kbuild warnings - rebase on v4.7-rc5 - Remove some patches which were merged via ASoC tree Changes since v4: - Make rsc table optional in remoteproc (Peter) - Various fixups to STi audio DT nodes (Arnaud) - Bulk rename of xp70 to slim (Peter) - Update my email to @linaro.org (Lee) - rebase on v4.7-rc2 (Peter) - Don't make ST_SLIM_REMOTEPROC user selectable (Bjorn) - -EPROBE_DEFER if rproc_boot fails when allocating DMA channel (Arnaud / Peter) - Drop some unnecessary headers (Vinod / Bjorn) - Change to writel now we have several mappings (Bjorn) - Remove io_res, rproc, and some unused structure fields / #define (Bjorn) - put clks in error path, also put clks before rproc_put() (Bjorn) - Make enum less generic (Bjorn) - Make slim_rproc_alloc() return a st_slim_rproc reference (Bjorn) - Alphabetical naming in Kconfig & Makefile (Vinod) - Add FDMA prefix to REQ_CTRL* (Vinod) - Print ret on some error paths (Vinod) - Add some acked-by (Peter) Changes since v3: - Remove elf loading code from fdma driver (Vinod) - Remove fdma_ prefix for clock names (Arnd) - Make _xlate use dma_get_any_channel rather than request_channel (Arnd) - Make a common function for _prep_ routines (Vinod) - Make driver depend on COMPILE_TEST (Arnd) - Remove unnecessary st_fdma_filter_fn (Arnd) - Enable FDMA as a module (Arnd) - Drop fdma_ clock prefix (Arnd) - Fix description as well as example for st, prefix (Arnd) - Remove string concatenation from fdma register macros to ease grep'ability (Arnd) - Add a XP70 rproc driver for ELF firmware loading and start/stop control (Peter) - Add myself as a author of the driver (Peter) Changes since v2: - Change to dma-controller (Arnd) - Remove platform data header file and simplifiy code (Arnd) - Remove FW_LOADER_USER_HELPER_FALLBACK and rework firmware loading to device config (Vinod) - Use SET_RUNTIME_PM_OPS helpers (Vinod) - Remove fdma-id dt prop and use compatibles to generate different fdma firmware names (Arnd / Lee) - Add sti-asoc-card DT nodes and pinmux config for uniperif player & reader (Peter) - Update sti-asoc-card DT binding documentation (Peter) - Enable STi audio drivers in multi_v7_defconfig (Peter) Changes since v1: - split into smaller patches for easier / faster review (Vinod) - new fill_hw_mode() with common code (Vinod) - new config_reqctrl() called from *_prep() instead of device_config cb (Vinod) - fdma-xbar support removed (Peter) - rework firmware name mechanism so fwname isn't in DT (Peter / Lee) - st_fdma_seg_to_mem can be static (Paul) - EXPORT_SYMBOL st_fdma_filter_fn not required (Paul) - s/channel/channels (vinod) - better describe "Must be <3>" (vinod) - sizeof(*ehdr) (vinod) - print values on error debug (vinod) - empty line (Vinod) - Update to -EIO (Vinod) - Make st_fdma tristate (Paul) - Remove __exit tag from .remove (Maxime) - Update MAINTAINERS rule to fdma* (Lee) - Unit address should match reg property (Lee) Peter Griffin (18): remoteproc: st_slim_rproc: add a slimcore rproc driver MAINTAINERS: Add st slim core rproc driver to STi section. dmaengine: st_fdma: Add STMicroelectronics FDMA DT binding documentation dmaengine: st_fdma: Add STMicroelectronics FDMA driver header file dmaengine: st_fdma: Add STMicroelectronics FDMA engine driver support ARM: STi: DT: STiH407: Add FDMA driver dt nodes. MAINTAINERS: Add FDMA driver files to STi section. ARM: multi_v7_defconfig: Enable STi FDMA driver ARM: multi_v7_defconfig: Enable STi and simple-card drivers. ARM: DT: STiH407: Add i2s_out pinctrl configuration ARM: DT: STiH407: Add i2s_in pinctrl configuration ARM: DT: STiH407: Add spdif_out pinctrl config ARM: STi: DT: STiH407: Add sti-sasg-codec dt node ARM: STi: DT: STiH407: Add uniperif player dt nodes ARM: STi: DT: STiH407: Add uniperif reader dt nodes ARM: DT: STi: stihxxx-b2120: Add DT nodes for STi audio card drm/virtio: kconfig: Fix recursive dependency. drm/virtio: kconfig: Fixup white space. Documentation/devicetree/bindings/dma/st_fdma.txt | 87 +++ MAINTAINERS | 3 + arch/arm/boot/dts/stih407-family.dtsi | 161 ++++ arch/arm/boot/dts/stih407-pinctrl.dtsi | 55 ++ arch/arm/boot/dts/stihxxx-b2120.dtsi | 45 ++ arch/arm/configs/multi_v7_defconfig | 4 + drivers/dma/Kconfig | 14 +- drivers/dma/Makefile | 1 + drivers/dma/st_fdma.c | 880 ++++++++++++++++++++++ drivers/dma/st_fdma.h | 244 ++++++ drivers/gpu/drm/virtio/Kconfig | 9 +- drivers/remoteproc/Kconfig | 8 + drivers/remoteproc/Makefile | 1 + drivers/remoteproc/st_slim_rproc.c | 364 +++++++++ include/linux/remoteproc/st_slim_rproc.h | 53 ++ 15 files changed, 1924 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetree/bindings/dma/st_fdma.txt create mode 100644 drivers/dma/st_fdma.c create mode 100644 drivers/dma/st_fdma.h create mode 100644 drivers/remoteproc/st_slim_rproc.c create mode 100644 include/linux/remoteproc/st_slim_rproc.h -- 1.9.1 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Griffin Subject: [PATCH v8 00/18] Add support for FDMA DMA controller and slim core rproc found on STi chipsets Date: Fri, 26 Aug 2016 15:56:35 +0100 Message-ID: <1472223413-7254-1-git-send-email-peter.griffin@linaro.org> Return-path: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kernel-F5mvAk5X5gdBDgjK7y7TUQ@public.gmane.org, vinod.koul-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org, patrice.chotard-qxv4g6HH51o@public.gmane.org, dan.j.williams-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org, airlied-cv59FeDIM0c@public.gmane.org, kraxel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, ohad-Ix1uc/W3ht7QT0dZR+AlfA@public.gmane.org, bjorn.andersson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org Cc: peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, dmaengine-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, virtualization-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-remoteproc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org Hi Vinod, Bjorn, Patrice, This patchset adds support for the Flexible Direct Memory Access (FDMA) core found on STi chipsets from STMicroelectronics. The FDMA is a slim core CPU with a dedicated firmware. It is a general purpose DMA controller supporting 16 independent channels and data can be moved from memory to memory or between memory and paced latency critical real time targets. After quite a few review rounds, I'm hoping this series can get taken for v4.9. After some discussion with the DT maintainers I've removed the firmware name from DT, and now generate the name based on the compatible string. I've also dropped the dma xbar support for the moment, as I believe it should be re-worked based on some of the xbar API's that TI recently added. V3 also included some updates to the ASoC st,sti-asoc-card.txt DT documentation to make the doc align with the driver code. These patches have already been applied and are now dropped from this series. Other changes included enabling the ASoC drivers in multi_v7 defconfig and adding DT patches for Patrices STi DT tree to enable ASoC on STiH407/10 based platforms using the fdma driver. v4 includes a new slim core rproc driver for loading the slim elf firmware. This enables us to use the generic rproc elf loading code. This has deliberately not been implemented as a platform_driver, to avoid having to have double mappings of I/O memory from two device drivers, and also to ensure that the DT node reflects the actual hardware rather than Linux subsystems. The slim core is the basis for various pieces of IP in STi chipsets and the intention is that other drivers (e.g. demux) can also be migrated over to using the slim rproc for their elf firmware loading and start/stop control. v5 includes various updates from Bjorn related to the slim rproc implementation. It also includes a patch to make rsc_table optional in remoteproc_core and various other cleanups and review feedback from Vinod to do with the actual fdma implementation. It also fixes a regression introduced in v4 when all drivers are built-in spotted by Aranud. v6 goes back to having a dummy rsc_table and fixes some kbuild warnings. However a change is still required in rproc core when all drivers are built-in as the initial async firmware resource table parsing can fail when built-in, which causes subsequent calls to rproc_boot() to also fail. V6 changes this behaviour to retry rproc_fw_config_virtio() from rproc_boot(), in cases where it previously failed, as at this point we know the irmwaref has been successfully obtained. v7 removes all remoteproc core changes required to get -EPROBE_DEFER working properly when firmware resides on a rootfs and compiling as built-in. The fdma driver now relies on the firmware being available in the initramfs when building fdma as built-in. This has been tested and works well. If remoteproc subsystem implements a new mechanism for firmware on late mounted root filesystems, we can migrate this driver over to use it at that point. v8 actions some review feedback from Bjorn to the slim rproc driver, and also includes a patch which fixes a recursive Kconfig error which is triggered when st_fdma selects slim_rproc driver. The series has also been rebased on v4.8-rc3. regards, Peter. Changes since v7: - Rebase on v4.8-rc3 (Peter) - Double check that len is <= mem[i].size (Bjorn) - Remove if (!fw) checks (Bjorn) - Omit reference from fw_ops struct (Bjorn) - Call rproc_del() before rproc_put() (Bjorn) - Fix some odd line breaks (Bjorn) - Rename SLIM_* and slim_* with st prefix (Bjorn) Changes since v6: - Fix recursive Kconfig warning (Patrice) - Fix various Intel zero day compiler warnings - Remove all changes related to late firmware load (now relies on initramfs) (Peter) Changes since v5: - Remove optional rsc table and go back to dummy resource table (Bjorn) - Retry rproc_fw_config_virtio() from rproc_boot() if previously failed (Peter) - Fixup some kbuild warnings - rebase on v4.7-rc5 - Remove some patches which were merged via ASoC tree Changes since v4: - Make rsc table optional in remoteproc (Peter) - Various fixups to STi audio DT nodes (Arnaud) - Bulk rename of xp70 to slim (Peter) - Update my email to @linaro.org (Lee) - rebase on v4.7-rc2 (Peter) - Don't make ST_SLIM_REMOTEPROC user selectable (Bjorn) - -EPROBE_DEFER if rproc_boot fails when allocating DMA channel (Arnaud / Peter) - Drop some unnecessary headers (Vinod / Bjorn) - Change to writel now we have several mappings (Bjorn) - Remove io_res, rproc, and some unused structure fields / #define (Bjorn) - put clks in error path, also put clks before rproc_put() (Bjorn) - Make enum less generic (Bjorn) - Make slim_rproc_alloc() return a st_slim_rproc reference (Bjorn) - Alphabetical naming in Kconfig & Makefile (Vinod) - Add FDMA prefix to REQ_CTRL* (Vinod) - Print ret on some error paths (Vinod) - Add some acked-by (Peter) Changes since v3: - Remove elf loading code from fdma driver (Vinod) - Remove fdma_ prefix for clock names (Arnd) - Make _xlate use dma_get_any_channel rather than request_channel (Arnd) - Make a common function for _prep_ routines (Vinod) - Make driver depend on COMPILE_TEST (Arnd) - Remove unnecessary st_fdma_filter_fn (Arnd) - Enable FDMA as a module (Arnd) - Drop fdma_ clock prefix (Arnd) - Fix description as well as example for st, prefix (Arnd) - Remove string concatenation from fdma register macros to ease grep'ability (Arnd) - Add a XP70 rproc driver for ELF firmware loading and start/stop control (Peter) - Add myself as a author of the driver (Peter) Changes since v2: - Change to dma-controller (Arnd) - Remove platform data header file and simplifiy code (Arnd) - Remove FW_LOADER_USER_HELPER_FALLBACK and rework firmware loading to device config (Vinod) - Use SET_RUNTIME_PM_OPS helpers (Vinod) - Remove fdma-id dt prop and use compatibles to generate different fdma firmware names (Arnd / Lee) - Add sti-asoc-card DT nodes and pinmux config for uniperif player & reader (Peter) - Update sti-asoc-card DT binding documentation (Peter) - Enable STi audio drivers in multi_v7_defconfig (Peter) Changes since v1: - split into smaller patches for easier / faster review (Vinod) - new fill_hw_mode() with common code (Vinod) - new config_reqctrl() called from *_prep() instead of device_config cb (Vinod) - fdma-xbar support removed (Peter) - rework firmware name mechanism so fwname isn't in DT (Peter / Lee) - st_fdma_seg_to_mem can be static (Paul) - EXPORT_SYMBOL st_fdma_filter_fn not required (Paul) - s/channel/channels (vinod) - better describe "Must be <3>" (vinod) - sizeof(*ehdr) (vinod) - print values on error debug (vinod) - empty line (Vinod) - Update to -EIO (Vinod) - Make st_fdma tristate (Paul) - Remove __exit tag from .remove (Maxime) - Update MAINTAINERS rule to fdma* (Lee) - Unit address should match reg property (Lee) Peter Griffin (18): remoteproc: st_slim_rproc: add a slimcore rproc driver MAINTAINERS: Add st slim core rproc driver to STi section. dmaengine: st_fdma: Add STMicroelectronics FDMA DT binding documentation dmaengine: st_fdma: Add STMicroelectronics FDMA driver header file dmaengine: st_fdma: Add STMicroelectronics FDMA engine driver support ARM: STi: DT: STiH407: Add FDMA driver dt nodes. MAINTAINERS: Add FDMA driver files to STi section. ARM: multi_v7_defconfig: Enable STi FDMA driver ARM: multi_v7_defconfig: Enable STi and simple-card drivers. ARM: DT: STiH407: Add i2s_out pinctrl configuration ARM: DT: STiH407: Add i2s_in pinctrl configuration ARM: DT: STiH407: Add spdif_out pinctrl config ARM: STi: DT: STiH407: Add sti-sasg-codec dt node ARM: STi: DT: STiH407: Add uniperif player dt nodes ARM: STi: DT: STiH407: Add uniperif reader dt nodes ARM: DT: STi: stihxxx-b2120: Add DT nodes for STi audio card drm/virtio: kconfig: Fix recursive dependency. drm/virtio: kconfig: Fixup white space. Documentation/devicetree/bindings/dma/st_fdma.txt | 87 +++ MAINTAINERS | 3 + arch/arm/boot/dts/stih407-family.dtsi | 161 ++++ arch/arm/boot/dts/stih407-pinctrl.dtsi | 55 ++ arch/arm/boot/dts/stihxxx-b2120.dtsi | 45 ++ arch/arm/configs/multi_v7_defconfig | 4 + drivers/dma/Kconfig | 14 +- drivers/dma/Makefile | 1 + drivers/dma/st_fdma.c | 880 ++++++++++++++++++++++ drivers/dma/st_fdma.h | 244 ++++++ drivers/gpu/drm/virtio/Kconfig | 9 +- drivers/remoteproc/Kconfig | 8 + drivers/remoteproc/Makefile | 1 + drivers/remoteproc/st_slim_rproc.c | 364 +++++++++ include/linux/remoteproc/st_slim_rproc.h | 53 ++ 15 files changed, 1924 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetree/bindings/dma/st_fdma.txt create mode 100644 drivers/dma/st_fdma.c create mode 100644 drivers/dma/st_fdma.h create mode 100644 drivers/remoteproc/st_slim_rproc.c create mode 100644 include/linux/remoteproc/st_slim_rproc.h -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: peter.griffin@linaro.org (Peter Griffin) Date: Fri, 26 Aug 2016 15:56:35 +0100 Subject: [PATCH v8 00/18] Add support for FDMA DMA controller and slim core rproc found on STi chipsets Message-ID: <1472223413-7254-1-git-send-email-peter.griffin@linaro.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Vinod, Bjorn, Patrice, This patchset adds support for the Flexible Direct Memory Access (FDMA) core found on STi chipsets from STMicroelectronics. The FDMA is a slim core CPU with a dedicated firmware. It is a general purpose DMA controller supporting 16 independent channels and data can be moved from memory to memory or between memory and paced latency critical real time targets. After quite a few review rounds, I'm hoping this series can get taken for v4.9. After some discussion with the DT maintainers I've removed the firmware name from DT, and now generate the name based on the compatible string. I've also dropped the dma xbar support for the moment, as I believe it should be re-worked based on some of the xbar API's that TI recently added. V3 also included some updates to the ASoC st,sti-asoc-card.txt DT documentation to make the doc align with the driver code. These patches have already been applied and are now dropped from this series. Other changes included enabling the ASoC drivers in multi_v7 defconfig and adding DT patches for Patrices STi DT tree to enable ASoC on STiH407/10 based platforms using the fdma driver. v4 includes a new slim core rproc driver for loading the slim elf firmware. This enables us to use the generic rproc elf loading code. This has deliberately not been implemented as a platform_driver, to avoid having to have double mappings of I/O memory from two device drivers, and also to ensure that the DT node reflects the actual hardware rather than Linux subsystems. The slim core is the basis for various pieces of IP in STi chipsets and the intention is that other drivers (e.g. demux) can also be migrated over to using the slim rproc for their elf firmware loading and start/stop control. v5 includes various updates from Bjorn related to the slim rproc implementation. It also includes a patch to make rsc_table optional in remoteproc_core and various other cleanups and review feedback from Vinod to do with the actual fdma implementation. It also fixes a regression introduced in v4 when all drivers are built-in spotted by Aranud. v6 goes back to having a dummy rsc_table and fixes some kbuild warnings. However a change is still required in rproc core when all drivers are built-in as the initial async firmware resource table parsing can fail when built-in, which causes subsequent calls to rproc_boot() to also fail. V6 changes this behaviour to retry rproc_fw_config_virtio() from rproc_boot(), in cases where it previously failed, as at this point we know the irmwaref has been successfully obtained. v7 removes all remoteproc core changes required to get -EPROBE_DEFER working properly when firmware resides on a rootfs and compiling as built-in. The fdma driver now relies on the firmware being available in the initramfs when building fdma as built-in. This has been tested and works well. If remoteproc subsystem implements a new mechanism for firmware on late mounted root filesystems, we can migrate this driver over to use it at that point. v8 actions some review feedback from Bjorn to the slim rproc driver, and also includes a patch which fixes a recursive Kconfig error which is triggered when st_fdma selects slim_rproc driver. The series has also been rebased on v4.8-rc3. regards, Peter. Changes since v7: - Rebase on v4.8-rc3 (Peter) - Double check that len is <= mem[i].size (Bjorn) - Remove if (!fw) checks (Bjorn) - Omit reference from fw_ops struct (Bjorn) - Call rproc_del() before rproc_put() (Bjorn) - Fix some odd line breaks (Bjorn) - Rename SLIM_* and slim_* with st prefix (Bjorn) Changes since v6: - Fix recursive Kconfig warning (Patrice) - Fix various Intel zero day compiler warnings - Remove all changes related to late firmware load (now relies on initramfs) (Peter) Changes since v5: - Remove optional rsc table and go back to dummy resource table (Bjorn) - Retry rproc_fw_config_virtio() from rproc_boot() if previously failed (Peter) - Fixup some kbuild warnings - rebase on v4.7-rc5 - Remove some patches which were merged via ASoC tree Changes since v4: - Make rsc table optional in remoteproc (Peter) - Various fixups to STi audio DT nodes (Arnaud) - Bulk rename of xp70 to slim (Peter) - Update my email to @linaro.org (Lee) - rebase on v4.7-rc2 (Peter) - Don't make ST_SLIM_REMOTEPROC user selectable (Bjorn) - -EPROBE_DEFER if rproc_boot fails when allocating DMA channel (Arnaud / Peter) - Drop some unnecessary headers (Vinod / Bjorn) - Change to writel now we have several mappings (Bjorn) - Remove io_res, rproc, and some unused structure fields / #define (Bjorn) - put clks in error path, also put clks before rproc_put() (Bjorn) - Make enum less generic (Bjorn) - Make slim_rproc_alloc() return a st_slim_rproc reference (Bjorn) - Alphabetical naming in Kconfig & Makefile (Vinod) - Add FDMA prefix to REQ_CTRL* (Vinod) - Print ret on some error paths (Vinod) - Add some acked-by (Peter) Changes since v3: - Remove elf loading code from fdma driver (Vinod) - Remove fdma_ prefix for clock names (Arnd) - Make _xlate use dma_get_any_channel rather than request_channel (Arnd) - Make a common function for _prep_ routines (Vinod) - Make driver depend on COMPILE_TEST (Arnd) - Remove unnecessary st_fdma_filter_fn (Arnd) - Enable FDMA as a module (Arnd) - Drop fdma_ clock prefix (Arnd) - Fix description as well as example for st, prefix (Arnd) - Remove string concatenation from fdma register macros to ease grep'ability (Arnd) - Add a XP70 rproc driver for ELF firmware loading and start/stop control (Peter) - Add myself as a author of the driver (Peter) Changes since v2: - Change to dma-controller (Arnd) - Remove platform data header file and simplifiy code (Arnd) - Remove FW_LOADER_USER_HELPER_FALLBACK and rework firmware loading to device config (Vinod) - Use SET_RUNTIME_PM_OPS helpers (Vinod) - Remove fdma-id dt prop and use compatibles to generate different fdma firmware names (Arnd / Lee) - Add sti-asoc-card DT nodes and pinmux config for uniperif player & reader (Peter) - Update sti-asoc-card DT binding documentation (Peter) - Enable STi audio drivers in multi_v7_defconfig (Peter) Changes since v1: - split into smaller patches for easier / faster review (Vinod) - new fill_hw_mode() with common code (Vinod) - new config_reqctrl() called from *_prep() instead of device_config cb (Vinod) - fdma-xbar support removed (Peter) - rework firmware name mechanism so fwname isn't in DT (Peter / Lee) - st_fdma_seg_to_mem can be static (Paul) - EXPORT_SYMBOL st_fdma_filter_fn not required (Paul) - s/channel/channels (vinod) - better describe "Must be <3>" (vinod) - sizeof(*ehdr) (vinod) - print values on error debug (vinod) - empty line (Vinod) - Update to -EIO (Vinod) - Make st_fdma tristate (Paul) - Remove __exit tag from .remove (Maxime) - Update MAINTAINERS rule to fdma* (Lee) - Unit address should match reg property (Lee) Peter Griffin (18): remoteproc: st_slim_rproc: add a slimcore rproc driver MAINTAINERS: Add st slim core rproc driver to STi section. dmaengine: st_fdma: Add STMicroelectronics FDMA DT binding documentation dmaengine: st_fdma: Add STMicroelectronics FDMA driver header file dmaengine: st_fdma: Add STMicroelectronics FDMA engine driver support ARM: STi: DT: STiH407: Add FDMA driver dt nodes. MAINTAINERS: Add FDMA driver files to STi section. ARM: multi_v7_defconfig: Enable STi FDMA driver ARM: multi_v7_defconfig: Enable STi and simple-card drivers. ARM: DT: STiH407: Add i2s_out pinctrl configuration ARM: DT: STiH407: Add i2s_in pinctrl configuration ARM: DT: STiH407: Add spdif_out pinctrl config ARM: STi: DT: STiH407: Add sti-sasg-codec dt node ARM: STi: DT: STiH407: Add uniperif player dt nodes ARM: STi: DT: STiH407: Add uniperif reader dt nodes ARM: DT: STi: stihxxx-b2120: Add DT nodes for STi audio card drm/virtio: kconfig: Fix recursive dependency. drm/virtio: kconfig: Fixup white space. Documentation/devicetree/bindings/dma/st_fdma.txt | 87 +++ MAINTAINERS | 3 + arch/arm/boot/dts/stih407-family.dtsi | 161 ++++ arch/arm/boot/dts/stih407-pinctrl.dtsi | 55 ++ arch/arm/boot/dts/stihxxx-b2120.dtsi | 45 ++ arch/arm/configs/multi_v7_defconfig | 4 + drivers/dma/Kconfig | 14 +- drivers/dma/Makefile | 1 + drivers/dma/st_fdma.c | 880 ++++++++++++++++++++++ drivers/dma/st_fdma.h | 244 ++++++ drivers/gpu/drm/virtio/Kconfig | 9 +- drivers/remoteproc/Kconfig | 8 + drivers/remoteproc/Makefile | 1 + drivers/remoteproc/st_slim_rproc.c | 364 +++++++++ include/linux/remoteproc/st_slim_rproc.h | 53 ++ 15 files changed, 1924 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetree/bindings/dma/st_fdma.txt create mode 100644 drivers/dma/st_fdma.c create mode 100644 drivers/dma/st_fdma.h create mode 100644 drivers/remoteproc/st_slim_rproc.c create mode 100644 include/linux/remoteproc/st_slim_rproc.h -- 1.9.1