drm/xe/mmio: Cast to u64 when printing
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 19 Jan 2024 00:16:09 +0000 (16:16 -0800)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Wed, 24 Jan 2024 10:13:15 +0000 (11:13 +0100)
commit52e8948c6b6a41603371996b9bc0e43e17d690b4
tree4d774dec2e38aa94ec7a5cb6924da36e9dacea0e
parent32f6c3325703c98edee8f1005ad47b4d8431b758
drm/xe/mmio: Cast to u64 when printing

resource_size_t uses %pa format in printk since the size varies
depending on build options. However to keep the io_size/physical_size
addition in the same call we can't pass the address without adding yet
another variable in these function. Simply cast it to u64 and keep using
%llx.

Fixes: 286089ce6929 ("drm/xe: Improve vram info debug printing")
Cc: Oak Zeng <oak.zeng@intel.com>
Cc: Michael J. Ruhl <michael.j.ruhl@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240119001612.2991381-3-lucas.demarchi@intel.com
(cherry picked from commit 6d8d038364d8ec573e9dc0872e17bee1e5f12490)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
drivers/gpu/drm/xe/xe_mmio.c