From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753532AbbLDSRj (ORCPT ); Fri, 4 Dec 2015 13:17:39 -0500 Received: from mga03.intel.com ([134.134.136.65]:45393 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751865AbbLDSRi (ORCPT ); Fri, 4 Dec 2015 13:17:38 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,380,1444719600"; d="scan'208";a="864833801" Date: Fri, 4 Dec 2015 10:16:10 -0800 From: Jacob Pan To: Borislav Petkov Cc: Ingo Molnar , Paolo Bonzini , "H. Peter Anvin" , Peter Zijlstra , Amy Wiles , "Rafael J. Wysocki" , LKML , Arnaldo Carvalho de Melo , Ingo Molnar , Thomas Gleixner , Hannes Reinecke , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH] x86/rapl: Do not load in a guest Message-ID: <20151204101610.34582aa2@icelake> In-Reply-To: <20151204180426.GM21177@pd.tnic> References: <1449167222-17562-1-git-send-email-bp@alien8.de> <20151204074206.GB24827@gmail.com> <20151204082256.GC17308@twins.programming.kicks-ass.net> <20151204082823.GA31591@gmail.com> <20151204101954.GA21177@pd.tnic> <56616DBF.8040900@redhat.com> <20151204105617.GB21177@pd.tnic> <20151204115335.GB15308@gmail.com> <20151204094642.4c5e63e0@icelake> <20151204180426.GM21177@pd.tnic> Organization: OTC X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 4 Dec 2015 19:04:26 +0100 Borislav Petkov wrote: > > This is good for the first level RAPL detection. The only way is to > > base detection on known CPU models. > > ...and yet Hannes sees it on a minnowboard. CCed. > > The CPU model-based detection is ugly and does not always work, as > you see. CPU model detection is the first level checking. The error is about no valid domains (e.g. counters not working). So the error on minnowboard board could be a real problem if you expect to use RAPL. Jacob