✗ CI.checkpatch: warning for fdinfo shared stats

Patchwork patchwork at emeril.freedesktop.org
Tue Jan 30 19:49:30 UTC 2024


== Series Details ==

Series: fdinfo shared stats
URL   : https://patchwork.freedesktop.org/series/129322/
State : warning

== Summary ==

+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
35591fb8b4d5305b37ce31483f85ac0956eaa536
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 66fdc544c419c5f57ae7e2cad06286f4827a9032
Author: Alex Deucher <alexander.deucher at amd.com>
Date:   Tue Jan 30 11:12:35 2024 -0500

    drm/xe: Update shared stats to use the new gem helper
    
    Switch to using the new gem shared memory stats helper
    rather than hand rolling it.
    
    Link: https://lore.kernel.org/all/20231207180225.439482-1-alexander.deucher@amd.com/
    Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
+ /mt/dim checkpatch 885282acc78abc72046bfe6cd677f329fc8263cd drm-intel
d6d4419cc Documentation/gpu: Update documentation on drm-shared-*
d915fe995 drm: add drm_gem_object_is_shared_for_memory_stats() helper
-:36: CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'obj->handle_count > 1'
#36: FILE: drivers/gpu/drm/drm_gem.c:1520:
+	if ((obj->handle_count > 1) || obj->dma_buf)

total: 0 errors, 0 warnings, 1 checks, 26 lines checked
9eb369cfb drm: update drm_show_memory_stats() for dma-bufs
2a426763c drm/amdgpu: add shared fdinfo stats
-:23: CHECK:SPACING: spaces preferred around that '/' (ctx:VxV)
#23: FILE: drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c:100:
+	drm_printf(p, "drm-shared-vram:\t%llu KiB\n", stats.vram_shared/1024UL);
 	                                                               ^

-:24: CHECK:SPACING: spaces preferred around that '/' (ctx:VxV)
#24: FILE: drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c:101:
+	drm_printf(p, "drm-shared-gtt:\t%llu KiB\n", stats.gtt_shared/1024UL);
 	                                                             ^

-:25: CHECK:SPACING: spaces preferred around that '/' (ctx:VxV)
#25: FILE: drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c:102:
+	drm_printf(p, "drm-shared-cpu:\t%llu KiB\n", stats.cpu_shared/1024UL);
 	                                                             ^

-:80: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u64' over 'uint64_t'
#80: FILE: drivers/gpu/drm/amd/amdgpu/amdgpu_object.h:142:
+	uint64_t vram_shared;

-:86: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u64' over 'uint64_t'
#86: FILE: drivers/gpu/drm/amd/amdgpu/amdgpu_object.h:148:
+	uint64_t gtt_shared;

-:90: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u64' over 'uint64_t'
#90: FILE: drivers/gpu/drm/amd/amdgpu/amdgpu_object.h:152:
+	uint64_t cpu_shared;

total: 0 errors, 0 warnings, 6 checks, 64 lines checked
b31cf6190 drm/i915: Update shared stats to use the new gem helper
66fdc544c drm/xe: Update shared stats to use the new gem helper




More information about the Intel-xe mailing list