]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Add xe_mmio_init() initialization function
authorIlia Levi <ilia.levi@intel.com>
Thu, 13 Feb 2025 09:35:59 +0000 (11:35 +0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 18 Feb 2025 16:27:11 +0000 (08:27 -0800)
commiteb79d71e506a1caeb0dedd1bab0e6899e8e74f5b
tree6c063fa3e5bf52da7aec1b4572a03e36b56542bb
parent5bee1e2de39fe41be132ee389529407212894582
drm/xe: Add xe_mmio_init() initialization function

Add a convenience function for minimal initialization of struct xe_mmio.
This function also validates that the entirety of the provided mmio region
is usable with struct xe_reg.

v2: Modify commit message, add kernel doc, refactor assert (Michal)
v3: Fix off-by-one bug, add clarifying macro (Michal)
v4: Derive bitfield width from size (Michal)

Signed-off-by: Ilia Levi <ilia.levi@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250213093559.204652-1-ilia.levi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/regs/xe_reg_defs.h
drivers/gpu/drm/xe/xe_gt.c
drivers/gpu/drm/xe/xe_mmio.c
drivers/gpu/drm/xe/xe_mmio.h