Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1569194

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

From Michael Zoran <mzoran@crowfest.net>
Newsgroups linux.kernel
Subject Re: [PATCH 3/6] staging: bcm2835-v4l2: Add a build system for the module.
Date 2017-01-29 15:40 +0100
Message-ID <t4YO5-8aQ-5@gated-at.bofh.it> (permalink)
References <t4mIO-15A-13@gated-at.bofh.it> <t4mIO-15A-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, 2017-01-27 at 13:55 -0800, Eric Anholt wrote:
> 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.
> 
> 

If you are referring to this:
/* enqueue a bulk receive for a given message context */
static int bulk_receive(struct vchiq_mmal_instance *instance,
			struct mmal_msg *msg,
			struct mmal_msg_context *msg_context)
...

	// only need to flush L1 cache here, as VCHIQ takes care of the
L2
	// cache.
	__cpuc_flush_dcache_area(msg_context->u.bulk.buffer->buffer,
rd_len);


It should be possible to simply remove the __cpuc_flash_dcache_area
call as VCHIQ should now be flushing all the needed caches.  This is
due to the DMA API clean that was necessary to make it multiplatform.

The driver does have a few nasty issues with stuffing callback pointers
into fixed 32 bit sized integers that would need to be fixed to make it
work on 64 bit.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 3/6] staging: bcm2835-v4l2: Add a build system for the module. Eric Anholt <eric@anholt.net> - 2017-01-27 23:00 +0100
  Re: [PATCH 3/6] staging: bcm2835-v4l2: Add a build system for the  module. Michael Zoran <mzoran@crowfest.net> - 2017-01-29 15:40 +0100

csiph-web