[PATCH v2 06/11] drm/exynos: Set fbdev FBINFO_VIRTFB flag

대인기/Tizen Platform Lab(SR)/삼성전자 inki.dae at samsung.com
Fri Jul 7 02:01:27 UTC 2023


Hi,

> -----Original Message-----
> From: Thomas Zimmermann <tzimmermann at suse.de>
> Sent: Thursday, July 6, 2023 9:47 PM
> To: javierm at redhat.com; maarten.lankhorst at linux.intel.com;
> mripard at kernel.org
> Cc: dri-devel at lists.freedesktop.org; linux-arm-kernel at lists.infradead.org;
> linux-samsung-soc at vger.kernel.org; linux-tegra at vger.kernel.org; linux-
> fbdev at vger.kernel.org; Thomas Zimmermann <tzimmermann at suse.de>; Inki Dae
> <inki.dae at samsung.com>; Seung-Woo Kim <sw0312.kim at samsung.com>; Kyungmin
> Park <kyungmin.park at samsung.com>; Krzysztof Kozlowski
> <krzysztof.kozlowski at linaro.org>; Alim Akhtar <alim.akhtar at samsung.com>
> Subject: [PATCH v2 06/11] drm/exynos: Set fbdev FBINFO_VIRTFB flag
> 
> Mark the framebuffer with FBINFO_VIRTFB. The framebuffer range is
> in DMA-able memory and should be accessed with the CPU's regular
> memory ops.
> 
> v2:
> 	* drop FBINFO_FLAG_DEFAULT
> 
> Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de>
> Reviewed-by: Javier Martinez Canillas <javierm at redhat.com>
> Acked-by: Maxime Ripard <mripard at kernel.org>

Acked-by : Inki Dae <inki.dae at samsung.com>

Thanks,
Inki Dae

> Cc: Inki Dae <inki.dae at samsung.com>
> Cc: Seung-Woo Kim <sw0312.kim at samsung.com>
> Cc: Kyungmin Park <kyungmin.park at samsung.com>
> Cc: Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>
> Cc: Alim Akhtar <alim.akhtar at samsung.com>
> ---
>  drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
> b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
> index 7ca3424b59ce..828318de8529 100644
> --- a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
> +++ b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
> @@ -79,6 +79,7 @@ static int exynos_drm_fbdev_update(struct drm_fb_helper
> *helper,
>  	offset = fbi->var.xoffset * fb->format->cpp[0];
>  	offset += fbi->var.yoffset * fb->pitches[0];
> 
> +	fbi->flags |= FBINFO_VIRTFB;
>  	fbi->screen_buffer = exynos_gem->kvaddr + offset;
>  	fbi->screen_size = size;
>  	fbi->fix.smem_len = size;
> --
> 2.41.0




More information about the dri-devel mailing list