Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp663947rda; Sun, 22 Oct 2023 04:56:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHstW7rKevs5QgMWw8U71+wUhMPcGxn7vNUGmYJfgg3YoFtQ/2uix15oq9IA6t683c+fMcU X-Received: by 2002:a05:6871:4684:b0:1ea:8b10:247a with SMTP id ni4-20020a056871468400b001ea8b10247amr9262755oab.42.1697975810515; Sun, 22 Oct 2023 04:56:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697975810; cv=none; d=google.com; s=arc-20160816; b=rIvI3NDDK7qMpiZQHxlx1ELqHyqGih/lyghuCHbB5nIYGznAFM4hqCwR9ejuAtpOKe piooPR12HUXm5pD4Zje4d+36cXn4Hk0TVmSMkknY/Y1kEJdlitAedKnNfUT7dhkICOrs OtirB/wN0JqEHia1v4x8IXpOznUI1NgsOCLo87TBiMjtpNLIR+eJzuzN3ymnL23dNm1V nYPDNeaqHcA+sEfvz7C4bgoBhEmg52ckJRs1cwDKdKyMxf51ILgoQ6nWe0qjHmu4YvFM y9RcaECc3Azqbo66FmqVb/MDB/tfsvORsWwAQHjoFRsUQJKT9ITBHGa/r3uEAchQgi1w 1ZLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:cc:to:from :date:references:in-reply-to:message-id:mime-version:user-agent :feedback-id:dkim-signature:dkim-signature; bh=DN5UBlB7bax9/7Y1DfOiKcvIPgfPYmdiFSRbGNuHsR8=; fh=vbm/drNrnh+iIaIWLEnmLk0PPg1URbI9PbJzeko0S3Q=; b=cb5hJAOwAOCl4rJbaJXzSQB83aUTEvyXzYFPZgvoGHK8hKMzOoNWNi6VsqrIiSaNXJ SQSAeVH9h2+nQsf/d+ob+JDAzwGHGiK+JnCMNfw5g7lJUn2WjokNbi/uTvI1ZYOjTDcv bl6O2xolmTWktv5tUVPurEr4Vq5Hw46vyUZYgY4VR7oifKNnm6hUTxwdyER5j3giU4+t 4fDlMcqMCTTxCohZAFofp3iv7b/mJemR6+O1R5rk+cLf9QFLnLwlToyj9/PpmjTzThWK nsqsM1/StEGREemdKX1JeBj8AHVCJToLGbSLxSIGeyD9Rlv+Q+Y85z+nUi8zeOwfXcwu OK4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=GSyjkK5L; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=HE9xieyE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id fz15-20020a17090b024f00b002680e08a877si7175480pjb.186.2023.10.22.04.56.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 04:56:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=GSyjkK5L; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=HE9xieyE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 0EB9C80681E1; Sun, 22 Oct 2023 04:56:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231696AbjJVLyv (ORCPT + 99 others); Sun, 22 Oct 2023 07:54:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231321AbjJVLyu (ORCPT ); Sun, 22 Oct 2023 07:54:50 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAF93A1; Sun, 22 Oct 2023 04:54:48 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 356A65C038F; Sun, 22 Oct 2023 07:54:48 -0400 (EDT) Received: from imap44 ([10.202.2.94]) by compute3.internal (MEProxy); Sun, 22 Oct 2023 07:54:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1697975688; x=1698062088; bh=DN5UBlB7bax9/7Y1DfOiKcvIPgfPYmdiFSR bGNuHsR8=; b=GSyjkK5L4R2sYlW5Wq2aq2pjsH0hn/K7rTzY1p7vz69JNrGEJqV 4OYW4HBjPaFZKWLOJl4jq3G+WK+FDLdEl0qOYhQEh+9iVX99dWeDa8wqxNgv9j37 oOCYsiCXu/mNBW670UER8Mvg+d2vge73ZR5P0BjR3WvbuHeCN9IJFu23ZDZZTXTw Yz1Kb8Vnz+yWQBjPIeT+dEdn1XQTpFdK7+o9hWfBSHgBRZdUWrYTEjdDUC5aCDGi i0lbGSoGCFt/5kFr6l1c8/5qQskWOULCuixBEPveDqg5QYT5rPhJI6TKTyZbvUd5 c63UP7zyBaJiMsrys7FbooA7Btn3fCqDJIA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1697975688; x=1698062088; bh=DN5UBlB7bax9/7Y1DfOiKcvIPgfPYmdiFSR bGNuHsR8=; b=HE9xieyE4JTFsq67cWcXNc420Ub8ok9ED0GiVsI1zFrV91JyFw2 /mH7FueCyJYbMIZVMLnyU4BPZ+BIPlUgoTW9X/25TobZGpRxbHMFUGAIJmXJkbp0 1TmFvqjQEvYj/iQEcie/zoYV6XjwWwmOn29rJy263ynAdDQp8WRqiVBvCUcoo/kT 7PNxGVVTcmTTJ1DObWdZTgn2SKj/e9Pb4yLXepSTrL5H2PP1xZNsgX6eplag47I2 PitdMMsSsjap1JApsg7Dh4Bpl/reM7zqEYue/PPvEmaN8szrF+xGa76gdYY/Ap0y uyeDQt0+js90lpHw3suXGeSX9yWvudJ6REg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrkeefgdegiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedflfhi rgiguhhnucgjrghnghdfuceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh eqnecuggftrfgrthhtvghrnhepudefgeeftedugeehffdtheefgfevffelfefghefhjeeu geevtefhudduvdeihefgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id D66A036A0077; Sun, 22 Oct 2023 07:54:47 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1048-g9229b632c5-fm-20231019.001-g9229b632 MIME-Version: 1.0 Message-Id: <32c626ee-5896-417a-bf57-b7e4216f1d25@app.fastmail.com> In-Reply-To: References: <20231004161038.2818327-1-gregory.clement@bootlin.com> <20231004161038.2818327-3-gregory.clement@bootlin.com> Date: Sun, 22 Oct 2023 12:52:04 +0100 From: "Jiaxun Yang" To: "Thomas Bogendoerfer" , "Gregory CLEMENT" Cc: "paulburton@kernel.org" , "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 02/11] MIPS: use virtual addresses from xkphys for MIPS64 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Sun, 22 Oct 2023 04:56:28 -0700 (PDT) =E5=9C=A82023=E5=B9=B410=E6=9C=8812=E6=97=A5=E5=8D=81=E6=9C=88 =E4=B8=8B= =E5=8D=884:34=EF=BC=8CThomas Bogendoerfer=E5=86=99=E9=81=93=EF=BC=9A > On Wed, Oct 04, 2023 at 06:10:29PM +0200, Gregory CLEMENT wrote: >> From: Vladimir Kondratiev >>=20 >> 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. >>=20 >> 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. Actually it won't. Many 64bit platforms do support load kernel to XKPHYS, including boston and Loongson64, so it's still a generic function. IMO this patch won't break support for any generic platform. > > Please don't use generic, but setup a new platform for it. Hopefully > we can get rid all of the weirdness in this patch. Perhaps better to introduce a Kconfig option to allow manipulation of kernel load address. Thanks - Jiaxun > > Thomas. > > --=20 > Crap can work. Given enough thrust pigs will fly, but it's not necessa= rily a > good idea. [ RFC1925, 2= .3 ]