Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp109882rwl; Thu, 6 Apr 2023 15:44:41 -0700 (PDT) X-Google-Smtp-Source: AKy350anv52heA0D80SbUE8sworsJzrP1zSfOvlFNuGLNKYs6Qh1RIllJlfY5m+OIaBCqnpmu73E X-Received: by 2002:a05:6a20:1a8a:b0:dd:c64a:5417 with SMTP id ci10-20020a056a201a8a00b000ddc64a5417mr1115517pzb.18.1680821080916; Thu, 06 Apr 2023 15:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680821080; cv=none; d=google.com; s=arc-20160816; b=lEiWaLop22JPboc5ouu2eIBOhDsL0nAb4yWnBPT40aPUCdK7YTWoENem6GQdkFnsuy FzHZr+iFSxdRizXcWFfnP6u7racVLiQgCJPD63pKSCY7SLh0aFYOmyKjm2wfu4Ja0GbL 8boqn5ovo3ihgAFREJsSDzfOqdo9KoX7i1MgxpX0RjIkk7zPNT/0mYk2wgR/H+tGU27e wTRrVaeBOyuaoD3ch899ic7hUlZJxWATVcodi31QzTishI9WeyzNa0g2WaTkjOFPtTvI 7adAV6IxgM797gu/Qn4m6f5HmvY9ACrPNsguX8YiacN4D5UBWuPm4z4flmgT46XGJtmf EABg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=Vi/wQlqtCHYuefkDO+/MeiXXiY28H4hWgdLJWluDiuk=; b=J92sjGUdMQeVC2ICxtH0ImxjM6YfCxiGDjWB7/LCcSUcKFL5fxkOzcHuwGBQabQ3hC 98j8UgplXt8wwj0VINp0eDOvifoog7g5glApeY8PXTqObMhsNNxupc6tytkvJyEbVYUQ ZIhSfFGcU3/ixhHEsqFOx5AXsoK7J0u5rRzw5J9+DcVKp64sG1Dh7s+1+GdggdXzzt8K x9ZkHx1BOUl7+CUF1wgjKlK8aNVqhJQhst+hGfOCTMfvHfVvUnssbRZxzsioDytCwiNH T8C65t3VfnykuNzmYK9HPHsLSf+/+PxlaQoziX6ZoOVIUF7DTHdrfJO4c0kX2FJ2cCnU NTTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=E2FAHpic; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u63-20020a638542000000b0051398c72685si2185596pgd.662.2023.04.06.15.44.29; Thu, 06 Apr 2023 15:44:40 -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=@intel.com header.s=Intel header.b=E2FAHpic; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239013AbjDFWbN (ORCPT + 99 others); Thu, 6 Apr 2023 18:31:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjDFWbL (ORCPT ); Thu, 6 Apr 2023 18:31:11 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9548F9757; Thu, 6 Apr 2023 15:31:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680820270; x=1712356270; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=HPptrPGrlbW5+ZJ5t46u3MdY/fpmqmkmyBFrPbNQQMQ=; b=E2FAHpicfp8jFay2Mn16aRd5/dU42fCpYcdUyeeFJKWaHPP7UFKr/S89 ykpDjxp/P8vo2mmqi8bnneoDk13BUm10kVhYnAv0ah1gJLl89d4UHC4vy JEYv2d9zUU0e7gNLEiwfAbo6QEEZtZl8OCwavJVs/kayefo/NPRf0KzvG O79OZgbNb8yc5nhsHf9pYszCJNR42xjIUQW2O6B1mBs0tB2iYx4vbPK6X NBm/Os03Sv5prgX/lQ58Q0PfguPv1l0Y3x5ciTjdXBpX+7YFPj8PCfvah 2YZa9reoD4/3kFoJi63x1tMBM4vEBjiaenSCtN1/lDFh+3GnRXfap4HBF g==; X-IronPort-AV: E=McAfee;i="6600,9927,10672"; a="322505542" X-IronPort-AV: E=Sophos;i="5.98,323,1673942400"; d="scan'208";a="322505542" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2023 15:31:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10672"; a="687310665" X-IronPort-AV: E=Sophos;i="5.98,323,1673942400"; d="scan'208";a="687310665" Received: from mjjuenem-mobl1.amr.corp.intel.com (HELO spandruv-desk1.amr.corp.intel.com) ([10.209.81.95]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2023 15:31:09 -0700 Message-ID: Subject: Re: [BUG?] unchecked MSR access error: WRMSR to 0x19c From: srinivas pandruvada To: Borislav Petkov , Rui Salvaterra Cc: x86@kernel.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org Date: Thu, 06 Apr 2023 15:31:09 -0700 In-Reply-To: <20230406213640.GBZC87aMhjL8LN6NUI@fat_crate.local> References: <20230406213640.GBZC87aMhjL8LN6NUI@fat_crate.local> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_NONE 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 Hi Rui, On Thu, 2023-04-06 at 23:36 +0200, Borislav Petkov wrote: > 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 Please send output of : cpuid -1 Also please try this: #wrmsr 0x19c 0xaaa8 This should give "wrmsr: CPU 0 cannot set MSR 0x0000019c to 0x000000000000aaa8 #wrmsr 0x19c 0x0aa8 I think this will not return error. Thanks, Srinivas > > (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 >