Re: [PATCH 0/7] staging: vc04_services: Some dead code removal

2018-10-15 Thread Eric Anholt
Stefan Wahren writes: > Hi Tuomas, > >> Tuomas Tynkkynen hat am 4. Oktober 2018 um 11:37 >> geschrieben: >> >> >> Drop various pieces of dead code from here and there to get rid of >> the remaining users of VCHI_CONNECTION_T. After that we get to drop >> entire header files worth of unused co

Re: [PATCH 0/7] staging: vc04_services: Some dead code removal

2018-10-17 Thread Eric Anholt
Dan Carpenter writes: > On Sat, Oct 06, 2018 at 12:18:38PM +0200, Stefan Wahren wrote: >> Hi Tuomas, >> >> > Tuomas Tynkkynen hat am 4. Oktober 2018 um 11:37 >> > geschrieben: >> > >> > >> > Drop various pieces of dead code from here and there to get rid of >> > the remaining users of VCHI_C

Re: [PATCH V2] staging: vchiq_2835_arm: Make cache-line-size a required DT property

2017-02-26 Thread Eric Anholt
Stefan Wahren writes: > [add Eric] > >> Michael Zoran hat am 18. Februar 2017 um 12:59 >> geschrieben: >> >> >> On Sat, 2017-02-18 at 03:22 -0800, Michael Zoran wrote: >> > The original github source allowed for the cache-line-size property >> > to be missing. Since recent firmwares also req

Re: [RESEND PATCH V4] staging: vchiq_arm: Add compatibility wrappers for ioctls

2017-03-02 Thread Eric Anholt
T; > + > + completion32.reason = completiontemp.reason; > + completion32.header = ptr_to_compat(completiontemp.header); > + completion32.service_userdata = > + ptr_to_compat(completiontemp.service_userdata); > + completion32.bulk_userdata = > + ptr_to_compat(completiontemp.bulk_userdata); > + > + if (copy_to_user(compat_ptr(args32.buf), > + &completion32, > + sizeof(completion32))) > + return -EFAULT; > + > + args32.msgbufcount--; > + > + msgbufcount32 = > + &((struct vchiq_await_completion32 __user *)arg)->msgbufcount; There seem to be conditions in the real ioctl where msgbufcount doesn't get decremented. Could we just get_user() the args->msgbufcount and copy that back out? With these 3 fixes, Reviewed-by: Eric Anholt signature.asc Description: PGP signature ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 0/6] staging: BCM2835 MMAL V4L2 camera driver

2017-03-15 Thread Eric Anholt
Mauro Carvalho Chehab writes: > Em Fri, 27 Jan 2017 13:54:57 -0800 > Eric Anholt escreveu: > >> Here's my first pass at importing the camera driver. There's a bunch >> of TODO left to it, most of which is documented, and the rest being >> standard checkpat

Re: [PATCH] bcm2835-v4l2: Fix buffer overflow problem

