From patchwork Fri Jan 17 22:09:42 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Vivi X-Patchwork-Id: 13944018 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 DA7A0C02188 for ; Fri, 17 Jan 2025 22:10:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7845610EB7E; Fri, 17 Jan 2025 22:10:20 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="MBuBI+OK"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8E37F10EB7E; Fri, 17 Jan 2025 22:10:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1737151819; x=1768687819; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=6taVNAiODYm6hin2U8bpfDNrm7BlrEkq+T8O6QeG6ho=; b=MBuBI+OKqNRq98i9umwKG5CU5lwfAr5swILgF2q3jRD+X7cV+211W6xv NFEaHSkcehtZJAW+IAyRkzig6vZHbojlNNvu49iIYvnYaWR7pq+hKRk0W a/KpeoiTTJCRhI1S5ao2F4IrF1Az0NCXA7xXWgzVj1+Xdw+blkLgXuVWb KZFLYLFetFrTWdYYn5AKzXrnTqU5YhqTKUlQRdavYTuSBcLF3kYglAtIV zh/NPsGaDU5cpDXl0xaq/cSdUP7s84wfRCmBYymkVutpd0mExRzMPE2f+ vILd4hSTM7Kf+qeGOfPgi6BjmOsJtueRVbYeWRWsg4sjzrz7o7+apKCZQ g==; X-CSE-ConnectionGUID: vtYpEwcqRiaagZG8BI6i7w== X-CSE-MsgGUID: WWxE+l2eSmWtXIUDsYKXig== X-IronPort-AV: E=McAfee;i="6700,10204,11318"; a="48264604" X-IronPort-AV: E=Sophos;i="6.13,213,1732608000"; d="scan'208";a="48264604" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2025 14:10:18 -0800 X-CSE-ConnectionGUID: KaEmXUDGRbWNTTFMWDT2JA== X-CSE-MsgGUID: sc6th0cPSRSwk7TKaoLw7Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,213,1732608000"; d="scan'208";a="110921398" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orviesa004.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 17 Jan 2025 14:10:18 -0800 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.44; Fri, 17 Jan 2025 14:10:17 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.44 via Frontend Transport; Fri, 17 Jan 2025 14:10:17 -0800 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.48) 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.44; Fri, 17 Jan 2025 14:10:17 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=N/bsrC9xg6Dl+btrSz4ZsM5IXrL+tPWrKJHzMpd8D9H7S+GeHgT5uF19uEceKX3UdaQOtZoU0PTnF5QFArkScQ1Q8O744JMQ9I3lgkPJkHhUAjCzzbaXzhzQOfuSHFBfCI9bT9eYkTIaCK/NvpGo16/hp2B2i0mKL55PzbnlNhcMab5F6P/qpnshR/29oJGoRbY4IHxp/Yh/D6OJUYdUf1raqobcel0gvcehqztS5mXufxVqspzjjVNTHl/HNczxVB6UgjwjhrVkyViaxrwZpzQ2ca86JSEaDrPj91BCSr44YCFWAxxaCsOIO04cfwWsChmVGWqhOO0UmAp9XqgjVw== 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=qSrvV3Ael2jglMyhlhqRd5HktjF9IpJWzDLrO8TJ8iQ=; b=l4u/ShmmZoMt/+u/bkQrGTJ5AbBdREen2TS2GKpwntnrbQ4F0MaNWYWgQHxSeWr+SSGAZ8/4nPVOKWPryl7HkLgJcR66qkum4CzMHrHpOBuD/Os3Nq08B68EcZvcnGmgiOSxAnO0t/Tjo+8Y+aPm8WG+BhcQpXyAj32hB76yDTk0CDwiPaCp9bhF2l8gh7CzVBI1lGh9QeWkb7vGvZ9m7M1W/3tV3fqinfc+HHFs35Ye8XgQUowKmRBRVxdZk76gBvqwN+iw3eFuAHfRf+p7K1PdKWo7wf22ef5cJQuY0iK2fVsTkUpMK/TfI7Dld2JiUcPIKbmHcHhtKzyHKjQIdQ== 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 SN7PR11MB8282.namprd11.prod.outlook.com (2603:10b6:806:269::11) by LV3PR11MB8532.namprd11.prod.outlook.com (2603:10b6:408:1ae::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.16; Fri, 17 Jan 2025 22:09:50 +0000 Received: from SN7PR11MB8282.namprd11.prod.outlook.com ([fe80::f9d9:8daa:178b:3e72]) by SN7PR11MB8282.namprd11.prod.outlook.com ([fe80::f9d9:8daa:178b:3e72%5]) with mapi id 15.20.8356.010; Fri, 17 Jan 2025 22:09:50 +0000 From: Rodrigo Vivi To: , CC: Rodrigo Vivi , Maarten Lankhort , Jonathan Cavitt Subject: [PATCH 2/3] drm/xe: At shutdown disable commit helpers instead of flushing Date: Fri, 17 Jan 2025 17:09:42 -0500 Message-ID: <20250117220943.506991-2-rodrigo.vivi@intel.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250117220943.506991-1-rodrigo.vivi@intel.com> References: <20250117220943.506991-1-rodrigo.vivi@intel.com> X-ClientProxiedBy: MW4PR04CA0286.namprd04.prod.outlook.com (2603:10b6:303:89::21) To SN7PR11MB8282.namprd11.prod.outlook.com (2603:10b6:806:269::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN7PR11MB8282:EE_|LV3PR11MB8532:EE_ X-MS-Office365-Filtering-Correlation-Id: a0440f37-99ec-4885-54bf-08dd3743a97c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|1800799024; X-Microsoft-Antispam-Message-Info: E4VWPQGskIiXK2eWvBDrVAtjXJJi2/1zKlSt0vE/Vm57BEC7wK0KFRq6S/hnF5uaVXW0siswOaLj14hcIEEhADglEJWS45OqFNS3A5gDBJk0NxtTDR745qlZaibcCbXtS3NweDG0gMNbNsieF8yQyEo3m4H1NnEY+O3eZHY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wmtjk9N6G4PgEJJwghVipU8I69z6Bl75Xk21TlcKe5MUYsfYB4QIUo2Y2FBQrE/m9QTijpsdypWJMmwt3chGArKVHjefjEO8ClJz4SvWv8OOvAvSrDKC7x8p65e+6KOwsScbxyw+BI9VQqZVx/Y4jYAcALwI8 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN7PR11MB8282.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: r35Ass6ke00DumOV2dCcDU+H4znJHmywwis84YCNEMqJP8YHoQ4vJSmhG70w04XTM4NbBBtIeT4xA4rymUtPElA48Yvf5v9YNk0ZajSQUKVq3wrswX87Umz2+3Or+CBcfjx5omv4oUGnCbxFu6vPmJCTD23AwqLefVBuAYMIWOLfzKqQxTODniXLZQ/8Ok045SwHZ9Jicpd+jJ0Pnkz/XHyZwdflK43A2hOKToOJwngWSiGqNXmpt95MRurUtFaoV3dZs/JI9ZbzihiyRAYDbhVUUwOZF/RsWFTjJD2tSJb8AuNmwsZe09o2PJSKAULc9Xp6z1p83ygeDdRkdv/N3OJ0XOQrNMrZHaaXpNxV4ZAXcP9J8JnaWUgZ8HN1eeS9ZGlzqqXCnZGxGUJz+Oaxjdk8zqfgXnzEbMN+mGZHEWUzcs0SZczFLATqu3xNBsccVWFoX2NoCFw14lzmxI7IvRgA7RqXZR8rYJtBf1qkXukt8Zjp16pWWGGDeLaCl3Hrc4SSn612yEZElI/u5S6hilb/AhsBk5Uerm1MSziqr8Ck+ThEjNh7DEWE1iJuOoxBw4cbxuVWR6EdqHBUGFLjMrc/UkRApbx1EdKGyBS/Ud99g95pFkbmnmgvVr/eXtYcez6TgwH7/Dp/QvvZzWprYQ+pXtC+krkyL51GAJseHAY9XQMYf+EtCJZZImKSlGXJ2RaQc16ZGyk0gXNLUShz+AxHyGc5bhcfRv1GfL6zUwri+7VMmzO+snHZxBnHc8u+pC3iiKE7m4MOmUMDuVyV6HVBZAKayw4Q756EzvWI9emz3R3kU6k9I5vC0hCDwrxBeZFIFqnnOQME4cgcyDmjh76XX6Od1RxMROo2FGlZ4xclAUb5DPtzykkH14BPlX9bF6lPRRz9B1N6zSLXLpV79Cc0eCSsc2FxBnlHz1HMCEVHuctLsjXkb+jho8hVXAC8AkKmvAI+w1uPF0g6CJVm/iMBaZd69+CVR3ZDbH6PcBrql3/ank+emaQYn0co3S6QVNbx/nUqesmcF3ksRndnN0Dwu7w9UZF6P4X4oLZFhWRpLaaLQxDxulQcLLwWHbHjXscXqH3FFkRtlKUbAEJx8GmP6dQG1+pifd69s2Y9L0pGsuM5uxoTUyWFM7213bck3SKddQpSZXAu27YkHi5vdEjOPJ9qQoID0P5Rlmmy5FbeJc/G7rTg1CFiXt4mA6l44bCYKZxed/u9hKXcOUPtf7Hg5c1XnaXAMIFMKhbrkxbb7yv/LQBSON/A+gZKx4pLt/08VKsH5jsMMeDy6Pk9QdiRS+lX1KHsazY9vnMa5u/1zC+GqEr6yd77hQiyhtIg0b2LFTC2rPKD+POm1Nqm6cLRj/6DVxGl/5r5NC/ofKjH1MpclW9wnP5JqTj9QOCemhlFfh2t1Vdnnb/qM0DH8aVPfvjbPstosIco9ftVK4XpIV47BBmVW9l3J0X9xE5hLWlI5dQHaoxgBt5ctdSo5BPFhaaDvx4roef7apL1FNdZkUEU8zbIkzYyCBGsyj+ytn5707I1WKOi85ryCX4p2A7DfO9yn9dCygFGbAM9JaiL0vcmqyduHXLPzKiuUGPCUxUOqg0aD81ut9KrJFf90Q== X-MS-Exchange-CrossTenant-Network-Message-Id: a0440f37-99ec-4885-54bf-08dd3743a97c X-MS-Exchange-CrossTenant-AuthSource: SN7PR11MB8282.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2025 22:09:50.4095 (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: FTo2zdiH22HhaKWYhp5r1Xl5e3ti3C56mmx0IJM8Vm0dVqZEM4QhAAySGUoszJrLrKsTEP2Ru+XO9PfGo41uww== X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR11MB8532 X-OriginatorOrg: intel.com 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" This aligns with the current i915 display sequence. Cc: Maarten Lankhort Reviewed-by: Jonathan Cavitt Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/xe/display/xe_display.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/xe/display/xe_display.c b/drivers/gpu/drm/xe/display/xe_display.c index 96ba9595bf2a..4f60d7bd7742 100644 --- a/drivers/gpu/drm/xe/display/xe_display.c +++ b/drivers/gpu/drm/xe/display/xe_display.c @@ -10,6 +10,7 @@ #include #include +#include #include #include @@ -378,10 +379,10 @@ void xe_display_pm_shutdown(struct xe_device *xe) if (has_display(xe)) { drm_kms_helper_poll_disable(&xe->drm); intel_display_driver_disable_user_access(display); - intel_display_driver_suspend(display); + + drm_atomic_helper_shutdown(display->drm); } - xe_display_flush_cleanup_work(xe); intel_dp_mst_suspend(display); intel_hpd_cancel_work(xe);