Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7113983rdb; Wed, 3 Jan 2024 05:15:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IHVr6eWBEZpOFA1I7qgGr6rRBFv3CXcxkQ/706sZ38tL4/dZZlbaj68DMhywcfYeI4l9Obu X-Received: by 2002:a05:6e02:154c:b0:35f:c555:ecb3 with SMTP id j12-20020a056e02154c00b0035fc555ecb3mr16959312ilu.10.1704287754249; Wed, 03 Jan 2024 05:15:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704287754; cv=none; d=google.com; s=arc-20160816; b=U2YccjvJrQKoykj8oM0QHoWHpq8qM8j2heNc4TX43qGl8yXVI4b1FZSOZ72bMiKo0J 9NcrtJf+Qmmwtv0O6YkakAikdmKQa6w7w3torBRKfb/c0y1croLQ9kHF7itDPBFK5TFb 2aaLWUU8nVQslILmcd4gz6W4FWMxbN0YP49+JQ1+IINpy6LPXNTp+nO2/2NLWy998ts9 BDbSmqrefnzePCIGNsotjf5f7ksNqQNNcN2JogsNbvl0Qfl6XCTqXHoIk5frQlQJZeY6 Lb7wxxGERRPgL7uptdjQYWSlJYTMzHeGTTM+soHpcQza2Nt8/MDvrIDaNIvxaeXa+FJb Ongg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=lfyvIelZW7mDBavaNQIQHDffrRYb1YXYXAAsZleBbOE=; fh=qNgA8ULuMwq/RXcnF3RQ7xN0qHNetO4DNf0lC0Dfxtw=; b=0zVuY0lgRITeLQFdh2k+fJeBDRvOs0PFzNs/um9FUgf72YgcBqLrqyhqyAZucR9+IH DMNT/zodAXT6f4+n9Jc+ANcTpY6KZXEhLmh5wk8W5JztWCwp9GVxE7a0gJt/GFQZO11P XTEpZkhyALTtJ7GuEorGc6Y9GkqM8Cc3Hw/S9Uj2/vAe9k1R5Xbuv5taaePotuYMjf/U nmy6i03/qaAaLtizrS/yDcMsrCQc0jlczwYQPM0qmaMxJ9J6oJajPyts5jGUKoK6e+e2 7yIqvG4TIiqmf7/6ZLS+IZg1XsXBDtlElZaPE5SjKOGjV3dGxECP/63h3bRP5xHRIRmW grCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15556-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15556-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l62-20020a632541000000b005cdb0622c89si18812210pgl.16.2024.01.03.05.15.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 05:15:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15556-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15556-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15556-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 C2D2A285531 for ; Wed, 3 Jan 2024 13:15:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1030199D7; Wed, 3 Jan 2024 13:15:26 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail-oo1-f53.google.com (mail-oo1-f53.google.com [209.85.161.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 166A019452; Wed, 3 Jan 2024 13:15:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-f53.google.com with SMTP id 006d021491bc7-595ffa2e6a2so145122eaf.0; Wed, 03 Jan 2024 05:15:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704287724; x=1704892524; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lfyvIelZW7mDBavaNQIQHDffrRYb1YXYXAAsZleBbOE=; b=eRQaOby+ZXtwzzjiWmmLp2OkjAUl3TkZFZPfXaCxm0nZq2lCN3kROV5dgy9ifKzOPl cCza1TA+zQ5wb+dOmQyDGMIbkmBerU+JhkwJFx6C+1Wy4A8qwhY+Fh6uOvgnZuKsUXMP JvaNXmsE/uSCFJlNL+AA8D5l89eBKlwpiOtZdnGfvYP9L207hEI78LyWj1jqXVMZJHbj 1BGME0Kn3waUjF5uL+2q7jbARIcV49aUVlKhbb32NyWwtmyfR3HeYI3c07XYKSadxWRn tMBDMQZqclNVr/MKoK6rMlsCOKXp1AycRrsQ6QL+1CViDGZJCp7C6yywMzzg2qjBp7Us p2mg== X-Gm-Message-State: AOJu0Yx8gZ210cAHbDOBkpcwsuRQD9zqwuGy/rXmawyxEyu9MJtOYeVP D2XeZ+FQdB3EiyV/NtewdbUa6OmXJuFV6EYBVC8= X-Received: by 2002:a4a:b38c:0:b0:595:6024:c4f8 with SMTP id p12-20020a4ab38c000000b005956024c4f8mr7908752ooo.1.1704287724047; Wed, 03 Jan 2024 05:15:24 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240103041459.11113-1-ricardo.neri-calderon@linux.intel.com> In-Reply-To: <20240103041459.11113-1-ricardo.neri-calderon@linux.intel.com> From: "Rafael J. Wysocki" Date: Wed, 3 Jan 2024 14:15:12 +0100 Message-ID: Subject: Re: [PATCH v2 0/4] thermal: intel: hfi: Fix memory corruption on resume from hibernation To: Ricardo Neri 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jan 3, 2024 at 5:13=E2=80=AFAM Ricardo Neri wrote: > > Hi, > > This is v2 of this series. You can read the overview and motivation in th= e > 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-cald= eron@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(-) > > -- I've queued up the first 3 patches from the series for 6.8 as they make sense even without the [4/4] IMO. I still have some comments on the last one, though, but let me reply to it directly.