2017-03-15 Thread Eric Anholt
Greg KH writes: > On Wed, Mar 15, 2017 at 03:32:56PM +, Dave Stevenson wrote: >> You've got a reason. It's GPLv2 licenced code so I have no control >> over what happens to it. >> Everywhere I have worked, when a patch has issues it is better to "-1" >> to stop/delay the merge even (or particu

Re: [PATCH 0/6] staging: BCM2835 MMAL V4L2 camera driver

2017-03-17 Thread Eric Anholt
Mauro Carvalho Chehab writes: > Em Wed, 15 Mar 2017 18:46:24 -0700 > Michael Zoran escreveu: > >> On Wed, 2017-03-15 at 22:08 -0300, Mauro Carvalho Chehab wrote: >> >> > No, I didn't. Thanks! Applied it but, unfortunately, didn't work. >> > Perhaps I'm missing some other patch. I'm compiling it

Re: [PATCH 1/6] bcm2835-gpio-exp: Driver for GPIO expander via mailbox service

2017-03-20 Thread Eric Anholt
Michael Zoran writes: >> > Since the API is completely documented, I see no reason we or >> > anybody >> > couldn't essentially rewrite the driver while it's in staging.  I >> > just >> > think it would be best for everyone if the new version was a drop >> > in >> > replacement for the original v

Re: Eric Anholt offically announces support of VC4 without access to expander on the RPI 3

2017-03-21 Thread Eric Anholt
Michael Zoran writes: > On Mon, 2017-03-20 at 10:22 -0700, Eric Anholt wrote: >> Michael Zoran writes: >> >> > > > Since the API is completely documented, I see no reason we or >> > > > anybody >> > > > couldn't essentially re

Re: Eric Anholt offically announces support of VC4 without access to expander on the RPI 3

2017-03-21 Thread Eric Anholt
Michael Zoran writes: > On Tue, 2017-03-21 at 10:34 -0700, Eric Anholt wrote: >> Michael Zoran writes: >> >> > On Mon, 2017-03-20 at 10:22 -0700, Eric Anholt wrote: >> > > Michael Zoran writes: >> > > >> > > > > > Since

[PATCH 2/2] staging/bcm2835-camera: Set ourselves up as a platform driver.

2018-05-09 Thread Eric Anholt
This allows bcm2835-camera to automatically probe after VCHI has loaded, rather than only successfully probing if the arbitrary probe order chooses us after VCHI. Signed-off-by: Eric Anholt --- .../staging/vc04_services/bcm2835-camera/TODO | 11 --- .../bcm2835-camera/bcm2835-camera.c

[PATCH 1/2] staging/vc04_services: Register a platform device for the camera driver.

2018-05-09 Thread Eric Anholt
We had the camera driver set up in a module_init function, but that meant that the camera driver would fail to load if it was initialized before VCHI. This enforces that it loads after we've successfully set up. Signed-off-by: Eric Anholt --- I'm going to try to get Dave Stevenson&

[PATCH 02/15] staging/bcm2835-camera: Set ourselves up as a platform driver.

2018-05-10 Thread Eric Anholt
This allows bcm2835-camera to automatically probe after VCHI has loaded, rather than only successfully probing if the arbitrary probe order chooses us after VCHI. Signed-off-by: Eric Anholt --- .../staging/vc04_services/bcm2835-camera/TODO | 11 --- .../bcm2835-camera/bcm2835-camera.c

[PATCH 08/15] staging: bcm2835-camera: Add multiple include protection

2018-05-10 Thread Eric Anholt
From: Dave Stevenson mmal-parameters.h didn't have the normal ... protection to stop it being included multiple times. Add it. Signed-off-by: Dave Stevenson Signed-off-by: Eric Anholt --- .../staging/vc04_services/bcm2835-camera/mmal-parameters.h | 5 + 1 file changed, 5 inser

[PATCH 07/15] staging: bcm2835-camera: Remove V4L2/MMAL buffer remapping

2018-05-10 Thread Eric Anholt
comes back from the VPU, so we can directly link back to the relevant V4L2 buffer. Signed-off-by: Dave Stevenson Signed-off-by: Eric Anholt --- .../bcm2835-camera/bcm2835-camera.c | 7 +- .../vc04_services/bcm2835-camera/mmal-vchiq.c | 109 -- 2 files changed, 29

[PATCH 11/15] staging: bcm2835-camera: Fix comment typos.

2018-05-10 Thread Eric Anholt
From: Dave Stevenson Fix a typo flagged by checkpatch, and another in the same line. Signed-off-by: Dave Stevenson Signed-off-by: Eric Anholt --- drivers/staging/vc04_services/bcm2835-camera/mmal-msg-port.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging

[PATCH 14/15] staging: bcm2835: Remove dead code related to framerate.

2018-05-10 Thread Eric Anholt
Fixes a compiler warning about a set-but-not-used variable. I think this was just leftover dead code from before set_framerate_params(), since that also sets up some mmal_parameter_rational structs for fps. Signed-off-by: Eric Anholt --- .../staging/vc04_services/bcm2835-camera/bcm2835-camera.c

[PATCH 13/15] staging: bcm2835-camera: Fix warnings about string ops on v4l2 uapi.

2018-05-10 Thread Eric Anholt
The v4l2 uapi uses u8[] for strings, so cast those to char * to avoid compiler warnings about unsigned vs signed with sprintf() and friends. Signed-off-by: Eric Anholt --- .../vc04_services/bcm2835-camera/bcm2835-camera.c| 12 ++-- 1 file changed, 6 insertions(+), 6 deletions

[PATCH 05/15] staging: bcm2835-camera: Remove bulk_mutex as it is not required

2018-05-10 Thread Eric Anholt
be scheduled at a time. Signed-off-by: Dave Stevenson Signed-off-by: Eric Anholt --- .../vc04_services/bcm2835-camera/mmal-vchiq.c | 48 +-- 1 file changed, 1 insertion(+), 47 deletions(-) diff --git a/drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c b/drivers/staging

[PATCH 10/15] staging: bcm2835-camera: Replace BUG_ON with return error

2018-05-10 Thread Eric Anholt
From: Dave Stevenson The error conditions don't warrant taking the kernel down, so remove BUG_ON. Signed-off-by: Dave Stevenson Signed-off-by: Eric Anholt --- .../staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --

[PATCH 04/15] staging: bcm2835-camera: Allocate context once per buffer

2018-05-10 Thread Eric Anholt
: Eric Anholt --- .../bcm2835-camera/bcm2835-camera.c | 30 +-- .../bcm2835-camera/mmal-common.h | 4 ++ .../vc04_services/bcm2835-camera/mmal-vchiq.c | 38 ++- .../vc04_services/bcm2835-camera/mmal-vchiq.h | 3 ++ 4 files changed, 62 insertions

[PATCH 12/15] staging: bcm2835-camera: Fix indentation of tables

2018-05-10 Thread Eric Anholt
From: Dave Stevenson As requested by Mauro Carvalho Chehab in review. Signed-off-by: Dave Stevenson Signed-off-by: Eric Anholt --- .../bcm2835-camera/bcm2835-camera.c | 289 +- 1 file changed, 139 insertions(+), 150 deletions(-) diff --git a/drivers/staging

[PATCH 06/15] staging: bcm2835-camera: Match MMAL buffer count to V4L2.

2018-05-10 Thread Eric Anholt
: Eric Anholt --- .../bcm2835-camera/bcm2835-camera.c | 6 -- .../vc04_services/bcm2835-camera/mmal-vchiq.c | 21 +-- .../vc04_services/bcm2835-camera/mmal-vchiq.h | 4 3 files changed, 5 insertions(+), 26 deletions(-) diff --git a/drivers/staging/vc04_services

[PATCH 12/12] staging: bcm2835-camera: Fix identation of tables

2018-05-10 Thread Eric Anholt
From: Dave Stevenson As requested by Mauro Carvalho Chehab in review. Signed-off-by: Dave Stevenson Signed-off-by: Eric Anholt --- .../bcm2835-camera/bcm2835-camera.c | 289 +- 1 file changed, 139 insertions(+), 150 deletions(-) diff --git a/drivers/staging

[PATCH 00/15] staging: bcm2835-camera probing and cleanup

2018-05-10 Thread Eric Anholt
mera: Move struct vchiq_mmal_rect staging: bcm2835-camera: Replace BUG_ON with return error staging: bcm2835-camera: Fix comment typos. staging: bcm2835-camera: Fix indentation of tables Eric Anholt (5): staging/vc04_services: Register a platform device for the camera driver. stagi

[PATCH 15/15] staging: bcm2835: Fix mmal_port_parameter_get() signed/unsigned warnings.

2018-05-10 Thread Eric Anholt
The arg is a u32 *, so switch over to that in our declarations. Signed-off-by: Eric Anholt --- .../staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c b

[PATCH 03/15] staging: bcm2835-camera: Skip ISP pass to eliminate padding.

2018-05-10 Thread Eric Anholt
f that requirement. v2: Changes by anholt from the downstream driver: Flag two more planar formats as needing padding removal, and remove broken userspace workaround. Signed-off-by: Dave Stevenson Signed-off-by: Eric Anholt --- .../bcm2835-camera/bcm2835-camera.c

[PATCH 09/15] staging: bcm2835-camera: Move struct vchiq_mmal_rect

2018-05-10 Thread Eric Anholt
From: Dave Stevenson struct vchiq_mmal_rect is only referenced from mmal-parameters.h, yet was defined in mmal-vchiq.h. Move it to avoid having to include multiple headers for no reason. Signed-off-by: Dave Stevenson Signed-off-by: Eric Anholt --- .../vc04_services/bcm2835-camera/mmal

[PATCH 01/15] staging/vc04_services: Register a platform device for the camera driver.

2018-05-10 Thread Eric Anholt
We had the camera driver set up in a module_init function, but that meant that the camera driver would fail to load if it was initialized before VCHI. By attaching to this platform_device, it can get a defined load order. Signed-off-by: Eric Anholt --- .../staging/vc04_services/interface

Re: [PATCH 12/12] staging: bcm2835-camera: Fix identation of tables

2018-05-10 Thread Eric Anholt
Eric Anholt writes: > From: Dave Stevenson > > As requested by Mauro Carvalho Chehab in review. > > Signed-off-by: Dave Stevenson > Signed-off-by: Eric Anholt Ignore this one, the other 12/12 is just this with "identation" spelled right. signature.as

[PATCH] staging: bcm2835-camera: Replace open-coded idr with a struct idr.

2018-05-10 Thread Eric Anholt
We just need some integer handles that can map back to our message struct when we're handling a reply, which struct idr is perfect for. Signed-off-by: Eric Anholt --- .../vc04_services/bcm2835-camera/mmal-vchiq.c | 135 -- 1 file changed, 31 insertions(+), 104 deletions(-)

Re: [PATCH] staging: bcm2835-camera: Replace open-coded idr with a struct idr.

2018-05-10 Thread Eric Anholt
Stefan Wahren writes: > Hi Eric, > >> Eric Anholt hat am 11. Mai 2018 um 01:31 geschrieben: >> >> >> We just need some integer handles that can map back to our message >> struct when we're handling a reply, which struct idr is perfe

[PATCH v2] staging: bcm2835-camera: Replace open-coded idr with a struct idr.

2018-05-11 Thread Eric Anholt
We just need some integer handles that can map back to our message struct when we're handling a reply, which struct idr is perfect for. v2: Fix error check to look at the right variable. Signed-off-by: Eric Anholt --- .../vc04_services/bcm2835-camera/mmal-vchiq.c | 135

[PATCH] staging: bcm2835-camera: Fix module section mismatch warnings.

2018-05-14 Thread Eric Anholt
Noticed by Stephen Rothwell in -next. Signed-off-by: Eric Anholt Fixes: 4bebb0312ea9 ("staging/bcm2835-camera: Set ourselves up as a platform driver.") Cc: Stephen Rothwell --- Note: only compile tested here. .../staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 8 --

Re: [PATCH] staging: bcm2835-camera: Replace open-coded idr with a struct idr.

2018-05-15 Thread Eric Anholt
Dan Carpenter writes: > On Thu, May 10, 2018 at 04:31:07PM -0700, Eric Anholt wrote: >> @@ -258,32 +181,40 @@ get_msg_context(struct vchiq_mmal_instance *instance) >> if (!msg_context) >> return ERR_PTR(-ENOMEM); >> >> -

Re: [PATCH 04/13] staging: vc04_services: no need to check debugfs return values

2018-05-30 Thread Eric Anholt
debugfs > calls. This ends up removing a number of lines of code that are not > needed. > > Cc: Eric Anholt > Cc: Stefan Wahren > Cc: Kees Cook > Cc: Dan Carpenter > Cc: Arnd Bergmann > Cc: Keerthi Reddy > Cc: linux-rpi-ker...@lists.infradead.org > Cc: linu

Re: [PATCH 1/6] staging: vc04_services: no need to check debugfs return values

2018-06-01 Thread Eric Anholt
debugfs > calls. This ends up removing a number of lines of code that are not > needed. This series is: Reviewed-by: Eric Anholt Thanks for the cleanups! signature.asc Description: PGP signature ___ devel mailing list de...@linuxd

Re: [Bug] VCHIQ functional test broken

2017-04-20 Thread Eric Anholt
Rabin Vincent writes: > On Thu, Apr 13, 2017 at 11:29:15PM +0100, Russell King - ARM Linux wrote: >> > 00a19f3e25c0c40e0ec77f52d4841d23ad269169 is the first bad commit >> > commit 00a19f3e25c0c40e0ec77f52d4841d23ad269169 >> > Author: Rabin Vincent >> > Date: Tue Nov 8 09:21:19 2016 +0100 >> >

Re: [Bug] VCHIQ functional test broken

2017-04-20 Thread Eric Anholt
Rabin Vincent writes: > On Thu, Apr 20, 2017 at 11:27:38AM -0700, Eric Anholt wrote: >> I'm confused by what you're saying here. The driver has already been >> converted to not use dmac_map_area (commit >> cf9caf1929882b66922aee698e99e6c8f357bee5), and uses dma_

Re: [PATCH] staging: vc04_services: Fix bracing on single statement blocks

2016-12-19 Thread Eric Anholt
Aaron Moore writes: > Fix coding style issue caught by checkpatch.pl relating to braces on > single statement blocks. This issue was corrected in 3 locations. > > Signed-off-by: Aaron Moore Reviewed-by: Eric Anholt signature.asc Description: P

Re: [PATCH 0/6] staging: vchiq_arm: Fine-tuning for some function implementations

2017-01-03 Thread Eric Anholt
SF Markus Elfring writes: > From: Markus Elfring > Date: Sat, 31 Dec 2016 22:42:34 +0100 > > Some update suggestions were taken into account > from static source code analysis. This series is: Reviewed-by: Eric Anholt signature.asc Description

Re: [PATCH 0/9] staging: vc04_services: Clean up vchiq driver

2017-01-13 Thread Eric Anholt
Greg Kroah-Hartman writes: > On Sun, Jan 08, 2017 at 06:15:09PM +, Stefan Wahren wrote: >> This is a loose bunch of clean up patches for the bcm2835 vchiq driver. > > All now applied, thanks. Thanks! I've been off on vacation and wasn't reviewing anything. In general, do you want to see R-

Re: [PATCH V2 0/3] Add vchi_queue_kernel_message and vchi_queue_user_message

2017-01-25 Thread Eric Anholt
Greg KH writes: > On Wed, Jan 25, 2017 at 05:27:14AM -0800, Michael Zoran wrote: >> On Wed, 2017-01-25 at 16:14 +0300, Dan Carpenter wrote: >> > On Wed, Jan 25, 2017 at 04:33:46AM -0800, Michael Zoran wrote: >> > > Just for clarity, when you mean staging code? Are you talking about >> > > the >>

Re: [PATCH 0/3] Add vchi_queue_kernel_message and vchi_queue_user_message

2017-01-26 Thread Eric Anholt
CE_HANDLE_T handle, > void *data, > unsigned int size) > > int > vchi_queue_user_message(VCHI_SERVICE_HANDLE_T handle, > void __user *data, > unsigned int size) This is much nicer than the old inter

