[PATCH 2/2] drm/xe: Remove function xe_device_canonicalize_addr
Himal Prasad Ghimiray
himal.prasad.ghimiray at intel.com
Mon Jul 15 10:55:55 UTC 2024
There is no need for converting regular address to canonical address in
driver, therefore remove unused xe_device_canonicalize_addr.
Cc: José Roberto de Souza <jose.souza at intel.com>
Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray at intel.com>
---
drivers/gpu/drm/xe/xe_device.c | 5 -----
drivers/gpu/drm/xe/xe_device.h | 1 -
2 files changed, 6 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index 06cebaffb451..eb3bb434b180 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -885,11 +885,6 @@ void xe_device_snapshot_print(struct xe_device *xe, struct drm_printer *p)
}
}
-u64 xe_device_canonicalize_addr(struct xe_device *xe, u64 address)
-{
- return sign_extend64(address, xe->info.va_bits - 1);
-}
-
u64 xe_device_uncanonicalize_addr(struct xe_device *xe, u64 address)
{
return address & GENMASK_ULL(xe->info.va_bits - 1, 0);
diff --git a/drivers/gpu/drm/xe/xe_device.h b/drivers/gpu/drm/xe/xe_device.h
index 0a2a3e7fd402..14d4171c467e 100644
--- a/drivers/gpu/drm/xe/xe_device.h
+++ b/drivers/gpu/drm/xe/xe_device.h
@@ -158,7 +158,6 @@ u32 xe_device_ccs_bytes(struct xe_device *xe, u64 size);
void xe_device_snapshot_print(struct xe_device *xe, struct drm_printer *p);
-u64 xe_device_canonicalize_addr(struct xe_device *xe, u64 address);
u64 xe_device_uncanonicalize_addr(struct xe_device *xe, u64 address);
void xe_device_td_flush(struct xe_device *xe);
--
2.34.1
More information about the Intel-xe
mailing list