[PATCH] powerpc/sysdev: fix compile errors

2020-03-01 Thread WANG Wenhu
ean ‘roundup’? [-Werror=implicit-function-declaration] iounmap(cache_sram->base_virt); ^~~ roundup cc1: all warnings being treated as errors Fixed: commit 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Signed-off-by: WANG Wenhu --- arch/powerpc/sysdev/fsl_85xx_cache_sram.c

[PATCH] powerpc/fsl-85xx: fix compile error

2020-03-08 Thread WANG Wenhu
db92cc9d07d ("powerpc/85xx: add cache-sram support") Signed-off-by: WANG Wenhu --- arch/powerpc/sysdev/fsl_85xx_l2ctlr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c b/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c index 2d0af0c517bb..753357249

[PATCH v2] powerpc/fsl-85xx: fix compile error

2020-03-13 Thread WANG Wenhu
.o] Error 1 Fixes: commit 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Signed-off-by: WANG Wenhu --- arch/powerpc/sysdev/fsl_85xx_l2ctlr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c b/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c index 2d0af0c5

[PATCH v3] powerpc/fsl-85xx: fix compile error

2020-03-13 Thread WANG Wenhu
.o] Error 1 Fixes: commit 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Cc: stable Signed-off-by: WANG Wenhu --- Changes since v1: 1. v3: Cc stable into the sign-off area; 2. v2: modified the label: "Fixed: " -> "Fixes: "; Link: https://lore.kernel.org/linuxppc

[PATCH 1/5] powerpc: 85xx: make FSL_85XX_CACHE_SRAM configurable

2020-04-15 Thread Wang Wenhu
@lists.ozlabs.org Signed-off-by: Wang Wenhu --- arch/powerpc/platforms/85xx/Kconfig| 2 +- arch/powerpc/platforms/Kconfig.cputype | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch/powerpc/platforms/85xx/Kconfig index fa3d29dcb57e

[PATCH 0/5] drivers: uio: new driver uio_fsl_85xx_cache_sram

2020-04-15 Thread Wang Wenhu
uio driver in uio_fsl_85xx_cache_sram.c. Wang Wenhu (5): powerpc: 85xx: make FSL_85XX_CACHE_SRAM configurable powerpc: sysdev: fix compile error for fsl_85xx_cache_sram powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr

[PATCH 2/5] powerpc: sysdev: fix compile error for fsl_85xx_cache_sram

2020-04-15 Thread Wang Wenhu
85xx: add cache-sram support") Signed-off-by: Wang Wenhu --- arch/powerpc/sysdev/fsl_85xx_cache_sram.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/sysdev/fsl_85xx_cache_sram.c b/arch/powerpc/sysdev/fsl_85xx_cache_sram.c index f6c665dac725..be3aef4229d7 100644

[PATCH 3/5] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-15 Thread Wang Wenhu
cache-sram support") Signed-off-by: Wang Wenhu Warning information: MODPOST vmlinux.o WARNING: modpost: vmlinux.o(.text+0x1e540): Section mismatch in reference from the function mpc85xx_l2ctlr_of_probe() to the function .init.text:instantiate_cache_sram() The function mpc85xx_l2ctl

[PATCH 5/5] drivers: uio: new driver for fsl_85xx_cache_sram

2020-04-15 Thread Wang Wenhu
@lists.ozlabs.org Signed-off-by: Wang Wenhu --- drivers/uio/Kconfig | 8 ++ drivers/uio/Makefile | 1 + drivers/uio/uio_fsl_85xx_cache_sram.c | 195 ++ 3 files changed, 204 insertions(+) create mode 100644 drivers/uio/uio_fsl_85xx_cache_sram.c

[PATCH 4/5] powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr

2020-04-15 Thread Wang Wenhu
o] Error 1 Cc: Greg Kroah-Hartman Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Signed-off-by: Wang Wenhu --- arch/powerpc/sysdev/fsl_85xx_l2ctlr.c | 1 + 1 file changed, 1 insertion(

Re: [PATCH 5/5] drivers: uio: new driver for fsl_85xx_cache_sram>On Wed, Apr 15, 2020 at 05:33:46AM -0700, Wang Wenhu wrote:

2020-04-15 Thread Wang Wenhu
applications >> that require high performance memory accesses. >> >> Cc: Greg Kroah-Hartman >> Cc: Christophe Leroy >> Cc: Scott Wood >> Cc: Michael Ellerman >> Cc: linuxppc-dev@lists.ozlabs.org >> Signed-off-by: Wang Wenhu >> --- >>

[PATCH v2, 3/5] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-15 Thread Wang Wenhu
cache-sram support") Signed-off-by: Wang Wenhu Warning information: MODPOST vmlinux.o WARNING: modpost: vmlinux.o(.text+0x1e540): Section mismatch in reference from the function mpc85xx_l2ctlr_of_probe() to the function .init.text:instantiate_cache_sram() The function mpc85xx_l2ctl

[PATCH v2,1/5] powerpc: 85xx: make FSL_85XX_CACHE_SRAM configurable

2020-04-15 Thread Wang Wenhu
@lists.ozlabs.org Signed-off-by: Wang Wenhu --- Changes since v1: * None --- arch/powerpc/platforms/85xx/Kconfig| 2 +- arch/powerpc/platforms/Kconfig.cputype | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch/powerpc/platforms/85xx

[PATCH v2,0/5] drivers: uio: new driver uio_fsl_85xx_cache_sram

2020-04-15 Thread Wang Wenhu
uio driver in uio_fsl_85xx_cache_sram.c. Changes since v1: * Addressed comments of Greg K-H * Moved kfree(info->name) into uio_info_free_internal() Wang Wenhu (5): powerpc: 85xx: make FSL_85XX_CACHE_SRAM configurable powerpc: sysdev: fix compile error for fsl_85xx_cache_sram powe

[PATCH v2, 2/5] powerpc: sysdev: fix compile error for fsl_85xx_cache_sram

2020-04-15 Thread Wang Wenhu
85xx: add cache-sram support") Signed-off-by: WANG Wenhu --- Changes since v1: * None --- arch/powerpc/sysdev/fsl_85xx_cache_sram.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/sysdev/fsl_85xx_cache_sram.c b/arch/powerpc/sysdev/fsl_85xx_cache_sram.c index f6c665dac725..

[PATCH v2,5/5] drivers: uio: new driver for fsl_85xx_cache_sram

2020-04-15 Thread Wang Wenhu
@lists.ozlabs.org Signed-off-by: Wang Wenhu --- Changes since v1: * Addressed comments of Greg K-H * Moved kfree(info->name) into uio_info_free_internal() --- drivers/uio/Kconfig | 8 ++ drivers/uio/Makefile | 1 + drivers/uio/uio_fsl_85xx_cache_sram.c |

[PATCH v2, 4/5] powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr

2020-04-15 Thread Wang Wenhu
o] Error 1 Cc: Greg Kroah-Hartman Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Signed-off-by: Wang Wenhu --- Changes since v1: * None --- arch/powerpc/sysdev/fsl_85xx_l2ctlr.

Re: [PATCH v2, 1/5] powerpc: 85xx: make FSL_85XX_CACHE_SRAM configurable

2020-04-15 Thread Wang Wenhu
From: Scott Wood >> +bool "32-bit kernel" > >Why make that user selectable ? > >Either a kernel is 64-bit or it is 32-bit. So having PPC64 user >selectable is all we need. > >And what is the link between this change and the description in the log ? > >> default y if !PPC64 >> selec

Re: [PATCH v2,5/5] drivers: uio: new driver for fsl_85xx_cache_sram

2020-04-15 Thread Wang Wenhu
Yes, kzalloc() would clean the allocated areas and the init of remaining array elements are redundant. I will remove the block in v3. >> > + dev_err(&pdev->dev, "error no valid uio-map configured\n"); >> > + ret = -EINVAL; >> > + goto err_info_free_internel; >> > + } >>

[PATCH v3,4/4] drivers: uio: new driver for fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
@lists.ozlabs.org Signed-off-by: Wang Wenhu --- Changes since v1: * Addressed comments from Greg K-H * Moved kfree(info->name) into uio_info_free_internal() Changes since v2: * Addressed comments from Greg, Scott and Christophe * Use "uiomem->internal_addr" as if condition for sram mem

[PATCH v3, 1/4] powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr

2020-04-16 Thread Wang Wenhu
o] Error 1 Cc: Greg Kroah-Hartman Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Signed-off-by: Wang Wenhu --- Changes since v1: * None Changes since v2: * None --- arch/powerpc/sy

[PATCH v3, 2/4] powerpc: sysdev: fix compile error for fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
85xx: add cache-sram support") Signed-off-by: WANG Wenhu --- Changes since v1: * None Changes since v2: * None --- arch/powerpc/sysdev/fsl_85xx_cache_sram.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/sysdev/fsl_85xx_cache_sram.c b/arch/powerpc/sysdev/fsl_85xx_cache_

[PATCH v3,0/4] drivers: uio: new driver uio_fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
udo device and probed from device tree configuration * Select FSL_85XX_CACHE_SRAM rather than depends on it Wang Wenhu (4): powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr powerpc: sysdev: fix compile error for fsl_85xx_cache_sram powerpc: sysdev: fix compile warning for fsl_85xx_

[PATCH v3, 3/4] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
cache-sram support") Signed-off-by: Wang Wenhu Warning information: MODPOST vmlinux.o WARNING: modpost: vmlinux.o(.text+0x1e540): Section mismatch in reference from the function mpc85xx_l2ctlr_of_probe() to the function .init.text:instantiate_cache_sram() The function mpc85xx_l2ctl

[PATCH v3,0/4] drivers: uio: new driver uio_fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
udo device and probed from device tree configuration * Select FSL_85XX_CACHE_SRAM rather than depends on it Wang Wenhu (4): powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr powerpc: sysdev: fix compile error for fsl_85xx_cache_sram powerpc: sysdev: fix compile warning for fsl_85xx_

[PATCH v3, 1/4] powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr

2020-04-16 Thread Wang Wenhu
o] Error 1 Cc: Greg Kroah-Hartman Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Signed-off-by: Wang Wenhu --- Changes since v1: * None Changes since v2: * None --- arch/powerpc/sy

[PATCH v3, 2/4] powerpc: sysdev: fix compile error for fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
85xx: add cache-sram support") Signed-off-by: WANG Wenhu --- Changes since v1: * None Changes since v2: * None --- arch/powerpc/sysdev/fsl_85xx_cache_sram.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/sysdev/fsl_85xx_cache_sram.c b/arch/powerpc/sysdev/fsl_85xx_cache_

[PATCH v3, 3/4] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
cache-sram support") Signed-off-by: Wang Wenhu Warning information: MODPOST vmlinux.o WARNING: modpost: vmlinux.o(.text+0x1e540): Section mismatch in reference from the function mpc85xx_l2ctlr_of_probe() to the function .init.text:instantiate_cache_sram() The function mpc85xx_l2ctl

[PATCH v3,4/4] drivers: uio: new driver for fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
@lists.ozlabs.org Signed-off-by: Wang Wenhu --- Changes since v1: * Addressed comments from Greg K-H * Moved kfree(info->name) into uio_info_free_internal() Changes since v2: * Addressed comments from Greg, Scott and Christophe * Use "uiomem->internal_addr" as if condition for sram mem

[PATCH v3, 1/4] powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr

2020-04-16 Thread Wang Wenhu
o] Error 1 Cc: Greg Kroah-Hartman Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Signed-off-by: Wang Wenhu --- Changes since v1: * None Changes since v2: * None --- arch/powerpc/sy

[PATCH v3, 2/4] powerpc: sysdev: fix compile error for fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
85xx: add cache-sram support") Signed-off-by: WANG Wenhu --- Changes since v1: * None Changes since v2: * None --- arch/powerpc/sysdev/fsl_85xx_cache_sram.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/sysdev/fsl_85xx_cache_sram.c b/arch/powerpc/sysdev/fsl_85xx_cache_

[PATCH v3,0/4] drivers: uio: new driver uio_fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
udo device and probed from device tree configuration * Select FSL_85XX_CACHE_SRAM rather than depends on it Wang Wenhu (4): powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr powerpc: sysdev: fix compile error for fsl_85xx_cache_sram powerpc: sysdev: fix compile warning for fsl_85xx_

[PATCH v3,4/4] drivers: uio: new driver for fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
@lists.ozlabs.org Signed-off-by: Wang Wenhu --- Changes since v1: * Addressed comments from Greg K-H * Moved kfree(info->name) into uio_info_free_internal() Changes since v2: * Addressed comments from Greg, Scott and Christophe * Use "uiomem->internal_addr" as if condition for sram mem

[PATCH v3, 3/4] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
cache-sram support") Signed-off-by: Wang Wenhu Warning information: MODPOST vmlinux.o WARNING: modpost: vmlinux.o(.text+0x1e540): Section mismatch in reference from the function mpc85xx_l2ctlr_of_probe() to the function .init.text:instantiate_cache_sram() The function mpc85xx_l2ctl

[PATCH RESEND, v3, 4/4] drivers: uio: new driver for fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
@lists.ozlabs.org Signed-off-by: Wang Wenhu --- Changes since v1: * Addressed comments from Greg K-H * Moved kfree(info->name) into uio_info_free_internal() Changes since v2: * Addressed comments from Greg, Scott and Christophe * Use "uiomem->internal_addr" as if condition for sram mem

[PATCH RESEND, v3, 2/4] powerpc: sysdev: fix compile error for fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
85xx: add cache-sram support") Signed-off-by: WANG Wenhu --- Changes since v1: * None Changes since v2: * None --- arch/powerpc/sysdev/fsl_85xx_cache_sram.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/sysdev/fsl_85xx_cache_sram.c b/arch/powerpc/sysdev/fsl_85xx_cache_

[PATCH RESEND, v3, 3/4] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
cache-sram support") Signed-off-by: Wang Wenhu Warning information: MODPOST vmlinux.o WARNING: modpost: vmlinux.o(.text+0x1e540): Section mismatch in reference from the function mpc85xx_l2ctlr_of_probe() to the function .init.text:instantiate_cache_sram() The function mpc85xx_l2ctl

[PATCH RESEND, v3, 1/4] powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr

2020-04-16 Thread Wang Wenhu
o] Error 1 Cc: Greg Kroah-Hartman Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Signed-off-by: Wang Wenhu --- Changes since v1: * None Changes since v2: * None --- arch/powerpc/sy

[PATCH RESEND, v3, 0/4] drivers: uio: new driver uio_fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
udo device and probed from device tree configuration * Select FSL_85XX_CACHE_SRAM rather than depends on it Wang Wenhu (4): powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr powerpc: sysdev: fix compile error for fsl_85xx_cache_sram powerpc: sysdev: fix compile warning for fsl_85xx_

[PATCH v4,0/4] drivers: uio: new driver uio_fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
om device tree configuration * Select FSL_85XX_CACHE_SRAM rather than depends on it Changes since v3: * Addressed comments from Christophe(use devm_xxx memory alloc interfaces) Wang Wenhu (4): powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr powerpc: sysdev: fix compile error for fsl_85xx_cache_sr

[PATCH v4, 2/4] powerpc: sysdev: fix compile error for fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
85xx: add cache-sram support") Signed-off-by: Wang Wenhu --- Changes since v1: * None Changes since v2: * None Changes since v3: * None --- arch/powerpc/sysdev/fsl_85xx_cache_sram.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/sysdev/fsl_85xx_cache_sram

[PATCH v4, 1/4] powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr

2020-04-16 Thread Wang Wenhu
o] Error 1 Cc: Greg Kroah-Hartman Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Signed-off-by: Wang Wenhu --- Changes since v1: * None Changes since v2: * None Changes since

[PATCH v4,4/4] drivers: uio: new driver for fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
@lists.ozlabs.org Signed-off-by: Wang Wenhu --- Changes since v1: * Addressed comments from Greg K-H * Moved kfree(info->name) into uio_info_free_internal() Changes since v2: * Addressed comments from Greg, Scott and Christophe * Use "uiomem->internal_addr" as if condition for sram mem

[PATCH v4, 3/4] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
cache-sram support") Signed-off-by: Wang Wenhu Warning information: MODPOST vmlinux.o WARNING: modpost: vmlinux.o(.text+0x1e540): Section mismatch in reference from the function mpc85xx_l2ctlr_of_probe() to the function .init.text:instantiate_cache_sram() The function mpc85xx_l2ctl

[PATCH v5,4/4] drivers: uio: new driver for fsl_85xx_cache_sram

2020-04-17 Thread Wang Wenhu
@lists.ozlabs.org Reviewed-by: Christophe Leroy Signed-off-by: Wang Wenhu --- Changes since v1: * Addressed comments from Greg K-H * Moved kfree(info->name) into uio_info_free_internal() Changes since v2: * Addressed comments from Greg, Scott and Christophe * Use "uiomem->internal_addr"

[PATCH v5,0/4] drivers: uio: new driver uio_fsl_85xx_cache_sram

2020-04-17 Thread Wang Wenhu
om device tree configuration * Select FSL_85XX_CACHE_SRAM rather than depends on it Changes since v3: * Addressed comments from Christophe(use devm_xxx memory alloc interfaces) Changes since v4: * Use module_param_string for of_match_table, no binding to devicetree Wang Wenhu (4): powerpc: sysdev: fix co

[PATCH v5, 1/4] powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr

2020-04-17 Thread Wang Wenhu
o] Error 1 Cc: Greg Kroah-Hartman Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Reviewed-by: Christophe Leroy Signed-off-by: Wang Wenhu --- Changes since v1: * None Changes since v

[PATCH v5, 2/4] powerpc: sysdev: fix compile error for fsl_85xx_cache_sram

2020-04-17 Thread Wang Wenhu
85xx: add cache-sram support") Reviewed-by: Christophe Leroy Signed-off-by: Wang Wenhu --- Changes since v1: * None Changes since v2: * None Changes since v3: * None Changes since v4: * None --- arch/powerpc/sysdev/fsl_85xx_cache_sram.c | 1 + 1 file changed, 1 insertion(+) diff --

[PATCH v5, 3/4] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-17 Thread Wang Wenhu
cache-sram support") Reviewed-by: Christophe Leroy Signed-off-by: Wang Wenhu Warning information: MODPOST vmlinux.o WARNING: modpost: vmlinux.o(.text+0x1e540): Section mismatch in reference from the function mpc85xx_l2ctlr_of_probe() to the function .init.text:instantiate_cache_sram() Th

[PATCH] drivers: uio: new driver uio_fsl_85xx_cache_sram

2020-04-17 Thread Wang Wenhu
: linuxppc-dev@lists.ozlabs.org Signed-off-by: Wang Wenhu --- drivers/uio/Kconfig | 8 + drivers/uio/Makefile | 1 + drivers/uio/uio_fsl_85xx_cache_sram.c | 407 ++ 3 files changed, 416 insertions(+) create mode 100644 drivers/uio

[PATCH v6,0/4] misc: new driver sram_uapi for user level SRAM access

2020-04-18 Thread Wang Wenhu
hardware driver. The former five version implemented the driver with UIO but they were commented of not fitful. This version uses a misc divice and implements the memory allocation and free operations via file operation as suggested by Scott. Wang Wenhu (4): powerpc: sysdev: fix compile error for

[PATCH v6, 3/4] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-18 Thread Wang Wenhu
: 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Reviewed-by: Christophe Leroy Signed-off-by: Wang Wenhu --- No change v1-v5 --- arch/powerpc/sysdev/fsl_85xx_cache_sram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/sysdev/fsl_85xx_cache_sram.c b/ar

[PATCH v6, 2/4] powerpc: sysdev: fix compile error for fsl_85xx_cache_sram

2020-04-18 Thread Wang Wenhu
zlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Reviewed-by: Christophe Leroy Signed-off-by: Wang Wenhu --- No change v1-v5 --- arch/powerpc/sysdev/fsl_85xx_cache_sram.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/sysdev/fsl_85xx_cache_sram

[PATCH v6, 1/4] powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr

2020-04-18 Thread Wang Wenhu
o] Error 1 Cc: Greg Kroah-Hartman Cc: Arnd Bergmann Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: Randy Dunlap Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Reviewed-by: Christophe Leroy Signed-off-by: Wang Wenhu --- No c