[PATCH 4/6] staging: bcm2835-v4l2: Add a TODO file for improvements we need.

2017-01-27 Thread Eric Anholt
Signed-off-by: Eric Anholt --- drivers/staging/media/platform/bcm2835/TODO | 39 + 1 file changed, 39 insertions(+) create mode 100644 drivers/staging/media/platform/bcm2835/TODO diff --git a/drivers/staging/media/platform/bcm2835/TODO b/drivers/staging/media

[PATCH 0/6] staging: BCM2835 MMAL V4L2 camera driver

2017-01-27 Thread Eric Anholt
he driver to the current VCHI API" patch will conflict with the outstanding "Add vchi_queue_kernel_message and vchi_queue_user_message" series, but the fix should be pretty obvious when that lands. I built this against 4.10-rc1, but a merge with staging-next was clean and still built fine

[PATCH 6/6] staging: bcm2835-v4l2: Apply spelling fixes from checkpatch.

2017-01-27 Thread Eric Anholt
Generated with checkpatch.pl --fix-inplace and git add -p out of the results. Signed-off-by: Eric Anholt --- drivers/staging/media/platform/bcm2835/bcm2835-camera.c | 6 +++--- drivers/staging/media/platform/bcm2835/mmal-vchiq.c | 12 ++-- 2 files changed, 9 insertions(+), 9

