Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1343006rdb; Sat, 3 Feb 2024 02:31:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/Ly0id/IPbSl8ATefT8Sj3fCMl1/3UPEZ4A9Jb9WOUltPmQcBgBKCoBqgIV/IFg97Orf5 X-Received: by 2002:a05:6a20:e125:b0:19c:a4d3:2041 with SMTP id kr37-20020a056a20e12500b0019ca4d32041mr9715293pzb.42.1706956304885; Sat, 03 Feb 2024 02:31:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706956304; cv=pass; d=google.com; s=arc-20160816; b=TNgrBL9F4IkNhjnHvkFdvYtibEcz7ZNvQzIoQt+Owk4oX/dcYoZnyNldXcotYFnF8v KEpFBImc+SxTr0B90+YRFoLIJG2Q3XGLIyrbiFJZ4J8Tngmn65z1t8cyaCvQSzhzpoiQ WjcYNoV2RgQxQWtjBfvQTB189zTdFvC/GD0e6alxPzjmuJTC6xtS5BQset8K6/w1mjT6 ZW8DGTn1/Nzkz05EwvPjyodvC936KjeggzhtnER91N0iYMf8BNWExCf2k+1HukSbPeNm ed+G+Z42/0kzJgJzkOocChsldYQ21zByFqsaN9Bq0zoMP+0SIDA3IsRn3b10WMKT6lvw zqVg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=o2/kkEvYopAiZxbDPfxFVKmvW7UOi+5Dlc6xEV9gu2M=; fh=p2/g1kk7Gdt7OS1sWOCDwGq2ehji0MCq+2YoUk2Ll1g=; b=TpJvs7Vr9HUR0sy5RfESarwnjhSjLsU2s+QMjDHoPrXQ1jrtAr8EdLodjqDpW5salB eXBo2NOkji+/Z/oojFkBEtm4C3GQa8ruP94B+R0BYabKIgF0O6EUSdyUZ2/ine4hvHzk atCR4wOKeiZMbEkcUkJAfBv1wfGWXlHiPT0ebxDiI7inoWWQSMskvS8g35XjgbLpWGVe ZZnNLlJvRtNV4jaHuwBe1LHcxdcm3qQ0N+sTSz2k7mbyIZUg33dhZVdjDkj0y+uhtLvf a0cGnWWY958GFTKHaHctFqOG8UzGXvWbLG3rcKY4KYlmCcgDD2thDZptPcgJyqp7A/zC abcQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=lOP1NNvF; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-51014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de X-Forwarded-Encrypted: i=1; AJvYcCWQ+f9Ss5bAmhBwrOUruNd18Hbs+fU0hmESjv4gvgt5AVmn0TdzmdjEt1T7wPc4uybgB0pTbcc1V1jjWPEWUl8yma25N7/X7/qHnu12lw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id ei22-20020a056a0080d600b006db896af13fsi2970565pfb.174.2024.02.03.02.31.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 02:31:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51014-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=@alien8.de header.s=alien8 header.b=lOP1NNvF; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-51014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de 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 7E600B2DF4D for ; Sat, 3 Feb 2024 09:40:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F1D255D726; Sat, 3 Feb 2024 09:40:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="lOP1NNvF" Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (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 22A984E1DE; Sat, 3 Feb 2024 09:40:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706953233; cv=none; b=ron3pYBoag4TPL6JtdEQnFx90SXHI0X9uCRVKPJSYpWUSjxPjD0p7BAULqA0WMqtc58jTmRwo/znfoOUKAUxH8tRHxv3M59fr9O1x+eSaWBPcWeaOObZDT3hcoHz5otLkmuQneIhcqpYH0OTD5AK3N/06z2aBki0FtiaA3R2e6o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706953233; c=relaxed/simple; bh=Mf+FC70bEz34Ne9LI0bFgbzLhu9lure4rqnmn2jabz8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AUHfarFhWghaD6gSMZl5zq/gfR1G7g6fjW12Za1HXxWilsx1lVimg8I37MzJ5XzK78T5NQG7MQTgAkDwe/sz0DmusTapKg97qrGAVYcAGVJTs+/Fk5zV26D/TmsOMeltH+/o3fS3e06cCMLGgtaxFdUSxliakK6gLuB9lDN0YIk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=lOP1NNvF; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 2961F40E00C5; Sat, 3 Feb 2024 09:40:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id dpn5HsdvUWlF; Sat, 3 Feb 2024 09:40:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1706953227; bh=o2/kkEvYopAiZxbDPfxFVKmvW7UOi+5Dlc6xEV9gu2M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lOP1NNvFmwMg3iqSzqQ3CnXdWJdIBoSRnGsqZFpkjTXl+qr14LAx1akeaOv7uVkiw udo8H0oi+0dpAy7zSkh4J1LKrmD/Qj5DqA0bha7tY9MZvJQN5l3pjvFWrVXOnKj5UN Fmk6rIDGycuztEh3UuFpdA86nxYsOtX657k2wbSkvCMI/h3GIO+YEbtbHK0Ug4RwKL IO5mQ+KGq+ny10QxjF9vvwfwUck2driT8+RSoRvC8QYH6SK9TmUOcmcCaqZLLMNUFo hCFQy8oQn+BFDyIfLFpO0igoyyVcEQ3r/pscZ2alRQ4ztRXN4qrKqXPT2G6L75hsW5 ddUk+vs7gUlimwo/vh1JniGyTF3Tp5Mhoig7/wPBO6+lTdZRYJUsBPPJqHkDvOBu9f V8+7KtgqWDQe8eeqVVyQ8qZMpLrESB5L9umxwIWFxgQdWW3V9sszs0QM/FZZakmdmA xHHZRkSFrS8uk4BXvl1nrFxYZMhug+i6WWXodJJYjPTQwWzIK3b/Z4z/oH7bjkm2ag PKBcS+KaHY4U9daYBKq8tmHv2zoNLZ/0Vp8hSvri0xOexWA8jln+Bf1v0TFom9jZje EB/6vLDgFR4Iqcm4c0/atnC3Kxzs2mMfK8cva6eW9LWfF89XnVxgQ78QoxPwov3B0G NVmj9loqF9PUTizNwo+pNi0k= Received: from zn.tnic (pd953021b.dip0.t-ipconnect.de [217.83.2.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 1C7CF40E0081; Sat, 3 Feb 2024 09:40:15 +0000 (UTC) Date: Sat, 3 Feb 2024 10:40:14 +0100 From: Borislav Petkov To: Ricardo Neri Cc: "Rafael J. Wysocki" , Len Brown , Srinivas Pandruvada , Stanislaw Gruszka , Zhao Liu , Zhuocheng Ding , x86@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Zhao Liu Subject: Re: [PATCH 9/9] x86/cpu: Introduce interface to reset hardware history Message-ID: <20240203094014.GCZb4J_loB5DEohHxT@fat_crate.local> References: <20240203040515.23947-1-ricardo.neri-calderon@linux.intel.com> <20240203040515.23947-10-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 In-Reply-To: <20240203040515.23947-10-ricardo.neri-calderon@linux.intel.com> On Fri, Feb 02, 2024 at 08:05:15PM -0800, Ricardo Neri wrote: > +void reset_hardware_history(void) > +{ > + asm_inline volatile (ALTERNATIVE("", __ASM_HRESET, X86_FEATURE_HRESET) > + : : "a" (hardware_history_features) : "memory"); > +} This thing belongs in the header too, and it should be __always_inline. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette