drm/xe: Convert memory device refcount to s32
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 23 Jan 2023 14:41:58 +0000 (15:41 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:27:44 +0000 (18:27 -0500)
commit09a68b4a76e3d870d2fad34099d27cc7e2c9939b
tree596e26f2ea8fc8ea1f06a0a250257ad417b3a790
parent19431b029b8b5d095e77767f269cb142c687084e
drm/xe: Convert memory device refcount to s32

The comparison with < 0 suggests that the memory device access
should be signed to handle underflow. This makes it work more reliably.

As a result, the max refcount is now S32_MAX instead.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_device.c
drivers/gpu/drm/xe/xe_device_types.h