From mboxrd@z Thu Jan 1 00:00:00 1970 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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 63526C19F2A for ; Thu, 11 Aug 2022 09:37:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A85868490D; Thu, 11 Aug 2022 11:37:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=maquefel.me Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=maquefel.me header.i=@maquefel.me header.b="rD9+lRIe"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D67BC84916; Thu, 11 Aug 2022 11:37:16 +0200 (CEST) Received: from forward108p.mail.yandex.net (forward108p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 513C6848C0 for ; Thu, 11 Aug 2022 11:37:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=maquefel.me Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=nikita.shubin@maquefel.me Received: from sas2-e7f6fb703652.qloud-c.yandex.net (sas2-e7f6fb703652.qloud-c.yandex.net [IPv6:2a02:6b8:c14:4fa6:0:640:e7f6:fb70]) by forward108p.mail.yandex.net (Yandex) with ESMTP id 4FCEC267AB93; Thu, 11 Aug 2022 12:37:12 +0300 (MSK) Received: by sas2-e7f6fb703652.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id GH3doUCrJ7-b8i8NgfJ; Thu, 11 Aug 2022 12:37:11 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1660210631; bh=/896pP+xj90AnHu86voVjbWYmlX1ZSC8VZlSkjEcrHk=; h=Message-Id:Date:Cc:Subject:To:From; b=rD9+lRIeg2sPvVK2P+HBU8+h3JTwGwHvhXJauIA1oROYbkjbNyfyXCFa55WQNkwWw i8oI16Q8teFLZFEzUcZrroST/jJhA4yIuBl2OoK+5JWZeMAbcUXqds///NSUgXaHJZ vkfeslMAzxBIP/8TWpsN4WhwFTrFjCM0L5UCoFdc= Authentication-Results: sas2-e7f6fb703652.qloud-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin To: Cc: linux@yadro.com, Nikita Shubin , Rick Chen , Leo , Simon Glass , Bin Meng , Ilias Apalodimas , Heinrich Schuchardt , Sergei Miroshnichenko , Alexandru Gagniuc , Alper Nebi Yasak , Andrew Davis , u-boot@lists.denx.de Subject: [RFC PATCH 0/1] spl: introduce SPL_XIP to config Date: Thu, 11 Aug 2022 12:37:05 +0300 Message-Id: <20220811093706.3772-1-nikita.shubin@maquefel.me> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean From: Nikita Shubin U-Boot and SPL don't necessary share the same location, so we might end with XIP SPL and U-Boot in "normal" memory. Actually, it seems that we need only hart_lottery and available_harts_lock to function like a R/W memory. May be we should introduce a new section solely for this two locks copy and initialize it somewhere befor hart lottery or place config variable with desired location for locks, but we still end up with a need for a "master" hart. Does anyone have some thoughts about this ? Nikita Shubin (1): spl: introduce SPL_XIP to config arch/riscv/cpu/cpu.c | 2 +- arch/riscv/cpu/start.S | 4 ++-- arch/riscv/include/asm/global_data.h | 2 +- arch/riscv/lib/asm-offsets.c | 2 +- arch/riscv/lib/smp.c | 2 +- common/spl/Kconfig | 5 +++++ include/configs/scr7_vcu118.h | 2 ++ 7 files changed, 13 insertions(+), 6 deletions(-) -- 2.35.1