Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3996601imm; Wed, 5 Sep 2018 09:05:38 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYgAUxAXuq1+h5x/+k7oJfXO2oadcK4Fv15tCSC6+kir55eP4XxnlyuLBoetOM3sDSJlomg X-Received: by 2002:a62:34c4:: with SMTP id b187-v6mr40782117pfa.15.1536163537930; Wed, 05 Sep 2018 09:05:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536163537; cv=none; d=google.com; s=arc-20160816; b=NSYxRHIYh8GXQ0Mab6zEMS+fNUpH9tl/sz9cIQndSgCewYCn4jKxDnFUInrPyrefNo YzRz+kk85ym2sPi2Ve0g+crWajmHzVGlWKw7nchTvtBaohk+qJEM8sRHuB6N1sylIgCp eM2vtV+aJ+pVdh27KzdfvtEoBP3yMK3IoKfON/FkJQ9mKvsriMOa71NsQGfeJ8OcLskP 4jD2YxrBCGWoOX8gzNarXfk0BhdzsrbTI9lyw2/Bg50EL6T8NdHXe+tOUs5K4SrvNFWc 58YiNgLwoYvfSOK53nAMMrQEaImSSpvW7P+i1qjkhIzJayuXeZUacMi/oEKJ+CdEcHzy BArw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sk40h4uc6u5xEPoShpVWsI299btrzxvalVuxeTLqL/I=; b=DzFKpjVxPmr519+exFm17hK1TobKfUG81nA1DGmeHeaKChS5We66IHe4ODH3LhuGhj qPS5NF4I0pjYxr+zNXMtU/oPQprJXiXcIhRXwlcSleIPitVhFYVOKYO6OLEMvQyRe1yn iEthYl+pqpGowiN61xnx2lNJ0e6BGxwGksxDURg8QFlKTBRIFZK6/HXIj2fSzBG+Ubrg p2rsMgbu+9Bxz3+fGLyqwIyr8RE9mU7mwlU6zSeS6/3sgl9GM6lJBc55Geoz7JCWegQP dzVA6Df3jxgnrrRmNhiuODnDiZmTg0YGV8Kk+Yqv0r/emmtXqdc3XGFL50rIKIVQflJB ESsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=UsqqJTbn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1-v6si2227013pld.424.2018.09.05.09.05.21; Wed, 05 Sep 2018 09:05:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=UsqqJTbn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727692AbeIEUeK (ORCPT + 99 others); Wed, 5 Sep 2018 16:34:10 -0400 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:39197 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726189AbeIEUeK (ORCPT ); Wed, 5 Sep 2018 16:34:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1536163400; x=1567699400; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=sk40h4uc6u5xEPoShpVWsI299btrzxvalVuxeTLqL/I=; b=UsqqJTbn8B7a0PM/3X4WftkChfw+EwioASDxKULR4YUekJBirKLaWJo6 DOyREN36oKe3dDKyjQEfZiKcmCdpXaTb8pd/yHF/XSxEs/lnLIIFARnQR hlj8vN3XntvqgAZm6HVhKnhJL1LYK90dssQWhiHWsE9yQgOc73tWyHwJK w=; X-IronPort-AV: E=Sophos;i="5.53,334,1531785600"; d="scan'208";a="629418261" Received: from sea3-co-svc-lb6-vlan3.sea.amazon.com (HELO email-inbound-relay-2a-e7be2041.us-west-2.amazon.com) ([10.47.22.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 05 Sep 2018 15:54:37 +0000 Received: from EX13MTAUWB001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-2a-e7be2041.us-west-2.amazon.com (8.14.7/8.14.7) with ESMTP id w85FrKPE120775 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 5 Sep 2018 15:53:22 GMT Received: from EX13D05UWB003.ant.amazon.com (10.43.161.26) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 5 Sep 2018 15:53:20 +0000 Received: from EX13MTAUEB001.ant.amazon.com (10.43.60.96) by EX13D05UWB003.ant.amazon.com (10.43.161.26) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 5 Sep 2018 15:53:19 +0000 Received: from localhost (10.85.220.85) by mail-relay.amazon.com (10.43.60.129) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Wed, 5 Sep 2018 15:53:18 +0000 Date: Wed, 5 Sep 2018 08:53:17 -0700 From: Eduardo Valentin To: Peter Zijlstra CC: Eduardo Valentin , Andi Kleen , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , , Kan Liang , Dan Carpenter , "Jia Zhang" , Greg Kroah-Hartman , Subject: Re: [PATCHv2 1/1] perf/x86/intel: make error messages less confusing Message-ID: <20180905155317.GA20320@u40b0340c692b58f6553c.ant.amazon.com> References: <20180823150732.11249-1-eduval@amazon.com> <20180905085212.GS24124@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180905085212.GS24124@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 05, 2018 at 10:52:12AM +0200, Peter Zijlstra wrote: > On Thu, Aug 23, 2018 at 08:07:32AM -0700, Eduardo Valentin wrote: > > On a system with X86_FEATURE_ARCH_PERFMON disabled > > and with a model not known by family PMU drivers, > > user gets a kernel message log like the following: > > [ 0.100114] Performance Events: unsupported p6 CPU model 85 no PMU driver, software events only. > > > > The "unsupported .. CPU" part may be confusing for some > > users leading to wrong understanding that the kernel > > does not support the CPU model. > > Send them back to first grade, such that they might learn to read? > :-) -- All the best, Eduardo Valentin