Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp53804rwl; Thu, 6 Apr 2023 14:39:30 -0700 (PDT) X-Google-Smtp-Source: AKy350YWcnJgZvMPDtl7MFYExstnc0WhqYwW8y9nS5SkqU2TyoLaq+V508rsdYCJAnNZZd10Tc/5 X-Received: by 2002:a17:902:ea07:b0:19c:3d78:6a54 with SMTP id s7-20020a170902ea0700b0019c3d786a54mr8186672plg.14.1680817170251; Thu, 06 Apr 2023 14:39:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680817170; cv=none; d=google.com; s=arc-20160816; b=HtHE8L0eQHAA3Fxb9SKLJv4LbIE7zx6CLovOqby0Qc4l2oCOr9CxJeDDrg8hGVkmG6 A5DQQ5oe6Csfcm4nSOWfMx/i09hjftyTNzDCqOtUVqRQjempas3vJRQcsRbSFUtxjjjc eDAEGTdX96yb8nzqFrmUDL4O8uns+/xxEBYvan1A/+kCcymM5zi0xsEl9z1eeGPn7pKv XiAvpinKFzzuq3qdUVQCLqLmVlNXWFx5GDn6HeSPASG3aB2N9wMf3Nk/U9m00AujUXk2 ZtiOO6CawAV6Q9PtAY02xHlVOLsa8GyVkLcYuy+KgT7JKQBQCv3fKakiJ+oA9c/BbIxO VdTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=1AgX+xA/QrwttP1+uxdKVZqOyhulcBpBNHIemaQcGQI=; b=zdtohOviDnf3SoV2Qo9ksKLpY40Dyf9K69rnXwaJw/6rz0oiVVRC6vY9Gv6fammJiH R6MPzGknFDRPor1zn8QQTVZ/8HB2WQsCuKigVw/0C6p+oxKxyt4yta2o9TPgB41T2JUn Y1dl7YiTC/9O82zWmBePtuCbfP/GFgqB+4SuTmEmpsNVHg92d94UaLyyXAj4VnicxShH +C+etXoWwo8pwzVPS8fSqL2K/MzgBWBZzHbP9NVwp8krb8BiboJZkD95Yng6zvXqH/kX J7RpT12Rfen4yi9N93AZnWwSdRSSVVkPRSlh8fQEr4FkNqv2hul+iBR18Sq0ZANgVM6E Zw0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=qWdW8YiP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jy7-20020a17090342c700b001a1c732a214si2385314plb.277.2023.04.06.14.38.54; Thu, 06 Apr 2023 14:39:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=qWdW8YiP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236233AbjDFVgu (ORCPT + 99 others); Thu, 6 Apr 2023 17:36:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229575AbjDFVgr (ORCPT ); Thu, 6 Apr 2023 17:36:47 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 583E2C2; Thu, 6 Apr 2023 14:36:46 -0700 (PDT) Received: from zn.tnic (p5de8e687.dip0.t-ipconnect.de [93.232.230.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id D24411EC0445; Thu, 6 Apr 2023 23:36:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1680817004; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references; bh=1AgX+xA/QrwttP1+uxdKVZqOyhulcBpBNHIemaQcGQI=; b=qWdW8YiPmXwh3gDHa8XI2U3QRCsbhl8DLBizei54QAaWU4af4xZuLTfB+zGemSayWz1XD4 aAdqueyYxSbWtdVJyehNxRJzDV4XJ+sDIGHoEAcXyKtPaOeOMM/MFIIScVVdwtYQyAz275 uAjPp5XMnuQ17O/rUD+BXbB/chzQraU= Date: Thu, 6 Apr 2023 23:36:40 +0200 From: Borislav Petkov To: Rui Salvaterra Cc: x86@kernel.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Srinivas Pandruvada , linux-pm@vger.kernel.org Subject: Re: [BUG?] unchecked MSR access error: WRMSR to 0x19c Message-ID: <20230406213640.GBZC87aMhjL8LN6NUI@fat_crate.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CCing more appropiate people and quoting the whole mail... On Wed, Apr 05, 2023 at 11:14:45PM +0100, Rui Salvaterra wrote: > Hi, everyone, > > I have a Haswell (Core i7-4770R) machine running Linux 6.3-rc5 on > which, after a while under load (say, compiling the kernel), I get > this trace… > > [ 832.549630] unchecked MSR access error: WRMSR to 0x19c (tried to > write 0x000000000000aaa8) at rIP: 0xffffffff816f66a6 > (throttle_active_work+0xa6/0x1d0) > [ 832.549652] Call Trace: > [ 832.549654] > [ 832.549655] process_one_work+0x1ab/0x300 > [ 832.549661] worker_thread+0x4b/0x340 > [ 832.549664] ? process_one_work+0x300/0x300 > [ 832.549676] kthread+0xac/0xc0 > [ 832.549679] ? kthread_exit+0x20/0x20 > [ 832.549682] ret_from_fork+0x1f/0x30 > [ 832.549693] > > … after which I get these from time to time in dmesg. > > [ 836.709562] CPU7: Core temperature is above threshold, cpu clock is > throttled (total events = 219) > [ 836.709569] CPU3: Core temperature is above threshold, cpu clock is > throttled (total events = 219) > [ 1272.792138] CPU2: Core temperature is above threshold, cpu clock is > throttled (total events = 1) > [ 1272.792156] CPU6: Core temperature is above threshold, cpu clock is > throttled (total events = 1) > > This is the microcode revision on the CPU. > > [ 0.000000] microcode: updated early: 0xe -> 0x1c, date = 2019-11-12 > > Note that I have the exact same issue on an Ivy Bridge (Core > i7-3720QM) machine, but not on an Ivy Bridge laptop (Celeron 1007U). > Maybe this is a legitimate warning, but please note that I've > thorughly cleaned the machines before retesting to see if, by > coincidence, I had any airway/cooling issues. The fact that it started > happening recently (since Linux 6.1, I believe), and the fact that > running stress-ng --cpu 16 before the unchecked WRMSR error happens > doesn't cause any thermal throttling events, lead me to believe this > is possibly some unintended oversight. > > Please let me know if you need any additional information (.config, or > anything else). > > Thanks in advance, > Rui -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette