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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB2D7C433EF for ; Thu, 28 Oct 2021 12:09:54 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id B035E60F90 for ; Thu, 28 Oct 2021 12:09:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B035E60F90 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=walle.cc Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2652D831D3; Thu, 28 Oct 2021 14:09:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=walle.cc 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; secure) header.d=walle.cc header.i=@walle.cc header.b="icCCtNXH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 36F1883216; Thu, 28 Oct 2021 14:09:49 +0200 (CEST) Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2C79F82F33 for ; Thu, 28 Oct 2021 14:09:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michael@walle.cc Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 5B18E22205; Thu, 28 Oct 2021 14:09:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1635422985; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=53UVBR7BoPrFD/IN/PacW9Y6pHwWiYnXDfngutJb5RY=; b=icCCtNXH9jx45QpjCtOxidxmgLF3AaMJlwDlfDyos7LQSf1sggstyab8iGpYIjlxyNOKYf KGFtxPe7HHf+0L3H3r9nyhaE48X3InkWitIGu/VgClbeiO3MJBbKEJP7xQJvn2NQjAuDJi hiyRla1Igo5sMicpsagN7rG5tWrQqYU= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 28 Oct 2021 14:09:45 +0200 From: Michael Walle To: Bharat Gooty Cc: Marc Zyngier , U-Boot Mailing List , Vladimir Oltean , Hou Zhiqiang , Rayagonda Kokatanur , Simon Glass , Priyanka Jain , Tom Rini , Roman Bacik Subject: Re: [PATCH 0/2] arch: arm: gic-v3-its: stop abusing the device tree In-Reply-To: References: <20211027165454.1501398-1-michael@walle.cc> <871r45bk0h.wl-maz@kernel.org> <15b7dc28e0226621fe8c746afe321832@walle.cc> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <9bc9ad04482efa6f91afb4361a7269c1@walle.cc> X-Sender: michael@walle.cc X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Am 2021-10-28 13:35, schrieb Bharat Gooty: > On Thu, Oct 28, 2021 at 4:52 PM Michael Walle > wrote: > >> Am 2021-10-28 11:20, schrieb Bharat Gooty: >>> On Thu, Oct 28, 2021 at 2:33 PM Marc Zyngier >> wrote: >> >>> For GIC V3, once the LPI tables are programmed, we can not update >> it, >>> unless we do a reset. >>> For the kexec kernel, where the reboot does not happen, in this >> case, >>> during the new kernel boot, the new LPI tables address will not be >>> updated. >> >> kexec.. this should have really gone into both the commit message >> _and_ >> the kconfig menu. In fact, it is really just a workaround for the >> kexec >> case. If I understand it correctly, the kernel is able to >> communicate >> the reserved memory area, but only if you have EFI support. So, as a >> workaround, the bootloader can pre-allocate the memory and put it in >> the device tree, which is then passed from the old to the new kernel >> and the reservation is preserved. Correct, Marc? > > If EFI support is enabled, that's true, Pre-allocate the memory and > Kernel can get that memory using EFI. > What if EFI support is not enabled, like in a Broadcom NS3 or NXP > platform? What is your suggestion for solving the kexec problem? Iff that is correct what I've said above, then (1) rename the config symbol (I'm not sure, Tom?) and provide a better help text (2) drop the device tree node. after all you only have to allocate the node (3) keep most of the current code, but instead of reading the address from the device tree. Just allocate memory (within the alignment restrictions or whatever) and mark it as reserve it in the device tree. If I understood Marc correct, you can read the number of redistributors from the current gic-v3 binding. Now, how and if this will fit into the u-boot device model, that's up to you. In the meantime, it would be great if you can have a look at these two patches and trying to get them work for the ns3, so I can move forward with the device tree sync. -michael