Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6921073rdb; Tue, 2 Jan 2024 20:13:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IHWWDoVEbaFJyxGFYQornp4w38c8MPzENHznUG5k9tAMo8w1QAdTm5gg+CXY/drwLBlC3WN X-Received: by 2002:a05:6a20:7487:b0:197:34c4:a650 with SMTP id p7-20020a056a20748700b0019734c4a650mr3214741pzd.13.1704255211680; Tue, 02 Jan 2024 20:13:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704255211; cv=none; d=google.com; s=arc-20160816; b=jzwduDw2vC4AmGzHIkmpcopRKFcc/FGRvOlKh0NpNLQhoigZSVs4gXgIkoSsGxbITX 1ZI7rPFsz7fQD+duO2Hdd9n1tI+lN9ZnfWNKIL8xU+8Z+oBy1Dl8BGamW7kDcKlf806s /0md5xBKlW3d++PFVrG9zF5vcLFF2+w+On2QOOBaJMRMxLx5HmbQUN+LM/FhU2RiZa3R xtDMLshdbsXNADDlgHdLckMJSl82O3qfZJTjpfzBarxVKjauepv+zqQo1dNxMID1OK6g /6xTHVd8/WJ4wHHE1DR/FxDJj3ZY7jDNpHcquHEDtmfVQ/sqYifdBsu6K0J7jB7oF8/L SZgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature; bh=xAHtE+CH96MqoBeWdcyAR/pmK4MiB2V8MCEXcE9O320=; fh=Nd6TWr59jSdh9420JNCyllzWGVT8apl3jMyvM+mDi0k=; b=VLvIjPnfMTwWelUBxLRfU/ZyNGMh748NzUvgpFNWJP5LeA6ka3iDRVal8ZgZJnFlnL RBYvu+d9obu4ISI4dRaOaa6UqztR01C1iKB6qzGSuXA7K9tEDxBEKdJcdTZvo7lOFlAc DSU24+LDOn74D04cpl3sxD5ovZHlh4gr4G7NeG6RnAqJcfOKyfBn5LaO/tjmsqNePhSY ehwJ5YADF/JgMt2uOZHL+7zdemjJVnFxU/8fxegvIoYaq+MVrZpRSSFe7+yfo2OhOId3 0+yNOqflKz07czMre5lSmxfgUq2go8P3ucKDT1ArLX+UKbPNaXN5UrE2xjHmwiEYCdyn lqAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nkuSnhuG; spf=pass (google.com: domain of linux-kernel+bounces-15145-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15145-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id le14-20020a056a004fce00b006dab55d5b37si400584pfb.195.2024.01.02.20.13.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 20:13:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15145-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nkuSnhuG; spf=pass (google.com: domain of linux-kernel+bounces-15145-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15145-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 03F5A284B23 for ; Wed, 3 Jan 2024 04:13:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49A8F15E93; Wed, 3 Jan 2024 04:13:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="nkuSnhuG" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) (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 23D8D17984; Wed, 3 Jan 2024 04:13:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704255202; x=1735791202; h=from:to:cc:subject:date:message-id; bh=IGi0e3uXdLwqOum7ZLXcJjnmPDlSGG/id/BqMsxXwvI=; b=nkuSnhuG4JSt1+lV4aPIrdm+ti+xRDwlrX9PrjM5/7TaQYYf6xGL6ryb SArGfkrHpbfup+v2vV5kyhW1zxo24fp1Sjyo0tFawH2shqpfvKG/UiflO 5L737s91DdoeGsMTKoa1dbZXZMSvS//FzT4gNyv5+HFF20RflIBxIfn5x edsUOLFgJBHNwiNWqokQme/7jX2LDllQNhKVguzyDfjMysaEONB31yevd VJNpj4Rq3XP07n1EeHdk7T9tP8MhmRRJWKhpOST4Hlrc8AeeZR17MRcSU 6jjH2v+CYx4A88/ZdgxfYReyvYStDaYKywMp1TcedqRXw9zZnNl4ySeNN g==; X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="463357395" X-IronPort-AV: E=Sophos;i="6.04,326,1695711600"; d="scan'208";a="463357395" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jan 2024 20:13:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="1026957000" X-IronPort-AV: E=Sophos;i="6.04,326,1695711600"; d="scan'208";a="1026957000" Received: from ranerica-svr.sc.intel.com ([172.25.110.23]) by fmsmga006.fm.intel.com with ESMTP; 02 Jan 2024 20:13:21 -0800 From: Ricardo Neri To: "Rafael J. Wysocki" Cc: Chen Yu , Len Brown , Srinivas Pandruvada , Stanislaw Gruszka , Zhang Rui , Zhao Liu , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/4] thermal: intel: hfi: Fix memory corruption on resume from hibernation Date: Tue, 2 Jan 2024 20:14:55 -0800 Message-Id: <20240103041459.11113-1-ricardo.neri-calderon@linux.intel.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Hi, This is v2 of this series. You can read the overview and motivation in the cover letter of v1 [1]. I smoke-retested this version on a Meteor Lake system. It completed 50 cycles of suspend-to-disk and resume. I completed longer testing for v1. Changes since v1: * Added locking to hfi_pm_notify() to serialize RMW operations on the MSR_IA32_HW_FEEDBACK_CONFIG register. (Rafael) * Relocated a comment regarding the reallocation of HFI memory to patch 3/4. (Rafael) * Clarified that patch 1/4 does not introduce functional changes. (Rafael) * Indicated the first stable version on which this patchset should be backported. * Renamed hfi_do_pm_[enable|disable]() as hfi_do_[enable|disable]() for future reuse. (Stan) * Registered the HFI suspend notifier towards the end of intel_hfi_init(). (Stan) Thanks and BR, Ricardo [1]. https://lore.kernel.org/all/20231227062940.10780-1-ricardo.neri-calderon@linux.intel.com/ Ricardo Neri (4): thermal: intel: hfi: Refactor enabling code into helper functions thermal: intel: hfi: Enable an HFI instance from its first online CPU thermal: intel: hfi: Disable an HFI instance when all its CPUs go offline thermal: intel: hfi: Add a suspend notifier drivers/thermal/intel/intel_hfi.c | 153 +++++++++++++++++++++++++----- 1 file changed, 127 insertions(+), 26 deletions(-) -- 2.25.1