[mxd@5 linux-4.19-loongson]$ grep nomodeset -rnIw drivers/video/ drivers/video/console/vgacon.c:116: pr_warning("You have booted with nomodeset. This means your GPU drivers are DISABLED\n"); drivers/video/console/vgacon.c:118: pr_warning("Unless you actually understand what nomodeset does, you should reboot without enabling it\n"); drivers/video/console/vgacon.c:124:__setup("nomodeset", text_mode); drivers/video/fbdev/aty/radeon_base.c:263:static bool nomodeset = 0; drivers/video/fbdev/aty/radeon_base.c:1472: if (nomodeset) drivers/video/fbdev/aty/radeon_base.c:2624: } elseif (!strncmp(this_opt, "nomodeset", 9)) { drivers/video/fbdev/aty/radeon_base.c:2625: nomodeset = 1; drivers/video/fbdev/aty/radeon_base.c:2671:module_param(nomodeset, bool, 0); drivers/video/fbdev/aty/radeon_base.c:2672:MODULE_PARM_DESC(nomodeset, "bool: disable actual setting of video mode");
pr_warning("You have booted with nomodeset. This means your GPU drivers are DISABLED\n"); pr_warning("Any video related functionality will be severely degraded, and you may not even be able to suspend the system properly\n"); pr_warning("Unless you actually understand what nomodeset does, you should reboot without enabling it\n");
return1; }
/* force text mode - used by kernel modesetting */ __setup("nomodeset", text_mode);
p = __setup_start; do { int n = strlen(p->str); if (parameqn(line, p->str, n)) { if (p->early) { /* Already done in parse_early_param? * (Needs exact match on param part). * Keep iterating, as we can have early * params and __setups of same names 8( */ if (line[n] == '\0' || line[n] == '=') had_early_param = true; } elseif (!p->setup_func) { pr_warn("Parameter %s is obsolete, ignored\n", p->str); returntrue; } elseif (p->setup_func(line + n)) returntrue; } p++; } while (p < __setup_end);
[mxd@5 linux-4.19-loongson]$ grep modeset -rnwI drivers/gpu/drm/radeon/ | grep -v include drivers/gpu/drm/radeon/trinity_dpm.c:1983: pi->voltage_drop_in_dce = false; /* need to restructure dpm/modeset interaction */ drivers/gpu/drm/radeon/radeon_kms.c:144: dev_err(&dev->pdev->dev, "Fatal error during modeset init\n"); drivers/gpu/drm/radeon/radeon_kms.c:150: /* Call ACPI methods: require modeset init drivers/gpu/drm/radeon/radeon_connectors.c:195: /* mode_clock is clock in kHz for mode to be modeset on this connector */ drivers/gpu/drm/radeon/radeon_drv.c:204:MODULE_PARM_DESC(modeset, "Disable/Enable modesetting"); drivers/gpu/drm/radeon/radeon_drv.c:205:module_param_named(modeset, radeon_modeset, int, 0400); drivers/gpu/drm/radeon/radeon_pm.c:281: /* This can fail if a modeset is in progress */ drivers/gpu/drm/radeon/radeon_pm.c:1565: * a modeset to call this. drivers/gpu/drm/radeon/radeon_display.c:175: /* XXX match this to the depth of the crtc fmt block, move to modeset? */
/* One for each parameter, describing how to use it. Some files do multiple of these per line, so can't just use MODULE_INFO. */ #define MODULE_PARM_DESC(_parm, desc) \ __MODULE_INFO(parm, _parm, #_parm ":" desc)
$ modinfo example.ko filename: /lib/modules/$(uname -r)/kernel/drivers/example.ko license: GPL description: Example kernel module author: Your Name srcversion: 1234567890abcdef... depends: retpoline: Y name: example vermagic: 4.19.0-xyz SMP mod_unload parm: myparam:This is a description of the parameter myparam. (int)