Re: [PATCH] powerpc/Kconfig: Make FSL_85XX_CACHE_SRAM configurable

2020-03-01 Thread
发件人:Scott Wood 发送日期:2020-03-01 07:12:58 收件人:"王文虎" 抄送人:wangwenhu ,Kumar Gala ,Benjamin Herrenschmidt ,Paul Mackerras ,Michael Ellerman ,linuxppc-dev@lists.ozlabs.org,linux-ker...@vger.kernel.org,triv...@kernel.org,Rai Harninder 主题:Re: Re: [PATCH] powerpc/Kconfig: Make FSL_85XX_

Re: [PATCH] powerpc/Kconfig: Make FSL_85XX_CACHE_SRAM configurable

2020-03-02 Thread
发件人:Scott Wood 发送日期:2020-03-02 16:58:52 收件人:"王文虎" 抄送人:wangwenhu ,Kumar Gala ,Benjamin Herrenschmidt ,Paul Mackerras ,Michael Ellerman ,linuxppc-dev@lists.ozlabs.org,linux-ker...@vger.kernel.org,triv...@kernel.org,Rai Harninder 主题:Re: [PATCH] powerpc/Kconfig: Make FSL_85XX_

Re:Re: [PATCH] powerpc/sysdev: fix compile errors

2020-02-18 Thread
From: Christophe Leroy Date: 2020-01-21 16:37:07 To:"王文虎" ,Andrew Donnellan cc: Kate Stewart ,Richard Fontana ,Greg Kroah-Hartman ,linux-ker...@vger.kernel.org,wangwenhu ,Paul Mackerras ,triv...@kernel.org,Thomas Gleixner ,linuxppc-dev@lists.ozlabs.org,loneh...@hotmail.com S

Re:[PATCH] powerpc/Kconfig: Make FSL_85XX_CACHE_SRAM configurable

2020-01-20 Thread
From: Scott Wood Date: 2020-01-21 11:25:25 To: wangwenhu ,Kumar Gala ,Benjamin Herrenschmidt ,Paul Mackerras ,Michael Ellerman ,linuxppc-dev@lists.ozlabs.org,linux-ker...@vger.kernel.org Cc: triv...@kernel.org,wenhu.w...@vivo.com,Rai Harninder Subject: Re: [PATCH] powerpc/Kconfig: Make

Re:Re: [PATCH] powerpc/Kconfig: Make FSL_85XX_CACHE_SRAM configurable

2020-01-20 Thread
发件人:Scott Wood 发送日期:2020-01-21 13:49:59 收件人:"王文虎" 抄送人:wangwenhu ,Kumar Gala ,Benjamin Herrenschmidt ,Paul Mackerras ,Michael Ellerman ,linuxppc-dev@lists.ozlabs.org,linux-ker...@vger.kernel.org,triv...@kernel.org,Rai Harninder 主题:Re: [PATCH] powerpc/Kconfig: Make FSL_85XX_

Re:Re: [PATCH] powerpc/sysdev: fix compile errors

2020-01-20 Thread
发件人:Andrew Donnellan 发送日期:2020-01-21 14:13:07 收件人:wangwenhu ,Benjamin Herrenschmidt ,Paul Mackerras ,Michael Ellerman ,Kate Stewart ,Greg Kroah-Hartman ,Richard Fontana ,Thomas Gleixner ,linuxppc-dev@lists.ozlabs.org,linux-ker...@vger.kernel.org

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

2020-04-16 Thread
Hi, Christophe, dev_kzalloc really looks better. I will update the patch with the comments addressed. Thanks, Wenhu From: Christophe Leroy Date: 2020-04-16 19:49:01 To:Wang Wenhu ,gre...@linuxfoundation.org, linux-ker...@vger.kernel.org,o...@buserror.net,linuxppc-dev@lists.ozlabs.org cc:

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

2020-04-16 Thread
>> On Thu, 2020-04-16 at 08:35 -0700, Wang Wenhu wrote: >> > +#define UIO_INFO_VER "devicetree,pseudo" >> >> What does this mean? Changing a number into a non-obvious string (Why >> "pseudo"? Why does the UIO user care that the config came from the device >> tree?) just to avoid setting

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

2020-04-19 Thread
>> A generic User-Kernel interface that allows a misc device created >> by it to support file-operations of ioctl and mmap to access SRAM >> memory from user level. Different kinds of SRAM alloction and free >> APIs could be added to the available array and could be configured >> from user level.

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

2020-04-21 Thread
Hi, Greg, Arnd, Thank you for your comments first, and then really very very very sorry for driving Greg to sigh and I hope there would be chance to share Moutai (rather than whisky, we drink it much, a kind of Baijiu), after the virus. Back to the comments, I'd like to do a bit of documentation

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

