Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752234AbcDTPzF (ORCPT ); Wed, 20 Apr 2016 11:55:05 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:31025 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751747AbcDTPzD (ORCPT ); Wed, 20 Apr 2016 11:55:03 -0400 Message-ID: <5717A63E.9000802@oracle.com> Date: Wed, 20 Apr 2016 21:24:38 +0530 From: Allen Pais User-Agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: Khalid Aziz CC: Rob Gardner , David Miller , David Aldridge , "linux-kernel@vger.kernel.org" , khalid@gonehiking.org, "sparclinux@vger.kernel.org" , Nitin Gupta Subject: Re: [PATCH] sparc64: recognize and support Sonoma CPU type References: <1461085974-13534-1-git-send-email-khalid.aziz@oracle.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1241 Lines: 35 > > Signed-off-by: Khalid Aziz > > --- > arch/sparc/include/asm/spitfire.h | 1 + > arch/sparc/kernel/cpu.c | 6 ++++++ > arch/sparc/kernel/cpumap.c | 1 + > arch/sparc/kernel/head_64.S | 8 ++++++++ > arch/sparc/kernel/setup_64.c | 7 ++++++- > arch/sparc/mm/init_64.c | 3 +++ > 6 files changed, 25 insertions(+), 1 deletion(-) > > diff --git a/arch/sparc/include/asm/spitfire.h b/arch/sparc/include/asm/spitfire.h > index 56f9338..1d8321c 100644 > --- a/arch/sparc/include/asm/spitfire.h > +++ b/arch/sparc/include/asm/spitfire.h > @@ -48,6 +48,7 @@ > #define SUN4V_CHIP_SPARC_M6 0x06 > #define SUN4V_CHIP_SPARC_M7 0x07 > #define SUN4V_CHIP_SPARC64X 0x8a > +#define SUN4V_CHIP_SPARC_SN 0x8b > #define SUN4V_CHIP_UNKNOWN 0xff Looks good to me. Do you think adding these also this patch makes sense or it could be a separate patch. } - if (!strcmp(sparc_pmu_type, "sparc-m7")) { + if (!strcmp(sparc_pmu_type, "sparc-m7") || + !strcmp(sparc_pmu_type, "sparc-sn")) { sparc_pmu = &sparc_m7_pmu; return true; Acked-by: Allen Pais - Allen