From patchwork Thu Sep 12 23:23:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas De Marchi X-Patchwork-Id: 13802881 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 D3656EEE273 for ; Thu, 12 Sep 2024 23:23:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D038710EC76; Thu, 12 Sep 2024 23:23:35 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="AuR7/qxc"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id CBEAA10EC77; Thu, 12 Sep 2024 23:23:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1726183415; x=1757719415; h=date:from:to:cc:subject:message-id:mime-version; bh=iYk3RaiAUXvvubxcW2DDn/6g52b0xJMMgCXPP0K/7vg=; b=AuR7/qxcX1Cn4UKnBiyQDedR4CZHb7QP/tJ8tqxebElJRk0Mv1g4czIm roqseDcDHzPltqRk13qVX8OFpF62s8+1u57dCWfcMqDodzSkEcWSsjTsC rfWWtsH2bmbr4vXB3tpnlPz48qqMEAT23UQLjPsz4JOPteuT6bXkA9gbM Y2i0lq1p5zgpLsTAqtCIXIwZoTMv4iKFN8nCTdXv0k/hB28mX7vJ2tYW7 L9LAcXXtZzdPPR18MibUS/VzuozPO9km0UK4NuTd9t5SYiKjIW0OQSxgi t9ToZo0MWzlU3FfylEn5wEb97F2oO4pgXB3X+Y2LAsD9xHFvuf0Wvn8+K g==; X-CSE-ConnectionGUID: /YKTMGwvQzmtYrzw0tqptQ== X-CSE-MsgGUID: UbLdC54oTWCuDDwN3Wbjxw== X-IronPort-AV: E=McAfee;i="6700,10204,11193"; a="47585746" X-IronPort-AV: E=Sophos;i="6.10,224,1719903600"; d="scan'208";a="47585746" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2024 16:23:35 -0700 X-CSE-ConnectionGUID: XwCpjVmzQY+g/X8Bd/krxA== X-CSE-MsgGUID: VwTDTUBsT6SP07dp4u5KMw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,224,1719903600"; d="scan'208";a="67707081" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orviesa010.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 12 Sep 2024 16:23:33 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 12 Sep 2024 16:23:32 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 12 Sep 2024 16:23:32 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Thu, 12 Sep 2024 16:23:32 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.101) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 12 Sep 2024 16:23:32 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=H/7bpNXS6gDNBqWLcJpRiAXkuo++veiLin5lgUTVbGoS5hWJhhg73q/5Zfjk+UQcNBz3kngZSzughHQhNGWpIZj/dpOGBjehc+L2UJp/FtmWv3UElgWWKA2QhCnsmalmxWYh+zDyi9NyLCJKwFYUfN6fIjVe+8kaftaZ7FdWx6m5n1br6PZCItmgHNQtxzkP7sWoosrxlED2DxMcPo2DYgIXOwLETmDSUnfoAeugfOvCf9rowRCgCy5IGiwtBQ++04VZAldXzLJw7gpOwUuoiyh0PtNQyL5E7P8s0yNyWJCH0Eki7aGAnbHGcDCuZkiKyGycy19CT05LTD9RR68Bkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VRXjHpyXKHqrktPM8LKGJw2i8iE39OztTnYZ/JIM+Ts=; b=ITDQPdadoLhcI/c7+coZopwuktF4TCqHunsDL+/x+89GRmxndgmnhbsglj00Mnr26xcnxcwzMcJoaSgJhh8v+bpTGms+PAm1t2n7bw66BIjGlpMeD7v8KxJmJHF1RxQ2SR/BDHPQ6hZCPjen6iAYleXBzU/ihGq2mWdrUE4TV/42xa8a/ELiotcb5nOzS7qaoNzRe31+j/uH1Np+rcJjxcg/349AWTyhl2vLiAc0kU7toAltWGuh7zkkEr0mo0vnVkxRtKSJ9mKp/F5wufrMrEzLydwhEf9wkoXgWs74xsd+cJz6B04u3Z5Sh0ocBKeEqNNAJDmdqkgREe3EqBIkMw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from CY5PR11MB6139.namprd11.prod.outlook.com (2603:10b6:930:29::17) by CYYPR11MB8407.namprd11.prod.outlook.com (2603:10b6:930:c1::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.25; Thu, 12 Sep 2024 23:23:30 +0000 Received: from CY5PR11MB6139.namprd11.prod.outlook.com ([fe80::7141:316f:77a0:9c44]) by CY5PR11MB6139.namprd11.prod.outlook.com ([fe80::7141:316f:77a0:9c44%7]) with mapi id 15.20.7962.017; Thu, 12 Sep 2024 23:23:30 +0000 Date: Thu, 12 Sep 2024 18:23:17 -0500 From: Lucas De Marchi To: Dave Airlie , Simona Vetter CC: Jani Nikula , Joonas Lahtinen , Tvrtko Ursulin , Rodrigo Vivi , Thomas Zimmermann , Maarten Lankhorst , Maxime Ripard , Thomas =?utf-8?q?Hellstr=C3=B6m?= , Oded Gabbay , "Lucas De Marchi" , , , , Subject: [PULL] drm-xe-next-fixes Message-ID: Content-Disposition: inline X-ClientProxiedBy: MW4PR03CA0292.namprd03.prod.outlook.com (2603:10b6:303:b5::27) To CY5PR11MB6139.namprd11.prod.outlook.com (2603:10b6:930:29::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY5PR11MB6139:EE_|CYYPR11MB8407:EE_ X-MS-Office365-Filtering-Correlation-Id: 7b98b17f-1d73-42b2-405e-08dcd381e969 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|7416014|366016; X-Microsoft-Antispam-Message-Info: +2Z9MJ8n8aD5zK+EKzh6W6vkBPMyOuTaHKNf9BXsv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ltlYtUNiQ85BEmtoA+qcLF02b1hccGvjitqODxKNO+cCfjUidG+0Ql67Sgc6atTFQEMpSmv1ZQQ2kfmGqapxw6KZJDKY0CEMpX4hKJl8VPrm70Kngv8391UnN4evmSHL5Gj9i8WIwN054UYgqufqL6oo7u1Ak/0FlukR6cLb7pJqb6KsXbzOgY2B6xbrQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CY5PR11MB6139.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(7416014)(366016); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: EGFwUW/bsSXzIi0TPGrOWkCHVLR6a5ThvGi3H8huHr9gimXZuEOyAGEquxyGJakINonj3T0dwongmSzRYVVdDbEPbnwALOD93XeodA59KF9EMmIVEoe3rZyaZVZ3G/UdPE+PHi0LU03U7pb6NHyfPggxreMK7morunuaqZtQCRAXynU5VnkL57f1fJNdzSje9lULQ3pU+9FtV1OCR81Kp0XXl4JCakNXzT5t7p3LgqbYYKRkbui/upc192Hogcp6jnFGQYNkBN1L5cyzHn2jUeN1CVhTbjCDlcrbCy4kBfor336TeCfCn2A7+VwbZsMJncBm0C+XMlJ5vvH5BuiKTwravh1tuzCEZ6ttgGP4sVPz8UB//Mv7qmdo1f6EzEKhqja3+oSunrZE8pEs5FPrExgnsp6Dx+nT6pAzN7GDpWpra9HrqCSwi56+ly7Bih2LLDeFDKwQIANwf6IY6sr1bMl3nQSaP98r0/TE/XJadP9E3cW/jBiFI698UK31jvJqTEMHNoegOW/XOpoIPMdxFjYO3Ze91tThh8O7ccHWCUBfnanU/Ap08r3PpjF3dCwg7tI5z7y9rMu7egJdH4UtuaqkX522b4LA5hWygV3ewNGezBu2k5tg1iscBwY8fYRPs95fRDbBxGuhTcMSnMgKd0uCEu8Vbk+dfcVJEurRGkD5ghGdpUqvr78sUIbTbr0CxidZLB0UG+OwSGlm3DkKyDW6Ckq8hnAEV4tW0CVZxTIuf/EJT877YqOPqbVhZ+GWnHNJb+QwS5HXErsimN7tWL1GIS51Of0d7hGVIhWjDivR3TB6AebCavYhYwEPDu+WdjXKxwyvw63fWPtP091jJMA+Un1tZgE9zO7JqvYIQPw99XJKQKENc9yquHIiA+tnmmbhIk+Yl7934ZarcRRgJwT/JpkrG8jMRb0GDnVWdZZEVWo6niY9+cP+panlma5NvJsPF+Kajm3iW+kGD5xvDhw5Ndm3RpGSnF7FAvfnc4hzBipJwKd0nE7SXd7Mac1B0+qmHSACHiVo9oiXRqx/SyWD3ebr78kOzAbHVLv4Rp0Ucst496mvdPtxquAF89RW7r1xfbdv0cEX8FHCOTZ30Q7JDzEej4M75KhEjt1bY6krzAm+7MZL/FShyr1SYUjixKjQPG4uZ/7m7Eissh6ozbmvyevNXWr4s03hnTq0MjBqi9g9BeQgn08pm/hOAlnmeg+NuOglK/S/7mBfUytqiQXTIIuRywMMdPIpdFI+G/1dN88Nqdbnk57Z1+QrXJXp/E7273TVSr7WST+424SL528WckTUEvhfAfpfiw3C/Pw2zgpzbzmN4A2UE068yWZUhzM0fkur0/kICB2yCHyVc/0ay9Ip+LRlUaTlqtyhfX0xrLwJoWQ/RKNNVrsPQz7fISLU5JIk0E+Plwvwvo34kEVDCRhKH5ptvldaWn2sBdgVua2fuupLUBTv3s4escybovLpLtf7SOFdh9V2N027Tfmzk+uOMdfJRomzetUOt1983deOXKI/E5pBK8gYeniPHEAEHeFnJRNHeenBDdyr6gsnWQ9LjP144LIUMM/O0jzubbBY4Ymc/J/vHQCu6GPoQEoM8h/F78teCOYAI/FWgA== X-MS-Exchange-CrossTenant-Network-Message-Id: 7b98b17f-1d73-42b2-405e-08dcd381e969 X-MS-Exchange-CrossTenant-AuthSource: CY5PR11MB6139.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2024 23:23:30.4126 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: bdcqN1DbqSUQVhKKiqrAciqFu8iPkHmYW6NdzuiRqEeAhzYVWv0UX0IMd36Jl+dCHBiNfGHfBYQnTrPbGUQrRR6+LZAxBLVHhesDyu5n3p8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR11MB8407 X-OriginatorOrg: intel.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Dave and Simona, Fixes for 6.12 cycle. Very normal fixes, mostly on error paths. Maybe something different from previous pull requests is the addition of the workaround, which we were not doing since they don't have a "Fixes" trailer. However as we are enabling Xe2 platforms starting with this release, we are being more careful and adding them when they are really needed. Thanks Lucas De Marchi drm-xe-next-fixes-2024-09-12: Driver Changes: - Fix usefafter-free when provisioning VF (Matthew Auld) - Suppress rpm warning on false positive (Rodrigo) - Fix memleak on ioctl error path (Dafna) - Fix use-after-free while inserting ggtt (Michal Wajdeczko) - Add Wa_15016589081 workaround (Tejas) - Fix error path on suspend (Maarten) The following changes since commit b615b9c36cae0468491547206406a909a9a37f26: Merge v6.11-rc7 into drm-next (2024-09-11 09:18:15 +0200) are available in the Git repository at: https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-next-fixes-2024-09-12 for you to fetch changes up to f1a4dceeb2bd4b4478e4f0c77dac55569d153fb3: drm/xe: Fix missing conversion to xe_display_pm_runtime_resume (2024-09-12 18:04:36 -0500) ---------------------------------------------------------------- Driver Changes: - Fix usefafter-free when provisioning VF (Matthew Auld) - Suppress rpm warning on false positive (Rodrigo) - Fix memleak on ioctl error path (Dafna) - Fix use-after-free while inserting ggtt (Michal Wajdeczko) - Add Wa_15016589081 workaround (Tejas) - Fix error path on suspend (Maarten) ---------------------------------------------------------------- Arnd Bergmann (1): drm/xe: fix build warning with CONFIG_PM=n Dafna Hirschfeld (1): drm/xe: fix missing 'xe_vm_put' Maarten Lankhorst (1): drm/xe: Fix missing conversion to xe_display_pm_runtime_resume Matthew Auld (1): drm/xe: prevent potential UAF in pf_provision_vf_ggtt() Michal Wajdeczko (1): drm/xe: Don't keep stale pointer to bo->ggtt_node Rodrigo Vivi (1): drm/xe: Suppress missing outer rpm protection warning Tejas Upadhyay (1): drm/xe/xe2hpg: Add Wa_15016589081 drivers/gpu/drm/xe/regs/xe_gt_regs.h | 1 + drivers/gpu/drm/xe/xe_exec_queue.c | 4 +++- drivers/gpu/drm/xe/xe_ggtt.c | 7 +++++-- drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 8 ++++---- drivers/gpu/drm/xe/xe_pm.c | 23 +++++++++++++++++++++-- drivers/gpu/drm/xe/xe_wa.c | 4 ++++ 6 files changed, 38 insertions(+), 9 deletions(-)