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 AE2C5C636CC for ; Wed, 8 Feb 2023 07:02:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 346E685DE7; Wed, 8 Feb 2023 08:02:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=collabora.com header.i=@collabora.com header.b="DrZDtz1/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DC3A185D6E; Wed, 8 Feb 2023 08:02:37 +0100 (CET) Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) (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 431A185D6E for ; Wed, 8 Feb 2023 08:02:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=eugen.hristev@collabora.com Received: from [192.168.0.125] (unknown [82.76.24.202]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: ehristev) by madras.collabora.co.uk (Postfix) with ESMTPSA id 414356602089; Wed, 8 Feb 2023 07:02:34 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1675839754; bh=Duy3Je3RIRUBC3JZMYttB6YRwpP6CjBxcgLFmeDvOFI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=DrZDtz1/9ff/bU71nAPrPUSz1n6KSE/cmGcvEkg9w3s+/O4GoyIMWGXC8RYv3W+i+ 5nlI3CTExbgp8BaTOcsJGvUl/RG4tOCcewiKL/Nzu3f6afgeiWGCIc0c02oSReBXRy daQ0nxoo35AWXcLOds3ufAoVuSHMYO3MUNnH3yVKsfzr8NFDio411IFXPTLE+5suk/ Ckm+jM3vDDx6RiQSRf/48WHbhP2PBbNNfGC5GR95nwVcAbAU+oT9XiROvXJYqA4VW+ IFwnIhBOqH3ToOqEr/VYP9NLnNwyxqS64LfcyhM77vfEmbH6hc8srmQeH3noVP8JWw zKentUd5DIXDA== Message-ID: Date: Wed, 8 Feb 2023 09:02:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v2 0/2] Fix sdram size detection on RK3568 and RK3588 Content-Language: en-US To: Jonas Karlman , Simon Glass , Philipp Tomsich , Kever Yang Cc: u-boot@lists.denx.de, Jagan Teki References: <20230116161459.1307591-1-jonas@kwiboo.se> <20230207172707.4094859-1-jonas@kwiboo.se> From: Eugen Hristev In-Reply-To: <20230207172707.4094859-1-jonas@kwiboo.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 2/7/23 19:27, Jonas Karlman wrote: > DRAM initialization blobs for rk356x and rk3588 from vendor encode sdram > info in a new version 3 format. The new format makes use of more bits in > sys_reg3 compared to the version 2 format. RK3588 blob also encode > information on sdram channel 3+4 in sys_reg4+5 using the same format. > > This series adds support for decoding basic information from this new > version 3 format. It also adds support for adding a second dram bank > with any usable memory beyond the 4GB mark. > > With these patches my Radxa ROCK 3 Model A 2GB correctly report 2GB of > DRAM, instead of 4GB, and my 8GB board can make full use of its memory. > My Radxa ROCK 5 Model B 8GB also correctly report and can make full use > of its 8GB of DRAM with these patches. > > Changes in v2: > - Change CONFIG_SYS_SDRAM_BASE to CFG_SYS_SDRAM_BASE > - Added a note on RK3588 blobs use of sys_reg4+5 to cover letter > > Jonas Karlman (2): > rockchip: sdram: add basic support for sdram reg info version 3 > rockchip: sdram: add dram bank with usable memory beyond 4GB > > arch/arm/include/asm/arch-rockchip/sdram.h | 28 +++++++++++++++------- > arch/arm/mach-rockchip/sdram.c | 21 ++++++++++++---- > 2 files changed, 35 insertions(+), 14 deletions(-) > Tested-by: Eugen Hristev Thanks !