Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp394982rdg; Thu, 12 Oct 2023 08:38:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG9Ju4+0kdHG+d3X8YA0NlKt7A651yva2Mny7F7hD06nG1rMfiO7Kp6D7NPBmtlIMI/7kKt X-Received: by 2002:a17:90a:9205:b0:267:f5d1:1dd3 with SMTP id m5-20020a17090a920500b00267f5d11dd3mr21164642pjo.11.1697125105639; Thu, 12 Oct 2023 08:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697125105; cv=none; d=google.com; s=arc-20160816; b=hYpu82UCyQrUY4N2N8LbsdXxpPxicDTMyP2VCv3Q2E4InxDcl/MZQkBka8B3oWUEMk NvaAbpVtmfAyNDhN25UMrp2Pg5Q/XBDO+Um9Dew6VzvYpfEpdnO8FL9wzCH/IUjx8Bmi Wpoqy5mmZ89vPsbdGspyDIn1aASxsdFptFpi/fbLm0dSM7F+OQVz6mYLXXtC8EaplZnE HqBQH5aIYVO58uslzR7Ap5nHvEoX/iL7t1r/4U/znelMeeRa+WX18Ms77BA6VI9RJFKI nO6qeZEN+2o/F/5YOU0ZAjOE0NgQJmpg8qTqzAtdyyzQzN0ZnHWEqmybx7BnaNsX5YRT S3vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=kGNLf1pORm0EXHWBoilvK2zrEo2hYS0U5/gwB84MT34=; fh=wIfUQnHQA0nngSmWodbEEbHG+VcpucKFWkhy/UEVlMA=; b=yNfuJPbrSsErgH2bGTo2c+tO62K6xSvc2JIytoXpPxdEsie0ylztLRqn3i7uumhjq5 Y7BEjQjNZkzupyglEpNKTN3Px4HlOKcw+hS8m7PnoNR1TM6dQUqXcMltPBQ1h8l1wZ9N bo3oFPON82LbbObmvBBH4jze6hpic4ifdrDKjJ4nddbLoz7wUEuOs7DKzyTPW3T71jla 6KTBmoUp/huN3li5YHm193L+z0yZxe416RGKPmsKLr5AKD8dsM9bkWNjZVtQhaB7IRBf LicBAG98NISlHFpy8wHKNgN3gnFoR8/7keDGLF57WU01ns2jMOa/3UX/iQFDyLtRyNAo Wa6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id f6-20020a17090ace0600b0027cead6f6b4si878219pju.1.2023.10.12.08.38.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 08:38:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 156AF81C19C8; Thu, 12 Oct 2023 08:38:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379065AbjJLPiI (ORCPT + 99 others); Thu, 12 Oct 2023 11:38:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346441AbjJLPiH (ORCPT ); Thu, 12 Oct 2023 11:38:07 -0400 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 802BEC0; Thu, 12 Oct 2023 08:38:05 -0700 (PDT) Received: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 1qqxlA-0001sp-00; Thu, 12 Oct 2023 17:38:00 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 61D6EC0148; Thu, 12 Oct 2023 17:34:56 +0200 (CEST) Date: Thu, 12 Oct 2023 17:34:56 +0200 From: Thomas Bogendoerfer To: Gregory CLEMENT Cc: Paul Burton , linux-mips@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vladimir Kondratiev , Tawfik Bayouk , Alexandre Belloni , =?iso-8859-1?Q?Th=E9o?= Lebrun , Thomas Petazzoni Subject: Re: [PATCH 02/11] MIPS: use virtual addresses from xkphys for MIPS64 Message-ID: References: <20231004161038.2818327-1-gregory.clement@bootlin.com> <20231004161038.2818327-3-gregory.clement@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231004161038.2818327-3-gregory.clement@bootlin.com> 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 pete.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 (pete.vger.email [0.0.0.0]); Thu, 12 Oct 2023 08:38:23 -0700 (PDT) On Wed, Oct 04, 2023 at 06:10:29PM +0200, Gregory CLEMENT wrote: > From: Vladimir Kondratiev > > Now 64-bit MIPS uses 32-bit compatible segments KSEG0 and KSEG1 > to trivially map first 1/2 GByte of physical memory. This memory > used to run kernel. This mean, one should have memory installed > in this area in order for Linux to work. > > Kconfig CONFIG_USE_XKPHYS introduced; it adds support for kernel > to use virtual addresses from the XKPHYS segment for both cached > and uncached access. XKPHYS allows to access 2^48 bytes of > memory, thus allowing kernel to work with any memory > configuration. IMHO it doesn't make sense to introduce an option for a generic kernel, which then renders the generic kernel useless on all platforms other then yours. Please don't use generic, but setup a new platform for it. Hopefully we can get rid all of the weirdness in this patch. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]