[PATCH 2/6] staging: bcm2835-v4l2: Update the driver to the current VCHI API.

2017-01-27 Thread Eric Anholt
49bec49fd7f2 ("staging: vc04_services: remove vchiq_copy_from_user") removed the flags/msg_handle arguments, which were unused, and pushed the implementation of copying using memcpy vs copy_from_user to the caller. Signed-off-by: Eric Anholt --- drivers/staging/media/platform/bc

[PATCH 5/6] staging: bcm2835-v4l2: Apply many whitespace fixes from checkpatch.

2017-01-27 Thread Eric Anholt
: Eric Anholt --- .../media/platform/bcm2835/bcm2835-camera.c| 90 drivers/staging/media/platform/bcm2835/controls.c | 236 ++--- .../staging/media/platform/bcm2835/mmal-vchiq.c| 13 +- 3 files changed, 167 insertions(+), 172 deletions(-) diff --git a

[PATCH 3/6] staging: bcm2835-v4l2: Add a build system for the module.

2017-01-27 Thread Eric Anholt
This is derived from the downstream tree's build system, but with just a single Kconfig option. For now the driver only builds on 32-bit arm -- the aarch64 build breaks due to the driver using arm-specific cache flushing functions. Signed-off-by: Eric Anholt --- drivers/staging/media/Kc

