Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1753958rda; Tue, 24 Oct 2023 02:05:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE6FYXIWi9fRm7XZEFJxtyLSB+HtbZgCBIwxFTSAUjYUYoSc3+9sqkt+h9IC99xFSMtvOJt X-Received: by 2002:a05:6359:2a0:b0:168:ecf1:784b with SMTP id ek32-20020a05635902a000b00168ecf1784bmr3015810rwb.19.1698138319767; Tue, 24 Oct 2023 02:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698138319; cv=none; d=google.com; s=arc-20160816; b=SlDPUlo1ucPdMjiQqU+IUgPqEdekQC6QL8TacUZlIwU/lPLEbzk4M+1ksTUOWjnP9k kc23aL8s8FCRcxe/xSpuM54VZefqVgjY/HHKW4daZJ4OYufyHiJ2pmSuXHLg4XAs1t0w ww6xZ+9lEnN0BhbfWn0FizF/LfJ4ZuzNRYRKWyL+GIzIwwl3HM3eV5bPLAJVS/uTQq8O 4Y+bMK3GI0K9VPVXH1D0+0ThyprwRmV84KLq4iME4Jj2p8xj+MuRkcp19oQ7R3T5kA8H VWv9dDpUtfktZZDQktTJcgSZPH19hN57nFMmZktuTiPlUWKj2YVvhm0p2Wo/4fkTxxo0 B1nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=sd7MubDn+tFydw5glZdmqhdy1vy/KtYphjDijxDKyhc=; fh=9Z3ZBh6whMixpj5zFMGy4XubcUf/TO4ptqNIOjbdFSg=; b=hwjxQgW9K49WnW1GLoxLIeEs3CTKYU5uhJUpIbT6z9dOASpM7mEgAi7WOnqFW6OIJN 6ifBMdirYHo7thrZ3E74gVBim0Bg3PA5ffzKstFwF9QzgqHsNeUMGMt2Utn6B3BND+9Y j8MohgZE6O6e8NRDiSlJHnwslzl4Z9evUpjFSR2c1rihHEfr+cQFRsshGp2wbGpHuDWj 2hKLH/Uk13WSfq1qw8mcbet6zwnh80bau7MdIVe90bZmDI2Fyb1noaXaXiBp3WaebqiZ GZO4vBb3oSXzg2NtqTwVYQd10JFk4AdkoO/xboBu9zf8WIBOjHuaIvjK5XzUCloKtn5g l3UA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id bx18-20020a056a02051200b0057745d87b53si8255446pgb.686.2023.10.24.02.05.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 02:05:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 4E2B18044971; Tue, 24 Oct 2023 02:05:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233880AbjJXJFG (ORCPT + 99 others); Tue, 24 Oct 2023 05:05:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232865AbjJXJFF (ORCPT ); Tue, 24 Oct 2023 05:05:05 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A013EC0; Tue, 24 Oct 2023 02:05:02 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id DB11492009C; Tue, 24 Oct 2023 11:05:00 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id D5D0392009B; Tue, 24 Oct 2023 10:05:00 +0100 (BST) Date: Tue, 24 Oct 2023 10:05:00 +0100 (BST) From: "Maciej W. Rozycki" To: Jiaxun Yang cc: Gregory CLEMENT , "paulburton@kernel.org" , Thomas Bogendoerfer , "linux-mips@vger.kernel.org" , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vladimir Kondratiev , Tawfik Bayouk , Alexandre Belloni , =?UTF-8?Q?Th=C3=A9o_Lebrun?= , Thomas Petazzoni Subject: Re: [PATCH 03/11] MIPS: support RAM beyond 32-bit In-Reply-To: Message-ID: References: <20231004161038.2818327-1-gregory.clement@bootlin.com> <20231004161038.2818327-4-gregory.clement@bootlin.com> <87edi3bxcl.fsf@BL-laptop> <878r89b4jh.fsf@BL-laptop> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 24 Oct 2023 02:05:17 -0700 (PDT) On Thu, 12 Oct 2023, Jiaxun Yang wrote: > > There is a kind of mirror but its physical address start at 0x8000000 > > so beyond the first 512MBytes that are used for KSEG0. > > Really, KSEG0 range is 0x00000000 to 0x20000000, and 0x08000000 to 0x10000000 > is definitely within that range. > > But I'd agree that 0x08000000 to 0x10000000 (32MB) seems too small for kernel > text and data. So yeah, it makes sense to load kernel into XKPHYS. Hmm, my calculation indicates the range shown spans 128MiB, which I think is usually suitably large to hold kernel static text and data even for the richest configurations. Regardless, loading into XKPHYS isn't wrong, with some platforms we've been doing it for decades now. Maciej