diff options
Diffstat (limited to 'drivers/gpu/drm')
25 files changed, 108 insertions, 108 deletions
diff --git a/drivers/gpu/drm/nouveau/include/nvif/class.h b/drivers/gpu/drm/nouveau/include/nvif/class.h index c88bb7c1010e..e35988aa255b 100644 --- a/drivers/gpu/drm/nouveau/include/nvif/class.h +++ b/drivers/gpu/drm/nouveau/include/nvif/class.h | |||
@@ -128,7 +128,7 @@ struct nv_device_v0 { | |||
128 | #define NV_DEVICE_V0_DISABLE_VP 0x0000000800000000ULL | 128 | #define NV_DEVICE_V0_DISABLE_VP 0x0000000800000000ULL |
129 | #define NV_DEVICE_V0_DISABLE_CIPHER 0x0000001000000000ULL | 129 | #define NV_DEVICE_V0_DISABLE_CIPHER 0x0000001000000000ULL |
130 | #define NV_DEVICE_V0_DISABLE_BSP 0x0000002000000000ULL | 130 | #define NV_DEVICE_V0_DISABLE_BSP 0x0000002000000000ULL |
131 | #define NV_DEVICE_V0_DISABLE_PPP 0x0000004000000000ULL | 131 | #define NV_DEVICE_V0_DISABLE_MSPPP 0x0000004000000000ULL |
132 | #define NV_DEVICE_V0_DISABLE_CE0 0x0000008000000000ULL | 132 | #define NV_DEVICE_V0_DISABLE_CE0 0x0000008000000000ULL |
133 | #define NV_DEVICE_V0_DISABLE_CE1 0x0000010000000000ULL | 133 | #define NV_DEVICE_V0_DISABLE_CE1 0x0000010000000000ULL |
134 | #define NV_DEVICE_V0_DISABLE_VIC 0x0000020000000000ULL | 134 | #define NV_DEVICE_V0_DISABLE_VIC 0x0000020000000000ULL |
@@ -349,7 +349,7 @@ struct kepler_channel_gpfifo_a_v0 { | |||
349 | __u8 version; | 349 | __u8 version; |
350 | #define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_GR 0x01 | 350 | #define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_GR 0x01 |
351 | #define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_VP 0x02 | 351 | #define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_VP 0x02 |
352 | #define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_PPP 0x04 | 352 | #define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_MSPPP 0x04 |
353 | #define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_MSVLD 0x08 | 353 | #define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_MSVLD 0x08 |
354 | #define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_CE0 0x10 | 354 | #define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_CE0 0x10 |
355 | #define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_CE1 0x20 | 355 | #define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_CE1 0x20 |
diff --git a/drivers/gpu/drm/nouveau/include/nvkm/core/device.h b/drivers/gpu/drm/nouveau/include/nvkm/core/device.h index 3d87d3daa5a8..1a6a49c7f84b 100644 --- a/drivers/gpu/drm/nouveau/include/nvkm/core/device.h +++ b/drivers/gpu/drm/nouveau/include/nvkm/core/device.h | |||
@@ -51,7 +51,7 @@ enum nv_subdev_type { | |||
51 | NVDEV_ENGINE_VP, | 51 | NVDEV_ENGINE_VP, |
52 | NVDEV_ENGINE_CIPHER, | 52 | NVDEV_ENGINE_CIPHER, |
53 | NVDEV_ENGINE_BSP, | 53 | NVDEV_ENGINE_BSP, |
54 | NVDEV_ENGINE_PPP, | 54 | NVDEV_ENGINE_MSPPP, |
55 | NVDEV_ENGINE_CE0, | 55 | NVDEV_ENGINE_CE0, |
56 | NVDEV_ENGINE_CE1, | 56 | NVDEV_ENGINE_CE1, |
57 | NVDEV_ENGINE_CE2, | 57 | NVDEV_ENGINE_CE2, |
diff --git a/drivers/gpu/drm/nouveau/include/nvkm/engine/msppp.h b/drivers/gpu/drm/nouveau/include/nvkm/engine/msppp.h new file mode 100644 index 000000000000..5f2f82ed9598 --- /dev/null +++ b/drivers/gpu/drm/nouveau/include/nvkm/engine/msppp.h | |||
@@ -0,0 +1,7 @@ | |||
1 | #ifndef __NOUVEAU_MSPPP_H__ | ||
2 | #define __NOUVEAU_MSPPP_H__ | ||
3 | |||
4 | extern struct nouveau_oclass nv98_msppp_oclass; | ||
5 | extern struct nouveau_oclass nvc0_msppp_oclass; | ||
6 | |||
7 | #endif | ||
diff --git a/drivers/gpu/drm/nouveau/include/nvkm/engine/ppp.h b/drivers/gpu/drm/nouveau/include/nvkm/engine/ppp.h deleted file mode 100644 index 0a66781e8cf1..000000000000 --- a/drivers/gpu/drm/nouveau/include/nvkm/engine/ppp.h +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | #ifndef __NOUVEAU_PPP_H__ | ||
2 | #define __NOUVEAU_PPP_H__ | ||
3 | |||
4 | extern struct nouveau_oclass nv98_ppp_oclass; | ||
5 | extern struct nouveau_oclass nvc0_ppp_oclass; | ||
6 | |||
7 | #endif | ||
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/Kbuild b/drivers/gpu/drm/nouveau/nvkm/engine/Kbuild index 16c3a91b7e4a..0607d595f6e7 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/Kbuild +++ b/drivers/gpu/drm/nouveau/nvkm/engine/Kbuild | |||
@@ -12,7 +12,7 @@ include $(src)/nvkm/engine/gr/Kbuild | |||
12 | include $(src)/nvkm/engine/mpeg/Kbuild | 12 | include $(src)/nvkm/engine/mpeg/Kbuild |
13 | include $(src)/nvkm/engine/msvld/Kbuild | 13 | include $(src)/nvkm/engine/msvld/Kbuild |
14 | include $(src)/nvkm/engine/pm/Kbuild | 14 | include $(src)/nvkm/engine/pm/Kbuild |
15 | include $(src)/nvkm/engine/ppp/Kbuild | 15 | include $(src)/nvkm/engine/msppp/Kbuild |
16 | include $(src)/nvkm/engine/sec/Kbuild | 16 | include $(src)/nvkm/engine/sec/Kbuild |
17 | include $(src)/nvkm/engine/software/Kbuild | 17 | include $(src)/nvkm/engine/software/Kbuild |
18 | include $(src)/nvkm/engine/vp/Kbuild | 18 | include $(src)/nvkm/engine/vp/Kbuild |
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/device/base.c b/drivers/gpu/drm/nouveau/nvkm/engine/device/base.c index 5b226cb04298..fda8d729aa30 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/device/base.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/device/base.c | |||
@@ -234,7 +234,7 @@ static const u64 disable_map[] = { | |||
234 | [NVDEV_ENGINE_VP] = NV_DEVICE_V0_DISABLE_VP, | 234 | [NVDEV_ENGINE_VP] = NV_DEVICE_V0_DISABLE_VP, |
235 | [NVDEV_ENGINE_CIPHER] = NV_DEVICE_V0_DISABLE_CIPHER, | 235 | [NVDEV_ENGINE_CIPHER] = NV_DEVICE_V0_DISABLE_CIPHER, |
236 | [NVDEV_ENGINE_BSP] = NV_DEVICE_V0_DISABLE_BSP, | 236 | [NVDEV_ENGINE_BSP] = NV_DEVICE_V0_DISABLE_BSP, |
237 | [NVDEV_ENGINE_PPP] = NV_DEVICE_V0_DISABLE_PPP, | 237 | [NVDEV_ENGINE_MSPPP] = NV_DEVICE_V0_DISABLE_MSPPP, |
238 | [NVDEV_ENGINE_CE0] = NV_DEVICE_V0_DISABLE_CE0, | 238 | [NVDEV_ENGINE_CE0] = NV_DEVICE_V0_DISABLE_CE0, |
239 | [NVDEV_ENGINE_CE1] = NV_DEVICE_V0_DISABLE_CE1, | 239 | [NVDEV_ENGINE_CE1] = NV_DEVICE_V0_DISABLE_CE1, |
240 | [NVDEV_ENGINE_CE2] = NV_DEVICE_V0_DISABLE_CE2, | 240 | [NVDEV_ENGINE_CE2] = NV_DEVICE_V0_DISABLE_CE2, |
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/device/gm100.c b/drivers/gpu/drm/nouveau/nvkm/engine/device/gm100.c index 2ea1dbcf641f..690250503332 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/device/gm100.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/device/gm100.c | |||
@@ -52,7 +52,7 @@ | |||
52 | #include <engine/bsp.h> | 52 | #include <engine/bsp.h> |
53 | #include <engine/msvld.h> | 53 | #include <engine/msvld.h> |
54 | #include <engine/vp.h> | 54 | #include <engine/vp.h> |
55 | #include <engine/ppp.h> | 55 | #include <engine/msppp.h> |
56 | #include <engine/pm.h> | 56 | #include <engine/pm.h> |
57 | 57 | ||
58 | int | 58 | int |
@@ -96,7 +96,7 @@ gm100_identify(struct nouveau_device *device) | |||
96 | #if 0 | 96 | #if 0 |
97 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nve0_msvld_oclass; | 97 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nve0_msvld_oclass; |
98 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; | 98 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; |
99 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; | 99 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
100 | #endif | 100 | #endif |
101 | break; | 101 | break; |
102 | case 0x124: | 102 | case 0x124: |
@@ -139,7 +139,7 @@ gm100_identify(struct nouveau_device *device) | |||
139 | device->oclass[NVDEV_ENGINE_CE2 ] = &gm204_ce2_oclass; | 139 | device->oclass[NVDEV_ENGINE_CE2 ] = &gm204_ce2_oclass; |
140 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nve0_msvld_oclass; | 140 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nve0_msvld_oclass; |
141 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; | 141 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; |
142 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; | 142 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
143 | #endif | 143 | #endif |
144 | break; | 144 | break; |
145 | default: | 145 | default: |
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/device/nv50.c b/drivers/gpu/drm/nouveau/nvkm/engine/device/nv50.c index 6e5ccb371372..3f3d2ea1a930 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/device/nv50.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/device/nv50.c | |||
@@ -51,7 +51,7 @@ | |||
51 | #include <engine/sec.h> | 51 | #include <engine/sec.h> |
52 | #include <engine/bsp.h> | 52 | #include <engine/bsp.h> |
53 | #include <engine/msvld.h> | 53 | #include <engine/msvld.h> |
54 | #include <engine/ppp.h> | 54 | #include <engine/msppp.h> |
55 | #include <engine/ce.h> | 55 | #include <engine/ce.h> |
56 | #include <engine/disp.h> | 56 | #include <engine/disp.h> |
57 | #include <engine/pm.h> | 57 | #include <engine/pm.h> |
@@ -256,7 +256,7 @@ nv50_identify(struct nouveau_device *device) | |||
256 | device->oclass[NVDEV_ENGINE_VP ] = &nv98_vp_oclass; | 256 | device->oclass[NVDEV_ENGINE_VP ] = &nv98_vp_oclass; |
257 | device->oclass[NVDEV_ENGINE_SEC ] = &nv98_sec_oclass; | 257 | device->oclass[NVDEV_ENGINE_SEC ] = &nv98_sec_oclass; |
258 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nv98_msvld_oclass; | 258 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nv98_msvld_oclass; |
259 | device->oclass[NVDEV_ENGINE_PPP ] = &nv98_ppp_oclass; | 259 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nv98_msppp_oclass; |
260 | device->oclass[NVDEV_ENGINE_DISP ] = nv94_disp_oclass; | 260 | device->oclass[NVDEV_ENGINE_DISP ] = nv94_disp_oclass; |
261 | device->oclass[NVDEV_ENGINE_PM ] = nv84_pm_oclass; | 261 | device->oclass[NVDEV_ENGINE_PM ] = nv84_pm_oclass; |
262 | break; | 262 | break; |
@@ -314,7 +314,7 @@ nv50_identify(struct nouveau_device *device) | |||
314 | device->oclass[NVDEV_ENGINE_VP ] = &nv98_vp_oclass; | 314 | device->oclass[NVDEV_ENGINE_VP ] = &nv98_vp_oclass; |
315 | device->oclass[NVDEV_ENGINE_SEC ] = &nv98_sec_oclass; | 315 | device->oclass[NVDEV_ENGINE_SEC ] = &nv98_sec_oclass; |
316 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nv98_msvld_oclass; | 316 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nv98_msvld_oclass; |
317 | device->oclass[NVDEV_ENGINE_PPP ] = &nv98_ppp_oclass; | 317 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nv98_msppp_oclass; |
318 | device->oclass[NVDEV_ENGINE_DISP ] = nv94_disp_oclass; | 318 | device->oclass[NVDEV_ENGINE_DISP ] = nv94_disp_oclass; |
319 | device->oclass[NVDEV_ENGINE_PM ] = nv84_pm_oclass; | 319 | device->oclass[NVDEV_ENGINE_PM ] = nv84_pm_oclass; |
320 | break; | 320 | break; |
@@ -343,7 +343,7 @@ nv50_identify(struct nouveau_device *device) | |||
343 | device->oclass[NVDEV_ENGINE_VP ] = &nv98_vp_oclass; | 343 | device->oclass[NVDEV_ENGINE_VP ] = &nv98_vp_oclass; |
344 | device->oclass[NVDEV_ENGINE_SEC ] = &nv98_sec_oclass; | 344 | device->oclass[NVDEV_ENGINE_SEC ] = &nv98_sec_oclass; |
345 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nv98_msvld_oclass; | 345 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nv98_msvld_oclass; |
346 | device->oclass[NVDEV_ENGINE_PPP ] = &nv98_ppp_oclass; | 346 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nv98_msppp_oclass; |
347 | device->oclass[NVDEV_ENGINE_DISP ] = nv94_disp_oclass; | 347 | device->oclass[NVDEV_ENGINE_DISP ] = nv94_disp_oclass; |
348 | device->oclass[NVDEV_ENGINE_PM ] = nv84_pm_oclass; | 348 | device->oclass[NVDEV_ENGINE_PM ] = nv84_pm_oclass; |
349 | break; | 349 | break; |
@@ -373,7 +373,7 @@ nv50_identify(struct nouveau_device *device) | |||
373 | device->oclass[NVDEV_ENGINE_MPEG ] = &nv84_mpeg_oclass; | 373 | device->oclass[NVDEV_ENGINE_MPEG ] = &nv84_mpeg_oclass; |
374 | device->oclass[NVDEV_ENGINE_VP ] = &nv98_vp_oclass; | 374 | device->oclass[NVDEV_ENGINE_VP ] = &nv98_vp_oclass; |
375 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nv98_msvld_oclass; | 375 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nv98_msvld_oclass; |
376 | device->oclass[NVDEV_ENGINE_PPP ] = &nv98_ppp_oclass; | 376 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nv98_msppp_oclass; |
377 | device->oclass[NVDEV_ENGINE_CE0 ] = &nva3_ce_oclass; | 377 | device->oclass[NVDEV_ENGINE_CE0 ] = &nva3_ce_oclass; |
378 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; | 378 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; |
379 | device->oclass[NVDEV_ENGINE_PM ] = nva3_pm_oclass; | 379 | device->oclass[NVDEV_ENGINE_PM ] = nva3_pm_oclass; |
@@ -403,7 +403,7 @@ nv50_identify(struct nouveau_device *device) | |||
403 | device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass; | 403 | device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass; |
404 | device->oclass[NVDEV_ENGINE_VP ] = &nv98_vp_oclass; | 404 | device->oclass[NVDEV_ENGINE_VP ] = &nv98_vp_oclass; |
405 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nv98_msvld_oclass; | 405 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nv98_msvld_oclass; |
406 | device->oclass[NVDEV_ENGINE_PPP ] = &nv98_ppp_oclass; | 406 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nv98_msppp_oclass; |
407 | device->oclass[NVDEV_ENGINE_CE0 ] = &nva3_ce_oclass; | 407 | device->oclass[NVDEV_ENGINE_CE0 ] = &nva3_ce_oclass; |
408 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; | 408 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; |
409 | device->oclass[NVDEV_ENGINE_PM ] = nva3_pm_oclass; | 409 | device->oclass[NVDEV_ENGINE_PM ] = nva3_pm_oclass; |
@@ -433,7 +433,7 @@ nv50_identify(struct nouveau_device *device) | |||
433 | device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass; | 433 | device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass; |
434 | device->oclass[NVDEV_ENGINE_VP ] = &nv98_vp_oclass; | 434 | device->oclass[NVDEV_ENGINE_VP ] = &nv98_vp_oclass; |
435 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nv98_msvld_oclass; | 435 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nv98_msvld_oclass; |
436 | device->oclass[NVDEV_ENGINE_PPP ] = &nv98_ppp_oclass; | 436 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nv98_msppp_oclass; |
437 | device->oclass[NVDEV_ENGINE_CE0 ] = &nva3_ce_oclass; | 437 | device->oclass[NVDEV_ENGINE_CE0 ] = &nva3_ce_oclass; |
438 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; | 438 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; |
439 | device->oclass[NVDEV_ENGINE_PM ] = nva3_pm_oclass; | 439 | device->oclass[NVDEV_ENGINE_PM ] = nva3_pm_oclass; |
@@ -463,7 +463,7 @@ nv50_identify(struct nouveau_device *device) | |||
463 | device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass; | 463 | device->oclass[NVDEV_ENGINE_GR ] = &nv50_gr_oclass; |
464 | device->oclass[NVDEV_ENGINE_VP ] = &nv98_vp_oclass; | 464 | device->oclass[NVDEV_ENGINE_VP ] = &nv98_vp_oclass; |
465 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nv98_msvld_oclass; | 465 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nv98_msvld_oclass; |
466 | device->oclass[NVDEV_ENGINE_PPP ] = &nv98_ppp_oclass; | 466 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nv98_msppp_oclass; |
467 | device->oclass[NVDEV_ENGINE_CE0 ] = &nva3_ce_oclass; | 467 | device->oclass[NVDEV_ENGINE_CE0 ] = &nva3_ce_oclass; |
468 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; | 468 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; |
469 | device->oclass[NVDEV_ENGINE_PM ] = nva3_pm_oclass; | 469 | device->oclass[NVDEV_ENGINE_PM ] = nva3_pm_oclass; |
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/device/nvc0.c b/drivers/gpu/drm/nouveau/nvkm/engine/device/nvc0.c index d159d2993043..b241421e76a2 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/device/nvc0.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/device/nvc0.c | |||
@@ -50,7 +50,7 @@ | |||
50 | #include <engine/vp.h> | 50 | #include <engine/vp.h> |
51 | #include <engine/bsp.h> | 51 | #include <engine/bsp.h> |
52 | #include <engine/msvld.h> | 52 | #include <engine/msvld.h> |
53 | #include <engine/ppp.h> | 53 | #include <engine/msppp.h> |
54 | #include <engine/ce.h> | 54 | #include <engine/ce.h> |
55 | #include <engine/disp.h> | 55 | #include <engine/disp.h> |
56 | #include <engine/pm.h> | 56 | #include <engine/pm.h> |
@@ -86,7 +86,7 @@ nvc0_identify(struct nouveau_device *device) | |||
86 | device->oclass[NVDEV_ENGINE_GR ] = nvc0_gr_oclass; | 86 | device->oclass[NVDEV_ENGINE_GR ] = nvc0_gr_oclass; |
87 | device->oclass[NVDEV_ENGINE_VP ] = &nvc0_vp_oclass; | 87 | device->oclass[NVDEV_ENGINE_VP ] = &nvc0_vp_oclass; |
88 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; | 88 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; |
89 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; | 89 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
90 | device->oclass[NVDEV_ENGINE_CE0 ] = &nvc0_ce0_oclass; | 90 | device->oclass[NVDEV_ENGINE_CE0 ] = &nvc0_ce0_oclass; |
91 | device->oclass[NVDEV_ENGINE_CE1 ] = &nvc0_ce1_oclass; | 91 | device->oclass[NVDEV_ENGINE_CE1 ] = &nvc0_ce1_oclass; |
92 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; | 92 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; |
@@ -119,7 +119,7 @@ nvc0_identify(struct nouveau_device *device) | |||
119 | device->oclass[NVDEV_ENGINE_GR ] = nvc4_gr_oclass; | 119 | device->oclass[NVDEV_ENGINE_GR ] = nvc4_gr_oclass; |
120 | device->oclass[NVDEV_ENGINE_VP ] = &nvc0_vp_oclass; | 120 | device->oclass[NVDEV_ENGINE_VP ] = &nvc0_vp_oclass; |
121 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; | 121 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; |
122 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; | 122 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
123 | device->oclass[NVDEV_ENGINE_CE0 ] = &nvc0_ce0_oclass; | 123 | device->oclass[NVDEV_ENGINE_CE0 ] = &nvc0_ce0_oclass; |
124 | device->oclass[NVDEV_ENGINE_CE1 ] = &nvc0_ce1_oclass; | 124 | device->oclass[NVDEV_ENGINE_CE1 ] = &nvc0_ce1_oclass; |
125 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; | 125 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; |
@@ -152,7 +152,7 @@ nvc0_identify(struct nouveau_device *device) | |||
152 | device->oclass[NVDEV_ENGINE_GR ] = nvc4_gr_oclass; | 152 | device->oclass[NVDEV_ENGINE_GR ] = nvc4_gr_oclass; |
153 | device->oclass[NVDEV_ENGINE_VP ] = &nvc0_vp_oclass; | 153 | device->oclass[NVDEV_ENGINE_VP ] = &nvc0_vp_oclass; |
154 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; | 154 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; |
155 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; | 155 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
156 | device->oclass[NVDEV_ENGINE_CE0 ] = &nvc0_ce0_oclass; | 156 | device->oclass[NVDEV_ENGINE_CE0 ] = &nvc0_ce0_oclass; |
157 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; | 157 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; |
158 | device->oclass[NVDEV_ENGINE_PM ] = &nvc0_pm_oclass; | 158 | device->oclass[NVDEV_ENGINE_PM ] = &nvc0_pm_oclass; |
@@ -184,7 +184,7 @@ nvc0_identify(struct nouveau_device *device) | |||
184 | device->oclass[NVDEV_ENGINE_GR ] = nvc4_gr_oclass; | 184 | device->oclass[NVDEV_ENGINE_GR ] = nvc4_gr_oclass; |
185 | device->oclass[NVDEV_ENGINE_VP ] = &nvc0_vp_oclass; | 185 | device->oclass[NVDEV_ENGINE_VP ] = &nvc0_vp_oclass; |
186 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; | 186 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; |
187 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; | 187 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
188 | device->oclass[NVDEV_ENGINE_CE0 ] = &nvc0_ce0_oclass; | 188 | device->oclass[NVDEV_ENGINE_CE0 ] = &nvc0_ce0_oclass; |
189 | device->oclass[NVDEV_ENGINE_CE1 ] = &nvc0_ce1_oclass; | 189 | device->oclass[NVDEV_ENGINE_CE1 ] = &nvc0_ce1_oclass; |
190 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; | 190 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; |
@@ -217,7 +217,7 @@ nvc0_identify(struct nouveau_device *device) | |||
217 | device->oclass[NVDEV_ENGINE_GR ] = nvc4_gr_oclass; | 217 | device->oclass[NVDEV_ENGINE_GR ] = nvc4_gr_oclass; |
218 | device->oclass[NVDEV_ENGINE_VP ] = &nvc0_vp_oclass; | 218 | device->oclass[NVDEV_ENGINE_VP ] = &nvc0_vp_oclass; |
219 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; | 219 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; |
220 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; | 220 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
221 | device->oclass[NVDEV_ENGINE_CE0 ] = &nvc0_ce0_oclass; | 221 | device->oclass[NVDEV_ENGINE_CE0 ] = &nvc0_ce0_oclass; |
222 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; | 222 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; |
223 | device->oclass[NVDEV_ENGINE_PM ] = &nvc0_pm_oclass; | 223 | device->oclass[NVDEV_ENGINE_PM ] = &nvc0_pm_oclass; |
@@ -249,7 +249,7 @@ nvc0_identify(struct nouveau_device *device) | |||
249 | device->oclass[NVDEV_ENGINE_GR ] = nvc1_gr_oclass; | 249 | device->oclass[NVDEV_ENGINE_GR ] = nvc1_gr_oclass; |
250 | device->oclass[NVDEV_ENGINE_VP ] = &nvc0_vp_oclass; | 250 | device->oclass[NVDEV_ENGINE_VP ] = &nvc0_vp_oclass; |
251 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; | 251 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; |
252 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; | 252 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
253 | device->oclass[NVDEV_ENGINE_CE0 ] = &nvc0_ce0_oclass; | 253 | device->oclass[NVDEV_ENGINE_CE0 ] = &nvc0_ce0_oclass; |
254 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; | 254 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; |
255 | device->oclass[NVDEV_ENGINE_PM ] = &nvc0_pm_oclass; | 255 | device->oclass[NVDEV_ENGINE_PM ] = &nvc0_pm_oclass; |
@@ -281,7 +281,7 @@ nvc0_identify(struct nouveau_device *device) | |||
281 | device->oclass[NVDEV_ENGINE_GR ] = nvc8_gr_oclass; | 281 | device->oclass[NVDEV_ENGINE_GR ] = nvc8_gr_oclass; |
282 | device->oclass[NVDEV_ENGINE_VP ] = &nvc0_vp_oclass; | 282 | device->oclass[NVDEV_ENGINE_VP ] = &nvc0_vp_oclass; |
283 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; | 283 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; |
284 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; | 284 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
285 | device->oclass[NVDEV_ENGINE_CE0 ] = &nvc0_ce0_oclass; | 285 | device->oclass[NVDEV_ENGINE_CE0 ] = &nvc0_ce0_oclass; |
286 | device->oclass[NVDEV_ENGINE_CE1 ] = &nvc0_ce1_oclass; | 286 | device->oclass[NVDEV_ENGINE_CE1 ] = &nvc0_ce1_oclass; |
287 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; | 287 | device->oclass[NVDEV_ENGINE_DISP ] = nva3_disp_oclass; |
@@ -314,7 +314,7 @@ nvc0_identify(struct nouveau_device *device) | |||
314 | device->oclass[NVDEV_ENGINE_GR ] = nvd9_gr_oclass; | 314 | device->oclass[NVDEV_ENGINE_GR ] = nvd9_gr_oclass; |
315 | device->oclass[NVDEV_ENGINE_VP ] = &nvc0_vp_oclass; | 315 | device->oclass[NVDEV_ENGINE_VP ] = &nvc0_vp_oclass; |
316 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; | 316 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; |
317 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; | 317 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
318 | device->oclass[NVDEV_ENGINE_CE0 ] = &nvc0_ce0_oclass; | 318 | device->oclass[NVDEV_ENGINE_CE0 ] = &nvc0_ce0_oclass; |
319 | device->oclass[NVDEV_ENGINE_DISP ] = nvd0_disp_oclass; | 319 | device->oclass[NVDEV_ENGINE_DISP ] = nvd0_disp_oclass; |
320 | device->oclass[NVDEV_ENGINE_PM ] = &nvc0_pm_oclass; | 320 | device->oclass[NVDEV_ENGINE_PM ] = &nvc0_pm_oclass; |
@@ -344,7 +344,7 @@ nvc0_identify(struct nouveau_device *device) | |||
344 | device->oclass[NVDEV_ENGINE_GR ] = nvd7_gr_oclass; | 344 | device->oclass[NVDEV_ENGINE_GR ] = nvd7_gr_oclass; |
345 | device->oclass[NVDEV_ENGINE_VP ] = &nvc0_vp_oclass; | 345 | device->oclass[NVDEV_ENGINE_VP ] = &nvc0_vp_oclass; |
346 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; | 346 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nvc0_msvld_oclass; |
347 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; | 347 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
348 | device->oclass[NVDEV_ENGINE_CE0 ] = &nvc0_ce0_oclass; | 348 | device->oclass[NVDEV_ENGINE_CE0 ] = &nvc0_ce0_oclass; |
349 | device->oclass[NVDEV_ENGINE_DISP ] = nvd0_disp_oclass; | 349 | device->oclass[NVDEV_ENGINE_DISP ] = nvd0_disp_oclass; |
350 | device->oclass[NVDEV_ENGINE_PM ] = &nvc0_pm_oclass; | 350 | device->oclass[NVDEV_ENGINE_PM ] = &nvc0_pm_oclass; |
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/device/nve0.c b/drivers/gpu/drm/nouveau/nvkm/engine/device/nve0.c index c68e76b40d51..df975987b9ca 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/device/nve0.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/device/nve0.c | |||
@@ -52,7 +52,7 @@ | |||
52 | #include <engine/bsp.h> | 52 | #include <engine/bsp.h> |
53 | #include <engine/msvld.h> | 53 | #include <engine/msvld.h> |
54 | #include <engine/vp.h> | 54 | #include <engine/vp.h> |
55 | #include <engine/ppp.h> | 55 | #include <engine/msppp.h> |
56 | #include <engine/pm.h> | 56 | #include <engine/pm.h> |
57 | 57 | ||
58 | int | 58 | int |
@@ -90,7 +90,7 @@ nve0_identify(struct nouveau_device *device) | |||
90 | device->oclass[NVDEV_ENGINE_CE2 ] = &nve0_ce2_oclass; | 90 | device->oclass[NVDEV_ENGINE_CE2 ] = &nve0_ce2_oclass; |
91 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nve0_msvld_oclass; | 91 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nve0_msvld_oclass; |
92 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; | 92 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; |
93 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; | 93 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
94 | device->oclass[NVDEV_ENGINE_PM ] = &nve0_pm_oclass; | 94 | device->oclass[NVDEV_ENGINE_PM ] = &nve0_pm_oclass; |
95 | break; | 95 | break; |
96 | case 0xe7: | 96 | case 0xe7: |
@@ -124,7 +124,7 @@ nve0_identify(struct nouveau_device *device) | |||
124 | device->oclass[NVDEV_ENGINE_CE2 ] = &nve0_ce2_oclass; | 124 | device->oclass[NVDEV_ENGINE_CE2 ] = &nve0_ce2_oclass; |
125 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nve0_msvld_oclass; | 125 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nve0_msvld_oclass; |
126 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; | 126 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; |
127 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; | 127 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
128 | device->oclass[NVDEV_ENGINE_PM ] = &nve0_pm_oclass; | 128 | device->oclass[NVDEV_ENGINE_PM ] = &nve0_pm_oclass; |
129 | break; | 129 | break; |
130 | case 0xe6: | 130 | case 0xe6: |
@@ -158,7 +158,7 @@ nve0_identify(struct nouveau_device *device) | |||
158 | device->oclass[NVDEV_ENGINE_CE2 ] = &nve0_ce2_oclass; | 158 | device->oclass[NVDEV_ENGINE_CE2 ] = &nve0_ce2_oclass; |
159 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nve0_msvld_oclass; | 159 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nve0_msvld_oclass; |
160 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; | 160 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; |
161 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; | 161 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
162 | device->oclass[NVDEV_ENGINE_PM ] = &nve0_pm_oclass; | 162 | device->oclass[NVDEV_ENGINE_PM ] = &nve0_pm_oclass; |
163 | break; | 163 | break; |
164 | case 0xea: | 164 | case 0xea: |
@@ -214,7 +214,7 @@ nve0_identify(struct nouveau_device *device) | |||
214 | device->oclass[NVDEV_ENGINE_CE2 ] = &nve0_ce2_oclass; | 214 | device->oclass[NVDEV_ENGINE_CE2 ] = &nve0_ce2_oclass; |
215 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nve0_msvld_oclass; | 215 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nve0_msvld_oclass; |
216 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; | 216 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; |
217 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; | 217 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
218 | device->oclass[NVDEV_ENGINE_PM ] = &nvf0_pm_oclass; | 218 | device->oclass[NVDEV_ENGINE_PM ] = &nvf0_pm_oclass; |
219 | break; | 219 | break; |
220 | case 0xf1: | 220 | case 0xf1: |
@@ -248,7 +248,7 @@ nve0_identify(struct nouveau_device *device) | |||
248 | device->oclass[NVDEV_ENGINE_CE2 ] = &nve0_ce2_oclass; | 248 | device->oclass[NVDEV_ENGINE_CE2 ] = &nve0_ce2_oclass; |
249 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nve0_msvld_oclass; | 249 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nve0_msvld_oclass; |
250 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; | 250 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; |
251 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; | 251 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
252 | device->oclass[NVDEV_ENGINE_PM ] = &nvf0_pm_oclass; | 252 | device->oclass[NVDEV_ENGINE_PM ] = &nvf0_pm_oclass; |
253 | break; | 253 | break; |
254 | case 0x106: | 254 | case 0x106: |
@@ -282,7 +282,7 @@ nve0_identify(struct nouveau_device *device) | |||
282 | device->oclass[NVDEV_ENGINE_CE2 ] = &nve0_ce2_oclass; | 282 | device->oclass[NVDEV_ENGINE_CE2 ] = &nve0_ce2_oclass; |
283 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nve0_msvld_oclass; | 283 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nve0_msvld_oclass; |
284 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; | 284 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; |
285 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; | 285 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
286 | break; | 286 | break; |
287 | case 0x108: | 287 | case 0x108: |
288 | device->cname = "GK208"; | 288 | device->cname = "GK208"; |
@@ -315,7 +315,7 @@ nve0_identify(struct nouveau_device *device) | |||
315 | device->oclass[NVDEV_ENGINE_CE2 ] = &nve0_ce2_oclass; | 315 | device->oclass[NVDEV_ENGINE_CE2 ] = &nve0_ce2_oclass; |
316 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nve0_msvld_oclass; | 316 | device->oclass[NVDEV_ENGINE_MSVLD ] = &nve0_msvld_oclass; |
317 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; | 317 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; |
318 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; | 318 | device->oclass[NVDEV_ENGINE_MSPPP ] = &nvc0_msppp_oclass; |
319 | break; | 319 | break; |
320 | default: | 320 | default: |
321 | nv_fatal(device, "unknown Kepler chipset\n"); | 321 | nv_fatal(device, "unknown Kepler chipset\n"); |
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv84.c b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv84.c index 4a3638e1944e..6abcd5c3e773 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv84.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv84.c | |||
@@ -58,7 +58,7 @@ nv84_fifo_context_attach(struct nouveau_object *parent, | |||
58 | case NVDEV_ENGINE_SW : return 0; | 58 | case NVDEV_ENGINE_SW : return 0; |
59 | case NVDEV_ENGINE_GR : addr = 0x0020; break; | 59 | case NVDEV_ENGINE_GR : addr = 0x0020; break; |
60 | case NVDEV_ENGINE_VP : addr = 0x0040; break; | 60 | case NVDEV_ENGINE_VP : addr = 0x0040; break; |
61 | case NVDEV_ENGINE_PPP : | 61 | case NVDEV_ENGINE_MSPPP : |
62 | case NVDEV_ENGINE_MPEG : addr = 0x0060; break; | 62 | case NVDEV_ENGINE_MPEG : addr = 0x0060; break; |
63 | case NVDEV_ENGINE_BSP : | 63 | case NVDEV_ENGINE_BSP : |
64 | case NVDEV_ENGINE_MSVLD : addr = 0x0080; break; | 64 | case NVDEV_ENGINE_MSVLD : addr = 0x0080; break; |
@@ -96,7 +96,7 @@ nv84_fifo_context_detach(struct nouveau_object *parent, bool suspend, | |||
96 | case NVDEV_ENGINE_SW : return 0; | 96 | case NVDEV_ENGINE_SW : return 0; |
97 | case NVDEV_ENGINE_GR : engn = 0; addr = 0x0020; break; | 97 | case NVDEV_ENGINE_GR : engn = 0; addr = 0x0020; break; |
98 | case NVDEV_ENGINE_VP : engn = 3; addr = 0x0040; break; | 98 | case NVDEV_ENGINE_VP : engn = 3; addr = 0x0040; break; |
99 | case NVDEV_ENGINE_PPP : | 99 | case NVDEV_ENGINE_MSPPP : |
100 | case NVDEV_ENGINE_MPEG : engn = 1; addr = 0x0060; break; | 100 | case NVDEV_ENGINE_MPEG : engn = 1; addr = 0x0060; break; |
101 | case NVDEV_ENGINE_BSP : | 101 | case NVDEV_ENGINE_BSP : |
102 | case NVDEV_ENGINE_MSVLD : engn = 5; addr = 0x0080; break; | 102 | case NVDEV_ENGINE_MSVLD : engn = 5; addr = 0x0080; break; |
@@ -145,7 +145,7 @@ nv84_fifo_object_attach(struct nouveau_object *parent, | |||
145 | case NVDEV_ENGINE_SW : context |= 0x00000000; break; | 145 | case NVDEV_ENGINE_SW : context |= 0x00000000; break; |
146 | case NVDEV_ENGINE_GR : context |= 0x00100000; break; | 146 | case NVDEV_ENGINE_GR : context |= 0x00100000; break; |
147 | case NVDEV_ENGINE_MPEG : | 147 | case NVDEV_ENGINE_MPEG : |
148 | case NVDEV_ENGINE_PPP : context |= 0x00200000; break; | 148 | case NVDEV_ENGINE_MSPPP : context |= 0x00200000; break; |
149 | case NVDEV_ENGINE_ME : | 149 | case NVDEV_ENGINE_ME : |
150 | case NVDEV_ENGINE_CE0 : context |= 0x00300000; break; | 150 | case NVDEV_ENGINE_CE0 : context |= 0x00300000; break; |
151 | case NVDEV_ENGINE_VP : context |= 0x00400000; break; | 151 | case NVDEV_ENGINE_VP : context |= 0x00400000; break; |
@@ -195,7 +195,7 @@ nv84_fifo_chan_ctor_dma(struct nouveau_object *parent, | |||
195 | (1ULL << NVDEV_ENGINE_SEC) | | 195 | (1ULL << NVDEV_ENGINE_SEC) | |
196 | (1ULL << NVDEV_ENGINE_BSP) | | 196 | (1ULL << NVDEV_ENGINE_BSP) | |
197 | (1ULL << NVDEV_ENGINE_MSVLD) | | 197 | (1ULL << NVDEV_ENGINE_MSVLD) | |
198 | (1ULL << NVDEV_ENGINE_PPP) | | 198 | (1ULL << NVDEV_ENGINE_MSPPP) | |
199 | (1ULL << NVDEV_ENGINE_CE0) | | 199 | (1ULL << NVDEV_ENGINE_CE0) | |
200 | (1ULL << NVDEV_ENGINE_VIC), &chan); | 200 | (1ULL << NVDEV_ENGINE_VIC), &chan); |
201 | *pobject = nv_object(chan); | 201 | *pobject = nv_object(chan); |
@@ -270,7 +270,7 @@ nv84_fifo_chan_ctor_ind(struct nouveau_object *parent, | |||
270 | (1ULL << NVDEV_ENGINE_SEC) | | 270 | (1ULL << NVDEV_ENGINE_SEC) | |
271 | (1ULL << NVDEV_ENGINE_BSP) | | 271 | (1ULL << NVDEV_ENGINE_BSP) | |
272 | (1ULL << NVDEV_ENGINE_MSVLD) | | 272 | (1ULL << NVDEV_ENGINE_MSVLD) | |
273 | (1ULL << NVDEV_ENGINE_PPP) | | 273 | (1ULL << NVDEV_ENGINE_MSPPP) | |
274 | (1ULL << NVDEV_ENGINE_CE0) | | 274 | (1ULL << NVDEV_ENGINE_CE0) | |
275 | (1ULL << NVDEV_ENGINE_VIC), &chan); | 275 | (1ULL << NVDEV_ENGINE_VIC), &chan); |
276 | *pobject = nv_object(chan); | 276 | *pobject = nv_object(chan); |
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nvc0.c b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nvc0.c index 1511e387fd5d..d86601c02368 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nvc0.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nvc0.c | |||
@@ -126,7 +126,7 @@ nvc0_fifo_context_attach(struct nouveau_object *parent, | |||
126 | case NVDEV_ENGINE_CE1 : addr = 0x0240; break; | 126 | case NVDEV_ENGINE_CE1 : addr = 0x0240; break; |
127 | case NVDEV_ENGINE_MSVLD: addr = 0x0270; break; | 127 | case NVDEV_ENGINE_MSVLD: addr = 0x0270; break; |
128 | case NVDEV_ENGINE_VP : addr = 0x0250; break; | 128 | case NVDEV_ENGINE_VP : addr = 0x0250; break; |
129 | case NVDEV_ENGINE_PPP : addr = 0x0260; break; | 129 | case NVDEV_ENGINE_MSPPP: addr = 0x0260; break; |
130 | default: | 130 | default: |
131 | return -EINVAL; | 131 | return -EINVAL; |
132 | } | 132 | } |
@@ -163,7 +163,7 @@ nvc0_fifo_context_detach(struct nouveau_object *parent, bool suspend, | |||
163 | case NVDEV_ENGINE_CE1 : addr = 0x0240; break; | 163 | case NVDEV_ENGINE_CE1 : addr = 0x0240; break; |
164 | case NVDEV_ENGINE_MSVLD: addr = 0x0270; break; | 164 | case NVDEV_ENGINE_MSVLD: addr = 0x0270; break; |
165 | case NVDEV_ENGINE_VP : addr = 0x0250; break; | 165 | case NVDEV_ENGINE_VP : addr = 0x0250; break; |
166 | case NVDEV_ENGINE_PPP : addr = 0x0260; break; | 166 | case NVDEV_ENGINE_MSPPP: addr = 0x0260; break; |
167 | default: | 167 | default: |
168 | return -EINVAL; | 168 | return -EINVAL; |
169 | } | 169 | } |
@@ -216,7 +216,7 @@ nvc0_fifo_chan_ctor(struct nouveau_object *parent, | |||
216 | (1ULL << NVDEV_ENGINE_CE1) | | 216 | (1ULL << NVDEV_ENGINE_CE1) | |
217 | (1ULL << NVDEV_ENGINE_MSVLD) | | 217 | (1ULL << NVDEV_ENGINE_MSVLD) | |
218 | (1ULL << NVDEV_ENGINE_VP) | | 218 | (1ULL << NVDEV_ENGINE_VP) | |
219 | (1ULL << NVDEV_ENGINE_PPP), &chan); | 219 | (1ULL << NVDEV_ENGINE_MSPPP), &chan); |
220 | *pobject = nv_object(chan); | 220 | *pobject = nv_object(chan); |
221 | if (ret) | 221 | if (ret) |
222 | return ret; | 222 | return ret; |
@@ -383,7 +383,7 @@ nvc0_fifo_engidx(struct nvc0_fifo_priv *priv, u32 engn) | |||
383 | switch (engn) { | 383 | switch (engn) { |
384 | case NVDEV_ENGINE_GR : engn = 0; break; | 384 | case NVDEV_ENGINE_GR : engn = 0; break; |
385 | case NVDEV_ENGINE_MSVLD: engn = 1; break; | 385 | case NVDEV_ENGINE_MSVLD: engn = 1; break; |
386 | case NVDEV_ENGINE_PPP : engn = 2; break; | 386 | case NVDEV_ENGINE_MSPPP: engn = 2; break; |
387 | case NVDEV_ENGINE_VP : engn = 3; break; | 387 | case NVDEV_ENGINE_VP : engn = 3; break; |
388 | case NVDEV_ENGINE_CE0 : engn = 4; break; | 388 | case NVDEV_ENGINE_CE0 : engn = 4; break; |
389 | case NVDEV_ENGINE_CE1 : engn = 5; break; | 389 | case NVDEV_ENGINE_CE1 : engn = 5; break; |
@@ -400,7 +400,7 @@ nvc0_fifo_engine(struct nvc0_fifo_priv *priv, u32 engn) | |||
400 | switch (engn) { | 400 | switch (engn) { |
401 | case 0: engn = NVDEV_ENGINE_GR; break; | 401 | case 0: engn = NVDEV_ENGINE_GR; break; |
402 | case 1: engn = NVDEV_ENGINE_MSVLD; break; | 402 | case 1: engn = NVDEV_ENGINE_MSVLD; break; |
403 | case 2: engn = NVDEV_ENGINE_PPP; break; | 403 | case 2: engn = NVDEV_ENGINE_MSPPP; break; |
404 | case 3: engn = NVDEV_ENGINE_VP; break; | 404 | case 3: engn = NVDEV_ENGINE_VP; break; |
405 | case 4: engn = NVDEV_ENGINE_CE0; break; | 405 | case 4: engn = NVDEV_ENGINE_CE0; break; |
406 | case 5: engn = NVDEV_ENGINE_CE1; break; | 406 | case 5: engn = NVDEV_ENGINE_CE1; break; |
@@ -549,7 +549,7 @@ nvc0_fifo_fault_engine[] = { | |||
549 | { 0x05, "BAR3", NULL, NVDEV_SUBDEV_INSTMEM }, | 549 | { 0x05, "BAR3", NULL, NVDEV_SUBDEV_INSTMEM }, |
550 | { 0x07, "PFIFO", NULL, NVDEV_ENGINE_FIFO }, | 550 | { 0x07, "PFIFO", NULL, NVDEV_ENGINE_FIFO }, |
551 | { 0x10, "PMSVLD", NULL, NVDEV_ENGINE_MSVLD }, | 551 | { 0x10, "PMSVLD", NULL, NVDEV_ENGINE_MSVLD }, |
552 | { 0x11, "PPPP", NULL, NVDEV_ENGINE_PPP }, | 552 | { 0x11, "PMSPPP", NULL, NVDEV_ENGINE_MSPPP }, |
553 | { 0x13, "PCOUNTER" }, | 553 | { 0x13, "PCOUNTER" }, |
554 | { 0x14, "PVP", NULL, NVDEV_ENGINE_VP }, | 554 | { 0x14, "PVP", NULL, NVDEV_ENGINE_VP }, |
555 | { 0x15, "PCE0", NULL, NVDEV_ENGINE_CE0 }, | 555 | { 0x15, "PCE0", NULL, NVDEV_ENGINE_CE0 }, |
@@ -582,7 +582,7 @@ nvc0_fifo_fault_hubclient[] = { | |||
582 | { 0x07, "BAR_READ" }, | 582 | { 0x07, "BAR_READ" }, |
583 | { 0x08, "BAR_WRITE" }, | 583 | { 0x08, "BAR_WRITE" }, |
584 | { 0x0b, "PVP" }, | 584 | { 0x0b, "PVP" }, |
585 | { 0x0c, "PPPP" }, | 585 | { 0x0c, "PMSPPP" }, |
586 | { 0x0d, "PMSVLD" }, | 586 | { 0x0d, "PMSVLD" }, |
587 | { 0x11, "PCOUNTER" }, | 587 | { 0x11, "PCOUNTER" }, |
588 | { 0x12, "PDAEMON" }, | 588 | { 0x12, "PDAEMON" }, |
@@ -940,7 +940,7 @@ nvc0_fifo_init(struct nouveau_object *object) | |||
940 | if (priv->spoon_nr >= 3) { | 940 | if (priv->spoon_nr >= 3) { |
941 | nv_wr32(priv, 0x002208, ~(1 << 0)); /* PGRAPH */ | 941 | nv_wr32(priv, 0x002208, ~(1 << 0)); /* PGRAPH */ |
942 | nv_wr32(priv, 0x00220c, ~(1 << 1)); /* PVP */ | 942 | nv_wr32(priv, 0x00220c, ~(1 << 1)); /* PVP */ |
943 | nv_wr32(priv, 0x002210, ~(1 << 1)); /* PPP */ | 943 | nv_wr32(priv, 0x002210, ~(1 << 1)); /* PMSPP */ |
944 | nv_wr32(priv, 0x002214, ~(1 << 1)); /* PMSVLD */ | 944 | nv_wr32(priv, 0x002214, ~(1 << 1)); /* PMSVLD */ |
945 | nv_wr32(priv, 0x002218, ~(1 << 2)); /* PCE0 */ | 945 | nv_wr32(priv, 0x002218, ~(1 << 2)); /* PCE0 */ |
946 | nv_wr32(priv, 0x00221c, ~(1 << 1)); /* PCE1 */ | 946 | nv_wr32(priv, 0x00221c, ~(1 << 1)); /* PCE1 */ |
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nve0.c b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nve0.c index 324008e8fa9b..81dc280c0022 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nve0.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nve0.c | |||
@@ -49,7 +49,7 @@ static const struct { | |||
49 | _(NVDEV_ENGINE_GR , (1ULL << NVDEV_ENGINE_SW) | | 49 | _(NVDEV_ENGINE_GR , (1ULL << NVDEV_ENGINE_SW) | |
50 | (1ULL << NVDEV_ENGINE_CE2)), | 50 | (1ULL << NVDEV_ENGINE_CE2)), |
51 | _(NVDEV_ENGINE_VP , 0), | 51 | _(NVDEV_ENGINE_VP , 0), |
52 | _(NVDEV_ENGINE_PPP , 0), | 52 | _(NVDEV_ENGINE_MSPPP , 0), |
53 | _(NVDEV_ENGINE_MSVLD , 0), | 53 | _(NVDEV_ENGINE_MSVLD , 0), |
54 | _(NVDEV_ENGINE_CE0 , 0), | 54 | _(NVDEV_ENGINE_CE0 , 0), |
55 | _(NVDEV_ENGINE_CE1 , 0), | 55 | _(NVDEV_ENGINE_CE1 , 0), |
@@ -151,7 +151,7 @@ nve0_fifo_context_attach(struct nouveau_object *parent, | |||
151 | case NVDEV_ENGINE_GR : addr = 0x0210; break; | 151 | case NVDEV_ENGINE_GR : addr = 0x0210; break; |
152 | case NVDEV_ENGINE_MSVLD: addr = 0x0270; break; | 152 | case NVDEV_ENGINE_MSVLD: addr = 0x0270; break; |
153 | case NVDEV_ENGINE_VP : addr = 0x0250; break; | 153 | case NVDEV_ENGINE_VP : addr = 0x0250; break; |
154 | case NVDEV_ENGINE_PPP : addr = 0x0260; break; | 154 | case NVDEV_ENGINE_MSPPP: addr = 0x0260; break; |
155 | default: | 155 | default: |
156 | return -EINVAL; | 156 | return -EINVAL; |
157 | } | 157 | } |
@@ -189,7 +189,7 @@ nve0_fifo_context_detach(struct nouveau_object *parent, bool suspend, | |||
189 | case NVDEV_ENGINE_GR : addr = 0x0210; break; | 189 | case NVDEV_ENGINE_GR : addr = 0x0210; break; |
190 | case NVDEV_ENGINE_MSVLD: addr = 0x0270; break; | 190 | case NVDEV_ENGINE_MSVLD: addr = 0x0270; break; |
191 | case NVDEV_ENGINE_VP : addr = 0x0250; break; | 191 | case NVDEV_ENGINE_VP : addr = 0x0250; break; |
192 | case NVDEV_ENGINE_PPP : addr = 0x0260; break; | 192 | case NVDEV_ENGINE_MSPPP: addr = 0x0260; break; |
193 | default: | 193 | default: |
194 | return -EINVAL; | 194 | return -EINVAL; |
195 | } | 195 | } |
@@ -417,7 +417,7 @@ nve0_fifo_engidx(struct nve0_fifo_priv *priv, u32 engn) | |||
417 | case NVDEV_ENGINE_GR : | 417 | case NVDEV_ENGINE_GR : |
418 | case NVDEV_ENGINE_CE2 : engn = 0; break; | 418 | case NVDEV_ENGINE_CE2 : engn = 0; break; |
419 | case NVDEV_ENGINE_MSVLD: engn = 1; break; | 419 | case NVDEV_ENGINE_MSVLD: engn = 1; break; |
420 | case NVDEV_ENGINE_PPP : engn = 2; break; | 420 | case NVDEV_ENGINE_MSPPP: engn = 2; break; |
421 | case NVDEV_ENGINE_VP : engn = 3; break; | 421 | case NVDEV_ENGINE_VP : engn = 3; break; |
422 | case NVDEV_ENGINE_CE0 : engn = 4; break; | 422 | case NVDEV_ENGINE_CE0 : engn = 4; break; |
423 | case NVDEV_ENGINE_CE1 : engn = 5; break; | 423 | case NVDEV_ENGINE_CE1 : engn = 5; break; |
@@ -620,7 +620,7 @@ nve0_fifo_fault_engine[] = { | |||
620 | { 0x08, "PBDMA1", NULL, NVDEV_ENGINE_FIFO }, | 620 | { 0x08, "PBDMA1", NULL, NVDEV_ENGINE_FIFO }, |
621 | { 0x09, "PBDMA2", NULL, NVDEV_ENGINE_FIFO }, | 621 | { 0x09, "PBDMA2", NULL, NVDEV_ENGINE_FIFO }, |
622 | { 0x10, "MSVLD", NULL, NVDEV_ENGINE_MSVLD }, | 622 | { 0x10, "MSVLD", NULL, NVDEV_ENGINE_MSVLD }, |
623 | { 0x11, "MSPPP", NULL, NVDEV_ENGINE_PPP }, | 623 | { 0x11, "MSPPP", NULL, NVDEV_ENGINE_MSPPP }, |
624 | { 0x13, "PERF" }, | 624 | { 0x13, "PERF" }, |
625 | { 0x14, "MSPDEC", NULL, NVDEV_ENGINE_VP }, | 625 | { 0x14, "MSPDEC", NULL, NVDEV_ENGINE_VP }, |
626 | { 0x15, "CE0", NULL, NVDEV_ENGINE_CE0 }, | 626 | { 0x15, "CE0", NULL, NVDEV_ENGINE_CE0 }, |
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/msppp/Kbuild b/drivers/gpu/drm/nouveau/nvkm/engine/msppp/Kbuild new file mode 100644 index 000000000000..9b90ce948425 --- /dev/null +++ b/drivers/gpu/drm/nouveau/nvkm/engine/msppp/Kbuild | |||
@@ -0,0 +1,2 @@ | |||
1 | nvkm-y += nvkm/engine/msppp/nv98.o | ||
2 | nvkm-y += nvkm/engine/msppp/nvc0.o | ||
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/ppp/nv98.c b/drivers/gpu/drm/nouveau/nvkm/engine/msppp/nv98.c index 13bf31c40aa1..c044943c3fc7 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/ppp/nv98.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/msppp/nv98.c | |||
@@ -23,30 +23,30 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <engine/falcon.h> | 25 | #include <engine/falcon.h> |
26 | #include <engine/ppp.h> | 26 | #include <engine/msppp.h> |
27 | 27 | ||
28 | struct nv98_ppp_priv { | 28 | struct nv98_msppp_priv { |
29 | struct nouveau_falcon base; | 29 | struct nouveau_falcon base; |
30 | }; | 30 | }; |
31 | 31 | ||
32 | /******************************************************************************* | 32 | /******************************************************************************* |
33 | * PPP object classes | 33 | * MSPPP object classes |
34 | ******************************************************************************/ | 34 | ******************************************************************************/ |
35 | 35 | ||
36 | static struct nouveau_oclass | 36 | static struct nouveau_oclass |
37 | nv98_ppp_sclass[] = { | 37 | nv98_msppp_sclass[] = { |
38 | { 0x88b3, &nouveau_object_ofuncs }, | 38 | { 0x88b3, &nouveau_object_ofuncs }, |
39 | { 0x85b3, &nouveau_object_ofuncs }, | 39 | { 0x85b3, &nouveau_object_ofuncs }, |
40 | {}, | 40 | {}, |
41 | }; | 41 | }; |
42 | 42 | ||
43 | /******************************************************************************* | 43 | /******************************************************************************* |
44 | * PPPP context | 44 | * PMSPPP context |
45 | ******************************************************************************/ | 45 | ******************************************************************************/ |
46 | 46 | ||
47 | static struct nouveau_oclass | 47 | static struct nouveau_oclass |
48 | nv98_ppp_cclass = { | 48 | nv98_msppp_cclass = { |
49 | .handle = NV_ENGCTX(PPP, 0x98), | 49 | .handle = NV_ENGCTX(MSPPP, 0x98), |
50 | .ofuncs = &(struct nouveau_ofuncs) { | 50 | .ofuncs = &(struct nouveau_ofuncs) { |
51 | .ctor = _nouveau_falcon_context_ctor, | 51 | .ctor = _nouveau_falcon_context_ctor, |
52 | .dtor = _nouveau_falcon_context_dtor, | 52 | .dtor = _nouveau_falcon_context_dtor, |
@@ -58,13 +58,13 @@ nv98_ppp_cclass = { | |||
58 | }; | 58 | }; |
59 | 59 | ||
60 | /******************************************************************************* | 60 | /******************************************************************************* |
61 | * PPPP engine/subdev functions | 61 | * PMSPPP engine/subdev functions |
62 | ******************************************************************************/ | 62 | ******************************************************************************/ |
63 | 63 | ||
64 | static int | 64 | static int |
65 | nv98_ppp_init(struct nouveau_object *object) | 65 | nv98_msppp_init(struct nouveau_object *object) |
66 | { | 66 | { |
67 | struct nv98_ppp_priv *priv = (void *)object; | 67 | struct nv98_msppp_priv *priv = (void *)object; |
68 | int ret; | 68 | int ret; |
69 | 69 | ||
70 | ret = nouveau_falcon_init(&priv->base); | 70 | ret = nouveau_falcon_init(&priv->base); |
@@ -77,32 +77,32 @@ nv98_ppp_init(struct nouveau_object *object) | |||
77 | } | 77 | } |
78 | 78 | ||
79 | static int | 79 | static int |
80 | nv98_ppp_ctor(struct nouveau_object *parent, struct nouveau_object *engine, | 80 | nv98_msppp_ctor(struct nouveau_object *parent, struct nouveau_object *engine, |
81 | struct nouveau_oclass *oclass, void *data, u32 size, | 81 | struct nouveau_oclass *oclass, void *data, u32 size, |
82 | struct nouveau_object **pobject) | 82 | struct nouveau_object **pobject) |
83 | { | 83 | { |
84 | struct nv98_ppp_priv *priv; | 84 | struct nv98_msppp_priv *priv; |
85 | int ret; | 85 | int ret; |
86 | 86 | ||
87 | ret = nouveau_falcon_create(parent, engine, oclass, 0x086000, true, | 87 | ret = nouveau_falcon_create(parent, engine, oclass, 0x086000, true, |
88 | "PPPP", "ppp", &priv); | 88 | "PMSPPP", "msppp", &priv); |
89 | *pobject = nv_object(priv); | 89 | *pobject = nv_object(priv); |
90 | if (ret) | 90 | if (ret) |
91 | return ret; | 91 | return ret; |
92 | 92 | ||
93 | nv_subdev(priv)->unit = 0x00400002; | 93 | nv_subdev(priv)->unit = 0x00400002; |
94 | nv_engine(priv)->cclass = &nv98_ppp_cclass; | 94 | nv_engine(priv)->cclass = &nv98_msppp_cclass; |
95 | nv_engine(priv)->sclass = nv98_ppp_sclass; | 95 | nv_engine(priv)->sclass = nv98_msppp_sclass; |
96 | return 0; | 96 | return 0; |
97 | } | 97 | } |
98 | 98 | ||
99 | struct nouveau_oclass | 99 | struct nouveau_oclass |
100 | nv98_ppp_oclass = { | 100 | nv98_msppp_oclass = { |
101 | .handle = NV_ENGINE(PPP, 0x98), | 101 | .handle = NV_ENGINE(MSPPP, 0x98), |
102 | .ofuncs = &(struct nouveau_ofuncs) { | 102 | .ofuncs = &(struct nouveau_ofuncs) { |
103 | .ctor = nv98_ppp_ctor, | 103 | .ctor = nv98_msppp_ctor, |
104 | .dtor = _nouveau_falcon_dtor, | 104 | .dtor = _nouveau_falcon_dtor, |
105 | .init = nv98_ppp_init, | 105 | .init = nv98_msppp_init, |
106 | .fini = _nouveau_falcon_fini, | 106 | .fini = _nouveau_falcon_fini, |
107 | .rd32 = _nouveau_falcon_rd32, | 107 | .rd32 = _nouveau_falcon_rd32, |
108 | .wr32 = _nouveau_falcon_wr32, | 108 | .wr32 = _nouveau_falcon_wr32, |
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/ppp/nvc0.c b/drivers/gpu/drm/nouveau/nvkm/engine/msppp/nvc0.c index 73719aaa62d6..91398e639395 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/ppp/nvc0.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/msppp/nvc0.c | |||
@@ -23,29 +23,29 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <engine/falcon.h> | 25 | #include <engine/falcon.h> |
26 | #include <engine/ppp.h> | 26 | #include <engine/msppp.h> |
27 | 27 | ||
28 | struct nvc0_ppp_priv { | 28 | struct nvc0_msppp_priv { |
29 | struct nouveau_falcon base; | 29 | struct nouveau_falcon base; |
30 | }; | 30 | }; |
31 | 31 | ||
32 | /******************************************************************************* | 32 | /******************************************************************************* |
33 | * PPP object classes | 33 | * MSPPP object classes |
34 | ******************************************************************************/ | 34 | ******************************************************************************/ |
35 | 35 | ||
36 | static struct nouveau_oclass | 36 | static struct nouveau_oclass |
37 | nvc0_ppp_sclass[] = { | 37 | nvc0_msppp_sclass[] = { |
38 | { 0x90b3, &nouveau_object_ofuncs }, | 38 | { 0x90b3, &nouveau_object_ofuncs }, |
39 | {}, | 39 | {}, |
40 | }; | 40 | }; |
41 | 41 | ||
42 | /******************************************************************************* | 42 | /******************************************************************************* |
43 | * PPPP context | 43 | * PMSPPP context |
44 | ******************************************************************************/ | 44 | ******************************************************************************/ |
45 | 45 | ||
46 | static struct nouveau_oclass | 46 | static struct nouveau_oclass |
47 | nvc0_ppp_cclass = { | 47 | nvc0_msppp_cclass = { |
48 | .handle = NV_ENGCTX(PPP, 0xc0), | 48 | .handle = NV_ENGCTX(MSPPP, 0xc0), |
49 | .ofuncs = &(struct nouveau_ofuncs) { | 49 | .ofuncs = &(struct nouveau_ofuncs) { |
50 | .ctor = _nouveau_falcon_context_ctor, | 50 | .ctor = _nouveau_falcon_context_ctor, |
51 | .dtor = _nouveau_falcon_context_dtor, | 51 | .dtor = _nouveau_falcon_context_dtor, |
@@ -57,13 +57,13 @@ nvc0_ppp_cclass = { | |||
57 | }; | 57 | }; |
58 | 58 | ||
59 | /******************************************************************************* | 59 | /******************************************************************************* |
60 | * PPPP engine/subdev functions | 60 | * PMSPPP engine/subdev functions |
61 | ******************************************************************************/ | 61 | ******************************************************************************/ |
62 | 62 | ||
63 | static int | 63 | static int |
64 | nvc0_ppp_init(struct nouveau_object *object) | 64 | nvc0_msppp_init(struct nouveau_object *object) |
65 | { | 65 | { |
66 | struct nvc0_ppp_priv *priv = (void *)object; | 66 | struct nvc0_msppp_priv *priv = (void *)object; |
67 | int ret; | 67 | int ret; |
68 | 68 | ||
69 | ret = nouveau_falcon_init(&priv->base); | 69 | ret = nouveau_falcon_init(&priv->base); |
@@ -76,33 +76,33 @@ nvc0_ppp_init(struct nouveau_object *object) | |||
76 | } | 76 | } |
77 | 77 | ||
78 | static int | 78 | static int |
79 | nvc0_ppp_ctor(struct nouveau_object *parent, struct nouveau_object *engine, | 79 | nvc0_msppp_ctor(struct nouveau_object *parent, struct nouveau_object *engine, |
80 | struct nouveau_oclass *oclass, void *data, u32 size, | 80 | struct nouveau_oclass *oclass, void *data, u32 size, |
81 | struct nouveau_object **pobject) | 81 | struct nouveau_object **pobject) |
82 | { | 82 | { |
83 | struct nvc0_ppp_priv *priv; | 83 | struct nvc0_msppp_priv *priv; |
84 | int ret; | 84 | int ret; |
85 | 85 | ||
86 | ret = nouveau_falcon_create(parent, engine, oclass, 0x086000, true, | 86 | ret = nouveau_falcon_create(parent, engine, oclass, 0x086000, true, |
87 | "PPPP", "ppp", &priv); | 87 | "PMSPPP", "msppp", &priv); |
88 | *pobject = nv_object(priv); | 88 | *pobject = nv_object(priv); |
89 | if (ret) | 89 | if (ret) |
90 | return ret; | 90 | return ret; |
91 | 91 | ||
92 | nv_subdev(priv)->unit = 0x00000002; | 92 | nv_subdev(priv)->unit = 0x00000002; |
93 | nv_subdev(priv)->intr = nouveau_falcon_intr; | 93 | nv_subdev(priv)->intr = nouveau_falcon_intr; |
94 | nv_engine(priv)->cclass = &nvc0_ppp_cclass; | 94 | nv_engine(priv)->cclass = &nvc0_msppp_cclass; |
95 | nv_engine(priv)->sclass = nvc0_ppp_sclass; | 95 | nv_engine(priv)->sclass = nvc0_msppp_sclass; |
96 | return 0; | 96 | return 0; |
97 | } | 97 | } |
98 | 98 | ||
99 | struct nouveau_oclass | 99 | struct nouveau_oclass |
100 | nvc0_ppp_oclass = { | 100 | nvc0_msppp_oclass = { |
101 | .handle = NV_ENGINE(PPP, 0xc0), | 101 | .handle = NV_ENGINE(MSPPP, 0xc0), |
102 | .ofuncs = &(struct nouveau_ofuncs) { | 102 | .ofuncs = &(struct nouveau_ofuncs) { |
103 | .ctor = nvc0_ppp_ctor, | 103 | .ctor = nvc0_msppp_ctor, |
104 | .dtor = _nouveau_falcon_dtor, | 104 | .dtor = _nouveau_falcon_dtor, |
105 | .init = nvc0_ppp_init, | 105 | .init = nvc0_msppp_init, |
106 | .fini = _nouveau_falcon_fini, | 106 | .fini = _nouveau_falcon_fini, |
107 | .rd32 = _nouveau_falcon_rd32, | 107 | .rd32 = _nouveau_falcon_rd32, |
108 | .wr32 = _nouveau_falcon_wr32, | 108 | .wr32 = _nouveau_falcon_wr32, |
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/ppp/Kbuild b/drivers/gpu/drm/nouveau/nvkm/engine/ppp/Kbuild deleted file mode 100644 index 0c1de976f45d..000000000000 --- a/drivers/gpu/drm/nouveau/nvkm/engine/ppp/Kbuild +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | nvkm-y += nvkm/engine/ppp/nv98.o | ||
2 | nvkm-y += nvkm/engine/ppp/nvc0.o | ||
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv98.c b/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv98.c index b27984bbfebb..1da2bedce00a 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv98.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv98.c | |||
@@ -35,7 +35,7 @@ nv98_devinit_disable(struct nouveau_devinit *devinit) | |||
35 | if (!(r001540 & 0x40000000)) { | 35 | if (!(r001540 & 0x40000000)) { |
36 | disable |= (1ULL << NVDEV_ENGINE_VP); | 36 | disable |= (1ULL << NVDEV_ENGINE_VP); |
37 | disable |= (1ULL << NVDEV_ENGINE_MSVLD); | 37 | disable |= (1ULL << NVDEV_ENGINE_MSVLD); |
38 | disable |= (1ULL << NVDEV_ENGINE_PPP); | 38 | disable |= (1ULL << NVDEV_ENGINE_MSPPP); |
39 | } | 39 | } |
40 | 40 | ||
41 | if (!(r00154c & 0x00000004)) | 41 | if (!(r00154c & 0x00000004)) |
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nva3.c b/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nva3.c index b116f8040bbc..8bc7668faede 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nva3.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nva3.c | |||
@@ -68,7 +68,7 @@ nva3_devinit_disable(struct nouveau_devinit *devinit) | |||
68 | 68 | ||
69 | if (!(r001540 & 0x40000000)) { | 69 | if (!(r001540 & 0x40000000)) { |
70 | disable |= (1ULL << NVDEV_ENGINE_VP); | 70 | disable |= (1ULL << NVDEV_ENGINE_VP); |
71 | disable |= (1ULL << NVDEV_ENGINE_PPP); | 71 | disable |= (1ULL << NVDEV_ENGINE_MSPPP); |
72 | } | 72 | } |
73 | 73 | ||
74 | if (!(r00154c & 0x00000004)) | 74 | if (!(r00154c & 0x00000004)) |
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nvaf.c b/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nvaf.c index 140c300c7038..fea3be514553 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nvaf.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nvaf.c | |||
@@ -34,7 +34,7 @@ nvaf_devinit_disable(struct nouveau_devinit *devinit) | |||
34 | 34 | ||
35 | if (!(r001540 & 0x40000000)) { | 35 | if (!(r001540 & 0x40000000)) { |
36 | disable |= (1ULL << NVDEV_ENGINE_VP); | 36 | disable |= (1ULL << NVDEV_ENGINE_VP); |
37 | disable |= (1ULL << NVDEV_ENGINE_PPP); | 37 | disable |= (1ULL << NVDEV_ENGINE_MSPPP); |
38 | } | 38 | } |
39 | 39 | ||
40 | if (!(r00154c & 0x00000004)) | 40 | if (!(r00154c & 0x00000004)) |
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nvc0.c b/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nvc0.c index c7b2311f497e..4fbe8e9c97f0 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nvc0.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nvc0.c | |||
@@ -71,7 +71,7 @@ nvc0_devinit_disable(struct nouveau_devinit *devinit) | |||
71 | 71 | ||
72 | if (r022500 & 0x00000002) { | 72 | if (r022500 & 0x00000002) { |
73 | disable |= (1ULL << NVDEV_ENGINE_VP); | 73 | disable |= (1ULL << NVDEV_ENGINE_VP); |
74 | disable |= (1ULL << NVDEV_ENGINE_PPP); | 74 | disable |= (1ULL << NVDEV_ENGINE_MSPPP); |
75 | } | 75 | } |
76 | 76 | ||
77 | if (r022500 & 0x00000004) | 77 | if (r022500 & 0x00000004) |
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c index be129c3297a3..384d7eee830a 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c | |||
@@ -101,7 +101,7 @@ static const struct nouveau_enum vm_client[] = { | |||
101 | { 0x00000003, "DISPATCH", vm_dispatch_subclients }, | 101 | { 0x00000003, "DISPATCH", vm_dispatch_subclients }, |
102 | { 0x00000004, "PFIFO_WRITE", NULL }, | 102 | { 0x00000004, "PFIFO_WRITE", NULL }, |
103 | { 0x00000005, "CCACHE", vm_ccache_subclients }, | 103 | { 0x00000005, "CCACHE", vm_ccache_subclients }, |
104 | { 0x00000006, "PPPP", NULL }, | 104 | { 0x00000006, "PMSPPP", NULL }, |
105 | { 0x00000007, "CLIPID", NULL }, | 105 | { 0x00000007, "CLIPID", NULL }, |
106 | { 0x00000008, "PFIFO_READ", NULL }, | 106 | { 0x00000008, "PFIFO_READ", NULL }, |
107 | { 0x00000009, "VFETCH", NULL }, | 107 | { 0x00000009, "VFETCH", NULL }, |
@@ -121,7 +121,7 @@ static const struct nouveau_enum vm_engine[] = { | |||
121 | { 0x00000004, "PEEPHOLE", NULL }, | 121 | { 0x00000004, "PEEPHOLE", NULL }, |
122 | { 0x00000005, "PFIFO", vm_pfifo_subclients, NVDEV_ENGINE_FIFO }, | 122 | { 0x00000005, "PFIFO", vm_pfifo_subclients, NVDEV_ENGINE_FIFO }, |
123 | { 0x00000006, "BAR", vm_bar_subclients }, | 123 | { 0x00000006, "BAR", vm_bar_subclients }, |
124 | { 0x00000008, "PPPP", NULL, NVDEV_ENGINE_PPP }, | 124 | { 0x00000008, "PMSPPP", NULL, NVDEV_ENGINE_MSPPP }, |
125 | { 0x00000008, "PMPEG", NULL, NVDEV_ENGINE_MPEG }, | 125 | { 0x00000008, "PMPEG", NULL, NVDEV_ENGINE_MPEG }, |
126 | { 0x00000009, "PBSP", NULL, NVDEV_ENGINE_BSP }, | 126 | { 0x00000009, "PBSP", NULL, NVDEV_ENGINE_BSP }, |
127 | { 0x0000000a, "PCRYPT", NULL, NVDEV_ENGINE_CIPHER }, | 127 | { 0x0000000a, "PCRYPT", NULL, NVDEV_ENGINE_CIPHER }, |
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/mc/nv98.c b/drivers/gpu/drm/nouveau/nvkm/subdev/mc/nv98.c index 60b250f34cd2..06fc28b5e890 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/mc/nv98.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/mc/nv98.c | |||
@@ -27,7 +27,7 @@ | |||
27 | static const struct nouveau_mc_intr | 27 | static const struct nouveau_mc_intr |
28 | nv98_mc_intr[] = { | 28 | nv98_mc_intr[] = { |
29 | { 0x04000000, NVDEV_ENGINE_DISP }, /* DISP first, so pageflip timestamps work */ | 29 | { 0x04000000, NVDEV_ENGINE_DISP }, /* DISP first, so pageflip timestamps work */ |
30 | { 0x00000001, NVDEV_ENGINE_PPP }, | 30 | { 0x00000001, NVDEV_ENGINE_MSPPP }, |
31 | { 0x00000100, NVDEV_ENGINE_FIFO }, | 31 | { 0x00000100, NVDEV_ENGINE_FIFO }, |
32 | { 0x00001000, NVDEV_ENGINE_GR }, | 32 | { 0x00001000, NVDEV_ENGINE_GR }, |
33 | { 0x00004000, NVDEV_ENGINE_SEC }, /* NV84:NVA3 */ | 33 | { 0x00004000, NVDEV_ENGINE_SEC }, /* NV84:NVA3 */ |
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/mc/nvc0.c b/drivers/gpu/drm/nouveau/nvkm/subdev/mc/nvc0.c index 5217a5a40447..76f440efa764 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/mc/nvc0.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/mc/nvc0.c | |||
@@ -27,7 +27,7 @@ | |||
27 | const struct nouveau_mc_intr | 27 | const struct nouveau_mc_intr |
28 | nvc0_mc_intr[] = { | 28 | nvc0_mc_intr[] = { |
29 | { 0x04000000, NVDEV_ENGINE_DISP }, /* DISP first, so pageflip timestamps work. */ | 29 | { 0x04000000, NVDEV_ENGINE_DISP }, /* DISP first, so pageflip timestamps work. */ |
30 | { 0x00000001, NVDEV_ENGINE_PPP }, | 30 | { 0x00000001, NVDEV_ENGINE_MSPPP }, |
31 | { 0x00000020, NVDEV_ENGINE_CE0 }, | 31 | { 0x00000020, NVDEV_ENGINE_CE0 }, |
32 | { 0x00000040, NVDEV_ENGINE_CE1 }, | 32 | { 0x00000040, NVDEV_ENGINE_CE1 }, |
33 | { 0x00000080, NVDEV_ENGINE_CE2 }, | 33 | { 0x00000080, NVDEV_ENGINE_CE2 }, |
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv50.c b/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv50.c index 701b9c4ec869..4ac6eb99d55f 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv50.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv50.c | |||
@@ -174,7 +174,7 @@ nv50_vm_flush(struct nouveau_vm *vm) | |||
174 | case NVDEV_ENGINE_GR : vme = 0x00; break; | 174 | case NVDEV_ENGINE_GR : vme = 0x00; break; |
175 | case NVDEV_ENGINE_VP : vme = 0x01; break; | 175 | case NVDEV_ENGINE_VP : vme = 0x01; break; |
176 | case NVDEV_SUBDEV_BAR : vme = 0x06; break; | 176 | case NVDEV_SUBDEV_BAR : vme = 0x06; break; |
177 | case NVDEV_ENGINE_PPP : | 177 | case NVDEV_ENGINE_MSPPP : |
178 | case NVDEV_ENGINE_MPEG : vme = 0x08; break; | 178 | case NVDEV_ENGINE_MPEG : vme = 0x08; break; |
179 | case NVDEV_ENGINE_BSP : | 179 | case NVDEV_ENGINE_BSP : |
180 | case NVDEV_ENGINE_MSVLD : vme = 0x09; break; | 180 | case NVDEV_ENGINE_MSVLD : vme = 0x09; break; |