From nobody Wed Oct 8 02:01:44 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7D2612F549B for ; Thu, 3 Jul 2025 19:27:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751570822; cv=none; b=SIBb3hkgMH3c7TxSg+LE522RxHHTbEJxI8scwhe45n8MSByDFmkK4dQMT+fRQfW/wOHybqzU32u4fatg39MkxU2WYjyuPZj1aNZBKPz9w2uu3KN3GyzDXx2wpUCTA6PlcOaimQ8wk42bwkiUoBCW7hwrGyeKMQzqOhycweM0OFM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751570822; c=relaxed/simple; bh=4828vh5sk8JxZw5FcijkyLeSDpHv5hQpwGGmRsF2/c8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=aXVAtMuA8mWa5uzz9sn+gbKLaeRiIBdH8H191ER1zqJkwPBp2jUYBTZPsTTG//9nMgT+JnI0LBRhBMx0Oui6DFnmlWNkjh+R/K3fqI3q17pUCqvzN+rF6XofNZ5BoBfMIMtJHCpHM0Z3w1MSpDqsajj8s5XQjVvpVrXZ1P9gz5Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Zlr/2EtU; arc=none smtp.client-ip=198.175.65.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Zlr/2EtU" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751570821; x=1783106821; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4828vh5sk8JxZw5FcijkyLeSDpHv5hQpwGGmRsF2/c8=; b=Zlr/2EtUAOthkKnQAY8GT7cZJ2MfbsWlMp+FAVFWpanu28vbFnVD3zy1 rLnZNXqGpaiJXvrhIw20OWgv6sbQOi2gQpXSf0RCsy9yZBRABz5zdU7nW Azx7OYkVNGPfQAnyc5UxijXacS3M890WukjF4aDUut1lBzGrbn+urh+gj B9lrhSIJ9/m2en8/VLFQbWv90GRVuzFeuim5C8u0tpTpBUOO+A1DZmkz9 1PK/dklfFYWeIcSFB1f5XO4JYCdJex5st+xix290ABhBO0EFrqlqJY5EG iCcUrRXgvou4JV+LrBUqiF3INfmW+d4hXIqjv67rHUYniwAUXkId1PYEn w==; X-CSE-ConnectionGUID: lnwW8xoQQMmIcuOxKeJ64w== X-CSE-MsgGUID: MxhEnoG6RxKzPAdoQCGfYQ== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="65362009" X-IronPort-AV: E=Sophos;i="6.16,285,1744095600"; d="scan'208";a="65362009" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2025 12:27:01 -0700 X-CSE-ConnectionGUID: utyE+bggTISj1ZiK79HReg== X-CSE-MsgGUID: eEL8kg52RHSGOlnYkMwjng== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,285,1744095600"; d="scan'208";a="191624652" Received: from unknown (HELO bnilawar-desk2.iind.intel.com) ([10.190.239.41]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2025 12:26:59 -0700 From: Badal Nilawar To: intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: anshuman.gupta@intel.com, rodrigo.vivi@intel.com, alexander.usyskin@intel.com, gregkh@linuxfoundation.org, daniele.ceraolospurio@intel.com Subject: [PATCH v6 06/10] drm/xe/xe_late_bind_fw: Reload late binding fw in rpm resume Date: Fri, 4 Jul 2025 01:01:02 +0530 Message-Id: <20250703193106.954536-7-badal.nilawar@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250703193106.954536-1-badal.nilawar@intel.com> References: <20250703193106.954536-1-badal.nilawar@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Reload late binding fw during runtime resume. Signed-off-by: Badal Nilawar Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm/xe/xe_late_bind_fw.c | 2 +- drivers/gpu/drm/xe/xe_late_bind_fw.h | 1 + drivers/gpu/drm/xe/xe_pm.c | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/xe/xe_late_bind_fw.c b/drivers/gpu/drm/xe/xe_l= ate_bind_fw.c index 4e8a2256802d..1361271beaa6 100644 --- a/drivers/gpu/drm/xe/xe_late_bind_fw.c +++ b/drivers/gpu/drm/xe/xe_late_bind_fw.c @@ -82,7 +82,7 @@ static int xe_late_bind_fw_num_fans(struct xe_late_bind *= late_bind) return 0; } =20 -static void xe_late_bind_wait_for_worker_completion(struct xe_late_bind *l= ate_bind) +void xe_late_bind_wait_for_worker_completion(struct xe_late_bind *late_bin= d) { struct xe_device *xe =3D late_bind_to_xe(late_bind); struct xe_late_bind_fw *lbfw; diff --git a/drivers/gpu/drm/xe/xe_late_bind_fw.h b/drivers/gpu/drm/xe/xe_l= ate_bind_fw.h index 28d56ed2bfdc..07e437390539 100644 --- a/drivers/gpu/drm/xe/xe_late_bind_fw.h +++ b/drivers/gpu/drm/xe/xe_late_bind_fw.h @@ -12,5 +12,6 @@ struct xe_late_bind; =20 int xe_late_bind_init(struct xe_late_bind *late_bind); int xe_late_bind_fw_load(struct xe_late_bind *late_bind); +void xe_late_bind_wait_for_worker_completion(struct xe_late_bind *late_bin= d); =20 #endif diff --git a/drivers/gpu/drm/xe/xe_pm.c b/drivers/gpu/drm/xe/xe_pm.c index ff749edc005b..734fe259600e 100644 --- a/drivers/gpu/drm/xe/xe_pm.c +++ b/drivers/gpu/drm/xe/xe_pm.c @@ -20,6 +20,7 @@ #include "xe_gt.h" #include "xe_guc.h" #include "xe_irq.h" +#include "xe_late_bind_fw.h" #include "xe_pcode.h" #include "xe_pxp.h" #include "xe_trace.h" @@ -550,6 +551,9 @@ int xe_pm_runtime_resume(struct xe_device *xe) =20 xe_pxp_pm_resume(xe->pxp); =20 + if (xe->d3cold.allowed) + xe_late_bind_fw_load(&xe->late_bind); + out: xe_rpm_lockmap_release(xe); xe_pm_write_callback_task(xe, NULL); --=20 2.34.1