Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2511432pxb; Mon, 18 Jan 2021 21:43:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwNZIgXaK7GSUvqLj9D0jrW9akPwbkv82DkGD1mkFU/AP33RfKKt9r86Sx7CrHvWr0HUmZp X-Received: by 2002:a17:906:1658:: with SMTP id n24mr1892100ejd.532.1611035011715; Mon, 18 Jan 2021 21:43:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611035011; cv=none; d=google.com; s=arc-20160816; b=s+5MfhJjHWBkiylB3+V/uQjvp0PB4NtCzOve34JLv3lnK5uyTB3qOYCGRk1nkdmHTl VuE5yYlSrA136ZTxw0NNXrI4yMEeQSoMb0ls0FtZOv0ChrHEG745bxOYi1I1XO8mJUKE ge0bia721qbYQvsluaWQliVL9TFCU8cqHreWaH7RT0WDkAsQjCzn3WxVJXG6QZz11Vfe IwcU49ths51j4BWWaWQJOClIm5wyMksDbqPOj1qJIenLucm6ahfVFIFF173efJn2zBbk HlUaZqkPL4rHgdMgfIYP1u9opS0wdDOLu4rx/EoIkEU0yERZCUg0RpnW1tvDmL5Yj7WY kP9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=d6dfBuEnQg7G2ryYKhbq0GWLyiGiNpzEAT/DCVj6aGw=; b=qKb1bNewQ97jEFbDwv/UyGieGbPUF0T5WY4iPLPWkSqwwDynzxxl9bBE6Hak+axW3u JCmHnE6lUiB+Rmp7v39EKSG1bWdD6TZCTmPBKJseeFsNaCv9gVivChulOgE1ACY3KXeL d7gru/YIjuFwfFnLT8Y7urW4F+B/CQHn6dCQu5TWQb/RzMX7YfM810ojVhgDdAF1FaiG /wtHj/K4R9JPenntVMBVADmRPj+jEFqspViOugK0Skblub2OgqNdxxigP4VT4qtZdYff 8fAHhvdAQk5edS3hpLLrFj6DbiFqJ6u5Siy9PUfhU/eZa8D4+2Bo4Td+S6rMUc+kPWLR 5pZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f20si2250882edq.165.2021.01.18.21.43.08; Mon, 18 Jan 2021 21:43:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404794AbhASCLf (ORCPT + 99 others); Mon, 18 Jan 2021 21:11:35 -0500 Received: from ZXSHCAS2.zhaoxin.com ([203.148.12.82]:49106 "EHLO ZXSHCAS2.zhaoxin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404715AbhASCLe (ORCPT ); Mon, 18 Jan 2021 21:11:34 -0500 Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) by ZXSHCAS2.zhaoxin.com (10.28.252.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Tue, 19 Jan 2021 10:10:51 +0800 Received: from [10.32.56.37] (10.32.56.37) by zxbjmbx1.zhaoxin.com (10.29.252.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Tue, 19 Jan 2021 10:10:49 +0800 Subject: Re: [PATCH] x86/cpu/zhaoxin: Fix wrong lowercase naming and indent To: Isaac Chen CC: , , , , , References: <20210118172558.19426-1-tingyi364@gmail.com> From: Tony W Wang-oc Message-ID: Date: Tue, 19 Jan 2021 10:10:42 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20210118172558.19426-1-tingyi364@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.32.56.37] X-ClientProxiedBy: ZXSHCAS1.zhaoxin.com (10.28.252.161) To zxbjmbx1.zhaoxin.com (10.29.252.163) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/01/2021 01:25, Isaac Chen wrote: > This is printed during kernel boot, match it with other supported x86 cpus. > [ 0.000000] KERNEL supported cpus: > [ 0.000000] Intel GenuineIntel > [ 0.000000] AMD AuthenticAMD > [ 0.000000] Hygon HygonGenuine > [ 0.000000] Centaur CentaurHauls > [ 0.000000] zhaoxin Shanghai > > Signed-off-by: Isaac Chen > --- > arch/x86/kernel/cpu/zhaoxin.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/x86/kernel/cpu/zhaoxin.c b/arch/x86/kernel/cpu/zhaoxin.c > index 05fa4ef63490..f155bbd2aa97 100644 > --- a/arch/x86/kernel/cpu/zhaoxin.c > +++ b/arch/x86/kernel/cpu/zhaoxin.c > @@ -120,8 +120,8 @@ zhaoxin_size_cache(struct cpuinfo_x86 *c, unsigned int size) > #endif > > static const struct cpu_dev zhaoxin_cpu_dev = { > - .c_vendor = "zhaoxin", > - .c_ident = { " Shanghai " }, > + .c_vendor = "Zhaoxin", Thanks for this patch. > + .c_ident = { "Shanghai" }, The Vendor Identification String from CPUID leaf 0x00000000 of Zhaoxin CPUs is not "Shanghai", ".c_ident = { "Shanghai" }," will cause the matching of Zhaoxin CPUs fail. Please do not modify ".c_ident = { " Shanghai " },". Sincerely, Tonyw