From patchwork Tue Sep 24 20:35:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Vivi X-Patchwork-Id: 13811179 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 6C794CF9C69 for ; Tue, 24 Sep 2024 20:43:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 173C410E760; Tue, 24 Sep 2024 20:43:49 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="KJKqaIZQ"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4716A10E75F; Tue, 24 Sep 2024 20:43:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727210628; x=1758746628; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=1bTXtWG15MpR0fHbG8z56jaP213m4bN+mAzlWrsd3cM=; b=KJKqaIZQYih0pJoc/y/zLzCJ140D5JB16NhNzDzXUl7ZFAIXJoRbTXwp zWfrFfpaKSkp8mvM2NlHNGA1TZLNKxYWncgmKyyFQOkuhx6G3f6EsZ8WJ 6y9XEtFFvlb8HvpR1Cs6D6LHAQSx1JWJsNlJF1d4doyMJXzOXKfZyJFaz 7zaRRi8AzeSK4U57pyRkxD37cJ1udJQmKnVcYVvZOE1YuhZb61VsSherS HFogM8WNQpP/B1LioBIBfSStqaNW15jBAcpdxFWycvEgykfez5XW/f8Ak KxC28Lokwl2fHIRGfc8DX/rLXa/7frK8Z6izn1zQuin2vb0HzRGdF9MuT Q==; X-CSE-ConnectionGUID: eVVSz/BSTTqfnsleGmNuYA== X-CSE-MsgGUID: dncZOb5ITiy49qmO9GM0tw== X-IronPort-AV: E=McAfee;i="6700,10204,11205"; a="26326187" X-IronPort-AV: E=Sophos;i="6.10,255,1719903600"; d="scan'208";a="26326187" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2024 13:43:48 -0700 X-CSE-ConnectionGUID: mkz28BbpSoyiYsLMrZ20kg== X-CSE-MsgGUID: M9tVyyUFRVaTelXlZ5yyRA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,255,1719903600"; d="scan'208";a="109001695" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orviesa001.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 24 Sep 2024 13:43:48 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) 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.39; Tue, 24 Sep 2024 13:43:47 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 24 Sep 2024 13:43:47 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) 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; Tue, 24 Sep 2024 13:43:47 -0700 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.44) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Tue, 24 Sep 2024 13:43:47 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ccrZHzYqkX7HfzudVaHSNrI3h9BQFcTdvkcejxrjjRKwXWfm3mxxLTP3gY4YAZuiJVBk6ZQejGW5PRl2wUUqr3wRtNP+/EyptO1PDeAPetWplpkZbia7mx2eio4iZRHZf2hYcv0DSK+tVdFDyT2JPNIqm0gRH0T7OfMNqVC2i4JogTap/odSKQWWuTnTOpfK6LBnspi3zrhaoE+AgUuUgbdWbfIJe4fLLK88LmXEejdMM37AVjovtR+0Yqpg0fcpsnwqtXqoU+Q0Z2bF76JvFpdvJ6agnbmttk3JE4tMXMlpcGewrhKusiW/2LWikUANsIbv8yFiMNWelti4Q7LPJw== 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=ngO28UCwI/G6U4rrsKlWSG/Kcr3dBBgHsDpnQ/yc9cY=; b=K2aNl3p2c4O/1I6ZHhP+lBtYmn9uvX7a4ZZ0FOk5CYboXTG2d0Z/nPxW3SpvXM86+2SXrdJYmjSOpVkgTi/7ks63AhsUtcuu1aMyeGUHQq4CjhIyJ3LtUDR/HJst1qBH0j3/LnrW+Bjnmog8/I/n4ZejhMemm13aiHbQdnJGZfyM0QjqtXKegpIqJxIBeftrzwP0rPS83atJuvrDaI0X7C5v+QCRNoFtIXnJtfhhZIYN5WfIhyi4X6CI3kecsl0aJs/ULE38JXMj/rc86oBdsjJZWhDYg1zqNaQIh07CTtZKbUpPY+/OFUkTAQPECPJ3yYwXKsp/I4/ViC+FQNAAZw== 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 BYAPR11MB2854.namprd11.prod.outlook.com (2603:10b6:a02:c9::12) by SJ2PR11MB7425.namprd11.prod.outlook.com (2603:10b6:a03:4c0::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Tue, 24 Sep 2024 20:43:44 +0000 Received: from BYAPR11MB2854.namprd11.prod.outlook.com ([fe80::8a98:4745:7147:ed42]) by BYAPR11MB2854.namprd11.prod.outlook.com ([fe80::8a98:4745:7147:ed42%5]) with mapi id 15.20.7962.022; Tue, 24 Sep 2024 20:43:44 +0000 From: Rodrigo Vivi To: , CC: , Rodrigo Vivi , "Vinod Govindapillai" Subject: [PATCH 24/31] drm/xe/display: Call intel_hpd_init on every runtime resume Date: Tue, 24 Sep 2024 16:35:45 -0400 Message-ID: <20240924204222.246862-25-rodrigo.vivi@intel.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240924204222.246862-1-rodrigo.vivi@intel.com> References: <20240924204222.246862-1-rodrigo.vivi@intel.com> X-ClientProxiedBy: MW4PR02CA0003.namprd02.prod.outlook.com (2603:10b6:303:16d::30) To BYAPR11MB2854.namprd11.prod.outlook.com (2603:10b6:a02:c9::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR11MB2854:EE_|SJ2PR11MB7425:EE_ X-MS-Office365-Filtering-Correlation-Id: 83b9e602-53c4-4294-eb18-08dcdcd994ed X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;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GpvPkjz3zOXYbW58AjBJ1qS/zMKJEVXbI6+n5xpu1s/V5aIdbGs82Dws2VeXOqtUvnHzeVtTn5e+iWcqlh8Io5kNbtkOld8n2YQ/H9pZuJ5uojJalOT2Q2+j1Inigf23VjVBITTyjj2qFpPWwgRiI69aPUANRhlq7Uy/FNXd96BUcgXVSXyEl0FbBYEzqmx0zXdObQzW2B2dI4ds85AGvSbEH6rcwRCyBGqzErpUlR7dsgVpKxZTG3LdzVxLDbtYIkomZHRFqEJPlYHRnTsurBlHXSr5wTXCpy8vO2NHsaLnYALzn0kTFIo3wPBXvKJ43yAUlH33+a5Mvg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB2854.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: L1Onn6eOxBBv9PCw8HCRZu07r4d5ZJHZdr8mSrMwDN3xILCdG+6TK9CDMDBWUJ29FqKACkMcnSDsvX/WZ+eRon7DhZIyXrQ8C1E0DoyBjaraX71luesjLF00swWJ/sbCDtJNOxkhuD4EStHlPfnbxvQnGMoU1AtEylhLPclm6w9SCt6kCs1UbICgFpowVvgQFmv5MNFSIivXLDT5HHNuDAweuvsvnezjj4QaCrJjD/nyt2o1VyXj4W5AOu5HbT150Dim5llGHEeBEFQfwq0emSSRkhCvla18qifsBNTGAOR+3S6HC5HPY1f3ExS/LipTa3NKJvqe4EJOrZ1NZp4F2i7oNBlvVWxWD1ONsY917bmWfJ0mm9zzbHKm/wlVX5SkIs9wYsPDTa043Xe23GvuBPecNEuLB5mS9y/WTHha9Sh+W+QkA0nR3ltpsDOk8ombCDTS0KKA4nAiealMf4EuZWZtD2GimV61ArhbadG/L+LENr2L7lRPMAiW94CFxXSlbQ8WVFenDI2tQ4bSIM/V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Iw== X-MS-Exchange-CrossTenant-Network-Message-Id: 83b9e602-53c4-4294-eb18-08dcdcd994ed X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB2854.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Sep 2024 20:43:44.6420 (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: +fUsfPAXlpR9GlYRS//NelDiN/IZITYkynJE2irXOQ1TOUlnsgz+brMASXFRBdK5wa9AVdUjKMmirwlquGoSJA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR11MB7425 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" We need to ensure this is called on every kind of runtime resume and not only on d3cold is possible. Aligning with the hpd sequence from i915. Cc: Vinod Govindapillai Signed-off-by: Rodrigo Vivi Reviewed-by: Vinod Govindapillai Reviewed-by: Jonathan Cavitt --- drivers/gpu/drm/xe/display/xe_display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/xe/display/xe_display.c b/drivers/gpu/drm/xe/display/xe_display.c index 1ab4dd51094f..4d1dd5294b89 100644 --- a/drivers/gpu/drm/xe/display/xe_display.c +++ b/drivers/gpu/drm/xe/display/xe_display.c @@ -330,8 +330,6 @@ static void xe_display_from_d3cold(struct xe_device *xe) intel_display_driver_init_hw(xe); - intel_hpd_init(xe); - intel_opregion_resume(display); intel_power_domains_enable(xe); @@ -470,6 +468,8 @@ void xe_display_pm_runtime_resume(struct xe_device *xe) if (xe->d3cold.allowed) xe_display_from_d3cold(xe); + + intel_hpd_init(xe); } static void display_device_remove(struct drm_device *dev, void *arg)