From patchwork Thu Oct 24 17:52:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Hellstr=C3=B6m?= X-Patchwork-Id: 13849518 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 ED2BACE8E9F for ; Thu, 24 Oct 2024 17:52:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 41F2610E987; Thu, 24 Oct 2024 17:52:36 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="QH9SOJGw"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id 267A510E982; Thu, 24 Oct 2024 17:52:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729792355; x=1761328355; h=date:from:to:cc:subject:message-id:mime-version; bh=zg/YQ9T7jHStSju9p5YmhGW+fwodf73N89YUifrLo0g=; b=QH9SOJGwSh8y9BpibhV2D6pv1amNz9xFstBHBldL8v5opmiMvfLXBYec 55jhUCtXzKVqNbptb+hjcOr3AguCu9L1c5Tfkmz0eC1Bf0M3gOnx2qpMc q5eKbIQ00fs9x0o002szNi2BiK8Y55KGpBmJBp8eMf9/zURzvwznWBvDz NDw8ukkGeUQBTG8MtjU+YFXxck1USOpK3Q9fU+ee7z6wn1unozvuDZsb3 UzzWMqPkfLAoV45XqZduv63mKcfPDY+Iv3vTZt4SRilRuu+eCLFV87+fN yWy+vcIWWOcPW8KgzbYbaCUeS/kyqR6XMIVPw4nXfrI2VSDYVyI4U9Wb4 g==; X-CSE-ConnectionGUID: JwbI/sgpQ7Sh3AOT7dCfjQ== X-CSE-MsgGUID: 7xFekCM2R66NY44ne0J8gg== X-IronPort-AV: E=McAfee;i="6700,10204,11235"; a="29344501" X-IronPort-AV: E=Sophos;i="6.11,229,1725346800"; d="scan'208";a="29344501" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2024 10:52:35 -0700 X-CSE-ConnectionGUID: fAKAJGjEQzW75ZYX78UXDw== X-CSE-MsgGUID: mf7hTXy9R6elVz5ytr2dcg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,229,1725346800"; d="scan'208";a="111468724" Received: from lfiedoro-mobl.ger.corp.intel.com (HELO fedora) ([10.245.246.140]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2024 10:52:30 -0700 Date: Thu, 24 Oct 2024 19:52:11 +0200 From: Thomas Hellstrom To: Dave Airlie , Simona Vetter Cc: Jani Nikula , Joonas Lahtinen , Tvrtko Ursulin , Rodrigo Vivi , Thomas Zimmermann , Maarten Lankhorst , Maxime Ripard , Thomas =?iso-8859-1?q?Hellstr=F6m?= , Lucas De Marchi , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, dim-tools@lists.freedesktop.org Subject: [PULL] drm-xe-next Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Hi, Dave & Simona, This week's drm-xe-next PR Thanks, Thomas drm-xe-next-2024-10-24: UAPI Changes: - Define and parse OA sync properties (Ashutosh) Driver Changes: - Add caller info to xe_gt_reset_async (Nirmoy) - A large forcewake rework / cleanup (Himal) - A g2h response timeout fix (Badal) - A PTL workaround (Vinay) - Handle unreliable MMIO reads during forcewake (Shuicheng) - Ufence user-space access fixes (Nirmoy) - Annotate flexible arrays (Matthew Brost) - Enable GuC lite restore (Fei) - Prevent GuC register capture on VF (Zhanjun) - Show VFs VRAM / LMEM provisioning summary over debugfs (Michal) - Parallel queues fix on GT reset (Nirmoy) - Move reference grabbing to a job's dma-fence (Matt Brost) - Mark a number of local workqueues WQ_MEM_RECLAIM (Matt Brost) - OA synchronization support (Ashutosh) The following changes since commit 2eb460ab9f4bc5b575f52568d17936da0af681d8: drm/xe: Enlarge the invalidation timeout from 150 to 500 (2024-10-16 16:11:10 +0100) are available in the Git repository at: https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-next-2024-10-24 for you to fetch changes up to 85d3f9e84e0628c412b69aa99b63654dfa08ad68: drm/xe/oa: Allow only certain property changes from config (2024-10-23 12:42:20 -0700) ---------------------------------------------------------------- UAPI Changes: - Define and parse OA sync properties (Ashutosh) Driver Changes: - Add caller info to xe_gt_reset_async (Nirmoy) - A large forcewake rework / cleanup (Himal) - A g2h response timeout fix (Badal) - A PTL workaround (Vinay) - Handle unreliable MMIO reads during forcewake (Shuicheng) - Ufence user-space access fixes (Nirmoy) - Annotate flexible arrays (Matthew Brost) - Enable GuC lite restore (Fei) - Prevent GuC register capture on VF (Zhanjun) - Show VFs VRAM / LMEM provisioning summary over debugfs (Michal) - Parallel queues fix on GT reset (Nirmoy) - Move reference grabbing to a job's dma-fence (Matt Brost) - Mark a number of local workqueues WQ_MEM_RECLAIM (Matt Brost) - OA synchronization support (Ashutosh) ---------------------------------------------------------------- Ashutosh Dixit (7): drm/xe/oa: Separate batch submission from waiting for completion drm/xe/oa/uapi: Define and parse OA sync properties drm/xe/oa: Add input fence dependencies drm/xe/oa: Signal output fences drm/xe/oa: Move functions up so they can be reused for config ioctl drm/xe/oa: Add syncs support to OA config ioctl drm/xe/oa: Allow only certain property changes from config Badal Nilawar (1): drm/xe/guc/ct: Flush g2h worker in case of g2h response timeout Fei Yang (1): drm/xe: enable lite restore Himal Prasad Ghimiray (26): drm/xe: Add member initialized_domains to xe_force_wake() drm/xe/forcewake: Change awake_domain datatype drm/xe/forcewake: Add a helper xe_force_wake_ref_has_domain() drm/xe: Error handling in xe_force_wake_get() drm/xe: Modify xe_force_wake_put to handle _get returned mask drm/xe/device: Update handling of xe_force_wake_get return drm/xe/hdcp: Update handling of xe_force_wake_get return drm/xe/gsc: Update handling of xe_force_wake_get return drm/xe/gt: Update handling of xe_force_wake_get return drm/xe/xe_gt_idle: Update handling of xe_force_wake_get return drm/xe/devcoredump: Update handling of xe_force_wake_get return drm/xe/tests/mocs: Update xe_force_wake_get() return handling drm/xe/mocs: Update handling of xe_force_wake_get return drm/xe/xe_drm_client: Update handling of xe_force_wake_get return drm/xe/xe_gt_debugfs: Update handling of xe_force_wake_get return drm/xe/guc: Update handling of xe_force_wake_get return drm/xe/huc: Update handling of xe_force_wake_get return drm/xe/oa: Handle force_wake_get failure in xe_oa_stream_init() drm/xe/pat: Update handling of xe_force_wake_get return drm/xe/gt_tlb_invalidation_ggtt: Update handling of xe_force_wake_get return drm/xe/xe_reg_sr: Update handling of xe_force_wake_get return drm/xe/query: Update handling of xe_force_wake_get return drm/xe/vram: Update handling of xe_force_wake_get return drm/xe: forcewake debugfs open fails on xe_forcewake_get failure drm/xe: Ensure __must_check for xe_force_wake_get() return drm/xe: Change return type to void for xe_force_wake_put Matthew Brost (5): drm/xe: Use __counted_by for flexible arrays drm/xe: Take ref to job's fence in arm drm/xe: Mark GGTT work queue with WQ_MEM_RECLAIM drm/xe: Mark G2H work queue with WQ_MEM_RECLAIM drm/xe: Mark GT work queue with WQ_MEM_RECLAIM Michal Wajdeczko (1): drm/xe/pf: Show VFs LMEM provisioning summary over debugfs Nirmoy Das (4): drm/xe: Add caller info to xe_gt_reset_async drm/xe/ufence: Prefetch ufence addr to catch bogus address drm/xe/ufence: Warn if mmget_not_zero() fails drm/xe: Don't restart parallel queues multiple times on GT reset Shuicheng Lin (1): drm/xe: Handle unreliable MMIO reads during forcewake Vinay Belgaumkar (1): drm/xe/ptl: Apply Wa_14022866841 Zhanjun Dong (1): drm/xe/guc: Prevent GuC register capture running on VF drivers/gpu/drm/xe/abi/guc_klvs_abi.h | 1 + drivers/gpu/drm/xe/display/xe_hdcp_gsc.c | 6 +- drivers/gpu/drm/xe/tests/xe_mocs.c | 18 +- drivers/gpu/drm/xe/xe_debugfs.c | 27 +- drivers/gpu/drm/xe/xe_devcoredump.c | 14 +- drivers/gpu/drm/xe/xe_device.c | 25 +- drivers/gpu/drm/xe/xe_drm_client.c | 8 +- drivers/gpu/drm/xe/xe_exec_queue_types.h | 2 +- drivers/gpu/drm/xe/xe_execlist.c | 2 +- drivers/gpu/drm/xe/xe_force_wake.c | 134 ++++-- drivers/gpu/drm/xe/xe_force_wake.h | 23 +- drivers/gpu/drm/xe/xe_force_wake_types.h | 6 +- drivers/gpu/drm/xe/xe_ggtt.c | 2 +- drivers/gpu/drm/xe/xe_gsc.c | 23 +- drivers/gpu/drm/xe/xe_gsc_proxy.c | 9 +- drivers/gpu/drm/xe/xe_gt.c | 110 +++-- drivers/gpu/drm/xe/xe_gt_debugfs.c | 13 +- drivers/gpu/drm/xe/xe_gt_idle.c | 26 +- drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 35 ++ drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h | 1 + drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c | 5 + drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c | 5 +- drivers/gpu/drm/xe/xe_guc.c | 15 +- drivers/gpu/drm/xe/xe_guc_ads.c | 5 + drivers/gpu/drm/xe/xe_guc_capture.c | 8 +- drivers/gpu/drm/xe/xe_guc_ct.c | 20 +- drivers/gpu/drm/xe/xe_guc_fwif.h | 1 + drivers/gpu/drm/xe/xe_guc_log.c | 9 +- drivers/gpu/drm/xe/xe_guc_pc.c | 50 +- drivers/gpu/drm/xe/xe_guc_submit.c | 29 +- drivers/gpu/drm/xe/xe_huc.c | 8 +- drivers/gpu/drm/xe/xe_mocs.c | 14 +- drivers/gpu/drm/xe/xe_oa.c | 678 +++++++++++++++++++--------- drivers/gpu/drm/xe/xe_oa_types.h | 12 + drivers/gpu/drm/xe/xe_pat.c | 65 ++- drivers/gpu/drm/xe/xe_query.c | 10 +- drivers/gpu/drm/xe/xe_reg_sr.c | 24 +- drivers/gpu/drm/xe/xe_sched_job.c | 2 +- drivers/gpu/drm/xe/xe_sched_job_types.h | 3 +- drivers/gpu/drm/xe/xe_sync.c | 5 +- drivers/gpu/drm/xe/xe_vram.c | 12 +- drivers/gpu/drm/xe/xe_wa_oob.rules | 2 + include/uapi/drm/xe_drm.h | 17 + 43 files changed, 997 insertions(+), 487 deletions(-)