mirror of
https://github.com/torvalds/linux.git
synced 2026-09-12 12:34:02 +02:00
A small fix on the error handling of an OA uapi and the
addition of a drm_info message to report FLAT_CSS base misalignment. -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEbSBwaO7dZQkcLOKj+mJfZA7rE8oFAmqZ1RgACgkQ+mJfZA7r E8qyAwf9FrxuliHzaaSz0vxrIlL4LzCYarKbLc9quiSAXEu0TM5QhIYlJJu8PSrp ChZGAutqwG+0x8o/+ztbt+5ij21+FVWOK/PnGEmctBevd+bPPRKAWYghVgSOkFww OuUwUotEDicqIM+Ml8qjDUXgWNRgkeoLknKZH2XTWpRZxPAxZYcC5P6k+DVAN4pC zcurjW9gbcTci2OP9No8EtxuY8+3YCz/Jtwd/Sx1nw0gqoD5l2yPziwdKMOjd3XU imml0dnBEWQYPUliVojj2onZKM9ujR4JHSpFCKAHs5c8UN5srlIEFzh14QgR+9Ux 4ZDXzmbzc3Y3z4oM+dsJOiY3LDUJTA== =XZIm -----END PGP SIGNATURE----- Merge tag 'drm-xe-fixes-2026-09-03' of https://gitlab.freedesktop.org/drm/xe/kernel into drm-fixes A small fix on the error handling of an OA uapi and the addition of a drm_info message to report FLAT_CSS base misalignment. Signed-off-by: Dave Airlie <airlied@redhat.com> From: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patch.msgid.link/apnVOtDv4WAIoj_X@intel.com
This commit is contained in:
commit
c96294afbc
|
|
@ -2435,9 +2435,9 @@ int xe_oa_add_config_ioctl(struct drm_device *dev, u64 data, struct drm_file *fi
|
|||
|
||||
oa_config->id = idr_alloc(&oa->metrics_idr, oa_config, 1, 0, GFP_KERNEL);
|
||||
if (oa_config->id < 0) {
|
||||
drm_dbg(&oa->xe->drm, "Failed to create sysfs entry for OA config\n");
|
||||
drm_dbg(&oa->xe->drm, "Failed to allocate id for OA config\n");
|
||||
err = oa_config->id;
|
||||
goto sysfs_err;
|
||||
goto id_alloc_err;
|
||||
}
|
||||
|
||||
id = oa_config->id;
|
||||
|
|
@ -2448,6 +2448,8 @@ int xe_oa_add_config_ioctl(struct drm_device *dev, u64 data, struct drm_file *fi
|
|||
|
||||
return id;
|
||||
|
||||
id_alloc_err:
|
||||
sysfs_remove_group(oa->metrics_kobj, &oa_config->sysfs_metric);
|
||||
sysfs_err:
|
||||
mutex_unlock(&oa->metrics_lock);
|
||||
reg_err:
|
||||
|
|
|
|||
|
|
@ -90,6 +90,9 @@ static int get_flat_ccs_offset(struct xe_gt *gt, u64 tile_size, u64 *poffset)
|
|||
offset |= offset_lo << 6; /* HW view bits 31:6 */
|
||||
offset *= num_enabled; /* convert to SW view */
|
||||
|
||||
drm_info(&xe->drm, "FLAT_CCS base:%llx, aligned:%s\n", offset,
|
||||
str_yes_no(IS_ALIGNED(offset, SZ_128K)));
|
||||
|
||||
/*
|
||||
* Everything below this offset is handed to the VRAM
|
||||
* allocator, so it has to be the *first* address the
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user