Re: [Freedreno] drm/msm: 'pp done time out' errors after async commit changes

2019-11-07 Thread Rob Clark
On Thu, Nov 7, 2019 at 9:40 AM Jeffrey Hugo wrote: > > On Thu, Nov 7, 2019 at 9:17 AM Rob Clark wrote: > > > > On Thu, Nov 7, 2019 at 3:10 AM Brian Masney wrote: > > > > > > On Wed, Nov 06, 2019 at 08:58:59AM -0800, Rob Clark wrote: > > > > On Wed, Nov 6, 2019 at 8:47 AM Jeffrey Hugo > > > > w

Re: [Freedreno] [PATCH 03/13] drm/exynos: Provide ddc symlink in connector's sysfs

2019-11-07 Thread Inki Dae
19. 8. 1. 오전 1:58에 Andrzej Pietrasiewicz 이(가) 쓴 글: > Switch to using the ddc provided by the generic connector. > > Signed-off-by: Andrzej Pietrasiewicz > Acked-by: Sam Ravnborg > Reviewed-by: Emil Velikov Acked-by: Inki Dae Thanks, Inki Dae > --- > drivers/gpu/drm/exynos/exynos_hdmi.c |

[Freedreno] [PATCH 1/3] drm: add driver hook for create blob limitations

2019-11-07 Thread Steve Cohen
Allow drivers with blob limitations to run checks before blobs are created. This can be used to limit how much memory can be allocated based on driver requirements. Signed-off-by: Steve Cohen --- drivers/gpu/drm/drm_property.c | 7 +++ include/drm/drm_drv.h | 9 + 2 files ch

[Freedreno] [PATCH 3/3] drm/msm/dpu: check blob limitations during create blob ioctl

2019-11-07 Thread Steve Cohen
Limit the blob size and number of blobs that can be allocated by a client. This prevents fuzzers from abusing this ioctl and exhausting the system memory. Signed-off-by: Steve Cohen --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/dr

[Freedreno] [PATCH 2/3] drm/msm: add support for createblob_check driver hook

2019-11-07 Thread Steve Cohen
Allow msm_kms devices to register a hook to check blob count and blob size limitations before a new blob is created. Signed-off-by: Steve Cohen --- drivers/gpu/drm/msm/msm_drv.c | 25 + drivers/gpu/drm/msm/msm_kms.h | 1 + 2 files changed, 26 insertions(+) diff --git a/

[Freedreno] [PATCH 0/3] allow DRM drivers to limit creation of blobs

2019-11-07 Thread Steve Cohen
Fuzzers used in Android compliance testing repeatedly call the create blob IOCTL which eventually exhausts the system memory. This series adds a hook which allows drivers to impose their own limitations on the size and/or number of blobs created. Steve Cohen (3): drm: add driver hook for create

Re: [Freedreno] [PATCH] drm/msm/dpu: Add UBWC support for RGB8888 formats

2019-11-07 Thread Daniel Vetter
On Thu, Nov 07, 2019 at 09:30:50AM -0800, Eric Anholt wrote: > Rob Clark writes: > > On Wed, Nov 6, 2019 at 3:26 PM Fritz Koenig wrote: > >> > >> Hardware only natively supports BGR UBWC. > >> UBWC support for RGB can be had by pretending > >> that the buffer is BGR. > > > > Just to expan

Re: [Freedreno] drm/msm: 'pp done time out' errors after async commit changes

2019-11-07 Thread Jeffrey Hugo
On Thu, Nov 7, 2019 at 9:17 AM Rob Clark wrote: > > On Thu, Nov 7, 2019 at 3:10 AM Brian Masney wrote: > > > > On Wed, Nov 06, 2019 at 08:58:59AM -0800, Rob Clark wrote: > > > On Wed, Nov 6, 2019 at 8:47 AM Jeffrey Hugo > > > wrote: > > > > > > > > On Wed, Nov 6, 2019 at 9:30 AM Rob Clark wrot

Re: [Freedreno] [PATCH] drm/msm/dpu: Add UBWC support for RGB8888 formats

2019-11-07 Thread Eric Anholt
Rob Clark writes: > On Wed, Nov 6, 2019 at 3:26 PM Fritz Koenig wrote: >> >> Hardware only natively supports BGR UBWC. >> UBWC support for RGB can be had by pretending >> that the buffer is BGR. > > Just to expand, this aligns with how we handle RGB component order in > mesa for tiled or

Re: [Freedreno] [PATCH] drm/msm/dpu: Add UBWC support for RGB8888 formats

2019-11-07 Thread Rob Clark
On Wed, Nov 6, 2019 at 3:26 PM Fritz Koenig wrote: > > Hardware only natively supports BGR UBWC. > UBWC support for RGB can be had by pretending > that the buffer is BGR. Just to expand, this aligns with how we handle RGB component order in mesa for tiled or tiled+ubwc. If uncompressed t

Re: [Freedreno] drm/msm: 'pp done time out' errors after async commit changes

2019-11-07 Thread Rob Clark
On Thu, Nov 7, 2019 at 3:10 AM Brian Masney wrote: > > On Wed, Nov 06, 2019 at 08:58:59AM -0800, Rob Clark wrote: > > On Wed, Nov 6, 2019 at 8:47 AM Jeffrey Hugo > > wrote: > > > > > > On Wed, Nov 6, 2019 at 9:30 AM Rob Clark wrote: > > > > > > > > On Wed, Nov 6, 2019 at 1:13 AM Brian Masney

Re: [Freedreno] drm/msm: 'pp done time out' errors after async commit changes

2019-11-07 Thread Brian Masney
On Wed, Nov 06, 2019 at 08:58:59AM -0800, Rob Clark wrote: > On Wed, Nov 6, 2019 at 8:47 AM Jeffrey Hugo wrote: > > > > On Wed, Nov 6, 2019 at 9:30 AM Rob Clark wrote: > > > > > > On Wed, Nov 6, 2019 at 1:13 AM Brian Masney wrote: > > > > > > > > On Tue, Nov 05, 2019 at 08:23:27AM -0800, Rob Cla