drm/xe/xe_sysctrl: Add system controller component for Xe3p dGPU platforms
Subsystems (2)
v12 cover drm/xe/xe_sysctrl: Add system controller component for Xe3p dGPU platforms
From: Anoop Vijay <[email protected]>
This patch series introduces initial support for System Controller (sysctrl) component on Intel Xe3p discrete GPU platforms.
System Controller is a firmware-managed entity responsible for selected platform-level management functions delegated by driver. Interaction with System Controller is performed via a mailbox interface.
This series adds foundational infrastructure required to detect and initialize System Controller interface and to exchange commands and responses with firmware, including support for fragmented message transfers for larger payloads.
This establishes base for subsequent System Controller feature enablement and firmware command handling.
Follow-up series covering sysctrl usage are available at:
https://patchwork.freedesktop.org/series/160482/
https://patchwork.freedesktop.org/series/160184/
https://patchwork.freedesktop.org/series/161655/
https://patchwork.freedesktop.org/series/163562/
---
v2: (Umesh)
- Fix commit message to 75 chars per line
- Address CI.Hooks and checkpatch warnings
- Add sc_to_xe() helper for cleaner conversions
- Alphabetical order for headers
- Simplify write/read frame logic using memcpy
- Drop redundant frame length checks
- Use xe_mmio_rmw32() for register updates
- Align FIELD_PREP macros
- Improve error handling and timeout messages
- Handle phase_bit revert on write-frame failure
- Update rdata_len on partial receive before return
- Remove unnecessary headers
v3: (Matt, Riana, Umesh)
- Split patch into logical series
- Rename SC_* macros to SYSCTRL_* for consistency
- Move MKHI_* defines to .c file
- Pass xe directly to helpers
- Place devm_add_action_or_reset() after set_sysctrl_region()
- Add kernel-doc for xe_sysctrl_mailbox_init()
- Add short documentation for System Controller in xe_sysctrl.c
- Avoid hardcoded sizes
- Move structs to _types.h
v4: (Matt, Mike)
- Code style improvements
- Add domain-specific MMIO accessor
- Change phase_bit to bool type
- Add input validation and buffer overflow protection
v5: (Umesh, Riana)
- Reset phase bit to 0 on error conditions
- Refactor mailbox receive path
- Updated xe_err messages for consistency
v6: (Matt)
- Move protocol constants from xe_sysctrl_regs.h to xe_sysctrl_mailbox_types.h
- Add SYSCTRL_MB_CTRL_MKHI_CMD helper macro
v7:
- Fix for CI failure
v8: (Matt, Michal, Shuicheng)
- Reordered patches for logical flow
- Moved ABI definitions to dedicated header
- Static functions renamed with short prefix
- Fixed include order
- Added VF check
- Converted runtime checks to assertions
- Changed xe_sysctrl_send_command() function parameter from 'xe' to 'sc'
- Added frame length validation and command overflow protection
- Use REG_FIELD_PREP for hardware registers
- Changed error format to %pe
- Removed unnecessary NULL checks and explicit zeros
- Fixed kernel-doc syntax
- Added sc_to_xe() helper
v9: (Matt, Umesh, Badal)
- Extended commit message to explain System Controller and purpose of has_sysctrl flag
- Normalized hexadecimal literal casing
- Renamed MKHI to SCHI (System Controller Host Interface)
- Fixed kernel-doc syntax
v10: (Riana, Badal, Anshuman, Umesh)
- Removed SCHI terminology and aligned to sysctrl mailbox naming
- Cleaned up commit message
- Updated sysctrl documentation
- Fixed mutex lifetime management
- Added System Controller ABI kernel-doc
- Converted xe_sysctrl_app_msg_hdr data field to u32
- Fixed macro alignment
- Added sysctrl suspend/resume handling
- Dropped redundant header includes and unused variable initialization
- Updated runtime PM guarding in xe_sysctrl_send_command() to use guard(xe_pm_runtime_noresume)
v11: (Umesh, Badal)
- Improve struct member spacing for readability
- Updated System Controller ABI doc
- Remove explicit SoC remapper disable on suspend
v12: (Badal)
- Drop empty sysctrl suspend handler
---
Anoop Vijay (7):
drm/xe/xe_sysctrl: Add System Controller types and device integration drm/xe/xe_sysctrl: Add System Controller mailbox register definitions drm/xe/xe_sysctrl: Add ABI and mailbox interface headers drm/xe/xe_sysctrl: Add System Controller initialization support drm/xe/xe_sysctrl: Add System Controller mailbox communication support drm/xe/xe_sysctrl: Add System Controller power management support drm/xe/xe_pci: Enable System Controller support on CRI platform
drivers/gpu/drm/xe/Makefile | 2 + drivers/gpu/drm/xe/abi/xe_sysctrl_abi.h | 65 +++ drivers/gpu/drm/xe/regs/xe_sysctrl_regs.h | 36 ++ drivers/gpu/drm/xe/xe_device.c | 5 + drivers/gpu/drm/xe/xe_device_types.h | 6 + drivers/gpu/drm/xe/xe_pci.c | 2 + drivers/gpu/drm/xe/xe_pci_types.h | 1 + drivers/gpu/drm/xe/xe_pm.c | 6 + drivers/gpu/drm/xe/xe_sysctrl.c | 106 +++++ drivers/gpu/drm/xe/xe_sysctrl.h | 22 ++ drivers/gpu/drm/xe/xe_sysctrl_mailbox.c | 369 ++++++++++++++++++ drivers/gpu/drm/xe/xe_sysctrl_mailbox.h | 31 ++ drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h | 40 ++ drivers/gpu/drm/xe/xe_sysctrl_types.h | 32 ++ 14 files changed, 723 insertions(+) create mode 100644 drivers/gpu/drm/xe/abi/xe_sysctrl_abi.h create mode 100644 drivers/gpu/drm/xe/regs/xe_sysctrl_regs.h create mode 100644 drivers/gpu/drm/xe/xe_sysctrl.c create mode 100644 drivers/gpu/drm/xe/xe_sysctrl.h create mode 100644 drivers/gpu/drm/xe/xe_sysctrl_mailbox.c create mode 100644 drivers/gpu/drm/xe/xe_sysctrl_mailbox.h create mode 100644 drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h create mode 100644 drivers/gpu/drm/xe/xe_sysctrl_types.h
Signature · 1 line
2.43.0
PATCH v12 1/7 drm/xe/xe_sysctrl: Add System Controller types and device integration
From: Anoop Vijay <[email protected]>
Add foundational type definitions for System Controller (sysctrl) support and integrate them into the xe_device structure. Introduce a capability flag in device descriptor and runtime information to record sysctrl presence on supported platforms.
System Controller is a separate firmware-managed entity responsible for selected platform-level control and coordination tasks on Intel Xe3p discrete GPU platforms. The driver communicates with it via a mailbox interface for delegated operations.
This commit introduces core data structures required for sysctrl support, including MMIO region definitions, a command mutex, and state tracking required for mailbox communication.
No functional changes. This patch provides preparatory infrastructure for System Controller support.
---
v4: (Matt, Mike)
- Add domain-specific MMIO accessor
- Change phase_bit type from u32 to bool
v6: (Matt)
- Add mailbox protocol constants
v8: (Matt, Michal)
- Reordered patches for logical flow
v9: (Matt)
- Extended commit message to explain System Controller and purpose of has_sysctrl flag
--- drivers/gpu/drm/xe/xe_device_types.h | 6 +++++ drivers/gpu/drm/xe/xe_pci_types.h | 1 + drivers/gpu/drm/xe/xe_sysctrl_types.h | 32 +++++++++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 drivers/gpu/drm/xe/xe_sysctrl_types.h
drivers/gpu/drm/xe/xe_device_types.h +6 -0
@@ -27,6 +27,7 @@#include "xe_sriov_vf_ccs_types.h" #include "xe_step_types.h" #include "xe_survivability_mode_types.h" +#include "xe_sysctrl_types.h" #include "xe_tile_types.h" #include "xe_validation.h"
@@ -196,6 +197,8 @@ struct xe_device { u8 has_soc_remapper_telem:1;/** @info.has_sriov: Supports SR-IOV */ u8 has_sriov:1; +/** @info.has_sysctrl: Supports System Controller */ + u8 has_sysctrl:1;/** @info.has_usm: Device has unified shared memory support */ u8 has_usm:1;/** @info.has_64bit_timestamp: Device supports 64-bit timestamps */
@@ -508,6 +511,9 @@ struct xe_device {/** @i2c: I2C host controller */ struct xe_i2c *i2c; +/** @sc: System Controller */ +struct xe_sysctrl sc; +/** @atomic_svm_timeslice_ms: Atomic SVM fault timeslice MS */ u32 atomic_svm_timeslice_ms;
drivers/gpu/drm/xe/xe_pci_types.h +1 -0
@@ -57,6 +57,7 @@ struct xe_device_desc { u8 has_soc_remapper_sysctrl:1; u8 has_soc_remapper_telem:1; u8 has_sriov:1; + u8 has_sysctrl:1; u8 needs_scratch:1; u8 skip_guc_pc:1; u8 skip_mtcfg:1;
drivers/gpu/drm/xe/xe_sysctrl_types.h new file +32 -0
@@ -0,0 +1,32 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2026 Intel Corporation +*/ + +#ifndef _XE_SYSCTRL_TYPES_H_ +#define _XE_SYSCTRL_TYPES_H_ + +#include <linux/mutex.h> +#include <linux/types.h> + +struct xe_mmio ; + +/** +* struct xe_sysctrl - System Controller driver context +* +* This structure maintains the runtime state for System Controller +* communication. All fields are initialized during xe_sysctrl_init() +* and protected appropriately for concurrent access. +*/ +struct xe_sysctrl { +/** @mmio: MMIO region for system control registers */ +struct xe_mmio *mmio; + +/** @cmd_lock: Mutex protecting mailbox command operations */ +struct mutex cmd_lock; + +/** @phase_bit: Message boundary phase toggle bit (0 or 1) */ +bool phase_bit; +}; + +#endif
Signature · 1 line
2.43.0
PATCH v12 2/7 drm/xe/xe_sysctrl: Add System Controller mailbox register definitions
In reply to Anoop, VijayFrom: Anoop Vijay <[email protected]>
Add register definitions for System Controller mailbox interface, including control, data, and protocol-related fields, along with base address and BAR configuration required by the driver.
No functional changes. This patch introduces register definitions only.
---
v4: (Matt)
- Use lowercase hex values
- Align macro definitions to column 49
- Change to relative register offsets
v6: (Matt)
- Move protocol constants to xe_sysctrl_mailbox_types.h
- Add SYSCTRL_MB_CTRL_MKHI_CMD helper macro
v9: (Umesh, Badal)
- Normalized hexadecimal literal casing
- Renamed MKHI to SCHI (System Controller Host Interface)
v10: (Riana, Badal)
- Removed SCHI terminology and aligned to sysctrl mailbox naming
--- drivers/gpu/drm/xe/regs/xe_sysctrl_regs.h | 36 +++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 drivers/gpu/drm/xe/regs/xe_sysctrl_regs.h
drivers/gpu/drm/xe/regs/xe_sysctrl_regs.h new file +36 -0
@@ -0,0 +1,36 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2026 Intel Corporation +*/ + +#ifndef _XE_SYSCTRL_REGS_H_ +#define _XE_SYSCTRL_REGS_H_ + +#include "xe_regs.h" + +#define SYSCTRL_BASE_OFFSET 0xdb000 +#define SYSCTRL_BASE (SOC_BASE + SYSCTRL_BASE_OFFSET) +#define SYSCTRL_MAILBOX_INDEX 0x03 +#define SYSCTRL_BAR_LENGTH 0x1000 + +#define SYSCTRL_MB_CTRL XE_REG(0x10) +#define SYSCTRL_MB_CTRL_RUN_BUSY REG_BIT(31) +#define SYSCTRL_MB_CTRL_IRQ REG_BIT(30) +#define SYSCTRL_MB_CTRL_RUN_BUSY_OUT REG_BIT(29) +#define SYSCTRL_MB_CTRL_PARAM3_MASK REG_GENMASK(28, 24) +#define SYSCTRL_MB_CTRL_PARAM2_MASK REG_GENMASK(23, 16) +#define SYSCTRL_MB_CTRL_PARAM1_MASK REG_GENMASK(15, 8) +#define SYSCTRL_MB_CTRL_COMMAND_MASK REG_GENMASK(7, 0) +#define SYSCTRL_MB_CTRL_CMD REG_FIELD_PREP(SYSCTRL_MB_CTRL_COMMAND_MASK, 5) + +#define SYSCTRL_MB_DATA0 XE_REG(0x14) +#define SYSCTRL_MB_DATA1 XE_REG(0x18) +#define SYSCTRL_MB_DATA2 XE_REG(0x1c) +#define SYSCTRL_MB_DATA3 XE_REG(0x20) + +#define SYSCTRL_FRAME_PHASE REG_BIT(24) +#define SYSCTRL_FRAME_CURRENT_MASK REG_GENMASK(21, 16) +#define SYSCTRL_FRAME_TOTAL_MASK REG_GENMASK(13, 8) +#define SYSCTRL_FRAME_COMMAND_MASK REG_GENMASK(7, 0) + +#endif
Signature · 1 line
2.43.0
PATCH v12 3/7 drm/xe/xe_sysctrl: Add ABI and mailbox interface headers
In reply to Anoop, VijayFrom: Anoop Vijay <[email protected]>
Add ABI definitions, mailbox API, and command data structures required for System Controller communication.
No functional changes. This patch introduces definitions for mailbox communication.
---
v8: (Matt, Michal)
- Reordered patches for logical flow
- Moved ABI definitions to dedicated header
v9: (Badal)
- Renamed MKHI to SCHI (System Controller Host Interface)
v10: (Riana, Badal)
- Removed SCHI terminology and aligned to sysctrl mailbox naming
- Added System Controller ABI kernel-doc
- Converted xe_sysctrl_app_msg_hdr data field to u32
- Fixed macro alignment
v11: (Umesh)
- Improve struct member spacing for readability
- Updated System Controller ABI doc
--- drivers/gpu/drm/xe/abi/xe_sysctrl_abi.h | 65 +++++++++++++++++++ drivers/gpu/drm/xe/xe_sysctrl_mailbox.h | 31 +++++++++ drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h | 40 ++++++++++++ 3 files changed, 136 insertions(+) create mode 100644 drivers/gpu/drm/xe/abi/xe_sysctrl_abi.h create mode 100644 drivers/gpu/drm/xe/xe_sysctrl_mailbox.h create mode 100644 drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h
drivers/gpu/drm/xe/abi/xe_sysctrl_abi.h new file +65 -0
@@ -0,0 +1,65 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2026 Intel Corporation +*/ + +#ifndef _XE_SYSCTRL_ABI_H_ +#define _XE_SYSCTRL_ABI_H_ + +#include <linux/types.h> + +/** +* DOC: System Controller ABI +* +* This header defines the Application Binary Interface (ABI) used by +* drm/xe to communicate with System Controller firmware on Intel Xe3p +* discrete GPU platforms. +* +* System Controller (sysctrl) is a firmware-managed entity on Intel +* dGPUs responsible for certain low-level platform management +* functions. +* +* Communication protocol: +* +* Communication uses a mailbox interface with messages composed of: +* +* - Application message header (struct xe_sysctrl_app_msg_hdr) +* containing group_id, command, and version +* - Variable-length, command-specific payload +* +* Message header format: +* +* The 32-bit application message header is packed as: +* +* - Bits [7:0] : Group ID identifying command group +* - Bits [15:8] : Command identifier within group +* - Bits [23:16] : Command version for interface compatibility +* - Bits [31:24] : Reserved, must be zero +* +* This header defines firmware ABI message formats and constants shared +* between driver and System Controller firmware. +*/ + +/** +* struct xe_sysctrl_app_msg_hdr - Application layer message header +* @data: 32-bit header data +* +* Header structure for application-level messages. +*/ +struct xe_sysctrl_app_msg_hdr { +u32 data; +} __packed; + +#define SYSCTRL_HDR_GROUP_ID_MASK GENMASK(7, 0) +#define SYSCTRL_HDR_COMMAND_MASK GENMASK(14, 8) +#define SYSCTRL_HDR_COMMAND_MAX 0x7f +#define SYSCTRL_HDR_IS_RESPONSE BIT(15) +#define SYSCTRL_HDR_RESERVED_MASK GENMASK(23, 16) +#define SYSCTRL_HDR_RESULT_MASK GENMASK(31, 24) + +#define APP_HDR_GROUP_ID_MASK GENMASK(7, 0) +#define APP_HDR_COMMAND_MASK GENMASK(15, 8) +#define APP_HDR_VERSION_MASK GENMASK(23, 16) +#define APP_HDR_RESERVED_MASK GENMASK(31, 24) + +#endif
drivers/gpu/drm/xe/xe_sysctrl_mailbox.h new file +31 -0
@@ -0,0 +1,31 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2026 Intel Corporation +*/ + +#ifndef _XE_SYSCTRL_MAILBOX_H_ +#define _XE_SYSCTRL_MAILBOX_H_ + +#include <linux/bitfield.h> +#include <linux/types.h> + +#include "abi/xe_sysctrl_abi.h" + +struct xe_sysctrl ; +struct xe_sysctrl_mailbox_command ; + +#define XE_SYSCTRL_APP_HDR_GROUP_ID (hdr) \ + FIELD_GET(APP_HDR_GROUP_ID_MASK, le32_to_cpu((hdr)->data)) + +#define XE_SYSCTRL_APP_HDR_COMMAND (hdr) \ + FIELD_GET(APP_HDR_COMMAND_MASK, le32_to_cpu((hdr)->data)) + +#define XE_SYSCTRL_APP_HDR_VERSION (hdr) \ + FIELD_GET(APP_HDR_VERSION_MASK, le32_to_cpu((hdr)->data)) + +void xe_sysctrl_mailbox_init (struct xe_sysctrl *sc); +int xe_sysctrl_send_command (struct xe_sysctrl *sc, +struct xe_sysctrl_mailbox_command *cmd, +size_t *rdata_len); + +#endif
drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h new file +40 -0
@@ -0,0 +1,40 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2026 Intel Corporation +*/ + +#ifndef _XE_SYSCTRL_MAILBOX_TYPES_H_ +#define _XE_SYSCTRL_MAILBOX_TYPES_H_ + +#include <linux/types.h> + +#include "abi/xe_sysctrl_abi.h" + +/** +* struct xe_sysctrl_mailbox_command - System Controller mailbox command +*/ +struct xe_sysctrl_mailbox_command { +/** @header: Application message header containing command information */ +struct xe_sysctrl_app_msg_hdr header; + +/** @data_in: Pointer to input payload data (can be NULL if no input data) */ +void *data_in; + +/** @data_in_len: Size of input payload in bytes (0 if no input data) */ +size_t data_in_len; + +/** @data_out: Pointer to output buffer for response data (can be NULL if no response) */ +void *data_out; + +/** @data_out_len: Size of output buffer in bytes (0 if no response expected) */ +size_t data_out_len; +}; + +#define XE_SYSCTRL_MB_FRAME_SIZE 16 +#define XE_SYSCTRL_MB_MAX_FRAMES 64 +#define XE_SYSCTRL_MB_MAX_MESSAGE_SIZE \ + (XE_SYSCTRL_MB_FRAME_SIZE * XE_SYSCTRL_MB_MAX_FRAMES) + +#define XE_SYSCTRL_MB_DEFAULT_TIMEOUT_MS 500 + +#endif
Signature · 1 line
2.43.0
PATCH v12 4/7 drm/xe/xe_sysctrl: Add System Controller initialization support
In reply to Anoop, VijayFrom: Anoop Vijay <[email protected]>
Add initialization and cleanup infrastructure for System Controller subsystem and integrate it into xe device probe path.
During initialization, platform support is checked via has_sysctrl capability flag and the mailbox region is configured through SoC remapper interface.
---
v8: (Matt, Michal, Shuicheng)
- Fixed include order
- Added VF check
- Converted runtime checks to assertions
- Added sc_to_xe() helper
- Fixed kernel-doc syntax
v10: (Riana, Anshuman)
- Updated sysctrl documentation
- Cleaned up commit message
- Fixed mutex lifetime management
--- drivers/gpu/drm/xe/Makefile | 1 + drivers/gpu/drm/xe/xe_device.c | 5 ++ drivers/gpu/drm/xe/xe_sysctrl.c | 82 +++++++++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_sysctrl.h | 21 +++++++++ 4 files changed, 109 insertions(+) create mode 100644 drivers/gpu/drm/xe/xe_sysctrl.c create mode 100644 drivers/gpu/drm/xe/xe_sysctrl.h
drivers/gpu/drm/xe/Makefile +1 -0
@@ -123,6 +123,7 @@ xe-y += xe_bb.o \ xe_step.o \ xe_survivability_mode.o \ xe_sync.o \ + xe_sysctrl.o \ xe_tile.o \ xe_tile_sysfs.o \ xe_tlb_inval.o \
drivers/gpu/drm/xe/xe_device.c +5 -0
@@ -65,6 +65,7 @@#include "xe_survivability_mode.h" #include "xe_sriov.h" #include "xe_svm.h" +#include "xe_sysctrl.h" #include "xe_tile.h" #include "xe_ttm_stolen_mgr.h" #include "xe_ttm_sys_mgr.h"
@@ -985,6 +986,10 @@ int xe_device_probe(struct xe_device *xe)if (err) goto err_unregister_display; + err =xe_sysctrl_init (xe); +if (err) + goto err_unregister_display; + err =xe_device_sysfs_init (xe);if (err) goto err_unregister_display;
drivers/gpu/drm/xe/xe_sysctrl.c new file +82 -0
82 lines not on this page · raw message
drivers/gpu/drm/xe/xe_sysctrl.h new file +21 -0
@@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2026 Intel Corporation +*/ + +#ifndef _XE_SYSCTRL_H_ +#define _XE_SYSCTRL_H_ + +#include <linux/container_of.h> + +#include "xe_device_types.h" +#include "xe_sysctrl_types.h" + +static inline struct xe_device *sc_to_xe (struct xe_sysctrl *sc) +{ + return container_of(sc, struct xe_device, sc); +} + +int xe_sysctrl_init (struct xe_device *xe); + +#endif
Signature · 1 line
2.43.0
Re: [PATCH v12 4/7] drm/xe/xe_sysctrl: Add System Controller initialization support
Quoted 124 lines · Vijay
From: Anoop Vijay <[email protected]>
Add initialization and cleanup infrastructure for System Controller subsystem and integrate it into xe device probe path.
During initialization, platform support is checked via
has_sysctrlcapability flag and the mailbox region is configured through SoC remapper interface.Signed-off-by Anoop Vijay <[email protected]>Reviewed-by Umesh Nerlige Ramappa <[email protected]>---
v8: (Matt, Michal, Shuicheng)
- Fixed include order
- Added VF check
- Converted runtime checks to assertions
- Addedsc_to_xe()helper
- Fixed kernel-doc syntaxv10: (Riana, Anshuman)
- Updated sysctrl documentation
- Cleaned up commit message
- Fixed mutex lifetime management
---drivers/gpu/drm/xe/Makefile | 1 + drivers/gpu/drm/xe/xe_device.c | 5 ++ drivers/gpu/drm/xe/xe_sysctrl.c | 82 +++++++++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_sysctrl.h | 21 +++++++++ 4 files changed, 109 insertions(+)create mode 100644
drivers/gpu/drm/xe/xe_sysctrl.ccreate mode 100644drivers/gpu/drm/xe/xe_sysctrl.hdrivers/gpu/drm/xe/Makefile +1
-0@@ -123,6 +123,7 @@ xe-y += xe_bb.o \ xe_step.o \ xe_survivability_mode.o \ xe_sync.o \ + xe_sysctrl.o \ xe_tile.o \ xe_tile_sysfs.o \ xe_tlb_inval.o \drivers/gpu/drm/xe/xe_device.c +5
-0@@ -65,6 +65,7 @@#include "xe_survivability_mode.h" #include "xe_sriov.h" #include "xe_svm.h" +#include "xe_sysctrl.h" #include "xe_tile.h" #include "xe_ttm_stolen_mgr.h" #include "xe_ttm_sys_mgr.h" @@ -985,6 +986,10 @@ int xe_device_probe(struct xe_device *xe)if (err) goto err_unregister_display; + err =xe_sysctrl_init (xe); +if (err) + goto err_unregister_display; + err =xe_device_sysfs_init (xe);if (err) goto err_unregister_display;drivers/gpu/drm/xe/xe_sysctrl.c new file +51
-0@@ -0,0 +1,82 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright © 2026 Intel Corporation +*/ + +#include <linux/device.h> +#include <linux/mutex.h> + +#include <drm/drm_managed.h> + +#include "regs/xe_sysctrl_regs.h" +#include "xe_assert.h" +#include "xe_device.h" +#include "xe_mmio.h" +#include "xe_printk.h" +#include "xe_soc_remapper.h" +#include "xe_sriov.h" +#include "xe_sysctrl.h" +#include "xe_sysctrl_mailbox.h" +#include "xe_sysctrl_types.h" + +/** +* DOC: System Controller (sysctrl) +* +* System Controller (sysctrl) is a firmware-managed entity on Intel dGPUs +* responsible for selected low-level platform management functions. +* Communication between driver and System Controller is performed +* via a mailbox interface, enabling command and response exchange. +* +* This module provides initialization and support code for interacting +* with System Controller through the mailbox interface. +*/ +static void sysctrl_fini (void *arg) +{ +struct xe_device *xe = arg; + + xe->soc_remapper.set_sysctrl_region (xe,0 ); +} + +/** +* xe_sysctrl_init() - Initialize System Controller subsystem +* @xe: xe device instance +* +* Entry point for System Controller initialization, called from xe_device_probe. +* This function checks platform support and initializes the system controller. +* +* Return: 0 on success, error code on failure +*/ +int xe_sysctrl_init (struct xe_device *xe) +{ +struct xe_tile *tile =xe_device_get_root_tile (xe);
drivers/gpu/drm/xe/xe_sysctrl.c line 61
Quoted 10 lines
drivers/gpu/drm/xe/xe_sysctrl.c new file +10
-0+struct xe_sysctrl *sc = &xe->sc; +int ret; + +if (!xe->info.has_sysctrl) +return 0 ; + +if (IS_SRIOV_VF (xe)) +return 0 ; + +xe_assert (xe, xe->soc_remapper.set_sysctrl_region);
Ashutosh pointed out that this is failing for other platforms that do not support SoC remapper. Let's change this assert back to how it was here - https://patchwork.freedesktop.org/patch/701662/?series=159554&rev=7
if the function pointer is NULL, just error out.
Thanks,
Umesh
Quoted 51 lines
drivers/gpu/drm/xe/xe_sysctrl.c new file +21
-0+ + xe->soc_remapper.set_sysctrl_region (xe,SYSCTRL_MAILBOX_INDEX ); + + ret =devm_add_action_or_reset (xe->drm.dev, sysctrl_fini, xe); +if (ret) +return ret; + + sc->mmio =devm_kzalloc (xe->drm.dev,sizeof (*sc->mmio),GFP_KERNEL ); +if (!sc->mmio) +return -ENOMEM ; + +xe_mmio_init (sc->mmio, tile, tile->mmio.regs, tile->mmio.regs_size); + sc->mmio->adj_offset =SYSCTRL_BASE ; + sc->mmio->adj_limit =U32_MAX ; + + ret =devm_mutex_init (xe->drm.dev, &sc->cmd_lock); +if (ret) +return ret; + +return 0 ; +}drivers/gpu/drm/xe/xe_sysctrl.h new file +21
-0@@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2026 Intel Corporation +*/ + +#ifndef _XE_SYSCTRL_H_ +#define _XE_SYSCTRL_H_ + +#include <linux/container_of.h> + +#include "xe_device_types.h" +#include "xe_sysctrl_types.h" + +static inline struct xe_device *sc_to_xe (struct xe_sysctrl *sc) +{ + return container_of(sc, struct xe_device, sc); +} + +int xe_sysctrl_init (struct xe_device *xe); + +#endif Signature · 1 line
2.43.0
Re: [PATCH v12 4/7] drm/xe/xe_sysctrl: Add System Controller initialization support
Quoted 119 lines · Umesh Nerlige Ramappa
Quoted 118 lines · Vijay
From: Anoop Vijay <[email protected]>
Add initialization and cleanup infrastructure for System Controller subsystem and integrate it into xe device probe path.
During initialization, platform support is checked via
has_sysctrlcapability flag and the mailbox region is configured through SoC remapper interface.Signed-off-by Anoop Vijay <[email protected]>Reviewed-by Umesh Nerlige Ramappa <[email protected]>---
v8: (Matt, Michal, Shuicheng)
- Fixed include order
- Added VF check
- Converted runtime checks to assertions
- Addedsc_to_xe()helper
- Fixed kernel-doc syntaxv10: (Riana, Anshuman)
- Updated sysctrl documentation
- Cleaned up commit message
- Fixed mutex lifetime management
---drivers/gpu/drm/xe/Makefile | 1 + drivers/gpu/drm/xe/xe_device.c | 5 ++ drivers/gpu/drm/xe/xe_sysctrl.c | 82 +++++++++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_sysctrl.h | 21 +++++++++ 4 files changed, 109 insertions(+)create mode 100644
drivers/gpu/drm/xe/xe_sysctrl.ccreate mode 100644drivers/gpu/drm/xe/xe_sysctrl.hdrivers/gpu/drm/xe/Makefile +1
-0@@ -123,6 +123,7 @@ xe-y += xe_bb.o \ xe_step.o \ xe_survivability_mode.o \ xe_sync.o \ + xe_sysctrl.o \ xe_tile.o \ xe_tile_sysfs.o \ xe_tlb_inval.o \drivers/gpu/drm/xe/xe_device.c +5
-0@@ -65,6 +65,7 @@#include "xe_survivability_mode.h" #include "xe_sriov.h" #include "xe_svm.h" +#include "xe_sysctrl.h" #include "xe_tile.h" #include "xe_ttm_stolen_mgr.h" #include "xe_ttm_sys_mgr.h" @@ -985,6 +986,10 @@ int xe_device_probe(struct xe_device *xe)if (err) goto err_unregister_display; + err =xe_sysctrl_init (xe); +if (err) + goto err_unregister_display; + err =xe_device_sysfs_init (xe);if (err) goto err_unregister_display;drivers/gpu/drm/xe/xe_sysctrl.c new file +45
-0@@ -0,0 +1,82 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright © 2026 Intel Corporation +*/ + +#include <linux/device.h> +#include <linux/mutex.h> + +#include <drm/drm_managed.h> + +#include "regs/xe_sysctrl_regs.h" +#include "xe_assert.h" +#include "xe_device.h" +#include "xe_mmio.h" +#include "xe_printk.h" +#include "xe_soc_remapper.h" +#include "xe_sriov.h" +#include "xe_sysctrl.h" +#include "xe_sysctrl_mailbox.h" +#include "xe_sysctrl_types.h" + +/** +* DOC: System Controller (sysctrl) +* +* System Controller (sysctrl) is a firmware-managed entity on Intel dGPUs +* responsible for selected low-level platform management functions. +* Communication between driver and System Controller is performed +* via a mailbox interface, enabling command and response exchange. +* +* This module provides initialization and support code for interacting +* with System Controller through the mailbox interface. +*/ +static void sysctrl_fini (void *arg) +{ +struct xe_device *xe = arg; + + xe->soc_remapper.set_sysctrl_region (xe,0 ); +} + +/** +* xe_sysctrl_init() - Initialize System Controller subsystem +* @xe: xe device instance +* +* Entry point for System Controller initialization, called from xe_device_probe. +* This function checks platform support and initializes the system controller.
Quoted 8 lines
drivers/gpu/drm/xe/xe_sysctrl.c line 53
Quoted 8 lines
drivers/gpu/drm/xe/xe_sysctrl.c new file +8
-0+* +* Return: 0 on success, error code on failure +*/ +int xe_sysctrl_init (struct xe_device *xe) +{ +struct xe_tile *tile =xe_device_get_root_tile (xe); +struct xe_sysctrl *sc = &xe->sc; +int ret;
Instead of the earlier code, let's just do this.
if (!xe->info.has_soc_remapper_sysctrl) return 0;
This will make sure probe works fine on platforms where soc remapper sysctrl is not present.
Quoted 8 lines
drivers/gpu/drm/xe/xe_sysctrl.c line 61
Quoted 8 lines
drivers/gpu/drm/xe/xe_sysctrl.c new file +8
-0+ +if (!xe->info.has_sysctrl) +return 0 ; + +if (IS_SRIOV_VF (xe)) +return 0 ; + +xe_assert (xe, xe->soc_remapper.set_sysctrl_region);
Delete the assert altogether here.
Umesh
Quoted 60 lines
Ashutosh pointed out that this is failing for other platforms that do not support SoC remapper. Let's change this assert back to how it was here - https://patchwork.freedesktop.org/patch/701662/?series=159554&rev=7
if the function pointer is NULL, just error out.
Thanks,
UmeshQuoted 51 lines
drivers/gpu/drm/xe/xe_sysctrl.c new file +21
-0+ + xe->soc_remapper.set_sysctrl_region (xe,SYSCTRL_MAILBOX_INDEX ); + + ret =devm_add_action_or_reset (xe->drm.dev, sysctrl_fini, xe); +if (ret) +return ret; + + sc->mmio =devm_kzalloc (xe->drm.dev,sizeof (*sc->mmio),GFP_KERNEL ); +if (!sc->mmio) +return -ENOMEM ; + +xe_mmio_init (sc->mmio, tile, tile->mmio.regs, tile->mmio.regs_size); + sc->mmio->adj_offset =SYSCTRL_BASE ; + sc->mmio->adj_limit =U32_MAX ; + + ret =devm_mutex_init (xe->drm.dev, &sc->cmd_lock); +if (ret) +return ret; + +return 0 ; +}drivers/gpu/drm/xe/xe_sysctrl.h new file +21
-0@@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2026 Intel Corporation +*/ + +#ifndef _XE_SYSCTRL_H_ +#define _XE_SYSCTRL_H_ + +#include <linux/container_of.h> + +#include "xe_device_types.h" +#include "xe_sysctrl_types.h" + +static inline struct xe_device *sc_to_xe (struct xe_sysctrl *sc) +{ + return container_of(sc, struct xe_device, sc); +} + +int xe_sysctrl_init (struct xe_device *xe); + +#endif Signature · 1 line
2.43.0
Re: [PATCH v12 4/7] drm/xe/xe_sysctrl: Add System Controller initialization support
In reply to Anoop, VijayQuoted 122 lines · Vijay
From: Anoop Vijay <[email protected]>
Add initialization and cleanup infrastructure for System Controller subsystem and integrate it into xe device probe path.
During initialization, platform support is checked via
has_sysctrlcapability flag and the mailbox region is configured through SoC remapper interface.Signed-off-by Anoop Vijay <[email protected]>Reviewed-by Umesh Nerlige Ramappa <[email protected]>---
v8: (Matt, Michal, Shuicheng)
- Fixed include order
- Added VF check
- Converted runtime checks to assertions
- Addedsc_to_xe()helper
- Fixed kernel-doc syntaxv10: (Riana, Anshuman)
- Updated sysctrl documentation
- Cleaned up commit message
- Fixed mutex lifetime management
---drivers/gpu/drm/xe/Makefile | 1 + drivers/gpu/drm/xe/xe_device.c | 5 ++ drivers/gpu/drm/xe/xe_sysctrl.c | 82 +++++++++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_sysctrl.h | 21 +++++++++ 4 files changed, 109 insertions(+)create mode 100644
drivers/gpu/drm/xe/xe_sysctrl.ccreate mode 100644drivers/gpu/drm/xe/xe_sysctrl.hdrivers/gpu/drm/xe/Makefile +1
-0@@ -123,6 +123,7 @@ xe-y += xe_bb.o \ xe_step.o \ xe_survivability_mode.o \ xe_sync.o \ + xe_sysctrl.o \ xe_tile.o \ xe_tile_sysfs.o \ xe_tlb_inval.o \drivers/gpu/drm/xe/xe_device.c +5
-0@@ -65,6 +65,7 @@#include "xe_survivability_mode.h" #include "xe_sriov.h" #include "xe_svm.h" +#include "xe_sysctrl.h" #include "xe_tile.h" #include "xe_ttm_stolen_mgr.h" #include "xe_ttm_sys_mgr.h" @@ -985,6 +986,10 @@ int xe_device_probe(struct xe_device *xe)if (err) goto err_unregister_display; + err =xe_sysctrl_init (xe); +if (err) + goto err_unregister_display; + err =xe_device_sysfs_init (xe);if (err) goto err_unregister_display;drivers/gpu/drm/xe/xe_sysctrl.c new file +49
-0@@ -0,0 +1,82 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright © 2026 Intel Corporation +*/ + +#include <linux/device.h> +#include <linux/mutex.h> + +#include <drm/drm_managed.h> + +#include "regs/xe_sysctrl_regs.h" +#include "xe_assert.h" +#include "xe_device.h" +#include "xe_mmio.h" +#include "xe_printk.h" +#include "xe_soc_remapper.h" +#include "xe_sriov.h" +#include "xe_sysctrl.h" +#include "xe_sysctrl_mailbox.h" +#include "xe_sysctrl_types.h" + +/** +* DOC: System Controller (sysctrl) +* +* System Controller (sysctrl) is a firmware-managed entity on Intel dGPUs +* responsible for selected low-level platform management functions. +* Communication between driver and System Controller is performed +* via a mailbox interface, enabling command and response exchange. +* +* This module provides initialization and support code for interacting +* with System Controller through the mailbox interface. +*/ +static void sysctrl_fini (void *arg) +{ +struct xe_device *xe = arg; + + xe->soc_remapper.set_sysctrl_region (xe,0 ); +} + +/** +* xe_sysctrl_init() - Initialize System Controller subsystem +* @xe: xe device instance +* +* Entry point for System Controller initialization, called from xe_device_probe. +* This function checks platform support and initializes the system controller. +* +* Return: 0 on success, error code on failure +*/ +int xe_sysctrl_init (struct xe_device *xe)
drivers/gpu/drm/xe/xe_sysctrl.c line 59
Quoted 10 lines
drivers/gpu/drm/xe/xe_sysctrl.c new file +10
-0+{ +struct xe_tile *tile =xe_device_get_root_tile (xe); +struct xe_sysctrl *sc = &xe->sc; +int ret; + +if (!xe->info.has_sysctrl) +return 0 ; + +if (IS_SRIOV_VF (xe)) +return 0 ;
If has_sysctrl is set to 0 in xe_info_init for VF, then drop the SRIOV check here.
Thanks,
Umesh
Quoted 53 lines
drivers/gpu/drm/xe/xe_sysctrl.c new file +23
-0+ +xe_assert (xe, xe->soc_remapper.set_sysctrl_region); + + xe->soc_remapper.set_sysctrl_region (xe,SYSCTRL_MAILBOX_INDEX ); + + ret =devm_add_action_or_reset (xe->drm.dev, sysctrl_fini, xe); +if (ret) +return ret; + + sc->mmio =devm_kzalloc (xe->drm.dev,sizeof (*sc->mmio),GFP_KERNEL ); +if (!sc->mmio) +return -ENOMEM ; + +xe_mmio_init (sc->mmio, tile, tile->mmio.regs, tile->mmio.regs_size); + sc->mmio->adj_offset =SYSCTRL_BASE ; + sc->mmio->adj_limit =U32_MAX ; + + ret =devm_mutex_init (xe->drm.dev, &sc->cmd_lock); +if (ret) +return ret; + +return 0 ; +}drivers/gpu/drm/xe/xe_sysctrl.h new file +21
-0@@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2026 Intel Corporation +*/ + +#ifndef _XE_SYSCTRL_H_ +#define _XE_SYSCTRL_H_ + +#include <linux/container_of.h> + +#include "xe_device_types.h" +#include "xe_sysctrl_types.h" + +static inline struct xe_device *sc_to_xe (struct xe_sysctrl *sc) +{ + return container_of(sc, struct xe_device, sc); +} + +int xe_sysctrl_init (struct xe_device *xe); + +#endif Signature · 1 line
2.43.0
PATCH v12 5/7 drm/xe/xe_sysctrl: Add System Controller mailbox communication support
In reply to Anoop, VijayFrom: Anoop Vijay <[email protected]>
Add mailbox communication layer required for interacting with System Controller firmware, enabling command submission and response handling.
This patch implements command/response handling logic, including error and timeout handling.
---
v4: (Matt, Mike)
- Refactor MMIO access to use domain-specific accessor
- Add input validation and buffer overflow protection
- Add bounds checking for multi-frame operations
- Fix potential NULL pointer dereference
v5: (Umesh, Riana)
- Reset phase bit to 0 on error conditions
- Refactor mailbox receive path
- Updated xe_err messages for consistency
v6: (Matt)
- Use SYSCTRL_MB_CTRL_MKHI_CMD macro instead of FIELD_PREP
v8: (Matt, Michal)
- Reordered patches for logical flow
- Static functions renamed with short prefix
- Changed xe_sysctrl_send_command() function parameter from 'xe' to 'sc'
- Added frame length validation and command overflow protection
- Use REG_FIELD_PREP for hardware registers
- Changed error format to %pe
- Removed unnecessary NULL checks and explicit zeros
- Fixed kernel-doc syntax
v9: (Umesh, Badal)
- Renamed MKHI to SCHI (System Controller Host Interface)
- Fixed kernel-doc syntax
v10: (Riana, Badal)
- Removed SCHI terminology and aligned to sysctrl mailbox naming
- Dropped redundant header includes and unused variable initialization
- Updated runtime PM guarding in xe_sysctrl_send_command() to use guard(xe_pm_runtime_noresume)
--- drivers/gpu/drm/xe/Makefile | 1 + drivers/gpu/drm/xe/xe_sysctrl.c | 2 + drivers/gpu/drm/xe/xe_sysctrl_mailbox.c | 369 ++++++++++++++++++++++++ 3 files changed, 372 insertions(+) create mode 100644 drivers/gpu/drm/xe/xe_sysctrl_mailbox.c
drivers/gpu/drm/xe/Makefile +1 -0
@@ -124,6 +124,7 @@ xe-y += xe_bb.o \ xe_survivability_mode.o \ xe_sync.o \ xe_sysctrl.o \ + xe_sysctrl_mailbox.o \ xe_tile.o \ xe_tile_sysfs.o \ xe_tlb_inval.o \
drivers/gpu/drm/xe/xe_sysctrl.c +2 -0
@@ -78,5 +78,7 @@ int xe_sysctrl_init(struct xe_device *xe)if (ret)return ret; +xe_sysctrl_mailbox_init (sc); +return 0 ; }
drivers/gpu/drm/xe/xe_sysctrl_mailbox.c new file +369 -0
369 lines not on this page · raw message
Signature · 1 line
2.43.0
Re: [PATCH v12 5/7] drm/xe/xe_sysctrl: Add System Controller mailbox communication support
Quoted 411 lines · Vijay
From: Anoop Vijay <[email protected]>
Add mailbox communication layer required for interacting with System Controller firmware, enabling command submission and response handling.
This patch implements command/response handling logic, including error and timeout handling.
Signed-off-by Anoop Vijay <[email protected]>Reviewed-by Umesh Nerlige Ramappa <[email protected]>---
v4: (Matt, Mike)
- Refactor MMIO access to use domain-specific accessor
- Add input validation and buffer overflow protection
- Add bounds checking for multi-frame operations
- Fix potential NULL pointer dereferencev5: (Umesh, Riana)
- Reset phase bit to 0 on error conditions
- Refactor mailbox receive path
- Updatedxe_errmessages for consistencyv6: (Matt)
- UseSYSCTRL_MB_CTRL_MKHI_CMDmacro instead ofFIELD_PREPv8: (Matt, Michal)
- Reordered patches for logical flow
- Static functions renamed with short prefix
- Changedxe_sysctrl_send_command()function parameter from 'xe' to 'sc'
- Added frame length validation and command overflow protection
- UseREG_FIELD_PREPfor hardware registers
- Changed error format to %pe
- Removed unnecessary NULL checks and explicit zeros
- Fixed kernel-doc syntaxv9: (Umesh, Badal)
- Renamed MKHI to SCHI (System Controller Host Interface)
- Fixed kernel-doc syntaxv10: (Riana, Badal)
- Removed SCHI terminology and aligned to sysctrl mailbox naming
- Dropped redundant header includes and unused variable initialization
- Updated runtime PM guarding inxe_sysctrl_send_command()to useguard(xe_pm_runtime_noresume)
---drivers/gpu/drm/xe/Makefile | 1 + drivers/gpu/drm/xe/xe_sysctrl.c | 2 + drivers/gpu/drm/xe/xe_sysctrl_mailbox.c | 369 ++++++++++++++++++++++++ 3 files changed, 372 insertions(+)create mode 100644
drivers/gpu/drm/xe/xe_sysctrl_mailbox.cdrivers/gpu/drm/xe/Makefile +1
-0@@ -124,6 +124,7 @@ xe-y += xe_bb.o \ xe_survivability_mode.o \ xe_sync.o \ xe_sysctrl.o \ + xe_sysctrl_mailbox.o \ xe_tile.o \ xe_tile_sysfs.o \ xe_tlb_inval.o \drivers/gpu/drm/xe/xe_sysctrl.c +2
-0@@ -78,5 +78,7 @@ int xe_sysctrl_init(struct xe_device *xe)if (ret)return ret; +xe_sysctrl_mailbox_init (sc); +return 0 ; }drivers/gpu/drm/xe/xe_sysctrl_mailbox.c new file +330
-0@@ -0,0 +1,369 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright © 2026 Intel Corporation +*/ + +#include <linux/bitfield.h> +#include <linux/cleanup.h> +#include <linux/minmax.h> +#include <linux/slab.h> +#include <linux/string.h> + +#include "regs/xe_sysctrl_regs.h" +#include "xe_device.h" +#include "xe_mmio.h" +#include "xe_pm.h" +#include "xe_printk.h" +#include "xe_sysctrl.h" +#include "xe_sysctrl_mailbox.h" +#include "xe_sysctrl_mailbox_types.h" + +struct xe_sysctrl_mailbox_msg_hdr { +__le32 data; +} __packed; + +#define XE_SYSCTRL_HDR_GROUP_ID (hdr) \ + FIELD_GET(SYSCTRL_HDR_GROUP_ID_MASK, le32_to_cpu((hdr)->data)) + +#define XE_SYSCTRL_HDR_COMMAND (hdr) \ + FIELD_GET(SYSCTRL_HDR_COMMAND_MASK, le32_to_cpu((hdr)->data)) + +#define XE_SYSCTRL_HDR_IS_RESPONSE (hdr) \ + FIELD_GET(SYSCTRL_HDR_IS_RESPONSE, le32_to_cpu((hdr)->data)) + +#define XE_SYSCTRL_HDR_RESULT (hdr) \ + FIELD_GET(SYSCTRL_HDR_RESULT_MASK, le32_to_cpu((hdr)->data)) + +static bool sysctrl_wait_bit_clear (struct xe_sysctrl *sc,u32 bit_mask, +unsigned int timeout_ms) +{ +int ret; + + ret =xe_mmio_wait32_not (sc->mmio,SYSCTRL_MB_CTRL , bit_mask, bit_mask, + timeout_ms *1000 ,NULL , false); + +return ret ==0 ; +} + +static bool sysctrl_wait_bit_set (struct xe_sysctrl *sc,u32 bit_mask, +unsigned int timeout_ms) +{ +int ret; + + ret =xe_mmio_wait32 (sc->mmio,SYSCTRL_MB_CTRL , bit_mask, bit_mask, + timeout_ms *1000 ,NULL , false); + +return ret ==0 ; +} + +static int sysctrl_write_frame (struct xe_sysctrl *sc,const void *frame, +size_t len) +{ +static const struct xe_reg regs[] = { +SYSCTRL_MB_DATA0 ,SYSCTRL_MB_DATA1 ,SYSCTRL_MB_DATA2 ,SYSCTRL_MB_DATA3 + }; +struct xe_device *xe =sc_to_xe (sc); +u32 val[XE_SYSCTRL_MB_FRAME_SIZE /sizeof (u32)] = {0 }; +u32 dw =DIV_ROUND_UP (len,sizeof (u32)); +u32 i; + +xe_assert (xe, len >0 && len <=XE_SYSCTRL_MB_FRAME_SIZE ); + +memcpy (val, frame, len); + +for (i =0 ; i < dw; i++) +xe_mmio_write32 (sc->mmio, regs[i], val[i]); + +return 0 ; +} + +static int sysctrl_read_frame (struct xe_sysctrl *sc,void *frame, +size_t len) +{ +static const struct xe_reg regs[] = { +SYSCTRL_MB_DATA0 ,SYSCTRL_MB_DATA1 ,SYSCTRL_MB_DATA2 ,SYSCTRL_MB_DATA3 + }; +struct xe_device *xe =sc_to_xe (sc); +u32 val[XE_SYSCTRL_MB_FRAME_SIZE /sizeof (u32)] = {0 }; +u32 dw =DIV_ROUND_UP (len,sizeof (u32)); +u32 i; + +xe_assert (xe, len >0 && len <=XE_SYSCTRL_MB_FRAME_SIZE ); + +for (i =0 ; i < dw; i++) + val[i] =xe_mmio_read32 (sc->mmio, regs[i]); + +memcpy (frame, val, len); + +return 0 ; +} + +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) +{ +struct xe_sysctrl_mailbox_msg_hdr *hdr; +size_t size; +u8 *buffer; + +xe_assert (xe, command <=SYSCTRL_HDR_COMMAND_MAX ); + +if (data_in_len >XE_SYSCTRL_MB_MAX_MESSAGE_SIZE -sizeof (*hdr)) { +xe_err (xe,"sysctrl: Input data too large: %zu bytes\n" , data_in_len); +return -EINVAL ; + } + + size =sizeof (*hdr) + data_in_len; + + buffer =kmalloc (size,GFP_KERNEL ); +if (!buffer) +return -ENOMEM ; + + hdr = (struct xe_sysctrl_mailbox_msg_hdr *)buffer; + hdr->data =cpu_to_le32 (FIELD_PREP (SYSCTRL_HDR_GROUP_ID_MASK , group_id) | +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; + +return 0 ; +} + +static int sysctrl_send_frames (struct xe_sysctrl *sc, +const u8 *mbox_cmd, +size_t cmd_size,unsigned int timeout_ms) +{ +struct xe_device *xe =sc_to_xe (sc); +u32 ctrl_reg, total_frames, frame; +size_t bytes_sent, frame_size; + + total_frames =DIV_ROUND_UP (cmd_size,XE_SYSCTRL_MB_FRAME_SIZE ); + +if (!sysctrl_wait_bit_clear (sc,SYSCTRL_MB_CTRL_RUN_BUSY , timeout_ms)) { +xe_err (xe,"sysctrl: Mailbox busy\n" ); +return -EBUSY ; + } + + sc->phase_bit ^=1 ; + bytes_sent =0 ; + +for (frame =0 ; frame < total_frames; frame++) { + frame_size =min_t (size_t, cmd_size - bytes_sent,XE_SYSCTRL_MB_FRAME_SIZE ); + +if (sysctrl_write_frame (sc, mbox_cmd + bytes_sent, frame_size)) { +xe_err (xe,"sysctrl: Failed to write frame %u\n" , frame); + sc->phase_bit =0 ; +return -EIO ; + } + + ctrl_reg =SYSCTRL_MB_CTRL_RUN_BUSY | +REG_FIELD_PREP (SYSCTRL_FRAME_CURRENT_MASK , frame) | +REG_FIELD_PREP (SYSCTRL_FRAME_TOTAL_MASK , total_frames -1 ) | +SYSCTRL_MB_CTRL_CMD | + (sc->phase_bit ?SYSCTRL_FRAME_PHASE :0 ); + +xe_mmio_write32 (sc->mmio,SYSCTRL_MB_CTRL , ctrl_reg); + +if (!sysctrl_wait_bit_clear (sc,SYSCTRL_MB_CTRL_RUN_BUSY , timeout_ms)) { +xe_err (xe,"sysctrl: Frame %u acknowledgment timeout\n" , frame); + sc->phase_bit =0 ; +return -ETIMEDOUT ; + } + + bytes_sent += frame_size; + } + +return 0 ; +} + +static int sysctrl_process_frame (struct xe_sysctrl *sc,void *out, +size_t frame_size,unsigned int timeout_ms, +bool *done) +{ +u32 curr_frame, total_frames, ctrl_reg; +struct xe_device *xe =sc_to_xe (sc); +int ret; + +if (!sysctrl_wait_bit_set (sc,SYSCTRL_MB_CTRL_RUN_BUSY_OUT , timeout_ms)) { +xe_err (xe,"sysctrl: Response frame timeout\n" ); +return -ETIMEDOUT ; + } + + ctrl_reg =xe_mmio_read32 (sc->mmio,SYSCTRL_MB_CTRL ); + total_frames =FIELD_GET (SYSCTRL_FRAME_TOTAL_MASK , ctrl_reg); + curr_frame =FIELD_GET (SYSCTRL_FRAME_CURRENT_MASK , ctrl_reg); + + ret =sysctrl_read_frame (sc, out, frame_size); +if (ret) +return ret; + +sysctrl_clear_response (sc); + +if (curr_frame == total_frames) + *done = true; + +return 0 ; +} + +static int sysctrl_receive_frames (struct xe_sysctrl *sc, +const struct xe_sysctrl_mailbox_msg_hdr *req, +void *data_out,size_t data_out_len, +size_t *rdata_len,unsigned int timeout_ms) +{ +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); +size_t frame_size; +bool done = false; +int ret =0 ; +u8 *out; + +if (!buffer) +return -ENOMEM ; + + out = buffer; +while (!done && remain) { + frame_size =min_t (size_t, remain,XE_SYSCTRL_MB_FRAME_SIZE ); + + ret =sysctrl_process_frame (sc, out, frame_size, timeout_ms, + &done); +if (ret) +return ret; + + remain -= frame_size; + out += frame_size; + } + + hdr = (struct xe_sysctrl_mailbox_msg_hdr *)buffer; + +if (!XE_SYSCTRL_HDR_IS_RESPONSE (hdr) || +XE_SYSCTRL_HDR_GROUP_ID (hdr) !=XE_SYSCTRL_HDR_GROUP_ID (req) || +XE_SYSCTRL_HDR_COMMAND (hdr) !=XE_SYSCTRL_HDR_COMMAND (req)) { +xe_err (xe,"sysctrl: Response header mismatch\n" ); +return -EPROTO ; + } + +if (XE_SYSCTRL_HDR_RESULT (hdr) !=0 ) { +xe_err (xe,"sysctrl: Firmware error: 0x%02lx\n" , +XE_SYSCTRL_HDR_RESULT (hdr)); +return -EIO ; + } + +memcpy (data_out, hdr +1 , data_out_len); + *rdata_len = out - buffer -sizeof (*hdr); + +return 0 ; +} + +static int sysctrl_send_command (struct xe_sysctrl *sc, +const u8 *mbox_cmd,size_t cmd_size, +void *data_out,size_t data_out_len, +size_t *rdata_len,unsigned int timeout_ms) +{ +const struct xe_sysctrl_mailbox_msg_hdr *hdr; +size_t received; +int ret; + + ret =sysctrl_send_frames (sc, mbox_cmd, cmd_size, timeout_ms); +if (ret) +return ret; + +if (!data_out || !rdata_len) +return 0 ; + + hdr = (const struct xe_sysctrl_mailbox_msg_hdr *)mbox_cmd; + + ret =sysctrl_receive_frames (sc, hdr, data_out, data_out_len, + &received, timeout_ms); +if (ret) +return ret; + + *rdata_len = received; + +return 0 ; +} + +/** +* xe_sysctrl_mailbox_init - Initialize System Controller mailbox interface +* @sc: System controller structure +* +* Initialize system controller mailbox interface for communication. +*/ +void xe_sysctrl_mailbox_init (struct xe_sysctrl *sc) +{ +u32 ctrl_reg; + + ctrl_reg =xe_mmio_read32 (sc->mmio,SYSCTRL_MB_CTRL ); + sc->phase_bit = (ctrl_reg &SYSCTRL_FRAME_PHASE ) ?1 :0 ; +} + +/** +* xe_sysctrl_send_command() - Send mailbox command to System Controller +* @sc: System Controller instance +* @cmd: Command descriptor containing request header and payload buffers +* @rdata_len: Pointer to store actual response data length +* +* Sends a mailbox command to System Controller firmware using +* System Controller mailbox and waits for a response. +* +* Request payload is provided via @cmd->data_in and @cmd->data_in_len. +* If a response is expected, @cmd->data_out must point to a buffer of +* size @cmd->data_out_len supplied by caller. +* +* On success, @rdata_len is updated with number of valid response bytes +* returned by firmware, bounded by @cmd->data_out_len. +* +* Return: 0 on success, or negative errno on failure. +*/ +int xe_sysctrl_send_command (struct xe_sysctrl *sc, +struct xe_sysctrl_mailbox_command *cmd, +size_t *rdata_len)
drivers/gpu/drm/xe/xe_sysctrl_mailbox.c line 340
Quoted 10 lines
drivers/gpu/drm/xe/xe_sysctrl_mailbox.c new file +10
-0+{ +struct xe_device *xe =sc_to_xe (sc); +u8 group_id, command_code; +u8 *mbox_cmd =NULL ; +size_t cmd_size =0 ; +int ret; + +guard (xe_pm_runtime_noresume)(xe); + +xe_assert (xe, xe->info.has_sysctrl);
I would return an error to the caller if has_sysctrl is 0. The assert will just issue a warn and continue, but the rest of the code is not applicable if you have no sysctrl.
if (!xe->info.has_sysctrl)
return -ENODEV;
Umesh
Quoted 32 lines
drivers/gpu/drm/xe/xe_sysctrl_mailbox.c new file +29
-0+xe_assert (xe, cmd->data_in || cmd->data_out); +xe_assert (xe, !cmd->data_in || cmd->data_in_len); +xe_assert (xe, !cmd->data_out || cmd->data_out_len); + + group_id =XE_SYSCTRL_APP_HDR_GROUP_ID (&cmd->header); + command_code =XE_SYSCTRL_APP_HDR_COMMAND (&cmd->header); + +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_err (xe,"sysctrl: Failed to prepare command: %pe\n" ,ERR_PTR (ret)); +return ret; + } + +guard (mutex)(&sc->cmd_lock); + + ret =sysctrl_send_command (sc, mbox_cmd, cmd_size, + cmd->data_out, cmd->data_out_len, rdata_len, +XE_SYSCTRL_MB_DEFAULT_TIMEOUT_MS ); +if (ret) +xe_err (xe,"sysctrl: Mailbox command failed: %pe\n" ,ERR_PTR (ret)); + +kfree (mbox_cmd); + +return ret; +}Signature · 1 line
2.43.0
PATCH v12 6/7 drm/xe/xe_sysctrl: Add System Controller power management support
In reply to Anoop, VijayFrom: Anoop Vijay <[email protected]>
Add resume handling for System Controller to support system (S3/S4) and runtime power management transitions.
On resume, restore SoC remapper configuration and mailbox interface to re‑establish communication with firmware.
---
v10: (Riana, Umesh)
- Added sysctrl suspend/resume handling
v11: (Badal)
- Remove explicit SoC remapper disable on suspend
v12: (Badal)
- Drop empty sysctrl suspend handler
--- drivers/gpu/drm/xe/xe_pm.c | 6 ++++++ drivers/gpu/drm/xe/xe_sysctrl.c | 22 ++++++++++++++++++++++ drivers/gpu/drm/xe/xe_sysctrl.h | 1 + 3 files changed, 29 insertions(+)
drivers/gpu/drm/xe/xe_pm.c +6 -0
@@ -26,6 +26,7 @@#include "xe_pcode.h" #include "xe_pxp.h" #include "xe_sriov_vf_ccs.h" +#include "xe_sysctrl.h" #include "xe_trace.h" #include "xe_vm.h" #include "xe_wa.h"
@@ -259,6 +260,8 @@ int xe_pm_resume(struct xe_device *xe)xe_i2c_pm_resume (xe, true); +xe_sysctrl_pm_resume (xe); +xe_irq_resume (xe);for_each_gt (gt, xe, id) {
@@ -670,6 +673,9 @@ 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); +xe_irq_resume (xe);for_each_gt (gt, xe, id) {
drivers/gpu/drm/xe/xe_sysctrl.c +22 -0
@@ -82,3 +82,25 @@ int xe_sysctrl_init(struct xe_device *xe)return 0 ; } + +/** +* 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 and reinitializes mailbox interface. +*/ +void xe_sysctrl_pm_resume (struct xe_device *xe) +{ +struct xe_sysctrl *sc = &xe->sc; + +if (!xe->info.has_sysctrl) +return ; + +if (IS_SRIOV_VF (xe)) +return ; + + xe->soc_remapper.set_sysctrl_region (xe,SYSCTRL_MAILBOX_INDEX ); + +xe_sysctrl_mailbox_init (sc); +}
drivers/gpu/drm/xe/xe_sysctrl.h +1 -0
@@ -17,5 +17,6 @@ static inline struct xe_device *sc_to_xe(struct xe_sysctrl *sc) }int xe_sysctrl_init (struct xe_device *xe); +void xe_sysctrl_pm_resume (struct xe_device *xe);#endif
Signature · 1 line
2.43.0
Re: [PATCH v12 6/7] drm/xe/xe_sysctrl: Add System Controller power management support
Quoted 91 lines · Vijay
From: Anoop Vijay <[email protected]>
Add resume handling for System Controller to support system (S3/S4) and runtime power management transitions.
On resume, restore SoC remapper configuration and mailbox interface to re‑establish communication with firmware.
Signed-off-by Anoop Vijay <[email protected]>Reviewed-by Umesh Nerlige Ramappa <[email protected]>---
v10: (Riana, Umesh)
- Added sysctrl suspend/resume handlingv11: (Badal)
- Remove explicit SoC remapper disable on suspendv12: (Badal)
- Drop empty sysctrl suspend handler--- drivers/gpu/drm/xe/xe_pm.c | 6 ++++++ drivers/gpu/drm/xe/xe_sysctrl.c | 22 ++++++++++++++++++++++ drivers/gpu/drm/xe/xe_sysctrl.h | 1 + 3 files changed, 29 insertions(+)drivers/gpu/drm/xe/xe_pm.c +6
-0@@ -26,6 +26,7 @@#include "xe_pcode.h" #include "xe_pxp.h" #include "xe_sriov_vf_ccs.h" +#include "xe_sysctrl.h" #include "xe_trace.h" #include "xe_vm.h" #include "xe_wa.h" @@ -259,6 +260,8 @@ int xe_pm_resume(struct xe_device *xe)xe_i2c_pm_resume (xe, true); +xe_sysctrl_pm_resume (xe); +xe_irq_resume (xe);for_each_gt (gt, xe, id) {@@ -670,6 +673,9 @@ 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); +xe_irq_resume (xe);for_each_gt (gt, xe, id) {drivers/gpu/drm/xe/xe_sysctrl.c +22
-0@@ -82,3 +82,25 @@ int xe_sysctrl_init(struct xe_device *xe)return 0 ; } + +/** +* 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 and reinitializes mailbox interface. +*/ +void xe_sysctrl_pm_resume (struct xe_device *xe) +{ +struct xe_sysctrl *sc = &xe->sc; + +if (!xe->info.has_sysctrl) +return ; + +if (IS_SRIOV_VF (xe)) +return ; + + xe->soc_remapper.set_sysctrl_region (xe,SYSCTRL_MAILBOX_INDEX ); + +xe_sysctrl_mailbox_init (sc); +}drivers/gpu/drm/xe/xe_sysctrl.h +0
-0
drivers/gpu/drm/xe/xe_sysctrl.h static inline struct xe_device *sc_to_xe(struct xe_sysctrl *sc) · line 20
Quoted 4 lines
drivers/gpu/drm/xe/xe_sysctrl.h +1
-0@@ -17,5 +17,6 @@ static inline struct xe_device *sc_to_xe(struct xe_sysctrl *sc) }int xe_sysctrl_init (struct xe_device *xe); +void xe_sysctrl_pm_resume (struct xe_device *xe);
Looks good to me.
Quoted 2 lines
drivers/gpu/drm/xe/xe_sysctrl.h +0
-0#endif
Re: [PATCH v12 6/7] drm/xe/xe_sysctrl: Add System Controller power management support
In reply to Anoop, VijayQuoted 71 lines · Vijay
From: Anoop Vijay <[email protected]>
Add resume handling for System Controller to support system (S3/S4) and runtime power management transitions.
On resume, restore SoC remapper configuration and mailbox interface to re‑establish communication with firmware.
Signed-off-by Anoop Vijay <[email protected]>Reviewed-by Umesh Nerlige Ramappa <[email protected]>---
v10: (Riana, Umesh)
- Added sysctrl suspend/resume handlingv11: (Badal)
- Remove explicit SoC remapper disable on suspendv12: (Badal)
- Drop empty sysctrl suspend handler
---drivers/gpu/drm/xe/xe_pm.c | 6 ++++++ drivers/gpu/drm/xe/xe_sysctrl.c | 22 ++++++++++++++++++++++ drivers/gpu/drm/xe/xe_sysctrl.h | 1 + 3 files changed, 29 insertions(+)drivers/gpu/drm/xe/xe_pm.c +6
-0@@ -26,6 +26,7 @@#include "xe_pcode.h" #include "xe_pxp.h" #include "xe_sriov_vf_ccs.h" +#include "xe_sysctrl.h" #include "xe_trace.h" #include "xe_vm.h" #include "xe_wa.h" @@ -259,6 +260,8 @@ int xe_pm_resume(struct xe_device *xe)xe_i2c_pm_resume (xe, true); +xe_sysctrl_pm_resume (xe); +xe_irq_resume (xe);for_each_gt (gt, xe, id) {@@ -670,6 +673,9 @@ 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); +xe_irq_resume (xe);for_each_gt (gt, xe, id) {drivers/gpu/drm/xe/xe_sysctrl.c +7
-0@@ -82,3 +82,25 @@ int xe_sysctrl_init(struct xe_device *xe)return 0 ; } + +/** +* 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 and reinitializes mailbox interface.
drivers/gpu/drm/xe/xe_sysctrl.c int xe_sysctrl_init(struct xe_device *xe) · line 101
Quoted 10 lines
drivers/gpu/drm/xe/xe_sysctrl.c +10
-0+*/ +void xe_sysctrl_pm_resume (struct xe_device *xe) +{ +struct xe_sysctrl *sc = &xe->sc; + +if (!xe->info.has_sysctrl) +return ; + +if (IS_SRIOV_VF (xe)) +return ;
Same here - drop the VF check once you modify has_sysctrl in xe_info_init().
Umesh
Quoted 19 lines
drivers/gpu/drm/xe/xe_sysctrl.c +5
-0+ + xe->soc_remapper.set_sysctrl_region (xe,SYSCTRL_MAILBOX_INDEX ); + +xe_sysctrl_mailbox_init (sc); +}drivers/gpu/drm/xe/xe_sysctrl.h +1
-0@@ -17,5 +17,6 @@ static inline struct xe_device *sc_to_xe(struct xe_sysctrl *sc) }int xe_sysctrl_init (struct xe_device *xe); +void xe_sysctrl_pm_resume (struct xe_device *xe);#endif Signature · 1 line
2.43.0
PATCH v12 7/7 drm/xe/xe_pci: Enable System Controller support on CRI platform
In reply to Anoop, VijayFrom: Anoop Vijay <[email protected]>
Enable System Controller support on CRI by setting has_sysctrl capability flag in device descriptor and runtime device information.
This allows sysctrl subsystem and mailbox communication to be initialized on CRI platforms.
---
v8: (Matt, Michal)
- Reordered patches for logical flow
v10: (Riana)
- Cleaned up commit message
--- drivers/gpu/drm/xe/xe_pci.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/xe/xe_pci.c +2 -0
@@ -465,6 +465,7 @@ static const struct xe_device_desc cri_desc = { .has_soc_remapper_sysctrl = true, .has_soc_remapper_telem = true, .has_sriov = true, + .has_sysctrl = true, .max_gt_per_tile =2 ,MULTI_LRC_MASK , .require_force_probe = true,
@@ -764,6 +765,7 @@ static int xe_info_init_early(struct xe_device *xe, xe->info.has_soc_remapper_telem = desc->has_soc_remapper_telem; xe->info.has_sriov =xe_configfs_primary_gt_allowed (to_pci_dev (xe->drm.dev)) && desc->has_sriov; + xe->info.has_sysctrl = desc->has_sysctrl; xe->info.skip_guc_pc = desc->skip_guc_pc; xe->info.skip_mtcfg = desc->skip_mtcfg; xe->info.skip_pcode = desc->skip_pcode;
Signature · 1 line
2.43.0
Re: [PATCH v12 7/7] drm/xe/xe_pci: Enable System Controller support on CRI platform
Quoted 33 lines · Vijay
From: Anoop Vijay <[email protected]>
Enable System Controller support on CRI by setting
has_sysctrlcapability flag in device descriptor and runtime device information.This allows sysctrl subsystem and mailbox communication to be initialized on CRI platforms.
Signed-off-by Anoop Vijay <[email protected]>Reviewed-by Umesh Nerlige Ramappa <[email protected]>---
v8: (Matt, Michal)
- Reordered patches for logical flowv10: (Riana)
- Cleaned up commit message
---drivers/gpu/drm/xe/xe_pci.c| 2 ++1 file changed, 2 insertions(+)drivers/gpu/drm/xe/xe_pci.c +1
-0@@ -465,6 +465,7 @@ static const struct xe_device_desc cri_desc = { .has_soc_remapper_sysctrl = true, .has_soc_remapper_telem = true, .has_sriov = true, + .has_sysctrl = true, .max_gt_per_tile =2 ,MULTI_LRC_MASK , .require_force_probe = true,
drivers/gpu/drm/xe/xe_pci.c static int xe_info_init_early(struct xe_device *xe, · line 771
Quoted 7 lines
drivers/gpu/drm/xe/xe_pci.c +1
-0@@ -764,6 +765,7 @@ static int xe_info_init_early(struct xe_device *xe, xe->info.has_soc_remapper_telem = desc->has_soc_remapper_telem; xe->info.has_sriov =xe_configfs_primary_gt_allowed (to_pci_dev (xe->drm.dev)) && desc->has_sriov; + xe->info.has_sysctrl = desc->has_sysctrl; xe->info.skip_guc_pc = desc->skip_guc_pc; xe->info.skip_mtcfg = desc->skip_mtcfg; xe->info.skip_pcode = desc->skip_pcode;
In xe_info_init(), you could disable has_sysctrl if it's a VF.
if (IS_SRIOV_VF(xe))
xe->info.has_sysctrl = 0;
Then you don't need to sprinkle VF checks in sysctrl/mailbox code. Just check for has_sysctrl everywhere.
Note:
Ideally has_soc_remapper_* should also be set to 0 in xe_info_init() if it's a VF. Note that xe_info_init_early() does not yet know about VF/PF.
Regards,
Umesh
Quoted 3 lines
Signature · 1 line
2.43.0
✗ CI.checkpatch: warning for drm/xe/xe_sysctrl: Add system controller component for Xe3p dGPU platforms (rev3)
In reply to Anoop, Vijay== Series Details ==
== Series Details ==
Series: drm/xe/xe_sysctrl: Add system controller component for Xe3p dGPU platforms (rev3)
URL : https://patchwork.freedesktop.org/series/163196/
State : warning
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master 1f57ba1afceae32108bd24770069f764d940a0e4
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 477f89770f00d26826705c0fc6128b7083d77f77
Author: Anoop Vijay <[email protected]> Date: Wed Mar 25 05:00:34 2026 -0700
drm/xe/xe_pci: Enable System Controller support on CRI platform
Enable System Controller support on CRI by setting has_sysctrl capability flag in device descriptor and runtime device information.
This allows sysctrl subsystem and mailbox communication to be initialized on CRI platforms.
+ /mt/dim checkpatch 1fda996928180768f2704b8f8c816f10da433131 drm-intel 82be482d7b8d drm/xe/xe_sysctrl: Add System Controller types and device integration -:26: WARNING:BAD_SIGN_OFF: Duplicate signature
#26:
-:72: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #72:
new file mode 100644
total: 0 errors, 2 warnings, 0 checks, 63 lines checked12dbc5c20b74 drm/xe/xe_sysctrl: Add System Controller mailbox register definitions -:17: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #17:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 36 lines checked2583baca401c drm/xe/xe_sysctrl: Add ABI and mailbox interface headers
-:16: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #16:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 136 lines checkedaca505ae2b72 drm/xe/xe_sysctrl: Add System Controller initialization support -:53: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #53:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 127 lines checkedcb23ce907e3a drm/xe/xe_sysctrl: Add System Controller mailbox communication support -:41: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #41:
new file mode 100644
-:270: WARNING:LINE_SPACING: Missing a blank line after declarations #270: FILE: drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:225:
+ size_t remain = sizeof(*hdr) + data_out_len;
+ u8 *buffer __free(kfree) = kzalloc(remain, GFP_KERNEL);
total: 0 errors, 2 warnings, 0 checks, 383 lines checked c72ae386d08a drm/xe/xe_sysctrl: Add System Controller power management support 477f89770f00 drm/xe/xe_pci: Enable System Controller support on CRI platform
Patchwork
CI✓ CI.KUnit: success for drm/xe/xe_sysctrl: Add system controller component for Xe3p dGPU platforms (rev3)
In reply to Anoop, Vijay== Series Details ==
== Series Details ==
Series: drm/xe/xe_sysctrl: Add system controller component for Xe3p dGPU platforms (rev3)
URL : https://patchwork.freedesktop.org/series/163196/
State : success
== Summary ==
+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig [12:06:03] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [12:06:07] 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 [12:06:38] Starting KUnit Kernel (1/1)... [12:06:38] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [12:06:38] ================== guc_buf (11 subtests) =================== [12:06:38] [PASSED] test_smallest [12:06:38] [PASSED] test_largest [12:06:38] [PASSED] test_granular [12:06:38] [PASSED] test_unique [12:06:38] [PASSED] test_overlap [12:06:38] [PASSED] test_reusable [12:06:38] [PASSED] test_too_big [12:06:38] [PASSED] test_flush [12:06:38] [PASSED] test_lookup [12:06:38] [PASSED] test_data [12:06:38] [PASSED] test_class [12:06:38] ===================== [PASSED] guc_buf ===================== [12:06:38] =================== guc_dbm (7 subtests) =================== [12:06:38] [PASSED] test_empty [12:06:38] [PASSED] test_default [12:06:38] ======================== test_size ======================== [12:06:38] [PASSED] 4 [12:06:38] [PASSED] 8 [12:06:38] [PASSED] 32 [12:06:38] [PASSED] 256 [12:06:38] ==================== [PASSED] test_size ==================== [12:06:38] ======================= test_reuse ======================== [12:06:38] [PASSED] 4 [12:06:38] [PASSED] 8 [12:06:38] [PASSED] 32 [12:06:38] [PASSED] 256 [12:06:38] =================== [PASSED] test_reuse ==================== [12:06:38] =================== test_range_overlap ==================== [12:06:38] [PASSED] 4 [12:06:38] [PASSED] 8 [12:06:38] [PASSED] 32 [12:06:38] [PASSED] 256 [12:06:38] =============== [PASSED] test_range_overlap ================ [12:06:38] =================== test_range_compact ==================== [12:06:38] [PASSED] 4 [12:06:38] [PASSED] 8 [12:06:38] [PASSED] 32 [12:06:38] [PASSED] 256 [12:06:38] =============== [PASSED] test_range_compact ================ [12:06:38] ==================== test_range_spare ===================== [12:06:38] [PASSED] 4 [12:06:38] [PASSED] 8 [12:06:38] [PASSED] 32 [12:06:38] [PASSED] 256 [12:06:38] ================ [PASSED] test_range_spare ================= [12:06:38] ===================== [PASSED] guc_dbm ===================== [12:06:38] =================== guc_idm (6 subtests) =================== [12:06:38] [PASSED] bad_init [12:06:38] [PASSED] no_init [12:06:38] [PASSED] init_fini [12:06:38] [PASSED] check_used [12:06:38] [PASSED] check_quota [12:06:38] [PASSED] check_all [12:06:38] ===================== [PASSED] guc_idm ===================== [12:06:38] ================== no_relay (3 subtests) =================== [12:06:38] [PASSED] xe_drops_guc2pf_if_not_ready [12:06:38] [PASSED] xe_drops_guc2vf_if_not_ready [12:06:38] [PASSED] xe_rejects_send_if_not_ready [12:06:38] ==================== [PASSED] no_relay ===================== [12:06:38] ================== pf_relay (14 subtests) ================== [12:06:38] [PASSED] pf_rejects_guc2pf_too_short [12:06:38] [PASSED] pf_rejects_guc2pf_too_long [12:06:38] [PASSED] pf_rejects_guc2pf_no_payload [12:06:38] [PASSED] pf_fails_no_payload [12:06:38] [PASSED] pf_fails_bad_origin [12:06:38] [PASSED] pf_fails_bad_type [12:06:38] [PASSED] pf_txn_reports_error [12:06:38] [PASSED] pf_txn_sends_pf2guc [12:06:38] [PASSED] pf_sends_pf2guc [12:06:38] [SKIPPED] pf_loopback_nop [12:06:38] [SKIPPED] pf_loopback_echo [12:06:38] [SKIPPED] pf_loopback_fail [12:06:38] [SKIPPED] pf_loopback_busy [12:06:38] [SKIPPED] pf_loopback_retry [12:06:38] ==================== [PASSED] pf_relay ===================== [12:06:38] ================== vf_relay (3 subtests) =================== [12:06:38] [PASSED] vf_rejects_guc2vf_too_short [12:06:38] [PASSED] vf_rejects_guc2vf_too_long [12:06:38] [PASSED] vf_rejects_guc2vf_no_payload [12:06:38] ==================== [PASSED] vf_relay ===================== [12:06:38] ================ pf_gt_config (9 subtests) ================= [12:06:38] [PASSED] fair_contexts_1vf [12:06:38] [PASSED] fair_doorbells_1vf [12:06:38] [PASSED] fair_ggtt_1vf [12:06:38] ====================== fair_vram_1vf ====================== [12:06:38] [PASSED] 3.50 GiB [12:06:38] [PASSED] 11.5 GiB [12:06:38] [PASSED] 15.5 GiB [12:06:38] [PASSED] 31.5 GiB [12:06:38] [PASSED] 63.5 GiB [12:06:38] [PASSED] 1.91 GiB [12:06:38] ================== [PASSED] fair_vram_1vf ================== [12:06:38] ================ fair_vram_1vf_admin_only ================= [12:06:38] [PASSED] 3.50 GiB [12:06:38] [PASSED] 11.5 GiB [12:06:38] [PASSED] 15.5 GiB [12:06:38] [PASSED] 31.5 GiB [12:06:38] [PASSED] 63.5 GiB [12:06:38] [PASSED] 1.91 GiB [12:06:38] ============ [PASSED] fair_vram_1vf_admin_only ============= [12:06:38] ====================== fair_contexts ====================== [12:06:38] [PASSED] 1 VF [12:06:38] [PASSED] 2 VFs [12:06:38] [PASSED] 3 VFs [12:06:38] [PASSED] 4 VFs [12:06:38] [PASSED] 5 VFs [12:06:38] [PASSED] 6 VFs [12:06:38] [PASSED] 7 VFs [12:06:38] [PASSED] 8 VFs [12:06:38] [PASSED] 9 VFs [12:06:38] [PASSED] 10 VFs [12:06:38] [PASSED] 11 VFs [12:06:38] [PASSED] 12 VFs [12:06:38] [PASSED] 13 VFs [12:06:38] [PASSED] 14 VFs [12:06:38] [PASSED] 15 VFs [12:06:38] [PASSED] 16 VFs [12:06:38] [PASSED] 17 VFs [12:06:38] [PASSED] 18 VFs [12:06:38] [PASSED] 19 VFs [12:06:38] [PASSED] 20 VFs [12:06:38] [PASSED] 21 VFs [12:06:38] [PASSED] 22 VFs [12:06:38] [PASSED] 23 VFs [12:06:38] [PASSED] 24 VFs [12:06:38] [PASSED] 25 VFs [12:06:38] [PASSED] 26 VFs [12:06:38] [PASSED] 27 VFs [12:06:38] [PASSED] 28 VFs [12:06:38] [PASSED] 29 VFs [12:06:38] [PASSED] 30 VFs [12:06:38] [PASSED] 31 VFs [12:06:38] [PASSED] 32 VFs [12:06:38] [PASSED] 33 VFs [12:06:38] [PASSED] 34 VFs [12:06:38] [PASSED] 35 VFs [12:06:38] [PASSED] 36 VFs [12:06:38] [PASSED] 37 VFs [12:06:38] [PASSED] 38 VFs [12:06:38] [PASSED] 39 VFs [12:06:38] [PASSED] 40 VFs [12:06:38] [PASSED] 41 VFs [12:06:38] [PASSED] 42 VFs [12:06:38] [PASSED] 43 VFs [12:06:38] [PASSED] 44 VFs [12:06:38] [PASSED] 45 VFs [12:06:38] [PASSED] 46 VFs [12:06:38] [PASSED] 47 VFs [12:06:38] [PASSED] 48 VFs [12:06:38] [PASSED] 49 VFs [12:06:38] [PASSED] 50 VFs [12:06:38] [PASSED] 51 VFs [12:06:38] [PASSED] 52 VFs [12:06:38] [PASSED] 53 VFs [12:06:38] [PASSED] 54 VFs [12:06:38] [PASSED] 55 VFs [12:06:38] [PASSED] 56 VFs [12:06:38] [PASSED] 57 VFs [12:06:38] [PASSED] 58 VFs [12:06:38] [PASSED] 59 VFs [12:06:38] [PASSED] 60 VFs [12:06:38] [PASSED] 61 VFs [12:06:38] [PASSED] 62 VFs [12:06:38] [PASSED] 63 VFs [12:06:38] ================== [PASSED] fair_contexts ================== [12:06:38] ===================== fair_doorbells ====================== [12:06:38] [PASSED] 1 VF [12:06:38] [PASSED] 2 VFs [12:06:38] [PASSED] 3 VFs [12:06:38] [PASSED] 4 VFs [12:06:38] [PASSED] 5 VFs [12:06:38] [PASSED] 6 VFs [12:06:38] [PASSED] 7 VFs [12:06:38] [PASSED] 8 VFs [12:06:38] [PASSED] 9 VFs [12:06:38] [PASSED] 10 VFs [12:06:38] [PASSED] 11 VFs [12:06:38] [PASSED] 12 VFs [12:06:38] [PASSED] 13 VFs [12:06:38] [PASSED] 14 VFs [12:06:38] [PASSED] 15 VFs [12:06:38] [PASSED] 16 VFs [12:06:38] [PASSED] 17 VFs [12:06:38] [PASSED] 18 VFs [12:06:38] [PASSED] 19 VFs [12:06:38] [PASSED] 20 VFs [12:06:38] [PASSED] 21 VFs [12:06:38] [PASSED] 22 VFs [12:06:38] [PASSED] 23 VFs [12:06:38] [PASSED] 24 VFs [12:06:38] [PASSED] 25 VFs [12:06:38] [PASSED] 26 VFs [12:06:38] [PASSED] 27 VFs [12:06:38] [PASSED] 28 VFs [12:06:38] [PASSED] 29 VFs [12:06:38] [PASSED] 30 VFs [12:06:38] [PASSED] 31 VFs [12:06:38] [PASSED] 32 VFs [12:06:38] [PASSED] 33 VFs [12:06:38] [PASSED] 34 VFs [12:06:38] [PASSED] 35 VFs [12:06:38] [PASSED] 36 VFs [12:06:38] [PASSED] 37 VFs [12:06:38] [PASSED] 38 VFs [12:06:38] [PASSED] 39 VFs [12:06:38] [PASSED] 40 VFs [12:06:38] [PASSED] 41 VFs [12:06:38] [PASSED] 42 VFs [12:06:38] [PASSED] 43 VFs [12:06:38] [PASSED] 44 VFs [12:06:38] [PASSED] 45 VFs [12:06:38] [PASSED] 46 VFs [12:06:38] [PASSED] 47 VFs [12:06:38] [PASSED] 48 VFs [12:06:38] [PASSED] 49 VFs [12:06:38] [PASSED] 50 VFs [12:06:38] [PASSED] 51 VFs [12:06:38] [PASSED] 52 VFs [12:06:38] [PASSED] 53 VFs [12:06:38] [PASSED] 54 VFs [12:06:38] [PASSED] 55 VFs [12:06:38] [PASSED] 56 VFs [12:06:38] [PASSED] 57 VFs [12:06:38] [PASSED] 58 VFs [12:06:38] [PASSED] 59 VFs [12:06:38] [PASSED] 60 VFs [12:06:38] [PASSED] 61 VFs [12:06:38] [PASSED] 62 VFs [12:06:38] [PASSED] 63 VFs [12:06:38] ================= [PASSED] fair_doorbells ================== [12:06:38] ======================== fair_ggtt ======================== [12:06:38] [PASSED] 1 VF [12:06:38] [PASSED] 2 VFs [12:06:38] [PASSED] 3 VFs [12:06:38] [PASSED] 4 VFs [12:06:38] [PASSED] 5 VFs [12:06:38] [PASSED] 6 VFs [12:06:38] [PASSED] 7 VFs [12:06:38] [PASSED] 8 VFs [12:06:38] [PASSED] 9 VFs [12:06:38] [PASSED] 10 VFs [12:06:38] [PASSED] 11 VFs [12:06:38] [PASSED] 12 VFs [12:06:38] [PASSED] 13 VFs [12:06:38] [PASSED] 14 VFs [12:06:38] [PASSED] 15 VFs [12:06:38] [PASSED] 16 VFs [12:06:38] [PASSED] 17 VFs [12:06:38] [PASSED] 18 VFs [12:06:38] [PASSED] 19 VFs [12:06:38] [PASSED] 20 VFs [12:06:38] [PASSED] 21 VFs [12:06:38] [PASSED] 22 VFs [12:06:38] [PASSED] 23 VFs [12:06:38] [PASSED] 24 VFs [12:06:38] [PASSED] 25 VFs [12:06:38] [PASSED] 26 VFs [12:06:38] [PASSED] 27 VFs [12:06:38] [PASSED] 28 VFs [12:06:38] [PASSED] 29 VFs [12:06:38] [PASSED] 30 VFs [12:06:38] [PASSED] 31 VFs [12:06:38] [PASSED] 32 VFs [12:06:38] [PASSED] 33 VFs [12:06:38] [PASSED] 34 VFs [12:06:38] [PASSED] 35 VFs [12:06:38] [PASSED] 36 VFs [12:06:38] [PASSED] 37 VFs [12:06:38] [PASSED] 38 VFs [12:06:38] [PASSED] 39 VFs [12:06:38] [PASSED] 40 VFs [12:06:38] [PASSED] 41 VFs [12:06:38] [PASSED] 42 VFs [12:06:38] [PASSED] 43 VFs [12:06:38] [PASSED] 44 VFs [12:06:38] [PASSED] 45 VFs [12:06:38] [PASSED] 46 VFs [12:06:38] [PASSED] 47 VFs [12:06:38] [PASSED] 48 VFs [12:06:38] [PASSED] 49 VFs [12:06:38] [PASSED] 50 VFs [12:06:38] [PASSED] 51 VFs [12:06:38] [PASSED] 52 VFs [12:06:38] [PASSED] 53 VFs [12:06:38] [PASSED] 54 VFs [12:06:38] [PASSED] 55 VFs [12:06:38] [PASSED] 56 VFs [12:06:38] [PASSED] 57 VFs [12:06:38] [PASSED] 58 VFs [12:06:38] [PASSED] 59 VFs [12:06:38] [PASSED] 60 VFs [12:06:38] [PASSED] 61 VFs [12:06:38] [PASSED] 62 VFs [12:06:38] [PASSED] 63 VFs [12:06:38] ==================== [PASSED] fair_ggtt ==================== [12:06:38] ======================== fair_vram ======================== [12:06:38] [PASSED] 1 VF [12:06:38] [PASSED] 2 VFs [12:06:38] [PASSED] 3 VFs [12:06:38] [PASSED] 4 VFs [12:06:38] [PASSED] 5 VFs [12:06:38] [PASSED] 6 VFs [12:06:38] [PASSED] 7 VFs [12:06:38] [PASSED] 8 VFs [12:06:38] [PASSED] 9 VFs [12:06:38] [PASSED] 10 VFs [12:06:38] [PASSED] 11 VFs [12:06:38] [PASSED] 12 VFs [12:06:38] [PASSED] 13 VFs [12:06:38] [PASSED] 14 VFs [12:06:38] [PASSED] 15 VFs [12:06:38] [PASSED] 16 VFs [12:06:38] [PASSED] 17 VFs [12:06:38] [PASSED] 18 VFs [12:06:38] [PASSED] 19 VFs [12:06:38] [PASSED] 20 VFs [12:06:38] [PASSED] 21 VFs [12:06:38] [PASSED] 22 VFs [12:06:38] [PASSED] 23 VFs [12:06:38] [PASSED] 24 VFs [12:06:38] [PASSED] 25 VFs [12:06:38] [PASSED] 26 VFs [12:06:38] [PASSED] 27 VFs [12:06:38] [PASSED] 28 VFs [12:06:38] [PASSED] 29 VFs [12:06:38] [PASSED] 30 VFs [12:06:38] [PASSED] 31 VFs [12:06:38] [PASSED] 32 VFs [12:06:38] [PASSED] 33 VFs [12:06:38] [PASSED] 34 VFs [12:06:38] [PASSED] 35 VFs [12:06:38] [PASSED] 36 VFs [12:06:38] [PASSED] 37 VFs [12:06:38] [PASSED] 38 VFs [12:06:38] [PASSED] 39 VFs [12:06:38] [PASSED] 40 VFs [12:06:38] [PASSED] 41 VFs [12:06:38] [PASSED] 42 VFs [12:06:38] [PASSED] 43 VFs [12:06:38] [PASSED] 44 VFs [12:06:38] [PASSED] 45 VFs [12:06:38] [PASSED] 46 VFs [12:06:38] [PASSED] 47 VFs [12:06:38] [PASSED] 48 VFs [12:06:38] [PASSED] 49 VFs [12:06:38] [PASSED] 50 VFs [12:06:38] [PASSED] 51 VFs [12:06:38] [PASSED] 52 VFs [12:06:38] [PASSED] 53 VFs [12:06:38] [PASSED] 54 VFs [12:06:38] [PASSED] 55 VFs [12:06:38] [PASSED] 56 VFs [12:06:38] [PASSED] 57 VFs [12:06:38] [PASSED] 58 VFs [12:06:38] [PASSED] 59 VFs [12:06:38] [PASSED] 60 VFs [12:06:38] [PASSED] 61 VFs [12:06:38] [PASSED] 62 VFs [12:06:38] [PASSED] 63 VFs [12:06:38] ==================== [PASSED] fair_vram ==================== [12:06:38] ================== [PASSED] pf_gt_config =================== [12:06:38] ===================== lmtt (1 subtest) ===================== [12:06:38] ======================== test_ops ========================= [12:06:38] [PASSED] 2-level [12:06:38] [PASSED] multi-level [12:06:38] ==================== [PASSED] test_ops ===================== [12:06:38] ====================== [PASSED] lmtt ======================= [12:06:38] ================= pf_service (11 subtests) ================= [12:06:38] [PASSED] pf_negotiate_any [12:06:38] [PASSED] pf_negotiate_base_match [12:06:38] [PASSED] pf_negotiate_base_newer [12:06:38] [PASSED] pf_negotiate_base_next [12:06:38] [SKIPPED] pf_negotiate_base_older [12:06:38] [PASSED] pf_negotiate_base_prev [12:06:38] [PASSED] pf_negotiate_latest_match [12:06:38] [PASSED] pf_negotiate_latest_newer [12:06:38] [PASSED] pf_negotiate_latest_next [12:06:38] [SKIPPED] pf_negotiate_latest_older [12:06:38] [SKIPPED] pf_negotiate_latest_prev [12:06:38] =================== [PASSED] pf_service ==================== [12:06:38] ================= xe_guc_g2g (2 subtests) ================== [12:06:38] ============== xe_live_guc_g2g_kunit_default ============== [12:06:38] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ========== [12:06:38] ============== xe_live_guc_g2g_kunit_allmem =============== [12:06:38] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ========== [12:06:38] =================== [SKIPPED] xe_guc_g2g =================== [12:06:38] =================== xe_mocs (2 subtests) =================== [12:06:38] ================ xe_live_mocs_kernel_kunit ================ [12:06:38] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============ [12:06:38] ================ xe_live_mocs_reset_kunit ================= [12:06:38] ============ [SKIPPED] xe_live_mocs_reset_kunit ============ [12:06:38] ==================== [SKIPPED] xe_mocs ===================== [12:06:38] ================= xe_migrate (2 subtests) ================== [12:06:38] ================= xe_migrate_sanity_kunit ================= [12:06:38] ============ [SKIPPED] xe_migrate_sanity_kunit ============= [12:06:38] ================== xe_validate_ccs_kunit ================== [12:06:38] ============= [SKIPPED] xe_validate_ccs_kunit ============== [12:06:38] =================== [SKIPPED] xe_migrate =================== [12:06:38] ================== xe_dma_buf (1 subtest) ================== [12:06:38] ==================== xe_dma_buf_kunit ===================== [12:06:38] ================ [SKIPPED] xe_dma_buf_kunit ================ [12:06:38] =================== [SKIPPED] xe_dma_buf =================== [12:06:38] ================= xe_bo_shrink (1 subtest) ================= [12:06:38] =================== xe_bo_shrink_kunit ==================== [12:06:38] =============== [SKIPPED] xe_bo_shrink_kunit =============== [12:06:38] ================== [SKIPPED] xe_bo_shrink ================== [12:06:38] ==================== xe_bo (2 subtests) ==================== [12:06:38] ================== xe_ccs_migrate_kunit =================== [12:06:38] ============== [SKIPPED] xe_ccs_migrate_kunit ============== [12:06:38] ==================== xe_bo_evict_kunit ==================== [12:06:38] =============== [SKIPPED] xe_bo_evict_kunit ================ [12:06:38] ===================== [SKIPPED] xe_bo ====================== [12:06:38] ==================== args (13 subtests) ==================== [12:06:38] [PASSED] count_args_test [12:06:38] [PASSED] call_args_example [12:06:38] [PASSED] call_args_test [12:06:38] [PASSED] drop_first_arg_example [12:06:38] [PASSED] drop_first_arg_test [12:06:38] [PASSED] first_arg_example [12:06:38] [PASSED] first_arg_test [12:06:38] [PASSED] last_arg_example [12:06:38] [PASSED] last_arg_test [12:06:38] [PASSED] pick_arg_example [12:06:38] [PASSED] if_args_example [12:06:38] [PASSED] if_args_test [12:06:38] [PASSED] sep_comma_example [12:06:38] ====================== [PASSED] args ======================= [12:06:38] =================== xe_pci (3 subtests) ==================== [12:06:38] ==================== check_graphics_ip ==================== [12:06:38] [PASSED] 12.00 Xe_LP [12:06:38] [PASSED] 12.10 Xe_LP+ [12:06:38] [PASSED] 12.55 Xe_HPG [12:06:38] [PASSED] 12.60 Xe_HPC [12:06:38] [PASSED] 12.70 Xe_LPG [12:06:38] [PASSED] 12.71 Xe_LPG [12:06:38] [PASSED] 12.74 Xe_LPG+ [12:06:38] [PASSED] 20.01 Xe2_HPG [12:06:38] [PASSED] 20.02 Xe2_HPG [12:06:38] [PASSED] 20.04 Xe2_LPG [12:06:38] [PASSED] 30.00 Xe3_LPG [12:06:38] [PASSED] 30.01 Xe3_LPG [12:06:38] [PASSED] 30.03 Xe3_LPG [12:06:38] [PASSED] 30.04 Xe3_LPG [12:06:38] [PASSED] 30.05 Xe3_LPG [12:06:38] [PASSED] 35.10 Xe3p_LPG [12:06:38] [PASSED] 35.11 Xe3p_XPC [12:06:38] ================ [PASSED] check_graphics_ip ================ [12:06:38] ===================== check_media_ip ====================== [12:06:38] [PASSED] 12.00 Xe_M [12:06:38] [PASSED] 12.55 Xe_HPM [12:06:38] [PASSED] 13.00 Xe_LPM+ [12:06:38] [PASSED] 13.01 Xe2_HPM [12:06:38] [PASSED] 20.00 Xe2_LPM [12:06:38] [PASSED] 30.00 Xe3_LPM [12:06:38] [PASSED] 30.02 Xe3_LPM [12:06:38] [PASSED] 35.00 Xe3p_LPM [12:06:38] [PASSED] 35.03 Xe3p_HPM [12:06:38] ================= [PASSED] check_media_ip ================== [12:06:38] =================== check_platform_desc =================== [12:06:38] [PASSED] 0x9A60 (TIGERLAKE) [12:06:38] [PASSED] 0x9A68 (TIGERLAKE) [12:06:38] [PASSED] 0x9A70 (TIGERLAKE) [12:06:38] [PASSED] 0x9A40 (TIGERLAKE) [12:06:38] [PASSED] 0x9A49 (TIGERLAKE) [12:06:38] [PASSED] 0x9A59 (TIGERLAKE) [12:06:38] [PASSED] 0x9A78 (TIGERLAKE) [12:06:38] [PASSED] 0x9AC0 (TIGERLAKE) [12:06:38] [PASSED] 0x9AC9 (TIGERLAKE) [12:06:38] [PASSED] 0x9AD9 (TIGERLAKE) [12:06:38] [PASSED] 0x9AF8 (TIGERLAKE) [12:06:38] [PASSED] 0x4C80 (ROCKETLAKE) [12:06:38] [PASSED] 0x4C8A (ROCKETLAKE) [12:06:38] [PASSED] 0x4C8B (ROCKETLAKE) [12:06:38] [PASSED] 0x4C8C (ROCKETLAKE) [12:06:38] [PASSED] 0x4C90 (ROCKETLAKE) [12:06:38] [PASSED] 0x4C9A (ROCKETLAKE) [12:06:38] [PASSED] 0x4680 (ALDERLAKE_S) [12:06:38] [PASSED] 0x4682 (ALDERLAKE_S) [12:06:38] [PASSED] 0x4688 (ALDERLAKE_S) [12:06:38] [PASSED] 0x468A (ALDERLAKE_S) [12:06:38] [PASSED] 0x468B (ALDERLAKE_S) [12:06:38] [PASSED] 0x4690 (ALDERLAKE_S) [12:06:38] [PASSED] 0x4692 (ALDERLAKE_S) [12:06:38] [PASSED] 0x4693 (ALDERLAKE_S) [12:06:38] [PASSED] 0x46A0 (ALDERLAKE_P) [12:06:38] [PASSED] 0x46A1 (ALDERLAKE_P) [12:06:38] [PASSED] 0x46A2 (ALDERLAKE_P) [12:06:38] [PASSED] 0x46A3 (ALDERLAKE_P) [12:06:38] [PASSED] 0x46A6 (ALDERLAKE_P) [12:06:38] [PASSED] 0x46A8 (ALDERLAKE_P) [12:06:38] [PASSED] 0x46AA (ALDERLAKE_P) [12:06:38] [PASSED] 0x462A (ALDERLAKE_P) [12:06:38] [PASSED] 0x4626 (ALDERLAKE_P) [12:06:38] [PASSED] 0x4628 (ALDERLAKE_P) [12:06:38] [PASSED] 0x46B0 (ALDERLAKE_P) [12:06:38] [PASSED] 0x46B1 (ALDERLAKE_P) [12:06:38] [PASSED] 0x46B2 (ALDERLAKE_P) [12:06:38] [PASSED] 0x46B3 (ALDERLAKE_P) [12:06:38] [PASSED] 0x46C0 (ALDERLAKE_P) [12:06:38] [PASSED] 0x46C1 (ALDERLAKE_P) [12:06:38] [PASSED] 0x46C2 (ALDERLAKE_P) [12:06:38] [PASSED] 0x46C3 (ALDERLAKE_P) [12:06:38] [PASSED] 0x46D0 (ALDERLAKE_N) [12:06:38] [PASSED] 0x46D1 (ALDERLAKE_N) [12:06:38] [PASSED] 0x46D2 (ALDERLAKE_N) [12:06:38] [PASSED] 0x46D3 (ALDERLAKE_N) [12:06:38] [PASSED] 0x46D4 (ALDERLAKE_N) [12:06:38] [PASSED] 0xA721 (ALDERLAKE_P) [12:06:38] [PASSED] 0xA7A1 (ALDERLAKE_P) [12:06:38] [PASSED] 0xA7A9 (ALDERLAKE_P) [12:06:38] [PASSED] 0xA7AC (ALDERLAKE_P) [12:06:38] [PASSED] 0xA7AD (ALDERLAKE_P) [12:06:38] [PASSED] 0xA720 (ALDERLAKE_P) [12:06:38] [PASSED] 0xA7A0 (ALDERLAKE_P) [12:06:38] [PASSED] 0xA7A8 (ALDERLAKE_P) [12:06:38] [PASSED] 0xA7AA (ALDERLAKE_P) [12:06:38] [PASSED] 0xA7AB (ALDERLAKE_P) [12:06:38] [PASSED] 0xA780 (ALDERLAKE_S) [12:06:38] [PASSED] 0xA781 (ALDERLAKE_S) [12:06:38] [PASSED] 0xA782 (ALDERLAKE_S) [12:06:38] [PASSED] 0xA783 (ALDERLAKE_S) [12:06:38] [PASSED] 0xA788 (ALDERLAKE_S) [12:06:38] [PASSED] 0xA789 (ALDERLAKE_S) [12:06:38] [PASSED] 0xA78A (ALDERLAKE_S) [12:06:38] [PASSED] 0xA78B (ALDERLAKE_S) [12:06:38] [PASSED] 0x4905 (DG1) [12:06:38] [PASSED] 0x4906 (DG1) [12:06:38] [PASSED] 0x4907 (DG1) [12:06:38] [PASSED] 0x4908 (DG1) [12:06:38] [PASSED] 0x4909 (DG1) [12:06:38] [PASSED] 0x56C0 (DG2) [12:06:38] [PASSED] 0x56C2 (DG2) [12:06:38] [PASSED] 0x56C1 (DG2) [12:06:38] [PASSED] 0x7D51 (METEORLAKE) [12:06:38] [PASSED] 0x7DD1 (METEORLAKE) [12:06:38] [PASSED] 0x7D41 (METEORLAKE) [12:06:38] [PASSED] 0x7D67 (METEORLAKE) [12:06:38] [PASSED] 0xB640 (METEORLAKE) [12:06:38] [PASSED] 0x56A0 (DG2) [12:06:38] [PASSED] 0x56A1 (DG2) [12:06:38] [PASSED] 0x56A2 (DG2) [12:06:38] [PASSED] 0x56BE (DG2) [12:06:38] [PASSED] 0x56BF (DG2) [12:06:38] [PASSED] 0x5690 (DG2) [12:06:38] [PASSED] 0x5691 (DG2) [12:06:38] [PASSED] 0x5692 (DG2) [12:06:38] [PASSED] 0x56A5 (DG2) [12:06:38] [PASSED] 0x56A6 (DG2) [12:06:38] [PASSED] 0x56B0 (DG2) [12:06:38] [PASSED] 0x56B1 (DG2) [12:06:38] [PASSED] 0x56BA (DG2) [12:06:38] [PASSED] 0x56BB (DG2) [12:06:38] [PASSED] 0x56BC (DG2) [12:06:38] [PASSED] 0x56BD (DG2) [12:06:38] [PASSED] 0x5693 (DG2) [12:06:38] [PASSED] 0x5694 (DG2) [12:06:38] [PASSED] 0x5695 (DG2) [12:06:38] [PASSED] 0x56A3 (DG2) [12:06:38] [PASSED] 0x56A4 (DG2) [12:06:38] [PASSED] 0x56B2 (DG2) [12:06:38] [PASSED] 0x56B3 (DG2) [12:06:38] [PASSED] 0x5696 (DG2) [12:06:38] [PASSED] 0x5697 (DG2) [12:06:38] [PASSED] 0xB69 (PVC) [12:06:38] [PASSED] 0xB6E (PVC) [12:06:38] [PASSED] 0xBD4 (PVC) [12:06:38] [PASSED] 0xBD5 (PVC) [12:06:38] [PASSED] 0xBD6 (PVC) [12:06:38] [PASSED] 0xBD7 (PVC) [12:06:38] [PASSED] 0xBD8 (PVC) [12:06:38] [PASSED] 0xBD9 (PVC) [12:06:38] [PASSED] 0xBDA (PVC) [12:06:38] [PASSED] 0xBDB (PVC) [12:06:38] [PASSED] 0xBE0 (PVC) [12:06:38] [PASSED] 0xBE1 (PVC) [12:06:38] [PASSED] 0xBE5 (PVC) [12:06:38] [PASSED] 0x7D40 (METEORLAKE) [12:06:38] [PASSED] 0x7D45 (METEORLAKE) [12:06:38] [PASSED] 0x7D55 (METEORLAKE) [12:06:38] [PASSED] 0x7D60 (METEORLAKE) [12:06:38] [PASSED] 0x7DD5 (METEORLAKE) [12:06:38] [PASSED] 0x6420 (LUNARLAKE) [12:06:38] [PASSED] 0x64A0 (LUNARLAKE) [12:06:38] [PASSED] 0x64B0 (LUNARLAKE) [12:06:38] [PASSED] 0xE202 (BATTLEMAGE) [12:06:38] [PASSED] 0xE209 (BATTLEMAGE) [12:06:38] [PASSED] 0xE20B (BATTLEMAGE) [12:06:38] [PASSED] 0xE20C (BATTLEMAGE) [12:06:38] [PASSED] 0xE20D (BATTLEMAGE) [12:06:38] [PASSED] 0xE210 (BATTLEMAGE) [12:06:38] [PASSED] 0xE211 (BATTLEMAGE) [12:06:38] [PASSED] 0xE212 (BATTLEMAGE) [12:06:38] [PASSED] 0xE216 (BATTLEMAGE) [12:06:38] [PASSED] 0xE220 (BATTLEMAGE) [12:06:38] [PASSED] 0xE221 (BATTLEMAGE) [12:06:38] [PASSED] 0xE222 (BATTLEMAGE) [12:06:38] [PASSED] 0xE223 (BATTLEMAGE) [12:06:38] [PASSED] 0xB080 (PANTHERLAKE) [12:06:38] [PASSED] 0xB081 (PANTHERLAKE) [12:06:38] [PASSED] 0xB082 (PANTHERLAKE) [12:06:38] [PASSED] 0xB083 (PANTHERLAKE) [12:06:38] [PASSED] 0xB084 (PANTHERLAKE) [12:06:38] [PASSED] 0xB085 (PANTHERLAKE) [12:06:38] [PASSED] 0xB086 (PANTHERLAKE) [12:06:38] [PASSED] 0xB087 (PANTHERLAKE) [12:06:38] [PASSED] 0xB08F (PANTHERLAKE) [12:06:38] [PASSED] 0xB090 (PANTHERLAKE) [12:06:38] [PASSED] 0xB0A0 (PANTHERLAKE) [12:06:38] [PASSED] 0xB0B0 (PANTHERLAKE) [12:06:38] [PASSED] 0xFD80 (PANTHERLAKE) [12:06:38] [PASSED] 0xFD81 (PANTHERLAKE) [12:06:38] [PASSED] 0xD740 (NOVALAKE_S) [12:06:38] [PASSED] 0xD741 (NOVALAKE_S) [12:06:38] [PASSED] 0xD742 (NOVALAKE_S) [12:06:38] [PASSED] 0xD743 (NOVALAKE_S) [12:06:38] [PASSED] 0xD744 (NOVALAKE_S) [12:06:38] [PASSED] 0xD745 (NOVALAKE_S) [12:06:38] [PASSED] 0x674C (CRESCENTISLAND) [12:06:38] [PASSED] 0xD750 (NOVALAKE_P) [12:06:38] [PASSED] 0xD751 (NOVALAKE_P) [12:06:38] [PASSED] 0xD752 (NOVALAKE_P) [12:06:38] [PASSED] 0xD753 (NOVALAKE_P) [12:06:38] [PASSED] 0xD754 (NOVALAKE_P) [12:06:38] [PASSED] 0xD755 (NOVALAKE_P) [12:06:38] [PASSED] 0xD756 (NOVALAKE_P) [12:06:38] [PASSED] 0xD757 (NOVALAKE_P) [12:06:38] [PASSED] 0xD75F (NOVALAKE_P) [12:06:38] =============== [PASSED] check_platform_desc =============== [12:06:38] ===================== [PASSED] xe_pci ====================== [12:06:38] =================== xe_rtp (2 subtests) ==================== [12:06:38] =============== xe_rtp_process_to_sr_tests ================ [12:06:38] [PASSED] coalesce-same-reg [12:06:38] [PASSED] no-match-no-add [12:06:38] [PASSED] match-or [12:06:38] [PASSED] match-or-xfail [12:06:38] [PASSED] no-match-no-add-multiple-rules [12:06:38] [PASSED] two-regs-two-entries [12:06:38] [PASSED] clr-one-set-other [12:06:38] [PASSED] set-field [12:06:38] [PASSED] conflict-duplicate stty: 'standard input': Inappropriate ioctl for device [12:06:38] [PASSED] conflict-not-disjoint [12:06:38] [PASSED] conflict-reg-type [12:06:38] =========== [PASSED] xe_rtp_process_to_sr_tests ============ [12:06:38] ================== xe_rtp_process_tests =================== [12:06:38] [PASSED] active1 [12:06:38] [PASSED] active2 [12:06:38] [PASSED] active-inactive [12:06:38] [PASSED] inactive-active [12:06:38] [PASSED] inactive-1st_or_active-inactive [12:06:38] [PASSED] inactive-2nd_or_active-inactive [12:06:38] [PASSED] inactive-last_or_active-inactive [12:06:38] [PASSED] inactive-no_or_active-inactive [12:06:38] ============== [PASSED] xe_rtp_process_tests =============== [12:06:38] ===================== [PASSED] xe_rtp ====================== [12:06:38] ==================== xe_wa (1 subtest) ===================== [12:06:38] ======================== xe_wa_gt ========================= [12:06:38] [PASSED] TIGERLAKE B0 [12:06:38] [PASSED] DG1 A0 [12:06:38] [PASSED] DG1 B0 [12:06:38] [PASSED] ALDERLAKE_S A0 [12:06:38] [PASSED] ALDERLAKE_S B0 [12:06:38] [PASSED] ALDERLAKE_S C0 [12:06:38] [PASSED] ALDERLAKE_S D0 [12:06:38] [PASSED] ALDERLAKE_P A0 [12:06:38] [PASSED] ALDERLAKE_P B0 [12:06:38] [PASSED] ALDERLAKE_P C0 [12:06:38] [PASSED] ALDERLAKE_S RPLS D0 [12:06:38] [PASSED] ALDERLAKE_P RPLU E0 [12:06:38] [PASSED] DG2 G10 C0 [12:06:38] [PASSED] DG2 G11 B1 [12:06:38] [PASSED] DG2 G12 A1 [12:06:38] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0 [12:06:38] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0 [12:06:38] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0 [12:06:38] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0 [12:06:38] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0 [12:06:38] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1 [12:06:38] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0 [12:06:38] ==================== [PASSED] xe_wa_gt ===================== [12:06:38] ====================== [PASSED] xe_wa ====================== [12:06:38] ============================================================ [12:06:38] Testing complete. Ran 597 tests: passed: 579, skipped: 18 [12:06:38] Elapsed time: 35.447s total, 4.263s configuring, 30.565s building, 0.609s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig [12:06:38] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [12:06:40] 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 [12:07:04] Starting KUnit Kernel (1/1)... [12:07:04] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [12:07:04] ============ drm_test_pick_cmdline (2 subtests) ============ [12:07:04] [PASSED] drm_test_pick_cmdline_res_1920_1080_60 [12:07:04] =============== drm_test_pick_cmdline_named =============== [12:07:04] [PASSED] NTSC [12:07:04] [PASSED] NTSC-J [12:07:04] [PASSED] PAL [12:07:04] [PASSED] PAL-M [12:07:04] =========== [PASSED] drm_test_pick_cmdline_named =========== [12:07:04] ============== [PASSED] drm_test_pick_cmdline ============== [12:07:04] == drm_test_atomic_get_connector_for_encoder (1 subtest) === [12:07:04] [PASSED] drm_test_drm_atomic_get_connector_for_encoder [12:07:04] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ==== [12:07:04] =========== drm_validate_clone_mode (2 subtests) =========== [12:07:04] ============== drm_test_check_in_clone_mode =============== [12:07:04] [PASSED] in_clone_mode [12:07:04] [PASSED] not_in_clone_mode [12:07:04] ========== [PASSED] drm_test_check_in_clone_mode =========== [12:07:04] =============== drm_test_check_valid_clones =============== [12:07:04] [PASSED] not_in_clone_mode [12:07:04] [PASSED] valid_clone [12:07:04] [PASSED] invalid_clone [12:07:04] =========== [PASSED] drm_test_check_valid_clones =========== [12:07:04] ============= [PASSED] drm_validate_clone_mode ============= [12:07:04] ============= drm_validate_modeset (1 subtest) ============= [12:07:04] [PASSED] drm_test_check_connector_changed_modeset [12:07:04] ============== [PASSED] drm_validate_modeset =============== [12:07:04] ====== drm_test_bridge_get_current_state (2 subtests) ====== [12:07:04] [PASSED] drm_test_drm_bridge_get_current_state_atomic [12:07:04] [PASSED] drm_test_drm_bridge_get_current_state_legacy [12:07:04] ======== [PASSED] drm_test_bridge_get_current_state ======== [12:07:04] ====== drm_test_bridge_helper_reset_crtc (3 subtests) ====== [12:07:04] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic [12:07:04] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled [12:07:04] [PASSED] drm_test_drm_bridge_helper_reset_crtc_legacy [12:07:04] ======== [PASSED] drm_test_bridge_helper_reset_crtc ======== [12:07:04] ============== drm_bridge_alloc (2 subtests) =============== [12:07:04] [PASSED] drm_test_drm_bridge_alloc_basic [12:07:04] [PASSED] drm_test_drm_bridge_alloc_get_put [12:07:04] ================ [PASSED] drm_bridge_alloc ================= [12:07:04] ============= drm_cmdline_parser (40 subtests) ============= [12:07:04] [PASSED] drm_test_cmdline_force_d_only [12:07:04] [PASSED] drm_test_cmdline_force_D_only_dvi [12:07:04] [PASSED] drm_test_cmdline_force_D_only_hdmi [12:07:04] [PASSED] drm_test_cmdline_force_D_only_not_digital [12:07:04] [PASSED] drm_test_cmdline_force_e_only [12:07:04] [PASSED] drm_test_cmdline_res [12:07:04] [PASSED] drm_test_cmdline_res_vesa [12:07:04] [PASSED] drm_test_cmdline_res_vesa_rblank [12:07:04] [PASSED] drm_test_cmdline_res_rblank [12:07:04] [PASSED] drm_test_cmdline_res_bpp [12:07:04] [PASSED] drm_test_cmdline_res_refresh [12:07:04] [PASSED] drm_test_cmdline_res_bpp_refresh [12:07:04] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced [12:07:04] [PASSED] drm_test_cmdline_res_bpp_refresh_margins [12:07:04] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off [12:07:04] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on [12:07:04] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog [12:07:04] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital [12:07:04] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on [12:07:04] [PASSED] drm_test_cmdline_res_margins_force_on [12:07:04] [PASSED] drm_test_cmdline_res_vesa_margins [12:07:04] [PASSED] drm_test_cmdline_name [12:07:04] [PASSED] drm_test_cmdline_name_bpp [12:07:04] [PASSED] drm_test_cmdline_name_option [12:07:04] [PASSED] drm_test_cmdline_name_bpp_option [12:07:04] [PASSED] drm_test_cmdline_rotate_0 [12:07:04] [PASSED] drm_test_cmdline_rotate_90 [12:07:04] [PASSED] drm_test_cmdline_rotate_180 [12:07:04] [PASSED] drm_test_cmdline_rotate_270 [12:07:04] [PASSED] drm_test_cmdline_hmirror [12:07:04] [PASSED] drm_test_cmdline_vmirror [12:07:04] [PASSED] drm_test_cmdline_margin_options [12:07:04] [PASSED] drm_test_cmdline_multiple_options [12:07:04] [PASSED] drm_test_cmdline_bpp_extra_and_option [12:07:04] [PASSED] drm_test_cmdline_extra_and_option [12:07:04] [PASSED] drm_test_cmdline_freestanding_options [12:07:04] [PASSED] drm_test_cmdline_freestanding_force_e_and_options [12:07:04] [PASSED] drm_test_cmdline_panel_orientation [12:07:04] ================ drm_test_cmdline_invalid ================= [12:07:04] [PASSED] margin_only [12:07:04] [PASSED] interlace_only [12:07:04] [PASSED] res_missing_x [12:07:04] [PASSED] res_missing_y [12:07:04] [PASSED] res_bad_y [12:07:04] [PASSED] res_missing_y_bpp [12:07:04] [PASSED] res_bad_bpp [12:07:04] [PASSED] res_bad_refresh [12:07:04] [PASSED] res_bpp_refresh_force_on_off [12:07:04] [PASSED] res_invalid_mode [12:07:04] [PASSED] res_bpp_wrong_place_mode [12:07:04] [PASSED] name_bpp_refresh [12:07:04] [PASSED] name_refresh [12:07:04] [PASSED] name_refresh_wrong_mode [12:07:04] [PASSED] name_refresh_invalid_mode [12:07:04] [PASSED] rotate_multiple [12:07:04] [PASSED] rotate_invalid_val [12:07:04] [PASSED] rotate_truncated [12:07:04] [PASSED] invalid_option [12:07:04] [PASSED] invalid_tv_option [12:07:04] [PASSED] truncated_tv_option [12:07:04] ============ [PASSED] drm_test_cmdline_invalid ============= [12:07:04] =============== drm_test_cmdline_tv_options =============== [12:07:04] [PASSED] NTSC [12:07:04] [PASSED] NTSC_443 [12:07:04] [PASSED] NTSC_J [12:07:04] [PASSED] PAL [12:07:04] [PASSED] PAL_M [12:07:04] [PASSED] PAL_N [12:07:04] [PASSED] SECAM [12:07:04] [PASSED] MONO_525 [12:07:04] [PASSED] MONO_625 [12:07:04] =========== [PASSED] drm_test_cmdline_tv_options =========== [12:07:04] =============== [PASSED] drm_cmdline_parser ================ [12:07:04] ========== drmm_connector_hdmi_init (20 subtests) ========== [12:07:04] [PASSED] drm_test_connector_hdmi_init_valid [12:07:04] [PASSED] drm_test_connector_hdmi_init_bpc_8 [12:07:04] [PASSED] drm_test_connector_hdmi_init_bpc_10 [12:07:04] [PASSED] drm_test_connector_hdmi_init_bpc_12 [12:07:04] [PASSED] drm_test_connector_hdmi_init_bpc_invalid [12:07:04] [PASSED] drm_test_connector_hdmi_init_bpc_null [12:07:04] [PASSED] drm_test_connector_hdmi_init_formats_empty [12:07:04] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb [12:07:04] === drm_test_connector_hdmi_init_formats_yuv420_allowed === [12:07:04] [PASSED] supported_formats=0x9 yuv420_allowed=1 [12:07:04] [PASSED] supported_formats=0x9 yuv420_allowed=0 [12:07:04] [PASSED] supported_formats=0x5 yuv420_allowed=1 [12:07:04] [PASSED] supported_formats=0x5 yuv420_allowed=0 [12:07:04] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed === [12:07:04] [PASSED] drm_test_connector_hdmi_init_null_ddc [12:07:04] [PASSED] drm_test_connector_hdmi_init_null_product [12:07:04] [PASSED] drm_test_connector_hdmi_init_null_vendor [12:07:04] [PASSED] drm_test_connector_hdmi_init_product_length_exact [12:07:04] [PASSED] drm_test_connector_hdmi_init_product_length_too_long [12:07:04] [PASSED] drm_test_connector_hdmi_init_product_valid [12:07:04] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact [12:07:04] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long [12:07:04] [PASSED] drm_test_connector_hdmi_init_vendor_valid [12:07:04] ========= drm_test_connector_hdmi_init_type_valid ========= [12:07:04] [PASSED] HDMI-A [12:07:04] [PASSED] HDMI-B [12:07:04] ===== [PASSED] drm_test_connector_hdmi_init_type_valid ===== [12:07:04] ======== drm_test_connector_hdmi_init_type_invalid ======== [12:07:04] [PASSED] Unknown [12:07:04] [PASSED] VGA [12:07:04] [PASSED] DVI-I [12:07:04] [PASSED] DVI-D [12:07:04] [PASSED] DVI-A [12:07:04] [PASSED] Composite [12:07:04] [PASSED] SVIDEO [12:07:04] [PASSED] LVDS [12:07:04] [PASSED] Component [12:07:04] [PASSED] DIN [12:07:04] [PASSED] DP [12:07:04] [PASSED] TV [12:07:04] [PASSED] eDP [12:07:04] [PASSED] Virtual [12:07:04] [PASSED] DSI [12:07:04] [PASSED] DPI [12:07:04] [PASSED] Writeback [12:07:04] [PASSED] SPI [12:07:04] [PASSED] USB [12:07:04] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ==== [12:07:04] ============ [PASSED] drmm_connector_hdmi_init ============= [12:07:04] ============= drmm_connector_init (3 subtests) ============= [12:07:04] [PASSED] drm_test_drmm_connector_init [12:07:04] [PASSED] drm_test_drmm_connector_init_null_ddc [12:07:04] ========= drm_test_drmm_connector_init_type_valid ========= [12:07:04] [PASSED] Unknown [12:07:04] [PASSED] VGA [12:07:04] [PASSED] DVI-I [12:07:04] [PASSED] DVI-D [12:07:04] [PASSED] DVI-A [12:07:04] [PASSED] Composite [12:07:04] [PASSED] SVIDEO [12:07:04] [PASSED] LVDS [12:07:04] [PASSED] Component [12:07:04] [PASSED] DIN [12:07:04] [PASSED] DP [12:07:04] [PASSED] HDMI-A [12:07:04] [PASSED] HDMI-B [12:07:04] [PASSED] TV [12:07:04] [PASSED] eDP [12:07:04] [PASSED] Virtual [12:07:04] [PASSED] DSI [12:07:04] [PASSED] DPI [12:07:04] [PASSED] Writeback [12:07:04] [PASSED] SPI [12:07:04] [PASSED] USB [12:07:04] ===== [PASSED] drm_test_drmm_connector_init_type_valid ===== [12:07:04] =============== [PASSED] drmm_connector_init =============== [12:07:04] ========= drm_connector_dynamic_init (6 subtests) ========== [12:07:04] [PASSED] drm_test_drm_connector_dynamic_init [12:07:04] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc [12:07:04] [PASSED] drm_test_drm_connector_dynamic_init_not_added [12:07:04] [PASSED] drm_test_drm_connector_dynamic_init_properties [12:07:04] ===== drm_test_drm_connector_dynamic_init_type_valid ====== [12:07:04] [PASSED] Unknown [12:07:04] [PASSED] VGA [12:07:04] [PASSED] DVI-I [12:07:04] [PASSED] DVI-D [12:07:04] [PASSED] DVI-A [12:07:04] [PASSED] Composite [12:07:04] [PASSED] SVIDEO [12:07:04] [PASSED] LVDS [12:07:04] [PASSED] Component [12:07:04] [PASSED] DIN [12:07:04] [PASSED] DP [12:07:04] [PASSED] HDMI-A [12:07:04] [PASSED] HDMI-B [12:07:04] [PASSED] TV [12:07:04] [PASSED] eDP [12:07:04] [PASSED] Virtual [12:07:04] [PASSED] DSI [12:07:04] [PASSED] DPI [12:07:04] [PASSED] Writeback [12:07:04] [PASSED] SPI [12:07:04] [PASSED] USB [12:07:04] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid == [12:07:04] ======== drm_test_drm_connector_dynamic_init_name ========= [12:07:04] [PASSED] Unknown [12:07:04] [PASSED] VGA [12:07:04] [PASSED] DVI-I [12:07:04] [PASSED] DVI-D [12:07:04] [PASSED] DVI-A [12:07:04] [PASSED] Composite [12:07:04] [PASSED] SVIDEO [12:07:04] [PASSED] LVDS [12:07:04] [PASSED] Component [12:07:04] [PASSED] DIN [12:07:04] [PASSED] DP [12:07:04] [PASSED] HDMI-A [12:07:04] [PASSED] HDMI-B [12:07:04] [PASSED] TV [12:07:04] [PASSED] eDP [12:07:04] [PASSED] Virtual [12:07:04] [PASSED] DSI [12:07:04] [PASSED] DPI [12:07:04] [PASSED] Writeback [12:07:04] [PASSED] SPI [12:07:04] [PASSED] USB [12:07:04] ==== [PASSED] drm_test_drm_connector_dynamic_init_name ===== [12:07:04] =========== [PASSED] drm_connector_dynamic_init ============ [12:07:04] ==== drm_connector_dynamic_register_early (4 subtests) ===== [12:07:04] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list [12:07:04] [PASSED] drm_test_drm_connector_dynamic_register_early_defer [12:07:04] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init [12:07:04] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object [12:07:04] ====== [PASSED] drm_connector_dynamic_register_early ======= [12:07:04] ======= drm_connector_dynamic_register (7 subtests) ======== [12:07:04] [PASSED] drm_test_drm_connector_dynamic_register_on_list [12:07:04] [PASSED] drm_test_drm_connector_dynamic_register_no_defer [12:07:04] [PASSED] drm_test_drm_connector_dynamic_register_no_init [12:07:04] [PASSED] drm_test_drm_connector_dynamic_register_mode_object [12:07:04] [PASSED] drm_test_drm_connector_dynamic_register_sysfs [12:07:04] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name [12:07:04] [PASSED] drm_test_drm_connector_dynamic_register_debugfs [12:07:04] ========= [PASSED] drm_connector_dynamic_register ========== [12:07:04] = drm_connector_attach_broadcast_rgb_property (2 subtests) = [12:07:04] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property [12:07:04] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector [12:07:04] === [PASSED] drm_connector_attach_broadcast_rgb_property === [12:07:04] ========== drm_get_tv_mode_from_name (2 subtests) ========== [12:07:04] ========== drm_test_get_tv_mode_from_name_valid =========== [12:07:04] [PASSED] NTSC [12:07:04] [PASSED] NTSC-443 [12:07:04] [PASSED] NTSC-J [12:07:04] [PASSED] PAL [12:07:04] [PASSED] PAL-M [12:07:04] [PASSED] PAL-N [12:07:04] [PASSED] SECAM [12:07:04] [PASSED] Mono [12:07:04] ====== [PASSED] drm_test_get_tv_mode_from_name_valid ======= [12:07:04] [PASSED] drm_test_get_tv_mode_from_name_truncated [12:07:04] ============ [PASSED] drm_get_tv_mode_from_name ============ [12:07:04] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) = [12:07:04] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb [12:07:04] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc [12:07:04] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1 [12:07:04] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc [12:07:04] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1 [12:07:04] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double [12:07:04] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid = [12:07:04] [PASSED] VIC 96 [12:07:04] [PASSED] VIC 97 [12:07:04] [PASSED] VIC 101 [12:07:04] [PASSED] VIC 102 [12:07:04] [PASSED] VIC 106 [12:07:04] [PASSED] VIC 107 [12:07:04] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid === [12:07:04] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc [12:07:04] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc [12:07:04] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc [12:07:04] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc [12:07:04] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc [12:07:04] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ==== [12:07:04] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) == [12:07:04] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name ==== [12:07:04] [PASSED] Automatic [12:07:04] [PASSED] Full [12:07:04] [PASSED] Limited 16:235 [12:07:04] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name === [12:07:04] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid [12:07:04] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ==== [12:07:04] == drm_hdmi_connector_get_output_format_name (2 subtests) == [12:07:04] === drm_test_drm_hdmi_connector_get_output_format_name ==== [12:07:04] [PASSED] RGB [12:07:04] [PASSED] YUV 4:2:0 [12:07:04] [PASSED] YUV 4:2:2 [12:07:04] [PASSED] YUV 4:4:4 [12:07:04] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name === [12:07:04] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid [12:07:04] ==== [PASSED] drm_hdmi_connector_get_output_format_name ==== [12:07:04] ============= drm_damage_helper (21 subtests) ============== [12:07:04] [PASSED] drm_test_damage_iter_no_damage [12:07:04] [PASSED] drm_test_damage_iter_no_damage_fractional_src [12:07:04] [PASSED] drm_test_damage_iter_no_damage_src_moved [12:07:04] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved [12:07:04] [PASSED] drm_test_damage_iter_no_damage_not_visible [12:07:04] [PASSED] drm_test_damage_iter_no_damage_no_crtc [12:07:04] [PASSED] drm_test_damage_iter_no_damage_no_fb [12:07:04] [PASSED] drm_test_damage_iter_simple_damage [12:07:04] [PASSED] drm_test_damage_iter_single_damage [12:07:04] [PASSED] drm_test_damage_iter_single_damage_intersect_src [12:07:04] [PASSED] drm_test_damage_iter_single_damage_outside_src [12:07:04] [PASSED] drm_test_damage_iter_single_damage_fractional_src [12:07:04] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src [12:07:04] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src [12:07:04] [PASSED] drm_test_damage_iter_single_damage_src_moved [12:07:04] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved [12:07:04] [PASSED] drm_test_damage_iter_damage [12:07:04] [PASSED] drm_test_damage_iter_damage_one_intersect [12:07:04] [PASSED] drm_test_damage_iter_damage_one_outside [12:07:04] [PASSED] drm_test_damage_iter_damage_src_moved [12:07:04] [PASSED] drm_test_damage_iter_damage_not_visible [12:07:04] ================ [PASSED] drm_damage_helper ================ [12:07:04] ============== drm_dp_mst_helper (3 subtests) ============== [12:07:04] ============== drm_test_dp_mst_calc_pbn_mode ============== [12:07:04] [PASSED] Clock 154000 BPP 30 DSC disabled [12:07:04] [PASSED] Clock 234000 BPP 30 DSC disabled [12:07:04] [PASSED] Clock 297000 BPP 24 DSC disabled [12:07:04] [PASSED] Clock 332880 BPP 24 DSC enabled [12:07:04] [PASSED] Clock 324540 BPP 24 DSC enabled [12:07:04] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ========== [12:07:04] ============== drm_test_dp_mst_calc_pbn_div =============== [12:07:04] [PASSED] Link rate 2000000 lane count 4 [12:07:04] [PASSED] Link rate 2000000 lane count 2 [12:07:04] [PASSED] Link rate 2000000 lane count 1 [12:07:04] [PASSED] Link rate 1350000 lane count 4 [12:07:04] [PASSED] Link rate 1350000 lane count 2 [12:07:04] [PASSED] Link rate 1350000 lane count 1 [12:07:04] [PASSED] Link rate 1000000 lane count 4 [12:07:04] [PASSED] Link rate 1000000 lane count 2 [12:07:04] [PASSED] Link rate 1000000 lane count 1 [12:07:04] [PASSED] Link rate 810000 lane count 4 [12:07:04] [PASSED] Link rate 810000 lane count 2 [12:07:04] [PASSED] Link rate 810000 lane count 1 [12:07:04] [PASSED] Link rate 540000 lane count 4 [12:07:04] [PASSED] Link rate 540000 lane count 2 [12:07:04] [PASSED] Link rate 540000 lane count 1 [12:07:04] [PASSED] Link rate 270000 lane count 4 [12:07:04] [PASSED] Link rate 270000 lane count 2 [12:07:04] [PASSED] Link rate 270000 lane count 1 [12:07:04] [PASSED] Link rate 162000 lane count 4 [12:07:04] [PASSED] Link rate 162000 lane count 2 [12:07:04] [PASSED] Link rate 162000 lane count 1 [12:07:04] ========== [PASSED] drm_test_dp_mst_calc_pbn_div =========== [12:07:04] ========= drm_test_dp_mst_sideband_msg_req_decode ========= [12:07:04] [PASSED] DP_ENUM_PATH_RESOURCES with port number [12:07:04] [PASSED] DP_POWER_UP_PHY with port number [12:07:04] [PASSED] DP_POWER_DOWN_PHY with port number [12:07:04] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks [12:07:04] [PASSED] DP_ALLOCATE_PAYLOAD with port number [12:07:04] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI [12:07:04] [PASSED] DP_ALLOCATE_PAYLOAD with PBN [12:07:04] [PASSED] DP_QUERY_PAYLOAD with port number [12:07:04] [PASSED] DP_QUERY_PAYLOAD with VCPI [12:07:04] [PASSED] DP_REMOTE_DPCD_READ with port number [12:07:04] [PASSED] DP_REMOTE_DPCD_READ with DPCD address [12:07:04] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes [12:07:04] [PASSED] DP_REMOTE_DPCD_WRITE with port number [12:07:04] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address [12:07:04] [PASSED] DP_REMOTE_DPCD_WRITE with data array [12:07:04] [PASSED] DP_REMOTE_I2C_READ with port number [12:07:04] [PASSED] DP_REMOTE_I2C_READ with I2C device ID [12:07:04] [PASSED] DP_REMOTE_I2C_READ with transactions array [12:07:04] [PASSED] DP_REMOTE_I2C_WRITE with port number [12:07:04] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID [12:07:04] [PASSED] DP_REMOTE_I2C_WRITE with data array [12:07:04] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID [12:07:04] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID [12:07:04] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event [12:07:04] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event [12:07:04] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior [12:07:04] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior [12:07:04] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode ===== [12:07:04] ================ [PASSED] drm_dp_mst_helper ================ [12:07:04] ================== drm_exec (7 subtests) =================== [12:07:04] [PASSED] sanitycheck [12:07:04] [PASSED] test_lock [12:07:04] [PASSED] test_lock_unlock [12:07:04] [PASSED] test_duplicates [12:07:04] [PASSED] test_prepare [12:07:04] [PASSED] test_prepare_array [12:07:04] [PASSED] test_multiple_loops [12:07:04] ==================== [PASSED] drm_exec ===================== [12:07:04] =========== drm_format_helper_test (17 subtests) =========== [12:07:04] ============== drm_test_fb_xrgb8888_to_gray8 ============== [12:07:04] [PASSED] single_pixel_source_buffer [12:07:04] [PASSED] single_pixel_clip_rectangle [12:07:04] [PASSED] well_known_colors [12:07:04] [PASSED] destination_pitch [12:07:04] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ========== [12:07:04] ============= drm_test_fb_xrgb8888_to_rgb332 ============== [12:07:04] [PASSED] single_pixel_source_buffer [12:07:04] [PASSED] single_pixel_clip_rectangle [12:07:04] [PASSED] well_known_colors [12:07:04] [PASSED] destination_pitch [12:07:04] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ========== [12:07:04] ============= drm_test_fb_xrgb8888_to_rgb565 ============== [12:07:04] [PASSED] single_pixel_source_buffer [12:07:04] [PASSED] single_pixel_clip_rectangle [12:07:04] [PASSED] well_known_colors [12:07:04] [PASSED] destination_pitch [12:07:04] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ========== [12:07:04] ============ drm_test_fb_xrgb8888_to_xrgb1555 ============= [12:07:04] [PASSED] single_pixel_source_buffer [12:07:04] [PASSED] single_pixel_clip_rectangle [12:07:04] [PASSED] well_known_colors [12:07:04] [PASSED] destination_pitch [12:07:04] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 ========= [12:07:04] ============ drm_test_fb_xrgb8888_to_argb1555 ============= [12:07:04] [PASSED] single_pixel_source_buffer [12:07:04] [PASSED] single_pixel_clip_rectangle [12:07:04] [PASSED] well_known_colors [12:07:04] [PASSED] destination_pitch [12:07:04] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 ========= [12:07:04] ============ drm_test_fb_xrgb8888_to_rgba5551 ============= [12:07:04] [PASSED] single_pixel_source_buffer [12:07:04] [PASSED] single_pixel_clip_rectangle [12:07:04] [PASSED] well_known_colors [12:07:04] [PASSED] destination_pitch [12:07:04] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 ========= [12:07:04] ============= drm_test_fb_xrgb8888_to_rgb888 ============== [12:07:04] [PASSED] single_pixel_source_buffer [12:07:04] [PASSED] single_pixel_clip_rectangle [12:07:04] [PASSED] well_known_colors [12:07:04] [PASSED] destination_pitch [12:07:04] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ========== [12:07:04] ============= drm_test_fb_xrgb8888_to_bgr888 ============== [12:07:04] [PASSED] single_pixel_source_buffer [12:07:04] [PASSED] single_pixel_clip_rectangle [12:07:04] [PASSED] well_known_colors [12:07:04] [PASSED] destination_pitch [12:07:04] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ========== [12:07:04] ============ drm_test_fb_xrgb8888_to_argb8888 ============= [12:07:04] [PASSED] single_pixel_source_buffer [12:07:04] [PASSED] single_pixel_clip_rectangle [12:07:04] [PASSED] well_known_colors [12:07:04] [PASSED] destination_pitch [12:07:04] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 ========= [12:07:04] =========== drm_test_fb_xrgb8888_to_xrgb2101010 =========== [12:07:04] [PASSED] single_pixel_source_buffer [12:07:04] [PASSED] single_pixel_clip_rectangle [12:07:04] [PASSED] well_known_colors [12:07:04] [PASSED] destination_pitch [12:07:04] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 ======= [12:07:04] =========== drm_test_fb_xrgb8888_to_argb2101010 =========== [12:07:04] [PASSED] single_pixel_source_buffer [12:07:04] [PASSED] single_pixel_clip_rectangle [12:07:04] [PASSED] well_known_colors [12:07:04] [PASSED] destination_pitch [12:07:04] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 ======= [12:07:04] ============== drm_test_fb_xrgb8888_to_mono =============== [12:07:04] [PASSED] single_pixel_source_buffer [12:07:04] [PASSED] single_pixel_clip_rectangle [12:07:04] [PASSED] well_known_colors [12:07:04] [PASSED] destination_pitch [12:07:04] ========== [PASSED] drm_test_fb_xrgb8888_to_mono =========== [12:07:04] ==================== drm_test_fb_swab ===================== [12:07:04] [PASSED] single_pixel_source_buffer [12:07:04] [PASSED] single_pixel_clip_rectangle [12:07:04] [PASSED] well_known_colors [12:07:04] [PASSED] destination_pitch [12:07:04] ================ [PASSED] drm_test_fb_swab ================= [12:07:04] ============ drm_test_fb_xrgb8888_to_xbgr8888 ============= [12:07:04] [PASSED] single_pixel_source_buffer [12:07:04] [PASSED] single_pixel_clip_rectangle [12:07:04] [PASSED] well_known_colors [12:07:04] [PASSED] destination_pitch [12:07:04] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 ========= [12:07:04] ============ drm_test_fb_xrgb8888_to_abgr8888 ============= [12:07:04] [PASSED] single_pixel_source_buffer [12:07:04] [PASSED] single_pixel_clip_rectangle [12:07:04] [PASSED] well_known_colors [12:07:04] [PASSED] destination_pitch [12:07:04] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 ========= [12:07:04] ================= drm_test_fb_clip_offset ================= [12:07:04] [PASSED] pass through [12:07:04] [PASSED] horizontal offset [12:07:04] [PASSED] vertical offset [12:07:04] [PASSED] horizontal and vertical offset [12:07:04] [PASSED] horizontal offset (custom pitch) [12:07:04] [PASSED] vertical offset (custom pitch) [12:07:04] [PASSED] horizontal and vertical offset (custom pitch) [12:07:04] ============= [PASSED] drm_test_fb_clip_offset ============= [12:07:04] =================== drm_test_fb_memcpy ==================== [12:07:04] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258) [12:07:04] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258) [12:07:04] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559) [12:07:04] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258) [12:07:04] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258) [12:07:04] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559) [12:07:04] [PASSED] well_known_colors: XB24 little-endian (0x34324258) [12:07:04] [PASSED] well_known_colors: XRA8 little-endian (0x38415258) [12:07:04] [PASSED] well_known_colors: YU24 little-endian (0x34325559) [12:07:04] [PASSED] destination_pitch: XB24 little-endian (0x34324258) [12:07:04] [PASSED] destination_pitch: XRA8 little-endian (0x38415258) [12:07:04] [PASSED] destination_pitch: YU24 little-endian (0x34325559) [12:07:04] =============== [PASSED] drm_test_fb_memcpy ================ [12:07:04] ============= [PASSED] drm_format_helper_test ============== [12:07:04] ================= drm_format (18 subtests) ================= [12:07:04] [PASSED] drm_test_format_block_width_invalid [12:07:04] [PASSED] drm_test_format_block_width_one_plane [12:07:04] [PASSED] drm_test_format_block_width_two_plane [12:07:04] [PASSED] drm_test_format_block_width_three_plane [12:07:04] [PASSED] drm_test_format_block_width_tiled [12:07:04] [PASSED] drm_test_format_block_height_invalid [12:07:04] [PASSED] drm_test_format_block_height_one_plane [12:07:04] [PASSED] drm_test_format_block_height_two_plane [12:07:04] [PASSED] drm_test_format_block_height_three_plane [12:07:04] [PASSED] drm_test_format_block_height_tiled [12:07:04] [PASSED] drm_test_format_min_pitch_invalid [12:07:04] [PASSED] drm_test_format_min_pitch_one_plane_8bpp [12:07:04] [PASSED] drm_test_format_min_pitch_one_plane_16bpp [12:07:04] [PASSED] drm_test_format_min_pitch_one_plane_24bpp [12:07:04] [PASSED] drm_test_format_min_pitch_one_plane_32bpp [12:07:04] [PASSED] drm_test_format_min_pitch_two_plane [12:07:04] [PASSED] drm_test_format_min_pitch_three_plane_8bpp [12:07:04] [PASSED] drm_test_format_min_pitch_tiled [12:07:04] =================== [PASSED] drm_format ==================== [12:07:04] ============== drm_framebuffer (10 subtests) =============== [12:07:04] ========== drm_test_framebuffer_check_src_coords ========== [12:07:04] [PASSED] Success: source fits into fb [12:07:04] [PASSED] Fail: overflowing fb with x-axis coordinate [12:07:04] [PASSED] Fail: overflowing fb with y-axis coordinate [12:07:04] [PASSED] Fail: overflowing fb with source width [12:07:04] [PASSED] Fail: overflowing fb with source height [12:07:04] ====== [PASSED] drm_test_framebuffer_check_src_coords ====== [12:07:04] [PASSED] drm_test_framebuffer_cleanup [12:07:04] =============== drm_test_framebuffer_create =============== [12:07:04] [PASSED] ABGR8888 normal sizes [12:07:04] [PASSED] ABGR8888 max sizes [12:07:04] [PASSED] ABGR8888 pitch greater than min required [12:07:04] [PASSED] ABGR8888 pitch less than min required [12:07:04] [PASSED] ABGR8888 Invalid width [12:07:04] [PASSED] ABGR8888 Invalid buffer handle [12:07:04] [PASSED] No pixel format [12:07:04] [PASSED] ABGR8888 Width 0 [12:07:04] [PASSED] ABGR8888 Height 0 [12:07:04] [PASSED] ABGR8888 Out of bound height * pitch combination [12:07:04] [PASSED] ABGR8888 Large buffer offset [12:07:04] [PASSED] ABGR8888 Buffer offset for inexistent plane [12:07:04] [PASSED] ABGR8888 Invalid flag [12:07:04] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers [12:07:04] [PASSED] ABGR8888 Valid buffer modifier [12:07:04] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE) [12:07:04] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS [12:07:04] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS [12:07:04] [PASSED] NV12 Normal sizes [12:07:04] [PASSED] NV12 Max sizes [12:07:04] [PASSED] NV12 Invalid pitch [12:07:04] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag [12:07:04] [PASSED] NV12 different modifier per-plane [12:07:04] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE [12:07:04] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS [12:07:04] [PASSED] NV12 Modifier for inexistent plane [12:07:04] [PASSED] NV12 Handle for inexistent plane [12:07:04] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS [12:07:04] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier [12:07:04] [PASSED] YVU420 Normal sizes [12:07:04] [PASSED] YVU420 Max sizes [12:07:04] [PASSED] YVU420 Invalid pitch [12:07:04] [PASSED] YVU420 Different pitches [12:07:04] [PASSED] YVU420 Different buffer offsets/pitches [12:07:04] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS [12:07:04] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS [12:07:04] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS [12:07:04] [PASSED] YVU420 Valid modifier [12:07:04] [PASSED] YVU420 Different modifiers per plane [12:07:04] [PASSED] YVU420 Modifier for inexistent plane [12:07:04] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR) [12:07:04] [PASSED] X0L2 Normal sizes [12:07:04] [PASSED] X0L2 Max sizes [12:07:04] [PASSED] X0L2 Invalid pitch [12:07:04] [PASSED] X0L2 Pitch greater than minimum required [12:07:04] [PASSED] X0L2 Handle for inexistent plane [12:07:04] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set [12:07:04] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set [12:07:04] [PASSED] X0L2 Valid modifier [12:07:04] [PASSED] X0L2 Modifier for inexistent plane [12:07:04] =========== [PASSED] drm_test_framebuffer_create =========== [12:07:04] [PASSED] drm_test_framebuffer_free [12:07:04] [PASSED] drm_test_framebuffer_init [12:07:04] [PASSED] drm_test_framebuffer_init_bad_format [12:07:04] [PASSED] drm_test_framebuffer_init_dev_mismatch [12:07:04] [PASSED] drm_test_framebuffer_lookup [12:07:04] [PASSED] drm_test_framebuffer_lookup_inexistent [12:07:04] [PASSED] drm_test_framebuffer_modifiers_not_supported [12:07:04] ================= [PASSED] drm_framebuffer ================= [12:07:04] ================ drm_gem_shmem (8 subtests) ================ [12:07:04] [PASSED] drm_gem_shmem_test_obj_create [12:07:04] [PASSED] drm_gem_shmem_test_obj_create_private [12:07:04] [PASSED] drm_gem_shmem_test_pin_pages [12:07:04] [PASSED] drm_gem_shmem_test_vmap [12:07:04] [PASSED] drm_gem_shmem_test_get_sg_table [12:07:04] [PASSED] drm_gem_shmem_test_get_pages_sgt [12:07:04] [PASSED] drm_gem_shmem_test_madvise [12:07:04] [PASSED] drm_gem_shmem_test_purge [12:07:04] ================== [PASSED] drm_gem_shmem ================== [12:07:04] === drm_atomic_helper_connector_hdmi_check (27 subtests) === [12:07:04] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode [12:07:04] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1 [12:07:04] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode [12:07:04] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1 [12:07:04] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode [12:07:04] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1 [12:07:04] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420 ======= [12:07:04] [PASSED] Automatic [12:07:04] [PASSED] Full [12:07:04] [PASSED] Limited 16:235 [12:07:04] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 === [12:07:04] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed [12:07:04] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed [12:07:04] [PASSED] drm_test_check_disable_connector [12:07:04] [PASSED] drm_test_check_hdmi_funcs_reject_rate [12:07:04] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb [12:07:04] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420 [12:07:04] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422 [12:07:04] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420 [12:07:04] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420 [12:07:04] [PASSED] drm_test_check_output_bpc_crtc_mode_changed [12:07:04] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed [12:07:04] [PASSED] drm_test_check_output_bpc_dvi [12:07:04] [PASSED] drm_test_check_output_bpc_format_vic_1 [12:07:04] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only [12:07:04] [PASSED] drm_test_check_output_bpc_format_display_rgb_only [12:07:04] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only [12:07:04] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only [12:07:04] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc [12:07:04] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc [12:07:04] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc [12:07:04] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ====== [12:07:04] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ==== [12:07:04] [PASSED] drm_test_check_broadcast_rgb_value [12:07:04] [PASSED] drm_test_check_bpc_8_value [12:07:04] [PASSED] drm_test_check_bpc_10_value [12:07:04] [PASSED] drm_test_check_bpc_12_value [12:07:04] [PASSED] drm_test_check_format_value [12:07:04] [PASSED] drm_test_check_tmds_char_value [12:07:04] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ====== [12:07:04] = drm_atomic_helper_connector_hdmi_mode_valid (4 subtests) = [12:07:04] [PASSED] drm_test_check_mode_valid [12:07:04] [PASSED] drm_test_check_mode_valid_reject [12:07:04] [PASSED] drm_test_check_mode_valid_reject_rate [12:07:04] [PASSED] drm_test_check_mode_valid_reject_max_clock [12:07:04] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid === [12:07:04] = drm_atomic_helper_connector_hdmi_infoframes (5 subtests) = [12:07:04] [PASSED] drm_test_check_infoframes [12:07:04] [PASSED] drm_test_check_reject_avi_infoframe [12:07:04] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_8 [12:07:04] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_10 [12:07:04] [PASSED] drm_test_check_reject_audio_infoframe [12:07:04] === [PASSED] drm_atomic_helper_connector_hdmi_infoframes === [12:07:04] ================= drm_managed (2 subtests) ================= [12:07:04] [PASSED] drm_test_managed_release_action [12:07:04] [PASSED] drm_test_managed_run_action [12:07:04] =================== [PASSED] drm_managed =================== [12:07:04] =================== drm_mm (6 subtests) ==================== [12:07:04] [PASSED] drm_test_mm_init [12:07:04] [PASSED] drm_test_mm_debug [12:07:04] [PASSED] drm_test_mm_align32 [12:07:04] [PASSED] drm_test_mm_align64 [12:07:04] [PASSED] drm_test_mm_lowest [12:07:04] [PASSED] drm_test_mm_highest [12:07:04] ===================== [PASSED] drm_mm ====================== [12:07:04] ============= drm_modes_analog_tv (5 subtests) ============= [12:07:04] [PASSED] drm_test_modes_analog_tv_mono_576i [12:07:04] [PASSED] drm_test_modes_analog_tv_ntsc_480i [12:07:04] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined [12:07:04] [PASSED] drm_test_modes_analog_tv_pal_576i [12:07:04] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined [12:07:04] =============== [PASSED] drm_modes_analog_tv =============== [12:07:04] ============== drm_plane_helper (2 subtests) =============== [12:07:04] =============== drm_test_check_plane_state ================ [12:07:04] [PASSED] clipping_simple [12:07:04] [PASSED] clipping_rotate_reflect [12:07:04] [PASSED] positioning_simple [12:07:04] [PASSED] upscaling [12:07:04] [PASSED] downscaling [12:07:04] [PASSED] rounding1 [12:07:04] [PASSED] rounding2 [12:07:04] [PASSED] rounding3 [12:07:04] [PASSED] rounding4 [12:07:04] =========== [PASSED] drm_test_check_plane_state ============ [12:07:04] =========== drm_test_check_invalid_plane_state ============ [12:07:04] [PASSED] positioning_invalid [12:07:04] [PASSED] upscaling_invalid [12:07:04] [PASSED] downscaling_invalid [12:07:04] ======= [PASSED] drm_test_check_invalid_plane_state ======== [12:07:04] ================ [PASSED] drm_plane_helper ================= [12:07:04] ====== drm_connector_helper_tv_get_modes (1 subtest) ======= [12:07:04] ====== drm_test_connector_helper_tv_get_modes_check ======= [12:07:04] [PASSED] None [12:07:04] [PASSED] PAL [12:07:04] [PASSED] NTSC [12:07:04] [PASSED] Both, NTSC Default [12:07:04] [PASSED] Both, PAL Default [12:07:04] [PASSED] Both, NTSC Default, with PAL on command-line [12:07:04] [PASSED] Both, PAL Default, with NTSC on command-line [12:07:04] == [PASSED] drm_test_connector_helper_tv_get_modes_check === [12:07:04] ======== [PASSED] drm_connector_helper_tv_get_modes ======== [12:07:04] ================== drm_rect (9 subtests) =================== [12:07:04] [PASSED] drm_test_rect_clip_scaled_div_by_zero [12:07:04] [PASSED] drm_test_rect_clip_scaled_not_clipped [12:07:04] [PASSED] drm_test_rect_clip_scaled_clipped [12:07:04] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned [12:07:04] ================= drm_test_rect_intersect ================= [12:07:04] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0 [12:07:04] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1 [12:07:04] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0 [12:07:04] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1 [12:07:04] [PASSED] right x left: 2x1+0+0 x 3x1+1+0 [12:07:04] [PASSED] left x right: 3x1+1+0 x 2x1+0+0 [12:07:04] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1 [12:07:04] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0 [12:07:04] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1 [12:07:04] [PASSED] touching side: 1x1+0+0 x 1x1+1+0 [12:07:04] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0 [12:07:04] [PASSED] inside another: 2x2+0+0 x 1x1+1+1 [12:07:04] [PASSED] far away: 1x1+0+0 x 1x1+3+6 [12:07:04] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10 [12:07:04] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10 [12:07:04] ============= [PASSED] drm_test_rect_intersect ============= [12:07:04] ================ drm_test_rect_calc_hscale ================ [12:07:04] [PASSED] normal use [12:07:04] [PASSED] out of max range [12:07:04] [PASSED] out of min range [12:07:04] [PASSED] zero dst [12:07:04] [PASSED] negative src [12:07:04] [PASSED] negative dst [12:07:04] ============ [PASSED] drm_test_rect_calc_hscale ============ [12:07:04] ================ drm_test_rect_calc_vscale ================ [12:07:04] [PASSED] normal use [12:07:04] [PASSED] out of max range [12:07:04] [PASSED] out of min range [12:07:04] [PASSED] zero dst [12:07:04] [PASSED] negative src [12:07:04] [PASSED] negative dst stty: 'standard input': Inappropriate ioctl for device [12:07:04] ============ [PASSED] drm_test_rect_calc_vscale ============ [12:07:04] ================== drm_test_rect_rotate =================== [12:07:04] [PASSED] reflect-x [12:07:04] [PASSED] reflect-y [12:07:04] [PASSED] rotate-0 [12:07:04] [PASSED] rotate-90 [12:07:04] [PASSED] rotate-180 [12:07:04] [PASSED] rotate-270 [12:07:04] ============== [PASSED] drm_test_rect_rotate =============== [12:07:04] ================ drm_test_rect_rotate_inv ================= [12:07:04] [PASSED] reflect-x [12:07:04] [PASSED] reflect-y [12:07:04] [PASSED] rotate-0 [12:07:04] [PASSED] rotate-90 [12:07:04] [PASSED] rotate-180 [12:07:04] [PASSED] rotate-270 [12:07:04] ============ [PASSED] drm_test_rect_rotate_inv ============= [12:07:04] ==================== [PASSED] drm_rect ===================== [12:07:04] ============ drm_sysfb_modeset_test (1 subtest) ============ [12:07:04] ============ drm_test_sysfb_build_fourcc_list ============= [12:07:04] [PASSED] no native formats [12:07:04] [PASSED] XRGB8888 as native format [12:07:04] [PASSED] remove duplicates [12:07:04] [PASSED] convert alpha formats [12:07:04] [PASSED] random formats [12:07:04] ======== [PASSED] drm_test_sysfb_build_fourcc_list ========= [12:07:04] ============= [PASSED] drm_sysfb_modeset_test ============== [12:07:04] ================== drm_fixp (2 subtests) =================== [12:07:04] [PASSED] drm_test_int2fixp [12:07:04] [PASSED] drm_test_sm2fixp [12:07:04] ==================== [PASSED] drm_fixp ===================== [12:07:04] ============================================================ [12:07:04] Testing complete. Ran 621 tests: passed: 621 [12:07:04] Elapsed time: 26.129s total, 1.727s configuring, 24.232s building, 0.148s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig [12:07:04] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [12:07:06] 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 [12:07:16] Starting KUnit Kernel (1/1)... [12:07:16] ============================================================ Running tests with: $ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt [12:07:16] ================= ttm_device (5 subtests) ================== [12:07:16] [PASSED] ttm_device_init_basic [12:07:16] [PASSED] ttm_device_init_multiple [12:07:16] [PASSED] ttm_device_fini_basic [12:07:16] [PASSED] ttm_device_init_no_vma_man [12:07:16] ================== ttm_device_init_pools ================== [12:07:16] [PASSED] No DMA allocations, no DMA32 required [12:07:16] [PASSED] DMA allocations, DMA32 required [12:07:16] [PASSED] No DMA allocations, DMA32 required [12:07:16] [PASSED] DMA allocations, no DMA32 required [12:07:16] ============== [PASSED] ttm_device_init_pools ============== [12:07:16] =================== [PASSED] ttm_device ==================== [12:07:16] ================== ttm_pool (8 subtests) =================== [12:07:16] ================== ttm_pool_alloc_basic =================== [12:07:16] [PASSED] One page [12:07:16] [PASSED] More than one page [12:07:16] [PASSED] Above the allocation limit [12:07:16] [PASSED] One page, with coherent DMA mappings enabled [12:07:16] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [12:07:16] ============== [PASSED] ttm_pool_alloc_basic =============== [12:07:16] ============== ttm_pool_alloc_basic_dma_addr ============== [12:07:16] [PASSED] One page [12:07:16] [PASSED] More than one page [12:07:16] [PASSED] Above the allocation limit [12:07:16] [PASSED] One page, with coherent DMA mappings enabled [12:07:16] [PASSED] Above the allocation limit, with coherent DMA mappings enabled [12:07:16] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ========== [12:07:16] [PASSED] ttm_pool_alloc_order_caching_match [12:07:16] [PASSED] ttm_pool_alloc_caching_mismatch [12:07:16] [PASSED] ttm_pool_alloc_order_mismatch [12:07:16] [PASSED] ttm_pool_free_dma_alloc [12:07:16] [PASSED] ttm_pool_free_no_dma_alloc [12:07:16] [PASSED] ttm_pool_fini_basic [12:07:16] ==================== [PASSED] ttm_pool ===================== [12:07:16] ================ ttm_resource (8 subtests) ================= [12:07:16] ================= ttm_resource_init_basic ================= [12:07:16] [PASSED] Init resource in TTM_PL_SYSTEM [12:07:16] [PASSED] Init resource in TTM_PL_VRAM [12:07:16] [PASSED] Init resource in a private placement [12:07:16] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags [12:07:16] ============= [PASSED] ttm_resource_init_basic ============= [12:07:16] [PASSED] ttm_resource_init_pinned [12:07:16] [PASSED] ttm_resource_fini_basic [12:07:16] [PASSED] ttm_resource_manager_init_basic [12:07:16] [PASSED] ttm_resource_manager_usage_basic [12:07:16] [PASSED] ttm_resource_manager_set_used_basic [12:07:16] [PASSED] ttm_sys_man_alloc_basic [12:07:16] [PASSED] ttm_sys_man_free_basic [12:07:16] ================== [PASSED] ttm_resource =================== [12:07:16] =================== ttm_tt (15 subtests) =================== [12:07:16] ==================== ttm_tt_init_basic ==================== [12:07:16] [PASSED] Page-aligned size [12:07:16] [PASSED] Extra pages requested [12:07:16] ================ [PASSED] ttm_tt_init_basic ================ [12:07:16] [PASSED] ttm_tt_init_misaligned [12:07:16] [PASSED] ttm_tt_fini_basic [12:07:16] [PASSED] ttm_tt_fini_sg [12:07:16] [PASSED] ttm_tt_fini_shmem [12:07:16] [PASSED] ttm_tt_create_basic [12:07:16] [PASSED] ttm_tt_create_invalid_bo_type [12:07:16] [PASSED] ttm_tt_create_ttm_exists [12:07:16] [PASSED] ttm_tt_create_failed [12:07:16] [PASSED] ttm_tt_destroy_basic [12:07:16] [PASSED] ttm_tt_populate_null_ttm [12:07:16] [PASSED] ttm_tt_populate_populated_ttm [12:07:16] [PASSED] ttm_tt_unpopulate_basic [12:07:16] [PASSED] ttm_tt_unpopulate_empty_ttm [12:07:16] [PASSED] ttm_tt_swapin_basic [12:07:16] ===================== [PASSED] ttm_tt ====================== [12:07:16] =================== ttm_bo (14 subtests) =================== [12:07:16] =========== ttm_bo_reserve_optimistic_no_ticket =========== [12:07:16] [PASSED] Cannot be interrupted and sleeps [12:07:16] [PASSED] Cannot be interrupted, locks straight away [12:07:16] [PASSED] Can be interrupted, sleeps [12:07:16] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket ======= [12:07:16] [PASSED] ttm_bo_reserve_locked_no_sleep [12:07:16] [PASSED] ttm_bo_reserve_no_wait_ticket [12:07:16] [PASSED] ttm_bo_reserve_double_resv [12:07:16] [PASSED] ttm_bo_reserve_interrupted [12:07:16] [PASSED] ttm_bo_reserve_deadlock [12:07:16] [PASSED] ttm_bo_unreserve_basic [12:07:16] [PASSED] ttm_bo_unreserve_pinned [12:07:16] [PASSED] ttm_bo_unreserve_bulk [12:07:16] [PASSED] ttm_bo_fini_basic [12:07:16] [PASSED] ttm_bo_fini_shared_resv [12:07:16] [PASSED] ttm_bo_pin_basic [12:07:16] [PASSED] ttm_bo_pin_unpin_resource [12:07:16] [PASSED] ttm_bo_multiple_pin_one_unpin [12:07:16] ===================== [PASSED] ttm_bo ====================== [12:07:16] ============== ttm_bo_validate (22 subtests) =============== [12:07:16] ============== ttm_bo_init_reserved_sys_man =============== [12:07:16] [PASSED] Buffer object for userspace [12:07:16] [PASSED] Kernel buffer object [12:07:16] [PASSED] Shared buffer object [12:07:16] ========== [PASSED] ttm_bo_init_reserved_sys_man =========== [12:07:16] ============== ttm_bo_init_reserved_mock_man ============== [12:07:16] [PASSED] Buffer object for userspace [12:07:16] [PASSED] Kernel buffer object [12:07:16] [PASSED] Shared buffer object [12:07:16] ========== [PASSED] ttm_bo_init_reserved_mock_man ========== [12:07:16] [PASSED] ttm_bo_init_reserved_resv [12:07:16] ================== ttm_bo_validate_basic ================== [12:07:16] [PASSED] Buffer object for userspace [12:07:16] [PASSED] Kernel buffer object [12:07:16] [PASSED] Shared buffer object [12:07:16] ============== [PASSED] ttm_bo_validate_basic ============== [12:07:16] [PASSED] ttm_bo_validate_invalid_placement [12:07:16] ============= ttm_bo_validate_same_placement ============== [12:07:16] [PASSED] System manager [12:07:16] [PASSED] VRAM manager [12:07:16] ========= [PASSED] ttm_bo_validate_same_placement ========== [12:07:16] [PASSED] ttm_bo_validate_failed_alloc [12:07:16] [PASSED] ttm_bo_validate_pinned [12:07:16] [PASSED] ttm_bo_validate_busy_placement [12:07:16] ================ ttm_bo_validate_multihop ================= [12:07:16] [PASSED] Buffer object for userspace [12:07:16] [PASSED] Kernel buffer object [12:07:16] [PASSED] Shared buffer object [12:07:16] ============ [PASSED] ttm_bo_validate_multihop ============= [12:07:16] ========== ttm_bo_validate_no_placement_signaled ========== [12:07:16] [PASSED] Buffer object in system domain, no page vector [12:07:16] [PASSED] Buffer object in system domain with an existing page vector [12:07:16] ====== [PASSED] ttm_bo_validate_no_placement_signaled ====== [12:07:16] ======== ttm_bo_validate_no_placement_not_signaled ======== [12:07:16] [PASSED] Buffer object for userspace [12:07:16] [PASSED] Kernel buffer object [12:07:16] [PASSED] Shared buffer object [12:07:16] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ==== [12:07:16] [PASSED] ttm_bo_validate_move_fence_signaled [12:07:16] ========= ttm_bo_validate_move_fence_not_signaled ========= [12:07:16] [PASSED] Waits for GPU [12:07:16] [PASSED] Tries to lock straight away [12:07:16] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled ===== [12:07:16] [PASSED] ttm_bo_validate_swapout [12:07:16] [PASSED] ttm_bo_validate_happy_evict [12:07:16] [PASSED] ttm_bo_validate_all_pinned_evict [12:07:16] [PASSED] ttm_bo_validate_allowed_only_evict [12:07:16] [PASSED] ttm_bo_validate_deleted_evict [12:07:16] [PASSED] ttm_bo_validate_busy_domain_evict [12:07:16] [PASSED] ttm_bo_validate_evict_gutting [12:07:16] [PASSED] ttm_bo_validate_recrusive_evict stty: 'standard input': Inappropriate ioctl for device [12:07:16] ================= [PASSED] ttm_bo_validate ================= [12:07:16] ============================================================ [12:07:16] Testing complete. Ran 102 tests: passed: 102 [12:07:16] Elapsed time: 11.440s total, 1.680s configuring, 9.544s building, 0.182s running
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
Patchwork
CI✓ Xe.CI.BAT: success for drm/xe/xe_sysctrl: Add system controller component for Xe3p dGPU platforms (rev3)
In reply to Anoop, Vijay== Series Details ==
== Series Details ==
Series: drm/xe/xe_sysctrl: Add system controller component for Xe3p dGPU platforms (rev3)
URL : https://patchwork.freedesktop.org/series/163196/
State : success
== Summary ==
CI Bug Log - changes from xe-4778-41579e12882a0a3b881bfade003fcb1fd39c347c_BAT -> xe-pw-163196v3_BAT
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (14 -> 14)
------------------------------
No changes in participating hosts
Known issues
------------
Here are the changes found in xe-pw-163196v3_BAT that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@xe_waitfence@reltime:
- bat-dg2-oem2: [PASS][1] -> [FAIL][2] ([Intel XE#6520])
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4778-41579e12882a0a3b881bfade003fcb1fd39c347c/bat-dg2-oem2/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-163196v3/bat-dg2-oem2/igt@[email protected]
#### Possible fixes ####
* igt@xe_waitfence@abstime:
- bat-dg2-oem2: [TIMEOUT][3] ([Intel XE#6506]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4778-41579e12882a0a3b881bfade003fcb1fd39c347c/bat-dg2-oem2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-163196v3/bat-dg2-oem2/igt@[email protected]
[Intel XE#6506]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6506
[Intel XE#6520]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6520
Build changes
-------------
* Linux: xe-4778-41579e12882a0a3b881bfade003fcb1fd39c347c -> xe-pw-163196v3
IGT_8825: 531ebe0606453021b88f794aad255d9e1a234d3d @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-4778-41579e12882a0a3b881bfade003fcb1fd39c347c: 41579e12882a0a3b881bfade003fcb1fd39c347c
xe-pw-163196v3: 163196v3
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-163196v3/index.html
Patchwork
CI✓ Xe.CI.FULL: success for drm/xe/xe_sysctrl: Add system controller component for Xe3p dGPU platforms (rev3)
In reply to Anoop, Vijay== Series Details ==
== Series Details ==
Series: drm/xe/xe_sysctrl: Add system controller component for Xe3p dGPU platforms (rev3)
URL : https://patchwork.freedesktop.org/series/163196/
State : success
== Summary ==
CI Bug Log - changes from xe-4778-41579e12882a0a3b881bfade003fcb1fd39c347c_FULL -> xe-pw-163196v3_FULL
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (2 -> 2)
------------------------------
No changes in participating hosts
Known issues
------------
Here are the changes found in xe-pw-163196v3_FULL that come from known issues:
### IGT changes ###
#### Possible fixes ####
* igt@xe_exec_system_allocator@pat-index-madvise-pat-idx-uc-multi-vma:
- shard-lnl: [FAIL][1] ([Intel XE#5625]) -> [PASS][2]
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4778-41579e12882a0a3b881bfade003fcb1fd39c347c/shard-lnl-7/igt@xe_exec_system_allocator@pat-index-madvise-pat-idx-uc-multi-vma.html
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-163196v3/shard-lnl-2/igt@xe_exec_system_allocator@pat-index-madvise-pat-idx-uc-multi-vma.html
* igt@xe_pmu@gt-frequency@gt0:
- shard-lnl: [FAIL][3] -> [PASS][4] +1 other test pass
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4778-41579e12882a0a3b881bfade003fcb1fd39c347c/shard-lnl-6/igt@xe_pmu@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-163196v3/shard-lnl-7/igt@xe_pmu@[email protected]
[Intel XE#5625]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5625
Build changes
-------------
* Linux: xe-4778-41579e12882a0a3b881bfade003fcb1fd39c347c -> xe-pw-163196v3
IGT_8825: 531ebe0606453021b88f794aad255d9e1a234d3d @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-4778-41579e12882a0a3b881bfade003fcb1fd39c347c: 41579e12882a0a3b881bfade003fcb1fd39c347c
xe-pw-163196v3: 163196v3
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-163196v3/index.html