Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1428105rda; Mon, 23 Oct 2023 12:14:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH6BnrRcAHtQ50MkBYszkTSSycjB074ydjm3f7/cxJfg97qDzTlHn/5S/xDhlnrCb71Yzr6 X-Received: by 2002:a17:90a:1648:b0:27d:51c4:1681 with SMTP id x8-20020a17090a164800b0027d51c41681mr7709210pje.18.1698088465616; Mon, 23 Oct 2023 12:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698088465; cv=none; d=google.com; s=arc-20160816; b=1A/mxU9JmFoKdVvU37zPb/LNAChE7YbBAQBoouwWI3KpyHQqvoeW4EdSmNoRpMW6gX u1RReZ8Zc3Jv/4Q8l4Xn4mRkAOoG+DXzlbXQZZjQ/gP8BZIk6NRUjtyBp9IS0XbadJP7 ln1QbknPn+qnhgWzf1YPfvrGUBrkpRUUFupqZjLobw+vM6rypMifF1tTkyR5HoSN4UR9 jhl/xxx0JYKynB/ynj+7cWSUVZA2os/k8C8WoRWHWHllump2WlT6sa3eCGvfWl+jcyEe z7RhQjwfkFxZWdfRfgtawNstKxY6sr+nObT6AZ3hBpBadTdLgWczZXQ3Ixj014NG5RfM OPow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=lc3S9TTGK9rhmxndKwt6atJudUhqWg09GVrYzllrfJk=; fh=34VXqKbbbRVUWYKB0XlF9D4jmhXxe51P2+smd1zcTfU=; b=V4u6OBvLflF/FD4Ch+sQsa+mzK/W7Ksc1LnHNQpuzFl5geiIiZj+MrfoVjLxwdShup tSauROkIYKim52NTNPuaGzU5IsCjafA79wpu3ZHa5R7s+u4/vOiBKd/z/o8LcV/9geea UAbJ5VnXQM68XG6re29OSFLaMrY0ue7edY8Ae0Sv/Vby1omGJ5QtJGB9zprGVLfgrrbg a97Yd65OFSIKZTId40Wd3PSvpSN/pZaAoZ4iu1eymQ6Jq/25unzAg+xlGuAz+OP5K5Nk embAdPhyLlCc7no7B6NdaeE5NVHwx//4JRdQcefQBvdgM6sFMbwPHetps4YgDaeR/VTt yLOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=JztcOqK2; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Stwr+MhP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id 4-20020a170902e9c400b001c76a06b5b5si6711353plk.298.2023.10.23.12.14.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 12:14:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=JztcOqK2; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Stwr+MhP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 5BE568060C88; Mon, 23 Oct 2023 12:14:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229957AbjJWTOJ (ORCPT + 99 others); Mon, 23 Oct 2023 15:14:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbjJWTOI (ORCPT ); Mon, 23 Oct 2023 15:14:08 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55886A9; Mon, 23 Oct 2023 12:14:06 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id C020A5C0386; Mon, 23 Oct 2023 15:14:05 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 23 Oct 2023 15:14:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm1; t=1698088445; x=1698174845; bh=lc3S9TTGK9 rhmxndKwt6atJudUhqWg09GVrYzllrfJk=; b=JztcOqK2Yiw4NqJWal1Z9xTYrX ynULjTI9BYC7bBcPXIqsYg6lo5/ZmyawSe+hudV1pHw/ERuA7cPykQ440B0y202E a8wOZbATjAgQAXiIkT00T4dx6Hv+Dit61xAuau1qHLv5ejO42pBEGFpdlC5Q+LOF RJF9jWEDYsuFMpOCMne9dWGPdTZG9Fd8H1k6Z7pw4JweZBavUlY8qAU4qXQHoXLY occWO6VfCEEetjaAC8m4KNhjZ+6YZt2KeERiuvTNmQkkvukMoS0VhH6govH93SuV tZ+udSLKo16z11gFKe0m18B2VHFrlccMZ5E+5C061BV1ITKPk0mdnBLWOF4A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version: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=1698088445; x=1698174845; bh=lc3S9TTGK9rhm xndKwt6atJudUhqWg09GVrYzllrfJk=; b=Stwr+MhP4LcUFxYsrLvPAQXm3R5+v bntRuCFePsMropUbn2cNUT37JLaa2rT7nG6U1j4d1QWFTvLQGJDH2TZTu3YlgHgc 2Bh/fvWB5zGtLGdC4NEf442H5hz3ZdCf/hFGeYroS99c8I2XlWsbC/KvYCcwK5JJ wDsf2wJBL+6eBNE0WDu7yDRsrZxTfKkHZMtuKjwhrolubgd1kQiQ/SdnJrXLlwz+ 4JYgEWMwJFtSmNCyyN1gv12w2Wjsy17gf5t1eFqg9SSrRnsFMHKgJirJH8e5W4pR hjExTq2zVKkiOC/yop6E8YqC1eNoY7BqfGu1JJO2H9KSP55/PHj2DcGwQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrkeeigddufedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpeflihgrgihunhcujggrnhhguceojhhirgiguhhnrdihrghnghes fhhlhihgohgrthdrtghomheqnecuggftrfgrthhtvghrnhepvdeuteekleeuudfgueethe dtuddthfdtleffgefhieehfeeigedvtdeuveetiedunecuffhomhgrihhnpehkvghrnhgv lhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 23 Oct 2023 15:14:04 -0400 (EDT) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, tsbogend@alpha.franken.de, gregory.clement@bootlin.com, vladimir.kondratiev@intel.com, Jiaxun Yang Subject: [PATCH 0/5] MIPS: Fix kernel in XKPHYS Date: Mon, 23 Oct 2023 20:13:55 +0100 Message-Id: <20231023191400.170052-1-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 23 Oct 2023 12:14:20 -0700 (PDT) Hi all, This series fixes support for loading kernel to XKPHYS space. It is derived from "MIPS: use virtual addresses from xkphys for MIPS64" [1]. Boot tested on boston and QEMU with loading address set to 0xa800000090000000. QEMU patch on the way. Gregory and Vladimir, do let me know if I missed anything. Thanks - Jiaxun [1]: https://lore.kernel.org/lkml/20231004161038.2818327-3-gregory.clement@bootlin.com/ Jiaxun Yang (5): MIPS: Export higher/highest relocation functions in uasm MIPS: genex: Fix except_vec_vi for kernel in XKPHYS MIPS: Fix set_uncached_handler for ebase in XKPHYS MIPS: Handle mips_cps_core_entry within lower 4G MIPS: Allow kernel base to be set from Kconfig for all platforms arch/mips/Kconfig | 18 +++++++++++++---- arch/mips/include/asm/mips-cm.h | 1 + arch/mips/include/asm/uasm.h | 2 ++ arch/mips/kernel/genex.S | 19 +++++++++++++---- arch/mips/kernel/smp-cps.c | 27 +++++++++++++++++++------ arch/mips/kernel/traps.c | 36 +++++++++++++++++++++++---------- arch/mips/mm/uasm.c | 6 ++++-- 7 files changed, 82 insertions(+), 27 deletions(-) -- 2.34.1