[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250827133024.41e3c2ac@canb.auug.org.au>
Date: Wed, 27 Aug 2025 13:30:24 +1000
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Lucas De Marchi <lucas.demarchi@...el.com>, Thomas Hellström <thomas.hellstrom@...ux.intel.com>, DRM XE List
<intel-xe@...ts.freedesktop.org>
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@...el.com>, Linux Kernel
Mailing List <linux-kernel@...r.kernel.org>, Linux Next Mailing List
<linux-next@...r.kernel.org>
Subject: linux-next: build warnings after merge of the drm-xe tree
Hi all,
After merging the drm-xe tree, today's linux-next build (htmldocs)
produced these warnings:
Documentation/gpu/driver-uapi:29: include/uapi/drm/xe_drm.h:2078: ERROR: Unexpected indentation. [docutils]
Documentation/gpu/driver-uapi:29: include/uapi/drm/xe_drm.h:2080: WARNING: Block quote ends without a blank line; unexpected unindent. [docutils]
Documentation/gpu/driver-uapi:29: include/uapi/drm/xe_drm.h:2012: ERROR: Unexpected indentation. [docutils]
Documentation/gpu/driver-uapi:29: include/uapi/drm/xe_drm.h:2196: ERROR: Error in "code-block" directive:
maximum 1 argument(s) allowed, 16 supplied.
.. code-block:: C
struct drm_xe_vm_query_mem_range_attr query = {
.vm_id = vm_id,
.start = 0x100000,
.range = 0x2000,
};
// First ioctl call to get num of mem regions and sizeof each attribute
ioctl(fd, DRM_IOCTL_XE_VM_QUERY_MEM_RANGE_ATTRS, &query);
// Allocate buffer for the memory region attributes
void *ptr = malloc(query.num_mem_ranges * query.sizeof_mem_range_attr);
void *ptr_start = ptr;
query.vector_of_mem_attr = (uintptr_t)ptr;
// Second ioctl call to actually fill the memory attributes
ioctl(fd, DRM_IOCTL_XE_VM_QUERY_MEM_RANGE_ATTRS, &query);
// Iterate over the returned memory region attributes
for (unsigned int i = 0; i < query.num_mem_ranges; ++i) {
struct drm_xe_mem_range_attr *attr = (struct drm_xe_mem_range_attr *)ptr;
// Do something with attr
// Move pointer by one entry
ptr += query.sizeof_mem_range_attr;
}
free(ptr_start); [docutils]
Introduced by commits
231bb0ee7aa5 ("drm/xe/uapi: Add madvise interface")
418807860e94 ("drm/xe/uapi: Add UAPI for querying VMA count and memory attributes")
--
Cheers,
Stephen Rothwell
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists