Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7483259rdb; Wed, 3 Jan 2024 19:02:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1XtcczsKKZ2DEHSvasuR1YtpEuE0/D1TR1MjPZJ6uUlCh1IDNuA+ocWJax5oFh41lcNWL X-Received: by 2002:a05:6a00:4f06:b0:6d9:a1ec:eae0 with SMTP id lb6-20020a056a004f0600b006d9a1eceae0mr17237pfb.11.1704337359200; Wed, 03 Jan 2024 19:02:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704337359; cv=none; d=google.com; s=arc-20160816; b=WeY0oRNjUm7m7M3cVjw4OUBykA1dz4fL+wKmzStd8UWOQ3yhZ+CrkcLJ2eMpMjymKN J3zm6AKXUVkqAfF+BxUaTstyPzsJ7ZpLa15C8VfwN+KpTqoeNHFE+BlMoAgA1VqGTU/h F2C0s03X/QAJ7fMuMmItzECwL0GGmdJBqwy2ZAZpCghK255KhVEx7WvwSfi2xt+tUwN4 PToJEfbLi5RAymWq/yuwLFJ3iPO2FgMjwL3bVdPBWzspEApYnz321kRoIvVVdKW3tjg2 vqcYEcWB15QpsvafaKJ+vKi7dhP5VafMBFOHcMcyDv6pmab9RrUEuAZfrw4j9v/YVj9K hasw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date :dkim-signature; bh=D7Oj1irzdiwbKgAY9z2QK1c6ZMFDVLe/8boy7svto7o=; fh=drFkFWHaEfi/EY5u8FchTSPBJBtC8PHvXSTnDAlXifM=; b=QTfIahTwmmgx6TdfbOs7aaiTY1hl8j9x/r/kzXIwc/8qbDXGC6XCVIx6o3LG6QA55R qbwfjmlY3DGNzFddLGJX82HjCtYzCFMJFnZ1suxtSGECP+k+sxMfsnfNycil1kBqa8Ax D8cH64FcLu6G8wb3tUHHIMH8GxErfheBdj3vLqgBdBDdpreSpO7T4ITa0DXLhUxCTseD EqkX3U2l6FSdzYWemHiAzc9ItsIPFtXm0UAM8oR7XacH2lUiKjswFFWdKg57H4TV7Ige FVukseQctFplB6V0iVk+FJRmdmZITrYUZ5pMkvMZSvUN/AXVLYfSROQjDU3pNAmE2SL+ ZNCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Fds30FCP; spf=pass (google.com: domain of linux-kernel+bounces-16221-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16221-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id g10-20020a056a000b8a00b006d9b3242679si17610215pfj.214.2024.01.03.19.02.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 19:02:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16221-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Fds30FCP; spf=pass (google.com: domain of linux-kernel+bounces-16221-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16221-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 16C39B228B3 for ; Thu, 4 Jan 2024 03:02:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59BD65240; Thu, 4 Jan 2024 03:02:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Fds30FCP" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) (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 0C7D31862D; Thu, 4 Jan 2024 03:02:25 +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=1704337346; x=1735873346; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=kEeu5OoCJZYtIvABKcgN2LQCqoiaYmhWrqX0iME1HsY=; b=Fds30FCPTARE4r0O3lmb+g9x+zqHoGc1e0KObbf+1ZzfphZsANpmcEca Q5k8WzgkDyRaaPNvYwkaQfnRNvDV4qIcRFTQ71vvrAlDC+BH5b5+gw2B+ It+AnCaZwTE1sOt8wYmzYJoXRRozteoeLJx4KddYqIqSd/B0ETws0ulug 2zI6w1y2xIBQjPBBUwO0T7KZWC5p6FatJYQd0c9uAmZ3pFEGB4CZu47DC zISgpREM3OrTJcz2KUpMIKmiRV/5LKLFaWGkG7oXRWgX/CVqGBDuQNeF6 xiKpr2xTcierJE+eDEK9incWCeRL/3ay5u8Cw9MBy1t6X0QmQsFDegSdR g==; X-IronPort-AV: E=McAfee;i="6600,9927,10942"; a="461426058" X-IronPort-AV: E=Sophos;i="6.04,329,1695711600"; d="scan'208";a="461426058" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2024 19:02:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10942"; a="780197606" X-IronPort-AV: E=Sophos;i="6.04,329,1695711600"; d="scan'208";a="780197606" Received: from ranerica-svr.sc.intel.com ([172.25.110.23]) by orsmga002.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2024 19:02:25 -0800 Date: Wed, 3 Jan 2024 19:04:02 -0800 From: Ricardo Neri To: "Rafael J. Wysocki" Cc: "Rafael J. Wysocki" , Chen Yu , Len Brown , Srinivas Pandruvada , Stanislaw Gruszka , Zhang Rui , Zhao Liu , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 4/4] thermal: intel: hfi: Add a suspend notifier Message-ID: <20240104030402.GB12718@ranerica-svr.sc.intel.com> References: <20240103041459.11113-1-ricardo.neri-calderon@linux.intel.com> <20240103041459.11113-5-ricardo.neri-calderon@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) On Wed, Jan 03, 2024 at 02:34:26PM +0100, Rafael J. Wysocki wrote: > The subject should say "add a PM notifier" to indicate that > hibernation is covered too. > > On Wed, Jan 3, 2024 at 5:13 AM Ricardo Neri > wrote: > > > > The kernel gives the HFI hardware a memory region that the latter uses to > > provide updates to the HFI table. The kernel allocates this memory region > > at boot. It remains constant throughout runtime time. > > > > When resuming from suspend or hibernation, the restore kernel allocates a > > The restore kernel is only used during resume from hibernation, so > this particular problem is hibernation-specific. Agreed. This correction is pertinent. > > It is possible, at least in principle, that the address of the HFI > table is "lost" by the processor during resume from "deep" suspend > (ACPI S3), in which case it may not survive the firmware-driven part > of the suspend-resume cycle. It is thus prudent to disable HFI on > suspend and re-enable it on resume for the boot CPU (under the > assumption that the other CPUs will be taken care of by CPU offline), Indeed, this patch aims to handle this scenario. > but for a somewhat different reason than in the hibernation case. I will correct the commit message to reflect this reasoning