Re: [PATCH] staging: bcm2835-audio: Strengthen build dependencies

2017-01-30 Thread Eric Anholt
Michael Zoran writes: > This driver makes no sense outside of ARM or ARM64. > Add an explicit build dependency on: > (ARM || ARM64 || COMPILE_TEST) > > Also set the default build to n > > Signed-off-by: Michael Zoran > --- > drivers/staging/bcm2835-audio/Kconfig | 2 ++ > 1 file changed, 2 inse

Re: [PATCH 6/6] staging: bcm2835-v4l2: Apply spelling fixes from checkpatch.

2017-01-30 Thread Eric Anholt
Joe Perches writes: > On Fri, 2017-01-27 at 13:55 -0800, Eric Anholt wrote: >> Generated with checkpatch.pl --fix-inplace and git add -p out of the >> results. > > Maybe another. > >> diff --git a/drivers/staging/media/platform/bcm2835/mmal-vchiq.c >> b/dr

Re: [PATCH 6/6] staging: bcm2835-v4l2: Apply spelling fixes from checkpatch.

2017-01-31 Thread Eric Anholt
Joe Perches writes: > On Mon, 2017-01-30 at 12:05 -0800, Eric Anholt wrote: >> Joe Perches writes: >> >> > On Fri, 2017-01-27 at 13:55 -0800, Eric Anholt wrote: >> > > Generated with checkpatch.pl --fix-inplace and git add -p out of the >

