drm/nouveau/fifo:Fix Nineteen occurrences of the gk104.c error: ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxE) ERROR: space prohibited before that ':' (ctx:WxE) ERROR: trailing statements should be on next line ERROR: trailing s tatements should be on next line
Subsystems (3)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 drm/nouveau/fifo:Fix Nineteen occurrences of the gk104.c error: ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxE) ERROR: space prohibited before that ':' (ctx:WxE) ERROR: trailing statements should be on next line ERROR: trailing s tatements should be on next line
Fix Nineteen occurrences of the checkpatch.pl error:
ERROR: space prohibited before that ':' (ctx:WxW)
ERROR: trailing statements should be on next line
ERROR: space prohibited before that ':' (ctx:WxW)
ERROR: trailing statements should be on next line
ERROR: space prohibited before that ':' (ctx:WxW)
ERROR: trailing statements should be on next line
ERROR: trailing statements should be on next line
ERROR: space prohibited before that ':' (ctx:WxW)
ERROR: trailing statements should be on next line
ERROR: space prohibited before that ':' (ctx:WxW)
ERROR: trailing statements should be on next line
ERROR: space prohibited before that ':' (ctx:WxW)
ERROR: trailing statements should be on next line
ERROR: space prohibited before that ':' (ctx:WxW)
ERROR: trailing statements should be on next line
ERROR: space prohibited before that ':' (ctx:WxE)
ERROR: space prohibited before that ':' (ctx:WxE)
ERROR: trailing statements should be on next line
ERROR: trailing statements should be on next line
--- .../gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 40 ++++++++++++++----- 1 file changed, 29 insertions(+), 11 deletions(-)
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +29 -11
@@ -137,15 +137,29 @@ gk104_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chanu64 addr =0ULL ;switch (engn->engine->subdev.type) { -case NVKM_ENGINE_SW :return ; -case NVKM_ENGINE_GR : ptr0 =0x0210 ;break ; -case NVKM_ENGINE_SEC : ptr0 =0x0220 ;break ; -case NVKM_ENGINE_MSPDEC : ptr0 =0x0250 ;break ; -case NVKM_ENGINE_MSPPP : ptr0 =0x0260 ;break ; -case NVKM_ENGINE_MSVLD : ptr0 =0x0270 ;break ; -case NVKM_ENGINE_VIC : ptr0 =0x0280 ;break ; -case NVKM_ENGINE_MSENC : ptr0 =0x0290 ;break ; -case NVKM_ENGINE_NVDEC : +case NVKM_ENGINE_SW : +return ; +case NVKM_ENGINE_GR : + ptr0 =0x0210 ; +break ; +case NVKM_ENGINE_SEC : + ptr0 =0x0220 ; +break ; +case NVKM_ENGINE_MSPDEC : + ptr0 =0x0250 ; +break ; +case NVKM_ENGINE_MSPPP : + ptr0 =0x0260 ; +break ; +case NVKM_ENGINE_MSVLD : + ptr0 =0x0270 ; +break ; +case NVKM_ENGINE_VIC : + ptr0 =0x0280 ;break ; +case NVKM_ENGINE_MSENC : + ptr0 =0x0290 ; +break ; +case NVKM_ENGINE_NVDEC : ptr1 =0x0270 ; ptr0 =0x0210 ;break ;
@@ -435,8 +449,12 @@ gk104_runl_commit(struct nvkm_runl *runl, struct nvkm_memory *memory, u32 start,int target;switch (nvkm_memory_target (memory)) { -case NVKM_MEM_TARGET_VRAM : target =0 ;break ; -case NVKM_MEM_TARGET_NCOH : target =3 ;break ; +case NVKM_MEM_TARGET_VRAM : + target =0 ; +break ; +case NVKM_MEM_TARGET_NCOH : + target =3 ; +break ;default :WARN_ON (1 );return ;
PATCH 1/1 drm/nouveau/fifo:Fix Nineteen occurrences of the gk104.c error: ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxE) ERROR: space prohibited before that ':' (ctx:WxE) ERROR: trailing statements should be on next line ERROR: trailing s tatements should be on next line
In reply to a message not in the archive--- .../gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 40 ++++++++++++++----- 1 file changed, 29 insertions(+), 11 deletions(-)
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +29 -11
@@ -137,15 +137,29 @@ gk104_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chanu64 addr =0ULL ;switch (engn->engine->subdev.type) { -case NVKM_ENGINE_SW :return ; -case NVKM_ENGINE_GR : ptr0 =0x0210 ;break ; -case NVKM_ENGINE_SEC : ptr0 =0x0220 ;break ; -case NVKM_ENGINE_MSPDEC : ptr0 =0x0250 ;break ; -case NVKM_ENGINE_MSPPP : ptr0 =0x0260 ;break ; -case NVKM_ENGINE_MSVLD : ptr0 =0x0270 ;break ; -case NVKM_ENGINE_VIC : ptr0 =0x0280 ;break ; -case NVKM_ENGINE_MSENC : ptr0 =0x0290 ;break ; -case NVKM_ENGINE_NVDEC : +case NVKM_ENGINE_SW : +return ; +case NVKM_ENGINE_GR : + ptr0 =0x0210 ; +break ; +case NVKM_ENGINE_SEC : + ptr0 =0x0220 ; +break ; +case NVKM_ENGINE_MSPDEC : + ptr0 =0x0250 ; +break ; +case NVKM_ENGINE_MSPPP : + ptr0 =0x0260 ; +break ; +case NVKM_ENGINE_MSVLD : + ptr0 =0x0270 ; +break ; +case NVKM_ENGINE_VIC : + ptr0 =0x0280 ;break ; +case NVKM_ENGINE_MSENC : + ptr0 =0x0290 ; +break ; +case NVKM_ENGINE_NVDEC : ptr1 =0x0270 ; ptr0 =0x0210 ;break ;
@@ -435,8 +449,12 @@ gk104_runl_commit(struct nvkm_runl *runl, struct nvkm_memory *memory, u32 start,int target;switch (nvkm_memory_target (memory)) { -case NVKM_MEM_TARGET_VRAM : target =0 ;break ; -case NVKM_MEM_TARGET_NCOH : target =3 ;break ; +case NVKM_MEM_TARGET_VRAM : + target =0 ; +break ; +case NVKM_MEM_TARGET_NCOH : + target =3 ; +break ;default :WARN_ON (1 );return ;
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.
Quoted 67 lines · On Fri, Jul 14, 2023, at 1:14 AM, [email protected] wrote:
Signed-off-by ZhiHu <[email protected]>--- .../gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 40 ++++++++++++++----- 1 file changed, 29 insertions(+), 11 deletions(-)drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +0
-0@@ -137,15 +137,29 @@ gk104_ectx_bind(struct nvkm_engn *engn, struct
nvkm_cctx*cctx, structnvkm_chanu64 addr = 0ULL; switch (engn->engine->subdev.type) {drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +29
-11-case NVKM_ENGINE_SW :return ; -case NVKM_ENGINE_GR : ptr0 =0x0210 ;break ; -case NVKM_ENGINE_SEC : ptr0 =0x0220 ;break ; -case NVKM_ENGINE_MSPDEC : ptr0 =0x0250 ;break ; -case NVKM_ENGINE_MSPPP : ptr0 =0x0260 ;break ; -case NVKM_ENGINE_MSVLD : ptr0 =0x0270 ;break ; -case NVKM_ENGINE_VIC : ptr0 =0x0280 ;break ; -case NVKM_ENGINE_MSENC : ptr0 =0x0290 ;break ; -case NVKM_ENGINE_NVDEC : +case NVKM_ENGINE_SW : +return ; +case NVKM_ENGINE_GR : + ptr0 =0x0210 ; +break ; +case NVKM_ENGINE_SEC : + ptr0 =0x0220 ; +break ; +case NVKM_ENGINE_MSPDEC : + ptr0 =0x0250 ; +break ; +case NVKM_ENGINE_MSPPP : + ptr0 =0x0260 ; +break ; +case NVKM_ENGINE_MSVLD : + ptr0 =0x0270 ; +break ; +case NVKM_ENGINE_VIC : + ptr0 =0x0280 ;break ; +case NVKM_ENGINE_MSENC : + ptr0 =0x0290 ; +break ; +case NVKM_ENGINE_NVDEC : ptr1 =0x0270 ; ptr0 =0x0210 ;break ;@@ -435,8 +449,12 @@ gk104_runl_commit(struct nvkm_runl *runl, struct nvkm_memory *memory, u32 start, int target;switch (nvkm_memory_target (memory)) { -case NVKM_MEM_TARGET_VRAM : target =0 ;break ; -case NVKM_MEM_TARGET_NCOH : target =3 ;break ; +case NVKM_MEM_TARGET_VRAM : + target =0 ; +break ; +case NVKM_MEM_TARGET_NCOH : + target =3 ; +break ;default :WARN_ON (1 );return;
Re: [Nouveau] [PATCH] drm/nouveau/fifo:Fix Nineteen occurrences of the gk104.c error: ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxE) ERROR: space prohibited before that ':' (ctx:WxE) ERROR: trailing statements should be on next line ERROR: trail
You can unsubscribe here: https://lists.freedesktop.org/mailman/listinfo/nouveau
Den mån 24 juli 2023 kl 19:16 skrev Mark Dymek <[email protected]>:
Quoted 72 lines
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.
On Fri, Jul 14, 2023, at 1:14 AM, [email protected] wrote:
Signed-off-by ZhiHu <[email protected]>--- .../gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 40 ++++++++++++++----- 1 file changed, 29 insertions(+), 11 deletions(-)drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +0
-0@@ -137,15 +137,29 @@ gk104_ectx_bind(struct nvkm_engn *engn, struct
nvkm_cctx*cctx, structnvkm_chanu64 addr = 0ULL; switch (engn->engine->subdev.type) {drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +29
-11-case NVKM_ENGINE_SW :return ; -case NVKM_ENGINE_GR : ptr0 =0x0210 ;break ; -case NVKM_ENGINE_SEC : ptr0 =0x0220 ;break ; -case NVKM_ENGINE_MSPDEC : ptr0 =0x0250 ;break ; -case NVKM_ENGINE_MSPPP : ptr0 =0x0260 ;break ; -case NVKM_ENGINE_MSVLD : ptr0 =0x0270 ;break ; -case NVKM_ENGINE_VIC : ptr0 =0x0280 ;break ; -case NVKM_ENGINE_MSENC : ptr0 =0x0290 ;break ; -case NVKM_ENGINE_NVDEC : +case NVKM_ENGINE_SW : +return ; +case NVKM_ENGINE_GR : + ptr0 =0x0210 ; +break ; +case NVKM_ENGINE_SEC : + ptr0 =0x0220 ; +break ; +case NVKM_ENGINE_MSPDEC : + ptr0 =0x0250 ; +break ; +case NVKM_ENGINE_MSPPP : + ptr0 =0x0260 ; +break ; +case NVKM_ENGINE_MSVLD : + ptr0 =0x0270 ; +break ; +case NVKM_ENGINE_VIC : + ptr0 =0x0280 ;break ; +case NVKM_ENGINE_MSENC : + ptr0 =0x0290 ; +break ; +case NVKM_ENGINE_NVDEC : ptr1 =0x0270 ; ptr0 =0x0210 ;break ;@@ -435,8 +449,12 @@ gk104_runl_commit(struct nvkm_runl *runl, struct nvkm_memory *memory, u32 start, int target;switch (nvkm_memory_target (memory)) { -case NVKM_MEM_TARGET_VRAM : target =0 ;break ; -case NVKM_MEM_TARGET_NCOH : target =3 ;break ; +case NVKM_MEM_TARGET_VRAM : + target =0 ; +break ; +case NVKM_MEM_TARGET_NCOH : + target =3 ; +break ;default :WARN_ON (1 );return;
PATCH 1/1 drm/nouveau/fifo:Fix Nineteen occurrences of the gk104.c error: ERROR: space prohibited before that ':' (ctx:WxW) ERROR: : trailing statements should be on next line
In reply to a message not in the archive--- .../gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 40 ++++++++++++++----- 1 file changed, 29 insertions(+), 11 deletions(-)
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +29 -11
@@ -137,15 +137,29 @@ gk104_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chanu64 addr =0ULL ;switch (engn->engine->subdev.type) { -case NVKM_ENGINE_SW :return ; -case NVKM_ENGINE_GR : ptr0 =0x0210 ;break ; -case NVKM_ENGINE_SEC : ptr0 =0x0220 ;break ; -case NVKM_ENGINE_MSPDEC : ptr0 =0x0250 ;break ; -case NVKM_ENGINE_MSPPP : ptr0 =0x0260 ;break ; -case NVKM_ENGINE_MSVLD : ptr0 =0x0270 ;break ; -case NVKM_ENGINE_VIC : ptr0 =0x0280 ;break ; -case NVKM_ENGINE_MSENC : ptr0 =0x0290 ;break ; -case NVKM_ENGINE_NVDEC : +case NVKM_ENGINE_SW : +return ; +case NVKM_ENGINE_GR : + ptr0 =0x0210 ; +break ; +case NVKM_ENGINE_SEC : + ptr0 =0x0220 ; +break ; +case NVKM_ENGINE_MSPDEC : + ptr0 =0x0250 ; +break ; +case NVKM_ENGINE_MSPPP : + ptr0 =0x0260 ; +break ; +case NVKM_ENGINE_MSVLD : + ptr0 =0x0270 ; +break ; +case NVKM_ENGINE_VIC : + ptr0 =0x0280 ;break ; +case NVKM_ENGINE_MSENC : + ptr0 =0x0290 ; +break ; +case NVKM_ENGINE_NVDEC : ptr1 =0x0270 ; ptr0 =0x0210 ;break ;
@@ -435,8 +449,12 @@ gk104_runl_commit(struct nvkm_runl *runl, struct nvkm_memory *memory, u32 start,int target;switch (nvkm_memory_target (memory)) { -case NVKM_MEM_TARGET_VRAM : target =0 ;break ; -case NVKM_MEM_TARGET_NCOH : target =3 ;break ; +case NVKM_MEM_TARGET_VRAM : + target =0 ; +break ; +case NVKM_MEM_TARGET_NCOH : + target =3 ; +break ;default :WARN_ON (1 );return ;
PATCH 1/1 drm/nouveau/fifo:Fix Nineteen occurrences of the gk104.c error: ERROR: : trailing statements should be on next line
In reply to a message not in the archive--- .../gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 40 ++++++++++++++----- 1 file changed, 29 insertions(+), 11 deletions(-)
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +29 -11
@@ -137,15 +137,29 @@ gk104_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chanu64 addr =0ULL ;switch (engn->engine->subdev.type) { -case NVKM_ENGINE_SW :return ; -case NVKM_ENGINE_GR : ptr0 =0x0210 ;break ; -case NVKM_ENGINE_SEC : ptr0 =0x0220 ;break ; -case NVKM_ENGINE_MSPDEC : ptr0 =0x0250 ;break ; -case NVKM_ENGINE_MSPPP : ptr0 =0x0260 ;break ; -case NVKM_ENGINE_MSVLD : ptr0 =0x0270 ;break ; -case NVKM_ENGINE_VIC : ptr0 =0x0280 ;break ; -case NVKM_ENGINE_MSENC : ptr0 =0x0290 ;break ; -case NVKM_ENGINE_NVDEC : +case NVKM_ENGINE_SW : +return ; +case NVKM_ENGINE_GR : + ptr0 =0x0210 ; +break ; +case NVKM_ENGINE_SEC : + ptr0 =0x0220 ; +break ; +case NVKM_ENGINE_MSPDEC : + ptr0 =0x0250 ; +break ; +case NVKM_ENGINE_MSPPP : + ptr0 =0x0260 ; +break ; +case NVKM_ENGINE_MSVLD : + ptr0 =0x0270 ; +break ; +case NVKM_ENGINE_VIC : + ptr0 =0x0280 ;break ; +case NVKM_ENGINE_MSENC : + ptr0 =0x0290 ; +break ; +case NVKM_ENGINE_NVDEC : ptr1 =0x0270 ; ptr0 =0x0210 ;break ;
@@ -435,8 +449,12 @@ gk104_runl_commit(struct nvkm_runl *runl, struct nvkm_memory *memory, u32 start,int target;switch (nvkm_memory_target (memory)) { -case NVKM_MEM_TARGET_VRAM : target =0 ;break ; -case NVKM_MEM_TARGET_NCOH : target =3 ;break ; +case NVKM_MEM_TARGET_VRAM : + target =0 ; +break ; +case NVKM_MEM_TARGET_NCOH : + target =3 ; +break ;default :WARN_ON (1 );return ;
PATCH 1/1 drm/nouveau/fifo:Fix Nineteen occurrences of the gk104.c error: ERROR: : trailing statements should be on next line
--- .../gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 40 ++++++++++++++----- 1 file changed, 29 insertions(+), 11 deletions(-)
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +29 -11
@@ -137,15 +137,29 @@ gk104_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chanu64 addr =0ULL ;switch (engn->engine->subdev.type) { -case NVKM_ENGINE_SW :return ; -case NVKM_ENGINE_GR : ptr0 =0x0210 ;break ; -case NVKM_ENGINE_SEC : ptr0 =0x0220 ;break ; -case NVKM_ENGINE_MSPDEC : ptr0 =0x0250 ;break ; -case NVKM_ENGINE_MSPPP : ptr0 =0x0260 ;break ; -case NVKM_ENGINE_MSVLD : ptr0 =0x0270 ;break ; -case NVKM_ENGINE_VIC : ptr0 =0x0280 ;break ; -case NVKM_ENGINE_MSENC : ptr0 =0x0290 ;break ; -case NVKM_ENGINE_NVDEC : +case NVKM_ENGINE_SW : +return ; +case NVKM_ENGINE_GR : + ptr0 =0x0210 ; +break ; +case NVKM_ENGINE_SEC : + ptr0 =0x0220 ; +break ; +case NVKM_ENGINE_MSPDEC : + ptr0 =0x0250 ; +break ; +case NVKM_ENGINE_MSPPP : + ptr0 =0x0260 ; +break ; +case NVKM_ENGINE_MSVLD : + ptr0 =0x0270 ; +break ; +case NVKM_ENGINE_VIC : + ptr0 =0x0280 ;break ; +case NVKM_ENGINE_MSENC : + ptr0 =0x0290 ; +break ; +case NVKM_ENGINE_NVDEC : ptr1 =0x0270 ; ptr0 =0x0210 ;break ;
@@ -435,8 +449,12 @@ gk104_runl_commit(struct nvkm_runl *runl, struct nvkm_memory *memory, u32 start,int target;switch (nvkm_memory_target (memory)) { -case NVKM_MEM_TARGET_VRAM : target =0 ;break ; -case NVKM_MEM_TARGET_NCOH : target =3 ;break ; +case NVKM_MEM_TARGET_VRAM : + target =0 ; +break ; +case NVKM_MEM_TARGET_NCOH : + target =3 ; +break ;default :WARN_ON (1 );return ;
Fix Nineteen occurrences of the checkpatch.pl error:
ERROR: space prohibited before that ':' (ctx:WxW)
ERROR: trailing statements should be on next line
ERROR: space prohibited before that ':' (ctx:WxW)
ERROR: trailing statements should be on next line
ERROR: space prohibited before that ':' (ctx:WxW)
ERROR: trailing statements should be on next line
ERROR: trailing statements should be on next line
ERROR: space prohibited before that ':' (ctx:WxW)
ERROR: trailing statements should be on next line
ERROR: space prohibited before that ':' (ctx:WxW)
ERROR: trailing statements should be on next line
ERROR: space prohibited before that ':' (ctx:WxW)
ERROR: trailing statements should be on next line
ERROR: space prohibited before that ':' (ctx:WxW)
ERROR: trailing statements should be on next line
ERROR: space prohibited before that ':' (ctx:WxE)
ERROR: space prohibited before that ':' (ctx:WxE)
ERROR: trailing statements should be on next line
ERROR: trailing statements should be on next line
--- .../gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 40 ++++++++++++++----- 1 file changed, 29 insertions(+), 11 deletions(-)
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +29 -11
@@ -137,15 +137,29 @@ gk104_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chanu64 addr =0ULL ;switch (engn->engine->subdev.type) { -case NVKM_ENGINE_SW :return ; -case NVKM_ENGINE_GR : ptr0 =0x0210 ;break ; -case NVKM_ENGINE_SEC : ptr0 =0x0220 ;break ; -case NVKM_ENGINE_MSPDEC : ptr0 =0x0250 ;break ; -case NVKM_ENGINE_MSPPP : ptr0 =0x0260 ;break ; -case NVKM_ENGINE_MSVLD : ptr0 =0x0270 ;break ; -case NVKM_ENGINE_VIC : ptr0 =0x0280 ;break ; -case NVKM_ENGINE_MSENC : ptr0 =0x0290 ;break ; -case NVKM_ENGINE_NVDEC : +case NVKM_ENGINE_SW : +return ; +case NVKM_ENGINE_GR : + ptr0 =0x0210 ; +break ; +case NVKM_ENGINE_SEC : + ptr0 =0x0220 ; +break ; +case NVKM_ENGINE_MSPDEC : + ptr0 =0x0250 ; +break ; +case NVKM_ENGINE_MSPPP : + ptr0 =0x0260 ; +break ; +case NVKM_ENGINE_MSVLD : + ptr0 =0x0270 ; +break ; +case NVKM_ENGINE_VIC : + ptr0 =0x0280 ;break ; +case NVKM_ENGINE_MSENC : + ptr0 =0x0290 ; +break ; +case NVKM_ENGINE_NVDEC : ptr1 =0x0270 ; ptr0 =0x0210 ;break ;
@@ -435,8 +449,12 @@ gk104_runl_commit(struct nvkm_runl *runl, struct nvkm_memory *memory, u32 start,int target;switch (nvkm_memory_target (memory)) { -case NVKM_MEM_TARGET_VRAM : target =0 ;break ; -case NVKM_MEM_TARGET_NCOH : target =3 ;break ; +case NVKM_MEM_TARGET_VRAM : + target =0 ; +break ; +case NVKM_MEM_TARGET_NCOH : + target =3 ; +break ;default :WARN_ON (1 );return ;
--- .../gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 40 ++++++++++++++----- 1 file changed, 29 insertions(+), 11 deletions(-)
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +29 -11
@@ -137,15 +137,29 @@ gk104_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chanu64 addr =0ULL ;switch (engn->engine->subdev.type) { -case NVKM_ENGINE_SW :return ; -case NVKM_ENGINE_GR : ptr0 =0x0210 ;break ; -case NVKM_ENGINE_SEC : ptr0 =0x0220 ;break ; -case NVKM_ENGINE_MSPDEC : ptr0 =0x0250 ;break ; -case NVKM_ENGINE_MSPPP : ptr0 =0x0260 ;break ; -case NVKM_ENGINE_MSVLD : ptr0 =0x0270 ;break ; -case NVKM_ENGINE_VIC : ptr0 =0x0280 ;break ; -case NVKM_ENGINE_MSENC : ptr0 =0x0290 ;break ; -case NVKM_ENGINE_NVDEC : +case NVKM_ENGINE_SW : +return ; +case NVKM_ENGINE_GR : + ptr0 =0x0210 ; +break ; +case NVKM_ENGINE_SEC : + ptr0 =0x0220 ; +break ; +case NVKM_ENGINE_MSPDEC : + ptr0 =0x0250 ; +break ; +case NVKM_ENGINE_MSPPP : + ptr0 =0x0260 ; +break ; +case NVKM_ENGINE_MSVLD : + ptr0 =0x0270 ; +break ; +case NVKM_ENGINE_VIC : + ptr0 =0x0280 ;break ; +case NVKM_ENGINE_MSENC : + ptr0 =0x0290 ; +break ; +case NVKM_ENGINE_NVDEC : ptr1 =0x0270 ; ptr0 =0x0210 ;break ;
@@ -435,8 +449,12 @@ gk104_runl_commit(struct nvkm_runl *runl, struct nvkm_memory *memory, u32 start,int target;switch (nvkm_memory_target (memory)) { -case NVKM_MEM_TARGET_VRAM : target =0 ;break ; -case NVKM_MEM_TARGET_NCOH : target =3 ;break ; +case NVKM_MEM_TARGET_VRAM : + target =0 ; +break ; +case NVKM_MEM_TARGET_NCOH : + target =3 ; +break ;default :WARN_ON (1 );return ;
--- .../gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 40 ++++++++++++++----- 1 file changed, 29 insertions(+), 11 deletions(-)
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +29 -11
@@ -137,15 +137,29 @@ gk104_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chanu64 addr =0ULL ;switch (engn->engine->subdev.type) { -case NVKM_ENGINE_SW :return ; -case NVKM_ENGINE_GR : ptr0 =0x0210 ;break ; -case NVKM_ENGINE_SEC : ptr0 =0x0220 ;break ; -case NVKM_ENGINE_MSPDEC : ptr0 =0x0250 ;break ; -case NVKM_ENGINE_MSPPP : ptr0 =0x0260 ;break ; -case NVKM_ENGINE_MSVLD : ptr0 =0x0270 ;break ; -case NVKM_ENGINE_VIC : ptr0 =0x0280 ;break ; -case NVKM_ENGINE_MSENC : ptr0 =0x0290 ;break ; -case NVKM_ENGINE_NVDEC : +case NVKM_ENGINE_SW : +return ; +case NVKM_ENGINE_GR : + ptr0 =0x0210 ; +break ; +case NVKM_ENGINE_SEC : + ptr0 =0x0220 ; +break ; +case NVKM_ENGINE_MSPDEC : + ptr0 =0x0250 ; +break ; +case NVKM_ENGINE_MSPPP : + ptr0 =0x0260 ; +break ; +case NVKM_ENGINE_MSVLD : + ptr0 =0x0270 ; +break ; +case NVKM_ENGINE_VIC : + ptr0 =0x0280 ;break ; +case NVKM_ENGINE_MSENC : + ptr0 =0x0290 ; +break ; +case NVKM_ENGINE_NVDEC : ptr1 =0x0270 ; ptr0 =0x0210 ;break ;
@@ -435,8 +449,12 @@ gk104_runl_commit(struct nvkm_runl *runl, struct nvkm_memory *memory, u32 start,int target;switch (nvkm_memory_target (memory)) { -case NVKM_MEM_TARGET_VRAM : target =0 ;break ; -case NVKM_MEM_TARGET_NCOH : target =3 ;break ; +case NVKM_MEM_TARGET_VRAM : + target =0 ; +break ; +case NVKM_MEM_TARGET_NCOH : + target =3 ; +break ;default :WARN_ON (1 );return ;
--- .../gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 40 ++++++++++++++----- 1 file changed, 29 insertions(+), 11 deletions(-)
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +29 -11
@@ -137,15 +137,29 @@ gk104_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chanu64 addr =0ULL ;switch (engn->engine->subdev.type) { -case NVKM_ENGINE_SW :return ; -case NVKM_ENGINE_GR : ptr0 =0x0210 ;break ; -case NVKM_ENGINE_SEC : ptr0 =0x0220 ;break ; -case NVKM_ENGINE_MSPDEC : ptr0 =0x0250 ;break ; -case NVKM_ENGINE_MSPPP : ptr0 =0x0260 ;break ; -case NVKM_ENGINE_MSVLD : ptr0 =0x0270 ;break ; -case NVKM_ENGINE_VIC : ptr0 =0x0280 ;break ; -case NVKM_ENGINE_MSENC : ptr0 =0x0290 ;break ; -case NVKM_ENGINE_NVDEC : +case NVKM_ENGINE_SW : +return ; +case NVKM_ENGINE_GR : + ptr0 =0x0210 ; +break ; +case NVKM_ENGINE_SEC : + ptr0 =0x0220 ; +break ; +case NVKM_ENGINE_MSPDEC : + ptr0 =0x0250 ; +break ; +case NVKM_ENGINE_MSPPP : + ptr0 =0x0260 ; +break ; +case NVKM_ENGINE_MSVLD : + ptr0 =0x0270 ; +break ; +case NVKM_ENGINE_VIC : + ptr0 =0x0280 ;break ; +case NVKM_ENGINE_MSENC : + ptr0 =0x0290 ; +break ; +case NVKM_ENGINE_NVDEC : ptr1 =0x0270 ; ptr0 =0x0210 ;break ;
@@ -435,8 +449,12 @@ gk104_runl_commit(struct nvkm_runl *runl, struct nvkm_memory *memory, u32 start,int target;switch (nvkm_memory_target (memory)) { -case NVKM_MEM_TARGET_VRAM : target =0 ;break ; -case NVKM_MEM_TARGET_NCOH : target =3 ;break ; +case NVKM_MEM_TARGET_VRAM : + target =0 ; +break ; +case NVKM_MEM_TARGET_NCOH : + target =3 ; +break ;default :WARN_ON (1 );return ;
Re: [PATCH] drm/nouveau/fifo:Fix Nineteen occurrences of the gk104.c error: ERROR: : trailing statements should be on next line
NAK - checkpatch.pl is a (strongish) guideline, but not a rule. In the cases corrected in the patch series here, we format the switch cases on single lines as it dramatically improves the readability of what is otherwise just a /long/ list of slightly different static mappings. I don't believe we're the only part of the kernel to do this either.
Quoted 53 lines · On Fri, 2023-07-14 at 14:58 +0800, [email protected] wrote:
Signed-off-by ZhiHu <[email protected]>--- .../gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 40 ++++++++++++++----- 1 file changed, 29 insertions(+), 11 deletions(-)drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +0
-0@@ -137,15 +137,29 @@ gk104_ectx_bind(struct nvkm_engn *engn, struct
nvkm_cctx*cctx, structnvkm_chanu64 addr = 0ULL; switch (engn->engine->subdev.type) {drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +23
-9-case NVKM_ENGINE_SW :return ; -case NVKM_ENGINE_GR : ptr0 =0x0210 ;break ; -case NVKM_ENGINE_SEC : ptr0 =0x0220 ;break ; -case NVKM_ENGINE_MSPDEC : ptr0 =0x0250 ;break ; -case NVKM_ENGINE_MSPPP : ptr0 =0x0260 ;break ; -case NVKM_ENGINE_MSVLD : ptr0 =0x0270 ;break ; -case NVKM_ENGINE_VIC : ptr0 =0x0280 ;break ; -case NVKM_ENGINE_MSENC : ptr0 =0x0290 ;break ; -case NVKM_ENGINE_NVDEC : +case NVKM_ENGINE_SW : +return ; +case NVKM_ENGINE_GR : + ptr0 =0x0210 ; +break ; +case NVKM_ENGINE_SEC : + ptr0 =0x0220 ; +break ; +case NVKM_ENGINE_MSPDEC : + ptr0 =0x0250 ; +break ; +case NVKM_ENGINE_MSPPP : + ptr0 =0x0260 ; +break ; +case NVKM_ENGINE_MSVLD : + ptr0 =0x0270 ; +break ; +case NVKM_ENGINE_VIC : + ptr0 =0x0280 ;break ; +case NVKM_ENGINE_MSENC : + ptr0 =0x0290 ; +break ; +case NVKM_ENGINE_NVDEC : ptr1 =0x0270 ; ptr0 =0x0210 ;break ;@@ -435,8 +449,12 @@ gk104_runl_commit(struct nvkm_runl *runl, struct nvkm_memory *memory, u32 start, int target;
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_runl_commit(struct nvkm_runl *runl, struct · line 458
Quoted 10 lines
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +6
-2switch (nvkm_memory_target (memory)) { -case NVKM_MEM_TARGET_VRAM : target =0 ;break ; -case NVKM_MEM_TARGET_NCOH : target =3 ;break ; +case NVKM_MEM_TARGET_VRAM : + target =0 ; +break ; +case NVKM_MEM_TARGET_NCOH : + target =3 ; +break ;
This one isn't very long, but I'd still say it's definitely a lot easier to read in the compact form. If anything, the only change I would make here is formatting the default: case to be on a single line as well
Quoted 3 lines
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +0
-0default :WARN_ON (1 );return;
Signature · 3 lines
Cheers, Lyude Paul (she/her) Software Engineer at Red Hat
Re: [PATCH] drm/nouveau/fifo:Fix Nineteen occurrences of the gk104.c error: ERROR: : trailing statements should be on next line
Quoted 7 lines · Lyude Paul
NAK - checkpatch.pl is a (strongish) guideline, but not a rule. In the cases corrected in the patch series here, we format the switch cases on single lines as it dramatically improves the readability of what is otherwise just a /long/ list of slightly different static mappings. I don't believe we're the only part of the kernel to do this either.
I wished there was a place to document something like "patches whose only reason is 'checkpatch.pl' said so" will be rejected.
I think following some checkpatch rules are sane, but then the argument should be "makes code more clear" or "converts risky coding practises to less risky ones". Or do we have such a place? Maybe we should patch checkpatch.pl instead to throw a warning
Quoted 78 lines · On Fri, 2023-07-14 at 14:58 +0800, [email protected] wrote:
Quoted 53 lines
Signed-off-by ZhiHu <[email protected]>--- .../gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 40 ++++++++++++++----- 1 file changed, 29 insertions(+), 11 deletions(-)drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +0
-0@@ -137,15 +137,29 @@ gk104_ectx_bind(struct nvkm_engn *engn, struct
nvkm_cctx*cctx, structnvkm_chanu64 addr = 0ULL; switch (engn->engine->subdev.type) {drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +23
-9-case NVKM_ENGINE_SW :return ; -case NVKM_ENGINE_GR : ptr0 =0x0210 ;break ; -case NVKM_ENGINE_SEC : ptr0 =0x0220 ;break ; -case NVKM_ENGINE_MSPDEC : ptr0 =0x0250 ;break ; -case NVKM_ENGINE_MSPPP : ptr0 =0x0260 ;break ; -case NVKM_ENGINE_MSVLD : ptr0 =0x0270 ;break ; -case NVKM_ENGINE_VIC : ptr0 =0x0280 ;break ; -case NVKM_ENGINE_MSENC : ptr0 =0x0290 ;break ; -case NVKM_ENGINE_NVDEC : +case NVKM_ENGINE_SW : +return ; +case NVKM_ENGINE_GR : + ptr0 =0x0210 ; +break ; +case NVKM_ENGINE_SEC : + ptr0 =0x0220 ; +break ; +case NVKM_ENGINE_MSPDEC : + ptr0 =0x0250 ; +break ; +case NVKM_ENGINE_MSPPP : + ptr0 =0x0260 ; +break ; +case NVKM_ENGINE_MSVLD : + ptr0 =0x0270 ; +break ; +case NVKM_ENGINE_VIC : + ptr0 =0x0280 ;break ; +case NVKM_ENGINE_MSENC : + ptr0 =0x0290 ; +break ; +case NVKM_ENGINE_NVDEC : ptr1 =0x0270 ; ptr0 =0x0210 ;break ;@@ -435,8 +449,12 @@ gk104_runl_commit(struct nvkm_runl *runl, struct nvkm_memory *memory, u32 start, int target;drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c gk104_runl_commit(struct nvkm_runl *runl, struct · line 458
Quoted 10 lines
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +6
-2switch (nvkm_memory_target (memory)) { -case NVKM_MEM_TARGET_VRAM : target =0 ;break ; -case NVKM_MEM_TARGET_NCOH : target =3 ;break ; +case NVKM_MEM_TARGET_VRAM : + target =0 ; +break ; +case NVKM_MEM_TARGET_NCOH : + target =3 ; +break ;This one isn't very long, but I'd still say it's definitely a lot easier to read in the compact form. If anything, the only change I would make here is formatting the default: case to be on a single line as well
Quoted 3 lines
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c +0
-0default :WARN_ON (1 );return;--
Cheers,
Lyude Paul (she/her)
Software Engineer at Red Hat