[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <trinity-1adab8be-573a-4816-9e9f-feddf07bdcd3-1547734452313@3c-app-gmx-bs28>
Date: Thu, 17 Jan 2019 15:14:12 +0100
From: "Frank Wunderlich" <frank-w@...lic-files.de>
To: "CK Hu" <ck.hu@...iatek.com>
Cc: "Philipp Zabel" <p.zabel@...gutronix.de>,
"David Airlie" <airlied@...ux.ie>,
"Daniel Vetter" <daniel@...ll.ch>,
"Matthias Brugger" <matthias.bgg@...il.com>,
"Noralf Tr�nnes" <noralf@...nnes.org>,
dri-devel@...ts.freedesktop.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org,
srv_heupstream@...iatek.com, "CK Hu" <ck.hu@...iatek.com>
Subject: Aw: [PATCH 2/2] drm/mediatek: Add Mediatek framebuffer device
Hi,
this Patchset does not hang on Bananapi R2, but does not show anything on FB-Console...seems anything is missing
https://github.com/frank-w/BPI-R2-4.14/tree/4.20-fbdev
dmesg | grep 'fb\|framebuffer'
[ 0.000000] Linux version 4.20.0-rc7-bpi-r2-fbdev (frank@...nk-N56VZ) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-27ubuntu1~18.04)) 9
[ 0.000000] cma: Reserved 64 MiB at 0xfb800000
[ 0.000000] Kernel command line: board=bpi-r2 console=earlyprintk console=tty1 fbcon=map:0 console=ttyS0,115200 root=/dev/mmcblk7
[ 5.733185] [drm:drm_fb_helper_generic_probe] surface width(1280), height(1024) and bpp(32)
[ 5.754452] [drm:drm_mode_addfb2] [FB:44]
[ 5.792878] mediatek-drm 14000000.dispsys: fb0: DRM emulated frame buffer device
[ 5.814067] [drm:drm_fb_helper_hotplug_event.part.11]
[ 6.203083] mediatek-drm 14000000.dispsys: [drm:drm_client_dev_hotplug] fbdev: ret=0
[ 24.930347] mediatek-drm 14000000.dispsys: [drm:drm_client_dev_restore] fbdev: ret=0
[ 25.196872] mediatek-drm 14000000.dispsys: [drm:drm_client_dev_restore] fbdev: ret=0
[ 25.281184] [drm:drm_mode_addfb2] [FB:49]
[ 27.947962] [drm:drm_mode_addfb2] [FB:49]
regards Frank
> Gesendet: Mittwoch, 16. Januar 2019 um 02:39 Uhr
> Von: "CK Hu" <ck.hu@...iatek.com>
> An: "Philipp Zabel" <p.zabel@...gutronix.de>, "David Airlie" <airlied@...ux.ie>, "Daniel Vetter" <daniel@...ll.ch>, "Matthias Brugger" <matthias.bgg@...il.com>, "Noralf Tr�nnes" <noralf@...nnes.org>, "Frank Wunderlich" <frank-w@...lic-files.de>
> Cc: dri-devel@...ts.freedesktop.org, linux-arm-kernel@...ts.infradead.org, linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org, srv_heupstream@...iatek.com, "CK Hu" <ck.hu@...iatek.com>
> Betreff: [PATCH 2/2] drm/mediatek: Add Mediatek framebuffer device
>
> For Mediatek drm driver, use fbdev emulation to create a framebuffer
> device.
>
> Signed-off-by: CK Hu <ck.hu@...iatek.com>
> ---
> drivers/gpu/drm/mediatek/mtk_drm_drv.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
> index 6ec4ca070382..5fcc0e294696 100644
> --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c
> +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
> @@ -16,6 +16,7 @@
> #include <drm/drm_atomic.h>
> #include <drm/drm_atomic_helper.h>
> #include <drm/drm_crtc_helper.h>
> +#include <drm/drm_fb_helper.h>
> #include <drm/drm_gem.h>
> #include <drm/drm_gem_cma_helper.h>
> #include <drm/drm_of.h>
> @@ -378,6 +379,10 @@ static int mtk_drm_bind(struct device *dev)
> if (ret < 0)
> goto err_deinit;
>
> + ret = drm_fbdev_generic_setup(drm, 32);
> + if (ret)
> + DRM_ERROR("Failed to initialize fbdev: %d\n", ret);
> +
> return 0;
>
> err_deinit:
> --
> 2.18.1
>
>
Powered by blists - more mailing lists