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: 13433420 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D684C25B45 for ; Mon, 23 Oct 2023 19:14:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229557AbjJWTOJ (ORCPT ); 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 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org 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