Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1286442rdh; Fri, 27 Oct 2023 09:35:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHb1NHqC2UDtCPVWLTiTIyPWMUwViTshdPc2vHOaf+46QN/WsPa8aqUtUiseIDZDuQef538 X-Received: by 2002:a05:6808:3089:b0:3ae:2b43:dd21 with SMTP id bl9-20020a056808308900b003ae2b43dd21mr3901473oib.25.1698424555110; Fri, 27 Oct 2023 09:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698424555; cv=none; d=google.com; s=arc-20160816; b=vb9BUQaQRucR/Q+/xpYaKJjFzRsrmiSp5SzyYgYnph/n7GHPpnJCvgCx/i4K2DNQP3 +pRG6Y+tJ0FbJ0hqQ4hH53dTW8oEohFXiEiZnTiJfVV3AqkUHKHiMM9uhqR6QsiKTLgM A7LCty2i7ePn/57HKXlF8hYTMdVMitGYESNCpRz0P309mI/V57voSOJeaOmO5fDqhExm nSCoYpvQeF0K9+WESI+8T/hx40AwOaMxKQGNt3STYc6eUqmrjdtxvcCk4cJYq8kklRfB /b8SLUa/2aT5+ofVmcfKTj8EMAFL0d1VNP/7lqQ1sKHvcOFyYGepngrf8VDlworA2AFz BAqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=Ypzr29bYsfto7zJdkTiCmiQMxRqBdoXZjILJ3Cdczu4=; fh=wSwqRZxmPxfvj9UCH+viRz1PnZ8mZ3xd/yaewnKrxrI=; b=AnNGGShXpXJ2RnH+63apxDigP4Rnv9GihVH4RrRSy2pR+IPBlLR6rO0lqnDL/lyrHD uxibU8LLnaJVqDA89+zJ8Y5idhFE0KPnNB7F7NKkJrqD28CEpEgcrXbjaNz0C9ne5VsN gnoGkPUI2ozQJjoTgchfCedEyITgQa1MU/+x+LaAb+yRvlkfBOPKknJjgp3G9d24jX6w Kjc1165FPpN+CoYQV0SjBv1FknU9auVVY2by1EBtagzXTvWHs7quv0CwxecvbNp/g+LF gHY54I9q60W3O583Wpm4KjQHwVkjlPytmqVXgfXULS7Rb/ps+CRk6bDlP/DmxKMpFNzE lZHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jzL9fFbA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id 186-20020a2501c3000000b00d9a55d11a86si2985513ybb.672.2023.10.27.09.35.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 09:35:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jzL9fFbA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 5624D8354505; Fri, 27 Oct 2023 09:35:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232095AbjJ0Qft (ORCPT + 99 others); Fri, 27 Oct 2023 12:35:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231843AbjJ0Qfq (ORCPT ); Fri, 27 Oct 2023 12:35:46 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D19B593; Fri, 27 Oct 2023 09:35:40 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id DF2C3240003; Fri, 27 Oct 2023 16:35:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1698424539; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ypzr29bYsfto7zJdkTiCmiQMxRqBdoXZjILJ3Cdczu4=; b=jzL9fFbAcpLhIm4Kqq5eXAeAeebXHy7V89wLncM3opOJrDAH5R6z0ztYpj0NE8FK7Gh8/j B4a9Zj6+7nKSKkkE37bBouPdlv7uDhylqJLdOxmuXo+lx4nMzfzde1RE2Mvcv22TZ1CJgd rVK7cQpNPvGh57TU9Falu7t8toB9g3m30Je6T6Ho+m6FYfa3IWBL5X8ejawPeC0yhZPu5v YiM9U7OBc8z8CNKRpdod6e763MQ5KBegsYPjpKBMgEjhsExxA8n2f8TaS7gf4TLitHG6Ax 6WwXtsJnzKWZs2BtU/E3sUMLEElzcNtBnwo80Y2qO+zMZ4y+4pqHIG/7AxMDmw== From: Gregory CLEMENT To: Jiaxun Yang , linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, tsbogend@alpha.franken.de, vladimir.kondratiev@intel.com, Jiaxun Yang Subject: Re: [PATCH 0/5] MIPS: Fix kernel in XKPHYS In-Reply-To: <20231023191400.170052-1-jiaxun.yang@flygoat.com> References: <20231023191400.170052-1-jiaxun.yang@flygoat.com> Date: Fri, 27 Oct 2023 18:35:38 +0200 Message-ID: <875y2s81lx.fsf@BL-laptop> MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: gregory.clement@bootlin.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 27 Oct 2023 09:35:52 -0700 (PDT) Hello Jiaxun, > 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 for this series, I reviewed it and tested it on my platform, so you can add for all the patches: Reviewed-by: Gregory CLEMENT Tested-by: Gregory CLEMENT However I add to fix the patch " MIPS: Handle mips_cps_core_entry within lower 4G", I think you missed a case. I will comment on it. Gregory > > 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 > -- Gregory Clement, Bootlin Embedded Linux and Kernel engineering http://bootlin.com