From 0a3feeb05f4604e19ffdf6870d1a9faeffe3d787 Mon Sep 17 00:00:00 2001 From: Yusuf Khan Date: Tue, 2 Aug 2022 10:36:57 -0500 Subject: [PATCH] drm: support fbcon Signed-off-by: Yusuf Khan --- kernel-open/nvidia-drm/nvidia-drm-drv.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel-open/nvidia-drm/nvidia-drm-drv.c b/kernel-open/nvidia-drm/nvidia-drm-drv.c index cf2080db36..a17d06674e 100644 --- a/kernel-open/nvidia-drm/nvidia-drm-drv.c +++ b/kernel-open/nvidia-drm/nvidia-drm-drv.c @@ -60,6 +60,8 @@ #include #endif +#include + #include /* @@ -229,6 +231,8 @@ nv_drm_init_mode_config(struct nv_drm_device *nv_dev, dev->mode_config.max_width = pResInfo->caps.maxWidthInPixels; dev->mode_config.max_height = pResInfo->caps.maxHeightInPixels; + dev->mode_config.preferred_depth = 32; /* XXX: actually detect this */ + dev->mode_config.cursor_width = pResInfo->caps.maxCursorSizeInPixels; dev->mode_config.cursor_height = pResInfo->caps.maxCursorSizeInPixels; @@ -947,6 +951,8 @@ static void nv_drm_register_drm_device(const nv_gpu_info_t *gpu_info) nv_dev->next = dev_list; dev_list = nv_dev; + drm_fbdev_generic_setup(dev, 0); + return; /* Success */ failed_drm_register: