From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755407Ab3K2UbQ (ORCPT ); Fri, 29 Nov 2013 15:31:16 -0500 Received: from mail.skyhub.de ([78.46.96.112]:44432 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754802Ab3K2UbO (ORCPT ); Fri, 29 Nov 2013 15:31:14 -0500 Date: Fri, 29 Nov 2013 21:31:03 +0100 From: Borislav Petkov To: Stephane Eranian Cc: Vince Weaver , Ingo Molnar , LKML , Peter Zijlstra , "mingo@elte.hu" , "ak@linux.intel.com" , Arnaldo Carvalho de Melo , Jiri Olsa , "Yan, Zheng" , Maria Dimakopoulou Subject: Re: [PATCH v7 3/4] perf,x86: add Intel RAPL PMU support Message-ID: <20131129203103.GJ4266@pd.tnic> References: <1384275531-10892-1-git-send-email-eranian@google.com> <1384275531-10892-4-git-send-email-eranian@google.com> <20131128122619.GA6561@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 29, 2013 at 09:09:46PM +0100, Stephane Eranian wrote: > > So in theory it would be harmless to export the values even if not > > supported. What is the worst failure mode? That somehow a recent CPU > > doesn't support the MSR and we get a GPF when trying to access it? > > > Yes. I think that's what you get with DRAM on client for instance. We have rdmsr_safe for non-existent MSRs, in case touching such is the issue. -- Regards/Gruss, Boris. Sent from a fat crate under my desk. Formatting is fine. --