From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 857AEE7717D for ; Fri, 13 Dec 2024 07:04:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4530510EF0D; Fri, 13 Dec 2024 07:04:03 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="ZTNUydVA"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6490210EF0D for ; Fri, 13 Dec 2024 07:04:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1734073441; x=1765609441; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=41zIJwYZMuxR3MQBvB1VvfBER4oO0yqrSHlE34hy2VI=; b=ZTNUydVAONZ7G4c5ZwBk3ImAYOheKnWo6PsY0voBymUA3C526qpgoNau sWbb/GdckOXonPAZQ3npfiV6EqZDpSW1moKj8/0DKW6KzBXmbrSwGVMe3 FYLyAiJpuIuQc4jauuDITX0LMHIMrxuObV5BvcyB58OMQBpuN3MQ/DWdi L4qb9u/wlfxJ902Q9UV3kA6qPPgMk4Sd3e8CdcMbpZNyJFWC0v8RWGIiW o2bmA6VNnAeloTRw5iM0ddJ3L1qWpjGunVWCOTnbtG/PGqTnsvVPBg8V6 Uv134mhd5F72V+IaBecm4O/WwS/eq/uMUckgyXO1VDnV27b0bYDxlhSe2 g==; X-CSE-ConnectionGUID: S31dQ088QdiMzucO0tDrLA== X-CSE-MsgGUID: 2/QfRp0rQXGAnCwyylh06Q== X-IronPort-AV: E=McAfee;i="6700,10204,11284"; a="45128826" X-IronPort-AV: E=Sophos;i="6.12,230,1728975600"; d="scan'208";a="45128826" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2024 23:04:01 -0800 X-CSE-ConnectionGUID: ydQOU+WHTPOX/bgfqTK0sA== X-CSE-MsgGUID: o8mxoslSRF+cfaqboJ+iUQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="119712489" Received: from ilevi-mobl.ger.corp.intel.com (HELO ilevi-mobl.intel.com) ([10.245.160.81]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2024 23:04:00 -0800 From: Ilia Levi To: intel-xe@lists.freedesktop.org Cc: ilia.levi@intel.com Subject: [CI 0/4] MSI-X support Date: Fri, 13 Dec 2024 09:03:49 +0200 Message-Id: <20241213070353.1511-1-ilia.levi@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" This patch set introduces MSI-X workflow. This is a rework of previously published series 135422 (https://patchwork.freedesktop.org/series/135422/) and a continuation of series 140877 (https://patchwork.freedesktop.org/series/140877/). It includes: 1. Basic MSI-X workflow with GuC-to-host and "default MSI-X" interrupt handlers. 2. MSI-X interrupts allocator to allow dynamic resource management. 3. uAPI flag to xe_exec_queue_create_ioctl that allows creating an exec queue with its own MSI-X interrupt. v2: Rebase + fix kernel doc issue v3: Rebase + fix sriov_basic test failure v4: Another attempt to fix sriov flows v5: - Rebase - Optimize irq.enabled access (additional patch) - Check irq.enabled in new IRQ handlers - Code review comments (Piotr) Dani Liberman (1): drm/xe/uapi: Support requesting unique MSI-X for exec queue Ilia Levi (3): drm/xe/irq: Separate MSI and MSI-X flows drm/xe: Initial MSI-X support for HW engines drm/xe/irq: Manage MSI-X interrupts allocation drivers/gpu/drm/xe/regs/xe_engine_regs.h | 3 + drivers/gpu/drm/xe/regs/xe_lrc_layout.h | 3 + drivers/gpu/drm/xe/xe_device.c | 4 +- drivers/gpu/drm/xe/xe_device.h | 3 +- drivers/gpu/drm/xe/xe_device_types.h | 8 + drivers/gpu/drm/xe/xe_exec_queue.c | 59 +++- drivers/gpu/drm/xe/xe_exec_queue_types.h | 4 + drivers/gpu/drm/xe/xe_execlist.c | 10 +- drivers/gpu/drm/xe/xe_hw_engine.c | 7 +- drivers/gpu/drm/xe/xe_irq.c | 331 ++++++++++++++++++++--- drivers/gpu/drm/xe/xe_irq.h | 9 + drivers/gpu/drm/xe/xe_lrc.c | 24 +- drivers/gpu/drm/xe/xe_lrc.h | 2 +- include/uapi/drm/xe_drm.h | 8 +- 14 files changed, 423 insertions(+), 52 deletions(-) -- 2.43.2