From patchwork Mon Oct 23 19:13:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 15776 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1500119vqx; Mon, 23 Oct 2023 12:14:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGt003CUwrvbZEvh4jYigxvJuEk4IT98T0/lP+5K+p1qb7yRat+Ir1JfbH+Ey3xvrM5B2lj X-Received: by 2002:a92:c54f:0:b0:357:cfcc:f483 with SMTP id a15-20020a92c54f000000b00357cfccf483mr6387020ilj.20.1698088458777; Mon, 23 Oct 2023 12:14:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698088458; cv=none; d=google.com; s=arc-20160816; b=fIM0MiQcDRHNouhmXEZdQDfSemsM1MBDh6trUKiUmKnRyXrFFXXplbIuCFNt9YHxwJ BX9feeuKnnJYneO0uP04j7/QDZ0ZlVyMEDRJRoeDVHpKRledIPqh6ZvV9G8FxkDrr53a 6IpjVd96wleH/QgqjtJgTJwB6yWcRdvwhYonBll11TdyHd/FMr+CwT9522XocTExYLHm nymHDBN1dE7B6zFH6hk9w7hloyqaIH78iG0kiFx6uMPs3boDVZkACytVjZw0DikK1jAa i1jLMIsbINj3USG66wUOY2aqrri3ntCpYb3atYVXcY+oo9UjW0R1ZP2guIOIUmOLSJQT 3x/g== 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 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id y7-20020a636407000000b00565ecee8793si6762622pgb.875.2023.10.23.12.14.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 12:14:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; 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 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 529CD805797C; Mon, 23 Oct 2023 12:14:16 -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 S230328AbjJWTOK (ORCPT + 27 others); Mon, 23 Oct 2023 15:14:10 -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 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 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]); Mon, 23 Oct 2023 12:14:16 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780574803682158930 X-GMAIL-MSGID: 1780574803682158930 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(-) Tested-by: Florian Fainelli Reviewed-by: Gregory CLEMENT Tested-by: Gregory CLEMENT