drm/stm: check pitch and size calculations even if !CONFIG_MMU
Subsystems (4)
PATCH v2 1/1 drm/stm: check pitch and size calculations even if !CONFIG_MMU
In all cases we have to check pitch and size calculations to speed up data transfer.
--- drivers/gpu/drm/stm/drv.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/stm/drv.c +0 -2
@@ -35,7 +35,6 @@ static int stm_gem_cma_dumb_create(struct drm_file *file,struct drm_device *dev, struct drm_mode_create_dumb *args) { -#ifdef CONFIG_MMU unsigned int min_pitch = DIV_ROUND_UP(args->width * args->bpp, 8);/*
@@ -44,7 +43,6 @@ static int stm_gem_cma_dumb_create(struct drm_file *file,*/ args->pitch =roundup (min_pitch,128 ); args->height =roundup (args->height,4 ); -#endif return drm_gem_cma_dumb_create_internal (file, dev, args); }
Signature · 6 lines
2.15.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Benjamin,
Great, Many thanks,
Philippe :-)
Quoted 24 lines · Benjamin Gaignard
In all cases we have to check pitch and size calculations to speed up data transfer.
Fixes 21f815bf773c ("drm/stm: drv: Improve data transfers")Signed-off-by Benjamin Gaignard <[email protected]>--- drivers/gpu/drm/stm/drv.c | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/stm/drv.c +0
-1@@ -35,7 +35,6 @@ static int stm_gem_cma_dumb_create(struct drm_file *file,struct drm_device *dev, struct drm_mode_create_dumb *args) { -#ifdef CONFIG_MMU unsigned int min_pitch = DIV_ROUND_UP(args->width * args->bpp, 8);/*
drivers/gpu/drm/stm/drv.c static int stm_gem_cma_dumb_create(struct drm_file *file, · line 48
Quoted 7 lines
drivers/gpu/drm/stm/drv.c +0
-1@@ -44,7 +43,6 @@ static int stm_gem_cma_dumb_create(struct drm_file *file,*/ args->pitch =roundup (min_pitch,128 ); args->height =roundup (args->height,4 ); -#endif return drm_gem_cma_dumb_create_internal (file, dev, args); }
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Benjamin,
Quoted 23 lines · Benjamin Gaignard
In all cases we have to check pitch and size calculations to speed up data transfer.
Fixes 21f815bf773c ("drm/stm: drv: Improve data transfers")Signed-off-by Benjamin Gaignard <[email protected]>--- drivers/gpu/drm/stm/drv.c | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/stm/drv.c +0
-1@@ -35,7 +35,6 @@ static int stm_gem_cma_dumb_create(struct drm_file *file,struct drm_device *dev, struct drm_mode_create_dumb *args) { -#ifdef CONFIG_MMU unsigned int min_pitch = DIV_ROUND_UP(args->width * args->bpp, 8);/*
drivers/gpu/drm/stm/drv.c static int stm_gem_cma_dumb_create(struct drm_file *file, · line 47
Quoted 4 lines
drivers/gpu/drm/stm/drv.c +0
-1@@ -44,7 +43,6 @@ static int stm_gem_cma_dumb_create(struct drm_file *file,*/ args->pitch =roundup (min_pitch,128 ); args->height =roundup (args->height,4 ); -#endif
Many thanks,
Philippe :-)
drivers/gpu/drm/stm/drv.c static int stm_gem_cma_dumb_create(struct drm_file *file,
Quoted 4 lines
drivers/gpu/drm/stm/drv.c +0
-0return drm_gem_cma_dumb_create_internal (file, dev, args); }
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
2018-02-23 9:33 GMT+01:00 Philippe CORNU <[email protected]>:
Quoted 24 lines
Hi Benjamin,
Quoted 21 lines · Benjamin Gaignard
In all cases we have to check pitch and size calculations to speed up data transfer.
Fixes 21f815bf773c ("drm/stm: drv: Improve data transfers")Signed-off-by Benjamin Gaignard <[email protected]>--- drivers/gpu/drm/stm/drv.c | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/stm/drv.c +0
-1@@ -35,7 +35,6 @@ static int stm_gem_cma_dumb_create(struct drm_file *file,struct drm_device *dev, struct drm_mode_create_dumb *args) { -#ifdef CONFIG_MMU unsigned int min_pitch = DIV_ROUND_UP(args->width * args->bpp, 8);
Quoted 8 lines
drivers/gpu/drm/stm/drv.c static int stm_gem_cma_dumb_create(struct drm_file *file, · line 47
Quoted 6 lines
drivers/gpu/drm/stm/drv.c +0
-1/* @@ -44,7 +43,6 @@ static int stm_gem_cma_dumb_create(struct drm_file *file,*/ args->pitch =roundup (min_pitch,128 ); args->height =roundup (args->height,4 ); -#endif Reviewed-by Philippe Cornu <[email protected]>
Applied on drm-misc-next.
Regards,
Benjamin
Quoted 8 lines
Many thanks,
Philippe :-)Quoted 4 lines
drivers/gpu/drm/stm/drv.c +0
-0return drm_gem_cma_dumb_create_internal (file, dev, args); }
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel