<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>not sure how i got signed up for this and i don’t see a way to unsubscribe. this is flooding my email with things i don’t care about. </div><div><br></div><div>On Fri, Jul 14, 2023, at 1:14 AM, <a href="mailto:huzhi001@208suo.com">huzhi001@208suo.com</a> wrote:<br></div><blockquote type="cite" id="qt" style=""><div>Signed-off-by: ZhiHu <<a href="mailto:huzhi001@208suo.com">huzhi001@208suo.com</a>><br></div><div>---<br></div><div> .../gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 40 ++++++++++++++-----<br></div><div> 1 file changed, 29 insertions(+), 11 deletions(-)<br></div><div><br></div><div>diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c <br></div><div>b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c<br></div><div>index d8a4d773a58c..b99e0a7c96bb 100644<br></div><div>--- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c<br></div><div>+++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c<br></div><div>@@ -137,15 +137,29 @@ gk104_ectx_bind(struct nvkm_engn *engn, struct <br></div><div>nvkm_cctx *cctx, struct nvkm_chan<br></div><div> u64 addr = 0ULL;<br></div><div><br></div><div> switch (engn->engine->subdev.type) {<br></div><div>- case NVKM_ENGINE_SW : return;<br></div><div>- case NVKM_ENGINE_GR : ptr0 = 0x0210; break;<br></div><div>- case NVKM_ENGINE_SEC : ptr0 = 0x0220; break;<br></div><div>- case NVKM_ENGINE_MSPDEC: ptr0 = 0x0250; break;<br></div><div>- case NVKM_ENGINE_MSPPP : ptr0 = 0x0260; break;<br></div><div>- case NVKM_ENGINE_MSVLD : ptr0 = 0x0270; break;<br></div><div>- case NVKM_ENGINE_VIC : ptr0 = 0x0280; break;<br></div><div>- case NVKM_ENGINE_MSENC : ptr0 = 0x0290; break;<br></div><div>- case NVKM_ENGINE_NVDEC :<br></div><div>+ case NVKM_ENGINE_SW:<br></div><div>+ return;<br></div><div>+ case NVKM_ENGINE_GR:<br></div><div>+ ptr0 = 0x0210;<br></div><div>+ break;<br></div><div>+ case NVKM_ENGINE_SEC:<br></div><div>+ ptr0 = 0x0220;<br></div><div>+ break;<br></div><div>+ case NVKM_ENGINE_MSPDEC:<br></div><div>+ ptr0 = 0x0250;<br></div><div>+ break;<br></div><div>+ case NVKM_ENGINE_MSPPP:<br></div><div>+ ptr0 = 0x0260;<br></div><div>+ break;<br></div><div>+ case NVKM_ENGINE_MSVLD:<br></div><div>+ ptr0 = 0x0270;<br></div><div>+ break;<br></div><div>+ case NVKM_ENGINE_VIC:<br></div><div>+ ptr0 = 0x0280; break;<br></div><div>+ case NVKM_ENGINE_MSENC:<br></div><div>+ ptr0 = 0x0290;<br></div><div>+ break;<br></div><div>+ case NVKM_ENGINE_NVDEC:<br></div><div> ptr1 = 0x0270;<br></div><div> ptr0 = 0x0210;<br></div><div> break;<br></div><div>@@ -435,8 +449,12 @@ gk104_runl_commit(struct nvkm_runl *runl, struct <br></div><div>nvkm_memory *memory, u32 start,<br></div><div> int target;<br></div><div><br></div><div> switch (nvkm_memory_target(memory)) {<br></div><div>- case NVKM_MEM_TARGET_VRAM: target = 0; break;<br></div><div>- case NVKM_MEM_TARGET_NCOH: target = 3; break;<br></div><div>+ case NVKM_MEM_TARGET_VRAM:<br></div><div>+ target = 0;<br></div><div>+ break;<br></div><div>+ case NVKM_MEM_TARGET_NCOH:<br></div><div>+ target = 3;<br></div><div>+ break;<br></div><div> default:<br></div><div> WARN_ON(1);<br></div><div> return;<br></div><div><br></div></blockquote></body></html>