Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp518628rdb; Thu, 21 Dec 2023 17:16:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IHMvEv5EbZJQBei5A3igb37hDc7p3FtcU10eWlicvTyKoXoRhCHgYYHe6cOj1FIZ6KQ2vif X-Received: by 2002:a17:90a:d3c8:b0:28b:b995:c886 with SMTP id d8-20020a17090ad3c800b0028bb995c886mr499994pjw.82.1703207809743; Thu, 21 Dec 2023 17:16:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703207809; cv=none; d=google.com; s=arc-20160816; b=L842GVrV4Sv7IVL2Kv+AVsOdV8/IEmeMnMzz5A+WFy3mcersNyAif3vyuVtkfofJdm nHMZ+4zTT2l41xL/pma8sQSilScqKBRT1nHbS2N7p3MtuG7JrLk4fPED9FUT+w0hm3xG dzyuqO3QyAFHVJKY7L0QAJm0eEaGKYWB4gaENESi4YkcWNn3hXVWgORUojeZozeE7Wjg 8wz2x2gIUZGREwsbaCVmS3asjkIrgmS26d6/f3O5zJEf1qKxRfJxaOimG/q8xuTbkRYp 99J8RKxNgksJaO18+D4I3tmq2AMTnRdS6Sa7XnXSfNY6Avwm2JLn/Eq13v0jZhij3M6h Mwkw== 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 :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=JIA//IHP0Me0Pc8sL62vOw+soEfxvkiZzbn5MDY7sf8=; fh=44AHuOl1DiW82LnEmotqoMiuOLca4dNz/RjTIISO2oU=; b=BNLasSLsH4wWD2uScGSl/s4dxC957cEzyNDd2qR6d8vuBEd1hD8uq0jZfw4koT3Kla RyQrWgWXTD+W5EwnFB/kIlIvL+jdqnRtaUiLWUvBvZXcolBeNIfAs+qQbLN4SW0q+U/e sJdINsL+gy402bYhAtK4s4lBMd0PI2ZQSsTAREZmVlChlty0Z6tSku9gH3LhO3FC3Q5X x0+J0IAAPFsuP0Ws6r5u7tlA94NQKnqLM9UgbmEfP2/P6EI6Jh9HfY8S9Q8+pD20NcQz oRPDg2JyDKF1YomkefgUAdfX4Em60mtiW0a5+xg1Vk4SzsyA8in7F7qhEjwIZ2RDT0O8 o5Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=JwEtyxzp; spf=pass (google.com: domain of linux-kernel+bounces-9230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9230-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n2-20020a17090a2c8200b0028b7c5ba0c0si5709414pjd.4.2023.12.21.17.16.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 17:16:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9230-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=@ellerman.id.au header.s=201909 header.b=JwEtyxzp; spf=pass (google.com: domain of linux-kernel+bounces-9230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9230-linux.lists.archive=gmail.com@vger.kernel.org" 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 69AB2287CE5 for ; Fri, 22 Dec 2023 01:16:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5823AA5E; Fri, 22 Dec 2023 01:16:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b="JwEtyxzp" X-Original-To: linux-kernel@vger.kernel.org Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (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 75931A23 for ; Fri, 22 Dec 2023 01:16:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ellerman.id.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1703207799; bh=JIA//IHP0Me0Pc8sL62vOw+soEfxvkiZzbn5MDY7sf8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=JwEtyxzpQ+ESmsQSdls5sNEhaIBKEJGDLR5mLVnatIdIQZcyLA0dvqEHe5ggdIfbY x9feYcF7iHsrdLw6CKnX6xKLrHHVdK+Qsm8aIiu+FZCUVnxz5whaSHTL+3hFTMAdv2 /WqpUlghwPJASF5fkbOo4QliRReFyPasydAKo6TwDxmkJpM56PkemApuxnwcY9Lr9S +B6f3eg7szMNiusQ4qJwo8jazXEYJ1DB0M/Apn64pI/mgORZw9ESe+6F+bhmIy1Z2l NMN5JpXEWaGr1EYxANsrTwCo5zSbcYMqBLDBwWK1yhk3/VucBz90yVH7riEa0Itq4O gLBuyW9UtftUQ== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Sx8X66JrGz4wcX; Fri, 22 Dec 2023 12:16:38 +1100 (AEDT) From: Michael Ellerman To: Matthias Schiffer , Christophe Leroy 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, Matthias Schiffer Subject: Re: [PATCH] powerpc/6xx: set High BAT Enable flag on G2 cores In-Reply-To: <20231221124538.159706-1-matthias.schiffer@ew.tq-group.com> References: <20231221124538.159706-1-matthias.schiffer@ew.tq-group.com> Date: Fri, 22 Dec 2023 12:16:38 +1100 Message-ID: <875y0rkpe1.fsf@mail.lhotse> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Matthias Schiffer writes: > MMU_FTR_USE_HIGH_BATS is set for G2-based cores (G2_LE, e300cX), but the > high BATs need to be enabled in HID2 to work. Add register definitions > and introduce a G2 variant of __setup_cpu_603. > > This fixes boot on CPUs like the MPC5200B with STRICT_KERNEL_RWX enabled. Nice find. 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"? Wikipedia says G2 == 603e. But looking at your patch you're not changing all the 603e cores, so I guess it's not that clear cut? 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). cheers