Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp958387rwi; Thu, 13 Oct 2022 07:22:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Myo4uoP1nw9vFWd4FGOG1S2B3exSobP3QZrTAsTXE+7iay9heb/7Ns6QDjlKMXDdwsYnj X-Received: by 2002:a17:907:25c5:b0:782:978d:c3da with SMTP id ae5-20020a17090725c500b00782978dc3damr26289351ejc.623.1665670958658; Thu, 13 Oct 2022 07:22:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665670958; cv=none; d=google.com; s=arc-20160816; b=0BMGdpKbAnEvBot5HY1VobIACzGAyuBooUr3GA44kxWjAkjMd2c0YLcq9/ZdVpnnxf ilT9/rKS0uJkZWlzJltwL10CIDOx5IiL2fkO0F44NiEEN0SI0fh6V+BXYFsXOda7dLWT 0JZVdjLPRk7/ULo7y/QXnhYdengN+WkWzs1ty+RsAWW9+9UoXEyGRofZEtcHIux2jo1H o7vVZgVTO4vx+a5xnHiVKOliMrRgBzT4UGl+QU7VJmlc/WFtwKlJeG87DFgyMQ/g5Oo0 LXFU9/uADi0Xm9VqCfv0OFU++gqWOeiAT741zlGh69leZsBEiTyPtOmAyKQ+S02RzOBA ZgZg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TSbLsygvt/UKK7OWwe4sbMWUF0YqxhXqCgezFd8rTMg=; b=XfXkg9PslXtv2gyOFoNld+/1rLMcjNoN7520NioycpJIFot43APJOPzPwsAbXBjUDB i2a9tBDKTVAVgxKf70K8mF4Nn/vN0ErtO2XkBzEtkjzh/9xuoAUDWwo59xqKlqYxPodq b0bAVIgNM/93Azj2JQDUcBCpyz/dmqEK8ULV5XR3tEX8pqlsNUs5hAmxs8qihF0oS/gB 8eSMGWDAwDVzjMcWWH9JITY/oRxeJPmfhuJagzzc6wnBzqNnYND/brX8CB9kSngvVkZV uy/N2tNQyFx31aIgcKr5VfgZzV0sSl1u5pibBiLfYEjD3ZglvtHWy6NjgqonrL1cDrLz dEQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=VmAPCvkL; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i21-20020a1709064fd500b00780def41dc4si19256591ejw.527.2022.10.13.07.22.12; Thu, 13 Oct 2022 07:22:38 -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=@infradead.org header.s=casper.20170209 header.b=VmAPCvkL; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229958AbiJMOCy (ORCPT + 99 others); Thu, 13 Oct 2022 10:02:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229983AbiJMOCw (ORCPT ); Thu, 13 Oct 2022 10:02:52 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0631E2F667; Thu, 13 Oct 2022 07:02:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=TSbLsygvt/UKK7OWwe4sbMWUF0YqxhXqCgezFd8rTMg=; b=VmAPCvkLV/pXm4OznNKxE0S3ZD dtgrIDAn82q6JupwgzjuBCYYC5yrGTFQf/Cif1ZkjicREWOaUwi9yfxfU5cWU3Qi/l2vlHi/TygBl RY5wtfjUo8q6Wz3MhcafuZlkGUSEe2IMlqwnIYgReAHO7qjNsKVIUUS9rAR1UHoZdJrLCaR1KrC29 cQeuwpQ+mW/WKvB+PSf4uePTluVOPWChizPi6ol4RbRiNjv+SQ2EGvXpEAQIAdxgsyI+wmNHzzLKH HMrg8oxUDIkz4mlBv2C6cObXSH+XEcU4UzRbRciWQf+bbH8uBOyrETKF5fGf0JrSUvVf5jiQf7/95 +CtcEvLg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oiykM-006l3l-Mj; Thu, 13 Oct 2022 13:59:39 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 365C73001CB; Thu, 13 Oct 2022 15:59:32 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A42962024E158; Thu, 13 Oct 2022 15:59:32 +0200 (CEST) Date: Thu, 13 Oct 2022 15:59:32 +0200 From: Peter Zijlstra To: Cody Yao-oc Cc: mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, tglx@linutronix.de, bp@alien8.de, hpa@zytor.com, x86@kernel.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, shyaololo@163.com Subject: Re: [PATCH] x86/perf: Fixed kernel panic during boot on Nano processor. Message-ID: References: <20210607013109.7870-1-CodyYao-oc@zhaoxin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210607013109.7870-1-CodyYao-oc@zhaoxin.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham 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 On Mon, Jun 07, 2021 at 09:31:09AM +0800, Cody Yao-oc wrote: > From: CodyYao-oc > > Nano processor may not fully support rdpmc instruction, it works well > for reading general pmc counter, but will lead to GP(general protection) > when accessing fixed pmc counter. Futhermore, family/model information > is same between Nano processor and ZX-C processor, it leads to zhaoxin > pmu driver is wrongly loaded for Nano processor, which resulting boot > kernal fail. > > To solve this problem, stepping information will be checked to distinguish > between Nano processor and ZX-C processor. > > [https://bugzilla.kernel.org/show_bug.cgi?id=212389] > > Reported-by: Arjan <8vvbbqzo567a@nospam.xutrox.com> > Signed-off-by: CodyYao-oc I suppose I'll queue it up for perf/urgent post -rc1