summaryrefslogtreecommitdiff
path: root/bin/nv_perfmon.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-08-10 04:10:24 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-08-10 04:43:31 +1000
commit0d59b365576847ea6d89b8dbc7dd9c51aca9a593 (patch)
treedfbc216a647818e270f09b7e4eb2647811aa2031 /bin/nv_perfmon.c
parentb444ec0997bfdda01be65f26e831c1724a6dd9f4 (diff)
downloadnouveau-0d59b365576847ea6d89b8dbc7dd9c51aca9a593.tar.gz
device: audit and version NV_DEVICE class
The full object interfaces are about to be exposed to userspace, so we need to check for any security-related issues and version the structs to make it easier to handle any changes we may need in the future. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'bin/nv_perfmon.c')
-rw-r--r--bin/nv_perfmon.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/nv_perfmon.c b/bin/nv_perfmon.c
index 611a327a0..2cb594879 100644
--- a/bin/nv_perfmon.c
+++ b/bin/nv_perfmon.c
@@ -627,15 +627,15 @@ main(int argc, char **argv)
return ret;
ret = nvif_device_new(nvif_object(client), 0x00000000,
- NV_DEVICE_CLASS, &(struct nv_device_class) {
+ NV_DEVICE, &(struct nv_device_v0) {
.device = ~0ULL,
- .disable = ~(NV_DEVICE_DISABLE_MMIO |
- NV_DEVICE_DISABLE_VBIOS |
- NV_DEVICE_DISABLE_CORE |
- NV_DEVICE_DISABLE_IDENTIFY),
+ .disable = ~(NV_DEVICE_V0_DISABLE_MMIO |
+ NV_DEVICE_V0_DISABLE_VBIOS |
+ NV_DEVICE_V0_DISABLE_CORE |
+ NV_DEVICE_V0_DISABLE_IDENTIFY),
.debug0 = ~((1ULL << NVDEV_SUBDEV_TIMER) |
(1ULL << NVDEV_ENGINE_PERFMON)),
- }, sizeof(struct nv_device_class), &device);
+ }, sizeof(struct nv_device_v0), &device);
nvif_client_ref(NULL, &client);
if (ret)
return ret;