Add a read only sysctl tracking the hw.drm.msi tunable.
MFC after: 2 weeks
This commit is contained in:
parent
f98d8dac77
commit
02d6d1fd6e
@ -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…
x
Reference in New Issue
Block a user