Loading drivers/gpu/drm/nouveau/include/nvkm/engine/sw.h +6 −23 Original line number Diff line number Diff line Loading @@ -3,33 +3,16 @@ #include <core/engine.h> struct nvkm_sw { struct nvkm_engine engine; const struct nvkm_sw_func *func; struct nvkm_engine engine; struct list_head chan; }; bool nvkm_sw_mthd(struct nvkm_sw *sw, int chid, int subc, u32 mthd, u32 data); #define nvkm_sw_create(p,e,c,d) \ nvkm_sw_ctor((p), (e), (c), sizeof(**d), (void **)d) int nvkm_sw_ctor(struct nvkm_object *parent, struct nvkm_object *engine, struct nvkm_oclass *oclass, int length, void **pobject); #define nvkm_sw_destroy(d) \ nvkm_engine_destroy(&(d)->engine) #define nvkm_sw_init(d) \ nvkm_engine_init_old(&(d)->engine) #define nvkm_sw_fini(d,s) \ nvkm_engine_fini_old(&(d)->engine, (s)) #define _nvkm_sw_dtor _nvkm_engine_dtor #define _nvkm_sw_init _nvkm_engine_init #define _nvkm_sw_fini _nvkm_engine_fini extern struct nvkm_oclass *nv04_sw_oclass; extern struct nvkm_oclass *nv10_sw_oclass; extern struct nvkm_oclass *nv50_sw_oclass; extern struct nvkm_oclass *gf100_sw_oclass; void nv04_sw_intr(struct nvkm_subdev *); int nv04_sw_new(struct nvkm_device *, int, struct nvkm_sw **); int nv10_sw_new(struct nvkm_device *, int, struct nvkm_sw **); int nv50_sw_new(struct nvkm_device *, int, struct nvkm_sw **); int gf100_sw_new(struct nvkm_device *, int, struct nvkm_sw **); #endif drivers/gpu/drm/nouveau/nvkm/engine/device/base.c +68 −68 Original line number Diff line number Diff line Loading @@ -90,7 +90,7 @@ nv4_chipset = { .dma = nv04_dma_new, .fifo = nv04_fifo_new, .gr = nv04_gr_new, // .sw = nv04_sw_new, .sw = nv04_sw_new, }; static const struct nvkm_device_chip Loading @@ -110,7 +110,7 @@ nv5_chipset = { .dma = nv04_dma_new, .fifo = nv04_fifo_new, .gr = nv04_gr_new, // .sw = nv04_sw_new, .sw = nv04_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -150,7 +150,7 @@ nv11_chipset = { .dma = nv04_dma_new, .fifo = nv10_fifo_new, .gr = nv15_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -171,7 +171,7 @@ nv15_chipset = { .dma = nv04_dma_new, .fifo = nv10_fifo_new, .gr = nv15_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -192,7 +192,7 @@ nv17_chipset = { .dma = nv04_dma_new, .fifo = nv17_fifo_new, .gr = nv17_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -213,7 +213,7 @@ nv18_chipset = { .dma = nv04_dma_new, .fifo = nv17_fifo_new, .gr = nv17_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -234,7 +234,7 @@ nv1a_chipset = { .dma = nv04_dma_new, .fifo = nv10_fifo_new, .gr = nv15_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -255,7 +255,7 @@ nv1f_chipset = { .dma = nv04_dma_new, .fifo = nv17_fifo_new, .gr = nv17_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -276,7 +276,7 @@ nv20_chipset = { .dma = nv04_dma_new, .fifo = nv17_fifo_new, .gr = nv20_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -297,7 +297,7 @@ nv25_chipset = { .dma = nv04_dma_new, .fifo = nv17_fifo_new, .gr = nv25_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -318,7 +318,7 @@ nv28_chipset = { .dma = nv04_dma_new, .fifo = nv17_fifo_new, .gr = nv25_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -339,7 +339,7 @@ nv2a_chipset = { .dma = nv04_dma_new, .fifo = nv17_fifo_new, .gr = nv2a_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -360,7 +360,7 @@ nv30_chipset = { .dma = nv04_dma_new, .fifo = nv17_fifo_new, .gr = nv30_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -382,7 +382,7 @@ nv31_chipset = { .fifo = nv17_fifo_new, .gr = nv30_gr_new, // .mpeg = nv31_mpeg_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -404,7 +404,7 @@ nv34_chipset = { .fifo = nv17_fifo_new, .gr = nv34_gr_new, // .mpeg = nv31_mpeg_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -425,7 +425,7 @@ nv35_chipset = { .dma = nv04_dma_new, .fifo = nv17_fifo_new, .gr = nv35_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -447,7 +447,7 @@ nv36_chipset = { .fifo = nv17_fifo_new, .gr = nv35_gr_new, // .mpeg = nv31_mpeg_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -472,7 +472,7 @@ nv40_chipset = { .gr = nv40_gr_new, // .mpeg = nv40_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -497,7 +497,7 @@ nv41_chipset = { .gr = nv40_gr_new, // .mpeg = nv40_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -522,7 +522,7 @@ nv42_chipset = { .gr = nv40_gr_new, // .mpeg = nv40_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -547,7 +547,7 @@ nv43_chipset = { .gr = nv40_gr_new, // .mpeg = nv40_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -572,7 +572,7 @@ nv44_chipset = { .gr = nv44_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -597,7 +597,7 @@ nv45_chipset = { .gr = nv40_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -622,7 +622,7 @@ nv46_chipset = { .gr = nv44_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -647,7 +647,7 @@ nv47_chipset = { .gr = nv40_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -672,7 +672,7 @@ nv49_chipset = { .gr = nv40_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -697,7 +697,7 @@ nv4a_chipset = { .gr = nv44_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -722,7 +722,7 @@ nv4b_chipset = { .gr = nv40_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -747,7 +747,7 @@ nv4c_chipset = { .gr = nv44_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -772,7 +772,7 @@ nv4e_chipset = { .gr = nv44_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -800,7 +800,7 @@ nv50_chipset = { .gr = nv50_gr_new, // .mpeg = nv50_mpeg_new, .pm = nv50_pm_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, }; static const struct nvkm_device_chip Loading @@ -825,7 +825,7 @@ nv63_chipset = { .gr = nv44_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -850,7 +850,7 @@ nv67_chipset = { .gr = nv44_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -875,7 +875,7 @@ nv68_chipset = { .gr = nv44_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -905,7 +905,7 @@ nv84_chipset = { .gr = g84_gr_new, // .mpeg = g84_mpeg_new, .pm = g84_pm_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, .vp = g84_vp_new, }; Loading Loading @@ -936,7 +936,7 @@ nv86_chipset = { .gr = g84_gr_new, // .mpeg = g84_mpeg_new, .pm = g84_pm_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, .vp = g84_vp_new, }; Loading Loading @@ -967,7 +967,7 @@ nv92_chipset = { .gr = g84_gr_new, // .mpeg = g84_mpeg_new, .pm = g84_pm_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, .vp = g84_vp_new, }; Loading Loading @@ -998,7 +998,7 @@ nv94_chipset = { .gr = g84_gr_new, // .mpeg = g84_mpeg_new, .pm = g84_pm_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, .vp = g84_vp_new, }; Loading @@ -1023,8 +1023,8 @@ nv96_chipset = { .volt = nv40_volt_new, .dma = nv50_dma_new, .fifo = g84_fifo_new, // .sw = nv50_sw_new, .gr = g84_gr_new, .gr = nv50_gr_new, // .mpeg = g84_mpeg_new, .vp = g84_vp_new, .cipher = g84_cipher_new, Loading Loading @@ -1054,8 +1054,8 @@ nv98_chipset = { .volt = nv40_volt_new, .dma = nv50_dma_new, .fifo = g84_fifo_new, // .sw = nv50_sw_new, .gr = g84_gr_new, .sw = nv50_sw_new, .mspdec = g98_mspdec_new, .sec = g98_sec_new, .msvld = g98_msvld_new, Loading Loading @@ -1091,7 +1091,7 @@ nva0_chipset = { .gr = gt200_gr_new, // .mpeg = g84_mpeg_new, .pm = gt200_pm_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, .vp = g84_vp_new, }; Loading Loading @@ -1125,7 +1125,7 @@ nva3_chipset = { .msppp = gt215_msppp_new, .msvld = gt215_msvld_new, .pm = gt215_pm_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1157,7 +1157,7 @@ nva5_chipset = { .msppp = gt215_msppp_new, .msvld = gt215_msvld_new, .pm = gt215_pm_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1189,7 +1189,7 @@ nva8_chipset = { .msppp = gt215_msppp_new, .msvld = gt215_msvld_new, .pm = gt215_pm_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1220,7 +1220,7 @@ nvaa_chipset = { .msvld = g98_msvld_new, .pm = g84_pm_new, .sec = g98_sec_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1251,7 +1251,7 @@ nvac_chipset = { .msvld = g98_msvld_new, .pm = g84_pm_new, .sec = g98_sec_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1283,7 +1283,7 @@ nvaf_chipset = { .msppp = gt215_msppp_new, .msvld = mcp89_msvld_new, .pm = gt215_pm_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1318,7 +1318,7 @@ nvc0_chipset = { .msppp = gf100_msppp_new, .msvld = gf100_msvld_new, .pm = gf100_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1352,7 +1352,7 @@ nvc1_chipset = { .msppp = gf100_msppp_new, .msvld = gf100_msvld_new, .pm = gf108_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1386,7 +1386,7 @@ nvc3_chipset = { .msppp = gf100_msppp_new, .msvld = gf100_msvld_new, .pm = gf100_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1421,7 +1421,7 @@ nvc4_chipset = { .msppp = gf100_msppp_new, .msvld = gf100_msvld_new, .pm = gf100_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1456,7 +1456,7 @@ nvc8_chipset = { .msppp = gf100_msppp_new, .msvld = gf100_msvld_new, .pm = gf100_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1491,7 +1491,7 @@ nvce_chipset = { .msppp = gf100_msppp_new, .msvld = gf100_msvld_new, .pm = gf100_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1525,7 +1525,7 @@ nvcf_chipset = { .msppp = gf100_msppp_new, .msvld = gf100_msvld_new, .pm = gf100_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1557,7 +1557,7 @@ nvd7_chipset = { .msppp = gf100_msppp_new, .msvld = gf100_msvld_new, .pm = gf117_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1591,7 +1591,7 @@ nvd9_chipset = { .msppp = gf100_msppp_new, .msvld = gf100_msvld_new, .pm = gf117_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1627,7 +1627,7 @@ nve4_chipset = { .msppp = gf100_msppp_new, .msvld = gk104_msvld_new, .pm = gk104_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1663,7 +1663,7 @@ nve6_chipset = { .msppp = gf100_msppp_new, .msvld = gk104_msvld_new, .pm = gk104_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1699,7 +1699,7 @@ nve7_chipset = { .msppp = gf100_msppp_new, .msvld = gk104_msvld_new, .pm = gk104_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading @@ -1723,7 +1723,7 @@ nvea_chipset = { .fifo = gk20a_fifo_new, .gr = gk20a_gr_new, .pm = gk104_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1758,7 +1758,7 @@ nvf0_chipset = { .mspdec = gk104_mspdec_new, .msppp = gf100_msppp_new, .msvld = gk104_msvld_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1793,7 +1793,7 @@ nvf1_chipset = { .mspdec = gk104_mspdec_new, .msppp = gf100_msppp_new, .msvld = gk104_msvld_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1828,7 +1828,7 @@ nv106_chipset = { .mspdec = gk104_mspdec_new, .msppp = gf100_msppp_new, .msvld = gk104_msvld_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1863,7 +1863,7 @@ nv108_chipset = { .mspdec = gk104_mspdec_new, .msppp = gf100_msppp_new, .msvld = gk104_msvld_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1893,7 +1893,7 @@ nv117_chipset = { .dma = gf119_dma_new, .fifo = gk208_fifo_new, .gr = gm107_gr_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1922,7 +1922,7 @@ nv124_chipset = { .dma = gf119_dma_new, .fifo = gm204_fifo_new, .gr = gm204_gr_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1951,7 +1951,7 @@ nv126_chipset = { .dma = gf119_dma_new, .fifo = gm204_fifo_new, .gr = gm206_gr_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading @@ -1972,7 +1972,7 @@ nv12b_chipset = { .dma = gf119_dma_new, .fifo = gm20b_fifo_new, .gr = gm20b_gr_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; #include <core/client.h> Loading drivers/gpu/drm/nouveau/nvkm/engine/device/gf100.c +0 −9 Original line number Diff line number Diff line Loading @@ -28,31 +28,22 @@ gf100_identify(struct nvkm_device *device) { switch (device->chipset) { case 0xc0: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xc4: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xc3: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xce: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xcf: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xc1: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xc8: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xd9: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xd7: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; default: return -EINVAL; Loading drivers/gpu/drm/nouveau/nvkm/engine/device/gk104.c +0 −8 Original line number Diff line number Diff line Loading @@ -28,28 +28,20 @@ gk104_identify(struct nvkm_device *device) { switch (device->chipset) { case 0xe4: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xe7: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xe6: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xea: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xf0: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xf1: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0x106: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0x108: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; default: return -EINVAL; Loading drivers/gpu/drm/nouveau/nvkm/engine/device/gm100.c +0 −4 Original line number Diff line number Diff line Loading @@ -31,7 +31,6 @@ gm100_identify(struct nvkm_device *device) #if 0 #endif device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; #if 0 #endif #if 0 Loading @@ -44,7 +43,6 @@ gm100_identify(struct nvkm_device *device) #endif #if 0 #endif device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; #if 0 #endif break; Loading @@ -55,13 +53,11 @@ gm100_identify(struct nvkm_device *device) #endif #if 0 #endif device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; #if 0 #endif break; case 0x12b: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; default: return -EINVAL; Loading Loading
drivers/gpu/drm/nouveau/include/nvkm/engine/sw.h +6 −23 Original line number Diff line number Diff line Loading @@ -3,33 +3,16 @@ #include <core/engine.h> struct nvkm_sw { struct nvkm_engine engine; const struct nvkm_sw_func *func; struct nvkm_engine engine; struct list_head chan; }; bool nvkm_sw_mthd(struct nvkm_sw *sw, int chid, int subc, u32 mthd, u32 data); #define nvkm_sw_create(p,e,c,d) \ nvkm_sw_ctor((p), (e), (c), sizeof(**d), (void **)d) int nvkm_sw_ctor(struct nvkm_object *parent, struct nvkm_object *engine, struct nvkm_oclass *oclass, int length, void **pobject); #define nvkm_sw_destroy(d) \ nvkm_engine_destroy(&(d)->engine) #define nvkm_sw_init(d) \ nvkm_engine_init_old(&(d)->engine) #define nvkm_sw_fini(d,s) \ nvkm_engine_fini_old(&(d)->engine, (s)) #define _nvkm_sw_dtor _nvkm_engine_dtor #define _nvkm_sw_init _nvkm_engine_init #define _nvkm_sw_fini _nvkm_engine_fini extern struct nvkm_oclass *nv04_sw_oclass; extern struct nvkm_oclass *nv10_sw_oclass; extern struct nvkm_oclass *nv50_sw_oclass; extern struct nvkm_oclass *gf100_sw_oclass; void nv04_sw_intr(struct nvkm_subdev *); int nv04_sw_new(struct nvkm_device *, int, struct nvkm_sw **); int nv10_sw_new(struct nvkm_device *, int, struct nvkm_sw **); int nv50_sw_new(struct nvkm_device *, int, struct nvkm_sw **); int gf100_sw_new(struct nvkm_device *, int, struct nvkm_sw **); #endif
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c +68 −68 Original line number Diff line number Diff line Loading @@ -90,7 +90,7 @@ nv4_chipset = { .dma = nv04_dma_new, .fifo = nv04_fifo_new, .gr = nv04_gr_new, // .sw = nv04_sw_new, .sw = nv04_sw_new, }; static const struct nvkm_device_chip Loading @@ -110,7 +110,7 @@ nv5_chipset = { .dma = nv04_dma_new, .fifo = nv04_fifo_new, .gr = nv04_gr_new, // .sw = nv04_sw_new, .sw = nv04_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -150,7 +150,7 @@ nv11_chipset = { .dma = nv04_dma_new, .fifo = nv10_fifo_new, .gr = nv15_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -171,7 +171,7 @@ nv15_chipset = { .dma = nv04_dma_new, .fifo = nv10_fifo_new, .gr = nv15_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -192,7 +192,7 @@ nv17_chipset = { .dma = nv04_dma_new, .fifo = nv17_fifo_new, .gr = nv17_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -213,7 +213,7 @@ nv18_chipset = { .dma = nv04_dma_new, .fifo = nv17_fifo_new, .gr = nv17_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -234,7 +234,7 @@ nv1a_chipset = { .dma = nv04_dma_new, .fifo = nv10_fifo_new, .gr = nv15_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -255,7 +255,7 @@ nv1f_chipset = { .dma = nv04_dma_new, .fifo = nv17_fifo_new, .gr = nv17_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -276,7 +276,7 @@ nv20_chipset = { .dma = nv04_dma_new, .fifo = nv17_fifo_new, .gr = nv20_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -297,7 +297,7 @@ nv25_chipset = { .dma = nv04_dma_new, .fifo = nv17_fifo_new, .gr = nv25_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -318,7 +318,7 @@ nv28_chipset = { .dma = nv04_dma_new, .fifo = nv17_fifo_new, .gr = nv25_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -339,7 +339,7 @@ nv2a_chipset = { .dma = nv04_dma_new, .fifo = nv17_fifo_new, .gr = nv2a_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -360,7 +360,7 @@ nv30_chipset = { .dma = nv04_dma_new, .fifo = nv17_fifo_new, .gr = nv30_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -382,7 +382,7 @@ nv31_chipset = { .fifo = nv17_fifo_new, .gr = nv30_gr_new, // .mpeg = nv31_mpeg_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -404,7 +404,7 @@ nv34_chipset = { .fifo = nv17_fifo_new, .gr = nv34_gr_new, // .mpeg = nv31_mpeg_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -425,7 +425,7 @@ nv35_chipset = { .dma = nv04_dma_new, .fifo = nv17_fifo_new, .gr = nv35_gr_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -447,7 +447,7 @@ nv36_chipset = { .fifo = nv17_fifo_new, .gr = nv35_gr_new, // .mpeg = nv31_mpeg_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -472,7 +472,7 @@ nv40_chipset = { .gr = nv40_gr_new, // .mpeg = nv40_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -497,7 +497,7 @@ nv41_chipset = { .gr = nv40_gr_new, // .mpeg = nv40_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -522,7 +522,7 @@ nv42_chipset = { .gr = nv40_gr_new, // .mpeg = nv40_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -547,7 +547,7 @@ nv43_chipset = { .gr = nv40_gr_new, // .mpeg = nv40_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -572,7 +572,7 @@ nv44_chipset = { .gr = nv44_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -597,7 +597,7 @@ nv45_chipset = { .gr = nv40_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -622,7 +622,7 @@ nv46_chipset = { .gr = nv44_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -647,7 +647,7 @@ nv47_chipset = { .gr = nv40_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -672,7 +672,7 @@ nv49_chipset = { .gr = nv40_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -697,7 +697,7 @@ nv4a_chipset = { .gr = nv44_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -722,7 +722,7 @@ nv4b_chipset = { .gr = nv40_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -747,7 +747,7 @@ nv4c_chipset = { .gr = nv44_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -772,7 +772,7 @@ nv4e_chipset = { .gr = nv44_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -800,7 +800,7 @@ nv50_chipset = { .gr = nv50_gr_new, // .mpeg = nv50_mpeg_new, .pm = nv50_pm_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, }; static const struct nvkm_device_chip Loading @@ -825,7 +825,7 @@ nv63_chipset = { .gr = nv44_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -850,7 +850,7 @@ nv67_chipset = { .gr = nv44_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading @@ -875,7 +875,7 @@ nv68_chipset = { .gr = nv44_gr_new, // .mpeg = nv44_mpeg_new, .pm = nv40_pm_new, // .sw = nv10_sw_new, .sw = nv10_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -905,7 +905,7 @@ nv84_chipset = { .gr = g84_gr_new, // .mpeg = g84_mpeg_new, .pm = g84_pm_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, .vp = g84_vp_new, }; Loading Loading @@ -936,7 +936,7 @@ nv86_chipset = { .gr = g84_gr_new, // .mpeg = g84_mpeg_new, .pm = g84_pm_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, .vp = g84_vp_new, }; Loading Loading @@ -967,7 +967,7 @@ nv92_chipset = { .gr = g84_gr_new, // .mpeg = g84_mpeg_new, .pm = g84_pm_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, .vp = g84_vp_new, }; Loading Loading @@ -998,7 +998,7 @@ nv94_chipset = { .gr = g84_gr_new, // .mpeg = g84_mpeg_new, .pm = g84_pm_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, .vp = g84_vp_new, }; Loading @@ -1023,8 +1023,8 @@ nv96_chipset = { .volt = nv40_volt_new, .dma = nv50_dma_new, .fifo = g84_fifo_new, // .sw = nv50_sw_new, .gr = g84_gr_new, .gr = nv50_gr_new, // .mpeg = g84_mpeg_new, .vp = g84_vp_new, .cipher = g84_cipher_new, Loading Loading @@ -1054,8 +1054,8 @@ nv98_chipset = { .volt = nv40_volt_new, .dma = nv50_dma_new, .fifo = g84_fifo_new, // .sw = nv50_sw_new, .gr = g84_gr_new, .sw = nv50_sw_new, .mspdec = g98_mspdec_new, .sec = g98_sec_new, .msvld = g98_msvld_new, Loading Loading @@ -1091,7 +1091,7 @@ nva0_chipset = { .gr = gt200_gr_new, // .mpeg = g84_mpeg_new, .pm = gt200_pm_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, .vp = g84_vp_new, }; Loading Loading @@ -1125,7 +1125,7 @@ nva3_chipset = { .msppp = gt215_msppp_new, .msvld = gt215_msvld_new, .pm = gt215_pm_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1157,7 +1157,7 @@ nva5_chipset = { .msppp = gt215_msppp_new, .msvld = gt215_msvld_new, .pm = gt215_pm_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1189,7 +1189,7 @@ nva8_chipset = { .msppp = gt215_msppp_new, .msvld = gt215_msvld_new, .pm = gt215_pm_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1220,7 +1220,7 @@ nvaa_chipset = { .msvld = g98_msvld_new, .pm = g84_pm_new, .sec = g98_sec_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1251,7 +1251,7 @@ nvac_chipset = { .msvld = g98_msvld_new, .pm = g84_pm_new, .sec = g98_sec_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1283,7 +1283,7 @@ nvaf_chipset = { .msppp = gt215_msppp_new, .msvld = mcp89_msvld_new, .pm = gt215_pm_new, // .sw = nv50_sw_new, .sw = nv50_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1318,7 +1318,7 @@ nvc0_chipset = { .msppp = gf100_msppp_new, .msvld = gf100_msvld_new, .pm = gf100_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1352,7 +1352,7 @@ nvc1_chipset = { .msppp = gf100_msppp_new, .msvld = gf100_msvld_new, .pm = gf108_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1386,7 +1386,7 @@ nvc3_chipset = { .msppp = gf100_msppp_new, .msvld = gf100_msvld_new, .pm = gf100_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1421,7 +1421,7 @@ nvc4_chipset = { .msppp = gf100_msppp_new, .msvld = gf100_msvld_new, .pm = gf100_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1456,7 +1456,7 @@ nvc8_chipset = { .msppp = gf100_msppp_new, .msvld = gf100_msvld_new, .pm = gf100_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1491,7 +1491,7 @@ nvce_chipset = { .msppp = gf100_msppp_new, .msvld = gf100_msvld_new, .pm = gf100_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1525,7 +1525,7 @@ nvcf_chipset = { .msppp = gf100_msppp_new, .msvld = gf100_msvld_new, .pm = gf100_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1557,7 +1557,7 @@ nvd7_chipset = { .msppp = gf100_msppp_new, .msvld = gf100_msvld_new, .pm = gf117_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1591,7 +1591,7 @@ nvd9_chipset = { .msppp = gf100_msppp_new, .msvld = gf100_msvld_new, .pm = gf117_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1627,7 +1627,7 @@ nve4_chipset = { .msppp = gf100_msppp_new, .msvld = gk104_msvld_new, .pm = gk104_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1663,7 +1663,7 @@ nve6_chipset = { .msppp = gf100_msppp_new, .msvld = gk104_msvld_new, .pm = gk104_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1699,7 +1699,7 @@ nve7_chipset = { .msppp = gf100_msppp_new, .msvld = gk104_msvld_new, .pm = gk104_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading @@ -1723,7 +1723,7 @@ nvea_chipset = { .fifo = gk20a_fifo_new, .gr = gk20a_gr_new, .pm = gk104_pm_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1758,7 +1758,7 @@ nvf0_chipset = { .mspdec = gk104_mspdec_new, .msppp = gf100_msppp_new, .msvld = gk104_msvld_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1793,7 +1793,7 @@ nvf1_chipset = { .mspdec = gk104_mspdec_new, .msppp = gf100_msppp_new, .msvld = gk104_msvld_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1828,7 +1828,7 @@ nv106_chipset = { .mspdec = gk104_mspdec_new, .msppp = gf100_msppp_new, .msvld = gk104_msvld_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1863,7 +1863,7 @@ nv108_chipset = { .mspdec = gk104_mspdec_new, .msppp = gf100_msppp_new, .msvld = gk104_msvld_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1893,7 +1893,7 @@ nv117_chipset = { .dma = gf119_dma_new, .fifo = gk208_fifo_new, .gr = gm107_gr_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1922,7 +1922,7 @@ nv124_chipset = { .dma = gf119_dma_new, .fifo = gm204_fifo_new, .gr = gm204_gr_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading Loading @@ -1951,7 +1951,7 @@ nv126_chipset = { .dma = gf119_dma_new, .fifo = gm204_fifo_new, .gr = gm206_gr_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; static const struct nvkm_device_chip Loading @@ -1972,7 +1972,7 @@ nv12b_chipset = { .dma = gf119_dma_new, .fifo = gm20b_fifo_new, .gr = gm20b_gr_new, // .sw = gf100_sw_new, .sw = gf100_sw_new, }; #include <core/client.h> Loading
drivers/gpu/drm/nouveau/nvkm/engine/device/gf100.c +0 −9 Original line number Diff line number Diff line Loading @@ -28,31 +28,22 @@ gf100_identify(struct nvkm_device *device) { switch (device->chipset) { case 0xc0: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xc4: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xc3: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xce: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xcf: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xc1: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xc8: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xd9: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xd7: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; default: return -EINVAL; Loading
drivers/gpu/drm/nouveau/nvkm/engine/device/gk104.c +0 −8 Original line number Diff line number Diff line Loading @@ -28,28 +28,20 @@ gk104_identify(struct nvkm_device *device) { switch (device->chipset) { case 0xe4: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xe7: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xe6: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xea: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xf0: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0xf1: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0x106: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; case 0x108: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; default: return -EINVAL; Loading
drivers/gpu/drm/nouveau/nvkm/engine/device/gm100.c +0 −4 Original line number Diff line number Diff line Loading @@ -31,7 +31,6 @@ gm100_identify(struct nvkm_device *device) #if 0 #endif device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; #if 0 #endif #if 0 Loading @@ -44,7 +43,6 @@ gm100_identify(struct nvkm_device *device) #endif #if 0 #endif device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; #if 0 #endif break; Loading @@ -55,13 +53,11 @@ gm100_identify(struct nvkm_device *device) #endif #if 0 #endif device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; #if 0 #endif break; case 0x12b: device->oclass[NVDEV_ENGINE_SW ] = gf100_sw_oclass; break; default: return -EINVAL; Loading