Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1181689rdh; Fri, 24 Nov 2023 06:57:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IHz1vnn37ftENkrtgx2POu1fShL+G3dwCOp00s7s8QyAhB/sDssBeFyVdl4xQQHSx6zvfSt X-Received: by 2002:a17:90a:1910:b0:281:d55:6fe8 with SMTP id 16-20020a17090a191000b002810d556fe8mr2680990pjg.24.1700837878171; Fri, 24 Nov 2023 06:57:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700837878; cv=none; d=google.com; s=arc-20160816; b=B8RJTpDB4TXNC2bRiGO1618PNR8iVGQIc+mlXGqLG3QCg+mgF0qYNLSKNtu9VUXszb rn7Xy6CyQRXQv3KBW+51HwRkBgggkB9FwCkaach2IBF85qRNpSVWKk5l2ROBw0TDeQch +KRheDj64uMpW33ug6eYOGg8eMkkatVUuHRJgtpGfDJqf3fhB330XgoO97x0Yic8Gqqf ZGim/XD2Bkqx+e4fUXO0eO/M7TNzY/cnTriClNQ3iGX30N52Z/QtTpjoqE3ro0GMJWnd wmo2J1ETSJjMjZ5pb4diDWspCB85+N1KHWf9+Ue9n1tqSS7g+2ytlN9be/48Q4RefHgv NPIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=McONVnnVXBzrRAKYWOt6koN2Gq2PdEQz7Bj2evyzgvA=; fh=lcXXgo9Bzghr8HRbPuP771zD4BOLHsyGktIL3RvWV7A=; b=vUTrnwtEmSGwwlgwDJQrejv1VxqmLPa2i75Bw+LHnlpoB0RNd7lOVHLPsY41NdObSC PP7BtS0+X3JVuGNp1+bqP6FpbfXnL+5v7rAkB7hk3D5PQO6ngEh+xfBBobCAZg4HXiX2 NjXFXE3wHdrU+ADQcWl6t1rMlIJ6GnCrxTmVovPT42bOFSc4wHrgbBPjbXCVblYI9Arv qMk07ToA7Zed/ht1UBh9Da228hbcvVsKOMo57zurTyTWYOPTbJ1l9rD5uA9EU288e9bm lQFYVikypswCX1O12nEdm5hL38x3FHhzVexPQjx/plErCrUYhBvLreQ/DHSv4a/6S1NC Mamw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iYAgDlSt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id ne16-20020a17090b375000b0028566a2eafasi1352125pjb.1.2023.11.24.06.57.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 06:57:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iYAgDlSt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 4703F80AEF95; Fri, 24 Nov 2023 06:57:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345401AbjKXO5j (ORCPT + 99 others); Fri, 24 Nov 2023 09:57:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229659AbjKXO5i (ORCPT ); Fri, 24 Nov 2023 09:57:38 -0500 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B909AD72; Fri, 24 Nov 2023 06:57:41 -0800 (PST) Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-3b83c4c5aefso1200748b6e.1; Fri, 24 Nov 2023 06:57:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700837861; x=1701442661; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=McONVnnVXBzrRAKYWOt6koN2Gq2PdEQz7Bj2evyzgvA=; b=iYAgDlStmihvaAAHvkuY517osyQUEeXuPRxlxbpuIx6Jqc6qzTOBdMbBNgMAgOokDQ bE9+1Wba+KgixwrhJoeDGs7r3OSjA1J7UCR2seVBEW18VAO0CJmGLXhOuNwg/FwJdys6 69tl+lx9LSSeVTSfhMAxUBc5SgWA+FzGj/yVuKXc/HDtGA84O5GrWpKXD54CTY2C8RPX wRjvzbhmiNXUcB1og0gspWRAC2u/8cxBk01zwLDxdOdauM/8+vtE4f6u+vi5TAzRHJrU RbbOqKRHLXN9HV7F+BAOBD/NHLA528OFGGhJHc2ngJn/kE9mlT2/Qmfknb2z0LLCsHy7 QDjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700837861; x=1701442661; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=McONVnnVXBzrRAKYWOt6koN2Gq2PdEQz7Bj2evyzgvA=; b=UU0rRCrWkd9sPgFQvwfCrMMDUsmJOBRr7C6Tt7SEVqNm/Tq23QwGOmzKkAGqgkwoPa X7SualHbi94NeifXcDg0sp6blzlPz9fgMs3NBJfOxEBGgj+37CtJAT3jBkmAAc/e0gw7 6t2ACvNtxB5paXzYCZStksIc1lGdJR9SqTy5Yd8GbFfW3tQMcTtVb1TggZweRSfi90+K qZfupPcUkQmUlbrQK/G1SVxUdK5McCE2OaWP64E4eNYcFJzc1r4L9HzHMsh1ldjMlLcC YnibFP1/enM+w/z7hKFG34TQf+6OxfNszE6WDzl4Dfh9fDHCTA2uayrtGRlokruUZLGi v2Vg== X-Gm-Message-State: AOJu0Yx3q8Iv0+reFcNMUQjWY87i6mZAV5848CCYvn0LouamtYVcGFfW OSdBTPZLWApjBOBOMZBk7cDITbca2dwnO3okxBs= X-Received: by 2002:a05:6358:9198:b0:16d:f02d:d394 with SMTP id j24-20020a056358919800b0016df02dd394mr2754632rwa.14.1700837860947; Fri, 24 Nov 2023 06:57:40 -0800 (PST) MIME-Version: 1.0 References: <20231122121235.827122-1-peterlin@andestech.com> <20231122121235.827122-2-peterlin@andestech.com> In-Reply-To: <20231122121235.827122-2-peterlin@andestech.com> From: "Lad, Prabhakar" Date: Fri, 24 Nov 2023 14:57:15 +0000 Message-ID: Subject: Re: [PATCH v4 01/13] riscv: errata: Rename defines for Andes To: Yu Chien Peter Lin Cc: acme@kernel.org, adrian.hunter@intel.com, ajones@ventanamicro.com, alexander.shishkin@linux.intel.com, andre.przywara@arm.com, anup@brainfault.org, aou@eecs.berkeley.edu, atishp@atishpatra.org, conor+dt@kernel.org, conor.dooley@microchip.com, conor@kernel.org, devicetree@vger.kernel.org, dminus@andestech.com, evan@rivosinc.com, geert+renesas@glider.be, guoren@kernel.org, heiko@sntech.de, irogers@google.com, jernej.skrabec@gmail.com, jolsa@kernel.org, jszhang@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sunxi@lists.linux.dev, locus84@andestech.com, magnus.damm@gmail.com, mark.rutland@arm.com, mingo@redhat.com, n.shubin@yadro.com, namhyung@kernel.org, palmer@dabbelt.com, paul.walmsley@sifive.com, peterz@infradead.org, prabhakar.mahadev-lad.rj@bp.renesas.com, rdunlap@infradead.org, robh+dt@kernel.org, samuel@sholland.org, sunilvl@ventanamicro.com, tglx@linutronix.de, tim609@andestech.com, uwu@icenowy.me, wens@csie.org, will@kernel.org, ycliang@andestech.com, inochiama@outlook.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 24 Nov 2023 06:57:55 -0800 (PST) On Wed, Nov 22, 2023 at 12:18=E2=80=AFPM Yu Chien Peter Lin wrote: > > Using "ANDES" rather than "ANDESTECH" to unify the naming > convention with directory, file names, Kconfig options > and other definitions. > > Signed-off-by: Yu Chien Peter Lin > Reviewed-by: Charles Ci-Jyun Wu > Reviewed-by: Leo Yu-Chi Liang > Acked-by: Conor Dooley > --- > Changes v1 -> v2: > - No change > Changes v2 -> v3: > - Rewrote commit message (suggested by Conor) > Changes v3 -> v4: > - Include Conor's Acked-by tag > --- > arch/riscv/errata/andes/errata.c | 10 +++++----- > arch/riscv/include/asm/errata_list.h | 4 ++-- > arch/riscv/include/asm/vendorid_list.h | 2 +- > arch/riscv/kernel/alternative.c | 2 +- > 4 files changed, 9 insertions(+), 9 deletions(-) > Reviewed-by: Lad Prabhakar Cheers, Prabhakar > diff --git a/arch/riscv/errata/andes/errata.c b/arch/riscv/errata/andes/e= rrata.c > index 197db68cc8da..d2e1abcac967 100644 > --- a/arch/riscv/errata/andes/errata.c > +++ b/arch/riscv/errata/andes/errata.c > @@ -18,9 +18,9 @@ > #include > #include > > -#define ANDESTECH_AX45MP_MARCHID 0x8000000000008a45UL > -#define ANDESTECH_AX45MP_MIMPID 0x500UL > -#define ANDESTECH_SBI_EXT_ANDES 0x0900031E > +#define ANDES_AX45MP_MARCHID 0x8000000000008a45UL > +#define ANDES_AX45MP_MIMPID 0x500UL > +#define ANDES_SBI_EXT_ANDES 0x0900031E > > #define ANDES_SBI_EXT_IOCP_SW_WORKAROUND 1 > > @@ -32,7 +32,7 @@ static long ax45mp_iocp_sw_workaround(void) > * ANDES_SBI_EXT_IOCP_SW_WORKAROUND SBI EXT checks if the IOCP is= missing and > * cache is controllable only then CMO will be applied to the pla= tform. > */ > - ret =3D sbi_ecall(ANDESTECH_SBI_EXT_ANDES, ANDES_SBI_EXT_IOCP_SW_= WORKAROUND, > + ret =3D sbi_ecall(ANDES_SBI_EXT_ANDES, ANDES_SBI_EXT_IOCP_SW_WORK= AROUND, > 0, 0, 0, 0, 0, 0); > > return ret.error ? 0 : ret.value; > @@ -43,7 +43,7 @@ static bool errata_probe_iocp(unsigned int stage, unsig= ned long arch_id, unsigne > if (!IS_ENABLED(CONFIG_ERRATA_ANDES_CMO)) > return false; > > - if (arch_id !=3D ANDESTECH_AX45MP_MARCHID || impid !=3D ANDESTECH= _AX45MP_MIMPID) > + if (arch_id !=3D ANDES_AX45MP_MARCHID || impid !=3D ANDES_AX45MP_= MIMPID) > return false; > > if (!ax45mp_iocp_sw_workaround()) > diff --git a/arch/riscv/include/asm/errata_list.h b/arch/riscv/include/as= m/errata_list.h > index 83ed25e43553..4ed21a62158c 100644 > --- a/arch/riscv/include/asm/errata_list.h > +++ b/arch/riscv/include/asm/errata_list.h > @@ -12,8 +12,8 @@ > #include > > #ifdef CONFIG_ERRATA_ANDES > -#define ERRATA_ANDESTECH_NO_IOCP 0 > -#define ERRATA_ANDESTECH_NUMBER 1 > +#define ERRATA_ANDES_NO_IOCP 0 > +#define ERRATA_ANDES_NUMBER 1 > #endif > > #ifdef CONFIG_ERRATA_SIFIVE > diff --git a/arch/riscv/include/asm/vendorid_list.h b/arch/riscv/include/= asm/vendorid_list.h > index e55407ace0c3..2f2bb0c84f9a 100644 > --- a/arch/riscv/include/asm/vendorid_list.h > +++ b/arch/riscv/include/asm/vendorid_list.h > @@ -5,7 +5,7 @@ > #ifndef ASM_VENDOR_LIST_H > #define ASM_VENDOR_LIST_H > > -#define ANDESTECH_VENDOR_ID 0x31e > +#define ANDES_VENDOR_ID 0x31e > #define SIFIVE_VENDOR_ID 0x489 > #define THEAD_VENDOR_ID 0x5b7 > > diff --git a/arch/riscv/kernel/alternative.c b/arch/riscv/kernel/alternat= ive.c > index 319a1da0358b..0128b161bfda 100644 > --- a/arch/riscv/kernel/alternative.c > +++ b/arch/riscv/kernel/alternative.c > @@ -43,7 +43,7 @@ static void riscv_fill_cpu_mfr_info(struct cpu_manufact= urer_info_t *cpu_mfr_info > > switch (cpu_mfr_info->vendor_id) { > #ifdef CONFIG_ERRATA_ANDES > - case ANDESTECH_VENDOR_ID: > + case ANDES_VENDOR_ID: > cpu_mfr_info->patch_func =3D andes_errata_patch_func; > break; > #endif > -- > 2.34.1 > >