<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/drivers/gpu/drm/rockchip, branch v4.4.162</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.4.162</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.4.162'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2018-05-30T05:49:16Z</updated>
<entry>
<title>drm/rockchip: Respect page offset for PRIME mmap calls</title>
<updated>2018-05-30T05:49:16Z</updated>
<author>
<name>Ørjan Eide</name>
<email>orjan.eide@arm.com</email>
</author>
<published>2018-01-30T20:28:33Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=f409bdeae30fe52d9fc9859fdf06721b1b06d2e0'/>
<id>urn:sha1:f409bdeae30fe52d9fc9859fdf06721b1b06d2e0</id>
<content type='text'>
[ Upstream commit 57de50af162b67612da99207b061ade3239e57db ]

When mapping external DMA-bufs through the PRIME mmap call, we might be
given an offset which has to be respected. However for the internal DRM
GEM mmap path, we have to ignore the fake mmap offset used to identify
the buffer only. Currently the code always zeroes out vma-&gt;vm_pgoff,
which breaks the former.

This patch fixes the problem by moving the vm_pgoff assignment to a
function that is used only for GEM mmap path, so that the PRIME path
retains the original offset.

Cc: Daniel Kurtz &lt;djkurtz@chromium.org&gt;
Signed-off-by: Ørjan Eide &lt;orjan.eide@arm.com&gt;
Signed-off-by: Tomasz Figa &lt;tfiga@chromium.org&gt;
Signed-off-by: Sean Paul &lt;seanpaul@chromium.org&gt;
Signed-off-by: Thierry Escande &lt;thierry.escande@collabora.com&gt;
Tested-by: Heiko Stuebner &lt;heiko@sntech.de&gt;
Signed-off-by: Heiko Stuebner &lt;heiko@sntech.de&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20180130202913.28724-4-thierry.escande@collabora.com
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drm/rockchip: Use CRTC vblank event interface</title>
<updated>2015-12-02T02:22:21Z</updated>
<author>
<name>Daniel Stone</name>
<email>daniels@collabora.com</email>
</author>
<published>2015-11-16T12:50:21Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=c9fbb7f7b5c56752373e4f425d5157815426e233'/>
<id>urn:sha1:c9fbb7f7b5c56752373e4f425d5157815426e233</id>
<content type='text'>
Passing -1 as the pipe for vblank events now triggers a WARN_ON, but had
previously made multi-screen unusable anyway. Pass the correct pipe to
the event-send function, and use the new API to make this a bit easier
for us.

Fixes WARN present since cc1ef118fc for every pageflip event sent:
[  209.549969] ------------[ cut here ]------------
[  209.554592] WARNING: CPU: 3 PID: 238 at drivers/gpu/drm/drm_irq.c:924 drm_vblank_count_and_time+0x80/0x88 [drm]()
[  209.564832] Modules linked in: [...]
[  209.612401] CPU: 3 PID: 238 Comm: irq/41-ff940000 Tainted: G        W       4.3.0-rc6+ #71
[  209.620647] Hardware name: Rockchip (Device Tree)
[  209.625348] [&lt;c001bb80&gt;] (unwind_backtrace) from [&lt;c001615c&gt;] (show_stack+0x20/0x24)
[  209.633079] [&lt;c001615c&gt;] (show_stack) from [&lt;c02b2c50&gt;] (dump_stack+0x8c/0x9c)
[  209.640289] [&lt;c02b2c50&gt;] (dump_stack) from [&lt;c0052e88&gt;] (warn_slowpath_common+0x94/0xc4)
[  209.648364] [&lt;c0052e88&gt;] (warn_slowpath_common) from [&lt;c0052f74&gt;] (warn_slowpath_null+0x2c/0x34)
[  209.657139] [&lt;c0052f74&gt;] (warn_slowpath_null) from [&lt;bf17dc30&gt;] (drm_vblank_count_and_time+0x80/0x88 [drm])
[  209.666875] [&lt;bf17dc30&gt;] (drm_vblank_count_and_time [drm]) from [&lt;bf17e484&gt;] (drm_send_vblank_event+0x74/0x7c [drm])
[  209.677385] [&lt;bf17e484&gt;] (drm_send_vblank_event [drm]) from [&lt;bf4c1144&gt;] (vop_win_state_complete+0x4c/0x70 [rockchip_drm_vop])
[  209.688757] [&lt;bf4c1144&gt;] (vop_win_state_complete [rockchip_drm_vop]) from [&lt;bf4c3bdc&gt;] (vop_isr_thread+0x170/0x1d4 [rockchip_drm_vop])
[  209.700822] [&lt;bf4c3bdc&gt;] (vop_isr_thread [rockchip_drm_vop]) from [&lt;c00ab93c&gt;] (irq_thread_fn+0x2c/0x50)
[  209.710284] [&lt;c00ab93c&gt;] (irq_thread_fn) from [&lt;c00abcac&gt;] (irq_thread+0x13c/0x188)
[  209.717927] [&lt;c00abcac&gt;] (irq_thread) from [&lt;c00723c8&gt;] (kthread+0xec/0x104)
[  209.724965] [&lt;c00723c8&gt;] (kthread) from [&lt;c0011638&gt;] (ret_from_fork+0x14/0x3c)
[  209.732171] ---[ end trace 0690bc604f5d535d ]---

Signed-off-by: Daniel Stone &lt;daniels@collabora.com&gt;
Cc: Sjoerd Simons &lt;sjoerd.simons@collabora.co.uk&gt;
Cc: Thierry Reding &lt;treding@nvidia.com&gt;
Cc: Heiko Stuebner &lt;heiko@sntech.de&gt;
Tested-By: Sjoerd Simons &lt;sjoerd.simons@collabora.co.uk&gt;
Tested-by: Heiko Stuebner &lt;heiko@sntech.de&gt;
Reviewed-by: Thierry Reding &lt;treding@nvidia.com&gt;
</content>
</entry>
<entry>
<title>drm/rockchip: Fix module autoload for OF platform driver</title>
<updated>2015-12-02T01:13:19Z</updated>
<author>
<name>Luis de Bethencourt</name>
<email>luisbg@osg.samsung.com</email>
</author>
<published>2015-11-30T14:56:56Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=3b134ced9c1fb15fa91034fc7787d651155b64f9'/>
<id>urn:sha1:3b134ced9c1fb15fa91034fc7787d651155b64f9</id>
<content type='text'>
This platform driver has a OF device ID table but the OF module
alias information is not created so module autoloading won't work.

Signed-off-by: Luis de Bethencourt &lt;luisbg@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>drm/rockchip: vop: fix window origin calculation</title>
<updated>2015-12-02T01:13:18Z</updated>
<author>
<name>Dominik Behr</name>
<email>dbehr@chromium.org</email>
</author>
<published>2015-11-10T09:59:10Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=72906ce0301fc8a2cbfa52632191b0ba719699b5'/>
<id>urn:sha1:72906ce0301fc8a2cbfa52632191b0ba719699b5</id>
<content type='text'>
VOP_WINx_DSP_ST does not require subtracting 1 from the values written to
it. It actually causes the screen to be shifted by one pixel.

Signed-off-by: Mark Yao &lt;mark.yao@rock-chips.com&gt;
Tested-by: Yakir Yang &lt;ykk@rock-chips.com&gt;
Reviewed-by: Heiko Stuebner &lt;heiko@sntech.de&gt;
Tested-by: Heiko Stuebner &lt;heiko@sntech.de&gt;
Signed-off-by: Dominik Behr &lt;dbehr@chromium.org&gt;
Signed-off-by: Mark Yao &lt;mark.yao@rock-chips.com&gt;
</content>
</entry>
<entry>
<title>drm/rockchip: unset pgoff when mmap'ing gems</title>
<updated>2015-12-02T01:13:17Z</updated>
<author>
<name>Heiko Stuebner</name>
<email>heiko@sntech.de</email>
</author>
<published>2015-11-09T19:52:43Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=a8594f20cafadb6ba58f915dea5f2c94a9333b1a'/>
<id>urn:sha1:a8594f20cafadb6ba58f915dea5f2c94a9333b1a</id>
<content type='text'>
Commit 371f0f085f629 ("ARM: 8426/1: dma-mapping: add missing range check
 in dma_mmap()") introduced offset-checking for mappings, which collides
with the fake-offset the drm sets for gems.

Other drm-drivers set this offset to 0 before doing the mapping, so
this looks like the correct way to go for rockchip as well.

Fixes: 371f0f085f629 ("ARM: 8426/1: dma-mapping: add missing range check in dma_mmap()")
Signed-off-by: Heiko Stuebner &lt;heiko@sntech.de&gt;
</content>
</entry>
<entry>
<title>drm/rockchip: vop: Correct enabled clocks during setup</title>
<updated>2015-12-01T10:52:05Z</updated>
<author>
<name>Sjoerd Simons</name>
<email>sjoerd.simons@collabora.co.uk</email>
</author>
<published>2015-11-06T12:22:24Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=d7b53fd9e37a4127077720f4fef10330e284107c'/>
<id>urn:sha1:d7b53fd9e37a4127077720f4fef10330e284107c</id>
<content type='text'>
When doing the initial setup both the hclk and the aclk need to be
enabled otherwise the board will simply hang. This only occurs when
building the vop driver as a module, when its built-in the initial setup
happens to run before the clock framework shuts of unused clocks
(including the aclk).

While there also switch to doing prepare and enable in one step rather
then separate steps to reduce the amount of code required.

Signed-off-by: Sjoerd Simons &lt;sjoerd.simons@collabora.co.uk&gt;
Acked-by: Mark Yao &lt;mark.yao@rock-chips.com&gt;
Tested-by: Yakir Yang &lt;ykk@rock-chips.com&gt;
Tested-by: Romain Perier &lt;romain.perier@gmail.com&gt;
</content>
</entry>
<entry>
<title>Revert "drm/rockchip: Convert the probe function to the generic drm_of_component_probe()"</title>
<updated>2015-11-12T23:59:46Z</updated>
<author>
<name>Mark Yao</name>
<email>mark.yao@rock-chips.com</email>
</author>
<published>2015-11-10T08:47:19Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=5bad7d29a7bcffb2dbc28ea2728eeb3af13784f2'/>
<id>urn:sha1:5bad7d29a7bcffb2dbc28ea2728eeb3af13784f2</id>
<content type='text'>
This reverts commit 52f5eb60940de889ce98a876f6933b574ead3225.

Rockchip drm can't work with generic drm_of_component_probe now

Signed-off-by: Mark Yao &lt;mark.yao@rock-chips.com&gt;
Acked-by: Liviu Dudau &lt;Liviu.Dudau@arm.com&gt;
Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
</content>
</entry>
<entry>
<title>drm/rockchip: Convert the probe function to the generic drm_of_component_probe()</title>
<updated>2015-10-20T10:01:30Z</updated>
<author>
<name>Liviu Dudau</name>
<email>Liviu.Dudau@arm.com</email>
</author>
<published>2015-10-20T09:23:14Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=52f5eb60940de889ce98a876f6933b574ead3225'/>
<id>urn:sha1:52f5eb60940de889ce98a876f6933b574ead3225</id>
<content type='text'>
Use the generic drm_of_component_probe() function to probe for components.

Signed-off-by: Liviu Dudau &lt;Liviu.Dudau@arm.com&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1445332995-11212-4-git-send-email-Liviu.Dudau@arm.com
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
</content>
</entry>
<entry>
<title>drm/gem: Drop struct_mutex requirement from drm_gem_mmap_obj</title>
<updated>2015-10-16T13:51:00Z</updated>
<author>
<name>Daniel Vetter</name>
<email>daniel.vetter@ffwll.ch</email>
</author>
<published>2015-10-15T07:36:24Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=4e270f088011c6954034d6c4b5453e5cd7e02c7a'/>
<id>urn:sha1:4e270f088011c6954034d6c4b5453e5cd7e02c7a</id>
<content type='text'>
Since

commit 131e663bd6f1055caaff128f9aa5071d227eeb72
Author: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Date:   Thu Jul 9 23:32:33 2015 +0200

    drm/gem: rip out drm vma accounting for gem mmaps

there is no need for this any more.

v2: Fixup compile noise spotted by 0-day build.

Link: http://mid.gmane.org/1444894601-5200-9-git-send-email-daniel.vetter@ffwll.ch
Reviewed-by: David Herrmann &lt;dh.herrmann@gmail.com&gt;
Signed-off-by: Daniel Vetter &lt;daniel.vetter@intel.com&gt;
</content>
</entry>
<entry>
<title>drm: Stop using drm_vblank_count() as the hw frame counter</title>
<updated>2015-10-07T14:13:52Z</updated>
<author>
<name>Ville Syrjälä</name>
<email>ville.syrjala@linux.intel.com</email>
</author>
<published>2015-09-30T13:46:48Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=b44f84081b8db1b5830cbd30280ba1109cc1a084'/>
<id>urn:sha1:b44f84081b8db1b5830cbd30280ba1109cc1a084</id>
<content type='text'>
drm_vblank_count() returns the software counter. We should not pretend
it's the hw counter since we use the hw counter to figuere out what the
software counter value should be. So instead provide a new function
drm_vblank_no_hw_counter() for drivers that don't have a real hw
counter. The new function simply returns 0, which is about the only
thing it can do.

Cc: Vincent Abriou &lt;vincent.abriou@st.com&gt;
Cc: Thierry Reding &lt;treding@nvidia.com&gt;
Signed-off-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Reviewed-by: Vincent Abriou &lt;vincent.abriou@st.com&gt;
[danvet: s/int pipe/unsigned int pipe/ to follow Thierry's interface
change.]
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
</content>
</entry>
</feed>
