VirtualBox

Changeset 93416 in vbox


Ignore:
Timestamp:
Jan 24, 2022 4:26:56 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
149518
Message:

Linux Additions: vboxvideo: initial support for kernel 5.17-rc1, bugref:10190.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/vbox_drv.c

    r93115 r93416  
    5151#include "revision-generated.h"
    5252
     53/** Detect whether kernel mode setting is OFF. */
     54#if defined(CONFIG_VGA_CONSOLE)
     55# if RTLNX_VER_MIN(5,17,0)
     56#  define VBOX_VIDEO_NOMODESET() drm_firmware_drivers_only() && vbox_modeset == -1
     57# elif RTLNX_VER_MIN(4,7,0)
     58#  define VBOX_VIDEO_NOMODESET() vgacon_text_force() && vbox_modeset == -1
     59# else /* < 4.7.0 */
     60# define VBOX_VIDEO_NOMODESET() 0
     61# endif /* < 4.7.0 */
     62#else /* !CONFIG_VGA_CONSOLE */
     63# define VBOX_VIDEO_NOMODESET() 0
     64#endif /* !CONFIG_VGA_CONSOLE */
     65
    5366static int vbox_modeset = -1;
    5467
     
    399412{
    400413        printk("vboxvideo: loading version " VBOX_VERSION_STRING " r" __stringify(VBOX_SVN_REV) "\n");
    401 #if defined(CONFIG_VGA_CONSOLE) || RTLNX_VER_MIN(4,7,0)
    402         if (vgacon_text_force() && vbox_modeset == -1)
     414        if (VBOX_VIDEO_NOMODESET())
    403415        {
    404416                printk("vboxvideo: kernel is running with *nomodeset* parameter,\n");
     
    407419                return -EINVAL;
    408420        }
    409 #endif
    410421
    411422        if (vbox_modeset == 0)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette