mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
MFC r196466
Add a read only sysctl tracking the hw.drm.msi tunable.
This commit is contained in:
parent
1587b7fc87
commit
d84490b532
2 changed files with 5 additions and 0 deletions
|
|
@ -148,6 +148,8 @@ MALLOC_DECLARE(DRM_MEM_CTXBITMAP);
|
|||
MALLOC_DECLARE(DRM_MEM_SGLISTS);
|
||||
MALLOC_DECLARE(DRM_MEM_DRAWABLE);
|
||||
|
||||
SYSCTL_DECL(_hw_drm);
|
||||
|
||||
#define DRM_MAX_CTXBITMAP (PAGE_SIZE * 8)
|
||||
|
||||
/* Internal types and structures */
|
||||
|
|
|
|||
|
|
@ -133,6 +133,9 @@ static struct cdevsw drm_cdevsw = {
|
|||
|
||||
static int drm_msi = 1; /* Enable by default. */
|
||||
TUNABLE_INT("hw.drm.msi", &drm_msi);
|
||||
SYSCTL_NODE(_hw, OID_AUTO, drm, CTLFLAG_RW, NULL, "DRM device");
|
||||
SYSCTL_INT(_hw_drm, OID_AUTO, msi, CTLFLAG_RDTUN, &drm_msi, 1,
|
||||
"Enable MSI interrupts for drm devices");
|
||||
|
||||
static struct drm_msi_blacklist_entry drm_msi_blacklist[] = {
|
||||
{0x8086, 0x2772}, /* Intel i945G */ \
|
||||
|
|
|
|||
Loading…
Reference in a new issue