Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp574892rwd; Thu, 18 May 2023 00:29:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ55NN6xnNHF3p5+0OrTYhTZZsfSozlnbDwiQXXidOVEJydcSXHbuZDVDcpaYY8jOaTgzwNp X-Received: by 2002:a17:902:fe81:b0:1ad:be4d:5dfe with SMTP id x1-20020a170902fe8100b001adbe4d5dfemr1525524plm.27.1684394983945; Thu, 18 May 2023 00:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684394983; cv=none; d=google.com; s=arc-20160816; b=dRd1yqkbSclhFN8XSDJ6daFJkeqG8A6j5L8FB0rkCeZcsoVm9N6n0UZqoP18iwxyZy eUIkWMAMQD4qiKZlPJNp9EYP6wVDWReJtIdWU9z706CufTJZm+mPkLn0ZzGLAIUimLs8 W42jo3VznzowvG+1FTRrbbk0gdmrHl9XjqYaD9hf8/HduQLUDdCaOV17F6nptHWyRROK d/0LyMyEuXhM8zu1KFRaUW/QV56d5G4LvFqQO1YM+Kjg4XxmaStcZlWZPtpJS+ts90hm 3//hT3hIizgsAM3Zjr1k+oLTOmBv9cFT1nRlGj1ZKQ1YsgwuAgWYTyL3kwAmJDh4faUm 2jTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature; bh=5I1oPwX+jhLRUYlW0Wc3H2YKdtp/NRfDLfSDDYnYzzc=; b=gKQwzZPA+TlxkxDFKXco3LU4fOpfHn459nQSxbAiJIkjfIvyYB8aMsrufUWnc9GzUW nU5wZ8lpT6zSYpiLo/t8uiaP7mhHwbaWB1FKF3aEwZEfhPFhdYJcafZittP8hMm0gKEE jQUvXzmQwAf74b+7tdPj3uu95d85FM3dKk9BT3uyouGKVm6rs0AZnGgUU6LSojcskYtd 9N6goqVoFYWXCxCnm9PIvKvH2SPOLON1kCRaAqk1vQoKdtmIJ7qRBTRl2ZZxG1rdl1Ic eEEw1BhSsPazKBI7CPJOcfXQX/TxWAjnNWmGWa0Pcj8BFdQInz6if4QXDfFGNiETtPXJ 0gjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="mkN/2z7/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n13-20020a170902e54d00b001a64b2dc495si628319plf.462.2023.05.18.00.29.29; Thu, 18 May 2023 00:29:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="mkN/2z7/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230015AbjERHYB (ORCPT + 99 others); Thu, 18 May 2023 03:24:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbjERHYA (ORCPT ); Thu, 18 May 2023 03:24:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4588F2113 for ; Thu, 18 May 2023 00:23:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D6A1260C6B for ; Thu, 18 May 2023 07:23:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43250C433D2; Thu, 18 May 2023 07:23:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684394638; bh=QceqSedZuifDelaQ8QhfFP+zC2XgAEjTm+cUUEQzzkw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mkN/2z7/I41L7W3zxc1cUKM3v+czSx1HQSygyYHJPh3uJn01IXgOWTM1idmnI7v6C pE1KFdrtve7Qka/21ddWjzX5GmEzATDVK/6UXy53rPuU147/xXLGNpebAN+fqYOtx3 hEvCBRJPXdh5IlpbR5aguwW2/g7qL3AitZXGeg7eD7RrY9aEqiho7UHRZhbOCJVlMy nWmeBWWo5k8u4SC9FcNLRtQZ7eDfyXTBjSiEjA8CtjZfdk58KcqSqJd8BEY6wHjX9p JcAuWfKK0zpz47I+/3MyH6EQWUjrEs1yZdf6TyMePsEFCcy5BP5s0BeRBVqldoI2D5 p54vS3oqIq5Ag== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pzXzQ-00G4V1-04; Thu, 18 May 2023 08:23:56 +0100 Date: Thu, 18 May 2023 08:23:55 +0100 Message-ID: <86mt22ksqc.wl-maz@kernel.org> From: Marc Zyngier To: Yan =?UTF-8?B?WmhlbmfvvIjkuKXmlL/vvIk=?= Cc: "tglx@linutronix.de" , "linux-kernel@vger.kernel.org" , Gao =?UTF-8?B?TWVpdGFv77yI6auY546r5rab77yJ?= , =?UTF-8?B?Ilpob3UgUWlhbyjlkajkvqgpIg==?= , =?UTF-8?B?IlpoYW5nIFpoaXpob3Uo5byg5rK75rSyKSI=?= Subject: Re: [PATCH] irqchip/gic-v3: workaround for ASR8601 when reading mpidr In-Reply-To: <05d97f210e484a07887f1e476fa4cae5@exch03.asrmicro.com> References: <20230517075500.43516-1-zhengyan@asrmicro.com> <86ttwbl5nq.wl-maz@kernel.org> <9dcef1c9343041c49a92ec8cd40d6331@exch03.asrmicro.com> <86sfbvktas.wl-maz@kernel.org> <05d97f210e484a07887f1e476fa4cae5@exch03.asrmicro.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: zhengyan@asrmicro.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, meitaogao@asrmicro.com, qiaozhou@asrmicro.com, zhizhouzhang@asrmicro.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 18 May 2023 04:15:54 +0100, Yan Zheng=EF=BC=88=E4=B8=A5=E6=94=BF=EF=BC=89 wrote: >=20 >=20 >=20 > > -----Original Message----- > > From: Marc Zyngier [mailto:maz@kernel.org] > > Sent: Wednesday, May 17, 2023 8:59 PM > > To: Yan Zheng=EF=BC=88=E4=B8=A5=E6=94=BF=EF=BC=89 > > Cc: tglx@linutronix.de; linux-kernel@vger.kernel.org; Gao Meitao=EF=BC= =88=E9=AB=98=E7=8E=AB=E6=B6=9B=EF=BC=89 > > ; Zhou Qiao(=E5=91=A8=E4=BE=A8) ; > > Zhang Zhizhou(=E5=BC=A0=E6=B2=BB=E6=B4=B2) > > Subject: Re: [PATCH] irqchip/gic-v3: workaround for ASR8601 when reading > > mpidr > >=20 > > On Wed, 17 May 2023 11:45:22 +0100, > > Yan Zheng=EF=BC=88=E4=B8=A5=E6=94=BF=EF=BC=89 w= rote: > > > > > > > > > > > > > -----Original Message----- > > > > From: Marc Zyngier [mailto:maz@kernel.org] > > > > Sent: Wednesday, May 17, 2023 4:32 PM > > > > To: Yan Zheng=EF=BC=88=E4=B8=A5=E6=94=BF=EF=BC=89 > > > > Cc: tglx@linutronix.de; linux-kernel@vger.kernel.org; Gao > > > > Meitao=EF=BC=88=E9=AB=98=E7=8E=AB=E6=B6=9B=EF=BC=89 > > > > ; Zhou Qiao(=E5=91=A8=E4=BE=A8) ; > > > > Zhang Zhizhou(=E5=BC=A0=E6=B2=BB=E6=B4=B2) > > > > Subject: Re: [PATCH] irqchip/gic-v3: workaround for ASR8601 when > > > > reading mpidr > > > > > > > > On Wed, 17 May 2023 08:55:00 +0100, > > > > zhengyan wrote: > > > > > > > > > > This patch add workaround for ASR8601, which uses an armv8.2 > > > > > processor with a gic-500. ARMv8.2 uses Multiprocessor Affinity > > > > > Register to identify the logical address of the core by > > > > > | cluster | core | thread |. > > > > > > > > Not quite. The ARMv8.2 architecture doesn't say *any* of that. It is > > > > ARM's > > > > *implementations* that follow this scheme. > > > > > > > > > > Really thank you for rapid response, > > > Yes, as arm documents > > > https://developer.arm.com/docuentation/ka002107/latest said > >=20 > > This page doesn't exist. > >=20 >=20 > Sorry for my mistake, > https://developer.arm.com/documentation/ka002107/latest > extract from the docs: > The Arm-v8.0 CPUs use affinity 0 for a CPU and affinity 1 for a cluster. = > All Arm-v8.2 CPUs use affinity 2 for a cluster, 1 for a CPU, and 0 for a = thread. > The GIC-500 does not support affinity 2. Therefore, the GIC-500 cannot ro= ute=20 > Shared Peripheral Interrupts (SPIs) or Software Generated Interrupts (SGI= s)=20 > correctly for Arm-v8.2 CPUs.=20 > The GIC-500 does not have correct buses to connect the system together. All these are implementations. Nothing to do with the architecture (which only mentions the notion of 'cluster' when talking about caches). Anyway, let's move on. > > > > It comes from armv8.2 get 3 types for affinity (arm v8.0 cpus only get > > > 2 types) And it's an implementations issue. > >=20 > > Again, this has nothing to do with the ARMv8.2 architecture. Nor the > > ARMv8.0 architecture. Please read the ARM ARM, which says absolutely > > *nothing* of what the various affinity levels are for. > >=20 >=20 > As the extract from pervious part mentioned, > It seems like this issue related to that? I just want to mention that > this issue is cause by HW choice in the commit message. You can say that GIC500 is incompatible with ARMv8.2 implementations from ARM, and that a workaround is needed for that. Thanks, M. --=20 Without deviation from the norm, progress is not possible.