Work around media 52-bit limitation on CRI
Subsystems (2)
cover Work around media 52-bit limitation on CRI
Note this is somewhat of an RFC right now to get early feedback. I'm planning a follow up to clean some of this up shortly.
This is a combination of two series I have on the list now, [1] and [2]. I've already gotten some feedback from Rodrigo and Sashiko on both of these I'm planning to incorporate. Apologies those updates didn't make it in to this series yet. I'm also planning on reviewing at least [1] separately since this likely needs more discussion anyway and isn't strictly related/required to the current series.
The main two patches I'm interested in getting feedback in the meantime are:
drm/xe: Add enable_media module parameter
drm/xe: Work around media 52-bit limitation on CRI
The latter is the crux of the workaround here. The first sets up the module parameter which will be used to disable media by default.
The reason to include a module parameter here is we have some customers who are planning many CRI devices on a single host. The request from those customers is to have a way to configure all of the cards on that host at one time rather than having to loop through each device separately (i.e. module parameter instead of configfs). We do already have a configfs that allows media to be disabled (gt_types_allowed = 'primary'), but this is both meant for developer debug, not production configuration, and it requires that per-device configuration.
The workaround details are provided in that last patch in the series so I won't duplicate all of that here, but at a high level, media is now disabled by default and in order to maintain performance for compute when media is enabled on a system that supports 52-bit addressing, PCIe level address translation is supported, but an internal configuration of address translation for the media GAM is disabled. Again, the details of how this is done are in that last patch.
Again, I'm not planning on merging these as-is, but just to clarify,
[1] is attempting to separate the primary and media GT. This is mostly for debug but also used to refactor for that last patch. Likely in the repost I'll just drop this for now and review it completely separately, skipping this refactor unless it's deemed particularly interesting.
[2] is adding a few fixes and refactors in preparation for the actual workaround so I'll be keeping these in the repost. Two of the three patches there have been reviewed (with some feedback) already. The third I'm planning to drop after feedback from Rodrigo.
[1] https://patchwork.freedesktop.org/series/178247/
[2] https://patchwork.freedesktop.org/series/177792/
Stuart Summers (16):
drm/xe/sysctrl: Use preallocated mailbox staging buffers drm/xe: Process device OOB workarounds during early info init drm/xe/sysctrl: Restore the SoC remapper on every runtime resume drm/xe: Add enable_media module parameter
drm/xe: Detect each GMD_ID IP in a loop
drm/xe: Tolerate a missing graphics IP in xe_info_init() drm/xe: Verify IP presence against GU_CNTL
drm/xe: Guard per-tile primary GT accesses
drm/xe: Stop assuming the root tile has a primary GT drm/xe: Do not claim flat CCS without a graphics IP drm/xe: Run page table updates on the media GT when there is no
primary
drm/xe: Document that gt_types_allowed=media now probes drm/xe: Fall back to CPU copies when the tile cannot blit drm/xe: Require a fully visible VRAM BAR without a primary GT drm/xe: Allow probe without a primary GT
drm/xe: Work around media 52-bit limitation on CRI
drivers/gpu/drm/xe/regs/xe_regs.h | 2 + drivers/gpu/drm/xe/xe_bo.c | 43 +++- drivers/gpu/drm/xe/xe_configfs.c | 10 +- drivers/gpu/drm/xe/xe_defaults.h | 1 + drivers/gpu/drm/xe/xe_device.c | 27 +- drivers/gpu/drm/xe/xe_device.h | 17 ++ drivers/gpu/drm/xe/xe_device_types.h | 2 + drivers/gpu/drm/xe/xe_device_wa_oob.rules | 1 + drivers/gpu/drm/xe/xe_exec_queue.c | 5 +- drivers/gpu/drm/xe/xe_gt.c | 11 +- drivers/gpu/drm/xe/xe_memirq.c | 3 +- drivers/gpu/drm/xe/xe_migrate.c | 45 +++- drivers/gpu/drm/xe/xe_migrate.h | 2 + drivers/gpu/drm/xe/xe_module.c | 7 + drivers/gpu/drm/xe/xe_module.h | 1 + drivers/gpu/drm/xe/xe_oa.c | 24 +- drivers/gpu/drm/xe/xe_pagefault.c | 4 +- drivers/gpu/drm/xe/xe_pci.c | 241 ++++++++++++++---- drivers/gpu/drm/xe/xe_pm.c | 13 +- drivers/gpu/drm/xe/xe_query.c | 3 +- drivers/gpu/drm/xe/xe_sysctrl.c | 191 +++++++++++++- drivers/gpu/drm/xe/xe_sysctrl.h | 2 + drivers/gpu/drm/xe/xe_sysctrl_mailbox.c | 56 ++-- drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h | 34 +++ drivers/gpu/drm/xe/xe_sysctrl_types.h | 17 ++ drivers/gpu/drm/xe/xe_tile.h | 32 +++ drivers/gpu/drm/xe/xe_tlb_inval.c | 20 +- drivers/gpu/drm/xe/xe_vm.c | 2 +- drivers/gpu/drm/xe/xe_vram.c | 15 ++ 29 files changed, 678 insertions(+), 153 deletions(-)
Signature · 1 line
2.43.0
PATCH 1/16 drm/xe/sysctrl: Use preallocated mailbox staging buffers
Every mailbox command stages its request and response through a buffer allocated with GFP_KERNEL. Both are bounded by the maximum mailbox message size and the command mutex already serialises every sender, so embed them in struct xe_sysctrl and drop the per-command allocation.
This removes the only failure mode from sysctrl_prepare_command(), so return the command size directly, and allows commands to be sent from contexts where a GFP_KERNEL allocation is not possible - such as the runtime resume path, which gains a sender later in this series.
--- drivers/gpu/drm/xe/xe_sysctrl_mailbox.c | 56 +++++++++---------------- drivers/gpu/drm/xe/xe_sysctrl_types.h | 11 +++++ 2 files changed, 31 insertions(+), 36 deletions(-)
drivers/gpu/drm/xe/xe_sysctrl_mailbox.c +20 -36
@@ -6,7 +6,6 @@#include <linux/bitfield.h> #include <linux/cleanup.h> #include <linux/minmax.h> -#include <linux/slab.h> #include <linux/sprintf.h> #include <linux/string.h>
@@ -103,36 +102,27 @@ static void sysctrl_clear_response(struct xe_sysctrl *sc)xe_mmio_rmw32 (sc->mmio,SYSCTRL_MB_CTRL ,SYSCTRL_MB_CTRL_RUN_BUSY_OUT ,0 ); } -static int sysctrl_prepare_command (struct xe_device *xe, -u8 group_id,u8 command, -const void *data_in,size_t data_in_len, -u8 **mbox_cmd,size_t *cmd_size) +static size_t sysctrl_prepare_command (struct xe_sysctrl *sc, +u8 group_id,u8 command, +const void *data_in,size_t data_in_len) {struct xe_sysctrl_mailbox_msg_hdr *hdr; -size_t size; -u8 *buffer; +struct xe_device *xe =sc_to_xe (sc); + +lockdep_assert_held (&sc->cmd_lock);xe_assert (xe, command <=SYSCTRL_HDR_COMMAND_MAX );xe_assert (xe, data_in_len <=XE_SYSCTRL_MB_MAX_MESSAGE_SIZE -sizeof (*hdr)); - size =sizeof (*hdr) + data_in_len; - - buffer =kmalloc (size,GFP_KERNEL ); -if (!buffer) -return -ENOMEM ; - - hdr = (struct xe_sysctrl_mailbox_msg_hdr *)buffer; + hdr = (struct xe_sysctrl_mailbox_msg_hdr *)sc->cmd_buf; hdr->data =REG_FIELD_PREP (SYSCTRL_HDR_GROUP_ID_MASK , group_id) |REG_FIELD_PREP (SYSCTRL_HDR_COMMAND_MASK , command);if (data_in && data_in_len) -memcpy (buffer +sizeof (*hdr), data_in, data_in_len); - - *mbox_cmd = buffer; - *cmd_size = size; +memcpy (sc->cmd_buf +sizeof (*hdr), data_in, data_in_len); -return 0 ; +return sizeof (*hdr) + data_in_len; } static int sysctrl_send_frames(struct xe_sysctrl *sc,
@@ -231,14 +221,17 @@ static int sysctrl_receive_frames(struct xe_sysctrl *sc,struct xe_sysctrl_mailbox_msg_hdr *hdr;struct xe_device *xe =sc_to_xe (sc);size_t remain =sizeof (*hdr) + data_out_len; - u8 *buffer __free(kfree) = kzalloc(remain, GFP_KERNEL); +u8 *buffer = sc->resp_buf;size_t frame_size;bool done = false;int ret =0 ;u8 *out; -if (!buffer) -return -ENOMEM ; +lockdep_assert_held (&sc->cmd_lock); + +xe_assert (xe, data_out_len <=XE_SYSCTRL_MB_MAX_MESSAGE_SIZE -sizeof (*hdr)); + +memset (buffer,0 , remain); out = buffer;while (!done && remain) {
@@ -360,8 +353,7 @@ int xe_sysctrl_send_command(struct xe_sysctrl *sc, {struct xe_device *xe =sc_to_xe (sc);u8 group_id, command_code; -u8 *mbox_cmd =NULL ; -size_t cmd_size =0 ; +size_t cmd_size;unsigned int timeout_ms;int ret;
@@ -380,25 +372,17 @@ int xe_sysctrl_send_command(struct xe_sysctrl *sc,might_sleep (); - ret =sysctrl_prepare_command (xe, group_id, command_code, - cmd->data_in, cmd->data_in_len, - &mbox_cmd, &cmd_size); -if (ret) { -xe_log_err (xe,SYSCTRL , ret,"Failed to prepare command %#x.%#x\n" , - group_id, command_code); -return ret; - } -guard (mutex)(&sc->cmd_lock); - ret =sysctrl_send_command (sc, mbox_cmd, cmd_size, + cmd_size =sysctrl_prepare_command (sc, group_id, command_code, + cmd->data_in, cmd->data_in_len); + + ret =sysctrl_send_command (sc, sc->cmd_buf, cmd_size, cmd->data_out, cmd->data_out_len, rdata_len, timeout_ms);if (ret)xe_log_err (xe,SYSCTRL , ret,"Mailbox command failed to send %#x.%#x\n" , group_id, command_code); -kfree (mbox_cmd); -return ret; }
drivers/gpu/drm/xe/xe_sysctrl_types.h +11 -0
@@ -58,6 +58,17 @@ struct xe_sysctrl {/** @cmd_lock: Mutex protecting mailbox command operations */ struct mutex cmd_lock; +/** +* @cmd_buf: Request staging buffer, sized to the maximum mailbox +* message. Preallocated because commands are sent from the runtime +* resume path, which may be entered from reclaim. Protected by +* @cmd_lock. +*/ +u8 cmd_buf[XE_SYSCTRL_MB_MAX_MESSAGE_SIZE ]; + +/** @resp_buf: Response staging buffer, see @cmd_buf */ +u8 resp_buf[XE_SYSCTRL_MB_MAX_MESSAGE_SIZE ]; +/** @work: Pending events worker */ struct work_struct work;
Signature · 1 line
2.43.0
[email protected]
AI reviewRe: [PATCH 01/16] drm/xe/sysctrl: Use preallocated mailbox staging buffers
Thank you for your contribution! Sashiko AI review found no new issues in this patch, but noticed 1 related pre-existing issue it does not introduce: - [High] drm/xe: firmware mailbox hang in…
Thank you for your contribution! Sashiko AI review found no new issues in this patch, but noticed 1 related pre-existing issue it does not introduce:
- [High] drm/xe: firmware mailbox hang in sysctrl_receive_frames() [1] --
commit ee97ee7c6a82e33cb4ded6d0131b1da9156a60a6
Author: Stuart Summers <[email protected]>
drm/xe/sysctrl: Use preallocated mailbox staging buffers
This commit embeds preallocated request and response staging buffers into struct xe_sysctrl, protected by cmd_lock, to avoid GFP_KERNEL allocations when sending mailbox commands.
Quoted 4 lines
drivers/gpu/drm/xe/xe_sysctrl_mailbox.c +0
-0
[ ... ]
Quoted 11 lines
drivers/gpu/drm/xe/xe_sysctrl_mailbox.c +1
-1@@ -231,14 +221,17 @@ static int sysctrl_receive_frames(struct xe_sysctrl *sc,struct xe_sysctrl_mailbox_msg_hdr *hdr;struct xe_device *xe =sc_to_xe (sc);size_t remain =sizeof (*hdr) + data_out_len; - u8 *buffer __free(kfree) = kzalloc(remain, GFP_KERNEL); +u8 *buffer = sc->resp_buf;size_t frame_size;bool done = false;int ret =0 ;u8 *out;
drivers/gpu/drm/xe/xe_sysctrl_mailbox.c static int sysctrl_receive_frames(struct xe_sysctrl *sc, · line 237
Quoted 10 lines
drivers/gpu/drm/xe/xe_sysctrl_mailbox.c +5
-2-if (!buffer) -return -ENOMEM ; +lockdep_assert_held (&sc->cmd_lock); + +xe_assert (xe, data_out_len <=XE_SYSCTRL_MB_MAX_MESSAGE_SIZE -sizeof (*hdr)); + +memset (buffer,0 , remain); out = buffer;while (!done && remain) {
[Severity: High]
This problem wasn't introduced by this patch, but can the receive loop in sysctrl_receive_frames() hang the firmware mailbox state machine [1] if the firmware sends a response payload larger than data_out_len?
When remain reaches 0 before the hardware signals completion via done, the loop exits early and stops calling sysctrl_process_frame() to clear SYSCTRL_MB_CTRL_RUN_BUSY_OUT. Because the remaining frames are neither drained nor acknowledged, the mailbox state machine stalls and subsequent xe_sysctrl_send_command() calls time out until a device reset.
[1] https://sashiko.dev/#/bug/linux-3329046e-adfb-4ef5-8005-36eb041a2bbd
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
PATCH 2/16 drm/xe: Process device OOB workarounds during early info init
In reply to Stuart SummersDevice OOB workarounds only match on platform, subplatform and platform step, all of which are known once xe_info_init_early() has copied them out of the device descriptor. Processing them there instead of in xe_device_probe_early() makes XE_DEVICE_WA() usable for the rest of early probe, which runs before xe_device_probe_early().
While moving the call, check the return value of xe_wa_device_init(), which the old call site silently dropped.
--- drivers/gpu/drm/xe/xe_device.c | 3 --- drivers/gpu/drm/xe/xe_pci.c | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/xe_device.c +0 -3
@@ -715,9 +715,6 @@ int xe_device_probe_early(struct xe_device *xe) {int err; -xe_wa_device_init (xe); -xe_wa_process_device_oob (xe); - err =xe_mmio_probe_early (xe);if (err)return err;
drivers/gpu/drm/xe/xe_pci.c +14 -0
@@ -15,6 +15,8 @@#include <drm/drm_drv.h> #include <drm/intel/pciids.h> +#include <generated/xe_device_wa_oob.h> +#include "display/xe_display.h" #include "regs/xe_gt_regs.h" #include "regs/xe_regs.h"
@@ -40,6 +42,7 @@#include "xe_tile.h" #include "xe_tile_printk.h" #include "xe_wedge.h" +#include "xe_wa.h" enum toggle_d3cold {D3COLD_DISABLE ,
@@ -795,6 +798,17 @@ static int xe_info_init_early(struct xe_device *xe, xe->info.subplatform = subplatform_desc ? subplatform_desc->subplatform :XE_SUBPLATFORM_NONE ; +/* +* Device OOB workarounds only match on platform, subplatform and +* platform step, which are all known by now, so process them here and +* make XE_DEVICE_WA() usable for the remainder of early probe. +*/ + err =xe_wa_device_init (xe); +if (err) +return err; + +xe_wa_process_device_oob (xe); + xe->info.dma_mask_size = desc->dma_mask_size; xe->info.va_bits = desc->va_bits; xe->info.vm_max_level = desc->vm_max_level;
Signature · 1 line
2.43.0
PATCH 3/16 drm/xe/sysctrl: Restore the SoC remapper on every runtime resume
In reply to Stuart SummersThe SoC remapper configuration is lost whenever the device loses power, and @d3cold.allowed only records the state xe asked the PCI core for. The platform can still drop power behind our back when the bridge above us runtime suspends, which leaves the remapper unprogrammed and any later System Controller access pointed at nothing.
Restore it on every runtime resume instead.
--- drivers/gpu/drm/xe/xe_pm.c | 9 +++++++-- drivers/gpu/drm/xe/xe_sysctrl.c | 6 ++++-- 2 files changed, 11 insertions(+), 4 deletions(-)
drivers/gpu/drm/xe/xe_pm.c +7 -2
@@ -654,8 +654,13 @@ int xe_pm_runtime_resume(struct xe_device *xe)xe_i2c_pm_resume (xe, xe->d3cold.allowed); -if (xe->d3cold.allowed) -xe_sysctrl_pm_resume (xe); +/* +* Done unconditionally: @d3cold.allowed is only the state xe asked the +* PCI core for, the platform can still drop power when the bridge +* above us runtime suspends, taking the SoC remapper configuration +* with it. +*/ +xe_sysctrl_pm_resume (xe);xe_display_pm_runtime_resume_early (xe);
drivers/gpu/drm/xe/xe_sysctrl.c +4 -2
@@ -129,8 +129,10 @@ void xe_sysctrl_irq_handler(struct xe_device *xe, u32 master_ctl)* xe_sysctrl_pm_resume() - System Controller resume handler * @xe: xe device instance * -* Invoked during system resume (S3/S4 to S0) and runtime resume from D3cold. -* Restores SoC remapper configuration. +* Invoked during system resume (S3/S4 to S0) and on every runtime resume. +* Restores SoC remapper configuration, which is lost whenever the device +* loses power - including when the platform drops power behind our back +* because the bridge above us runtime suspended. */ void xe_sysctrl_pm_resume (struct xe_device *xe) {
Signature · 1 line
2.43.0
PATCH 4/16 drm/xe: Add enable_media module parameter
In reply to Stuart SummersThe gt_types_allowed configfs attribute is intended for debug only, so provide a supported way to disable the media GT in production. The modparam takes precedence over configfs so a single knob is enough to guarantee the media GT is left alone.
The parameter is tri-state so that -1 can leave the decision to the driver, which currently enables media wherever it is present.
Both inputs are writable while the driver runs, so latch the result into xe->info.media_allowed during early probe and read it back through xe_device_media_allowed(). That keeps the decision fixed for the lifetime of the device and makes it available outside xe_pci.c.
--- drivers/gpu/drm/xe/xe_configfs.c | 3 +++ drivers/gpu/drm/xe/xe_defaults.h | 1 + drivers/gpu/drm/xe/xe_device.c | 14 ++++++++++++++ drivers/gpu/drm/xe/xe_device.h | 1 + drivers/gpu/drm/xe/xe_device_types.h | 2 ++ drivers/gpu/drm/xe/xe_module.c | 7 +++++++ drivers/gpu/drm/xe/xe_module.h | 1 + drivers/gpu/drm/xe/xe_pci.c | 21 ++++++++++++++++++--- 8 files changed, 47 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/xe_configfs.c +3 -0
@@ -96,6 +96,9 @@* will always return one GT type per line. "primary" and "media" are the * GT type names supported by this interface. * +* Note that the ``enable_media=0`` module parameter takes precedence over +* this attribute: it disables the media GT even if "media" is listed here. +* * This attribute can only be set before binding to the device. * * Examples:
drivers/gpu/drm/xe/xe_defaults.h +1 -0
@@ -13,6 +13,7 @@#define XE_DEFAULT_GUC_LOG_LEVEL 1#endif +#define XE_DEFAULT_ENABLE_MEDIA -1#define XE_DEFAULT_PROBE_DISPLAY IS_ENABLED(CONFIG_DRM_XE_DISPLAY)#define XE_DEFAULT_VRAM_BAR_SIZE 0#define XE_DEFAULT_FORCE_PROBE CONFIG_DRM_XE_FORCE_PROBE
drivers/gpu/drm/xe/xe_device.c +14 -0
@@ -377,6 +377,20 @@ bool xe_device_is_admin_only(const struct xe_device *xe) }#endif +/** +* xe_device_media_allowed() - Check whether the media IP may be used. +* @xe: the &xe_device to check +* +* Returns the decision latched during early probe, see +* @xe_device.info.media_allowed. +* +* Return: true if media may be used, false otherwise. +*/ +bool xe_device_media_allowed (struct xe_device *xe) +{ +return xe->info.media_allowed; +} +/* Number of allocated struct xe_device */ static atomic_t xe_device_count;
drivers/gpu/drm/xe/xe_device.h +1 -0
@@ -279,6 +279,7 @@ static inline bool xe_device_is_admin_only(const struct xe_device *xe) }#endif +bool xe_device_media_allowed (struct xe_device *xe);void xe_device_exit (void );/*
drivers/gpu/drm/xe/xe_device_types.h +2 -0
@@ -226,6 +226,8 @@ struct xe_device { u8 has_pt_mirror:1;/** @info.is_dgfx: is discrete device */ u8 is_dgfx:1; +/** @info.media_allowed: Media IP may be used */ + u8 media_allowed:1;/** @info.needs_scratch: needs scratch page for oob prefetch to work */ u8 needs_scratch:1;/**
drivers/gpu/drm/xe/xe_module.c +7 -0
@@ -22,6 +22,7 @@#include "xe_sched_job.h" struct xe_modparam xe_modparam = { + .enable_media =XE_DEFAULT_ENABLE_MEDIA , .probe_display =XE_DEFAULT_PROBE_DISPLAY , .guc_log_level =XE_DEFAULT_GUC_LOG_LEVEL , .force_probe =XE_DEFAULT_FORCE_PROBE ,
@@ -38,6 +39,12 @@ module_param_named(svm_notifier_size, xe_modparam.svm_notifier_size, uint, 0600) MODULE_PARM_DESC(svm_notifier_size, "Set the svm notifier size in MiB, must be power of 2 " "[default=" __stringify(XE_DEFAULT_SVM_NOTIFIER_SIZE) "]"); +module_param_named (enable_media, xe_modparam.enable_media, int,0444 ); +MODULE_PARM_DESC (enable_media,"Enable the media GT, when present (-1=auto, 0=disable, 1=enable). " +"Disabling overrides any media GT selected via the gt_types_allowed " +"configfs attribute " + "[default=" __stringify(XE_DEFAULT_ENABLE_MEDIA) "])"); +#if IS_ENABLED (CONFIG_DRM_XE_DISPLAY )module_param_named (probe_display, xe_modparam.probe_display, bool,0444 ); MODULE_PARM_DESC(probe_display, "Probe display HW, otherwise it's left untouched "
drivers/gpu/drm/xe/xe_module.h +1 -0
@@ -12,6 +12,7 @@ struct work_struct;/* Module modprobe variables */ struct xe_modparam { +int enable_media;bool probe_display;int force_vram_bar_size;int guc_log_level;
drivers/gpu/drm/xe/xe_pci.c +18 -3
@@ -641,7 +641,7 @@ static int read_gmdid(struct xe_device *xe, enum xe_gmdid_type type, u32 *ver, uint err;/* Don't try to read media ver if media GT is not allowed */ -if (type ==GMDID_MEDIA && !xe_configfs_media_gt_allowed (to_pci_dev (xe->drm.dev))) { +if (type ==GMDID_MEDIA && !xe_device_media_allowed (xe)) { *ver = *revid =0 ;return 0 ; }
@@ -778,6 +778,18 @@ static int xe_probe_info_early(struct xe_device *xe,return 0 ; } +/* +* Whether the user wants media at all. The default (-1) leaves the decision +* to the driver. +*/ +static bool media_wanted (struct xe_device *xe) +{ +if (xe_modparam.enable_media <0 ) +return true; + +return xe_modparam.enable_media; +} +/* * Initialize device info content that only depends on static driver_data * passed to the driver at probe time from PCI ID table.
@@ -809,6 +821,9 @@ static int xe_info_init_early(struct xe_device *xe,xe_wa_process_device_oob (xe); + xe->info.media_allowed =media_wanted (xe) && +xe_configfs_media_gt_allowed (to_pci_dev (xe->drm.dev)); + xe->info.dma_mask_size = desc->dma_mask_size; xe->info.va_bits = desc->va_bits; xe->info.vm_max_level = desc->vm_max_level;
@@ -952,8 +967,8 @@ static struct xe_gt *alloc_media_gt(struct xe_tile *tile,struct xe_device *xe =tile_to_xe (tile);struct xe_gt *gt; -if (!xe_configfs_media_gt_allowed (to_pci_dev (xe->drm.dev))) { -xe_tile_info (tile,"Media GT disabled via configfs\n" ); +if (!xe_device_media_allowed (xe)) { +xe_tile_info (tile,"Media GT disabled\n" );return NULL ; }
Signature · 1 line
2.43.0
PATCH 5/16 drm/xe: Detect each GMD_ID IP in a loop
In reply to Stuart Summershandle_gmdid() open coded the graphics and media detection twice, with the two copies subtly disagreeing: a missing media IP was tolerated, while graphics reporting version 0 was reported as an unknown version.
Describe the per IP differences in a small table and walk it, so both IPs are detected the same way and an absent IP of either kind simply leaves its descriptor NULL. Deciding whether the resulting combination is usable is left to the caller, which is unchanged in still demanding a graphics IP.
--- drivers/gpu/drm/xe/xe_pci.c | 70 ++++++++++++++++++++++--------------- 1 file changed, 42 insertions(+), 28 deletions(-)
drivers/gpu/drm/xe/xe_pci.c +42 -28
@@ -708,9 +708,21 @@ static const struct xe_ip *find_media_ip(unsigned int verx100)return NULL ; } +static const struct xe_gmdid_desc { +const char *name; +const struct xe_ip *(*find_ip)(unsigned int verx100); +} gmdid_descs[] = { + [GMDID_GRAPHICS ] = {"graphics" , find_graphics_ip }, + [GMDID_MEDIA ] = {"media" , find_media_ip }, +}; +/* * Read IP version from hardware and select graphics/media IP descriptors * based on the result. +* +* Each IP is detected independently and any of them may legitimately be fused +* off or otherwise absent, in which case its descriptor is left NULL. Deciding +* whether the resulting combination is usable is up to the caller. */ static int handle_gmdid(struct xe_device *xe, const struct xe_ip **graphics_ip,
@@ -718,36 +730,38 @@ static int handle_gmdid(struct xe_device *xe, u32 *graphics_revid, u32 *media_revid) { -u32 ver; -int ret; - - *graphics_ip =NULL ; - *media_ip =NULL ; - - ret =read_gmdid (xe,GMDID_GRAPHICS , &ver, graphics_revid); -if (ret) -return ret; - - *graphics_ip =find_graphics_ip (ver); -if (!*graphics_ip) { -xe_log_err (xe,REGS , -EINVAL , -"Hardware reports unknown graphics version %u.%02u\n" , - ver /100 , ver %100 ); - } - - ret =read_gmdid (xe,GMDID_MEDIA , &ver, media_revid); -if (ret) -return ret; +const struct xe_ip **ips[] = { + [GMDID_GRAPHICS ] = graphics_ip, + [GMDID_MEDIA ] = media_ip, + }; +u32 *revids[] = { + [GMDID_GRAPHICS ] = graphics_revid, + [GMDID_MEDIA ] = media_revid, + }; + +for (enum xe_gmdid_type type =0 ; type <ARRAY_SIZE (gmdid_descs); type++) { +const struct xe_gmdid_desc *desc = &gmdid_descs[type]; +u32 ver; +int ret; + + *ips[type] =NULL ; + *revids[type] =0 ; + + ret =read_gmdid (xe, type, &ver, revids[type]); +if (ret) +return ret; -/* Media may legitimately be fused off / not present */ -if (ver ==0 ) -return 0 ; +/* The IP may legitimately be fused off / not present */ +if (!ver) { + *revids[type] =0 ; +continue ; + } - *media_ip =find_media_ip (ver); -if (!*media_ip) { -xe_log_err (xe,REGS , -EINVAL , -"Hardware reports unknown media version %u.%02u\n" , - ver /100 , ver %100 ); + *ips[type] = desc->find_ip (ver); +if (!*ips[type]) +xe_log_err (xe,REGS , -EINVAL , +"Hardware reports unknown %s version %u.%02u\n" , + desc->name, ver /100 , ver %100 ); }return 0 ;
Signature · 1 line
2.43.0
PATCH 6/16 drm/xe: Tolerate a missing graphics IP in xe_info_init()
In reply to Stuart SummersA device without a graphics IP is still rejected a few lines further down, but handle_gmdid() can already hand back a NULL graphics_ip, so stop dereferencing it unconditionally and mirror what is done for media instead. alloc_primary_gt() gets the same treatment, since it reads the descriptor for every field it fills in.
No functional change: the graphics IP is still required.
--- drivers/gpu/drm/xe/xe_pci.c | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-)
drivers/gpu/drm/xe/xe_pci.c +21 -10
@@ -933,6 +933,9 @@ static struct xe_gt *alloc_primary_gt(struct xe_tile *tile,struct xe_device *xe =tile_to_xe (tile);struct xe_gt *gt; +if (!graphics_desc) +return NULL ; +if (!xe_configfs_primary_gt_allowed (to_pci_dev (xe->drm.dev))) {xe_tile_info (tile,"Primary GT disabled via configfs\n" );return NULL ;
@@ -1085,9 +1088,14 @@ static int xe_info_init(struct xe_device *xe, xe->info.step.graphics = probed_info->step.graphics; xe->info.step.media = probed_info->step.media; - xe->info.graphics_verx100 = graphics_ip->verx100; - xe->info.graphics_name = graphics_ip->name; - graphics_desc = graphics_ip->desc; +if (graphics_ip) { + xe->info.graphics_verx100 = graphics_ip->verx100; + xe->info.graphics_name = graphics_ip->name; + graphics_desc = graphics_ip->desc; + }else { + xe->info.graphics_name ="none" ; + graphics_desc =NULL ; + }if (media_ip) { xe->info.media_verx100 = media_ip->verx100;
@@ -1098,16 +1106,19 @@ static int xe_info_init(struct xe_device *xe, media_desc =NULL ; } - xe->info.has_access_counter = graphics_desc->has_access_counter; - xe->info.has_asid = graphics_desc->has_asid; - xe->info.has_atomic_enable_pte_bit = graphics_desc->has_atomic_enable_pte_bit; +if (graphics_desc) { + xe->info.has_access_counter = graphics_desc->has_access_counter; + xe->info.has_asid = graphics_desc->has_asid; + xe->info.has_atomic_enable_pte_bit = graphics_desc->has_atomic_enable_pte_bit; + xe->info.has_range_tlb_inval = graphics_desc->has_range_tlb_inval; + xe->info.has_ctx_tlb_inval = graphics_desc->has_ctx_tlb_inval; + xe->info.has_usm = graphics_desc->has_usm; + xe->info.has_64bit_timestamp = graphics_desc->has_64bit_timestamp; + } +if (xe->info.platform !=XE_PVC ) xe->info.has_device_atomics_on_smem =1 ; - xe->info.has_range_tlb_inval = graphics_desc->has_range_tlb_inval; - xe->info.has_ctx_tlb_inval = graphics_desc->has_ctx_tlb_inval; - xe->info.has_usm = graphics_desc->has_usm; - xe->info.has_64bit_timestamp = graphics_desc->has_64bit_timestamp; xe->info.has_mem_copy_instr =GRAPHICS_VER (xe) >=20 ;if (IS_SRIOV_VF (xe)) {
Signature · 1 line
2.43.0
PATCH 7/16 drm/xe: Verify IP presence against GU_CNTL
In reply to Stuart SummersGMD_ID is the only thing consulted today to decide whether the graphics and media IPs exist. Hardware also fuses presence bits into GU_CNTL_PROTECTED, so check GTPresent and IMPresent as a second level of verification and leave an IP alone when the two disagree.
Either IP can be dropped this way without failing driver load: an IP hardware says is absent is simply not detected, which is the same state as it reporting version 0, and probe then applies the usual rule that at least one IP has to be left.
VFs have no access to the register, so they keep going by GMD_ID alone.
--- drivers/gpu/drm/xe/regs/xe_regs.h | 2 ++ drivers/gpu/drm/xe/xe_pci.c | 28 ++++++++++++++++++++++++++-- 2 files changed, 28 insertions(+), 2 deletions(-)
drivers/gpu/drm/xe/regs/xe_regs.h +2 -0
@@ -12,6 +12,8 @@#define SOC_BASE 0x280000#define GU_CNTL_PROTECTED XE_REG(0x10100C) +#define GT_PRESENT REG_BIT(8) +#define IM_PRESENT REG_BIT(10)#define DRIVERINT_FLR_DIS REG_BIT(31)#define GU_CNTL XE_REG(0x101010)
drivers/gpu/drm/xe/xe_pci.c +26 -2
@@ -710,12 +710,28 @@ static const struct xe_ip *find_media_ip(unsigned int verx100)static const struct xe_gmdid_desc {const char *name; +u32 present;const struct xe_ip *(*find_ip)(unsigned int verx100); } gmdid_descs[] = { - [GMDID_GRAPHICS ] = {"graphics" , find_graphics_ip }, - [GMDID_MEDIA ] = {"media" , find_media_ip }, + [GMDID_GRAPHICS ] = {"graphics" ,GT_PRESENT , find_graphics_ip }, + [GMDID_MEDIA ] = {"media" ,IM_PRESENT , find_media_ip }, }; +/* +* Besides the IP version in GMD_ID, hardware reports whether an IP is present +* at all through the fuse backed presence bits in GU_CNTL_PROTECTED. Use +* those as a second level of verification, so an IP hardware says is not there +* is left alone whatever GMD_ID claims. +*/ +static bool gt_fused (struct xe_device *xe,u32 present) +{ +/* VFs have no access to GU_CNTL_PROTECTED, so go by GMD_ID alone */ +if (IS_SRIOV_VF (xe)) +return false; + +return !(xe_mmio_read32 (xe_root_tile_mmio (xe),GU_CNTL_PROTECTED ) & present); +} +/* * Read IP version from hardware and select graphics/media IP descriptors * based on the result.
@@ -757,6 +773,14 @@ static int handle_gmdid(struct xe_device *xe,continue ; } +if (gt_fused (xe, desc->present)) { +xe_log_info (xe,REGS , +"Hardware reports the %s IP is not present, ignoring version %u.%02u\n" , + desc->name, ver /100 , ver %100 ); + *revids[type] =0 ; +continue ; + } + *ips[type] = desc->find_ip (ver);if (!*ips[type]) xe_log_err(xe, REGS, -EINVAL,
Signature · 1 line
2.43.0
PATCH 8/16 drm/xe: Guard per-tile primary GT accesses
In reply to Stuart SummersA tile's primary GT is now optional, just like its media GT already was. The TLB invalidation and memory interrupt paths walk both GTs of a tile but only test the media one for presence, so they would dereference NULL on a device whose graphics IP is absent. Mirror the existing media checks for the primary GT.
--- drivers/gpu/drm/xe/xe_memirq.c | 3 ++- drivers/gpu/drm/xe/xe_tlb_inval.c | 20 +++++++++++--------- 2 files changed, 13 insertions(+), 10 deletions(-)
drivers/gpu/drm/xe/xe_memirq.c +2 -1
@@ -578,7 +578,8 @@ void xe_memirq_handler(struct xe_memirq *memirq)/* GuC and media GuC (if present) must be checked separately */ -if (memirq_received (memirq, &memirq->source,ilog2 (INTR_GUC ),"SRC" )) { +if (tile->primary_gt && +memirq_received (memirq, &memirq->source,ilog2 (INTR_GUC ),"SRC" )) { map =IOSYS_MAP_INIT_OFFSET (&memirq->bo->vmap,XE_MEMIRQ_VECTOR_OFFSET (0 ,ilog2 (INTR_GUC )));memirq_dispatch_guc (memirq, &map, &tile->primary_gt->uc.guc);
drivers/gpu/drm/xe/xe_tlb_inval.c +11 -9
@@ -624,15 +624,17 @@ int xe_tlb_inval_range_tilemask_submit(struct xe_device *xe, u32 asid,if (!(tile_mask &BIT (id)))continue ; -xe_tlb_inval_fence_init (&tile->primary_gt->tlb_inval, - &fence[fence_id], true); - - err =xe_tlb_inval_range (&tile->primary_gt->tlb_inval, - &fence[fence_id], start, end, - asid,NULL ); -if (err) - goto wait; - ++fence_id; +if (tile->primary_gt) { +xe_tlb_inval_fence_init (&tile->primary_gt->tlb_inval, + &fence[fence_id], true); + + err =xe_tlb_inval_range (&tile->primary_gt->tlb_inval, + &fence[fence_id], start, end, + asid,NULL ); +if (err) + goto wait; + ++fence_id; + }if (!tile->media_gt)continue ;
Signature · 1 line
2.43.0
PATCH 9/16 drm/xe: Stop assuming the root tile has a primary GT
In reply to Stuart SummersA handful of device level consumers reach for xe_root_mmio_gt() to get at state that merely happens to be hung off a GT - the GuC firmware version, GT stats counters and the default OA unit - and dereference it without a NULL check. None of them touch MMIO, so none of them actually need the primary GT; they just need some GT.
Add xe_device_any_gt(), which falls back to the root tile's media GT, and use it in those places. For OA, walk the GTs instead so the default unit is the first one that exists, which keeps it OA unit 0 as the uapi promises.
--- drivers/gpu/drm/xe/xe_device.h | 16 ++++++++++++++++ drivers/gpu/drm/xe/xe_oa.c | 24 ++++++++++++++++++++++-- drivers/gpu/drm/xe/xe_pagefault.c | 4 ++-- drivers/gpu/drm/xe/xe_query.c | 3 ++- drivers/gpu/drm/xe/xe_vm.c | 2 +- 5 files changed, 43 insertions(+), 6 deletions(-)
drivers/gpu/drm/xe/xe_device.h +16 -0
@@ -111,6 +111,22 @@ static inline struct xe_gt *xe_root_mmio_gt(struct xe_device *xe)return xe_device_get_root_tile (xe)->primary_gt; } +/* +* Provide a GT structure for device level state that happens to be hung off a +* GT but is not specific to one, such as GuC firmware versions or OA units. +* Unlike xe_root_mmio_gt(), this never returns NULL: the root tile always has +* at least one GT, even when the graphics IP is absent. It must not be used +* for MMIO, since the media GT needs GSI offset translation. +* +* Returns the primary GT of the root tile, or its media GT if there is none. +*/ +static inline struct xe_gt *xe_device_any_gt (struct xe_device *xe) +{ +struct xe_tile *tile =xe_device_get_root_tile (xe); + +return tile->primary_gt ?: tile->media_gt; +} +static inline struct xe_mmio *xe_root_tile_mmio (struct xe_device *xe) {return &xe->tiles[0 ].mmio;
drivers/gpu/drm/xe/xe_oa.c +22 -2
@@ -2041,6 +2041,23 @@ static int xe_oa_assign_hwe(struct xe_oa *oa, struct xe_oa_open_param *param)return ret; } +/* +* OA unit IDs are handed out in GT iteration order, so the first unit of the +* first GT that has one is OA unit 0. The primary GT may be absent, in which +* case unit 0 lives on the media GT. +*/ +static struct xe_oa_unit *xe_oa_first_unit (struct xe_device *xe) +{ +struct xe_gt *gt; +u8 id; + +for_each_gt (gt, xe, id) +if (gt->oa.num_oa_units) +return >->oa.oa_unit[0 ]; + +return NULL ; +} +/** * xe_oa_stream_open_ioctl - Opens an OA stream * @dev: @drm_device
@@ -2073,8 +2090,11 @@ int xe_oa_stream_open_ioctl(struct drm_device *dev, u64 data, struct drm_file *freturn ret;/* If not provided, OA unit defaults to OA unit 0 as per uapi */ -if (!param.oa_unit) - param.oa_unit = &xe_root_mmio_gt (oa->xe)->oa.oa_unit[0 ]; +if (!param.oa_unit) { + param.oa_unit =xe_oa_first_unit (oa->xe); +if (XE_IOCTL_DBG (xe, !param.oa_unit)) +return -ENODEV ; + }if (param.exec_queue_id >0 ) {/* An exec_queue is only needed for OAR/OAC functionality on OAG */
drivers/gpu/drm/xe/xe_pagefault.c +2 -2
@@ -547,7 +547,7 @@ static bool xe_pagefault_queue_pop(struct xe_pagefault_queue *pf_queue,continue ;if (cache_start !=XE_PAGEFAULT_CACHE_START_INVALID ) { -xe_gt_stats_incr (xe_root_mmio_gt (xe), +xe_gt_stats_incr (xe_device_any_gt (xe),XE_GT_STATS_ID_PARALLEL_PAGEFAULT_COUNT ,1 );break ;
@@ -759,7 +759,7 @@ static void xe_pagefault_queue_work(struct work_struct *w) }#undef USM_QUEUE_MAX_RUNTIME_MS -xe_gt_stats_incr (xe_root_mmio_gt (xe),XE_GT_STATS_ID_PAGEFAULT_US , +xe_gt_stats_incr (xe_device_any_gt (xe),XE_GT_STATS_ID_PAGEFAULT_US ,xe_gt_stats_ktime_us_delta (start)); }
drivers/gpu/drm/xe/xe_query.c +2 -1
@@ -592,7 +592,8 @@ query_uc_fw_version(struct xe_device *xe, struct drm_xe_device_query *query)switch (resp.uc_type) {case XE_QUERY_UC_TYPE_GUC_SUBMISSION : { -struct xe_guc *guc = &xe->tiles[0 ].primary_gt->uc.guc; +struct xe_gt *gt =xe_device_any_gt (xe); +struct xe_guc *guc = >->uc.guc; version = &guc->fw.versions.found[XE_UC_FW_VER_COMPATIBILITY ];break ;
drivers/gpu/drm/xe/xe_vm.c +1 -1
@@ -1706,7 +1706,7 @@ static void xe_vm_init_prove_locking(struct xe_device *xe, struct xe_vm *vm)fs_reclaim_release (GFP_KERNEL );down_read (&vm->exec_queues.lock); -might_lock (&xe_root_mmio_gt (xe)->uc.guc.ct.lock); +might_lock (&xe_device_any_gt (xe)->uc.guc.ct.lock);up_read (&vm->exec_queues.lock); }
Signature · 1 line
2.43.0
PATCH 10/16 drm/xe: Do not claim flat CCS without a graphics IP
In reply to Stuart Summershas_flat_ccs comes from the device descriptor rather than from the graphics IP, so it survives a device whose graphics IP is absent. It is a graphics feature though, and probe_has_flat_ccs() reads its layout back through the primary GT, which is not there.
Clear the flag along with the rest of the graphics feature bits.
--- drivers/gpu/drm/xe/xe_pci.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/gpu/drm/xe/xe_pci.c +8 -0
@@ -1138,6 +1138,14 @@ static int xe_info_init(struct xe_device *xe, xe->info.has_ctx_tlb_inval = graphics_desc->has_ctx_tlb_inval; xe->info.has_usm = graphics_desc->has_usm; xe->info.has_64bit_timestamp = graphics_desc->has_64bit_timestamp; + }else { +/* +* Flat CCS comes from the device descriptor rather than from +* the graphics IP, but it is still a graphics feature: its +* layout is read back through the primary GT, which is not +* there to be read. +*/ + xe->info.has_flat_ccs =0 ; }if (xe->info.platform !=XE_PVC )
Signature · 1 line
2.43.0
PATCH 11/16 drm/xe: Run page table updates on the media GT when there is no primary
In reply to Stuart SummersThe tile's migration context, and the bind exec queues built on top of it, are hard wired to the primary GT and its copy engine. On a device with no graphics IP that GT is NULL, and xe_migrate_init() is never called at all, so probe dies in xe_cpu_bind_init() on an uninitialised tile->migrate.
Page table updates are plain memory writes, so any GT can issue them. Add xe_tile_pt_gt() and xe_tile_pt_class(), which name the primary GT and its copy engine as before but fall back to the media GT and a video decode engine, and use them for the migration context, the bind queues and the place xe_gt_init() decides to set migration up.
Note this only makes page table updates work. The blit based copy and clear paths now target a video engine rather than NULL on such a device, which stops them oopsing, but they are still not functional there.
--- drivers/gpu/drm/xe/xe_exec_queue.c | 5 +++-- drivers/gpu/drm/xe/xe_gt.c | 11 ++++++---- drivers/gpu/drm/xe/xe_migrate.c | 29 ++++++++++++++------------- drivers/gpu/drm/xe/xe_tile.h | 32 ++++++++++++++++++++++++++++++ 4 files changed, 57 insertions(+), 20 deletions(-)
drivers/gpu/drm/xe/xe_exec_queue.c +3 -2
@@ -28,6 +28,7 @@#include "xe_macros.h" #include "xe_migrate.h" #include "xe_pm.h" +#include "xe_tile.h" #include "xe_trace.h" #include "xe_uc_fw.h" #include "xe_vm.h"
@@ -627,7 +628,7 @@ struct xe_exec_queue *xe_exec_queue_create_bind(struct xe_device *xe,struct xe_vm *user_vm, u32 flags, u64 extensions) { - struct xe_gt *gt = tile->primary_gt; + struct xe_gt *gt = xe_tile_pt_gt(tile);struct xe_exec_queue *q;struct xe_vm *migrate_vm;
@@ -645,7 +646,7 @@ struct xe_exec_queue *xe_exec_queue_create_bind(struct xe_device *xe, flags, extensions); }else { q =xe_exec_queue_create_class (xe, gt, migrate_vm, -XE_ENGINE_CLASS_COPY , flags, +xe_tile_pt_class (tile), flags, extensions); }xe_vm_put (migrate_vm);
drivers/gpu/drm/xe/xe_gt.c +7 -4
@@ -61,6 +61,7 @@#include "xe_sa.h" #include "xe_sched_job.h" #include "xe_sriov.h" +#include "xe_tile.h" #include "xe_tlb_inval.h" #include "xe_tuning.h" #include "xe_uc.h"
@@ -657,10 +658,12 @@ static int gt_init_with_all_forcewake(struct xe_gt *gt) } } -if (xe_gt_is_main_type (gt)) { -struct xe_tile *tile =gt_to_tile (gt); - - err =xe_migrate_init (tile->migrate); +/* +* Normally the migration context runs on the primary GT, but a tile +* with no graphics IP has only its media GT to run it on. +*/ +if (gt ==xe_tile_pt_gt (gt_to_tile (gt))) { + err =xe_migrate_init (gt_to_tile (gt)->migrate);if (err)return err; }
drivers/gpu/drm/xe/xe_migrate.c +15 -14
@@ -43,6 +43,7 @@#include "xe_sriov_vf_ccs.h" #include "xe_svm.h" #include "xe_sync.h" +#include "xe_tile.h" #include "xe_trace_bo.h" #include "xe_ttm_stolen_mgr.h" #include "xe_validation.h"
@@ -485,7 +486,7 @@ static void xe_migrate_prepare_vm(struct xe_tile *tile, struct xe_migrate *m,if (xe->info.has_usm) {xe_tile_assert (tile,xe_bo_size (batch) ==SZ_1M ); - batch = tile->primary_gt->usm.bb_pool->bo; + batch =xe_tile_pt_gt (tile)->usm.bb_pool->bo; m->usm_batch_base_ofs = m->batch_base_ofs +SZ_1M ;xe_tile_assert (tile,xe_bo_size (batch) ==SZ_512K );
@@ -506,7 +507,7 @@ static void xe_migrate_prepare_vm(struct xe_tile *tile, struct xe_migrate *m, m->batch_base_ofs =xe_migrate_vram_ofs (xe, batch_addr, false);if (xe->info.has_usm) { - batch = tile->primary_gt->usm.bb_pool->bo; + batch =xe_tile_pt_gt (tile)->usm.bb_pool->bo; batch_addr =xe_bo_addr (batch,0 ,XE_PAGE_SIZE ); m->usm_batch_base_ofs =xe_migrate_vram_ofs (xe, batch_addr, false); }
@@ -830,7 +831,7 @@ int xe_migrate_reinit(struct xe_migrate *m)int xe_migrate_init (struct xe_migrate *m) {struct xe_tile *tile = m->tile; -struct xe_gt *primary_gt = tile->primary_gt; +struct xe_gt *gt =xe_tile_pt_gt (tile);struct xe_device *xe =tile_to_xe (tile);struct xe_vm *vm;int err;
@@ -846,8 +847,8 @@ int xe_migrate_init(struct xe_migrate *m) goto err_out;if (xe->info.has_usm) { -struct xe_hw_engine *hwe0 = primary_gt->usm.paging_hwe0; -u32 logical_mask = primary_gt->usm.paging_logical_mask; +struct xe_hw_engine *hwe0 = gt->usm.paging_hwe0; +u32 logical_mask = gt->usm.paging_logical_mask;if (!hwe0 || !logical_mask) { err = -EINVAL ;
@@ -864,8 +865,8 @@ int xe_migrate_init(struct xe_migrate *m)EXEC_QUEUE_FLAG_MIGRATE | EXEC_QUEUE_FLAG_LOW_LATENCY, 0); }else { - m->q =xe_exec_queue_create_class (xe, primary_gt, vm, -XE_ENGINE_CLASS_COPY , + m->q =xe_exec_queue_create_class (xe, gt, vm, +xe_tile_pt_class (tile),EXEC_QUEUE_FLAG_KERNEL |EXEC_QUEUE_FLAG_MIGRATE ,0 ); }
@@ -1214,7 +1215,7 @@ static u32 xe_migrate_ccs_copy(struct xe_migrate *m, u64 dst_ofs, bool dst_is_indirect, u32 dst_size, u64 ccs_ofs, bool copy_ccs) { - struct xe_gt *gt = m->tile->primary_gt; + struct xe_gt *gt = xe_tile_pt_gt(m->tile);u32 flush_flags =0 ;if (!copy_ccs && dst_is_indirect) {
@@ -1276,7 +1277,7 @@ static struct dma_fence *__xe_migrate_copy(struct xe_migrate *m, bool copy_only_ccs, bool is_vram_resolve) { -struct xe_gt *gt = m->tile->primary_gt; +struct xe_gt *gt =xe_tile_pt_gt (m->tile);struct xe_device *xe =gt_to_xe (gt);struct dma_fence *fence =NULL ;u64 size =xe_bo_size (src_bo);
@@ -1574,7 +1575,7 @@ int xe_migrate_ccs_rw_copy(struct xe_tile *tile, struct xe_exec_queue *q,bool dst_is_pltt = read_write ==XE_SRIOV_VF_CCS_WRITE_CTX ;struct ttm_resource *src = new_mem;struct xe_migrate *m = tile->migrate; -struct xe_gt *gt = tile->primary_gt; +struct xe_gt *gt =xe_tile_pt_gt (tile);u32 batch_size, batch_size_allocated;struct xe_device *xe =gt_to_xe (gt);struct xe_res_cursor src_it, ccs_it;
@@ -1776,7 +1777,7 @@ struct dma_fence *xe_migrate_vram_copy_chunk(struct xe_bo *vram_bo, u64 vram_off {struct xe_device *xe =xe_bo_device (vram_bo);struct xe_tile *tile = vram_bo->tile; -struct xe_gt *gt = tile->primary_gt; +struct xe_gt *gt =xe_tile_pt_gt (tile);struct xe_migrate *m = tile->migrate;struct dma_fence *fence =NULL ;struct ttm_resource *vram = vram_bo->ttm.resource;
@@ -1992,7 +1993,7 @@ struct dma_fence *xe_migrate_clear(struct xe_migrate *m,bool clear_vram =is_devmem (bo, dst);bool clear_bo_data =XE_MIGRATE_CLEAR_FLAG_BO_DATA & clear_flags;bool clear_ccs =XE_MIGRATE_CLEAR_FLAG_CCS_DATA & clear_flags; -struct xe_gt *gt = m->tile->primary_gt; +struct xe_gt *gt =xe_tile_pt_gt (m->tile);struct xe_device *xe =gt_to_xe (gt);bool clear_only_system_ccs = false;struct dma_fence *fence =NULL ;
@@ -2357,7 +2358,7 @@ static struct dma_fence *xe_migrate_vram(struct xe_migrate *m,struct dma_fence *deps, const enum xe_migrate_copy_dir dir) { - struct xe_gt *gt = m->tile->primary_gt; + struct xe_gt *gt = xe_tile_pt_gt(m->tile);struct xe_device *xe =gt_to_xe (gt);bool use_usm_batch = xe->info.has_usm;struct dma_fence *fence =NULL ;
@@ -2785,7 +2786,7 @@ int xe_migrate_debug_ccs_overlap(struct xe_migrate *m, bool write_to_ccs) {struct xe_device *xe =tile_to_xe (m->tile); -struct xe_gt *gt = m->tile->primary_gt; +struct xe_gt *gt =xe_tile_pt_gt (m->tile);struct dma_fence *fence;struct xe_bb *bb;struct xe_sched_job *job;
drivers/gpu/drm/xe/xe_tile.h +32 -0
@@ -6,6 +6,7 @@#ifndef _XE_TILE_H_#define _XE_TILE_H_ +#include "xe_hw_engine_types.h" #include "xe_tile_types.h" struct xe_device ;
@@ -24,6 +25,37 @@ static inline bool xe_tile_is_root(struct xe_tile *tile)return tile->id ==0 ; } +/** +* xe_tile_pt_gt() - GT used to run a tile's page table update jobs +* @tile: Pointer to the struct xe_tile. +* +* Page table updates, and the migration context they are submitted through, +* normally run on the primary GT. A device whose graphics IP is absent has +* no primary GT, but its media GT can write page tables just as well. +* +* Return: The tile's primary GT, or its media GT if it has no primary GT. +*/ +static inline struct xe_gt *xe_tile_pt_gt (struct xe_tile *tile) +{ +return tile->primary_gt ?: tile->media_gt; +} + +/** +* xe_tile_pt_class() - Engine class to run a tile's page table update jobs on +* @tile: Pointer to the struct xe_tile. +* +* The engine class to pair with xe_tile_pt_gt(). The copy engine is the usual +* choice, but it lives on the primary GT; when there is none, fall back to a +* video decode engine on the media GT. +* +* Return: The engine class to create the tile's page table exec queue with. +*/ +static inline enum xe_engine_class xe_tile_pt_class (struct xe_tile *tile) +{ +return tile->primary_gt ?XE_ENGINE_CLASS_COPY : +XE_ENGINE_CLASS_VIDEO_DECODE ; +} +/** * xe_tile_to_vr() - Return the struct xe_vram_region pointer from a * struct xe_tile pointer
Signature · 1 line
2.43.0
[email protected]
AI reviewRe: [PATCH 11/16] drm/xe: Run page table updates on the media GT when there is no primary
Thank you for your contribution! Sashiko AI review found 3 potential issues to consider: - [Medium] drm/xe: xe_gt_flr_prepare() and xe_gt_reinit() skip media-only tile migration - [Medium] drm/xe…
Thank you for your contribution! Sashiko AI review found 3 potential issues to consider:
- [Medium] drm/xe: xe_gt_flr_prepare() and xe_gt_reinit() skip media-only tile migration
- [Medium] drm/xe: NULL dereference of usm.bb_pool in xe_migrate_prepare_vm()
- [Medium] drm/xe: silent no-op blit copy and clear on media-only tiles in xe_migrate
--
commit e4d0026f61d092e34250b892e47f82036445a7f5
Author: Stuart Summers <[email protected]>
drm/xe: Run page table updates on the media GT when there is no primary
This commit introduces xe_tile_pt_gt() and xe_tile_pt_class() so that tile migration and bind exec queues fall back to the media GT and a video decode engine when a tile has no primary GT.
Quoted 4 lines
drivers/gpu/drm/xe/xe_gt.c +0
-0
[ ... ]
Quoted 7 lines
drivers/gpu/drm/xe/xe_gt.c +0
-3@@ -657,10 +658,12 @@ static int gt_init_with_all_forcewake(struct xe_gt *gt) } } -if (xe_gt_is_main_type (gt)) { -struct xe_tile *tile =gt_to_tile (gt); -
drivers/gpu/drm/xe/xe_gt.c static int gt_init_with_all_forcewake(struct xe_gt *gt) · line 669
Quoted 10 lines
drivers/gpu/drm/xe/xe_gt.c +6
-1- err =xe_migrate_init (tile->migrate); +/* +* Normally the migration context runs on the primary GT, but a tile +* with no graphics IP has only its media GT to run it on. +*/ +if (gt ==xe_tile_pt_gt (gt_to_tile (gt))) { + err =xe_migrate_init (gt_to_tile (gt)->migrate);if (err)return err; }
[Severity: Medium]
Should xe_gt_flr_prepare() and xe_gt_reinit() also check
gt == xe_tile_pt_gt(gt_to_tile(gt)) instead of xe_gt_is_main_type(gt)?
On a tile with no primary GT, xe_migrate_init() now sets up tile->migrate on the media GT, where xe_gt_is_main_type(gt) is false. Across a PCIe FLR, xe_uc_flr_prepare() tears down the media GT's GuC queues (including tile->migrate->q), while xe_gt_flr_prepare() and xe_gt_reinit() skip xe_migrate_flr_prepare() and xe_migrate_reinit(), leaving the migration VM page tables and queue uninitialized after resume.
Quoted 4 lines
drivers/gpu/drm/xe/xe_migrate.c +0
-0
[ ... ]
Quoted 10 lines
drivers/gpu/drm/xe/xe_migrate.c +1
-1@@ -485,7 +486,7 @@ static void xe_migrate_prepare_vm(struct xe_tile *tile, struct xe_migrate *m,if (xe->info.has_usm) {xe_tile_assert (tile,xe_bo_size (batch) ==SZ_1M ); - batch = tile->primary_gt->usm.bb_pool->bo; + batch =xe_tile_pt_gt (tile)->usm.bb_pool->bo; m->usm_batch_base_ofs = m->batch_base_ofs +SZ_1M ;xe_tile_assert (tile,xe_bo_size (batch) ==SZ_512K );
drivers/gpu/drm/xe/xe_migrate.c static void xe_migrate_prepare_vm(struct xe_tile *tile, struct xe_migrate *m, · line 513
Quoted 8 lines
drivers/gpu/drm/xe/xe_migrate.c +1
-1@@ -506,7 +507,7 @@ static void xe_migrate_prepare_vm(struct xe_tile *tile, struct xe_migrate *m, m->batch_base_ofs =xe_migrate_vram_ofs (xe, batch_addr, false);if (xe->info.has_usm) { - batch = tile->primary_gt->usm.bb_pool->bo; + batch =xe_tile_pt_gt (tile)->usm.bb_pool->bo; batch_addr =xe_bo_addr (batch,0 ,XE_PAGE_SIZE ); m->usm_batch_base_ofs =xe_migrate_vram_ofs (xe, batch_addr, false); }
[Severity: Medium]
Can xe_tile_pt_gt(tile)->usm.bb_pool be NULL here when tile->primary_gt is NULL and xe->info.has_usm is set (for example, with gt_types_allowed=media in configfs on an Xe2+ platform)?
gt_init_with_all_forcewake() only allocates gt->usm.bb_pool when xe_gt_is_main_type(gt) is true, so tile->media_gt->usm.bb_pool is NULL and xe_migrate_prepare_vm() dereferences a NULL pointer. Even if bb_pool were allocated on xe_tile_pt_gt(tile), media GTs have no copy engines, so gt->usm.paging_hwe0 is also NULL and the xe->info.has_usm paths in xe_migrate_init() and xe_exec_queue_create_bind() will fail with -EINVAL instead of falling back to xe_tile_pt_class(tile).
[ ... ]
Quoted 9 lines
drivers/gpu/drm/xe/xe_migrate.c +1
-1@@ -1276,7 +1277,7 @@ static struct dma_fence *__xe_migrate_copy(struct xe_migrate *m, bool copy_only_ccs, bool is_vram_resolve) { -struct xe_gt *gt = m->tile->primary_gt; +struct xe_gt *gt =xe_tile_pt_gt (m->tile);struct xe_device *xe =gt_to_xe (gt);struct dma_fence *fence =NULL ;u64 size =xe_bo_size (src_bo);
[ ... ]
Quoted 10 lines
drivers/gpu/drm/xe/xe_migrate.c +1
-1@@ -1992,7 +1993,7 @@ struct dma_fence *xe_migrate_clear(struct xe_migrate *m,bool clear_vram =is_devmem (bo, dst);bool clear_bo_data =XE_MIGRATE_CLEAR_FLAG_BO_DATA & clear_flags;bool clear_ccs =XE_MIGRATE_CLEAR_FLAG_CCS_DATA & clear_flags; -struct xe_gt *gt = m->tile->primary_gt; +struct xe_gt *gt =xe_tile_pt_gt (m->tile);struct xe_device *xe =gt_to_xe (gt);bool clear_only_system_ccs = false;struct dma_fence *fence =NULL ;
drivers/gpu/drm/xe/xe_migrate.c static struct dma_fence *xe_migrate_vram(struct xe_migrate *m, · line 2364
Quoted 8 lines
drivers/gpu/drm/xe/xe_migrate.c +1
-1@@ -2357,7 +2358,7 @@ static struct dma_fence *xe_migrate_vram(struct xe_migrate *m,struct dma_fence *deps, const enum xe_migrate_copy_dir dir) { - struct xe_gt *gt = m->tile->primary_gt; + struct xe_gt *gt = xe_tile_pt_gt(m->tile);struct xe_device *xe =gt_to_xe (gt);bool use_usm_batch = xe->info.has_usm;struct dma_fence *fence =NULL ;
[Severity: Medium]
When m->q is created on XE_ENGINE_CLASS_VIDEO_DECODE, do these blit copy and clear paths silently succeed without copying or clearing memory?
A migration job puts the PTE updates in job->ptrs[0].batch_addr and the blitter commands in job->ptrs[1].batch_addr, but the video decode ring ops only emit job->ptrs[0]:
drivers/gpu/drm/xe/xe_ring_ops.c:emit_job_gen12_video() {
for (i = 0; i < job->q->width; ++i)
__emit_job_gen12_video(job, job->q->lrc[i],
job->ptrs[i].batch_addr,
&job->ptrs[i].head,
xe_sched_job_lrc_seqno(job));
}With q->width == 1, the engine executes only the PTE batch and signals the job fence without running the copy or clear batch. Later in the series, commit "drm/xe: Fall back to CPU copies when the tile cannot blit" adds xe_migrate_can_blit() checks to TTM moves, but other callers remain
unguarded: xe_ttm_access_memory() still calls xe_migrate_access_memory() -> xe_migrate_vram() when len >= SZ_16K (silently dropping ptrace or /proc/<pid>/mem reads and writes on VRAM BOs), and xe_vram_memtest() calls xe_migrate_clear() and fails probe with -EIO when CONFIG_DRM_XE_DEBUG_MEM is enabled.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=11
PATCH 12/16 drm/xe: Document that gt_types_allowed=media now probes
In reply to Stuart SummersThe media only configuration no longer fails probe, so drop the warning that said it would.
--- drivers/gpu/drm/xe/xe_configfs.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/gpu/drm/xe/xe_configfs.c +3 -4
@@ -114,15 +114,14 @@* # echo 'primary' > /sys/kernel/config/xe/0000:03:00.0/gt_types_allowed * * Allow only the media GT of each tile to be initialized and used, -* effectively disabling the primary GT. **This configuration will cause -* device probe failure on all current platforms, but may be allowed on -* igpu platforms in the future**:: +* effectively disabling the primary GT. Note that only media workloads +* are usable in this configuration:: * * # echo 'media' > /sys/kernel/config/xe/0000:03:00.0/gt_types_allowed * * Disable all GTs. Only other GPU IP (such as display) is potentially usable. * **This configuration will cause device probe failure on all current -* platforms, but may be allowed on igpu platforms in the future**:: +* platforms**:: * * # echo '' > /sys/kernel/config/xe/0000:03:00.0/gt_types_allowed *
Signature · 1 line
2.43.0
PATCH 13/16 drm/xe: Fall back to CPU copies when the tile cannot blit
In reply to Stuart Summersxe_migrate_copy() and xe_migrate_clear() emit blitter commands, and the copy engine they need lives on the primary GT. A tile without one can still run the migration context for page table updates, but it has no way to move data.
On an integrated device this never comes up, since every move either ends in ttm_bo_move_null() or needs no clear. With VRAM it does, so let xe_bo_move() hand the work to ttm_bo_move_memcpy(), which reaches VRAM through the BAR mapping xe already sets up in xe_ttm_io_mem_reserve(), and which covers the clear case by way of an unpopulated source. The pinned save and restore paths grow the same check, falling back to the vmap and memcpy branch they already have.
Reads come back over PCIe uncached and are correspondingly slow, so this is only meant to keep a media only device working, not to perform.
--- drivers/gpu/drm/xe/xe_bo.c | 43 ++++++++++++++++++++++----------- drivers/gpu/drm/xe/xe_migrate.c | 16 ++++++++++++ drivers/gpu/drm/xe/xe_migrate.h | 2 ++ 3 files changed, 47 insertions(+), 14 deletions(-)
drivers/gpu/drm/xe/xe_bo.c +29 -14
@@ -1277,6 +1277,19 @@ static int xe_bo_move(struct ttm_buffer_object *ttm_bo, bool evict,xe_pm_runtime_get_noresume (xe); } +/* +* A tile with no copy engine cannot blit, so move the data with the +* CPU instead. For VRAM that means going over the PCIe BAR, which is +* slow, but a device with no graphics IP offers no alternative. +* ttm_bo_move_memcpy() covers the clear case too, by way of an +* unpopulated source. +*/ +if (!xe_migrate_can_blit (migrate)) { + ret =ttm_bo_move_memcpy (ttm_bo, ctx, new_mem); +xe_pm_runtime_put (xe); + goto out; + } +/* * Attach CCS BBs before submitting the copy job below so a VF * migration racing the copy sees valid, up to date attach state.
@@ -1578,17 +1591,18 @@ int xe_bo_notifier_unprepare_pinned(struct xe_bo *bo)static int xe_bo_evict_pinned_copy (struct xe_bo *bo,struct xe_bo *backup) {struct xe_device *xe =xe_bo_device (bo); +struct xe_migrate *migrate;bool unmap = false;int ret =0 ; -if (xe_bo_is_user (bo) || (bo->flags &XE_BO_FLAG_PINNED_LATE_RESTORE )) { -struct xe_migrate *migrate; -struct dma_fence *fence; +if (bo->tile) + migrate = bo->tile->migrate; +else + migrate =mem_type_to_migrate (xe, bo->ttm.resource->mem_type); -if (bo->tile) - migrate = bo->tile->migrate; -else - migrate =mem_type_to_migrate (xe, bo->ttm.resource->mem_type); +if ((xe_bo_is_user (bo) || (bo->flags &XE_BO_FLAG_PINNED_LATE_RESTORE )) && +xe_migrate_can_blit (migrate)) { +struct dma_fence *fence;xe_assert (xe, bo->ttm.base.resv == backup->ttm.base.resv); ret =dma_resv_reserve_fences (bo->ttm.base.resv,1 );
@@ -1717,6 +1731,7 @@ int xe_bo_restore_pinned(struct xe_bo *bo) };struct xe_device *xe =ttm_to_xe_device (bo->ttm.bdev);struct xe_bo *backup = bo->backup_obj; +struct xe_migrate *migrate;bool unmap = false;int ret;
@@ -1731,14 +1746,14 @@ int xe_bo_restore_pinned(struct xe_bo *bo) goto out_unlock_bo; } -if (xe_bo_is_user (bo) || (bo->flags &XE_BO_FLAG_PINNED_LATE_RESTORE )) { -struct xe_migrate *migrate; -struct dma_fence *fence; +if (bo->tile) + migrate = bo->tile->migrate; +else + migrate =mem_type_to_migrate (xe, bo->ttm.resource->mem_type); -if (bo->tile) - migrate = bo->tile->migrate; -else - migrate =mem_type_to_migrate (xe, bo->ttm.resource->mem_type); +if ((xe_bo_is_user (bo) || (bo->flags &XE_BO_FLAG_PINNED_LATE_RESTORE )) && +xe_migrate_can_blit (migrate)) { +struct dma_fence *fence; ret =dma_resv_reserve_fences (bo->ttm.base.resv,1 );if (ret)
drivers/gpu/drm/xe/xe_migrate.c +16 -0
@@ -2155,6 +2155,22 @@ void xe_migrate_wait(struct xe_migrate *m)dma_fence_wait (m->fence, false); } +/** +* xe_migrate_can_blit() - Whether a migration context can issue blits +* @m: The migration context +* +* xe_migrate_copy() and xe_migrate_clear() emit blitter commands, which only +* the copy engine understands, and the copy engine lives on the primary GT. +* A tile without one can still update page tables, so its migration context +* is usable, but callers that want to move data have to do it themselves. +* +* Return: true if blit based copy and clear are available on @m. +*/ +bool xe_migrate_can_blit (struct xe_migrate *m) +{ +return m->tile->primary_gt; +} +static u32 pte_update_cmd_size (u64 size) {u32 num_dword;
drivers/gpu/drm/xe/xe_migrate.h +2 -0
@@ -93,6 +93,8 @@ struct xe_vm *xe_migrate_get_vm(struct xe_migrate *m);void xe_migrate_wait (struct xe_migrate *m); +bool xe_migrate_can_blit (struct xe_migrate *m); +#if IS_ENABLED (CONFIG_DRM_XE_DEBUG_MEM ) int xe_migrate_debug_ccs_overlap(struct xe_migrate *m, struct xe_bo *scratch_bo,
Signature · 1 line
2.43.0
[email protected]
AI reviewRe: [PATCH 13/16] drm/xe: Fall back to CPU copies when the tile cannot blit
Thank you for your contribution! Sashiko AI review found 5 potential issues to consider: - [Critical] drm/xe: out-of-bounds ioremap on non-contiguous VRAM BO in ttm_bo_move_memcpy() - [High] drm/xe…
Thank you for your contribution! Sashiko AI review found 5 potential issues to consider:
- [Critical] drm/xe: out-of-bounds ioremap on non-contiguous VRAM BO in ttm_bo_move_memcpy()
- [High] drm/xe: WARN_ON and -EINVAL on VRAM BO clear in xe_bo_move() via ttm_bo_move_memcpy()
- [High] drm/xe: invalid xe_bo_vmap() fallback in pinned BO save and restore paths
- [High] drm/xe: missing fence wait before synchronous ttm_bo_move_memcpy() in xe_bo_move()
- [Medium] drm/xe: unchecked blitter calls in xe_ttm_access_memory() and xe_vram_memtest()
--
commit 0cfa915c2d6cb675a189debb683cd051c34415aa
Author: Stuart Summers <[email protected]>
drm/xe: Fall back to CPU copies when the tile cannot blit
This commit adds xe_migrate_can_blit() to detect tiles without a primary GT and falls back to CPU copies in xe_bo_move(), xe_bo_evict_pinned_copy(), and xe_bo_restore_pinned().
Quoted 10 lines
drivers/gpu/drm/xe/xe_bo.c +2
-0@@ -1277,6 +1277,19 @@ static int xe_bo_move(struct ttm_buffer_object *ttm_bo, bool evict,xe_pm_runtime_get_noresume (xe); } +/* +* A tile with no copy engine cannot blit, so move the data with the
drivers/gpu/drm/xe/xe_bo.c static int xe_bo_move(struct ttm_buffer_object *ttm_bo, bool evict, · line 1291
Quoted 10 lines
drivers/gpu/drm/xe/xe_bo.c +10
-0+* CPU instead. For VRAM that means going over the PCIe BAR, which is +* slow, but a device with no graphics IP offers no alternative. +* ttm_bo_move_memcpy() covers the clear case too, by way of an +* unpopulated source. +*/ +if (!xe_migrate_can_blit (migrate)) { + ret =ttm_bo_move_memcpy (ttm_bo, ctx, new_mem); +xe_pm_runtime_put (xe); + goto out; + }
[Severity: Critical]
Can ttm_bo_move_memcpy() ioremap an overflowed physical address when moving or clearing a non-contiguous VRAM BO?
User VRAM BOs do not set force_contiguous(bo_flags), so when a VRAM allocation spans non-adjacent buddy blocks, xe_ttm_vram_mgr_new() leaves TTM_PL_FLAG_CONTIGUOUS unset and sets vres->base.start to XE_BO_INVALID_OFFSET (LONG_MAX). When ttm_bo_move_memcpy() initializes its linear IO iterator, xe_ttm_io_mem_reserve() shifts mem->start by PAGE_SHIFT:
drivers/gpu/drm/xe/xe_bo.c:xe_ttm_io_mem_reserve() {
...
mem->bus.offset = mem->start << PAGE_SHIFT;
if (vram->mapping &&
mem->placement & TTM_PL_FLAG_CONTIGUOUS)
mem->bus.addr = (u8 __force *)vram->mapping +
mem->bus.offset;
mem->bus.offset += vram->io_start;
mem->bus.is_iomem = true;
...
}Because TTM_PL_FLAG_CONTIGUOUS is clear, mem->bus.addr stays NULL and mem->bus.offset wraps to vram->io_start - PAGE_SIZE. ttm_kmap_iter_linear_io_init() then ioremaps mem->size bytes starting at physical address vram->io_start - PAGE_SIZE, and ttm_move_memcpy() linearly reads, writes, or zeroes across that address and the start of the VRAM BAR instead of walking the BO's buddy blocks via xe_res_cursor.
[Severity: High]
Does ttm_bo_move_memcpy() hit WARN_ON(!src_mem) and return -EINVAL when clearing a newly created VRAM BO?
When a ttm_bo_type_device BO is created in VRAM without XE_BO_FLAG_DEFER_BACKING, xe_bo_init_locked() validates it while ttm_bo->resource (old_mem) and ttm_bo->ttm are both NULL. In xe_bo_move(), move_lacks_source and needs_clear are both true, so execution reaches ttm_bo_move_memcpy(), which requires a non-NULL bo->resource:
drivers/gpu/drm/ttm/ttm_bo_util.c:ttm_bo_move_memcpy() {
...
struct ttm_resource *src_mem = bo->resource;
...
if (WARN_ON(!src_mem))
return -EINVAL;Every non-deferred user VRAM BO creation on a tile that cannot blit will trigger the warning and fail with -EINVAL.
[Severity: High]
Does this path also run ttm_bo_move_memcpy() before waiting for existing fences on ttm_bo->base.resv?
Unlike xe_migrate_copy() and xe_migrate_clear(), which queue job dependencies on DMA_RESV_USAGE_BOOKKEEP and DMA_RESV_USAGE_KERNEL fences, ttm_bo_move_memcpy() copies or zeroes with the CPU immediately and only waits on bo->base.resv inside ttm_bo_move_sync_cleanup() after ttm_move_memcpy() has already finished. When xe_bo_trigger_rebind() skips its DMA_RESV_USAGE_BOOKKEEP wait (for example on a non-fault-mode VM when !xe_device_is_l2_flush_optimized(xe)), or when new_mem carries pipelined DMA_RESV_USAGE_KERNEL eviction fences, the CPU copy runs concurrently with in-flight GPU work and ignores ctx->no_wait_gpu unless ttm_bo_wait_ctx() is called first.
Quoted 43 lines
drivers/gpu/drm/xe/xe_bo.c +11
-10@@ -1578,17 +1591,18 @@ int xe_bo_notifier_unprepare_pinned(struct xe_bo *bo)static int xe_bo_evict_pinned_copy (struct xe_bo *bo,struct xe_bo *backup) {struct xe_device *xe =xe_bo_device (bo); +struct xe_migrate *migrate;bool unmap = false;int ret =0 ; -if (xe_bo_is_user (bo) || (bo->flags &XE_BO_FLAG_PINNED_LATE_RESTORE )) { -struct xe_migrate *migrate; -struct dma_fence *fence; +if (bo->tile) + migrate = bo->tile->migrate; +else + migrate =mem_type_to_migrate (xe, bo->ttm.resource->mem_type); -if (bo->tile) - migrate = bo->tile->migrate; -else - migrate =mem_type_to_migrate (xe, bo->ttm.resource->mem_type); +if ((xe_bo_is_user (bo) || (bo->flags &XE_BO_FLAG_PINNED_LATE_RESTORE )) && +xe_migrate_can_blit (migrate)) { +struct dma_fence *fence;xe_assert (xe, bo->ttm.base.resv == backup->ttm.base.resv); ret =dma_resv_reserve_fences (bo->ttm.base.resv,1 );@@ -1717,6 +1731,7 @@ int xe_bo_restore_pinned(struct xe_bo *bo) };struct xe_device *xe =ttm_to_xe_device (bo->ttm.bdev);struct xe_bo *backup = bo->backup_obj; +struct xe_migrate *migrate;bool unmap = false;int ret;@@ -1731,14 +1746,14 @@ int xe_bo_restore_pinned(struct xe_bo *bo) goto out_unlock_bo; } -if (xe_bo_is_user (bo) || (bo->flags &XE_BO_FLAG_PINNED_LATE_RESTORE )) { -struct xe_migrate *migrate; -struct dma_fence *fence; +if (bo->tile) + migrate = bo->tile->migrate;
drivers/gpu/drm/xe/xe_bo.c int xe_bo_restore_pinned(struct xe_bo *bo) · line 1756
Quoted 10 lines
drivers/gpu/drm/xe/xe_bo.c +5
-4+else + migrate =mem_type_to_migrate (xe, bo->ttm.resource->mem_type); -if (bo->tile) - migrate = bo->tile->migrate; -else - migrate =mem_type_to_migrate (xe, bo->ttm.resource->mem_type); +if ((xe_bo_is_user (bo) || (bo->flags &XE_BO_FLAG_PINNED_LATE_RESTORE )) && +xe_migrate_can_blit (migrate)) { +struct dma_fence *fence;
[Severity: High]
Will falling back to the else branch in xe_bo_evict_pinned_copy() and xe_bo_restore_pinned() trigger drm_WARN_ON() and fail with -EINVAL in xe_bo_vmap(bo)?
When !xe_migrate_can_blit(migrate), the else branch calls xe_bo_vmap(bo) if bo->vmap is null, and xe_bo_vmap() rejects any BO that does not have both XE_BO_FLAG_NEEDS_CPU_ACCESS and force_contiguous(bo->flags):
drivers/gpu/drm/xe/xe_bo.c:xe_bo_vmap() {
...
if (drm_WARN_ON(&xe->drm, !(bo->flags & XE_BO_FLAG_NEEDS_CPU_ACCESS) ||
!force_contiguous(bo->flags)))
return -EINVAL;User BOs pinned via xe_bo_pin_external() never have XE_BO_FLAG_PINNED set, and late-restore kernel BOs such as VF LMEM BOs in pf_provision_vf_lmem() do not set XE_BO_FLAG_NEEDS_CPU_ACCESS, so force_contiguous(bo->flags) is false (and their VRAM blocks are not guaranteed to be contiguous), causing suspend and resume to warn and fail with -EINVAL.
Quoted 13 lines
drivers/gpu/drm/xe/xe_migrate.c +5
-0@@ -2155,6 +2155,22 @@ void xe_migrate_wait(struct xe_migrate *m)dma_fence_wait (m->fence, false); } +/** +* xe_migrate_can_blit() - Whether a migration context can issue blits +* @m: The migration context +* +* xe_migrate_copy() and xe_migrate_clear() emit blitter commands, which only
drivers/gpu/drm/xe/xe_migrate.c void xe_migrate_wait(struct xe_migrate *m) · line 2172
Quoted 10 lines
drivers/gpu/drm/xe/xe_migrate.c +10
-0+* the copy engine understands, and the copy engine lives on the primary GT. +* A tile without one can still update page tables, so its migration context +* is usable, but callers that want to move data have to do it themselves. +* +* Return: true if blit based copy and clear are available on @m. +*/ +bool xe_migrate_can_blit (struct xe_migrate *m) +{ +return m->tile->primary_gt; +}
[Severity: Medium]
Should xe_ttm_access_memory() and xe_vram_memtest() also check xe_migrate_can_blit()?
In xe_ttm_access_memory(), accesses with len >= SZ_16K unconditionally call xe_migrate_access_memory() instead of falling through to the CPU BAR memcpy loop, which emits blitter copy commands onto the migration queue. Similarly, when CONFIG_DRM_XE_DEBUG_MEM is enabled, xe_vram_memtest() only checks tile->migrate before calling xe_migrate_clear(), which fails the GPU clear check and aborts xe_device_probe() with -EIO on a tile without a primary GT.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=13
PATCH 14/16 drm/xe: Require a fully visible VRAM BAR without a primary GT
In reply to Stuart SummersCPU copies can only reach VRAM that the BAR maps: xe_ttm_io_mem_reserve() rejects any resource that is not entirely CPU visible. With no primary GT there is no copy engine to fall back on, so a small BAR would leave most of VRAM unreachable.
Refuse to probe such a device rather than fail later on the first move.
--- drivers/gpu/drm/xe/xe_vram.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
drivers/gpu/drm/xe/xe_vram.c +15 -0
@@ -23,6 +23,7 @@#include "xe_mmio.h" #include "xe_sriov.h" #include "xe_tile.h" +#include "xe_tile_printk.h" #include "xe_tile_sriov_vf.h" #include "xe_ttm_vram_mgr.h" #include "xe_vram.h"
@@ -346,6 +347,20 @@ int xe_vram_probe(struct xe_device *xe)if (err)return err; +/* +* Without a primary GT there is no copy engine, so VRAM is +* moved with the CPU through the BAR. That only works if the +* BAR covers all of it. +*/ +if (!tile->primary_gt && + tile->mem.vram->io_size < tile->mem.vram->usable_size) { +xe_tile_err (tile, +"VRAM is not fully CPU visible (%pa of %pa); a resizable BAR is required without a primary GT\n" , + &tile->mem.vram->io_size, + &tile->mem.vram->usable_size); +return -ENODEV ; + } +if (total_size > lmem_bar.io_size) { xe_log_info(xe, VRAM, "Total size %#llx is larger than resource %#llx\n",
Signature · 1 line
2.43.0
PATCH 15/16 drm/xe: Allow probe without a primary GT
In reply to Stuart SummersProbe required a graphics IP and a primary GT, so the media only combination the gt_types_allowed configfs attribute can ask for was rejected outright.
Require instead that something is left to drive: at least one of the two IPs has to be detected, and every tile has to end up with at least one GT. The dgpu concern the old comment raised is covered by VRAM being a graphics IP property, so a device without one has no VRAM to manage.
--- drivers/gpu/drm/xe/xe_pci.c | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-)
drivers/gpu/drm/xe/xe_pci.c +9 -16
@@ -1060,11 +1060,11 @@ static int xe_probe_ips(struct xe_device *xe, }/* -* If we couldn't detect the graphics IP, that's considered a fatal -* error and we should abort driver load. Failing to detect media -* IP is non-fatal; we'll just proceed without enabling media support. +* Either IP on its own is enough to go on with. Only a device where +* neither could be detected is a fatal error, since there would be +* nothing left to drive. */ -if (!probed_info->graphics_ip) +if (!probed_info->graphics_ip && !probed_info->media_ip)return -ENODEV ;return 0 ;
@@ -1179,21 +1179,14 @@ static int xe_info_init(struct xe_device *xe,if (IS_ERR (tile->primary_gt))return PTR_ERR (tile->primary_gt); -/* -* It's not currently possible to probe a device with the -* primary GT disabled. With some work, this may be future in -* the possible for igpu platforms (although probably not for -* dgpu's since access to the primary GT's BCS engines is -* required for VRAM management). -*/ -if (!tile->primary_gt) { -drm_err (&xe->drm,"Cannot probe device with without a primary GT\n" ); -return -ENODEV ; - } - tile->media_gt =alloc_media_gt (tile, media_desc);if (IS_ERR (tile->media_gt))return PTR_ERR (tile->media_gt); + +if (!tile->primary_gt && !tile->media_gt) { +xe_tile_err (tile,"Cannot probe tile without any GT\n" ); +return -ENODEV ; + } }/*
Signature · 1 line
2.43.0
[email protected]
AI reviewRe: [PATCH 15/16] drm/xe: Allow probe without a primary GT
Thank you for your contribution! Sashiko AI review found 5 potential issues to consider: - [High] drm/xe: NULL derefs in probe when primary GT is disabled via configfs - [High] drm/xe: NULL…
Thank you for your contribution! Sashiko AI review found 5 potential issues to consider:
- [High] drm/xe: NULL derefs in probe when primary GT is disabled via configfs
- [High] drm/xe: NULL program_media call in xe_pat_init() when graphics_ip is NULL
- [High] drm/xe: missing xe_ggtt_init() and NULL assert deref without primary_gt
- [Medium] drm/xe: unguarded primary_gt in xe_pt.c/xe_svm.c and blit in memtest
- [Low] drm/xe: commit message inaccurately states VRAM is a graphics IP property
--
commit 9870f1ea44e1074c5fb5cad9863b81c0891dd74c
Author: Stuart Summers <[email protected]>
drm/xe: Allow probe without a primary GT
This commit allows probing a device when either the graphics IP or the media IP is detected and each tile has at least one GT, removing the hard requirement for a graphics IP and a primary GT.
Quoted 2 lines
The dgpu concern the old comment raised is covered by VRAM being a graphics IP property, so a device without one has no VRAM to manage.
[Severity: Low]
Is this commit message description accurate? Discrete GPU status and VRAM configuration (desc->is_dgfx and desc->vram_flags) come from the platform device descriptor rather than the graphics IP descriptor, so a discrete GPU probed without a graphics IP or primary GT still allocates and probes VRAM via xe_tile_alloc_vram() and xe_vram_probe().
Quoted 10 lines
drivers/gpu/drm/xe/xe_pci.c +0
-2@@ -1059,11 +1059,11 @@ static int xe_probe_ips(struct xe_device *xe, }/* -* If we couldn't detect the graphics IP, that's considered a fatal -* error and we should abort driver load. Failing to detect media
drivers/gpu/drm/xe/xe_pci.c static int xe_probe_ips(struct xe_device *xe, · line 1069
Quoted 10 lines
drivers/gpu/drm/xe/xe_pci.c +4
-2-* IP is non-fatal; we'll just proceed without enabling media support. +* Either IP on its own is enough to go on with. Only a device where +* neither could be detected is a fatal error, since there would be +* nothing left to drive. */ -if (!probed_info->graphics_ip) +if (!probed_info->graphics_ip && !probed_info->media_ip)return -ENODEV ;return 0 ;
[Severity: High]
When probed_info->graphics_ip is NULL, xe->info.graphics_verx100 remains 0. Can xe_pat_init() then call a NULL xe->pat.ops->program_media pointer when initializing the media GT?
In xe_pat_init_early(), every non-MTL platform checks GRAPHICS_VER(xe) or GRAPHICS_VERx100(xe), so a value of 0 falls into the GRAPHICS_VERx100(xe) <= 1210 branch and selects xelp_pat_ops, where program_media is NULL. Having GRAPHICS_VERx100(xe) == 0 also causes ggtt_probe(), xe_force_wake_init_gt(), rw_with_mcr_steering(), and read_media_fuses() to take legacy pre-Gen12.5 paths on the media GT.
Quoted 15 lines
drivers/gpu/drm/xe/xe_pci.c +0
-11@@ -1178,21 +1178,14 @@ static int xe_info_init(struct xe_device *xe,if (IS_ERR (tile->primary_gt))return PTR_ERR (tile->primary_gt); -/* -* It's not currently possible to probe a device with the -* primary GT disabled. With some work, this may be future in -* the possible for igpu platforms (although probably not for -* dgpu's since access to the primary GT's BCS engines is -* required for VRAM management). -*/ -if (!tile->primary_gt) { -drm_err (&xe->drm,"Cannot probe device with without a primary GT\n" ); -return -ENODEV ; - }
drivers/gpu/drm/xe/xe_pci.c static int xe_info_init(struct xe_device *xe, · line 1189
Quoted 10 lines
drivers/gpu/drm/xe/xe_pci.c +5
-1- tile->media_gt =alloc_media_gt (tile, media_desc);if (IS_ERR (tile->media_gt))return PTR_ERR (tile->media_gt); + +if (!tile->primary_gt && !tile->media_gt) { +xe_tile_err (tile,"Cannot probe tile without any GT\n" ); +return -ENODEV ; + } }
[Severity: High]
When the primary GT is disabled via configfs (gt_types_allowed=media) on a platform that physically has a graphics IP, can probe hit NULL pointer dereferences in get_flat_ccs_offset() and xe_migrate_prepare_vm()?
Because probed_info->graphics_ip is still detected from hardware, xe_info_init() populates graphics_desc without checking xe_configfs_primary_gt_allowed():
drivers/gpu/drm/xe/xe_pci.c:xe_info_init() {
...
if (graphics_desc) {
...
xe->info.has_usm = graphics_desc->has_usm;
xe->info.has_64bit_timestamp = graphics_desc->has_64bit_timestamp;
} else {
xe->info.has_flat_ccs = 0;
}
}With tile->primary_gt set to NULL by alloc_primary_gt(), xe->info.has_flat_ccs and xe->info.has_usm remain enabled:
1. probe_has_flat_ccs() sees xe_root_mmio_gt(xe) == NULL and returns early without clearing has_flat_ccs, so on discrete GPUs with Flat CCS, xe_vram_probe() -> tile_vram_size() passes gt = tile->primary_gt (NULL) to get_flat_ccs_offset(), which dereferences gt.
2. In gt_init_with_all_forcewake(), gt->usm.bb_pool is only allocated when xe_gt_is_main_type(gt) is true, leaving tile->media_gt->usm.bb_pool NULL. When xe_migrate_init() runs on tile->media_gt (now the tile's xe_tile_pt_gt()), xe_migrate_prepare_vm() checks xe->info.has_usm and dereferences xe_tile_pt_gt(tile)->usm.bb_pool->bo.
[Severity: High]
When tile->primary_gt is NULL, does probing skip xe_ggtt_init() and dereference a NULL primary_gt in ggtt_init_ranges()?
In ggtt_init_ranges(), gt = ggtt->tile->primary_gt is passed to xe_gt_assert(gt, full_size), which evaluates gt_to_tile(gt) ((gt)->tile) when CONFIG_DRM_XE_DEBUG is enabled. Later, in gt_init_with_gt_forcewake(), xe_ggtt_init() is only called under if (xe_gt_is_main_type(gt)), so a tile with only a media GT never initializes its GGTT scratch page or clears the GGTT. Similarly, xe_gt_flr_prepare() and xe_gt_reinit() still gate xe_migrate_flr_prepare() and xe_migrate_reinit() on xe_gt_is_main_type(gt) rather than gt == xe_tile_pt_gt(gt_to_tile(gt)).
[Severity: Medium]
Are there remaining paths after probe that assume tile->primary_gt is non-NULL or that tile->migrate supports blitter commands?
In xe_pt.c, generate_reclaim_entry(), add_pte_to_prl(), and xe_pt_stage_unbind_entry() pass tile->primary_gt to xe_gt_stats_incr() and xe_page_reclaim_list_abort(), which dereference gt->stats (when CONFIG_DEBUG_FS is enabled) and gt_to_xe(gt)->drm on platforms with has_page_reclaim_hw_assist. In xe_svm.c, xe_svm_range_notifier_event_begin() and xe_svm_invalidate() guard tile->media_gt before updating TLB invalidation stats, but pass tile->primary_gt unconditionally. Also, in xe_vram.c, xe_vram_memtest() calls xe_migrate_clear() without checking xe_migrate_can_blit(tile->migrate), emitting blitter clear commands onto the media GT's migration queue.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=15
PATCH 16/16 drm/xe: Work around media 52-bit limitation on CRI
In reply to Stuart SummersCRI media only supports 46-bit GPA. With the IOMMU handing out IOVAs above 46 bits this shows up as ATS translation errors and a media GuC load failure.
The workaround for this is broken into a couple of parts:
1) Media is now disabled by default on CRI.
2) When media is enabled, implement certain workarounds to ensure compute performance remains optimal and media accesses do not result in the above mentioned translation errors.
The first part of the workaround means for the customers who are not interested in using media, they can retain the full 52-bit GPA range for a broader PCIe installation without worrying about any specific limitation to support the media workloads on this device.
Additionally, to ensure power is not consumed by media in this configuration, a new interfaces is added between the KMD and the GFSP firmware to bring media down into a low power state.
The second part of the workaround again is broken down into a few parts:
1) The whole device is restricted to 46-bit GPA.
2) Disable address translation in the media block alone to allow faster translation for compute workloads with PCIe level address translation enabled while ensuring host accesses beyond 46-bits (e.g. coming from another 52-bit supporting device) are still limited to 46-bits for the CRI media.
Media needs every device DMA address to stay within 46 bits. With the IOMMU translating device DMA that is guaranteed by the IOVA allocator honoring the clamped mask. Without it, DMA addresses are host physical addresses, so media stays enabled only when host memory fits in 46 bits. Beyond that the host can hand out an address media cannot reach, so disable media.
In order to disable address translation for media, a certain register programming which is not accessible from the host must be engaged. To facilitate this, an additional new interface is added between the KMD and the GFSP firmware to do this programming.
HSDES: 14028632488
--- drivers/gpu/drm/xe/xe_device.c | 10 + drivers/gpu/drm/xe/xe_device_wa_oob.rules | 1 + drivers/gpu/drm/xe/xe_pci.c | 54 ++++- drivers/gpu/drm/xe/xe_pm.c | 4 + drivers/gpu/drm/xe/xe_sysctrl.c | 185 ++++++++++++++++++ drivers/gpu/drm/xe/xe_sysctrl.h | 2 + drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h | 34 ++++ drivers/gpu/drm/xe/xe_sysctrl_types.h | 6 + 8 files changed, 294 insertions(+), 2 deletions(-)
drivers/gpu/drm/xe/xe_device.c +10 -0
@@ -994,6 +994,12 @@ int xe_device_probe(struct xe_device *xe)if (err)return err; +/* +* Let the System Controller know how media is configured as early as +* the mailbox allows, before any media GT is brought up. +*/ +xe_sysctrl_media_probe (xe); + err =xe_ras_init (xe);if (err)return err;
@@ -1518,6 +1524,10 @@ int xe_device_resume(struct xe_device *xe, bool flr)xe_sysctrl_pm_resume (xe); + err =xe_sysctrl_media_defeature (xe); +if (err) +return err; +xe_irq_resume (xe);for_each_gt (gt, xe, id) {
drivers/gpu/drm/xe/xe_device_wa_oob.rules +1 -0
@@ -8,3 +8,4 @@ 14026779378 PLATFORM(CRESCENTISLAND) 14028586678 PLATFORM(CRESCENTISLAND) 14028434957 PLATFORM(CRESCENTISLAND) +14028632488 PLATFORM(CRESCENTISLAND)
drivers/gpu/drm/xe/xe_pci.c +52 -2
80 lines not on this page · raw message
drivers/gpu/drm/xe/xe_pm.c +4 -0
@@ -662,6 +662,10 @@ int xe_pm_runtime_resume(struct xe_device *xe)*/ xe_sysctrl_pm_resume (xe); + err =xe_sysctrl_media_defeature (xe); +if (err) + goto out; +xe_display_pm_runtime_resume_early (xe);xe_irq_resume (xe);
drivers/gpu/drm/xe/xe_sysctrl.c +185 -0
212 lines not on this page · raw message
drivers/gpu/drm/xe/xe_sysctrl.h +2 -0
@@ -18,6 +18,8 @@ static inline struct xe_device *sc_to_xe(struct xe_sysctrl *sc)void xe_sysctrl_event (struct xe_sysctrl *sc);int xe_sysctrl_init (struct xe_device *xe); +int xe_sysctrl_media_defeature (struct xe_device *xe); +void xe_sysctrl_media_probe (struct xe_device *xe);void xe_sysctrl_irq_handler (struct xe_device *xe,u32 master_ctl);void xe_sysctrl_pm_resume (struct xe_device *xe);bool xe_sysctrl_is_oobmsm_fw_ready (struct xe_device *xe);
drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h +34 -0
@@ -15,11 +15,13 @@* * @XE_SYSCTRL_GROUP_GFSP: GFSP group * @XE_SYSCTRL_GROUP_DIAG: Diag group +* @XE_SYSCTRL_GROUP_RUNTIME: Runtime group * @XE_SYSCTRL_GROUP_CORE: Core group */ enum xe_sysctrl_group {XE_SYSCTRL_GROUP_GFSP =0x01 ,XE_SYSCTRL_GROUP_DIAG =0x02 , +XE_SYSCTRL_GROUP_RUNTIME =0x31 ,XE_SYSCTRL_GROUP_CORE =0xFF , };
@@ -94,6 +96,38 @@ struct xe_sysctrl_diag_ras_err_inj_req {u32 params; } __packed; +/** +* enum xe_sysctrl_runtime_cmd - Commands supported by Runtime group +* +* @XE_SYSCTRL_CMD_MEDIA_DEFEATURE: Disable feature in media +*/ +enum xe_sysctrl_runtime_cmd { +XE_SYSCTRL_CMD_MEDIA_DEFEATURE =0x11 , +}; + +#define XE_SYSCTRL_MEDIA_DEFEATURE_DISABLE 0x01 +#define XE_SYSCTRL_MEDIA_DEFEATURE_ATS_DISABLE 0x02 + +/** +* struct xe_sysctrl_media_defeature_req - Media defeature request +* +* @feature: Media feature to defeature, one of +* XE_SYSCTRL_MEDIA_DEFEATURE_DISABLE or +* XE_SYSCTRL_MEDIA_DEFEATURE_ATS_DISABLE +*/ +struct xe_sysctrl_media_defeature_req { +u8 feature; +} __packed; + +/** +* struct xe_sysctrl_media_defeature_resp - Media defeature response +* +* @flags: Firmware status flags +*/ +struct xe_sysctrl_media_defeature_resp { +u32 flags; +} __packed; +/** * struct xe_sysctrl_app_status_req - Get application status request *
drivers/gpu/drm/xe/xe_sysctrl_types.h +6 -0
@@ -75,6 +75,12 @@ struct xe_sysctrl {/** @event_lock: Mutex protecting pending events */ struct mutex event_lock; +/** +* @has_media_feature_disable: The System Controller accepts media +* defeature requests. +*/ +bool has_media_feature_disable; +/** @debugfs: Debugfs entries */ struct {/** @debugfs.root: Root debugfs directory */
Signature · 1 line
2.43.0
[email protected]
AI reviewRe: [PATCH 16/16] drm/xe: Work around media 52-bit limitation on CRI
Thank you for your contribution! Sashiko AI review found 5 potential issues to consider: - [High] drm/xe: unexported DIRECT_MAP_PHYSMEM_END in cri_media_addressable() - [Medium] drm/xe: stale…
Thank you for your contribution! Sashiko AI review found 5 potential issues to consider:
- [High] drm/xe: unexported DIRECT_MAP_PHYSMEM_END in cri_media_addressable()
- [Medium] drm/xe: stale gt_count and zero-GT crash in sysctrl_media_drop()
- [Medium] drm/xe: ATS defeature sent without forcewake in xe_sysctrl_media_defeature()
- [Medium] drm/xe: clearing has_media_feature_disable skips defeature on later resumes
- [Low] drm/xe: unconditional xe_info() log in sysctrl_media_defeature_send() on resume
--
commit bfba7658ba4dafcad71b1d3fc6d2e7a7e1c0e5dd
Author: Stuart Summers <[email protected]>
drm/xe: Work around media 52-bit limitation on CRI
This commit disables media by default on CRI to work around its 46-bit GPA limit. When media is enabled, it clamps the device DMA mask to 46 bits and adds a System Controller mailbox command to defeature either media or media address translation on probe and resume.
Quoted 4 lines
drivers/gpu/drm/xe/xe_pci.c +0
-0
[ ... ]
Quoted 18 lines
drivers/gpu/drm/xe/xe_pci.c +14
-0@@ -815,6 +818,44 @@ static int xe_probe_info_early(struct xe_device *xe,return 0 ; } +/* +* Number of address bits media is able to reach on CRI, where it has no +* address translation of its own. +*/ +#define XE_CRI_MEDIA_ADDR_BITS 46 + +static bool device_iommu_iova_backed (struct device *dev) +{ +struct iommu_domain *domain =iommu_get_domain_for_dev (dev); + +return domain && domain->type !=IOMMU_DOMAIN_IDENTITY ; +} + +/*
drivers/gpu/drm/xe/xe_pci.c static int xe_probe_info_early(struct xe_device *xe, · line 844
Quoted 10 lines
drivers/gpu/drm/xe/xe_pci.c +10
-0+* Decide whether media can be used on CRI. Media there cannot translate +* addresses, so it is only usable if device DMA is guaranteed to stay within +* XE_CRI_MEDIA_ADDR_BITS. The IOMMU guarantees that by allocating IOVAs +* below the device dma mask. Without it, DMA addresses are host physical +* addresses, so media is only usable when the host cannot produce an address +* wider than media can reach. +*/ +static bool cri_media_addressable (struct xe_device *xe) +{ +u64 host_max_addr =DIRECT_MAP_PHYSMEM_END ;
[Severity: High]
Does using DIRECT_MAP_PHYSMEM_END here break modular builds when CONFIG_RANDOMIZE_MEMORY is enabled on x86_64?
arch/x86/include/asm/pgtable_64_types.h defines DIRECT_MAP_PHYSMEM_END as direct_map_physmem_end, which is defined in arch/x86/mm/kaslr.c without EXPORT_SYMBOL, causing modpost to fail with an undefined symbol when CONFIG_DRM_XE=m.
Also, DIRECT_MAP_PHYSMEM_END is the end of the virtual direct-map region rather than the highest installed physical RAM address. In kernel_randomize_memory() in arch/x86/mm/kaslr.c, direct_map_physmem_end stays at (1ULL << MAX_PHYSMEM_BITS) - 1 whenever CONFIG_ZONE_DEVICE is enabled (which CONFIG_DRM_XE_GPUSVM selects), so cri_media_addressable() will reject media on 5-level paging hosts without IOMMU translation regardless of how much RAM is installed.
Quoted 4 lines
drivers/gpu/drm/xe/xe_sysctrl.c +0
-0
[ ... ]
Quoted 1 line
drivers/gpu/drm/xe/xe_sysctrl.c +0
-0@@ -251,3 +257,182 @@ int xe_sysctrl_sdk_api_version(struct xe_device *xe, u16 *version)
[ ... ]
Quoted 9 lines
drivers/gpu/drm/xe/xe_sysctrl.c +9
-0+/* Send the media defeature command and report the outcome */ +static int sysctrl_media_defeature_send (struct xe_device *xe,u8 feature) +{ +bool media_allowed = feature ==XE_SYSCTRL_MEDIA_DEFEATURE_ATS_DISABLE ; +int ret; + + ret =sysctrl_media_defeature (xe, feature); +if (ret) { + xe_err(xe, "sysctrl: failed to defeature media (0x%02x): %pe\n",
drivers/gpu/drm/xe/xe_sysctrl.c int xe_sysctrl_sdk_api_version(struct xe_device *xe, u16 *version) · line 321
Quoted 10 lines
drivers/gpu/drm/xe/xe_sysctrl.c +10
-0+ feature, ERR_PTR(ret)); +return ret; + } + +xe_info (xe,"sysctrl: media %s, %s defeatured\n" , + media_allowed ?"enabled" :"disabled" , + media_allowed ?"address translation" :"media" ); + +return 0 ; +}
[Severity: Low]
Since xe_pm_runtime_resume() and xe_device_resume() call xe_sysctrl_media_defeature(), will this xe_info() print on every runtime and system resume?
Quoted 18 lines
drivers/gpu/drm/xe/xe_sysctrl.c +18
-0+ +/* +* The System Controller reaches into media while processing the request, so +* hold the media GT forcewake for its duration. +*/ +static int sysctrl_media_ats_defeature_send (struct xe_device *xe,struct xe_gt *media_gt) +{ +int ret =0 ; + + xe_with_force_wake(fw_ref, gt_to_fw(media_gt), XE_FW_GT) { +if (!xe_force_wake_ref_has_domain (fw_ref.domains,XE_FW_GT )) +xe_err (xe,"sysctrl: failed to wake media GT, defeaturing media ATS anyway\n" ); + + ret =sysctrl_media_defeature_send (xe,XE_SYSCTRL_MEDIA_DEFEATURE_ATS_DISABLE ); + } + +return ret; +}
[ ... ]
Quoted 10 lines
drivers/gpu/drm/xe/xe_sysctrl.c +10
-0+int xe_sysctrl_media_defeature (struct xe_device *xe) +{ +bool media_allowed =xe_device_media_allowed (xe); +struct xe_gt *media_gt; +u8 feature; +int ret; + +if (!sysctrl_media_defeature_needed (xe)) +return 0 ; +
drivers/gpu/drm/xe/xe_sysctrl.c int xe_sysctrl_sdk_api_version(struct xe_device *xe, u16 *version) · line 386
Quoted 10 lines
drivers/gpu/drm/xe/xe_sysctrl.c +10
-0+ feature = media_allowed ?XE_SYSCTRL_MEDIA_DEFEATURE_ATS_DISABLE : +XE_SYSCTRL_MEDIA_DEFEATURE_DISABLE ; + + media_gt =xe_device_get_root_tile (xe)->media_gt; + +if (media_gt && feature ==XE_SYSCTRL_MEDIA_DEFEATURE_ATS_DISABLE && +sysctrl_ats_enabled (xe)) + ret =sysctrl_media_ats_defeature_send (xe, media_gt); +else + ret =sysctrl_media_defeature_send (xe, feature);
[Severity: Medium]
When media_allowed is true (so feature is XE_SYSCTRL_MEDIA_DEFEATURE_ATS_DISABLE) but sysctrl_ats_enabled(xe) is false or media_gt is NULL, does this fall into the else branch and send XE_SYSCTRL_MEDIA_DEFEATURE_ATS_DISABLE without holding media GT forcewake?
drivers/gpu/drm/xe/xe_sysctrl.c int xe_sysctrl_sdk_api_version(struct xe_device *xe, u16 *version) · line 392
Quoted 6 lines
drivers/gpu/drm/xe/xe_sysctrl.c +6
-0+ +if (ret) + xe->sc.has_media_feature_disable = false; + +return ret; +}
[Severity: Medium]
If XE_SYSCTRL_MEDIA_DEFEATURE_ATS_DISABLE fails during xe_sysctrl_media_probe() and the fallback to XE_SYSCTRL_MEDIA_DEFEATURE_DISABLE succeeds, does clearing has_media_feature_disable here prevent xe_pm_runtime_resume() and xe_device_resume() from re-applying XE_SYSCTRL_MEDIA_DEFEATURE_DISABLE on later resumes?
Similarly, if XE_SYSCTRL_MEDIA_DEFEATURE_ATS_DISABLE succeeded at probe so media_gt is active, a transient mailbox failure during resume permanently clears has_media_feature_disable, causing subsequent resumes to return 0 without disabling media ATS.
Quoted 7 lines
drivers/gpu/drm/xe/xe_sysctrl.c +7
-0+ +/* +* Drop media from the device. Only safe during probe, before the media GT is +* brought up. The dma_mask_size cap derived from the early media decision is +* left in place, which is harmless since it is only more restrictive than +* needed. +*/
drivers/gpu/drm/xe/xe_sysctrl.c int xe_sysctrl_sdk_api_version(struct xe_device *xe, u16 *version) · line 409
Quoted 10 lines
drivers/gpu/drm/xe/xe_sysctrl.c +10
-0+static void sysctrl_media_drop (struct xe_device *xe) +{ +struct xe_tile *tile; +u8 id; + + xe->info.media_allowed = false; + +for_each_tile (tile, xe, id) + tile->media_gt =NULL ; +}
[Severity: Medium]
Does clearing tile->media_gt here leave xe->info.gt_count stale and allow a tile to continue probing with zero GTs?
xe_info_init() already computed xe->info.gt_count before xe_device_probe() runs. When tile->media_gt is cleared without decrementing xe->info.gt_count, query_gt_list() sizes and reports gt_list->num_gt from xe->info.gt_count while populating entries with for_each_gt(), exposing trailing zero-filled GT entries to userspace. In addition, if tile->primary_gt was disabled via configfs gt_types_allowed, dropping tile->media_gt leaves no GTs on the tile and causes a NULL pointer dereference later in xe_device_probe() (for example in xe_cpu_bind_init() -> xe_exec_queue_create_bind() when accessing tile->migrate and xe_tile_pt_gt(tile)).
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=16
Patchwork
CI✓ CI.KUnit: success for Work around media 52-bit limitation on CRI
In reply to Stuart Summers== Series Details ==
== Series Details ==
Series: Work around media 52-bit limitation on CRI
URL : https://patchwork.freedesktop.org/series/179173/
State : success
== Summary ==
+ trap cleanup EXIT
+ kunitconfigs=('/kernel/drivers/gpu/tests/.kunitconfig' '/kernel/drivers/gpu/drm/xe/.kunitconfig' '/kernel/drivers/gpu/drm/tests/.kunitconfig' '/kernel/drivers/gpu/drm/ttm/tests/.kunitconfig' '/kernel/drivers/dma-buf/.kunitconfig')
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/tests/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/tests/.kunitconfig
[07:24:29] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [07:24:34] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [07:24:54] Starting KUnit Kernel (1/1)... [07:24:54] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [07:24:54] ================= gpu_buddy (15 subtests) ================== [07:24:54] [PASSED] gpu_test_buddy_alloc_limit [07:24:54] [PASSED] gpu_test_buddy_alloc_optimistic [07:24:54] [PASSED] gpu_test_buddy_alloc_pessimistic [07:24:54] [PASSED] gpu_test_buddy_alloc_pathological [07:24:54] [PASSED] gpu_test_buddy_alloc_contiguous [07:24:54] [PASSED] gpu_test_buddy_alloc_clear [07:24:54] [PASSED] gpu_test_buddy_alloc_range [07:24:54] [PASSED] gpu_test_buddy_alloc_range_bias [07:24:55] [PASSED] gpu_test_buddy_alloc_range_clear_guard [07:24:56] [PASSED] gpu_test_buddy_fragmentation_performance [07:24:56] [PASSED] gpu_test_buddy_dirty_tracker_performance [07:24:56] [PASSED] gpu_test_buddy_alloc_exceeds_max_order [07:24:56] [PASSED] gpu_test_buddy_offset_aligned_allocation [07:24:56] [PASSED] gpu_test_buddy_subtree_offset_alignment_stress [07:24:56] [PASSED] gpu_test_buddy_addr_to_block [07:24:56] ==================== [PASSED] gpu_buddy ==================== [07:24:56] ============================================================ [07:24:56] Testing complete. Ran 15 tests: passed: 15 [07:24:56] Elapsed time: 27.929s total, 5.176s configuring, 20.685s building, 1.989s running
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/drm/xe/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig [07:24:57] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [07:24:59] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [07:25:38] Starting KUnit Kernel (1/1)... [07:25:38] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [07:25:38] ================= xe_ggtt_iov (9 subtests) ================= [07:25:38] [PASSED] init_shared_pf [07:25:38] [PASSED] init_partial_overlap [07:25:38] [PASSED] alloc_usable_pool_low [07:25:38] [PASSED] alloc_shareable_pool_high [07:25:38] [PASSED] alloc_partial_overlap [07:25:38] [PASSED] alloc_partial_overlap_usable_full [07:25:38] [PASSED] alloc_partial_overlap_shareable_full [07:25:38] [PASSED] alloc_shareable_pool_unavailable [07:25:38] [PASSED] alloc_shareable_pool_oversized [07:25:38] =================== [PASSED] xe_ggtt_iov =================== [07:25:38] =================== xe_ggtt (3 subtests) =================== [07:25:38] [PASSED] init_native [07:25:38] [PASSED] alloc_usable_pool_native [07:25:38] [PASSED] alloc_usable_pool_oversized [07:25:38] ===================== [PASSED] xe_ggtt ===================== [07:25:38] ================== guc_buf (11 subtests) =================== [07:25:38] [PASSED] test_smallest [07:25:38] [PASSED] test_largest [07:25:38] [PASSED] test_granular [07:25:38] [PASSED] test_unique [07:25:38] [PASSED] test_overlap [07:25:38] [PASSED] test_reusable [07:25:38] [PASSED] test_too_big [07:25:38] [PASSED] test_flush [07:25:38] [PASSED] test_lookup [07:25:38] [PASSED] test_data [07:25:38] [PASSED] test_class [07:25:38] ===================== [PASSED] guc_buf ===================== [07:25:38] =================== guc_dbm (7 subtests) =================== [07:25:38] [PASSED] test_empty [07:25:38] [PASSED] test_default [07:25:38] ======================== test_size ======================== [07:25:38] [PASSED] 4 [07:25:38] [PASSED] 8 [07:25:38] [PASSED] 32 [07:25:38] [PASSED] 256 [07:25:38] ==================== [PASSED] test_size ==================== [07:25:38] ======================= test_reuse ======================== [07:25:38] [PASSED] 4 [07:25:38] [PASSED] 8 [07:25:38] [PASSED] 32 [07:25:38] [PASSED] 256 [07:25:38] =================== [PASSED] test_reuse ==================== [07:25:38] =================== test_range_overlap ==================== [07:25:38] [PASSED] 4 [07:25:38] [PASSED] 8 [07:25:38] [PASSED] 32 [07:25:38] [PASSED] 256 [07:25:38] =============== [PASSED] test_range_overlap ================ [07:25:38] =================== test_range_compact ==================== [07:25:38] [PASSED] 4 [07:25:38] [PASSED] 8 [07:25:38] [PASSED] 32 [07:25:38] [PASSED] 256 [07:25:38] =============== [PASSED] test_range_compact ================ [07:25:38] ==================== test_range_spare ===================== [07:25:38] [PASSED] 4 [07:25:38] [PASSED] 8 [07:25:38] [PASSED] 32 [07:25:38] [PASSED] 256 [07:25:38] ================ [PASSED] test_range_spare ================= [07:25:38] ===================== [PASSED] guc_dbm ===================== [07:25:38] ================== guc_idm (22 subtests) =================== [07:25:38] [PASSED] bad_init [07:25:38] [PASSED] no_init [07:25:38] [PASSED] init_fini [07:25:38] [PASSED] check_init_small [07:25:38] [PASSED] check_init_shared [07:25:38] [PASSED] check_used [07:25:38] [PASSED] check_quota [07:25:38] [PASSED] check_all [07:25:38] [PASSED] check_limits [07:25:38] [PASSED] check_overlap [07:25:38] [PASSED] check_overlap_alloc [07:25:38] [PASSED] check_overlap_release [07:25:38] [PASSED] check_overlap_partial_init [07:25:38] [PASSED] check_overlap_partial_shared_range_blocking [07:25:38] [PASSED] check_used_usable [07:25:38] [PASSED] check_used_shareable [07:25:38] [PASSED] check_used_mixed [07:25:38] [PASSED] check_release_usable_range [07:25:38] [PASSED] check_release_shareable_range [07:25:38] [PASSED] check_split_boundaries [07:25:38] [PASSED] check_shareable_spare [07:25:38] [PASSED] check_shareable_spare_fragmented_tail [07:25:38] ===================== [PASSED] guc_idm ===================== [07:25:38] ============== guc_klv_helpers (13 subtests) =============== [07:25:38] [PASSED] test_count [07:25:38] [PASSED] test_encode_u32 [07:25:38] [PASSED] test_encode_u64 [07:25:38] [PASSED] test_encode_string [07:25:38] [PASSED] test_encode_object_raw [07:25:38] [PASSED] test_encode_object_klv [07:25:38] [PASSED] test_encode_object_nested [07:25:38] [PASSED] test_encode_object_basic [07:25:38] ===================== test_decode_u16 ===================== [07:25:38] [PASSED] empty [07:25:38] [PASSED] valid [07:25:38] [PASSED] max [07:25:38] [PASSED] big [07:25:38] [PASSED] long [07:25:38] ================= [PASSED] test_decode_u16 ================= [07:25:38] ===================== test_decode_u32 ===================== [07:25:38] [PASSED] empty [07:25:38] [PASSED] valid [07:25:38] [PASSED] max [07:25:38] [PASSED] long [07:25:38] ================= [PASSED] test_decode_u32 ================= [07:25:38] ===================== test_decode_u64 ===================== [07:25:38] [PASSED] empty [07:25:38] [PASSED] short [07:25:38] [PASSED] valid [07:25:38] [PASSED] max [07:25:38] [PASSED] long [07:25:38] ================= [PASSED] test_decode_u64 ================= [07:25:38] ===================== test_decode_str ===================== [07:25:38] [PASSED] empty [07:25:38] [PASSED] one [07:25:38] [PASSED] one_trash [07:25:38] [PASSED] two [07:25:38] [PASSED] two_trash [07:25:38] [PASSED] three [07:25:38] [PASSED] dword [07:25:38] [PASSED] four [07:25:38] [PASSED] five [07:25:38] [PASSED] six [07:25:38] [PASSED] seven [07:25:38] [PASSED] qword [07:25:38] ================= [PASSED] test_decode_str ================= [07:25:38] [PASSED] test_print [07:25:38] ================= [PASSED] guc_klv_helpers ================= [07:25:38] =================== xe_log (4 subtests) ==================== [07:25:38] [PASSED] demo_cper [07:25:38] [PASSED] demo_dmesg [07:25:38] ======================= test_dmesg ======================== [07:25:38] [PASSED] test_fatal [07:25:38] [PASSED] test_fatal_tile [07:25:38] [PASSED] test_fatal_gt [07:25:38] [PASSED] test_fatal_comp [07:25:38] [PASSED] test_fatal_comp_tile [07:25:38] [PASSED] test_fatal_comp_gt [07:25:38] [PASSED] test_fatal_all [07:25:38] [PASSED] test_recoverable [07:25:38] [PASSED] test_recoverable_tile [07:25:38] [PASSED] test_recoverable_gt [07:25:38] [PASSED] test_recoverable_comp [07:25:38] [PASSED] test_recoverable_comp_tile [07:25:38] [PASSED] test_recoverable_comp_gt [07:25:38] [PASSED] test_recoverable_all [07:25:38] [PASSED] test_info [07:25:38] [PASSED] test_info_tile [07:25:38] [PASSED] test_info_gt [07:25:38] [PASSED] test_info_err [07:25:38] [PASSED] test_info_comp [07:25:38] [PASSED] test_info_comp_tile [07:25:38] [PASSED] test_info_comp_gt [07:25:38] [PASSED] test_info_all [07:25:38] [PASSED] test_hw_fatal [07:25:38] [PASSED] test_hw_recoverable [07:25:38] [PASSED] test_hw_corrected [07:25:38] [PASSED] test_hw_informational [07:25:38] =================== [PASSED] test_dmesg ==================== [07:25:38] ====================== test_invalid ======================= [07:25:38] [SKIPPED] no-component no-location no-warn (requires CONFIG_DRM_XE_DEBUG) [07:25:38] [SKIPPED] reserved location (requires CONFIG_DRM_XE_DEBUG) [07:25:38] [SKIPPED] unknown location (requires CONFIG_DRM_XE_DEBUG) [07:25:38] [SKIPPED] nonzero-device-id location (requires CONFIG_DRM_XE_DEBUG) [07:25:38] [SKIPPED] invalid-tile-id location (requires CONFIG_DRM_XE_DEBUG) [07:25:38] [SKIPPED] invalid-gt-id location (requires CONFIG_DRM_XE_DEBUG) [07:25:38] [SKIPPED] unknown component class (requires CONFIG_DRM_XE_DEBUG) [07:25:38] [SKIPPED] unknown system component (requires CONFIG_DRM_XE_DEBUG) [07:25:38] [SKIPPED] unknown hardware component (requires CONFIG_DRM_XE_DEBUG) [07:25:38] [SKIPPED] unknown component and location (requires CONFIG_DRM_XE_DEBUG) [07:25:38] ================== [SKIPPED] test_invalid ================== [07:25:38] ===================== [PASSED] xe_log ====================== [07:25:38] ================== no_relay (3 subtests) =================== [07:25:38] [PASSED] xe_drops_guc2pf_if_not_ready [07:25:38] [PASSED] xe_drops_guc2vf_if_not_ready [07:25:38] [PASSED] xe_rejects_send_if_not_ready [07:25:38] ==================== [PASSED] no_relay ===================== [07:25:38] ================== pf_relay (14 subtests) ================== [07:25:38] [PASSED] pf_rejects_guc2pf_too_short [07:25:38] [PASSED] pf_rejects_guc2pf_too_long [07:25:38] [PASSED] pf_rejects_guc2pf_no_payload [07:25:38] [PASSED] pf_fails_no_payload [07:25:38] [PASSED] pf_fails_bad_origin [07:25:38] [PASSED] pf_fails_bad_type [07:25:38] [PASSED] pf_txn_reports_error [07:25:38] [PASSED] pf_txn_sends_pf2guc [07:25:38] [PASSED] pf_sends_pf2guc [07:25:38] [SKIPPED] pf_loopback_nop (requires CONFIG_DRM_XE_DEBUG_SRIOV) [07:25:38] [SKIPPED] pf_loopback_echo (requires CONFIG_DRM_XE_DEBUG_SRIOV) [07:25:38] [SKIPPED] pf_loopback_fail (requires CONFIG_DRM_XE_DEBUG_SRIOV) [07:25:38] [SKIPPED] pf_loopback_busy (requires CONFIG_DRM_XE_DEBUG_SRIOV) [07:25:38] [SKIPPED] pf_loopback_retry (requires CONFIG_DRM_XE_DEBUG_SRIOV) [07:25:38] ==================== [PASSED] pf_relay ===================== [07:25:38] ================== vf_relay (3 subtests) =================== [07:25:38] [PASSED] vf_rejects_guc2vf_too_short [07:25:38] [PASSED] vf_rejects_guc2vf_too_long [07:25:38] [PASSED] vf_rejects_guc2vf_no_payload [07:25:38] ==================== [PASSED] vf_relay ===================== [07:25:38] ================ pf_gt_config (9 subtests) ================= [07:25:38] [PASSED] fair_contexts_1vf [07:25:38] [PASSED] fair_doorbells_1vf [07:25:38] [PASSED] fair_ggtt_1vf [07:25:38] ====================== fair_vram_1vf ====================== [07:25:38] [PASSED] 3.50 GiB [07:25:38] [PASSED] 11.5 GiB [07:25:38] [PASSED] 15.5 GiB [07:25:38] [PASSED] 31.5 GiB [07:25:38] [PASSED] 63.5 GiB [07:25:38] [PASSED] 1.91 GiB [07:25:38] ================== [PASSED] fair_vram_1vf ================== [07:25:38] ================ fair_vram_1vf_admin_only ================= [07:25:38] [PASSED] 3.50 GiB [07:25:38] [PASSED] 11.5 GiB [07:25:38] [PASSED] 15.5 GiB [07:25:38] [PASSED] 31.5 GiB [07:25:38] [PASSED] 63.5 GiB [07:25:38] [PASSED] 1.91 GiB [07:25:38] ============ [PASSED] fair_vram_1vf_admin_only ============= [07:25:38] ====================== fair_contexts ====================== [07:25:38] [PASSED] 1 VF [07:25:38] [PASSED] 2 VFs [07:25:38] [PASSED] 3 VFs [07:25:38] [PASSED] 4 VFs [07:25:38] [PASSED] 5 VFs [07:25:38] [PASSED] 6 VFs [07:25:38] [PASSED] 7 VFs [07:25:38] [PASSED] 8 VFs [07:25:38] [PASSED] 9 VFs [07:25:38] [PASSED] 10 VFs [07:25:38] [PASSED] 11 VFs [07:25:38] [PASSED] 12 VFs [07:25:38] [PASSED] 13 VFs [07:25:38] [PASSED] 14 VFs [07:25:39] [PASSED] 15 VFs [07:25:39] [PASSED] 16 VFs [07:25:39] [PASSED] 17 VFs [07:25:39] [PASSED] 18 VFs [07:25:39] [PASSED] 19 VFs [07:25:39] [PASSED] 20 VFs [07:25:39] [PASSED] 21 VFs [07:25:39] [PASSED] 22 VFs [07:25:39] [PASSED] 23 VFs [07:25:39] [PASSED] 24 VFs [07:25:39] [PASSED] 25 VFs [07:25:39] [PASSED] 26 VFs [07:25:39] [PASSED] 27 VFs [07:25:39] [PASSED] 28 VFs [07:25:39] [PASSED] 29 VFs [07:25:39] [PASSED] 30 VFs [07:25:39] [PASSED] 31 VFs [07:25:39] [PASSED] 32 VFs [07:25:39] [PASSED] 33 VFs [07:25:39] [PASSED] 34 VFs [07:25:39] [PASSED] 35 VFs [07:25:39] [PASSED] 36 VFs [07:25:39] [PASSED] 37 VFs [07:25:39] [PASSED] 38 VFs [07:25:39] [PASSED] 39 VFs [07:25:39] [PASSED] 40 VFs [07:25:39] [PASSED] 41 VFs [07:25:39] [PASSED] 42 VFs [07:25:39] [PASSED] 43 VFs [07:25:39] [PASSED] 44 VFs [07:25:39] [PASSED] 45 VFs [07:25:39] [PASSED] 46 VFs [07:25:39] [PASSED] 47 VFs [07:25:39] [PASSED] 48 VFs [07:25:39] [PASSED] 49 VFs [07:25:39] [PASSED] 50 VFs [07:25:39] [PASSED] 51 VFs [07:25:39] [PASSED] 52 VFs [07:25:39] [PASSED] 53 VFs [07:25:39] [PASSED] 54 VFs [07:25:39] [PASSED] 55 VFs [07:25:39] [PASSED] 56 VFs [07:25:39] [PASSED] 57 VFs [07:25:39] [PASSED] 58 VFs [07:25:39] [PASSED] 59 VFs [07:25:39] [PASSED] 60 VFs [07:25:39] [PASSED] 61 VFs [07:25:39] [PASSED] 62 VFs [07:25:39] [PASSED] 63 VFs [07:25:39] ================== [PASSED] fair_contexts ================== [07:25:39] ===================== fair_doorbells ====================== [07:25:39] [PASSED] 1 VF [07:25:39] [PASSED] 2 VFs [07:25:39] [PASSED] 3 VFs [07:25:39] [PASSED] 4 VFs [07:25:39] [PASSED] 5 VFs [07:25:39] [PASSED] 6 VFs [07:25:39] [PASSED] 7 VFs [07:25:39] [PASSED] 8 VFs [07:25:39] [PASSED] 9 VFs [07:25:39] [PASSED] 10 VFs [07:25:39] [PASSED] 11 VFs [07:25:39] [PASSED] 12 VFs [07:25:39] [PASSED] 13 VFs [07:25:39] [PASSED] 14 VFs [07:25:39] [PASSED] 15 VFs [07:25:39] [PASSED] 16 VFs [07:25:39] [PASSED] 17 VFs [07:25:39] [PASSED] 18 VFs [07:25:39] [PASSED] 19 VFs [07:25:39] [PASSED] 20 VFs [07:25:39] [PASSED] 21 VFs [07:25:39] [PASSED] 22 VFs [07:25:39] [PASSED] 23 VFs [07:25:39] [PASSED] 24 VFs [07:25:39] [PASSED] 25 VFs [07:25:39] [PASSED] 26 VFs [07:25:39] [PASSED] 27 VFs [07:25:39] [PASSED] 28 VFs [07:25:39] [PASSED] 29 VFs [07:25:39] [PASSED] 30 VFs [07:25:39] [PASSED] 31 VFs [07:25:39] [PASSED] 32 VFs [07:25:39] [PASSED] 33 VFs [07:25:39] [PASSED] 34 VFs [07:25:39] [PASSED] 35 VFs [07:25:39] [PASSED] 36 VFs [07:25:39] [PASSED] 37 VFs [07:25:39] [PASSED] 38 VFs [07:25:39] [PASSED] 39 VFs [07:25:39] [PASSED] 40 VFs [07:25:39] [PASSED] 41 VFs [07:25:39] [PASSED] 42 VFs [07:25:39] [PASSED] 43 VFs [07:25:39] [PASSED] 44 VFs [07:25:39] [PASSED] 45 VFs [07:25:39] [PASSED] 46 VFs [07:25:39] [PASSED] 47 VFs [07:25:39] [PASSED] 48 VFs [07:25:39] [PASSED] 49 VFs [07:25:39] [PASSED] 50 VFs [07:25:39] [PASSED] 51 VFs [07:25:39] [PASSED] 52 VFs [07:25:39] [PASSED] 53 VFs [07:25:39] [PASSED] 54 VFs [07:25:39] [PASSED] 55 VFs [07:25:39] [PASSED] 56 VFs [07:25:39] [PASSED] 57 VFs [07:25:39] [PASSED] 58 VFs [07:25:39] [PASSED] 59 VFs [07:25:39] [PASSED] 60 VFs [07:25:39] [PASSED] 61 VFs [07:25:39] [PASSED] 62 VFs [07:25:39] [PASSED] 63 VFs [07:25:39] ================= [PASSED] fair_doorbells ================== [07:25:39] ======================== fair_ggtt ======================== [07:25:39] [PASSED] 1 VF [07:25:39] [PASSED] 2 VFs [07:25:39] [PASSED] 3 VFs [07:25:39] [PASSED] 4 VFs [07:25:39] [PASSED] 5 VFs [07:25:39] [PASSED] 6 VFs [07:25:39] [PASSED] 7 VFs [07:25:39] [PASSED] 8 VFs [07:25:39] [PASSED] 9 VFs [07:25:39] [PASSED] 10 VFs [07:25:39] [PASSED] 11 VFs [07:25:39] [PASSED] 12 VFs [07:25:39] [PASSED] 13 VFs [07:25:39] [PASSED] 14 VFs [07:25:39] [PASSED] 15 VFs [07:25:39] [PASSED] 16 VFs [07:25:39] [PASSED] 17 VFs [07:25:39] [PASSED] 18 VFs [07:25:39] [PASSED] 19 VFs [07:25:39] [PASSED] 20 VFs [07:25:39] [PASSED] 21 VFs [07:25:39] [PASSED] 22 VFs [07:25:39] [PASSED] 23 VFs [07:25:39] [PASSED] 24 VFs [07:25:39] [PASSED] 25 VFs [07:25:39] [PASSED] 26 VFs [07:25:39] [PASSED] 27 VFs [07:25:39] [PASSED] 28 VFs [07:25:39] [PASSED] 29 VFs [07:25:39] [PASSED] 30 VFs [07:25:39] [PASSED] 31 VFs [07:25:39] [PASSED] 32 VFs [07:25:39] [PASSED] 33 VFs [07:25:39] [PASSED] 34 VFs [07:25:39] [PASSED] 35 VFs [07:25:39] [PASSED] 36 VFs [07:25:39] [PASSED] 37 VFs [07:25:39] [PASSED] 38 VFs [07:25:39] [PASSED] 39 VFs [07:25:39] [PASSED] 40 VFs [07:25:39] [PASSED] 41 VFs [07:25:39] [PASSED] 42 VFs [07:25:39] [PASSED] 43 VFs [07:25:39] [PASSED] 44 VFs [07:25:39] [PASSED] 45 VFs [07:25:39] [PASSED] 46 VFs [07:25:39] [PASSED] 47 VFs [07:25:39] [PASSED] 48 VFs [07:25:39] [PASSED] 49 VFs [07:25:39] [PASSED] 50 VFs [07:25:39] [PASSED] 51 VFs [07:25:39] [PASSED] 52 VFs [07:25:39] [PASSED] 53 VFs [07:25:39] [PASSED] 54 VFs [07:25:39] [PASSED] 55 VFs [07:25:39] [PASSED] 56 VFs [07:25:39] [PASSED] 57 VFs [07:25:39] [PASSED] 58 VFs [07:25:39] [PASSED] 59 VFs [07:25:39] [PASSED] 60 VFs [07:25:39] [PASSED] 61 VFs [07:25:39] [PASSED] 62 VFs [07:25:39] [PASSED] 63 VFs [07:25:39] ==================== [PASSED] fair_ggtt ==================== [07:25:39] ======================== fair_vram ======================== [07:25:39] [PASSED] 1 VF [07:25:39] [PASSED] 2 VFs [07:25:39] [PASSED] 3 VFs [07:25:39] [PASSED] 4 VFs [07:25:39] [PASSED] 5 VFs [07:25:39] [PASSED] 6 VFs [07:25:39] [PASSED] 7 VFs [07:25:39] [PASSED] 8 VFs [07:25:39] [PASSED] 9 VFs [07:25:39] [PASSED] 10 VFs [07:25:39] [PASSED] 11 VFs [07:25:39] [PASSED] 12 VFs [07:25:39] [PASSED] 13 VFs [07:25:39] [PASSED] 14 VFs [07:25:39] [PASSED] 15 VFs [07:25:39] [PASSED] 16 VFs [07:25:39] [PASSED] 17 VFs [07:25:39] [PASSED] 18 VFs [07:25:39] [PASSED] 19 VFs [07:25:39] [PASSED] 20 VFs [07:25:39] [PASSED] 21 VFs [07:25:39] [PASSED] 22 VFs [07:25:39] [PASSED] 23 VFs [07:25:39] [PASSED] 24 VFs [07:25:39] [PASSED] 25 VFs [07:25:39] [PASSED] 26 VFs [07:25:39] [PASSED] 27 VFs [07:25:39] [PASSED] 28 VFs [07:25:39] [PASSED] 29 VFs [07:25:39] [PASSED] 30 VFs [07:25:39] [PASSED] 31 VFs [07:25:39] [PASSED] 32 VFs [07:25:39] [PASSED] 33 VFs [07:25:39] [PASSED] 34 VFs [07:25:39] [PASSED] 35 VFs [07:25:39] [PASSED] 36 VFs [07:25:39] [PASSED] 37 VFs [07:25:39] [PASSED] 38 VFs [07:25:39] [PASSED] 39 VFs [07:25:39] [PASSED] 40 VFs [07:25:39] [PASSED] 41 VFs [07:25:39] [PASSED] 42 VFs [07:25:39] [PASSED] 43 VFs [07:25:39] [PASSED] 44 VFs [07:25:39] [PASSED] 45 VFs [07:25:39] [PASSED] 46 VFs [07:25:39] [PASSED] 47 VFs [07:25:39] [PASSED] 48 VFs [07:25:39] [PASSED] 49 VFs [07:25:39] [PASSED] 50 VFs [07:25:39] [PASSED] 51 VFs [07:25:39] [PASSED] 52 VFs [07:25:39] [PASSED] 53 VFs [07:25:39] [PASSED] 54 VFs [07:25:39] [PASSED] 55 VFs [07:25:39] [PASSED] 56 VFs [07:25:39] [PASSED] 57 VFs [07:25:39] [PASSED] 58 VFs [07:25:39] [PASSED] 59 VFs [07:25:39] [PASSED] 60 VFs [07:25:39] [PASSED] 61 VFs [07:25:39] [PASSED] 62 VFs [07:25:39] [PASSED] 63 VFs [07:25:39] ==================== [PASSED] fair_vram ==================== [07:25:39] ================== [PASSED] pf_gt_config =================== [07:25:39] ===================== lmtt (1 subtest) ===================== [07:25:39] ======================== test_ops ========================= [07:25:39] [PASSED] 2-level [07:25:39] [PASSED] multi-level [07:25:39] ==================== [PASSED] test_ops ===================== [07:25:39] ====================== [PASSED] lmtt ======================= [07:25:39] ================= sriov_packet (1 subtest) ================= [07:25:39] [PASSED] test_descriptor_init [07:25:39] ================== [PASSED] sriov_packet =================== [07:25:39] ================= pf_service (11 subtests) ================= [07:25:39] [PASSED] pf_negotiate_any [07:25:39] [PASSED] pf_negotiate_base_match [07:25:39] [PASSED] pf_negotiate_base_newer [07:25:39] [PASSED] pf_negotiate_base_next [07:25:39] [SKIPPED] pf_negotiate_base_older (no older minor) [07:25:39] [PASSED] pf_negotiate_base_prev [07:25:39] [PASSED] pf_negotiate_latest_match [07:25:39] [PASSED] pf_negotiate_latest_newer [07:25:39] [PASSED] pf_negotiate_latest_next [07:25:39] [SKIPPED] pf_negotiate_latest_older (no older minor) [07:25:39] [SKIPPED] pf_negotiate_latest_prev (no prev major) [07:25:39] =================== [PASSED] pf_service ==================== [07:25:39] ================= xe_guc_g2g (2 subtests) ================== [07:25:39] ============== xe_live_guc_g2g_kunit_default ============== [07:25:39] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ========== [07:25:39] ============== xe_live_guc_g2g_kunit_allmem =============== [07:25:39] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ========== [07:25:39] =================== [SKIPPED] xe_guc_g2g =================== [07:25:39] =================== xe_mocs (2 subtests) =================== [07:25:39] ================ xe_live_mocs_kernel_kunit ================ [07:25:39] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============ [07:25:39] ================ xe_live_mocs_reset_kunit ================= [07:25:39] ============ [SKIPPED] xe_live_mocs_reset_kunit ============ [07:25:39] ==================== [SKIPPED] xe_mocs ===================== [07:25:39] ================= xe_migrate (3 subtests) ================== [07:25:39] ================= xe_migrate_sanity_kunit ================= [07:25:39] ============ [SKIPPED] xe_migrate_sanity_kunit ============= [07:25:39] ================== xe_validate_ccs_kunit ================== [07:25:39] ============= [SKIPPED] xe_validate_ccs_kunit ============== [07:25:39] ============= xe_migrate_access_memory_kunit ============== [07:25:39] ========= [SKIPPED] xe_migrate_access_memory_kunit ========= [07:25:39] =================== [SKIPPED] xe_migrate =================== [07:25:39] ================== xe_dma_buf (1 subtest) ================== [07:25:39] ==================== xe_dma_buf_kunit ===================== [07:25:39] ================ [SKIPPED] xe_dma_buf_kunit ================ [07:25:39] =================== [SKIPPED] xe_dma_buf =================== [07:25:39] ================= xe_bo_shrink (1 subtest) ================= [07:25:39] =================== xe_bo_shrink_kunit ==================== [07:25:39] =============== [SKIPPED] xe_bo_shrink_kunit =============== [07:25:39] ================== [SKIPPED] xe_bo_shrink ================== [07:25:39] ==================== xe_bo (2 subtests) ==================== [07:25:39] ================== xe_ccs_migrate_kunit =================== [07:25:39] ============== [SKIPPED] xe_ccs_migrate_kunit ============== [07:25:39] ==================== xe_bo_evict_kunit ==================== [07:25:39] =============== [SKIPPED] xe_bo_evict_kunit ================ [07:25:39] ===================== [SKIPPED] xe_bo ====================== [07:25:39] =================== xe_any (9 subtests) ==================== [07:25:39] [PASSED] test_to_xe [07:25:39] [PASSED] test_to_dev [07:25:39] [PASSED] test_to_pdev [07:25:39] [PASSED] test_to_drm [07:25:39] [PASSED] test_if_pdev [07:25:39] [PASSED] test_if_xe [07:25:39] [PASSED] test_if_tile [07:25:39] [PASSED] test_if_gt [07:25:39] [PASSED] test_to_id [07:25:39] ===================== [PASSED] xe_any ====================== [07:25:39] ==================== args (13 subtests) ==================== [07:25:39] [PASSED] count_args_test [07:25:39] [PASSED] call_args_example [07:25:39] [PASSED] call_args_test [07:25:39] [PASSED] drop_first_arg_example [07:25:39] [PASSED] drop_first_arg_test [07:25:39] [PASSED] first_arg_example [07:25:39] [PASSED] first_arg_test [07:25:39] [PASSED] last_arg_example [07:25:39] [PASSED] last_arg_test [07:25:39] [PASSED] pick_arg_example [07:25:39] [PASSED] if_args_example [07:25:39] [PASSED] if_args_test [07:25:39] [PASSED] sep_comma_example [07:25:39] ====================== [PASSED] args ======================= [07:25:39] =================== xe_pci (3 subtests) ==================== [07:25:39] ==================== check_graphics_ip ==================== [07:25:39] [PASSED] 12.00 Xe_LP [07:25:39] [PASSED] 12.10 Xe_LP+ [07:25:39] [PASSED] 12.55 Xe_HPG [07:25:39] [PASSED] 12.60 Xe_HPC [07:25:39] [PASSED] 12.70 Xe_LPG [07:25:39] [PASSED] 12.71 Xe_LPG [07:25:39] [PASSED] 12.74 Xe_LPG+ [07:25:39] [PASSED] 20.01 Xe2_HPG [07:25:39] [PASSED] 20.02 Xe2_HPG [07:25:39] [PASSED] 20.04 Xe2_LPG [07:25:39] [PASSED] 30.00 Xe3_LPG [07:25:39] [PASSED] 30.01 Xe3_LPG [07:25:39] [PASSED] 30.03 Xe3_LPG [07:25:39] [PASSED] 30.04 Xe3_LPG [07:25:39] [PASSED] 30.05 Xe3_LPG [07:25:39] [PASSED] 35.10 Xe3p_LPG [07:25:39] [PASSED] 35.11 Xe3p_XPC [07:25:39] ================ [PASSED] check_graphics_ip ================ [07:25:39] ===================== check_media_ip ====================== [07:25:39] [PASSED] 12.00 Xe_M [07:25:39] [PASSED] 12.55 Xe_HPM [07:25:39] [PASSED] 13.00 Xe_LPM+ [07:25:39] [PASSED] 13.01 Xe2_HPM [07:25:39] [PASSED] 20.00 Xe2_LPM [07:25:39] [PASSED] 30.00 Xe3_LPM [07:25:39] [PASSED] 30.02 Xe3_LPM [07:25:39] [PASSED] 35.00 Xe3p_LPM [07:25:39] [PASSED] 35.03 Xe3p_HPM [07:25:39] ================= [PASSED] check_media_ip ================== [07:25:39] =================== check_platform_desc =================== [07:25:39] [PASSED] 0x9A60 (TIGERLAKE) [07:25:39] [PASSED] 0x9A68 (TIGERLAKE) [07:25:39] [PASSED] 0x9A70 (TIGERLAKE) [07:25:39] [PASSED] 0x9A40 (TIGERLAKE) [07:25:39] [PASSED] 0x9A49 (TIGERLAKE) [07:25:39] [PASSED] 0x9A59 (TIGERLAKE) [07:25:39] [PASSED] 0x9A78 (TIGERLAKE) [07:25:39] [PASSED] 0x9AC0 (TIGERLAKE) [07:25:39] [PASSED] 0x9AC9 (TIGERLAKE) [07:25:39] [PASSED] 0x9AD9 (TIGERLAKE) [07:25:39] [PASSED] 0x9AF8 (TIGERLAKE) [07:25:39] [PASSED] 0x4C80 (ROCKETLAKE) [07:25:39] [PASSED] 0x4C8A (ROCKETLAKE) [07:25:39] [PASSED] 0x4C8B (ROCKETLAKE) [07:25:39] [PASSED] 0x4C8C (ROCKETLAKE) [07:25:39] [PASSED] 0x4C90 (ROCKETLAKE) [07:25:39] [PASSED] 0x4C9A (ROCKETLAKE) [07:25:39] [PASSED] 0x4680 (ALDERLAKE_S) [07:25:39] [PASSED] 0x4682 (ALDERLAKE_S) [07:25:39] [PASSED] 0x4688 (ALDERLAKE_S) [07:25:39] [PASSED] 0x468A (ALDERLAKE_S) [07:25:39] [PASSED] 0x468B (ALDERLAKE_S) [07:25:39] [PASSED] 0x4690 (ALDERLAKE_S) [07:25:39] [PASSED] 0x4692 (ALDERLAKE_S) [07:25:39] [PASSED] 0x4693 (ALDERLAKE_S) [07:25:39] [PASSED] 0x46A0 (ALDERLAKE_P) [07:25:39] [PASSED] 0x46A1 (ALDERLAKE_P) [07:25:39] [PASSED] 0x46A2 (ALDERLAKE_P) [07:25:39] [PASSED] 0x46A3 (ALDERLAKE_P) [07:25:39] [PASSED] 0x46A6 (ALDERLAKE_P) [07:25:39] [PASSED] 0x46A8 (ALDERLAKE_P) [07:25:39] [PASSED] 0x46AA (ALDERLAKE_P) [07:25:39] [PASSED] 0x462A (ALDERLAKE_P) [07:25:39] [PASSED] 0x4626 (ALDERLAKE_P) [07:25:39] [PASSED] 0x4628 (ALDERLAKE_P) [07:25:39] [PASSED] 0x46B0 (ALDERLAKE_P) [07:25:39] [PASSED] 0x46B1 (ALDERLAKE_P) [07:25:39] [PASSED] 0x46B2 (ALDERLAKE_P) [07:25:39] [PASSED] 0x46B3 (ALDERLAKE_P) [07:25:39] [PASSED] 0x46C0 (ALDERLAKE_P) [07:25:39] [PASSED] 0x46C1 (ALDERLAKE_P) [07:25:39] [PASSED] 0x46C2 (ALDERLAKE_P) [07:25:39] [PASSED] 0x46C3 (ALDERLAKE_P) [07:25:39] [PASSED] 0x46D0 (ALDERLAKE_N) [07:25:39] [PASSED] 0x46D1 (ALDERLAKE_N) [07:25:39] [PASSED] 0x46D2 (ALDERLAKE_N) [07:25:39] [PASSED] 0x46D3 (ALDERLAKE_N) [07:25:39] [PASSED] 0x46D4 (ALDERLAKE_N) [07:25:39] [PASSED] 0xA721 (ALDERLAKE_P) [07:25:39] [PASSED] 0xA7A1 (ALDERLAKE_P) [07:25:39] [PASSED] 0xA7A9 (ALDERLAKE_P) [07:25:39] [PASSED] 0xA7AC (ALDERLAKE_P) [07:25:39] [PASSED] 0xA7AD (ALDERLAKE_P) [07:25:39] [PASSED] 0xA720 (ALDERLAKE_P) [07:25:39] [PASSED] 0xA7A0 (ALDERLAKE_P) [07:25:39] [PASSED] 0xA7A8 (ALDERLAKE_P) [07:25:39] [PASSED] 0xA7AA (ALDERLAKE_P) [07:25:39] [PASSED] 0xA7AB (ALDERLAKE_P) [07:25:39] [PASSED] 0xA780 (ALDERLAKE_S) [07:25:39] [PASSED] 0xA781 (ALDERLAKE_S) [07:25:39] [PASSED] 0xA782 (ALDERLAKE_S) [07:25:39] [PASSED] 0xA783 (ALDERLAKE_S) [07:25:39] [PASSED] 0xA788 (ALDERLAKE_S) [07:25:39] [PASSED] 0xA789 (ALDERLAKE_S) [07:25:39] [PASSED] 0xA78A (ALDERLAKE_S) [07:25:39] [PASSED] 0xA78B (ALDERLAKE_S) [07:25:39] [PASSED] 0x4905 (DG1) [07:25:39] [PASSED] 0x4906 (DG1) [07:25:39] [PASSED] 0x4907 (DG1) [07:25:39] [PASSED] 0x4908 (DG1) [07:25:39] [PASSED] 0x4909 (DG1) [07:25:39] [PASSED] 0x56C0 (DG2) [07:25:39] [PASSED] 0x56C2 (DG2) [07:25:39] [PASSED] 0x56C1 (DG2) [07:25:39] [PASSED] 0x7D51 (METEORLAKE) [07:25:39] [PASSED] 0x7DD1 (METEORLAKE) [07:25:39] [PASSED] 0x7D41 (METEORLAKE) [07:25:39] [PASSED] 0x7D67 (METEORLAKE) [07:25:39] [PASSED] 0xB640 (METEORLAKE) [07:25:39] [PASSED] 0x56A0 (DG2) [07:25:39] [PASSED] 0x56A1 (DG2) [07:25:39] [PASSED] 0x56A2 (DG2) [07:25:39] [PASSED] 0x56BE (DG2) [07:25:39] [PASSED] 0x56BF (DG2) [07:25:39] [PASSED] 0x5690 (DG2) [07:25:39] [PASSED] 0x5691 (DG2) [07:25:39] [PASSED] 0x5692 (DG2) [07:25:39] [PASSED] 0x56A5 (DG2) [07:25:39] [PASSED] 0x56A6 (DG2) [07:25:39] [PASSED] 0x56B0 (DG2) [07:25:39] [PASSED] 0x56B1 (DG2) [07:25:39] [PASSED] 0x56BA (DG2) [07:25:39] [PASSED] 0x56BB (DG2) [07:25:39] [PASSED] 0x56BC (DG2) [07:25:39] [PASSED] 0x56BD (DG2) [07:25:39] [PASSED] 0x5693 (DG2) [07:25:39] [PASSED] 0x5694 (DG2) [07:25:39] [PASSED] 0x5695 (DG2) [07:25:39] [PASSED] 0x56A3 (DG2) [07:25:39] [PASSED] 0x56A4 (DG2) [07:25:39] [PASSED] 0x56B2 (DG2) [07:25:39] [PASSED] 0x56B3 (DG2) [07:25:39] [PASSED] 0x5696 (DG2) [07:25:39] [PASSED] 0x5697 (DG2) [07:25:39] [PASSED] 0xB69 (PVC) [07:25:39] [PASSED] 0xB6E (PVC) [07:25:39] [PASSED] 0xBD4 (PVC) [07:25:39] [PASSED] 0xBD5 (PVC) [07:25:39] [PASSED] 0xBD6 (PVC) [07:25:39] [PASSED] 0xBD7 (PVC) [07:25:39] [PASSED] 0xBD8 (PVC) [07:25:39] [PASSED] 0xBD9 (PVC) [07:25:39] [PASSED] 0xBDA (PVC) [07:25:39] [PASSED] 0xBDB (PVC) [07:25:39] [PASSED] 0xBE0 (PVC) [07:25:39] [PASSED] 0xBE1 (PVC) [07:25:39] [PASSED] 0xBE5 (PVC) [07:25:39] [PASSED] 0x7D40 (METEORLAKE) [07:25:39] [PASSED] 0x7D45 (METEORLAKE) [07:25:39] [PASSED] 0x7D55 (METEORLAKE) [07:25:39] [PASSED] 0x7D60 (METEORLAKE) [07:25:39] [PASSED] 0x7DD5 (METEORLAKE) [07:25:39] [PASSED] 0x6420 (LUNARLAKE) [07:25:39] [PASSED] 0x64A0 (LUNARLAKE) [07:25:39] [PASSED] 0x64B0 (LUNARLAKE) [07:25:39] [PASSED] 0xE202 (BATTLEMAGE) [07:25:39] [PASSED] 0xE209 (BATTLEMAGE) [07:25:39] [PASSED] 0xE20B (BATTLEMAGE) [07:25:39] [PASSED] 0xE20C (BATTLEMAGE) [07:25:39] [PASSED] 0xE20D (BATTLEMAGE) [07:25:39] [PASSED] 0xE210 (BATTLEMAGE) [07:25:39] [PASSED] 0xE211 (BATTLEMAGE) [07:25:39] [PASSED] 0xE212 (BATTLEMAGE) [07:25:39] [PASSED] 0xE216 (BATTLEMAGE) [07:25:39] [PASSED] 0xE220 (BATTLEMAGE) [07:25:39] [PASSED] 0xE221 (BATTLEMAGE) [07:25:39] [PASSED] 0xE222 (BATTLEMAGE) [07:25:39] [PASSED] 0xE223 (BATTLEMAGE) [07:25:39] [PASSED] 0xB080 (PANTHERLAKE) [07:25:39] [PASSED] 0xB081 (PANTHERLAKE) [07:25:39] [PASSED] 0xB082 (PANTHERLAKE) [07:25:39] [PASSED] 0xB083 (PANTHERLAKE) [07:25:39] [PASSED] 0xB084 (PANTHERLAKE) [07:25:39] [PASSED] 0xB085 (PANTHERLAKE) [07:25:39] [PASSED] 0xB086 (PANTHERLAKE) [07:25:39] [PASSED] 0xB087 (PANTHERLAKE) [07:25:39] [PASSED] 0xB08F (PANTHERLAKE) [07:25:39] [PASSED] 0xB090 (PANTHERLAKE) [07:25:39] [PASSED] 0xB0A0 (PANTHERLAKE) [07:25:39] [PASSED] 0xB0A1 (PANTHERLAKE) [07:25:39] [PASSED] 0xB0B0 (PANTHERLAKE) [07:25:39] [PASSED] 0xFD80 (PANTHERLAKE) [07:25:39] [PASSED] 0xFD81 (PANTHERLAKE) [07:25:39] [PASSED] 0xD740 (NOVALAKE_S) [07:25:39] [PASSED] 0xD741 (NOVALAKE_S) [07:25:39] [PASSED] 0xD742 (NOVALAKE_S) [07:25:39] [PASSED] 0xD743 (NOVALAKE_S) [07:25:39] [PASSED] 0xD745 (NOVALAKE_S) [07:25:39] [PASSED] 0xD74A (NOVALAKE_S) [07:25:39] [PASSED] 0xD74B (NOVALAKE_S) [07:25:39] [PASSED] 0x674C (CRESCENTISLAND) [07:25:39] [PASSED] 0x674D (CRESCENTISLAND) [07:25:39] [PASSED] 0x674E (CRESCENTISLAND) [07:25:39] [PASSED] 0x674F (CRESCENTISLAND) [07:25:39] [PASSED] 0x6750 (CRESCENTISLAND) [07:25:39] [PASSED] 0x6751 (CRESCENTISLAND) [07:25:39] [PASSED] 0x6752 (CRESCENTISLAND) [07:25:39] [PASSED] 0x6753 (CRESCENTISLAND) [07:25:39] [PASSED] 0x6754 (CRESCENTISLAND) [07:25:39] [PASSED] 0x6755 (CRESCENTISLAND) [07:25:39] [PASSED] 0x6756 (CRESCENTISLAND) [07:25:39] [PASSED] 0xD750 (NOVALAKE_P) [07:25:39] [PASSED] 0xD751 (NOVALAKE_P) [07:25:39] [PASSED] 0xD752 (NOVALAKE_P) [07:25:39] [PASSED] 0xD753 (NOVALAKE_P) [07:25:39] [PASSED] 0xD754 (NOVALAKE_P) [07:25:39] [PASSED] 0xD755 (NOVALAKE_P) [07:25:39] [PASSED] 0xD756 (NOVALAKE_P) [07:25:39] [PASSED] 0xD757 (NOVALAKE_P) [07:25:39] [PASSED] 0xD75F (NOVALAKE_P) [07:25:39] =============== [PASSED] check_platform_desc =============== [07:25:39] ===================== [PASSED] xe_pci ====================== [07:25:39] ============= xe_rtp_tables_test (5 subtests) ============== [07:25:39] ================== xe_rtp_table_gt_test =================== [07:25:39] [PASSED] gt_was/14011060649 [07:25:39] [PASSED] gt_was/14011059788 [07:25:39] [PASSED] gt_was/14015795083 [07:25:39] [PASSED] gt_was/16021867713 [07:25:39] [PASSED] gt_was/14019449301 [07:25:39] [PASSED] gt_was/16028005424 [07:25:39] [PASSED] gt_was/14026578760 [07:25:39] [PASSED] gt_was/1409420604 [07:25:39] [PASSED] gt_was/1408615072 [07:25:39] [PASSED] gt_was/22010523718 [07:25:39] [PASSED] gt_was/14011006942 [07:25:39] [PASSED] gt_was/14014830051 [07:25:39] [PASSED] gt_was/18018781329 [07:25:39] [PASSED] gt_was/1509235366 [07:25:39] [PASSED] gt_was/18018781329 [07:25:39] [PASSED] gt_was/16016694945 [07:25:39] [PASSED] gt_was/14018575942 [07:25:39] [PASSED] gt_was/22016670082 [07:25:39] [PASSED] gt_was/22016670082 [07:25:39] [PASSED] gt_was/14017421178 [07:25:39] [PASSED] gt_was/16025250150 [07:25:39] [PASSED] gt_was/14021871409 [07:25:39] [PASSED] gt_was/16021865536 [07:25:39] [PASSED] gt_was/14021486841 [07:25:39] [PASSED] gt_was/14025160223 [07:25:39] [PASSED] gt_was/14026144927, 16029437861, 14026127056 [07:25:39] [PASSED] gt_was/14025635424 [07:25:39] [PASSED] gt_was/16028005424 [07:25:39] ============== [PASSED] xe_rtp_table_gt_test =============== [07:25:39] ================== xe_rtp_table_gt_test =================== [07:25:39] [PASSED] gt_tunings/Tuning: Blend Fill Caching Optimization Disable [07:25:39] [PASSED] gt_tunings/Tuning: 32B Access Enable [07:25:39] [PASSED] gt_tunings/Tuning: L3 cache [07:25:39] [PASSED] gt_tunings/Tuning: L3 cache - media [07:25:39] [PASSED] gt_tunings/Tuning: Compression Overfetch [07:25:39] [PASSED] gt_tunings/Tuning: Compression Overfetch - media [07:25:39] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3 [07:25:39] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3 - media [07:25:39] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only [07:25:39] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only - media [07:25:39] [PASSED] gt_tunings/Tuning: Stateless compression control [07:25:39] [PASSED] gt_tunings/Tuning: Stateless compression control - media [07:25:39] [PASSED] gt_tunings/Tuning: L3 RW flush all Cache [07:25:39] [PASSED] gt_tunings/Tuning: L3 RW flush all cache - media [07:25:39] [PASSED] gt_tunings/Tuning: Set STLB Bank Hash Mode to 4KB [07:25:39] [PASSED] gt_tunings/Tuning: Force All Non-Compressible Memory Reads to be 256B Overfetches [07:25:39] ============== [PASSED] xe_rtp_table_gt_test =============== [07:25:39] ================== xe_rtp_table_oob_test ================== [07:25:39] [PASSED] oob_was/1607983814 [07:25:39] [PASSED] oob_was/16010904313 [07:25:39] [PASSED] oob_was/18022495364 [07:25:39] [PASSED] oob_was/22012773006 [07:25:39] [PASSED] oob_was/14014475959 [07:25:39] [PASSED] oob_was/22011391025 [07:25:39] [PASSED] oob_was/22012727170 [07:25:39] [PASSED] oob_was/22012727685 [07:25:39] [PASSED] oob_was/22016596838 [07:25:39] [PASSED] oob_was/18020744125 [07:25:39] [PASSED] oob_was/1409600907 [07:25:39] [PASSED] oob_was/22014953428 [07:25:39] [PASSED] oob_was/16017236439 [07:25:39] [PASSED] oob_was/14019821291 [07:25:39] [PASSED] oob_was/14015076503 [07:25:39] [PASSED] oob_was/22016122933 [07:25:39] [PASSED] oob_was/14018913170 [07:25:39] [PASSED] oob_was/14018094691 [07:25:39] [PASSED] oob_was/18024947630 [07:25:39] [PASSED] oob_was/16022287689 [07:25:39] [PASSED] oob_was/13011645652 [07:25:39] [PASSED] oob_was/14022293748 [07:25:39] [PASSED] oob_was/22019794406 [07:25:39] [PASSED] oob_was/22019338487 [07:25:39] [PASSED] oob_was/16023588340 [07:25:39] [PASSED] oob_was/14019789679 [07:25:39] [PASSED] oob_was/14022866841 [07:25:39] [PASSED] oob_was/16021333562 [07:25:39] [PASSED] oob_was/14016712196 [07:25:39] [PASSED] oob_was/14015568240 [07:25:39] [PASSED] oob_was/18013179988 [07:25:39] [PASSED] oob_was/1508761755 [07:25:39] [PASSED] oob_was/16023105232 [07:25:39] [PASSED] oob_was/16026508708 [07:25:39] [PASSED] oob_was/14020001231 [07:25:39] [PASSED] oob_was/16023683509 [07:25:39] [PASSED] oob_was/14025515070 [07:25:39] [PASSED] oob_was/15015404425_disable [07:25:39] [PASSED] oob_was/16026007364 [07:25:39] [PASSED] oob_was/14020316580 [07:25:39] [PASSED] oob_was/14025883347 [07:25:39] [PASSED] oob_was/16029380221 [07:25:39] [PASSED] oob_was/22022079272 [07:25:39] [PASSED] oob_was/16029897822 [07:25:39] [PASSED] oob_was/14026539277 [07:25:39] [PASSED] oob_was/14027054324 [07:25:39] [PASSED] oob_was/14025941587 [07:25:39] [PASSED] oob_was/16030224309 [07:25:39] [PASSED] oob_was/14028709524 [07:25:39] [PASSED] oob_was/14028250015 [07:25:39] [PASSED] oob_was/16031259911 [07:25:39] ============== [PASSED] xe_rtp_table_oob_test ============== [07:25:39] ================ xe_rtp_table_dev_oob_test ================ [07:25:39] [PASSED] device_oob_was/22010954014 [07:25:39] [PASSED] device_oob_was/15015404425 [07:25:39] [PASSED] device_oob_was/22019338487_display [07:25:39] [PASSED] device_oob_was/14022085890 [07:25:39] [PASSED] device_oob_was/14026633728 [07:25:39] [PASSED] device_oob_was/14026746987 [07:25:39] [PASSED] device_oob_was/14026779378 [07:25:39] [PASSED] device_oob_was/14028586678 [07:25:39] [PASSED] device_oob_was/14028434957 [07:25:39] [PASSED] device_oob_was/14028632488 [07:25:39] ============ [PASSED] xe_rtp_table_dev_oob_test ============ [07:25:39] ========== xe_rtp_table_missing_upper_bound_test ========== [07:25:39] [PASSED] register_whitelist/WaAllowPMDepthAndInvocationCountAccessFromUMD, 1408556865 [07:25:39] [PASSED] register_whitelist/1508744258, 14012131227, 1808121037 [07:25:39] [PASSED] register_whitelist/1806527549 [07:25:39] [PASSED] register_whitelist/allow_read_ctx_timestamp [07:25:39] [PASSED] register_whitelist/allow_read_queue_timestamp [07:25:39] [PASSED] register_whitelist/16014440446 [07:25:39] [PASSED] register_whitelist/16017236439 [07:25:39] [PASSED] register_whitelist/16020183090 [07:25:39] [PASSED] register_whitelist/14024997852 [07:25:39] [PASSED] register_whitelist/14024997852 [07:25:39] ====== [PASSED] xe_rtp_table_missing_upper_bound_test ====== [07:25:39] =============== [PASSED] xe_rtp_tables_test ================ [07:25:39] =================== xe_rtp (3 subtests) ==================== [07:25:39] =================== xe_rtp_rules_tests ==================== [07:25:39] [PASSED] no [07:25:39] [PASSED] yes [07:25:39] [PASSED] no-and-no [07:25:39] [PASSED] no-and-yes [07:25:39] [PASSED] yes-and-no [07:25:39] [PASSED] yes-and-yes [07:25:39] [PASSED] no-or-no [07:25:39] [PASSED] no-or-yes [07:25:39] [PASSED] yes-or-no [07:25:39] [PASSED] yes-or-yes [07:25:39] [PASSED] no-yes-or-yes-no [07:25:39] [PASSED] no-yes-or-yes-yes [07:25:39] [PASSED] yes-yes-or-no-yes [07:25:39] [PASSED] yes-yes-or-yes-yes [07:25:39] [PASSED] no-no-or-yes-or-no [07:25:39] [PASSED] or [07:25:39] [PASSED] or-yes [07:25:39] [PASSED] or-no [07:25:39] [PASSED] yes-or [07:25:39] [PASSED] no-or [07:25:39] [PASSED] no-or-or-yes [07:25:39] [PASSED] yes-or-or-no [07:25:39] [PASSED] no-or-or-no [07:25:39] [PASSED] missing-context-engine-class [07:25:39] [PASSED] missing-context-engine-class-or-yes [07:25:39] [PASSED] missing-context-engine-class-or-or-yes [07:25:39] =============== [PASSED] xe_rtp_rules_tests ================ [07:25:39] =============== xe_rtp_process_to_sr_tests ================ [07:25:39] [PASSED] coalesce-same-reg [07:25:39] [PASSED] coalesce-same-reg-literal-and-func [07:25:39] [PASSED] no-match-no-add [07:25:39] [PASSED] two-regs-two-entries [07:25:39] [PASSED] clr-one-set-other [07:25:39] [PASSED] set-field [07:25:39] [PASSED] conflict-duplicate [07:25:39] [PASSED] conflict-not-disjoint [07:25:39] [PASSED] conflict-not-disjoint-literal-and-func [07:25:39] [PASSED] conflict-reg-type [07:25:39] [PASSED] bad-mcr-reg-forced-to-regular [07:25:39] [PASSED] bad-regular-reg-forced-to-mcr [07:25:39] =========== [PASSED] xe_rtp_process_to_sr_tests ============ [07:25:39] ================== xe_rtp_process_tests =================== [07:25:39] [PASSED] active1 [07:25:39] [PASSED] active2 [07:25:39] [PASSED] active-inactive [07:25:39] [PASSED] inactive-active [07:25:39] [PASSED] inactive-active-inactive [07:25:39] [PASSED] inactive-inactive-inactive [07:25:39] ============== [PASSED] xe_rtp_process_tests =============== [07:25:39] ===================== [PASSED] xe_rtp ====================== [07:25:39] ==================== xe_wa (1 subtest) ===================== [07:25:39] ======================== xe_wa_gt ========================= [07:25:39] [PASSED] TIGERLAKE B0 [07:25:39] [PASSED] DG1 A0 [07:25:39] [PASSED] DG1 B0 [07:25:39] [PASSED] ALDERLAKE_S A0 [07:25:39] [PASSED] ALDERLAKE_S B0 [07:25:39] [PASSED] ALDERLAKE_S C0 [07:25:39] [PASSED] ALDERLAKE_S D0 [07:25:39] [PASSED] ALDERLAKE_P A0 [07:25:39] [PASSED] ALDERLAKE_P B0 [07:25:39] [PASSED] ALDERLAKE_P C0 [07:25:39] [PASSED] ALDERLAKE_S RPLS D0 [07:25:39] [PASSED] ALDERLAKE_P RPLU E0 [07:25:39] [PASSED] DG2 G10 C0 [07:25:39] [PASSED] DG2 G11 B1 [07:25:39] [PASSED] DG2 G12 A1 [07:25:39] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0 [07:25:39] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0 [07:25:39] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0 [07:25:39] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0 [07:25:39] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0 [07:25:39] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1 [07:25:39] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0 [07:25:39] ==================== [PASSED] xe_wa_gt ===================== [07:25:39] ====================== [PASSED] xe_wa ====================== [07:25:39] ============================================================ [07:25:39] Testing complete. Ran 861 tests: passed: 832, skipped: 29 [07:25:39] Elapsed time: 42.277s total, 2.465s configuring, 39.047s building, 0.729s running
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/drm/tests/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig [07:25:39] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [07:25:42] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [07:26:07] Starting KUnit Kernel (1/1)... [07:26:07] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [07:26:07] ============ drm_test_pick_cmdline (2 subtests) ============ [07:26:07] [PASSED] drm_test_pick_cmdline_res_1920_1080_60 [07:26:07] =============== drm_test_pick_cmdline_named =============== [07:26:07] [PASSED] NTSC [07:26:07] [PASSED] NTSC-J [07:26:07] [PASSED] PAL [07:26:07] [PASSED] PAL-M [07:26:07] =========== [PASSED] drm_test_pick_cmdline_named =========== [07:26:07] ============== [PASSED] drm_test_pick_cmdline ============== [07:26:07] == drm_test_atomic_get_connector_for_encoder (1 subtest) === [07:26:07] [PASSED] drm_test_drm_atomic_get_connector_for_encoder [07:26:07] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ==== [07:26:07] =========== drm_validate_clone_mode (2 subtests) =========== [07:26:07] ============== drm_test_check_in_clone_mode =============== [07:26:07] [PASSED] in_clone_mode [07:26:07] [PASSED] not_in_clone_mode [07:26:07] ========== [PASSED] drm_test_check_in_clone_mode =========== [07:26:07] =============== drm_test_check_valid_clones =============== [07:26:07] [PASSED] not_in_clone_mode [07:26:07] [PASSED] valid_clone [07:26:07] [PASSED] invalid_clone [07:26:07] =========== [PASSED] drm_test_check_valid_clones =========== [07:26:07] ============= [PASSED] drm_validate_clone_mode ============= [07:26:07] ============= drm_validate_modeset (1 subtest) ============= [07:26:07] [PASSED] drm_test_check_connector_changed_modeset [07:26:07] ============== [PASSED] drm_validate_modeset =============== [07:26:07] ====== drm_test_bridge_get_current_state (1 subtest) ======= [07:26:07] [PASSED] drm_test_drm_bridge_get_current_state_atomic [07:26:07] ======== [PASSED] drm_test_bridge_get_current_state ======== [07:26:07] ====== drm_test_bridge_helper_reset_crtc (3 subtests) ====== [07:26:07] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic [07:26:07] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled [07:26:07] [PASSED] drm_test_drm_bridge_helper_hdmi_output_bus_fmts [07:26:07] ======== [PASSED] drm_test_bridge_helper_reset_crtc ======== [07:26:07] ============== drm_bridge_alloc (2 subtests) =============== [07:26:07] [PASSED] drm_test_drm_bridge_alloc_basic [07:26:07] [PASSED] drm_test_drm_bridge_alloc_get_put [07:26:07] ================ [PASSED] drm_bridge_alloc ================= [07:26:07] ============= drm_bridge_bus_fmt (5 subtests) ============== [07:26:07] [PASSED] drm_test_bridge_rgb_yuv_rgb [07:26:07] [PASSED] drm_test_bridge_must_convert_to_yuv444 [07:26:07] [PASSED] drm_test_bridge_hdmi_auto_rgb [07:26:07] [PASSED] drm_test_bridge_auto_first [07:26:07] [PASSED] drm_test_bridge_rgb_yuv_no_path [07:26:07] =============== [PASSED] drm_bridge_bus_fmt ================ [07:26:07] ============= drm_cmdline_parser (40 subtests) ============= [07:26:07] [PASSED] drm_test_cmdline_force_d_only [07:26:07] [PASSED] drm_test_cmdline_force_D_only_dvi [07:26:07] [PASSED] drm_test_cmdline_force_D_only_hdmi [07:26:07] [PASSED] drm_test_cmdline_force_D_only_not_digital [07:26:07] [PASSED] drm_test_cmdline_force_e_only [07:26:07] [PASSED] drm_test_cmdline_res [07:26:07] [PASSED] drm_test_cmdline_res_vesa [07:26:07] [PASSED] drm_test_cmdline_res_vesa_rblank [07:26:07] [PASSED] drm_test_cmdline_res_rblank [07:26:07] [PASSED] drm_test_cmdline_res_bpp [07:26:07] [PASSED] drm_test_cmdline_res_refresh [07:26:07] [PASSED] drm_test_cmdline_res_bpp_refresh [07:26:07] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced [07:26:07] [PASSED] drm_test_cmdline_res_bpp_refresh_margins [07:26:07] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off [07:26:07] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on [07:26:07] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog [07:26:07] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital [07:26:07] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on [07:26:07] [PASSED] drm_test_cmdline_res_margins_force_on [07:26:07] [PASSED] drm_test_cmdline_res_vesa_margins [07:26:07] [PASSED] drm_test_cmdline_name [07:26:07] [PASSED] drm_test_cmdline_name_bpp [07:26:07] [PASSED] drm_test_cmdline_name_option [07:26:07] [PASSED] drm_test_cmdline_name_bpp_option [07:26:07] [PASSED] drm_test_cmdline_rotate_0 [07:26:07] [PASSED] drm_test_cmdline_rotate_90 [07:26:07] [PASSED] drm_test_cmdline_rotate_180 [07:26:07] [PASSED] drm_test_cmdline_rotate_270 [07:26:07] [PASSED] drm_test_cmdline_hmirror [07:26:07] [PASSED] drm_test_cmdline_vmirror [07:26:07] [PASSED] drm_test_cmdline_margin_options [07:26:07] [PASSED] drm_test_cmdline_multiple_options [07:26:07] [PASSED] drm_test_cmdline_bpp_extra_and_option [07:26:07] [PASSED] drm_test_cmdline_extra_and_option [07:26:07] [PASSED] drm_test_cmdline_freestanding_options [07:26:07] [PASSED] drm_test_cmdline_freestanding_force_e_and_options [07:26:07] [PASSED] drm_test_cmdline_panel_orientation [07:26:07] ================ drm_test_cmdline_invalid ================= [07:26:07] [PASSED] margin_only [07:26:07] [PASSED] interlace_only [07:26:07] [PASSED] res_missing_x [07:26:07] [PASSED] res_missing_y [07:26:07] [PASSED] res_bad_y [07:26:07] [PASSED] res_missing_y_bpp [07:26:07] [PASSED] res_bad_bpp [07:26:07] [PASSED] res_bad_refresh [07:26:07] [PASSED] res_bpp_refresh_force_on_off [07:26:07] [PASSED] res_invalid_mode [07:26:07] [PASSED] res_bpp_wrong_place_mode [07:26:07] [PASSED] name_bpp_refresh [07:26:07] [PASSED] name_refresh [07:26:07] [PASSED] name_refresh_wrong_mode [07:26:07] [PASSED] name_refresh_invalid_mode [07:26:07] [PASSED] rotate_multiple [07:26:07] [PASSED] rotate_invalid_val [07:26:07] [PASSED] rotate_truncated [07:26:07] [PASSED] invalid_option [07:26:07] [PASSED] invalid_tv_option [07:26:07] [PASSED] truncated_tv_option [07:26:07] ============ [PASSED] drm_test_cmdline_invalid ============= [07:26:07] =============== drm_test_cmdline_tv_options =============== [07:26:07] [PASSED] NTSC [07:26:07] [PASSED] NTSC_443 [07:26:07] [PASSED] NTSC_J [07:26:07] [PASSED] PAL [07:26:07] [PASSED] PAL_M [07:26:07] [PASSED] PAL_N [07:26:07] [PASSED] SECAM [07:26:07] [PASSED] MONO_525 [07:26:07] [PASSED] MONO_625 [07:26:07] =========== [PASSED] drm_test_cmdline_tv_options =========== [07:26:07] =============== [PASSED] drm_cmdline_parser ================ [07:26:07] ========== drmm_connector_hdmi_init (20 subtests) ========== [07:26:07] [PASSED] drm_test_connector_hdmi_init_valid [07:26:07] [PASSED] drm_test_connector_hdmi_init_bpc_8 [07:26:07] [PASSED] drm_test_connector_hdmi_init_bpc_10 [07:26:07] [PASSED] drm_test_connector_hdmi_init_bpc_12 [07:26:07] [PASSED] drm_test_connector_hdmi_init_bpc_invalid [07:26:07] [PASSED] drm_test_connector_hdmi_init_bpc_null [07:26:07] [PASSED] drm_test_connector_hdmi_init_formats_empty [07:26:07] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb [07:26:07] === drm_test_connector_hdmi_init_formats_yuv420_allowed === [07:26:07] [PASSED] supported_formats=0x9 yuv420_allowed=1 [07:26:07] [PASSED] supported_formats=0x9 yuv420_allowed=0 [07:26:07] [PASSED] supported_formats=0x5 yuv420_allowed=1 [07:26:07] [PASSED] supported_formats=0x5 yuv420_allowed=0 [07:26:07] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed === [07:26:07] [PASSED] drm_test_connector_hdmi_init_null_ddc [07:26:07] [PASSED] drm_test_connector_hdmi_init_null_product [07:26:07] [PASSED] drm_test_connector_hdmi_init_null_vendor [07:26:07] [PASSED] drm_test_connector_hdmi_init_product_length_exact [07:26:07] [PASSED] drm_test_connector_hdmi_init_product_length_too_long [07:26:07] [PASSED] drm_test_connector_hdmi_init_product_valid [07:26:07] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact [07:26:07] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long [07:26:07] [PASSED] drm_test_connector_hdmi_init_vendor_valid [07:26:07] ========= drm_test_connector_hdmi_init_type_valid ========= [07:26:07] [PASSED] HDMI-A [07:26:07] [PASSED] HDMI-B [07:26:07] ===== [PASSED] drm_test_connector_hdmi_init_type_valid ===== [07:26:07] ======== drm_test_connector_hdmi_init_type_invalid ======== [07:26:07] [PASSED] Unknown [07:26:07] [PASSED] VGA [07:26:07] [PASSED] DVI-I [07:26:07] [PASSED] DVI-D [07:26:07] [PASSED] DVI-A [07:26:07] [PASSED] Composite [07:26:07] [PASSED] SVIDEO [07:26:07] [PASSED] LVDS [07:26:07] [PASSED] Component [07:26:07] [PASSED] DIN [07:26:07] [PASSED] DP [07:26:07] [PASSED] TV [07:26:07] [PASSED] eDP [07:26:07] [PASSED] Virtual [07:26:07] [PASSED] DSI [07:26:07] [PASSED] DPI [07:26:07] [PASSED] Writeback [07:26:07] [PASSED] SPI [07:26:07] [PASSED] USB [07:26:07] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ==== [07:26:07] ============ [PASSED] drmm_connector_hdmi_init ============= [07:26:07] ============= drmm_connector_init (3 subtests) ============= [07:26:07] [PASSED] drm_test_drmm_connector_init [07:26:07] [PASSED] drm_test_drmm_connector_init_null_ddc [07:26:07] ========= drm_test_drmm_connector_init_type_valid ========= [07:26:07] [PASSED] Unknown [07:26:07] [PASSED] VGA [07:26:07] [PASSED] DVI-I [07:26:07] [PASSED] DVI-D [07:26:07] [PASSED] DVI-A [07:26:07] [PASSED] Composite [07:26:07] [PASSED] SVIDEO [07:26:07] [PASSED] LVDS [07:26:07] [PASSED] Component [07:26:07] [PASSED] DIN [07:26:07] [PASSED] DP [07:26:07] [PASSED] HDMI-A [07:26:07] [PASSED] HDMI-B [07:26:07] [PASSED] TV [07:26:07] [PASSED] eDP [07:26:07] [PASSED] Virtual [07:26:07] [PASSED] DSI [07:26:07] [PASSED] DPI [07:26:07] [PASSED] Writeback [07:26:07] [PASSED] SPI [07:26:07] [PASSED] USB [07:26:07] ===== [PASSED] drm_test_drmm_connector_init_type_valid ===== [07:26:07] =============== [PASSED] drmm_connector_init =============== [07:26:07] ========= drm_connector_dynamic_init (6 subtests) ========== [07:26:07] [PASSED] drm_test_drm_connector_dynamic_init [07:26:07] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc [07:26:07] [PASSED] drm_test_drm_connector_dynamic_init_not_added [07:26:07] [PASSED] drm_test_drm_connector_dynamic_init_properties [07:26:07] ===== drm_test_drm_connector_dynamic_init_type_valid ====== [07:26:07] [PASSED] Unknown [07:26:07] [PASSED] VGA [07:26:07] [PASSED] DVI-I [07:26:07] [PASSED] DVI-D [07:26:07] [PASSED] DVI-A [07:26:07] [PASSED] Composite [07:26:07] [PASSED] SVIDEO [07:26:07] [PASSED] LVDS [07:26:07] [PASSED] Component [07:26:07] [PASSED] DIN [07:26:07] [PASSED] DP [07:26:07] [PASSED] HDMI-A [07:26:07] [PASSED] HDMI-B [07:26:07] [PASSED] TV [07:26:07] [PASSED] eDP [07:26:07] [PASSED] Virtual [07:26:07] [PASSED] DSI [07:26:07] [PASSED] DPI [07:26:07] [PASSED] Writeback [07:26:07] [PASSED] SPI [07:26:07] [PASSED] USB [07:26:07] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid == [07:26:07] ======== drm_test_drm_connector_dynamic_init_name ========= [07:26:07] [PASSED] Unknown [07:26:07] [PASSED] VGA [07:26:07] [PASSED] DVI-I [07:26:07] [PASSED] DVI-D [07:26:07] [PASSED] DVI-A [07:26:07] [PASSED] Composite [07:26:07] [PASSED] SVIDEO [07:26:07] [PASSED] LVDS [07:26:07] [PASSED] Component [07:26:07] [PASSED] DIN [07:26:07] [PASSED] DP [07:26:07] [PASSED] HDMI-A [07:26:07] [PASSED] HDMI-B [07:26:07] [PASSED] TV [07:26:07] [PASSED] eDP [07:26:07] [PASSED] Virtual [07:26:07] [PASSED] DSI [07:26:07] [PASSED] DPI [07:26:07] [PASSED] Writeback [07:26:07] [PASSED] SPI [07:26:07] [PASSED] USB [07:26:07] ==== [PASSED] drm_test_drm_connector_dynamic_init_name ===== [07:26:07] =========== [PASSED] drm_connector_dynamic_init ============ [07:26:07] ==== drm_connector_dynamic_register_early (4 subtests) ===== [07:26:07] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list [07:26:07] [PASSED] drm_test_drm_connector_dynamic_register_early_defer [07:26:07] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init [07:26:07] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object [07:26:07] ====== [PASSED] drm_connector_dynamic_register_early ======= [07:26:07] ======= drm_connector_dynamic_register (7 subtests) ======== [07:26:07] [PASSED] drm_test_drm_connector_dynamic_register_on_list [07:26:07] [PASSED] drm_test_drm_connector_dynamic_register_no_defer [07:26:07] [PASSED] drm_test_drm_connector_dynamic_register_no_init [07:26:07] [PASSED] drm_test_drm_connector_dynamic_register_mode_object [07:26:07] [PASSED] drm_test_drm_connector_dynamic_register_sysfs [07:26:07] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name [07:26:07] [PASSED] drm_test_drm_connector_dynamic_register_debugfs [07:26:07] ========= [PASSED] drm_connector_dynamic_register ========== [07:26:07] = drm_connector_attach_broadcast_rgb_property (2 subtests) = [07:26:07] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property [07:26:07] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector [07:26:07] === [PASSED] drm_connector_attach_broadcast_rgb_property === [07:26:07] ========== drm_get_tv_mode_from_name (2 subtests) ========== [07:26:07] ========== drm_test_get_tv_mode_from_name_valid =========== [07:26:07] [PASSED] NTSC [07:26:07] [PASSED] NTSC-443 [07:26:07] [PASSED] NTSC-J [07:26:07] [PASSED] PAL [07:26:07] [PASSED] PAL-M [07:26:07] [PASSED] PAL-N [07:26:07] [PASSED] SECAM [07:26:07] [PASSED] Mono [07:26:07] ====== [PASSED] drm_test_get_tv_mode_from_name_valid ======= [07:26:07] [PASSED] drm_test_get_tv_mode_from_name_truncated [07:26:07] ============ [PASSED] drm_get_tv_mode_from_name ============ [07:26:07] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) = [07:26:07] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb [07:26:07] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc [07:26:07] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1 [07:26:07] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc [07:26:07] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1 [07:26:07] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double [07:26:07] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid = [07:26:07] [PASSED] VIC 96 [07:26:07] [PASSED] VIC 97 [07:26:07] [PASSED] VIC 101 [07:26:07] [PASSED] VIC 102 [07:26:07] [PASSED] VIC 106 [07:26:07] [PASSED] VIC 107 [07:26:07] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid === [07:26:07] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc [07:26:07] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc [07:26:07] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc [07:26:07] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc [07:26:07] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc [07:26:07] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ==== [07:26:07] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) == [07:26:07] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name ==== [07:26:07] [PASSED] Automatic [07:26:07] [PASSED] Full [07:26:07] [PASSED] Limited 16:235 [07:26:07] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name === [07:26:07] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid [07:26:07] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ==== [07:26:07] == drm_hdmi_connector_get_output_format_name (2 subtests) == [07:26:07] === drm_test_drm_hdmi_connector_get_output_format_name ==== [07:26:07] [PASSED] RGB [07:26:07] [PASSED] YUV 4:2:0 [07:26:07] [PASSED] YUV 4:2:2 [07:26:07] [PASSED] YUV 4:4:4 [07:26:07] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name === [07:26:07] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid [07:26:07] ==== [PASSED] drm_hdmi_connector_get_output_format_name ==== [07:26:07] ============= drm_damage_helper (21 subtests) ============== [07:26:07] [PASSED] drm_test_damage_iter_no_damage [07:26:07] [PASSED] drm_test_damage_iter_no_damage_fractional_src [07:26:07] [PASSED] drm_test_damage_iter_no_damage_src_moved [07:26:07] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved [07:26:07] [PASSED] drm_test_damage_iter_no_damage_not_visible [07:26:07] [PASSED] drm_test_damage_iter_no_damage_no_crtc [07:26:07] [PASSED] drm_test_damage_iter_no_damage_no_fb [07:26:07] [PASSED] drm_test_damage_iter_simple_damage [07:26:07] [PASSED] drm_test_damage_iter_single_damage [07:26:07] [PASSED] drm_test_damage_iter_single_damage_intersect_src [07:26:07] [PASSED] drm_test_damage_iter_single_damage_outside_src [07:26:07] [PASSED] drm_test_damage_iter_single_damage_fractional_src [07:26:07] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src [07:26:07] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src [07:26:07] [PASSED] drm_test_damage_iter_single_damage_src_moved [07:26:07] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved [07:26:07] [PASSED] drm_test_damage_iter_damage [07:26:07] [PASSED] drm_test_damage_iter_damage_one_intersect [07:26:07] [PASSED] drm_test_damage_iter_damage_one_outside [07:26:07] [PASSED] drm_test_damage_iter_damage_src_moved [07:26:07] [PASSED] drm_test_damage_iter_damage_not_visible [07:26:07] ================ [PASSED] drm_damage_helper ================ [07:26:07] ============== drm_dp_mst_helper (3 subtests) ============== [07:26:07] ============== drm_test_dp_mst_calc_pbn_mode ============== [07:26:07] [PASSED] Clock 154000 BPP 30 DSC disabled [07:26:07] [PASSED] Clock 234000 BPP 30 DSC disabled [07:26:07] [PASSED] Clock 297000 BPP 24 DSC disabled [07:26:07] [PASSED] Clock 332880 BPP 24 DSC enabled [07:26:07] [PASSED] Clock 324540 BPP 24 DSC enabled [07:26:07] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ========== [07:26:07] ============== drm_test_dp_mst_calc_pbn_div =============== [07:26:07] [PASSED] Link rate 2000000 lane count 4 [07:26:07] [PASSED] Link rate 2000000 lane count 2 [07:26:07] [PASSED] Link rate 2000000 lane count 1 [07:26:07] [PASSED] Link rate 1350000 lane count 4 [07:26:07] [PASSED] Link rate 1350000 lane count 2 [07:26:07] [PASSED] Link rate 1350000 lane count 1 [07:26:07] [PASSED] Link rate 1000000 lane count 4 [07:26:07] [PASSED] Link rate 1000000 lane count 2 [07:26:07] [PASSED] Link rate 1000000 lane count 1 [07:26:07] [PASSED] Link rate 810000 lane count 4 [07:26:07] [PASSED] Link rate 810000 lane count 2 [07:26:07] [PASSED] Link rate 810000 lane count 1 [07:26:07] [PASSED] Link rate 540000 lane count 4 [07:26:07] [PASSED] Link rate 540000 lane count 2 [07:26:07] [PASSED] Link rate 540000 lane count 1 [07:26:07] [PASSED] Link rate 270000 lane count 4 [07:26:07] [PASSED] Link rate 270000 lane count 2 [07:26:07] [PASSED] Link rate 270000 lane count 1 [07:26:07] [PASSED] Link rate 162000 lane count 4 [07:26:07] [PASSED] Link rate 162000 lane count 2 [07:26:07] [PASSED] Link rate 162000 lane count 1 [07:26:07] ========== [PASSED] drm_test_dp_mst_calc_pbn_div =========== [07:26:07] ========= drm_test_dp_mst_sideband_msg_req_decode ========= [07:26:07] [PASSED] DP_ENUM_PATH_RESOURCES with port number [07:26:07] [PASSED] DP_POWER_UP_PHY with port number [07:26:07] [PASSED] DP_POWER_DOWN_PHY with port number [07:26:07] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks [07:26:07] [PASSED] DP_ALLOCATE_PAYLOAD with port number [07:26:07] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI [07:26:07] [PASSED] DP_ALLOCATE_PAYLOAD with PBN [07:26:07] [PASSED] DP_QUERY_PAYLOAD with port number [07:26:07] [PASSED] DP_QUERY_PAYLOAD with VCPI [07:26:07] [PASSED] DP_REMOTE_DPCD_READ with port number [07:26:07] [PASSED] DP_REMOTE_DPCD_READ with DPCD address [07:26:07] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes [07:26:07] [PASSED] DP_REMOTE_DPCD_WRITE with port number [07:26:07] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address [07:26:07] [PASSED] DP_REMOTE_DPCD_WRITE with data array [07:26:07] [PASSED] DP_REMOTE_I2C_READ with port number [07:26:07] [PASSED] DP_REMOTE_I2C_READ with I2C device ID [07:26:07] [PASSED] DP_REMOTE_I2C_READ with transactions array [07:26:07] [PASSED] DP_REMOTE_I2C_WRITE with port number [07:26:07] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID [07:26:07] [PASSED] DP_REMOTE_I2C_WRITE with data array [07:26:07] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID [07:26:07] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID [07:26:07] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event [07:26:07] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event [07:26:07] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior [07:26:07] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior [07:26:07] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode ===== [07:26:07] ================ [PASSED] drm_dp_mst_helper ================ [07:26:07] ================== drm_exec (7 subtests) =================== [07:26:07] [PASSED] sanitycheck [07:26:07] [PASSED] test_lock [07:26:07] [PASSED] test_lock_unlock [07:26:07] [PASSED] test_duplicates [07:26:07] [PASSED] test_prepare [07:26:07] [PASSED] test_prepare_array [07:26:07] [PASSED] test_multiple_loops [07:26:07] ==================== [PASSED] drm_exec ===================== [07:26:07] =========== drm_format_helper_test (17 subtests) =========== [07:26:07] ============== drm_test_fb_xrgb8888_to_gray8 ============== [07:26:07] [PASSED] single_pixel_source_buffer [07:26:07] [PASSED] single_pixel_clip_rectangle [07:26:07] [PASSED] well_known_colors [07:26:07] [PASSED] destination_pitch [07:26:07] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ========== [07:26:07] ============= drm_test_fb_xrgb8888_to_rgb332 ============== [07:26:07] [PASSED] single_pixel_source_buffer [07:26:07] [PASSED] single_pixel_clip_rectangle [07:26:07] [PASSED] well_known_colors [07:26:07] [PASSED] destination_pitch [07:26:07] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ========== [07:26:07] ============= drm_test_fb_xrgb8888_to_rgb565 ============== [07:26:07] [PASSED] single_pixel_source_buffer [07:26:07] [PASSED] single_pixel_clip_rectangle [07:26:07] [PASSED] well_known_colors [07:26:07] [PASSED] destination_pitch [07:26:07] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ========== [07:26:07] ============ drm_test_fb_xrgb8888_to_xrgb1555 ============= [07:26:07] [PASSED] single_pixel_source_buffer [07:26:07] [PASSED] single_pixel_clip_rectangle [07:26:07] [PASSED] well_known_colors [07:26:07] [PASSED] destination_pitch [07:26:07] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 ========= [07:26:07] ============ drm_test_fb_xrgb8888_to_argb1555 ============= [07:26:07] [PASSED] single_pixel_source_buffer [07:26:07] [PASSED] single_pixel_clip_rectangle [07:26:07] [PASSED] well_known_colors [07:26:07] [PASSED] destination_pitch [07:26:07] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 ========= [07:26:07] ============ drm_test_fb_xrgb8888_to_rgba5551 ============= [07:26:07] [PASSED] single_pixel_source_buffer [07:26:07] [PASSED] single_pixel_clip_rectangle [07:26:07] [PASSED] well_known_colors [07:26:07] [PASSED] destination_pitch [07:26:07] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 ========= [07:26:07] ============= drm_test_fb_xrgb8888_to_rgb888 ============== [07:26:07] [PASSED] single_pixel_source_buffer [07:26:07] [PASSED] single_pixel_clip_rectangle [07:26:07] [PASSED] well_known_colors [07:26:07] [PASSED] destination_pitch [07:26:07] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ========== [07:26:07] ============= drm_test_fb_xrgb8888_to_bgr888 ============== [07:26:07] [PASSED] single_pixel_source_buffer [07:26:07] [PASSED] single_pixel_clip_rectangle [07:26:07] [PASSED] well_known_colors [07:26:07] [PASSED] destination_pitch [07:26:07] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ========== [07:26:07] ============ drm_test_fb_xrgb8888_to_argb8888 ============= [07:26:07] [PASSED] single_pixel_source_buffer [07:26:07] [PASSED] single_pixel_clip_rectangle [07:26:07] [PASSED] well_known_colors [07:26:07] [PASSED] destination_pitch [07:26:07] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 ========= [07:26:07] =========== drm_test_fb_xrgb8888_to_xrgb2101010 =========== [07:26:07] [PASSED] single_pixel_source_buffer [07:26:07] [PASSED] single_pixel_clip_rectangle [07:26:07] [PASSED] well_known_colors [07:26:07] [PASSED] destination_pitch [07:26:07] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 ======= [07:26:07] =========== drm_test_fb_xrgb8888_to_argb2101010 =========== [07:26:07] [PASSED] single_pixel_source_buffer [07:26:07] [PASSED] single_pixel_clip_rectangle [07:26:07] [PASSED] well_known_colors [07:26:07] [PASSED] destination_pitch [07:26:07] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 ======= [07:26:07] ============== drm_test_fb_xrgb8888_to_mono =============== [07:26:07] [PASSED] single_pixel_source_buffer [07:26:07] [PASSED] single_pixel_clip_rectangle [07:26:07] [PASSED] well_known_colors [07:26:07] [PASSED] destination_pitch [07:26:07] ========== [PASSED] drm_test_fb_xrgb8888_to_mono =========== [07:26:07] ==================== drm_test_fb_swab ===================== [07:26:07] [PASSED] single_pixel_source_buffer [07:26:07] [PASSED] single_pixel_clip_rectangle [07:26:07] [PASSED] well_known_colors [07:26:07] [PASSED] destination_pitch [07:26:07] ================ [PASSED] drm_test_fb_swab ================= [07:26:07] ============ drm_test_fb_xrgb8888_to_xbgr8888 ============= [07:26:07] [PASSED] single_pixel_source_buffer [07:26:07] [PASSED] single_pixel_clip_rectangle [07:26:07] [PASSED] well_known_colors [07:26:07] [PASSED] destination_pitch [07:26:07] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 ========= [07:26:07] ============ drm_test_fb_xrgb8888_to_abgr8888 ============= [07:26:07] [PASSED] single_pixel_source_buffer [07:26:07] [PASSED] single_pixel_clip_rectangle [07:26:07] [PASSED] well_known_colors [07:26:07] [PASSED] destination_pitch [07:26:07] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 ========= [07:26:07] ================= drm_test_fb_clip_offset ================= [07:26:07] [PASSED] pass through [07:26:07] [PASSED] horizontal offset [07:26:07] [PASSED] vertical offset [07:26:07] [PASSED] horizontal and vertical offset [07:26:07] [PASSED] horizontal offset (custom pitch) [07:26:07] [PASSED] vertical offset (custom pitch) [07:26:07] [PASSED] horizontal and vertical offset (custom pitch) [07:26:07] ============= [PASSED] drm_test_fb_clip_offset ============= [07:26:07] =================== drm_test_fb_memcpy ==================== [07:26:07] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258) [07:26:07] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258) [07:26:07] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559) [07:26:07] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258) [07:26:07] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258) [07:26:07] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559) [07:26:07] [PASSED] well_known_colors: XB24 little-endian (0x34324258) [07:26:07] [PASSED] well_known_colors: XRA8 little-endian (0x38415258) [07:26:07] [PASSED] well_known_colors: YU24 little-endian (0x34325559) [07:26:07] [PASSED] destination_pitch: XB24 little-endian (0x34324258) [07:26:07] [PASSED] destination_pitch: XRA8 little-endian (0x38415258) [07:26:07] [PASSED] destination_pitch: YU24 little-endian (0x34325559) [07:26:07] =============== [PASSED] drm_test_fb_memcpy ================ [07:26:07] ============= [PASSED] drm_format_helper_test ============== [07:26:07] ================= drm_format (18 subtests) ================= [07:26:07] [PASSED] drm_test_format_block_width_invalid [07:26:07] [PASSED] drm_test_format_block_width_one_plane [07:26:07] [PASSED] drm_test_format_block_width_two_plane [07:26:07] [PASSED] drm_test_format_block_width_three_plane [07:26:07] [PASSED] drm_test_format_block_width_tiled [07:26:07] [PASSED] drm_test_format_block_height_invalid [07:26:07] [PASSED] drm_test_format_block_height_one_plane [07:26:07] [PASSED] drm_test_format_block_height_two_plane [07:26:07] [PASSED] drm_test_format_block_height_three_plane [07:26:07] [PASSED] drm_test_format_block_height_tiled [07:26:07] [PASSED] drm_test_format_min_pitch_invalid [07:26:07] [PASSED] drm_test_format_min_pitch_one_plane_8bpp [07:26:07] [PASSED] drm_test_format_min_pitch_one_plane_16bpp [07:26:07] [PASSED] drm_test_format_min_pitch_one_plane_24bpp [07:26:07] [PASSED] drm_test_format_min_pitch_one_plane_32bpp [07:26:07] [PASSED] drm_test_format_min_pitch_two_plane [07:26:07] [PASSED] drm_test_format_min_pitch_three_plane_8bpp [07:26:07] [PASSED] drm_test_format_min_pitch_tiled [07:26:07] =================== [PASSED] drm_format ==================== [07:26:07] ============== drm_framebuffer (10 subtests) =============== [07:26:07] ========== drm_test_framebuffer_check_src_coords ========== [07:26:07] [PASSED] Success: source fits into fb [07:26:07] [PASSED] Fail: overflowing fb with x-axis coordinate [07:26:07] [PASSED] Fail: overflowing fb with y-axis coordinate [07:26:07] [PASSED] Fail: overflowing fb with source width [07:26:07] [PASSED] Fail: overflowing fb with source height [07:26:07] ====== [PASSED] drm_test_framebuffer_check_src_coords ====== [07:26:07] [PASSED] drm_test_framebuffer_cleanup [07:26:07] =============== drm_test_framebuffer_create =============== [07:26:07] [PASSED] ABGR8888 normal sizes [07:26:07] [PASSED] ABGR8888 max sizes [07:26:07] [PASSED] ABGR8888 pitch greater than min required [07:26:07] [PASSED] ABGR8888 pitch less than min required [07:26:07] [PASSED] ABGR8888 Invalid width [07:26:07] [PASSED] ABGR8888 Invalid buffer handle [07:26:07] [PASSED] No pixel format [07:26:07] [PASSED] ABGR8888 Width 0 [07:26:07] [PASSED] ABGR8888 Height 0 [07:26:07] [PASSED] ABGR8888 Out of bound height * pitch combination [07:26:07] [PASSED] ABGR8888 Large buffer offset [07:26:07] [PASSED] ABGR8888 Buffer offset for inexistent plane [07:26:07] [PASSED] ABGR8888 Invalid flag [07:26:07] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers [07:26:07] [PASSED] ABGR8888 Valid buffer modifier [07:26:07] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE) [07:26:07] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS [07:26:07] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS [07:26:07] [PASSED] NV12 Normal sizes [07:26:07] [PASSED] NV12 Max sizes [07:26:07] [PASSED] NV12 Invalid pitch [07:26:07] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag [07:26:07] [PASSED] NV12 different modifier per-plane [07:26:07] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE [07:26:07] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS [07:26:07] [PASSED] NV12 Modifier for inexistent plane [07:26:07] [PASSED] NV12 Handle for inexistent plane [07:26:07] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS [07:26:07] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier [07:26:07] [PASSED] YVU420 Normal sizes [07:26:07] [PASSED] YVU420 Max sizes [07:26:07] [PASSED] YVU420 Invalid pitch [07:26:07] [PASSED] YVU420 Different pitches [07:26:07] [PASSED] YVU420 Different buffer offsets/pitches [07:26:07] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS [07:26:07] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS [07:26:07] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS [07:26:07] [PASSED] YVU420 Valid modifier [07:26:07] [PASSED] YVU420 Different modifiers per plane [07:26:07] [PASSED] YVU420 Modifier for inexistent plane [07:26:07] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR) [07:26:07] [PASSED] X0L2 Normal sizes [07:26:07] [PASSED] X0L2 Max sizes [07:26:07] [PASSED] X0L2 Invalid pitch [07:26:07] [PASSED] X0L2 Pitch greater than minimum required [07:26:07] [PASSED] X0L2 Handle for inexistent plane [07:26:07] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set [07:26:07] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set [07:26:07] [PASSED] X0L2 Valid modifier [07:26:07] [PASSED] X0L2 Modifier for inexistent plane [07:26:07] =========== [PASSED] drm_test_framebuffer_create =========== [07:26:07] [PASSED] drm_test_framebuffer_free [07:26:07] [PASSED] drm_test_framebuffer_init [07:26:07] [PASSED] drm_test_framebuffer_init_bad_format [07:26:07] [PASSED] drm_test_framebuffer_init_dev_mismatch [07:26:07] [PASSED] drm_test_framebuffer_lookup [07:26:07] [PASSED] drm_test_framebuffer_lookup_inexistent [07:26:07] [PASSED] drm_test_framebuffer_modifiers_not_supported [07:26:07] ================= [PASSED] drm_framebuffer ================= [07:26:07] ================ drm_gem_shmem (8 subtests) ================ [07:26:07] [PASSED] drm_gem_shmem_test_obj_create [07:26:07] [PASSED] drm_gem_shmem_test_obj_create_private [07:26:07] [PASSED] drm_gem_shmem_test_pin_pages [07:26:07] [PASSED] drm_gem_shmem_test_vmap [07:26:07] [PASSED] drm_gem_shmem_test_get_sg_table [07:26:07] [PASSED] drm_gem_shmem_test_get_pages_sgt [07:26:07] [PASSED] drm_gem_shmem_test_madvise [07:26:07] [PASSED] drm_gem_shmem_test_purge [07:26:07] ================== [PASSED] drm_gem_shmem ================== [07:26:07] === drm_atomic_helper_connector_hdmi_check (29 subtests) === [07:26:07] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode [07:26:07] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1 [07:26:07] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode [07:26:07] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1 [07:26:07] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode [07:26:07] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1 [07:26:07] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420 ======= [07:26:07] [PASSED] Automatic [07:26:07] [PASSED] Full [07:26:07] [PASSED] Limited 16:235 [07:26:07] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 === [07:26:07] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed [07:26:07] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed [07:26:07] [PASSED] drm_test_check_disable_connector [07:26:07] [PASSED] drm_test_check_hdmi_funcs_reject_rate [07:26:07] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb [07:26:07] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420 [07:26:07] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422 [07:26:07] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420 [07:26:07] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420 [07:26:07] [PASSED] drm_test_check_output_bpc_crtc_mode_changed [07:26:07] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed [07:26:07] [PASSED] drm_test_check_output_bpc_dvi [07:26:07] [PASSED] drm_test_check_output_bpc_format_vic_1 [07:26:07] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only [07:26:07] [PASSED] drm_test_check_output_bpc_format_display_rgb_only [07:26:07] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only [07:26:07] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only [07:26:07] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc [07:26:07] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc [07:26:07] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc [07:26:07] ============ drm_test_check_hdmi_color_format ============= [07:26:07] [PASSED] AUTO -> RGB [07:26:07] [PASSED] YCBCR422 -> YUV422 [07:26:07] [PASSED] YCBCR420 -> YUV420 [07:26:07] [PASSED] YCBCR444 -> YUV444 [07:26:07] [PASSED] RGB -> RGB [07:26:07] ======== [PASSED] drm_test_check_hdmi_color_format ========= [07:26:07] ======== drm_test_check_hdmi_color_format_420_only ======== [07:26:07] [PASSED] RGB should fail [07:26:07] [PASSED] YUV444 should fail [07:26:07] [PASSED] YUV422 should fail [07:26:07] [PASSED] YUV420 should work [07:26:07] ==== [PASSED] drm_test_check_hdmi_color_format_420_only ==== [07:26:07] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ====== [07:26:07] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ==== [07:26:07] [PASSED] drm_test_check_broadcast_rgb_value [07:26:07] [PASSED] drm_test_check_bpc_8_value [07:26:07] [PASSED] drm_test_check_bpc_10_value [07:26:07] [PASSED] drm_test_check_bpc_12_value [07:26:07] [PASSED] drm_test_check_format_value [07:26:07] [PASSED] drm_test_check_tmds_char_value [07:26:07] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ====== [07:26:07] = drm_atomic_helper_connector_hdmi_mode_valid (7 subtests) = [07:26:07] [PASSED] drm_test_check_mode_valid [07:26:07] [PASSED] drm_test_check_mode_valid_reject [07:26:07] [PASSED] drm_test_check_mode_valid_reject_rate [07:26:07] [PASSED] drm_test_check_mode_valid_reject_max_clock [07:26:07] [PASSED] drm_test_check_mode_valid_yuv420_only_max_clock [07:26:07] [PASSED] drm_test_check_mode_valid_reject_yuv420_only_connector [07:26:07] [PASSED] drm_test_check_mode_valid_accept_yuv420_also_connector_rgb [07:26:07] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid === [07:26:07] = drm_atomic_helper_connector_hdmi_infoframes (5 subtests) = [07:26:07] [PASSED] drm_test_check_infoframes [07:26:07] [PASSED] drm_test_check_reject_avi_infoframe [07:26:07] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_8 [07:26:07] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_10 [07:26:07] [PASSED] drm_test_check_reject_audio_infoframe [07:26:07] === [PASSED] drm_atomic_helper_connector_hdmi_infoframes === [07:26:07] ================= drm_managed (2 subtests) ================= [07:26:07] [PASSED] drm_test_managed_release_action [07:26:07] [PASSED] drm_test_managed_run_action [07:26:07] =================== [PASSED] drm_managed =================== [07:26:07] =================== drm_mm (6 subtests) ==================== [07:26:07] [PASSED] drm_test_mm_init [07:26:07] [PASSED] drm_test_mm_debug [07:26:07] [PASSED] drm_test_mm_align32 [07:26:07] [PASSED] drm_test_mm_align64 [07:26:07] [PASSED] drm_test_mm_lowest [07:26:07] [PASSED] drm_test_mm_highest [07:26:07] ===================== [PASSED] drm_mm ====================== [07:26:07] ============= drm_modes_analog_tv (5 subtests) ============= [07:26:07] [PASSED] drm_test_modes_analog_tv_mono_576i [07:26:07] [PASSED] drm_test_modes_analog_tv_ntsc_480i [07:26:07] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined [07:26:07] [PASSED] drm_test_modes_analog_tv_pal_576i [07:26:07] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined [07:26:07] =============== [PASSED] drm_modes_analog_tv =============== [07:26:07] ============== drm_panic_helper (3 subtests) =============== [07:26:07] ============= drm_test_panic_screen_user_map ============== [07:26:07] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258) [07:26:07] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258) [07:26:07] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258) [07:26:07] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752) [07:26:07] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752) [07:26:08] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258) [07:26:08] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258) [07:26:08] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258) [07:26:08] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752) [07:26:08] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752) [07:26:08] ========= [PASSED] drm_test_panic_screen_user_map ========== [07:26:08] ============= drm_test_panic_screen_user_page ============= [07:26:08] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258) [07:26:08] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258) [07:26:08] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258) [07:26:08] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752) [07:26:08] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752) [07:26:08] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258) [07:26:08] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258) [07:26:08] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258) [07:26:08] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752) [07:26:08] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752) [07:26:08] ========= [PASSED] drm_test_panic_screen_user_page ========= [07:26:08] ========== drm_test_panic_screen_user_set_pixel =========== [07:26:08] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258) [07:26:08] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258) [07:26:08] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258) [07:26:08] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752) [07:26:08] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752) [07:26:08] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258) [07:26:08] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258) [07:26:08] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258) [07:26:08] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752) [07:26:08] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752) [07:26:08] ====== [PASSED] drm_test_panic_screen_user_set_pixel ======= [07:26:08] ================ [PASSED] drm_panic_helper ================= [07:26:08] ============== drm_plane_helper (2 subtests) =============== [07:26:08] =============== drm_test_check_plane_state ================ [07:26:08] [PASSED] clipping_simple [07:26:08] [PASSED] clipping_rotate_reflect [07:26:08] [PASSED] positioning_simple [07:26:08] [PASSED] upscaling [07:26:08] [PASSED] downscaling [07:26:08] [PASSED] rounding1 [07:26:08] [PASSED] rounding2 [07:26:08] [PASSED] rounding3 [07:26:08] [PASSED] rounding4 [07:26:08] =========== [PASSED] drm_test_check_plane_state ============ [07:26:08] =========== drm_test_check_invalid_plane_state ============ [07:26:08] [PASSED] positioning_invalid [07:26:08] [PASSED] upscaling_invalid [07:26:08] [PASSED] downscaling_invalid [07:26:08] ======= [PASSED] drm_test_check_invalid_plane_state ======== [07:26:08] ================ [PASSED] drm_plane_helper ================= [07:26:08] ====== drm_connector_helper_tv_get_modes (1 subtest) ======= [07:26:08] ====== drm_test_connector_helper_tv_get_modes_check ======= [07:26:08] [PASSED] None [07:26:08] [PASSED] PAL [07:26:08] [PASSED] NTSC [07:26:08] [PASSED] Both, NTSC Default [07:26:08] [PASSED] Both, PAL Default [07:26:08] [PASSED] Both, NTSC Default, with PAL on command-line [07:26:08] [PASSED] Both, PAL Default, with NTSC on command-line [07:26:08] == [PASSED] drm_test_connector_helper_tv_get_modes_check === [07:26:08] ======== [PASSED] drm_connector_helper_tv_get_modes ======== [07:26:08] ================== drm_rect (9 subtests) =================== [07:26:08] [PASSED] drm_test_rect_clip_scaled_div_by_zero [07:26:08] [PASSED] drm_test_rect_clip_scaled_not_clipped [07:26:08] [PASSED] drm_test_rect_clip_scaled_clipped [07:26:08] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned [07:26:08] ================= drm_test_rect_intersect ================= [07:26:08] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0 [07:26:08] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1 [07:26:08] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0 [07:26:08] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1 [07:26:08] [PASSED] right x left: 2x1+0+0 x 3x1+1+0 [07:26:08] [PASSED] left x right: 3x1+1+0 x 2x1+0+0 [07:26:08] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1 [07:26:08] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0 [07:26:08] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1 [07:26:08] [PASSED] touching side: 1x1+0+0 x 1x1+1+0 [07:26:08] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0 [07:26:08] [PASSED] inside another: 2x2+0+0 x 1x1+1+1 [07:26:08] [PASSED] far away: 1x1+0+0 x 1x1+3+6 [07:26:08] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10 [07:26:08] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10 [07:26:08] ============= [PASSED] drm_test_rect_intersect ============= [07:26:08] ================ drm_test_rect_calc_hscale ================ [07:26:08] [PASSED] normal use [07:26:08] [PASSED] out of max range [07:26:08] [PASSED] out of min range [07:26:08] [PASSED] zero dst [07:26:08] [PASSED] negative src [07:26:08] [PASSED] negative dst [07:26:08] ============ [PASSED] drm_test_rect_calc_hscale ============ [07:26:08] ================ drm_test_rect_calc_vscale ================ [07:26:08] [PASSED] normal use [07:26:08] [PASSED] out of max range [07:26:08] [PASSED] out of min range [07:26:08] [PASSED] zero dst [07:26:08] [PASSED] negative src [07:26:08] [PASSED] negative dst [07:26:08] ============ [PASSED] drm_test_rect_calc_vscale ============ [07:26:08] ================== drm_test_rect_rotate =================== [07:26:08] [PASSED] reflect-x [07:26:08] [PASSED] reflect-y [07:26:08] [PASSED] rotate-0 [07:26:08] [PASSED] rotate-90 [07:26:08] [PASSED] rotate-180 [07:26:08] [PASSED] rotate-270 [07:26:08] ============== [PASSED] drm_test_rect_rotate =============== [07:26:08] ================ drm_test_rect_rotate_inv ================= [07:26:08] [PASSED] reflect-x [07:26:08] [PASSED] reflect-y [07:26:08] [PASSED] rotate-0 [07:26:08] [PASSED] rotate-90 [07:26:08] [PASSED] rotate-180 [07:26:08] [PASSED] rotate-270 [07:26:08] ============ [PASSED] drm_test_rect_rotate_inv ============= [07:26:08] ==================== [PASSED] drm_rect ===================== [07:26:08] ============ drm_sysfb_modeset_test (1 subtest) ============ [07:26:08] ============ drm_test_sysfb_build_fourcc_list ============= [07:26:08] [PASSED] no native formats [07:26:08] [PASSED] XRGB8888 as native format [07:26:08] [PASSED] remove duplicates [07:26:08] [PASSED] convert alpha formats [07:26:08] [PASSED] random formats [07:26:08] ======== [PASSED] drm_test_sysfb_build_fourcc_list ========= [07:26:08] ============= [PASSED] drm_sysfb_modeset_test ============== [07:26:08] ================== drm_fixp (2 subtests) =================== [07:26:08] [PASSED] drm_test_int2fixp [07:26:08] [PASSED] drm_test_sm2fixp [07:26:08] ==================== [PASSED] drm_fixp ===================== [07:26:08] ============================================================ [07:26:08] Testing complete. Ran 667 tests: passed: 667 [07:26:08] Elapsed time: 28.726s total, 2.542s configuring, 25.765s building, 0.408s running
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig [07:26:08] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [07:26:10] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [07:26:21] Starting KUnit Kernel (1/1)... [07:26:21] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [07:26:21] ================= ttm_device (5 subtests) ================== [07:26:21] [PASSED] ttm_device_init_basic [07:26:21] [PASSED] ttm_device_init_multiple [07:26:21] [PASSED] ttm_device_fini_basic [07:26:21] [PASSED] ttm_device_init_no_vma_man [07:26:21] ================== ttm_device_init_pools ================== [07:26:21] [PASSED] No DMA allocations, no DMA32 required [07:26:21] [PASSED] DMA allocations, DMA32 required [07:26:21] [PASSED] No DMA allocations, DMA32 required [07:26:21] [PASSED] DMA allocations, no DMA32 required [07:26:21] ============== [PASSED] ttm_device_init_pools ============== [07:26:21] =================== [PASSED] ttm_device ==================== [07:26:21] ================== ttm_pool (8 subtests) =================== [07:26:21] ================== ttm_pool_alloc_basic =================== [07:26:21] [PASSED] One page [07:26:21] [PASSED] More than one page [07:26:21] [PASSED] Above the allocation limit [07:26:21] [PASSED] One page, with coherent DMA mappings enabled [07:26:21] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [07:26:21] ============== [PASSED] ttm_pool_alloc_basic =============== [07:26:21] ============== ttm_pool_alloc_basic_dma_addr ============== [07:26:21] [PASSED] One page [07:26:21] [PASSED] More than one page [07:26:21] [PASSED] Above the allocation limit [07:26:21] [PASSED] One page, with coherent DMA mappings enabled [07:26:21] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [07:26:21] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ========== [07:26:21] [PASSED] ttm_pool_alloc_order_caching_match [07:26:21] [PASSED] ttm_pool_alloc_caching_mismatch [07:26:21] [PASSED] ttm_pool_alloc_order_mismatch [07:26:21] [PASSED] ttm_pool_free_dma_alloc [07:26:21] [PASSED] ttm_pool_free_no_dma_alloc [07:26:21] [PASSED] ttm_pool_fini_basic [07:26:21] ==================== [PASSED] ttm_pool ===================== [07:26:21] ================ ttm_resource (8 subtests) ================= [07:26:21] ================= ttm_resource_init_basic ================= [07:26:21] [PASSED] Init resource in TTM_PL_SYSTEM [07:26:21] [PASSED] Init resource in TTM_PL_VRAM [07:26:21] [PASSED] Init resource in a private placement [07:26:21] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags [07:26:21] ============= [PASSED] ttm_resource_init_basic ============= [07:26:21] [PASSED] ttm_resource_init_pinned [07:26:21] [PASSED] ttm_resource_fini_basic [07:26:21] [PASSED] ttm_resource_manager_init_basic [07:26:21] [PASSED] ttm_resource_manager_usage_basic [07:26:21] [PASSED] ttm_resource_manager_set_used_basic [07:26:21] [PASSED] ttm_sys_man_alloc_basic [07:26:21] [PASSED] ttm_sys_man_free_basic [07:26:21] ================== [PASSED] ttm_resource =================== [07:26:21] =================== ttm_tt (15 subtests) =================== [07:26:21] ==================== ttm_tt_init_basic ==================== [07:26:21] [PASSED] Page-aligned size [07:26:21] [PASSED] Extra pages requested [07:26:21] ================ [PASSED] ttm_tt_init_basic ================ [07:26:21] [PASSED] ttm_tt_init_misaligned [07:26:21] [PASSED] ttm_tt_fini_basic [07:26:21] [PASSED] ttm_tt_fini_sg [07:26:21] [PASSED] ttm_tt_fini_shmem [07:26:21] [PASSED] ttm_tt_create_basic [07:26:21] [PASSED] ttm_tt_create_invalid_bo_type [07:26:21] [PASSED] ttm_tt_create_ttm_exists [07:26:21] [PASSED] ttm_tt_create_failed [07:26:21] [PASSED] ttm_tt_destroy_basic [07:26:21] [PASSED] ttm_tt_populate_null_ttm [07:26:21] [PASSED] ttm_tt_populate_populated_ttm [07:26:21] [PASSED] ttm_tt_unpopulate_basic [07:26:21] [PASSED] ttm_tt_unpopulate_empty_ttm [07:26:21] [PASSED] ttm_tt_swapin_basic [07:26:21] ===================== [PASSED] ttm_tt ====================== [07:26:21] =================== ttm_bo (14 subtests) =================== [07:26:21] =========== ttm_bo_reserve_optimistic_no_ticket =========== [07:26:21] [PASSED] Cannot be interrupted and sleeps [07:26:21] [PASSED] Cannot be interrupted, locks straight away [07:26:21] [PASSED] Can be interrupted, sleeps [07:26:21] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket ======= [07:26:21] [PASSED] ttm_bo_reserve_locked_no_sleep [07:26:21] [PASSED] ttm_bo_reserve_no_wait_ticket [07:26:21] [PASSED] ttm_bo_reserve_double_resv [07:26:21] [PASSED] ttm_bo_reserve_interrupted [07:26:21] [PASSED] ttm_bo_reserve_deadlock [07:26:21] [PASSED] ttm_bo_unreserve_basic [07:26:21] [PASSED] ttm_bo_unreserve_pinned [07:26:21] [PASSED] ttm_bo_unreserve_bulk [07:26:21] [PASSED] ttm_bo_fini_basic [07:26:21] [PASSED] ttm_bo_fini_shared_resv [07:26:21] [PASSED] ttm_bo_pin_basic [07:26:21] [PASSED] ttm_bo_pin_unpin_resource [07:26:21] [PASSED] ttm_bo_multiple_pin_one_unpin [07:26:21] ===================== [PASSED] ttm_bo ====================== [07:26:21] ============== ttm_bo_validate (22 subtests) =============== [07:26:21] ============== ttm_bo_init_reserved_sys_man =============== [07:26:21] [PASSED] Buffer object for userspace [07:26:21] [PASSED] Kernel buffer object [07:26:21] [PASSED] Shared buffer object [07:26:21] ========== [PASSED] ttm_bo_init_reserved_sys_man =========== [07:26:21] ============== ttm_bo_init_reserved_mock_man ============== [07:26:21] [PASSED] Buffer object for userspace [07:26:21] [PASSED] Kernel buffer object [07:26:21] [PASSED] Shared buffer object [07:26:21] ========== [PASSED] ttm_bo_init_reserved_mock_man ========== [07:26:21] [PASSED] ttm_bo_init_reserved_resv [07:26:21] ================== ttm_bo_validate_basic ================== [07:26:21] [PASSED] Buffer object for userspace [07:26:21] [PASSED] Kernel buffer object [07:26:21] [PASSED] Shared buffer object [07:26:21] ============== [PASSED] ttm_bo_validate_basic ============== [07:26:21] [PASSED] ttm_bo_validate_invalid_placement [07:26:21] ============= ttm_bo_validate_same_placement ============== [07:26:21] [PASSED] System manager [07:26:21] [PASSED] VRAM manager [07:26:21] ========= [PASSED] ttm_bo_validate_same_placement ========== [07:26:21] [PASSED] ttm_bo_validate_failed_alloc [07:26:21] [PASSED] ttm_bo_validate_pinned [07:26:21] [PASSED] ttm_bo_validate_busy_placement [07:26:21] ================ ttm_bo_validate_multihop ================= [07:26:21] [PASSED] Buffer object for userspace [07:26:21] [PASSED] Kernel buffer object [07:26:21] [PASSED] Shared buffer object [07:26:21] ============ [PASSED] ttm_bo_validate_multihop ============= [07:26:21] ========== ttm_bo_validate_no_placement_signaled ========== [07:26:21] [PASSED] Buffer object in system domain, no page vector [07:26:21] [PASSED] Buffer object in system domain with an existing page vector [07:26:21] ====== [PASSED] ttm_bo_validate_no_placement_signaled ====== [07:26:21] ======== ttm_bo_validate_no_placement_not_signaled ======== [07:26:21] [PASSED] Buffer object for userspace [07:26:21] [PASSED] Kernel buffer object [07:26:21] [PASSED] Shared buffer object [07:26:21] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ==== [07:26:21] [PASSED] ttm_bo_validate_move_fence_signaled [07:26:21] ========= ttm_bo_validate_move_fence_not_signaled ========= [07:26:21] [PASSED] Waits for GPU [07:26:21] [PASSED] Tries to lock straight away [07:26:21] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled ===== [07:26:21] [PASSED] ttm_bo_validate_swapout [07:26:21] [PASSED] ttm_bo_validate_happy_evict [07:26:21] [PASSED] ttm_bo_validate_all_pinned_evict [07:26:21] [PASSED] ttm_bo_validate_allowed_only_evict [07:26:21] [PASSED] ttm_bo_validate_deleted_evict [07:26:21] [PASSED] ttm_bo_validate_busy_domain_evict [07:26:21] [PASSED] ttm_bo_validate_evict_gutting [07:26:21] [PASSED] ttm_bo_validate_recrusive_evict [07:26:21] ================= [PASSED] ttm_bo_validate ================= [07:26:21] ============================================================ [07:26:21] Testing complete. Ran 102 tests: passed: 102 [07:26:21] Elapsed time: 13.443s total, 2.486s configuring, 10.742s building, 0.175s running
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/dma-buf/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/dma-buf/.kunitconfig [07:26:21] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [07:26:24] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 [07:26:33] Starting KUnit Kernel (1/1)... [07:26:33] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [07:26:33] =============== dma-buf-fence (12 subtests) ================ [07:26:33] [PASSED] test_sanitycheck [07:26:33] [PASSED] test_signaling [07:26:33] [PASSED] test_add_callback [07:26:33] [PASSED] test_late_add_callback [07:26:33] [PASSED] test_rm_callback [07:26:33] [PASSED] test_late_rm_callback [07:26:33] [PASSED] test_status [07:26:33] [PASSED] test_error [07:26:34] [PASSED] test_wait [07:26:34] [PASSED] test_wait_timeout [07:26:34] [PASSED] test_stub [07:26:34] [SKIPPED] test_race_signal_callback (requires at least 2 CPUs) [07:26:34] ================== [PASSED] dma-buf-fence ================== [07:26:34] ============ dma-buf-fence-chain (11 subtests) ============= [07:26:34] [PASSED] test_sanitycheck [07:26:34] [PASSED] test_find_seqno [07:26:34] [PASSED] test_find_signaled [07:26:34] [PASSED] test_find_out_of_order [07:26:39] [PASSED] test_find_gap [07:26:39] [PASSED] test_find_race [07:26:39] [PASSED] test_signal_forward [07:26:39] [PASSED] test_signal_backward [07:26:39] [PASSED] test_wait_forward [07:26:39] [PASSED] test_wait_backward [07:26:39] [PASSED] test_wait_random [07:26:39] =============== [PASSED] dma-buf-fence-chain =============== [07:26:39] ============ dma-buf-fence-unwrap (11 subtests) ============ [07:26:39] [PASSED] test_sanitycheck [07:26:39] [PASSED] test_unwrap_array [07:26:39] [PASSED] test_unwrap_chain [07:26:39] [PASSED] test_unwrap_chain_array [07:26:39] [PASSED] test_unwrap_merge [07:26:39] [PASSED] test_unwrap_merge_duplicate [07:26:39] [PASSED] test_unwrap_merge_seqno [07:26:39] [PASSED] test_unwrap_merge_order [07:26:39] [PASSED] test_unwrap_merge_complex [07:26:39] [PASSED] test_unwrap_merge_complex_seqno [07:26:39] [PASSED] test_dedup_empty [07:26:39] ============== [PASSED] dma-buf-fence-unwrap =============== [07:26:39] ================ dma-buf-resv (5 subtests) ================= [07:26:39] [PASSED] test_sanitycheck [07:26:39] ===================== test_signaling ====================== [07:26:39] [PASSED] kernel [07:26:39] [PASSED] write [07:26:39] [PASSED] read [07:26:39] [PASSED] bookkeep [07:26:39] ================= [PASSED] test_signaling ================== [07:26:39] ====================== test_for_each ====================== [07:26:39] [PASSED] kernel [07:26:39] [PASSED] write [07:26:39] [PASSED] read [07:26:39] [PASSED] bookkeep [07:26:39] ================== [PASSED] test_for_each ================== [07:26:39] ================= test_for_each_unlocked ================== [07:26:39] [PASSED] kernel [07:26:39] [PASSED] write [07:26:39] [PASSED] read [07:26:39] [PASSED] bookkeep [07:26:39] ============= [PASSED] test_for_each_unlocked ============== [07:26:39] ===================== test_get_fences ===================== [07:26:39] [PASSED] kernel [07:26:39] [PASSED] write [07:26:39] [PASSED] read [07:26:39] [PASSED] bookkeep [07:26:39] ================= [PASSED] test_get_fences ================= [07:26:39] ================== [PASSED] dma-buf-resv =================== [07:26:39] ============================================================ [07:26:39] Testing complete. Ran 51 tests: passed: 50, skipped: 1 [07:26:39] Elapsed time: 17.303s total, 2.482s configuring, 9.449s building, 5.346s running
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
Patchwork
CI✓ Xe.CI.BAT: success for Work around media 52-bit limitation on CRI
In reply to Stuart Summers== Series Details ==
== Series Details ==
Series: Work around media 52-bit limitation on CRI
URL : https://patchwork.freedesktop.org/series/179173/
State : success
== Summary ==
CI Bug Log - changes from xe-6195-5273820504a824f0c81ed31f939599dd0da3fc69_BAT -> xe-pw-179173v1_BAT
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (15 -> 15)
------------------------------
No changes in participating hosts
Changes
-------
No changes found
Build changes
-------------
* Linux: xe-6195-5273820504a824f0c81ed31f939599dd0da3fc69 -> xe-pw-179173v1
IGT_9200: 9200
xe-6195-5273820504a824f0c81ed31f939599dd0da3fc69: 5273820504a824f0c81ed31f939599dd0da3fc69
xe-pw-179173v1: 179173v1
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-179173v1/index.html