[PATCH v6, 4/4] drivers: misc: new driver sram_uapi for user level SRAM access

2020-04-18 Thread Wang Wenhu
: Wang Wenhu Cc: Greg Kroah-Hartman Cc: Arnd Bergmann Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: Randy Dunlap Cc: linuxppc-dev@lists.ozlabs.org --- Notes: Implement the interface driver for SRAM access from user level upon the comments from Scott. The

[PATCH v2] misc: new driver sram_uapi for user level SRAM access

2020-04-19 Thread Wang Wenhu
memory buffer for the processes in user space is of great preferences. Signed-off-by: Wang Wenhu Cc: Greg Kroah-Hartman Cc: Arnd Bergmann Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: Randy Dunlap Cc: linuxppc-dev@lists.ozlabs.org --- Changes since v1: * Addressed comments

[PATCH v2, RESEND] misc: new driver sram_uapi for user level SRAM access

2020-04-19 Thread Wang Wenhu
chosen by users to allocate and map SRAM memory from user level. It is extremely helpful for the user space applications that require high performance memory accesses, such as embedded networking devices that would process data in user space, and PowerPC e500 is a case. Signed-off-by: Wang Wenhu

[PATCH v3, 1/5] powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr

2020-04-23 Thread Wang Wenhu
o] Error 1 Cc: Greg Kroah-Hartman Cc: Arnd Bergmann Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Reviewed-by: Christophe Leroy Signed-off-by: Wang Wenhu --- No changes --- arch/

[PATCH v3,0/5] misc: generic user level sram dynamic access support

2020-04-23 Thread Wang Wenhu
documentations(As Greg commented) * Make uapi and non-uapi components apart(from Arnd and Greg) * Add a new module to register freescale 85xx Cache-SRAM APIs to the sram_dynamic module Wang Wenhu (5): powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr powerpc: sysdev: fix compile error for

[PATCH v3, 2/5] powerpc: sysdev: fix compile error for fsl_85xx_cache_sram

2020-04-23 Thread Wang Wenhu
9d07d ("powerpc/85xx: add cache-sram support") Reviewed-by: Christophe Leroy Signed-off-by: Wang Wenhu --- No changes --- arch/powerpc/sysdev/fsl_85xx_cache_sram.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/sysdev/fsl_85xx_cache_sram.c b/arch/powerpc/sysdev/fs

[PATCH v3, 3/5] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-23 Thread Wang Wenhu
werpc/85xx: add cache-sram support") Reviewed-by: Christophe Leroy Signed-off-by: Wang Wenhu --- No changes --- arch/powerpc/sysdev/fsl_85xx_cache_sram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/sysdev/fsl_85xx_cache_sram.c b/arch/powe

[PATCH v3,4/5] misc: sram_dynamic for user level SRAM access

2020-04-23 Thread Wang Wenhu
extremely helpful for the user space applications that require high performance memory accesses, such as embedded networking devices that would process data in user space, and PowerPC e500 is one case. Signed-off-by: Wang Wenhu Cc: Greg Kroah-Hartman Cc: Arnd Bergmann Cc: Christophe Leroy Cc

[PATCH v3, 5/5] powerpc: sysdev: support userspace access of fsl_85xx_sram

2020-04-23 Thread Wang Wenhu
FSL_85XX_CACHE_SRAM module. Signed-off-by: Wang Wenhu Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: Greg Kroah-Hartman Cc: Arnd Bergmann Cc: linuxppc-dev@lists.ozlabs.org --- .../powerpc/include/asm/fsl_85xx_cache_sram.h | 4 ++ arch/powerpc/platforms/85xx/Kconfig | 10 + arch

[PATCH v4, 1/5] powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr

2020-04-24 Thread Wang Wenhu
o] Error 1 Cc: Greg Kroah-Hartman Cc: Arnd Bergmann Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: Randy Dunlap Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Reviewed-by: Christophe Leroy Signed-off-by: Wang Wenhu --- No c

[PATCH v4, 2/5] powerpc: sysdev: fix compile error for fsl_85xx_cache_sram

2020-04-24 Thread Wang Wenhu
zlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Reviewed-by: Christophe Leroy Signed-off-by: Wang Wenhu --- No change v1-v4 --- arch/powerpc/sysdev/fsl_85xx_cache_sram.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/sysdev/fsl_85xx_cache_sram

