summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorAndrzej Hajda <andrzej.hajda@intel.com>2024-04-18 16:03:37 +0200
committerNirmoy Das <nirmoy.das@intel.com>2024-05-28 14:43:49 +0200
commit82e0b1299a3ef81a672398c547d8e7f553be793e (patch)
treea86c03d6e8ecf4e934618f7b1658c5497059cc8f /drivers/gpu
parent38007fa96419a9db9719f170b9e8a7877821cdd1 (diff)
downloadlwn-82e0b1299a3ef81a672398c547d8e7f553be793e.tar.gz
lwn-82e0b1299a3ef81a672398c547d8e7f553be793e.zip
drm/xe: allow unaligned start and size xe_res_cursor parameters
xe_res_cursor code does not depend on the alignment. On the other side unaligned accesses are useful from pread/pwrite point of view. Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com> Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240418-xe_res_cursor-no-align-v1-1-8df7834266c9@intel.com Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/xe/xe_res_cursor.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/xe/xe_res_cursor.h b/drivers/gpu/drm/xe/xe_res_cursor.h
index 0a306963aa8e..655af89b31a9 100644
--- a/drivers/gpu/drm/xe/xe_res_cursor.h
+++ b/drivers/gpu/drm/xe/xe_res_cursor.h
@@ -157,8 +157,6 @@ static inline void xe_res_first_sg(const struct sg_table *sg,
struct xe_res_cursor *cur)
{
XE_WARN_ON(!sg);
- XE_WARN_ON(!IS_ALIGNED(start, PAGE_SIZE) ||
- !IS_ALIGNED(size, PAGE_SIZE));
cur->node = NULL;
cur->start = start;
cur->remaining = size;