[RFC v2 3/8] video: tegra: host: Add channel and client support

2012-11-30 Thread Thierry Reding
On Thu, Nov 29, 2012 at 01:00:40PM +0200, Terje Bergstr?m wrote: > On 29.11.2012 12:04, Thierry Reding wrote: > > Looking some more at how this is used, I'm starting to think that it > > might be easier to export the various handlers and allow them to be > > passed to the nvhost_intr_add_action() e

Re: [RFC v2 3/8] video: tegra: host: Add channel and client support

2012-11-30 Thread Thierry Reding
On Thu, Nov 29, 2012 at 01:00:40PM +0200, Terje Bergström wrote: > On 29.11.2012 12:04, Thierry Reding wrote: > > Looking some more at how this is used, I'm starting to think that it > > might be easier to export the various handlers and allow them to be > > passed to the nvhost_intr_add_action() e

[RFC v2 3/8] video: tegra: host: Add channel and client support

2012-11-29 Thread Terje Bergström
On 29.11.2012 12:04, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Mon, Nov 26, 2012 at 03:19:09PM +0200, Terje Bergstrom wrote: > > I've skipped a lot of code here that I need more time to review. Thanks already for the very good comments! It's great getting comments on the code

[RFC v2 3/8] video: tegra: host: Add channel and client support

2012-11-29 Thread Thierry Reding
On Mon, Nov 26, 2012 at 03:19:09PM +0200, Terje Bergstrom wrote: I've skipped a lot of code here that I need more time to review. [...] > diff --git a/drivers/video/tegra/host/nvhost_intr.c > b/drivers/video/tegra/host/nvhost_intr.c [...] > +static void action_submit_complete(struct nvhost_waitl

Re: [RFC v2 3/8] video: tegra: host: Add channel and client support

2012-11-29 Thread Terje Bergström
On 29.11.2012 12:04, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Mon, Nov 26, 2012 at 03:19:09PM +0200, Terje Bergstrom wrote: > > I've skipped a lot of code here that I need more time to review. Thanks already for the very good comments! It's great getting comments on the code

Re: [RFC v2 3/8] video: tegra: host: Add channel and client support

2012-11-29 Thread Thierry Reding
On Mon, Nov 26, 2012 at 03:19:09PM +0200, Terje Bergstrom wrote: I've skipped a lot of code here that I need more time to review. [...] > diff --git a/drivers/video/tegra/host/nvhost_intr.c > b/drivers/video/tegra/host/nvhost_intr.c [...] > +static void action_submit_complete(struct nvhost_waitl

[RFC v2 3/8] video: tegra: host: Add channel and client support

2012-11-26 Thread Terje Bergstrom
Add support for host1x client modules, and host1x channels to submit work to the clients. The work is submitted in dmabuf buffers, so add support for dmabuf memory management, too. Signed-off-by: Terje Bergstrom --- drivers/video/tegra/host/Makefile |8 +- drivers/video/tegr