Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp657633rdb; Fri, 22 Dec 2023 00:34:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFH8ljcHHWXFxpjXbDLHCQW/iagoelrb+LmCh4VvryaclaJsew0HEmdBkTzIWzDtwnU/mK3 X-Received: by 2002:a17:903:1104:b0:1d0:bcb2:4b8a with SMTP id n4-20020a170903110400b001d0bcb24b8amr671579plh.131.1703234081438; Fri, 22 Dec 2023 00:34:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703234081; cv=none; d=google.com; s=arc-20160816; b=YL4isRbZ3YkqClpR0vx/IqwmrwKmU5l8Uksp+aaHvh0jOiFU73kww+o6ybCuFpqx+w kg2iztgzR0MrRNXAvUSUF7huW0wOQpQQOWeXpoUX/Eq+JvLF/4w1vz4NCpWNNlEb2jIp gS/bKZleDcbbbVhVKQafWYEgSGxytOLFqOgW78NzGwozuoa++hAtSsazYqjIE3ajwdBM 1VZQfLU1bne/ivuzFHNMcToLfyBWNcAzWlnergRCLSOGrFCE9Bw4/EyBHjp01KJVUa2t efLjDky9zMCCE8p5awzx+jexflDRI+nxzYPhkGRaWkbmoyBHt0RC/QDnpVJAZwTy99xL EFNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=ik9crkT0XTZ3SsD0fxNTR3pdx9l+an8Ix+Qa0YkNTG8=; fh=xipd8GyPQ7uOX0aOUJSo/NuwwqZyY9yScoI/65a3RFA=; b=mPbKCt2zjNW/8cN6QwES6yPXAHe/+6EWpMRZ7gkQTju+ib4rp1O4Q8fc9RPeM1x4IT Ek2FTmChZqmnmmcQq93woV+gEIiKvjeXolVDA/mt+XiCNpQaqX5BVGZporPJdrx5N9MN hfoFbIgUheFLfrPo+XLJZOO2gZJxVSRm2GlSVOcKIJmYRUrzwznCdwBB8NZaa8EzcPpB tvRKw3iX0m0v/fPTWAbi1Mspzw6yPwiSTDDSb5hDodeWjzxJoU9sQKGYsmVkq5mZG64L FEuUIe+pz3UgYLZBremC3xgpAZdeu4YKr51on5mDeoiHOsbputuHoYm06DI4htX1iG4N 95lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b="T9RIE5C/"; spf=pass (google.com: domain of linux-kernel+bounces-9506-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9506-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t1-20020a170902bc4100b001d3f5cfa75bsi2775330plz.630.2023.12.22.00.34.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 00:34:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9506-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b="T9RIE5C/"; spf=pass (google.com: domain of linux-kernel+bounces-9506-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9506-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 76601285A19 for ; Fri, 22 Dec 2023 08:34:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26AC7CA5D; Fri, 22 Dec 2023 08:34:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b="T9RIE5C/" X-Original-To: linux-kernel@vger.kernel.org Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0D843659 for ; Fri, 22 Dec 2023 08:34:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ew.tq-group.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1703234050; x=1734770050; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=ik9crkT0XTZ3SsD0fxNTR3pdx9l+an8Ix+Qa0YkNTG8=; b=T9RIE5C/wrkd5UuI+t9g+BoYgUSuDHuceWD92teAd1urO8b4Uqs02kPL otwL7h5wFhM0xbEmqQgDuVuvGidNGvXbr06wbM8ZsAdUOpijcRZifmbmc 1uKmPE9GKI4g5JN65Q7nqdBaVITUQyi83hHQYGVD7LJlJ930CKlmBydCS gXEj6KKFDQjFKCAS99BY9FMNu/Oy5G9R3FwiGjEydj7h0jonPQ7D8bft9 qsIJBQhI+DBPR3qOy5SWa4m7SEot30tLI7YhLqQjA7hhqDGP9R4adbS8H VRUd2WvEMm+EYOBhK1qhO5RGuqkKCCivSSUSzbRMi9h/ADpdn5GK2rpi4 g==; X-IronPort-AV: E=Sophos;i="6.04,294,1695679200"; d="scan'208";a="34649508" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 22 Dec 2023 09:34:07 +0100 Received: from [192.168.2.128] (SCHIFFERM-M2.tq-net.de [10.121.53.15]) by vtuxmail01.tq-net.de (Postfix) with ESMTPA id 80332280075; Fri, 22 Dec 2023 09:34:06 +0100 (CET) Message-ID: Subject: Re: [PATCH] powerpc/6xx: set High BAT Enable flag on G2 cores From: Matthias Schiffer To: Michael Ellerman Cc: Nicholas Piggin , "Aneesh Kumar K.V" , "Naveen N. Rao" , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux@ew.tq-group.com, Christophe Leroy Date: Fri, 22 Dec 2023 09:34:06 +0100 In-Reply-To: <875y0rkpe1.fsf@mail.lhotse> References: <20231221124538.159706-1-matthias.schiffer@ew.tq-group.com> <875y0rkpe1.fsf@mail.lhotse> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Fri, 2023-12-22 at 12:16 +1100, Michael Ellerman wrote: > Matthias Schiffer writes: > > MMU_FTR_USE_HIGH_BATS is set for G2-based cores (G2_LE, e300cX), but th= e > > high BATs need to be enabled in HID2 to work. Add register definitions > > and introduce a G2 variant of __setup_cpu_603. > >=20 > > This fixes boot on CPUs like the MPC5200B with STRICT_KERNEL_RWX enable= d. >=20 > Nice find. >=20 > Minor nit on naming. The 32-bit code mostly uses the numeric names, eg. > 603, 603e, 604 etc. Can we stick with that, rather than using "G2"? >=20 > Wikipedia says G2 =3D=3D 603e. But looking at your patch you're not chang= ing > all the 603e cores, so I guess it's not that clear cut? >=20 > If using "G2" makes the most sense then it would be nice to update > Documentation/arch/powerpc/cpu_families.rst to mention it (not asking > you to do it necessarily, more a note for us). According to the 603e manual I could find (MPR603EUM-01), the HID2 register= does not exist in the original 603e cores - the register was only added by Freescale in its exten= ded implementations. The manual of the MPC5200 calls its core an "e300", but that seems to be an= older implementation than the "e300c[1-4]" cores described in the "e300" manual. I'm not sure if= "e300" (without "cX") and "G2_LE" are synonymous. So AFAIR either "G2" or "e300" could be an appropriate name for the family,= but which is better I can't say. Regards, Matthias >=20 > cheers --=20 TQ-Systems GmbH | M=C3=BChlstra=C3=9Fe 2, Gut Delling | 82229 Seefeld, Germ= any Amtsgericht M=C3=BCnchen, HRB 105018 Gesch=C3=A4ftsf=C3=BChrer: Detlef Schneider, R=C3=BCdiger Stahl, Stefan Sch= neider https://www.tq-group.com/