Skip to content

Commit

Permalink
drm: support fbcon
Browse files Browse the repository at this point in the history
Signed-off-by: Yusuf Khan <[email protected]>
  • Loading branch information
YusufKhan-gamedev committed Aug 2, 2022
1 parent 88636e7 commit 0a3feeb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kernel-open/nvidia-drm/nvidia-drm-drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
#include <drm/drm_ioctl.h>
#endif

#include <drm/drm_fb_helper.h>

#include <linux/pci.h>

/*
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 0a3feeb

Please sign in to comment.