From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (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 D0E4A3085DB for ; Thu, 19 Jun 2025 15:17:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750346281; cv=none; b=LUqIYj6toqaVqbbHCmDRZ5/70gVaCrhxrWWNOYhrb4H6h6H4RX7SgeJdo9BZ2avAItR2p+FgYKuGHv0S+35oCi8YCWl8lKKxoePwViYMlKyqRTHTRgQUzJeu6r1Xxc6GwOnghLpBskaBtN+mpW3kSKy6B3Mt4rxEo9NyBy232YU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750346281; c=relaxed/simple; bh=Lss/rPYLZG9odOVpBtCol6toF0P1/fBtF9QDHyljGBw=; h=From:Date:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=pGG9YPZeulZ788eoXBAmuz0E6r3HlYKozc1IU4j1urMhsWD4AohD4allVzJCQvsN19JiVTYs8Vsy4nJOZvbldKy+CvGuSRPlt3p6eCMhwxFm+OpQWQj7DygUC2hy5pqSnHTzJmvaUTXTYTI9Axw8xDTmPWABMBWzBfvYSkDhqW4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=maine.edu; spf=pass smtp.mailfrom=maine.edu; dkim=pass (1024-bit key) header.d=maine.edu header.i=@maine.edu header.b=RMtxkTuF; arc=none smtp.client-ip=209.85.222.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=maine.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=maine.edu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=maine.edu header.i=@maine.edu header.b="RMtxkTuF" Received: by mail-qk1-f174.google.com with SMTP id af79cd13be357-7d3e7641b76so58385585a.3 for ; Thu, 19 Jun 2025 08:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maine.edu; s=google; t=1750346279; x=1750951079; darn=vger.kernel.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:date :from:from:to:cc:subject:date:message-id:reply-to; bh=hz28kZce3rKn2T+B8sZgV0w8PzAQ2ReDHPYg2LQY5lA=; b=RMtxkTuFai+MNu/IOAYhlxMYajrC4mS7EKOUyPTs2FlgSOhC4f5gJrATVxrurfOz0T jRS4pTjLWpkZd7qLCXip4JRsSeiM3P6ZqbeFfY+MrNKWU+IVUnmXp0Iru7L4S7Q3UJA+ VDuSl99gYZsOTkIYbGdWmJbz2KZDrir8ebg8w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750346279; x=1750951079; h=mime-version:references:message-id:in-reply-to:subject:cc:to:date :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hz28kZce3rKn2T+B8sZgV0w8PzAQ2ReDHPYg2LQY5lA=; b=AB57ds2TC7zKGc5FusxjVHEHSsx0RQU9zpjfTcOPMW10mVGrSooHjnpLHkqmjPFPLj beT2eEeU2hMIIhrT4tGr/jjt1SzPtiyYOap++q4qPMWSbaNr8oTQD2DWrE2XaMLNxT7f 7XqefY62/cKRAK3ZFL3tLhOrWHjMd2D9XOzX75RT0G3DwZ+RUFRZfrnw2Ow+zZRFDHHL IxPR+eUv+u/SI1Mp/0f1V0QYCKannXTO7KbyMrRo0ulMimCXLUKbPZ6jPfUBGDHwgzsI NfJPS3+tQKfbXgURi63lnku+u5OOMuIWAZBbvenkT2MLRnHFblHU+L/pHjSe8UXyWdTj IM/w== X-Forwarded-Encrypted: i=1; AJvYcCX5FS9L/bwf2TIGM1DHsAPoBaKdAOEGD5a+fmDoJqkHcZfAwChawysH2WR/BBfEIbtTolI5VnCbkQFnIXY=@vger.kernel.org X-Gm-Message-State: AOJu0YwEElbhjqMpH66ALi+WpmI6KH5urllSp1hnJDc98hz9doqKmqwk jsfLxE2mtAZ6yuKoW9+G6xT7HsZCcLMISLOZZF+kcxZ+ExJv2ld9/NQdRyP8VfCkBQ== X-Gm-Gg: ASbGncs2wr1RYdhJt18RsQK8dML9s3Jb/QdiMrkUAbOMaRNt68ke+01lEffNPEIgDod c/kdPwHRAjZb4W3dTza6Cw+CubdqGoo/lVdqAjNhNxJW3nhKDKmGLjbGcm3smtCOGsLFpPGBxZT rrSNth3Hvdm/kHwjcp/8IW1ClaOE0IPHkdCi+kfy1HMINLfr46FerQDXjFIa5cdcdwr8g4QhEOc YAMozxQAQxBySnOLzDCyX+OXsBztPC0Zb+JCYUOHxUUXG47uo3721cg8yDgKoMmppiYT8E+XvLj 8u6ywBsDadA7TgNAAIaoi0Z6AUnM5L/uM9THTIQTsAn60C2wRQzhWxU+GO0Yo5n5JpNtA1Qq3c3 nsx5gfQ== X-Google-Smtp-Source: AGHT+IEtRLEcL6c4FOyoPa6VH1mLjUTdXNOPO0QoSfcHnfta24N3guMo0jFLti3k1pcheA+EEeb6AQ== X-Received: by 2002:a05:620a:1a86:b0:7d3:c68e:fcf6 with SMTP id af79cd13be357-7d3c6c0dd22mr3150099885a.9.1750346278672; Thu, 19 Jun 2025 08:17:58 -0700 (PDT) Received: from [192.168.8.146] (weaver.eece.maine.edu. [130.111.218.23]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7d3f8e4b8ecsm7861585a.74.2025.06.19.08.17.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jun 2025 08:17:57 -0700 (PDT) From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Thu, 19 Jun 2025 11:17:56 -0400 (EDT) To: Vince Weaver cc: "Liang, Kan" , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter Subject: Re: [perf] unchecked MSR access error: WRMSR to 0x3f1 In-Reply-To: Message-ID: <52656281-ab73-baf7-0a80-ebcbe79dfca2@maine.edu> References: <14d3167e-4dad-f68e-822f-21cd86eab873@maine.edu> <574b8701-9676-4aba-a85b-724c979b2efa@linux.intel.com> <7e8bb736-3955-c479-99de-e08efb494bdd@maine.edu> <8739c2c6-a27c-4ab6-ad74-8b95e258737e@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=US-ASCII On Wed, 18 Jun 2025, Vince Weaver wrote: > On Wed, 18 Jun 2025, Liang, Kan wrote: > > > No, the error message doesn't say it. Just want to check if you have > > extra information. Because the Topdown perf metrics is only supported on > > p-core. I want to understand whether the code messes up with e-core. > > I can't easily tell from the fuzzer as it intentionally switches cores > often. I guess I could patch the kernel to report CPU when the WRMSR > error triggers. I've patched the kernel to get rid of the warn_once() and added a printk for smp_processor_id() (is that what I want to print?) In any case that reports the warning is happening on CPU1 which is actually a P core, not an atom core. Vince Weaver vincent.weaver@maine.edu