Hi Dave.
Some fixes and some new features. I'd like you can pull them.
The following changes since commit c5fd936e992dd2829167d2adc63e151675ca6898:
drm/nouveau: Pause between setting gpu to D3hot and cutting the power (2015-06-26 10:26:37 +1000)
are available in the git repository at:
https://github.com/markyzq/kernel-drm-rockchip.git drm-rockchip-2015-06-30
for you to fetch changes up to 5295c05eb30d743987172853179333c80b8242bc:
drm/rockchip: default enable win2/3 area0 bit (2015-06-30 14:24:10 +0800)
---------------------------------------------------------------- Heiko Stübner (1): drm/rockchip: only call drm_fb_helper_hotplug_event if fb_helper present
Mark Yao (6): drm/rockchip: import dma_buf to gem drm/rockchip: vop: optimize virtual stride calculate drm/rockchip: vop: fix yuv plane support drm/rockchip: vop: support plane scale drm/rockchip: vop: switch cursor plane to window 3 drm/rockchip: default enable win2/3 area0 bit
Tomasz Figa (1): drm/rockchip: Add BGR formats to VOP
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 1 + drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 3 +- drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 40 ++- drivers/gpu/drm/rockchip/rockchip_drm_gem.h | 5 +- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 500 ++++++++++++++++++++++++++- drivers/gpu/drm/rockchip/rockchip_drm_vop.h | 96 +++++ 6 files changed, 628 insertions(+), 17 deletions(-)
Hi Mark,
On Tue, Jun 30, 2015 at 3:50 PM, Mark yao mark.yao@rock-chips.com wrote:
Hi Dave.
Some fixes and some new features. I'd like you can pull them.
The following changes since commit c5fd936e992dd2829167d2adc63e151675ca6898:
drm/nouveau: Pause between setting gpu to D3hot and cutting the power (2015-06-26 10:26:37 +1000)
are available in the git repository at:
https://github.com/markyzq/kernel-drm-rockchip.git drm-rockchip-2015-06-30
for you to fetch changes up to 5295c05eb30d743987172853179333c80b8242bc:
drm/rockchip: default enable win2/3 area0 bit (2015-06-30 14:24:10 +0800)
Heiko Stübner (1): drm/rockchip: only call drm_fb_helper_hotplug_event if fb_helper present
Mark Yao (6): drm/rockchip: import dma_buf to gem drm/rockchip: vop: optimize virtual stride calculate drm/rockchip: vop: fix yuv plane support drm/rockchip: vop: support plane scale drm/rockchip: vop: switch cursor plane to window 3 drm/rockchip: default enable win2/3 area0 bit
Has this series been reviewed properly? I can see that at least "drm/rockchip: vop: support plane scale" is kind of "controversial".
By the way, if we're using window 3 for cursor plane, because the cursor window needs special handling, is it okay to expose the cusor window as an overlay plane to userspace, as we do currently?
Best regards, Tomasz
On Wed, Jul 01, 2015 at 05:03:39PM +0900, Tomasz Figa wrote:
Hi Mark,
On Tue, Jun 30, 2015 at 3:50 PM, Mark yao mark.yao@rock-chips.com wrote:
Hi Dave.
Some fixes and some new features. I'd like you can pull them.
The following changes since commit c5fd936e992dd2829167d2adc63e151675ca6898:
drm/nouveau: Pause between setting gpu to D3hot and cutting the power (2015-06-26 10:26:37 +1000)
are available in the git repository at:
https://github.com/markyzq/kernel-drm-rockchip.git drm-rockchip-2015-06-30
for you to fetch changes up to 5295c05eb30d743987172853179333c80b8242bc:
drm/rockchip: default enable win2/3 area0 bit (2015-06-30 14:24:10 +0800)
Heiko Stübner (1): drm/rockchip: only call drm_fb_helper_hotplug_event if fb_helper present
Mark Yao (6): drm/rockchip: import dma_buf to gem drm/rockchip: vop: optimize virtual stride calculate drm/rockchip: vop: fix yuv plane support drm/rockchip: vop: support plane scale drm/rockchip: vop: switch cursor plane to window 3 drm/rockchip: default enable win2/3 area0 bit
Has this series been reviewed properly? I can see that at least "drm/rockchip: vop: support plane scale" is kind of "controversial".
I don't see any discussion of this patch at all on dri-devel, where's this controversy? -Daniel
On Wed, Jul 1, 2015 at 5:20 PM, Daniel Vetter daniel@ffwll.ch wrote:
On Wed, Jul 01, 2015 at 05:03:39PM +0900, Tomasz Figa wrote:
Hi Mark,
On Tue, Jun 30, 2015 at 3:50 PM, Mark yao mark.yao@rock-chips.com wrote:
Hi Dave.
Some fixes and some new features. I'd like you can pull them.
The following changes since commit c5fd936e992dd2829167d2adc63e151675ca6898:
drm/nouveau: Pause between setting gpu to D3hot and cutting the power (2015-06-26 10:26:37 +1000)
are available in the git repository at:
https://github.com/markyzq/kernel-drm-rockchip.git drm-rockchip-2015-06-30
for you to fetch changes up to 5295c05eb30d743987172853179333c80b8242bc:
drm/rockchip: default enable win2/3 area0 bit (2015-06-30 14:24:10 +0800)
Heiko Stübner (1): drm/rockchip: only call drm_fb_helper_hotplug_event if fb_helper present
Mark Yao (6): drm/rockchip: import dma_buf to gem drm/rockchip: vop: optimize virtual stride calculate drm/rockchip: vop: fix yuv plane support drm/rockchip: vop: support plane scale drm/rockchip: vop: switch cursor plane to window 3 drm/rockchip: default enable win2/3 area0 bit
Has this series been reviewed properly? I can see that at least "drm/rockchip: vop: support plane scale" is kind of "controversial".
I don't see any discussion of this patch at all on dri-devel, where's this controversy?
Well, it adds a lot of seemingly complex, hard to read code with obvious style issues. I'll review the series later this week.
Best regards, Tomasz
On 2015年07月01日 16:32, Tomasz Figa wrote:
On Wed, Jul 1, 2015 at 5:20 PM, Daniel Vetter daniel@ffwll.ch wrote:
On Wed, Jul 01, 2015 at 05:03:39PM +0900, Tomasz Figa wrote:
Hi Mark,
On Tue, Jun 30, 2015 at 3:50 PM, Mark yao mark.yao@rock-chips.com wrote:
Hi Dave.
Some fixes and some new features. I'd like you can pull them.
The following changes since commit c5fd936e992dd2829167d2adc63e151675ca6898:
drm/nouveau: Pause between setting gpu to D3hot and cutting the power (2015-06-26 10:26:37 +1000)
are available in the git repository at:
https://github.com/markyzq/kernel-drm-rockchip.git drm-rockchip-2015-06-30
for you to fetch changes up to 5295c05eb30d743987172853179333c80b8242bc:
drm/rockchip: default enable win2/3 area0 bit (2015-06-30 14:24:10 +0800)
Heiko Stübner (1): drm/rockchip: only call drm_fb_helper_hotplug_event if fb_helper present
Mark Yao (6): drm/rockchip: import dma_buf to gem drm/rockchip: vop: optimize virtual stride calculate drm/rockchip: vop: fix yuv plane support drm/rockchip: vop: support plane scale drm/rockchip: vop: switch cursor plane to window 3 drm/rockchip: default enable win2/3 area0 bit
Has this series been reviewed properly? I can see that at least "drm/rockchip: vop: support plane scale" is kind of "controversial".
I don't see any discussion of this patch at all on dri-devel, where's this controversy?
Well, it adds a lot of seemingly complex, hard to read code with obvious style issues. I'll review the series later this week.
Best regards, Tomasz
Hi Tomasz
Thanks, those compute code you can found from RK3288 TRM->"27.3.3 Win Scaling", too complex. I had do some clean for the code, but for full function and little bug, hard to cleanup.
Best regards,
On 2015年07月01日 16:03, Tomasz Figa wrote:
Hi Mark,
On Tue, Jun 30, 2015 at 3:50 PM, Mark yao mark.yao@rock-chips.com wrote:
Hi Dave.
Some fixes and some new features. I'd like you can pull them.
The following changes since commit c5fd936e992dd2829167d2adc63e151675ca6898:
drm/nouveau: Pause between setting gpu to D3hot and cutting the power (2015-06-26 10:26:37 +1000)
are available in the git repository at:
https://github.com/markyzq/kernel-drm-rockchip.git drm-rockchip-2015-06-30
for you to fetch changes up to 5295c05eb30d743987172853179333c80b8242bc:
drm/rockchip: default enable win2/3 area0 bit (2015-06-30 14:24:10 +0800)
Heiko Stübner (1): drm/rockchip: only call drm_fb_helper_hotplug_event if fb_helper present
Mark Yao (6): drm/rockchip: import dma_buf to gem drm/rockchip: vop: optimize virtual stride calculate drm/rockchip: vop: fix yuv plane support drm/rockchip: vop: support plane scale drm/rockchip: vop: switch cursor plane to window 3 drm/rockchip: default enable win2/3 area0 bit
Has this series been reviewed properly? I can see that at least "drm/rockchip: vop: support plane scale" is kind of "controversial".
Sorry for that, can you review those patches, and give me some advices?
https://lkml.org/lkml/2015/6/18/77 v2: https://lkml.org/lkml/2015/6/26/192
By the way, if we're using window 3 for cursor plane, because the cursor window needs special handling, is it okay to expose the cusor window as an overlay plane to userspace, as we do currently?
special handling? what means? "switch cursor plane to window 3" patch only switch cursor windows from win1 to win3. tag window 3 as DRM_PLANE_TYPE_CURSOR, userspace only can found window 3 is a cursor plane.
Best regards, Tomasz
Best regards, Mark
On Wed, Jul 1, 2015 at 5:32 PM, Mark yao mark.yao@rock-chips.com wrote:
On 2015年07月01日 16:03, Tomasz Figa wrote:
Hi Mark,
On Tue, Jun 30, 2015 at 3:50 PM, Mark yao mark.yao@rock-chips.com wrote:
Hi Dave.
Some fixes and some new features. I'd like you can pull them.
The following changes since commit c5fd936e992dd2829167d2adc63e151675ca6898:
drm/nouveau: Pause between setting gpu to D3hot and cutting the power (2015-06-26 10:26:37 +1000)
are available in the git repository at:
https://github.com/markyzq/kernel-drm-rockchip.git drm-rockchip-2015-06-30
for you to fetch changes up to 5295c05eb30d743987172853179333c80b8242bc:
drm/rockchip: default enable win2/3 area0 bit (2015-06-30 14:24:10 +0800)
Heiko Stübner (1): drm/rockchip: only call drm_fb_helper_hotplug_event if fb_helper present
Mark Yao (6): drm/rockchip: import dma_buf to gem drm/rockchip: vop: optimize virtual stride calculate drm/rockchip: vop: fix yuv plane support drm/rockchip: vop: support plane scale drm/rockchip: vop: switch cursor plane to window 3 drm/rockchip: default enable win2/3 area0 bit
Has this series been reviewed properly? I can see that at least "drm/rockchip: vop: support plane scale" is kind of "controversial".
Sorry for that, can you review those patches, and give me some advices?
https://lkml.org/lkml/2015/6/18/77 v2: https://lkml.org/lkml/2015/6/26/192
Yes, will do that.
By the way, please feel free to ping patches on the lists if they idle without any comments or tags for while.
By the way, if we're using window 3 for cursor plane, because the cursor window needs special handling, is it okay to expose the cusor window as an overlay plane to userspace, as we do currently?
special handling? what means? "switch cursor plane to window 3" patch only switch cursor windows from win1 to win3. tag window 3 as DRM_PLANE_TYPE_CURSOR, userspace only can found window 3 is a cursor plane.
Ah, this was a question slightly unrelated to that patch, but I just noticed in that patch that the hardware cursor window is still exposed to the userspace as overlay plane, even if it's not quite suitable for being such.
Best regards, Tomasz
On 2015年07月01日 16:42, Tomasz Figa wrote:
On Wed, Jul 1, 2015 at 5:32 PM, Mark yao mark.yao@rock-chips.com wrote:
On 2015年07月01日 16:03, Tomasz Figa wrote:
Hi Mark,
On Tue, Jun 30, 2015 at 3:50 PM, Mark yao mark.yao@rock-chips.com wrote:
Hi Dave.
Some fixes and some new features. I'd like you can pull them.
The following changes since commit c5fd936e992dd2829167d2adc63e151675ca6898:
drm/nouveau: Pause between setting gpu to D3hot and cutting the power
(2015-06-26 10:26:37 +1000)
are available in the git repository at:
https://github.com/markyzq/kernel-drm-rockchip.git
drm-rockchip-2015-06-30
for you to fetch changes up to 5295c05eb30d743987172853179333c80b8242bc:
drm/rockchip: default enable win2/3 area0 bit (2015-06-30 14:24:10
+0800)
Heiko Stübner (1): drm/rockchip: only call drm_fb_helper_hotplug_event if fb_helper present
Mark Yao (6): drm/rockchip: import dma_buf to gem drm/rockchip: vop: optimize virtual stride calculate drm/rockchip: vop: fix yuv plane support drm/rockchip: vop: support plane scale drm/rockchip: vop: switch cursor plane to window 3 drm/rockchip: default enable win2/3 area0 bit
Has this series been reviewed properly? I can see that at least "drm/rockchip: vop: support plane scale" is kind of "controversial".
Sorry for that, can you review those patches, and give me some advices?
https://lkml.org/lkml/2015/6/18/77 v2: https://lkml.org/lkml/2015/6/26/192
Yes, will do that.
By the way, please feel free to ping patches on the lists if they idle without any comments or tags for while.
By the way, if we're using window 3 for cursor plane, because the cursor window needs special handling, is it okay to expose the cusor window as an overlay plane to userspace, as we do currently?
special handling? what means? "switch cursor plane to window 3" patch only switch cursor windows from win1 to win3. tag window 3 as DRM_PLANE_TYPE_CURSOR, userspace only can found window 3 is a cursor plane.
Ah, this was a question slightly unrelated to that patch, but I just noticed in that patch that the hardware cursor window is still exposed to the userspace as overlay plane, even if it's not quite suitable for being such.
Oh, I know your mean, you mean that code: { .base = 0x00, .phy = &cursor_data, .type = DRM_PLANE_TYPE_OVERLAY },
right?
That is I plan to do.
hardware cursor window have a problem that hard to resolved. the window can't support width virtual and can't move out of left top top. But linux desktop or chromiumos should move cursor out of left or top.
I'm considering remove it or find a another way to reuse it.
Best regards, Tomasz
On Wed, Jul 1, 2015 at 6:13 PM, Mark yao mark.yao@rock-chips.com wrote:
By the way, if we're using window 3 for cursor plane, because the cursor window needs special handling, is it okay to expose the cusor window as an overlay plane to userspace, as we do currently?
special handling? what means? "switch cursor plane to window 3" patch only switch cursor windows from win1 to win3. tag window 3 as DRM_PLANE_TYPE_CURSOR, userspace only can found window 3 is a cursor plane.
Ah, this was a question slightly unrelated to that patch, but I just noticed in that patch that the hardware cursor window is still exposed to the userspace as overlay plane, even if it's not quite suitable for being such.
Oh, I know your mean, you mean that code: { .base = 0x00, .phy = &cursor_data, .type = DRM_PLANE_TYPE_OVERLAY },
right?
That is I plan to do.
hardware cursor window have a problem that hard to resolved. the window can't support width virtual and can't move out of left top top. But linux desktop or chromiumos should move cursor out of left or top.
I'm considering remove it or find a another way to reuse it.
I think we should remove it for now, because I believe this breaks applications that enumerate all available planes and use them for hardware compose. Otherwise they will try to use the hardware cursor window and will fail, because hardware cursor window has quite strict requirements.
Best regards, Tomasz
On 2015年07月01日 16:32, Mark yao wrote:
On 2015年07月01日 16:03, Tomasz Figa wrote:
Hi Mark,
On Tue, Jun 30, 2015 at 3:50 PM, Mark yao mark.yao@rock-chips.com wrote:
Hi Dave.
Some fixes and some new features. I'd like you can pull them.
The following changes since commit c5fd936e992dd2829167d2adc63e151675ca6898:
drm/nouveau: Pause between setting gpu to D3hot and cutting the power (2015-06-26 10:26:37 +1000)
are available in the git repository at:
https://github.com/markyzq/kernel-drm-rockchip.git drm-rockchip-2015-06-30
for you to fetch changes up to 5295c05eb30d743987172853179333c80b8242bc:
drm/rockchip: default enable win2/3 area0 bit (2015-06-30 14:24:10 +0800)
Heiko Stübner (1): drm/rockchip: only call drm_fb_helper_hotplug_event if fb_helper present
Mark Yao (6): drm/rockchip: import dma_buf to gem drm/rockchip: vop: optimize virtual stride calculate drm/rockchip: vop: fix yuv plane support drm/rockchip: vop: support plane scale drm/rockchip: vop: switch cursor plane to window 3 drm/rockchip: default enable win2/3 area0 bit
Has this series been reviewed properly? I can see that at least "drm/rockchip: vop: support plane scale" is kind of "controversial".
Sorry for that, can you review those patches, and give me some advices?
https://lkml.org/lkml/2015/6/18/77 v2: https://lkml.org/lkml/2015/6/26/192
By the way, if we're using window 3 for cursor plane, because the cursor window needs special handling, is it okay to expose the cusor window as an overlay plane to userspace, as we do currently?
special handling? what means? "switch cursor plane to window 3" patch only switch cursor windows from win1 to win3. tag window 3 as DRM_PLANE_TYPE_CURSOR, userspace only can found window 3 is a cursor plane.
switch cursor win1 to win3 because we want to use win1 as a overlay for yuv image, win3 not support yuv format. not for special handling.
By the way, win3 power power consume less than win1, cursor use win3 would save power.
Best regards, Tomasz
Best regards, Mark
dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel
dri-devel@lists.freedesktop.org