Re: [PATCH] staging: vc04_services: remove unused functions

2017-02-07 Thread Eric Anholt
Dan Carpenter writes: > There is a bunch of vc04_services that we're still looking to merge in > the near future. Please hold off deleting these until we are further > along on that. Checking the downstream tree, these are actually dead. signature.asc Description: PGP signature __

Re: [PATCH 2/2] staging: vc04_services: Replace dmac_map_area with dmac_map_sg

2016-10-24 Thread Eric Anholt
Greg KH writes: > On Sun, Oct 23, 2016 at 10:29:32PM -0700, mzo...@crowfest.net wrote: >> From: Michael Zoran >> >> The original arm implementation uses dmac_map_area which is not >> portable. Replace it with an architecture neutral version >> which uses dma_map_sg. >> >> As you can see that

Re: [PATCH 2/2] staging: vc04_services: Replace dmac_map_area with dmac_map_sg

2016-10-24 Thread Eric Anholt
mzo...@crowfest.net writes: > From: Michael Zoran > > The original arm implementation uses dmac_map_area which is not > portable. Replace it with an architecture neutral version > which uses dma_map_sg. > > As you can see that for larger page sizes, the dma_map_sg > implementation is faster then

Re: [PATCH 2/2] staging: vc04_services: Replace dmac_map_area with dmac_map_sg

2016-10-25 Thread Eric Anholt
Michael Zoran writes: > On Tue, 2016-10-25 at 08:00 -0700, Michael Zoran wrote: >> On Mon, 2016-10-24 at 10:31 -0700, Eric Anholt wrote: >> > mzo...@crowfest.net writes: >> > >> > >  */ >> > >   >> > >  static int >>

Re: [PATCH v2] staging: vc04_services: Replace dmac_map_area with dmac_map_sg

2016-10-26 Thread Eric Anholt
; vchiq_test -b 512 1 4372us/iter 4616us/iter 4123us Reviewed-by: Eric Anholt Nice work! More portability and better performance at the same time. A possible future improvement would be to track the pagelist, num_pages, and pagelist_size in a struct in the bulk->remote_d

Re: [PATCH 4/5] staging: vc04_services: fix CamelCase

2016-10-26 Thread Eric Anholt
odingStyle after a brief search. Other than this concern, all 5 patches are: Reviewed-by: Eric Anholt signature.asc Description: PGP signature ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging: vc04_services: call sg_init_table to init scatterlist

