From patchwork Thu Jul 11 22:16:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lucas De Marchi X-Patchwork-Id: 13731136 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 5B09BC3DA4A for ; Thu, 11 Jul 2024 22:17:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5791D10EA98; Thu, 11 Jul 2024 22:17:24 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="MT/rLCdx"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by gabe.freedesktop.org (Postfix) with ESMTPS id 862C810E9D1; Thu, 11 Jul 2024 22:17:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1720736242; x=1752272242; h=date:from:to:cc:subject:message-id: content-transfer-encoding:mime-version; bh=PN9nfyMd7lbySbcE3MmnRKenJaQuu70M5OZOvrbYgwI=; b=MT/rLCdx/WceRmwH4qzyvqeJsj2Sz8VHgjVHWHYymxnNmpX4cUKyBsJ0 tNJKIUOhzQh54cefAfoLtR0ndnD2rHGYP9GpIftU1U8EphyiNgZnupbw5 +CaM9yPO+1zITeZOuZe9RTfmiHEhpa0OdpJOKshdaRuFwFRV2lxMyYCbl BkSL8G+pFZvP4EQpEPJtR6MLARAccvrbZHml0vQCADLoxQ89Dk6XW3UWQ teNvBcGfqv/ipwjLvyijLO1rwFehUkZkzrSJp36kq+rr0D9WAL5gp6Tn+ /zNe8xgXn8GCeixVlnmommfINGgdj/RT2upw3FBE//cJSf61My9bFn6tg g==; X-CSE-ConnectionGUID: kNSiAzbET4qyVKJMReEeGQ== X-CSE-MsgGUID: w5W91EZ1SYiLfcKAgJOhMg== X-IronPort-AV: E=McAfee;i="6700,10204,11130"; a="12510375" X-IronPort-AV: E=Sophos;i="6.09,201,1716274800"; d="scan'208";a="12510375" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jul 2024 15:17:21 -0700 X-CSE-ConnectionGUID: 3Qgt2GnlTdWpjwNI9GS9Jg== X-CSE-MsgGUID: 0cOu/ampSQWROHiO1266HA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,201,1716274800"; d="scan'208";a="48597211" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orviesa010.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 11 Jul 2024 15:17:20 -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, 11 Jul 2024 15:17:20 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) 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, 11 Jul 2024 15:17:20 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx601.amr.corp.intel.com (10.18.126.81) 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, 11 Jul 2024 15:17:19 -0700 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.40) 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, 11 Jul 2024 15:17:19 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=zSWkdlC0u6Ohd1xeNlp67ZbFivz5ko1AjoJanCz4FVdsSegDcvfS/IIIc4SUGh0uwQZHURFrnFVHrV0v3jqJhFqkDlCt5jCFDbpBSW8caBjjQLcc6pc6yI3Cx91WMJwE4f4kCzQ8Qh2y3GbhIkKdATuyIOZx2VX/sz4SYvlnd1Bw37KjvbVQNxjHFN7Eal8KPZPTfUdd+9WJM20enSLPA0+BLObGBU4j1Rs3Uavjk1ku3VJDHL9az6YZjkCIcZ2moy2/4eIk38tOLNF/eUGoAN2Z4oQXPn/O5N1PsdepyuMQwZ46ireWz1M/kEdm3o9HNj3/GGOSb4SdeL+JS0G0Vg== 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=B2dqosbfNTVcTDccSkLQqq0mA7nXP89loWzXPBjoGOM=; b=uZQgqmwUmGCXKlDJFt+AxoYB2X0/4yEtBLuyJ2yQsJvazDVNEsEfP5Od1aZvULNCc2vctCaT5kad41k9efQ3O12uJW+DUarXm9MAQNCsrSIDQ4OeDxzDsccCKhIzel/HTWLgFmXSRHRDYbW18/GIqH/kJw141uDnFmgJp0zwmcSf6JzG9/z7BOv9oAV+OCs99OobzfJ+QcDTtKgzPv2TMS+y54CvwXIUetUAkEKRhx7e+GVA4DhrpkVIujHb5d71WbmPoy+r30uvvYPqJmCkGfcWHGYd6LSTTgw2QVt7vC7tTvy9dCh6NY2/mB6bLKP6+jMEmZJViCWUImkq0SeA8A== 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 IA1PR11MB6345.namprd11.prod.outlook.com (2603:10b6:208:38b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Thu, 11 Jul 2024 22:17:15 +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.7762.020; Thu, 11 Jul 2024 22:17:14 +0000 Date: Thu, 11 Jul 2024 17:16:58 -0500 From: Lucas De Marchi To: Dave Airlie , Daniel 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: MW4PR04CA0171.namprd04.prod.outlook.com (2603:10b6:303:85::26) To CY5PR11MB6139.namprd11.prod.outlook.com (2603:10b6:930:29::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY5PR11MB6139:EE_|IA1PR11MB6345:EE_ X-MS-Office365-Filtering-Correlation-Id: aba59f70-5531-4d90-8399-08dca1f737bd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?iso-8859-1?q?u1RMY0sKVv3y9s3ZbNpC6voiFk?= =?iso-8859-1?q?Huer8XdD+/EfoamoYvMy3TazOoZ84KWhcdhYrfv85IIApk3fok9yNipDOLy/?= =?iso-8859-1?q?PJU+Zuq3EGzUlFOwJwMzQQ9M6OHUYjk5g3PVoIvmnGpFOzUVQ/4BUkUJ69A7?= =?iso-8859-1?q?aQHcZtO8nvtTWfulFSDIjdWeOcmaLPuU2LPGyMHHvV5jo9m9VyY2xixPeg2e?= =?iso-8859-1?q?7jnITwDtsxWHJZ/l8IWzJVzkuMremmLL18yPTLPYb1AumXCd0ByEG+2tZs0M?= =?iso-8859-1?q?Ksfbv7N/Tx+MysHIZWC19DCcLSwplDHHEeZv98zHZcbgautung2AoOZJ8jkQ?= =?iso-8859-1?q?bJQzBJKeEhoegJ3YJfp8LH029DVmVEZAiiPr620sB7S+BoEkaPhNK+0fBpFm?= =?iso-8859-1?q?IMjOb1TuLNXKn7+8auhTEnV0mVCjOfBLj5Vq7dhY7I82BAVOgdoboQUXRoyh?= =?iso-8859-1?q?kY/Re+j0RQOXSG/XFJ97AE+mWDCvZja8dXo54yrVNl7Maazv20JxFF36qx98?= =?iso-8859-1?q?mCCWMVTJPIXJelEFkykV12izoeWZ3E9XglRp6Dj3ZtAbPc2XHqia8aLejyIT?= =?iso-8859-1?q?LSOnuhMg9zNpzXVIwzMHhW+E5D9GlBGzhv/P7xHFKjUNlNI6cvpXB1Cx8qSs?= =?iso-8859-1?q?F6PutrkR7GC0Is1+6hXOB9Pbalq5hstOhpGd9CkCyy8N5+f7okgn+RDSqyHI?= =?iso-8859-1?q?IByl4SxwRaoyQzxMWsPrshGG6O/PLSvW6mCBeGARazhKHmOJBwxd4kgQbfPD?= =?iso-8859-1?q?/feznmX+7F64iUQ8yonreVGjEJEo5voO2BI4BrTDKPKvVCNhUxgKhIy2JNDn?= =?iso-8859-1?q?/mTq2cH0DTusr3UETY7NItmGSRC+csOqxPjSS7RuaVcrWfvM/8JCEayp3a8P?= =?iso-8859-1?q?OjpMxvlvIXMO1iRbDy5VnPNLRB3XGPJU1o1RYx/Y4UCpAWhIr5zk7EhdwI5Z?= =?iso-8859-1?q?3Ap4mMZVTgYB3Duur5vx9+U3EioggsrE74fQ8CA71l4u57cLt4yDItQUz+/g?= =?iso-8859-1?q?vJgQTiSdy5Zc+CMvHoxG6umXJjl0PwEF0ZpHo8KWEDIuox4MY4tSKH9fiZz0?= =?iso-8859-1?q?E324p3UgFIxFP3txS0MEyABrQKnJVxEhc4ttFciRsdLbrOrA7anfASQY9Jsj?= =?iso-8859-1?q?islwzfvd6oNnleFwNMozcX2ya9s6/w4cMF2Otmn2Fl7OX7iMgIJ9CuQlJ+/X?= =?iso-8859-1?q?kXLJrRez8c6/d51okOpfDr2WEkq269h8pdvXPVT5oZ3USE+5tXN0pcV24d9K?= =?iso-8859-1?q?E1s6zU+wrgmVQ/FfDrkoEvn33Fi5oqnE+iCORI6aVS53ndntjXMSQ+YlZaMW?= =?iso-8859-1?q?AQ/6wyY1OAIiGdNeZ0ylfurA/OdQrZaT4XqVw=3D?= 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)(7416014)(376014)(1800799024)(366016); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?q?ygS4KpjUQ+jpsXcVhP6+ubz?= =?iso-8859-1?q?mlo4ESXsofU+E6+AzyoVOkF/s7wv3GG1vZWRtwIqoFeUpF/FeNcLcLig/VCD?= =?iso-8859-1?q?SndjLS55BWz9+DgtQrT0cyCIWguSB8lv8jGPJr0Dxvrcudh6DqWsx0SKQTfh?= =?iso-8859-1?q?5c1d5eG9wBJmHgorCNFr7NBPIzkbUak4Stb0ytkNRsfQDkmdRSzacVI7WNRq?= =?iso-8859-1?q?5fyR8szNRBN6PBv9Y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ndgahcQxGPZ0vpqDObCEqIYc?= =?iso-8859-1?q?Pz+J47Yo/eQlfbNciqHPVZDzzI7b9Q5yVquL2iiMvwKcDZrRlZZyJQk0tFW9?= =?iso-8859-1?q?72ZTuczcC3KLcMtkI7dljsBWb8Q+0yozsq2cD+szp6nj4iMCyCZo2o848fnP?= =?iso-8859-1?q?UArjT3MBqvDWXKdtfLS/mbb2r8y7L3R4Ua9eMKHNh47djvMfrSlpoJZBSTQY?= =?iso-8859-1?q?qlG2WKNhxhk0x8jSpyzfi50Pn9ubEAfAqU8MlXFK0yOGGO1NBk/mgMUQT23D?= =?iso-8859-1?q?MFAueatfDcfHfIs3TwOlJ5IRiqc+iLDKBaDtq1w85YHYA2dyPEC/zNQioBtH?= =?iso-8859-1?q?PRbGi7l6OYoOacWKyIYuWPzJgv3FdN8AXlAcYdW26nnL6yVyV32MZESQxtiP?= =?iso-8859-1?q?QKryxapnw3n2Rd/3cUU7GgbdRt6IweqR38MS3ROYsG1AyHrFsj1Cmj6OjLyY?= =?iso-8859-1?q?8/NAedOGpIANJvG38ksTJNWI2RER3SkY30AIpWv6HfUn5jPEgvY7e5WTgN4A?= =?iso-8859-1?q?JYHWhelGeEBhhofPBEVCdTgBMbWIB0H94+rXKBw=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: aba59f70-5531-4d90-8399-08dca1f737bd X-MS-Exchange-CrossTenant-AuthSource: CY5PR11MB6139.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jul 2024 22:17:14.5218 (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: GR6IrSB2jBiMCAjOnYzRGsPx8zn/qNMm38LVaLSdh8iuXKzoGCraW+iTFkM6r9I2ICMnD1TFlPQ1lvJYPLYeRJsQn+RAoPyazRjFvpcy0Eo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB6345 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 Sima, First patch has an important impact to userspace, changing the cahcing mode to write-back for system memory on DGFX. In this case we introduce a limitation in the cache selection uapi that is transparent to UMDs. I mean, no change on their side is needed. Coherence is maintained, but with some known possible and acceptable/accepted differences in CPU access speed. Second patch fixes a leak when finalizing hdcp gsc. drm-xe-fixes-2024-07-11: UAPI Changes: - Use write-back caching mode for system memory on DGFX (Thomas) Driver Changes: - Do not leak object when finalizing hdcp gsc (Nirmoy) The following changes since commit 256abd8e550ce977b728be79a74e1729438b4948: Linux 6.10-rc7 (2024-07-07 14:23:46 -0700) are available in the Git repository at: https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2024-07-11 for you to fetch changes up to 609458abd5a10180f513ca364d6c0ae30128c821: drm/xe/display/xe_hdcp_gsc: Free arbiter on driver removal (2024-07-11 08:25:32 -0700) ---------------------------------------------------------------- UAPI Changes: - Use write-back caching mode for system memory on DGFX (Thomas) Driver Changes: - Do not leak object when finalizing hdcp gsc (Nirmoy) ---------------------------------------------------------------- Nirmoy Das (1): drm/xe/display/xe_hdcp_gsc: Free arbiter on driver removal Thomas Hellström (1): drm/xe: Use write-back caching mode for system memory on DGFX drivers/gpu/drm/xe/display/xe_hdcp_gsc.c | 12 +++++--- drivers/gpu/drm/xe/xe_bo.c | 47 +++++++++++++++++++------------- drivers/gpu/drm/xe/xe_bo_types.h | 3 +- include/uapi/drm/xe_drm.h | 8 +++++- 4 files changed, 45 insertions(+), 25 deletions(-)