From patchwork Fri Oct 11 03:12:30 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: 13832001 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 6681FD24468 for ; Fri, 11 Oct 2024 03:12:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D6A2610EA25; Fri, 11 Oct 2024 03:12:43 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="QQj4cwUy"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id C557110EA21; Fri, 11 Oct 2024 03:12:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728616362; x=1760152362; h=date:from:to:cc:subject:message-id:mime-version; bh=VCQUWrsdXcDMOZMt8VNDG4SYpn6L28Ptchrv0d6rzv8=; b=QQj4cwUy/s3JTVAaKGew+JmuvhAUpnRHUGOQSHfRWNuK2fl5YzXlRGao rdJjE/8/Wgl2PHF1Yi3wqddxcYaCBrfGzqcImyz70YVbVrHHTNh21xaKZ dENkEt7M3jYwufcDGjAHZINlk7JiCghWW0QXVl6ueqtj6OKnlTTqLw0zU d7kkZ7BA0tHtlVfVefqwnrTdY/SeQ50dPARPhmtSJ2PM5kyg9q68IBavp VHS0MAS693oZ1bLRNKzI+3t0S0JNB5rN01561KUCQW2Sq2mIjmCv2U8Kn RvtDISkuGXx9QIfsBmjzSd+gWxEETFH8cze4OQ9mqah/CnK9XNgni3NbA Q==; X-CSE-ConnectionGUID: vp7Ebo7yRreO/RUqSxoTqA== X-CSE-MsgGUID: sXvLJoM8TESjtDkoDG2Nqg== X-IronPort-AV: E=McAfee;i="6700,10204,11221"; a="31908453" X-IronPort-AV: E=Sophos;i="6.11,194,1725346800"; d="scan'208";a="31908453" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Oct 2024 20:12:42 -0700 X-CSE-ConnectionGUID: x5B6hcawRSOyUZE7X2deFQ== X-CSE-MsgGUID: q5GaGuvsRNyIskt23Z1Qtw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,194,1725346800"; d="scan'208";a="80785483" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmviesa003.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 10 Oct 2024 20:12:41 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 10 Oct 2024 20:12:40 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) 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, 10 Oct 2024 20:12:40 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.40) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 10 Oct 2024 20:12:40 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ctSgEj0d+KOsIfeh2DgyldzyoAZjsX/xt/w0RvT6s3E7wurgyd7UPQ7ib9UCayLGfNsYxMLnaS4vNh8pSc90NxrAv84b6J9sKN8Cb8ZedJzu6F1drC3EX+Xc1Brvuxqz2kcwc0n8F3/GYEczQoifpvvzkraq9Qe2uQpfB+6ERd1DMeb/03hSxYmXa7QUG8YOgA1XUEjyXEVRl2IjKt3CYOoaZWf/GDi/btc7MZ/wBpRI5eF6kPZjZPdsHoiH0WhZ9LwagKW1Y6KaTIPt2NMHtl4b1CDgViMCy1YZNKyrQpn1MFO7vHqIKzL50z6b+2E7HE6eRk/X0kC5uZFWVJ9ceA== 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=EBYHJ6Nfk13FrQxR4Egzh5qhlJNArdbsrd9GDiROdYQ=; b=v9RZhIjT7TbxmcedkIzIn+uIK/urDyDejIbBJWq5cjPsyr2DJQut5e8jN0evN//1M4FlyCwS1IAOis/Zx8F5hx0yGWNAouWo97Hf+xUjiq53sIgfD6kEyU+WF3RZiJF2+nGBT3iE00XStTTAHqBjdjHhHbwUpiD6vdSU8UL7W6YXSzrh5C7B5BDQiveB4FLqKMOL0c53o/E+8P4EpuuwV+Lelb2VCoMEniYCfO35EKP9nmggsTvUbHdJrlV86rgAyrbin5K5xZZOz4BNkw/gpSrnkxwabFU29X0OQHrfQ+C1GMB6TOXE46i81O8wKSBFaC7d4PBSv2zeIk/wg0n3FA== 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 DS7PR11MB7806.namprd11.prod.outlook.com (2603:10b6:8:db::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.18; Fri, 11 Oct 2024 03:12:38 +0000 Received: from CY5PR11MB6139.namprd11.prod.outlook.com ([fe80::7141:316f:77a0:9c44]) by CY5PR11MB6139.namprd11.prod.outlook.com ([fe80::7141:316f:77a0:9c44%6]) with mapi id 15.20.8048.017; Fri, 11 Oct 2024 03:12:38 +0000 Date: Thu, 10 Oct 2024 22:12:30 -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-fixes Message-ID: Content-Disposition: inline X-ClientProxiedBy: MW4PR03CA0027.namprd03.prod.outlook.com (2603:10b6:303:8f::32) To CY5PR11MB6139.namprd11.prod.outlook.com (2603:10b6:930:29::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY5PR11MB6139:EE_|DS7PR11MB7806:EE_ X-MS-Office365-Filtering-Correlation-Id: fec4aedb-514c-4549-040c-08dce9a28f7e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|7416014|376014|1800799024; X-Microsoft-Antispam-Message-Info: +OfO6f37XYldH/137YZ4pbOCXVJXP7NWN9RcAZ4/sFZSLb9EIDwO9SlIcJOW4VwfDSJYWlx7cWiBOO8D29C3IPcZeTQDv56ujiVlrjJMux0UE3rV/Xey7EhLcH/jtWVEF7j8HcKnGsOKa7LvEzVK+x5SgPvvs6bnQchl+/UcevHjY/R+B/vWSR2unmmffO3YdHEo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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)(366016)(7416014)(376014)(1800799024); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6jLSx4Uo3s9jNfOs28wig1OUUACmd7BSkpzScJB2yb1ujt3o/zFmuLZe7u0yiTLS30SA6NsxIYgpCyGUO7a4IRomlzDMe5uvw+LW+JedAy5bL5fy1TtoeMxJUALcWTBW4LcNXfdd2A1d7rMxnmLW7Qdf7QPNGNUQt0uCHjYaVSfdJ7+jWuLaaC3JLMnGRpxb2gvLdpqMN7EgifZdxRYaE7VnfTO0b+4/BShrf94Vdcz1/FZXOz6HYGg/688rtydO2ghihPYd1QofFfEtJUgrd93aIo0r2Qgvu5PoRk8a+wjo5vHEIVcjgVu+b8kP+jKht/wGTdXUHx1P7Dat+sVIBV1fnIbfRWB4iOJ7Eu1L4M7iU/tWtjyzTC9KtICUMaGiCjzyJz9aiFP6LlHbyKg+xFT0QJz+smO0/7AYA8Tedx0r+UDQHQ7iin3xBjBtVmmc1+wxcPxYRtRvgXYVgw7Hti+H5W8/pij5VDG326wHdaf5v4pW8XA0lkGMPUM8NB9KmrvFx9kRXWeotRw11ESIVo2kmM8RpJSeazMqIAx2B3MDdbxauhifmiKUq4LWckL4LVO3oqSuaxzIDC9DnNXzzmo7srIPOwshFtMQbb0dvcYoUW5yOlqH3U2pYy4yDUyBnXx67cQAuugGCE6KUYL9KY+/uXD3IHixGxQ5+EKDtTTKjEwKNq4jsjnscXA5SIS/s+nbYP/uviiCD/PYUJ8iP6dDni2/0EJql/mqd9dz19bIMyYZuMMjRs1294+WCO1Fl01agUvwlXyU6wl22nk8C18HP4NCKYGs+v2FYG2FnsU1PpSOxq7rV1bW9Tv3hnHN8CgO1jr/ilm/5MOaMqBiu1h2Weg21Tv+y7vIAqiVGlyNVeDtSlmoKPcraQNRzRJ9lA5i0NHpovIdZinp8O/8Z/KsLoe6UdgK+BbLSR3RA2vEcFlPR9ClFAByJrheEBuCDdBa22RrpMusvj3BPqZ8LgGSB4GNPEQpqm6uGzXFflxo1x+yilUYlfTVbd+u023SjcB2e5N51kjR+FBteVK97Sp9Qgd0SNdHz4femX6DDROepAm5nlFKF8M+RMVE/SQV0J2fDoFKyBd9QYKPRvNNWaOmyjl6kKIqkIaTMnm9pmupH5oasMTSVvTS6tQeAQdKresnL8nLEzq7+dlSRfMDSzU3oEwdzlUDyfvNcZqG9+gUqEz1tcUN2lIP8Z5xGZjcr6knRYn/kcaqQ353mbrvroIRm1hPsEzfnZ1K2052Jgw08sypRrI2ex1sfRz8f21zYqdK8PZHnQ7ugI6Eg0KWR0Xe4jwDHVV+TETD/axN4+0jFTyO6iBbDFn4MV6bszQEWRu93m7bQ9FCRk75/4DUTyvOsXAFl+FVcMU4avF+R5pCDFgJJFyMdhdO062UfRjiyt1fW2c8TaWN9yDYOsdHyAJKLt3NPnuhgILhBAaUFpy6I2iurjYLIbi0usiIFdY1lcrbpLxPTFxXlfhKUeoG94ZDOMNgaj8LoXCcC8+bKqoRdI2PB9WLB0rg0Ue3NJ1oCIY661ziGVUKr4q2rLDS8voUwO5kl2CaMaJO1504vUs38nlENi7jTI6dr8VLzDVoCfm+/pezgN4FdGqRN64pjg== X-MS-Exchange-CrossTenant-Network-Message-Id: fec4aedb-514c-4549-040c-08dce9a28f7e X-MS-Exchange-CrossTenant-AuthSource: CY5PR11MB6139.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2024 03:12:38.2820 (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: WudwqBb/UFcDyM+BAg55ZUFBVgNOm4H41Ht2hIKiGOyp4GmysYYqsJAZ5yyllwiJC5OTcw9Pn/Wd5Ly3iUxGfjjos3ZOSO4I36ChuIoUn+0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR11MB7806 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, A few drm-xe fixes for 6.12-rc3. thanks Lucas De Marchi drm-xe-fixes-2024-10-10: Driver Changes: - Fix error checking with xa_store() (Matthe Auld) - Fix missing freq restore on GSC load error (Vinay) - Fix wedged_mode file permission (Matt Roper) - Fix use-after-free in ct communication (Matthew Auld) The following changes since commit 8cf0b93919e13d1e8d4466eb4080a4c4d9d66d7b: Linux 6.12-rc2 (2024-10-06 15:32:27 -0700) are available in the Git repository at: https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-10-10 for you to fetch changes up to 1badf482816417dca71f8120b4c540cdc82aa03c: drm/xe: Make wedged_mode debugfs writable (2024-10-08 18:06:24 -0500) ---------------------------------------------------------------- Driver Changes: - Fix error checking with xa_store() (Matthe Auld) - Fix missing freq restore on GSC load error (Vinay) - Fix wedged_mode file permission (Matt Roper) - Fix use-after-free in ct communication (Matthew Auld) ---------------------------------------------------------------- Matt Roper (1): drm/xe: Make wedged_mode debugfs writable Matthew Auld (3): drm/xe/ct: prevent UAF in send_recv() drm/xe/ct: fix xa_store() error checking drm/xe/guc_submit: fix xa_store() error checking Vinay Belgaumkar (1): drm/xe: Restore GT freq on GSC load error drivers/gpu/drm/xe/xe_debugfs.c | 2 +- drivers/gpu/drm/xe/xe_gt.c | 4 +++- drivers/gpu/drm/xe/xe_guc_ct.c | 44 ++++++++++++++++++++++---------------- drivers/gpu/drm/xe/xe_guc_submit.c | 9 +++----- 4 files changed, 33 insertions(+), 26 deletions(-)