2016-10-31 Thread Eric Anholt
the magic cookie > + * is filled if debugging is enabled > + */ > + sg_init_table(scatterlist, num_pages); > + /* Now set the pages for each scatterlist */ I feel like the comments don't add much, but either way: Acked-by: Eric Anholt > for (i = 0; i <

Re: [PATCH] staging: vc04_services: setup DMA and coherent mask

2016-10-31 Thread Eric Anholt
Michael Zoran writes: > Setting the DMA mask is optional on 32 bit but > is mandatory on 64 bit. Set the DMA mask and coherent > to force all DMA to be in the 32 bit address space. > > This is considered a "good practice" and most drivers > already do this. > > Signed-off-by: Michael Zoran > --

Re: [PATCH] staging: vc04_services: parse_rx_slots() - Fix compiler warning

2016-11-01 Thread Eric Anholt
t is expected that a human debugging > the kernel interpret it. > > This change adds a cast to long before the original cast > to int to silence the warning. > > Signed-off-by: Michael Zoran Thanks for sorting this out. Reviewed-by: E

Re: [PATCH v2] staging: vc04_services: add vchiq_pagelist_info structure

2016-11-07 Thread Eric Anholt
o understand and maintain. > > Tests Run(Both Pass): > vchiq_test -p 1 > vchiq_test -f 10 Looks good, and it's a nice cleanup. Thanks! Reviewed-by: Eric Anholt I had one style note, which was that you're using an int and 0/1 for a boolean value, but we like to use proper bo

Re: [PATCH v2] staging: vc04_services: setup DMA and coherent mask

2016-11-07 Thread Eric Anholt
Michael Zoran writes: > VCHI messages between the CPU and firmware use 32-bit > bus addresses. Explicitly set the DMA mask and coherent > on all platforms. Reviewed-by: Eric Anholt signature.asc Description: PGP signature ___ devel mailin

Re: [PATCH] staging: vc04_services: fix array_size.cocci warnings

2016-11-11 Thread Eric Anholt
occi > > Signed-off-by: Fengguang Wu These 3 are: Reviewed-by: Eric Anholt signature.asc Description: PGP signature ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging: vc04_services: fix ifnullfree.cocci warnings

2016-11-11 Thread Eric Anholt
nullfree.cocci > > Signed-off-by: Fengguang Wu Reviewed-by: Eric Anholt signature.asc Description: PGP signature ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [bug report] staging: add bcm2708 vchiq driver

2016-11-16 Thread Eric Anholt
Michael Zoran writes: > On Tue, 2016-11-15 at 22:04 -0500, Vince Weaver wrote: >> On Tue, 15 Nov 2016, Michael Zoran wrote: >> >> > I'm still interested to know more about the MMU statement.  I would >> > think at least some of the RPI models have one because swapping >> > appears >> > to be at

Re: [PATCH 1/2] staging: vc04_services: remove duplicate mutex_lock_interruptible

2016-11-16 Thread Eric Anholt
Arnd Bergmann writes: > The driver tries to redefine mutex_lock_interruptible as an open-coded > mutex_lock_killable, but that definition clashes with the normal > mutex_lock_interruptible definition when CONFIG_DEBUG_LOCK_ALLOC > is set: These two are: Acked-by: Eric Anholt s

Re: [PATCH 06/24] staging: vc04_services: bcm2835-audio: remove redundant license text

2018-01-11 Thread Eric Anholt
***/ > +/* Copyright 2011 Broadcom Corporation. All rights reserved. */ The "Notwithstanding..." section feels like something unusual and not represented by the SPDX identifier. Not sure what to do about that. The 2 camera patches are: R

Re: [PATCH] staging: vchiq_arm: Clear VLA warning

2018-03-09 Thread Eric Anholt
"Tobin C. Harding" writes: > The kernel would like to have all stack VLA usage removed[1]. The > array here is fixed (declared with a const variable) but it appears > like VLA to the compiler. We can use a pre-processor define to quiet > the compiler. > > [1]: https://lkml.org/lkml/2018/3/7/621

Re: [PATCH 2/2] staging: vc04_services: Add outstanding VCHI TODOs

2018-03-20 Thread Eric Anholt
table > + > +Building this driver with arm/multi_v7_defconfig or arm64/defconfig > +leads to data corruption during vchiq_test. This should be fixed. Sounds good, but could you document that it's "vchiq_test -f" for testing this? With that, these two get my: Reviewed-by: Eric