Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp767203rdb; Fri, 22 Dec 2023 04:40:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IHjJ9DnsRZDQ51e2WDySIe670I3kkHDbw0Uf4kyzc+vgTWS0Nmrqe6imjP1d3+x4okL94AC X-Received: by 2002:a25:df45:0:b0:db5:3e3b:d2bb with SMTP id w66-20020a25df45000000b00db53e3bd2bbmr1021394ybg.48.1703248857976; Fri, 22 Dec 2023 04:40:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703248857; cv=none; d=google.com; s=arc-20160816; b=G/xgESDtCj4Pbkp5+t4X+ElwEnI9OPgDnfXrcnW0lbZTPeeDF7GaYTOeJFLmsX3FvW hyUHCeXTWO0/gHhmpRSWQQEhGzrFhdun4lthVeoym0oE1x7apL2Kfs4AcfP7o7xLfr9L OtwzzUUxknfmO2WH8a2jVAwKOqXUZvbgLoe+Tn7hfxkWTub5+EtND4ZHVP+42vsb/qLN A4AMeQvkr4NFEpzkPzB+FkqHt2/b7TJZQcrGVDFh5lZaOkE5iXNslKp/NG47j6UhJW3B zEPinZyuYPGjF58cGg94Vt7vgKlnzs3IzLgkR6s+b85A/qqyJYHfUhcuBzOO1HJrVifB qiWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:feedback-id :dkim-signature:dkim-signature; bh=GO9NK/oMxldoqSl6p4S7Ql47dZzBoFszKsa2cO9zpxk=; fh=kPiCvrk8Ev1zUERrIRqNwXCv9rN+A4J67tMxfXz23Vc=; b=uC0zfkunt/BGjzRsH6V5DYXLGtHozfb8nO/cqXuNm2ziS8MDn4i796y0MVG2H/Nn1D U47Y5m8jFStqZ5S5sL3BjECPlVHCH1Z947dGSnw/oA3S8gvBvoi0UPPiZhghcnX4OwDD 6ZhPQp5k4AUCnLVQgB1W7EuQlwhFfebQPmMdt6DIG+UQLEkcSCR8pec6/Oeehqd8Jq2y OsgTP0RVwUeZNHI4LnP8eFPtr4e/GhpX8mW/FRU1UXEwlQFB8LAkM79SKmSqkzoAWnmZ ugwxUSvz30zITEmXPg0tCH5TFaeiC9AZkozZ0ThIcW8eDLhmOHcjVEP/1dnqKFvFGAZh vp9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm3 header.b="hAm6/qYB"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=WISsgU0G; spf=pass (google.com: domain of linux-kernel+bounces-9715-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9715-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d1-20020a05622a100100b00425a8441e7csi4256287qte.431.2023.12.22.04.40.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 04:40:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9715-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm3 header.b="hAm6/qYB"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=WISsgU0G; spf=pass (google.com: domain of linux-kernel+bounces-9715-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9715-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B9BF71C213B9 for ; Fri, 22 Dec 2023 12:40:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CC901CF98; Fri, 22 Dec 2023 12:40:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="hAm6/qYB"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="WISsgU0G" X-Original-To: linux-kernel@vger.kernel.org Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5EFC31C6A5; Fri, 22 Dec 2023 12:40:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flygoat.com Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id D46313200A7F; Fri, 22 Dec 2023 07:40:42 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 22 Dec 2023 07:40:43 -0500 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:subject:subject:to:to; s=fm3; t=1703248842; x=1703335242; bh=GO9NK/oMxldoqSl6p4S7Ql47dZzBoFszKsa2cO9zpxk=; b= hAm6/qYBG+9uhPArBnEjQ3Zby39vQEi2rZpEs2MvxcBdsoQ8Hp/CPw2mgHoGULL8 gvhtLRiC7qQv8FmDS7OXLxPFpnbQpZOL79sVcP404fH5J/HNCRdA89zj4T+GhGcb IPYnD1iWi/r5xpRZ761Wcssb4BEpXd7y5YKXojW32KojVUTbv9vwIwZXUlWbnCD1 unxZSoDQGCjS4dFJ2jDm0nqkifYYmdqV1yXE9jRg0Gwj5Qb6I/50XQeDv9g+JcIG yPVgQEtU62ZGn09rI8lXua1AH7ztx0XqGp1aSoJFAKYEjK85x0EU0mipgXLRvSZJ Z+kIYFW/DklJr1fm08mzJg== 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:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1703248842; x= 1703335242; bh=GO9NK/oMxldoqSl6p4S7Ql47dZzBoFszKsa2cO9zpxk=; b=W ISsgU0Gsk9tA1y1Jl7dOOgHl/8Mba0+Qml036Mf3DqQSpr0s5n972bhPWBtC77vz CGmU6Z7n2F/q2LbZft4j8vu7c8gAjxS6wtCyM5i8slUjsdFoSVXEwv9+4urPlF79 If4FvOR/D2zl2zj3vJ/tFk/kjIdwiEzvZxKLNkiBmMLW/nsm7X9iNcHdscye/oYT SFn3KQNCVrFutBAfWVPGUAe3UOXfQHvlSAV9LF0O5b5uxXStdN6UuriaTPNLwoB4 jnZWD7Yg9q8C2CDfaAWp1F+yC/K4GT83irSUNyQ+9XdA5es1kId1fvUuVCo/BQad WiJ6ae5n3dKhIT/2cuUCw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvddujedggeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeflihgr gihunhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomheqne cuggftrfgrthhtvghrnhepleeuffehheegleeuvdelgffhueekjeetueevuefhffdtgfeu hfeggfeukefffedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 22 Dec 2023 07:40:41 -0500 (EST) Message-ID: Date: Fri, 22 Dec 2023 12:40:39 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 05/10] MIPS: Refactor mips_cps_core_entry implementation Content-Language: en-US To: Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, gregory.clement@bootlin.com, vladimir.kondratiev@intel.com References: <20231027221106.405666-1-jiaxun.yang@flygoat.com> <20231027221106.405666-6-jiaxun.yang@flygoat.com> From: Jiaxun Yang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 在 2023/12/22 12:18, Thomas Bogendoerfer 写道: > On Fri, Oct 27, 2023 at 11:11:01PM +0100, Jiaxun Yang wrote: >> Now the exception vector for CPS systems are allocated on-fly >> with memblock as well. >> >> It will try to allocate from KSEG1 first, and then try to allocate >> in low 4G if possible. >> >> The main reset vector is now generated by uasm, to avoid tons >> of patches to the code. Other vectors are copied to the location >> later. > this patch does way to many things in one go. What is needed to > make a kernel working with an ebase anyware in XPHYS ? As we have some silly restrictions on the placement of CPS reset_base, it's impossible to put CPS's cluster reset base "anywhere". You'll have to make entry code in cps-vec.S relocatable to allow it to be moved by kernel at run time. Either patching the code or generate by uasm. Thanks - Jiaxun > > Thomas. >