[PATCH v4,4/5] misc: sram_dynamic for user level SRAM access

2020-04-24 Thread Wang Wenhu
extremely helpful for the user space applications that require high performance memory accesses, such as embedded networking devices that would process data in user space, and PowerPC e500 is one case. Signed-off-by: Wang Wenhu Cc: Greg Kroah-Hartman Cc: Arnd Bergmann Cc: Christophe Leroy Cc

[PATCH v4, 3/5] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-24 Thread Wang Wenhu
: 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Reviewed-by: Christophe Leroy Signed-off-by: Wang Wenhu --- No change v1-v4 --- arch/powerpc/sysdev/fsl_85xx_cache_sram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/sysdev/fsl_85xx_cache_sram.c b/ar

[PATCH v4, 5/5] powerpc: sysdev: support userspace access of fsl_85xx_sram

2020-04-24 Thread Wang Wenhu
FSL_85XX_CACHE_SRAM module. Signed-off-by: Wang Wenhu Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: Greg Kroah-Hartman Cc: Arnd Bergmann Cc: linuxppc-dev@lists.ozlabs.org --- Changes since v3: Addressed comments from Christophe * Move the module to drivers/soc/fsl/ directory * Minor changes of

[PATCH 0/2] uio:ppc: cache-sram driver implementation

2022-06-10 Thread Wang Wenhu
Patch 1 exports the symbol ioremap_coherent which is used by the driver. Patch 2 is the implementation of uio driver for freescale mpc85xx. Wang Wenhu (2): powerpc:mm: export symbol ioremap_coherent uio:powerpc:mpc85xx: l2-cache-sram uio driver implementation arch/powerpc/mm/ioremap.c

[PATCH 1/2] powerpc:mm: export symbol ioremap_coherent

2022-06-10 Thread Wang Wenhu
The function ioremap_coherent may be called by modules such as fsl_85xx_cache_sram. So export it for access in other modules. Signed-off-by: Wang Wenhu --- arch/powerpc/mm/ioremap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/mm/ioremap.c b/arch/powerpc/mm/ioremap.c index

[PATCH 2/2] uio:powerpc:mpc85xx: l2-cache-sram uio driver implementation

2022-06-10 Thread Wang Wenhu
configuration process utilized the work of the earlier implementation, which has been removed now. See: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id=dc21ed2aef4150fc2fcf58227a4ff24502015c03 Cc: Christophe Leroy Signed-off-by: Wang Wenhu --- drivers/uio/Kconfig

[PATCHv2 0/2] uio:powerpc:mpc85xx: l2-cache-sram uio driver

2022-06-14 Thread Wang Wenhu
instead of ioremap_coherent For v1, see: 1/2: https://lore.kernel.org/all/20220610144348.GA595923@bhelgaas/T/ 2/2: https://lore.kernel.org/lkml/yqhy1uxwclljm...@kroah.com/ Wang Wenhu (2): mm: eliminate ifdef of HAVE_IOREMAP_PROT in .c files uio:powerpc:mpc85xx: l2-cache-sram uio driver implementation dr

[PATCHv2 1/2] mm: eliminate ifdef of HAVE_IOREMAP_PROT in .c files

2022-06-14 Thread Wang Wenhu
renced by some other modules. Signed-off-by: Wang Wenhu --- v2: - Added IS_ENABLED(CONFIG_HAVE_IOREMAP_PROT) condition in __access_remote_vm - Added generic_access_phys() function with no-op in mm/memory.c instead of the former one of "static inline" in include/linux/mm.h Former: ht

[PATCHv2 2/2] uio:powerpc:mpc85xx: l2-cache-sram uio driver implementation

2022-06-14 Thread Wang Wenhu
=dc21ed2aef4150fc2fcf58227a4ff24502015c03 Signed-off-by: Wang Wenhu --- v2: - Use __be32 instead of u32 for big-endian data declarations; - Use generic ioremap_cache instead of ioremap_coherent; - Physical address support both 32 and 64 bits; - Addressed some other comments from Greg. --- drivers/uio/Kconfig