]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/xe: allow unaligned start and size xe_res_cursor parameters
authorAndrzej Hajda <andrzej.hajda@intel.com>
Thu, 18 Apr 2024 14:03:37 +0000 (16:03 +0200)
committerNirmoy Das <nirmoy.das@intel.com>
Tue, 28 May 2024 12:43:49 +0000 (14:43 +0200)
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>
drivers/gpu/drm/xe/xe_res_cursor.h

index 0a306963aa8e51c8535850334bd92933bd7777c1..655af89b31a98a8935ff05c0db446979b96f5731 100644 (file)
@@ -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;