[PATCH 3/4] drm/tegra: Add VIC support

2015-05-25 Thread Arto Merilainen
Hi Thierry, Thank you for your thorough analysis - and sorry for a bunch of very silly mistakes. I am skipping most trivial parts and focus on the trickier comments and questions. On 05/22/2015 02:47 PM, Thierry Reding wrote: >> + >> +struct tegra_bo *ucode_bo; >> +bool ucode_valid; >>

[PATCH 3/4] drm/tegra: Add VIC support

2015-05-25 Thread Arto Merilainen
On 05/22/2015 01:25 PM, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Thu, May 21, 2015 at 05:40:31PM +0300, Mikko Perttunen wrote: >> On 05/21/2015 04:20 PM, Arto Merilainen wrote: > [...] >>> +static int vic_is_addr_reg(struct device *dev, u32 class, u32 offset, u32 >>> val) >>>

[PATCH 3/4] drm/tegra: Add VIC support

2015-05-22 Thread Thierry Reding
On Thu, May 21, 2015 at 04:20:24PM +0300, Arto Merilainen wrote: > This patch adds support for Video Image Compositor engine which > can be used for 2d operations. > > The engine has a microcontroller (Falcon) that acts as a frontend > for the rest of the unit. In order to properly utilize the eng

[PATCH 3/4] drm/tegra: Add VIC support

2015-05-22 Thread Arto Merilainen
Hi Thierry, On 05/22/2015 01:02 PM, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Thu, May 21, 2015 at 06:44:08PM +0300, Mikko Perttunen wrote: >> On 05/21/2015 06:10 PM, Arto Merilainen wrote: >>> ... > + > +vic->rst = devm_reset_control_get(dev, "vic03"); I

[PATCH 3/4] drm/tegra: Add VIC support

2015-05-22 Thread Arto Merilainen
Hi Thierry, On 05/22/2015 01:02 PM, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Thu, May 21, 2015 at 06:44:08PM +0300, Mikko Perttunen wrote: >> On 05/21/2015 06:10 PM, Arto Merilainen wrote: >>> ... > + > +vic->rst = devm_reset_control_get(dev, "vic03"); I

[PATCH 3/4] drm/tegra: Add VIC support

2015-05-22 Thread Thierry Reding
On Thu, May 21, 2015 at 05:40:31PM +0300, Mikko Perttunen wrote: > On 05/21/2015 04:20 PM, Arto Merilainen wrote: [...] > > +static int vic_is_addr_reg(struct device *dev, u32 class, u32 offset, u32 > > val) > > +{ > > + struct vic *vic = dev_get_drvdata(dev); > > + > > + /* handle host class

[PATCH 3/4] drm/tegra: Add VIC support

2015-05-22 Thread Thierry Reding
On Thu, May 21, 2015 at 06:44:08PM +0300, Mikko Perttunen wrote: > On 05/21/2015 06:10 PM, Arto Merilainen wrote: > >... > >>>+ > >>>+vic->rst = devm_reset_control_get(dev, "vic03"); > >> > >>I might prefer just "vic" as the clock/reset name. The name is often > >>used as a sort of "role" for t

[PATCH 3/4] drm/tegra: Add VIC support

2015-05-21 Thread Mikko Perttunen
On 05/21/2015 06:10 PM, Arto Merilainen wrote: > ... >>> + >>> +vic->rst = devm_reset_control_get(dev, "vic03"); >> >> I might prefer just "vic" as the clock/reset name. The name is often >> used as a sort of "role" for the clock/reset for the device, not >> necessarily the raw name of the "cor

[PATCH 3/4] drm/tegra: Add VIC support

2015-05-21 Thread Arto Merilainen
Thank you Mikko for your comments! Please see my answers inline. - Arto On 05/21/2015 05:40 PM, Mikko Perttunen wrote: > Hi, very good patch! > > Here are a few small comments. Aside those, you should also add a > section to > Documentation/devicetree/bindings/gpu/nvidia,tegra20-host1x.txt in a

[PATCH 3/4] drm/tegra: Add VIC support

2015-05-21 Thread Mikko Perttunen
Hi, very good patch! Here are a few small comments. Aside those, you should also add a section to Documentation/devicetree/bindings/gpu/nvidia,tegra20-host1x.txt in a separate patch. Thanks, Mikko. On 05/21/2015 04:20 PM, Arto Merilainen wrote: > This patch adds support for Video Image Composito

[PATCH 3/4] drm/tegra: Add VIC support

2015-05-21 Thread Arto Merilainen
This patch adds support for Video Image Compositor engine which can be used for 2d operations. The engine has a microcontroller (Falcon) that acts as a frontend for the rest of the unit. In order to properly utilize the engine, the frontend must be booted before pushing any commands. Signed-off-b