2020-04-21 Thread
>On Tue, Apr 21, 2020 at 05:09:47PM +0800, 王文虎 wrote: >> Hi, Greg, Arnd, >> >> Thank you for your comments first, and then really very very very sorry >> for driving Greg to sigh and I hope there would be chance to share Moutai >> (rather than whisky, we drink

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

2020-04-17 Thread
>A driver for freescale 85xx platforms to access the Cache-Sram form>user >level. This is extremely helpful for some user-space applications >that require high performance memory accesses. > >Cc: Greg Kroah-Hartman >Cc: Christophe Leroy >Cc: Scott Wood >Cc: Michael Ellerman >Cc:

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

2020-04-17 Thread
>> > > On Thu, 2020-04-16 at 08:35 -0700, Wang Wenhu wrote: >> > > > +#define UIO_INFO_VER "devicetree,pseudo" >> > > >> > > What does this mean? Changing a number into a non-obvious string (Why >> > > "pseudo"? Why does the UIO user care that the config came from the >> > > device >> > >

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

2020-04-16 Thread
Hi, Seems there is something wrong with the server that multiple dumplications of the v3 patches were sent out, please ignore the rest and take this newest series as formal count. Thanks, Wenhu From: Wang Wenhu Date: 2020-04-16 15:49:14 To:

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

2020-04-16 Thread
Hi, From: Christophe Leroy Date: 2020-04-16 18:36:38 To:"王文虎" cc: gre...@linuxfoundation.org,linux-ker...@vger.kernel.org,o...@buserror.net,linuxppc-dev@lists.ozlabs.org,ker...@vivo.com Subject: Re: [PATCH v3,0/4] drivers: uio: new driver uio_fsl_85xx_cache_sram> > >Le 16/

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

2020-04-17 Thread
>On Fri, 2020-04-17 at 09:42 +0200, Greg KH wrote:>> On Thu, Apr 16, 2020 at >11:58:29PM -0500, Scott Wood wrote: >> > On Fri, 2020-04-17 at 10:31 +0800, 王文虎 wrote: >> > > Sounds it is. And does the modification below fit well? >> > >

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

2020-03-13 Thread
发件人:Christophe Leroy 发送日期:2020-03-14 01:45:11 收件人:WANG Wenhu ,Benjamin Herrenschmidt ,Paul Mackerras ,Michael Ellerman ,Richard Fontana ,Kate Stewart ,Allison Randal ,Thomas Gleixner ,linuxppc-dev@lists.ozlabs.org,linux-ker...@vger.kernel.org 抄送人:ker...@vivo.com,triv...@kernel.org 主题:Re:

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

2020-03-16 Thread
From: Michael Ellerman Date: 2020-03-16 17:41:12 To:WANG Wenhu ,Benjamin Herrenschmidt ,Paul Mackerras ,WANG Wenhu ,Allison Randal ,Richard Fontana ,Greg Kroah-Hartman ,Thomas Gleixner ,linuxppc-dev@lists.ozlabs.org,linux-ker...@vger.kernel.org cc: triv...@kernel.org,ker...@vivo.com,stable

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

2020-03-13 Thread
发件人:Christophe Leroy 发送日期:2020-03-14 03:24:20 收件人:"王文虎" 抄送人:Benjamin Herrenschmidt ,Paul Mackerras ,Michael Ellerman ,Richard Fontana ,Kate Stewart ,Allison Randal ,Thomas Gleixner ,linuxppc-dev@lists.ozlabs.org,linux-ker...@vger.kernel.org,ker...@vivo.com,triv...@kernel.org 主题:Re:

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

2020-04-24 Thread
create mode 100644 arch/powerpc/sysdev/fsl_85xx_sram_uapi.c >>> >>> We shouldn't add more stuff in arch/powerpc/sysdev/ >>> >>> Either it is dedicated to 85xx, and it should go into >>> arch/powerpc/platform/85xx/ , or it is common to several >>> platforms/architectures and should be moved

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

2020-04-24 Thread
>> diff --git a/include/linux/sram_dynamic.h b/include/linux/sram_dynamic.h >> new file mode 100644 >> index ..c77e9e7b1151 >> --- /dev/null >> +++ b/include/linux/sram_dynamic.h >> @@ -0,0 +1,23 @@ >> +/* SPDX-License-Identifier: GPL-2.0 */ >> +#ifndef __SRAM_DYNAMIC_H >> +#define

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

2020-04-24 Thread
>Le 24/04/2020 à 04:45, Wang Wenhu a écrit : >> New module which registers its memory allocation and free APIs to the >> sram_dynamic module, which would create a device of struct sram_device >> type to act as an interface for user level applications to access the >> backend hardware device,

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

2020-04-22 Thread
Hi, Scott, Greg, Thank you for your helpful comments. For that Greg mentioned that the patch (or patch series) via UIO should worked through, so I want to make it clear that if it would go upstream?(And if so, when? No push, just ask) Also I have been wondering how the patches with components

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

2020-04-22 Thread
>Hi, Scott, Greg, > >Thank you for your helpful comments. >For that Greg mentioned that the patch (or patch series) via UIO should worked >through, >so I want to make it clear that if it would go upstream?(And if so, when? No >push, just ask) > >Also I have been wondering how the patches with

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

2020-03-17 Thread
From: Michael Ellerman Date: 2020-03-17 19:22:13 To:"王文虎" cc: Benjamin Herrenschmidt ,Paul Mackerras ,Allison Randal ,Richard Fontana ,Greg Kroah-Hartman ,Thomas Gleixner ,linuxppc-dev@lists.ozlabs.org,linux-ker...@vger.kernel.org,triv...@kernel.org,ker...@vivo.com,stable S