Re: [GIT PULL FOR v4.18] R-Car VSP1 TLB optimisation

2018-05-28 Thread Dan Carpenter
On Sat, May 26, 2018 at 08:28:18AM -0300, Mauro Carvalho Chehab wrote: > Em Sat, 26 May 2018 03:24:00 +0300 > Laurent Pinchart escreveu: > > > Hi Mauro, > > > > On Saturday, 26 May 2018 02:39:16 EEST Laurent Pinchart wrote: > > > On Saturday, 26 May 2018 02:10:27 EEST Mauro Carvalho Chehab wrote

Re: [GIT PULL FOR v4.18] R-Car VSP1 TLB optimisation

2018-05-28 Thread Mauro Carvalho Chehab
Em Mon, 28 May 2018 11:31:01 +0300 Laurent Pinchart escreveu: > Hi Mauro and Dan, > > Dan, there's a question for you below. > > On Monday, 28 May 2018 11:28:41 EEST Laurent Pinchart wrote: > > On Saturday, 26 May 2018 14:28:18 EEST Mauro Carvalho Chehab wrote: > > > Em Sat, 26 May 2018 03:24

Re: [GIT PULL FOR v4.18] R-Car VSP1 TLB optimisation

2018-05-28 Thread Dan Carpenter
On Mon, May 28, 2018 at 11:28:41AM +0300, Laurent Pinchart wrote: > and I still get the same warning. I had to write the following (which is > obviously not correct) to silence the warning. > > if (pipe->num_inputs > 2) > brx = &vsp1->bru->entity; > else if (pipe->

Re: [GIT PULL FOR v4.18] R-Car VSP1 TLB optimisation

2018-05-28 Thread Kieran Bingham
Hi Mauro, Laurent, On 26/05/18 00:39, Laurent Pinchart wrote: > Hi Mauro, > > (CC'ing Kieran) > > On Saturday, 26 May 2018 02:10:27 EEST Mauro Carvalho Chehab wrote: >> Em Sun, 20 May 2018 15:10:50 +0300 Laurent Pinchart escreveu: >>> Hi Mauro, >>> >>> The following changes since commit >>> 8ed8

Re: [GIT PULL FOR v4.18] R-Car VSP1 TLB optimisation

2018-05-28 Thread Dan Carpenter
On Mon, May 28, 2018 at 11:31:01AM +0300, Laurent Pinchart wrote: > And that being said, I just tried > > if (pipe->num_inputs > 2) > brx = &vsp1->bru->entity; > else if (pipe->brx && !drm_pipe->force_brx_release) > brx = pipe->brx; > else if

Re: [GIT PULL FOR v4.18] R-Car VSP1 TLB optimisation

2018-05-28 Thread Laurent Pinchart
Hi Mauro, On Monday, 28 May 2018 13:03:05 EEST Mauro Carvalho Chehab wrote: > Em Mon, 28 May 2018 11:28:41 +0300 Laurent Pinchart escreveu: > > On Saturday, 26 May 2018 14:28:18 EEST Mauro Carvalho Chehab wrote: > >> Em Sat, 26 May 2018 03:24:00 +0300 Laurent Pinchart escreveu: > > [snip] > > > >

Re: [GIT PULL FOR v4.18] R-Car VSP1 TLB optimisation

2018-05-28 Thread Laurent Pinchart
Hi Dan, Thank you for your quick reply. On Monday, 28 May 2018 13:20:49 EEST Dan Carpenter wrote: > On Mon, May 28, 2018 at 11:28:41AM +0300, Laurent Pinchart wrote: > > and I still get the same warning. I had to write the following (which is > > obviously not correct) to silence the warning. > >

Re: [GIT PULL FOR v4.18] R-Car VSP1 TLB optimisation

2018-05-28 Thread Dan Carpenter
On Mon, May 28, 2018 at 07:03:05AM -0300, Mauro Carvalho Chehab wrote: > I can't see how brx can be NULL. At the sequence of ifs: > > if (pipe->num_inputs > 2) > brx = &vsp1->bru->entity; > else if (pipe->brx && !drm_pipe->force_brx_release) > brx = pi

Re: [GIT PULL FOR v4.18] R-Car VSP1 TLB optimisation

2018-05-28 Thread Laurent Pinchart
Hi Dan, On Monday, 28 May 2018 13:36:08 EEST Dan Carpenter wrote: > On Mon, May 28, 2018 at 11:31:01AM +0300, Laurent Pinchart wrote: > > And that being said, I just tried > > > > if (pipe->num_inputs > 2) > > brx = &vsp1->bru->entity; > > else if (pipe->brx && !dr

Re: [GIT PULL FOR v4.18] R-Car VSP1 TLB optimisation

2018-05-28 Thread Dan Carpenter
On Mon, May 28, 2018 at 01:58:41PM +0300, Laurent Pinchart wrote: > It would indeed be useful to implement, but I share your concern that this > would be pretty difficult. > > However, there's still something that puzzles me. Let's add a bit more > context. > > if (pipe->num_inputs > 2)

Re: [GIT PULL FOR v4.18] R-Car VSP1 TLB optimisation

2018-05-28 Thread Dan Carpenter
On Mon, May 28, 2018 at 01:54:18PM +0300, Laurent Pinchart wrote: > Hi Dan, > > Thank you for your quick reply. > > On Monday, 28 May 2018 13:20:49 EEST Dan Carpenter wrote: > > On Mon, May 28, 2018 at 11:28:41AM +0300, Laurent Pinchart wrote: > > > and I still get the same warning. I had to writ

Re: [GIT PULL FOR v4.18] R-Car VSP1 TLB optimisation

2018-05-28 Thread Dan Carpenter
On Mon, May 28, 2018 at 07:17:54AM -0300, Mauro Carvalho Chehab wrote: > This (obviously wrong patch) shut up the warning: > > --- a/drivers/media/platform/vsp1/vsp1_drm.c > +++ b/drivers/media/platform/vsp1/vsp1_drm.c > @@ -248,6 +248,9 @@ static int vsp1_du_pipeline_setup_brx(struct vsp1_device

Re: [GIT PULL FOR v4.18] R-Car VSP1 TLB optimisation

2018-05-28 Thread Mauro Carvalho Chehab
Em Mon, 28 May 2018 11:28:41 +0300 Laurent Pinchart escreveu: > Hi Mauro, > > On Saturday, 26 May 2018 14:28:18 EEST Mauro Carvalho Chehab wrote: > > Em Sat, 26 May 2018 03:24:00 +0300 Laurent Pinchart escreveu: > > [snip] > > > > I've reproduced the issue and created a minimal test case. >

Re: [GIT PULL FOR v4.18] R-Car VSP1 TLB optimisation

2018-05-28 Thread Laurent Pinchart
Hi Mauro and Dan, Dan, there's a question for you below. On Monday, 28 May 2018 11:28:41 EEST Laurent Pinchart wrote: > On Saturday, 26 May 2018 14:28:18 EEST Mauro Carvalho Chehab wrote: > > Em Sat, 26 May 2018 03:24:00 +0300 Laurent Pinchart escreveu: > [snip] > > > > I've reproduced the issue

Re: [GIT PULL FOR v4.18] R-Car VSP1 TLB optimisation

2018-05-28 Thread Laurent Pinchart
Hi Mauro, On Saturday, 26 May 2018 14:28:18 EEST Mauro Carvalho Chehab wrote: > Em Sat, 26 May 2018 03:24:00 +0300 Laurent Pinchart escreveu: [snip] > > I've reproduced the issue and created a minimal test case. > > > > 1. struct vsp1_pipeline; > > 2. > > 3. struct vsp1_entity { > > 4.

Re: [GIT PULL FOR v4.18] R-Car VSP1 TLB optimisation

2018-05-26 Thread Mauro Carvalho Chehab
Em Sat, 26 May 2018 03:24:00 +0300 Laurent Pinchart escreveu: > Hi Mauro, > > On Saturday, 26 May 2018 02:39:16 EEST Laurent Pinchart wrote: > > On Saturday, 26 May 2018 02:10:27 EEST Mauro Carvalho Chehab wrote: > > > Em Sun, 20 May 2018 15:10:50 +0300 Laurent Pinchart escreveu: > > >> Hi M

Re: [GIT PULL FOR v4.18] R-Car VSP1 TLB optimisation

2018-05-25 Thread Laurent Pinchart
Hi Mauro, On Saturday, 26 May 2018 02:39:16 EEST Laurent Pinchart wrote: > On Saturday, 26 May 2018 02:10:27 EEST Mauro Carvalho Chehab wrote: > > Em Sun, 20 May 2018 15:10:50 +0300 Laurent Pinchart escreveu: > >> Hi Mauro, > >> > >> The following changes since commit > >> > >> 8ed8bba70b4355b1b

Re: [GIT PULL FOR v4.18] R-Car VSP1 TLB optimisation

2018-05-25 Thread Laurent Pinchart
Hi Mauro, (CC'ing Kieran) On Saturday, 26 May 2018 02:10:27 EEST Mauro Carvalho Chehab wrote: > Em Sun, 20 May 2018 15:10:50 +0300 Laurent Pinchart escreveu: > > Hi Mauro, > > > > The following changes since commit > > 8ed8bba70b4355b1ba029b151ade84475dd12991: > > media: imx274: remove non-ind

Re: [GIT PULL FOR v4.18] R-Car VSP1 TLB optimisation

2018-05-25 Thread Mauro Carvalho Chehab
Em Sun, 20 May 2018 15:10:50 +0300 Laurent Pinchart escreveu: > Hi Mauro, > > The following changes since commit 8ed8bba70b4355b1ba029b151ade84475dd12991: > > media: imx274: remove non-indexed pointers from mode_table (2018-05-17 > 06:22:08 -0400) > > are available in the Git repository at:

[GIT PULL FOR v4.18] R-Car VSP1 TLB optimisation

2018-05-20 Thread Laurent Pinchart
Hi Mauro, The following changes since commit 8ed8bba70b4355b1ba029b151ade84475dd12991: media: imx274: remove non-indexed pointers from mode_table (2018-05-17 06:22:08 -0400) are available in the Git repository at: git://linuxtv.org/pinchartl/media.git v4l2/vsp1/next for you to fetch chang