From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933632AbcFQKcC (ORCPT ); Fri, 17 Jun 2016 06:32:02 -0400 Received: from mail.skyhub.de ([78.46.96.112]:42454 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933598AbcFQKb7 (ORCPT ); Fri, 17 Jun 2016 06:31:59 -0400 Date: Fri, 17 Jun 2016 12:31:57 +0200 From: Borislav Petkov To: Huang Rui Cc: Vince Weaver , linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin Subject: Re: [patch] events/amd/power add support for fam16h model30h Message-ID: <20160617103156.GA15997@pd.tnic> References: <20160616211218.GC4002@pd.tnic> <20160617100746.GC13900@hr-amur2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20160617100746.GC13900@hr-amur2> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 17, 2016 at 06:07:47PM +0800, Huang Rui wrote: > Agree with you. If the some chips are not stable, we can add a check > to ignore them with family and model id. So if family 0x16 is not "stable" as you say, we probably should keep the cpu_match array too. Actually, you could merge the feature check in there too, AFAICT, from looking at x86_match_cpu() and if I'm not misreading it: static const struct x86_cpu_id cpu_match[] = { { .vendor = X86_VENDOR_AMD, .family = 0x15, .model = X86_MODEL_ANY, .feature = X86_FEATURE_ACC_POWER }, }; And then you can drop the boot_cpu_has() test as x86_match_cpu() does it for you. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.