All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marty E. Plummer <hanetzer@startmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/3] rockchip: fix incorrect detection of ram size
Date: Sun, 6 May 2018 15:03:09 -0500	[thread overview]
Message-ID: <20180506200309.ij6kgqdvsuxih56r@proprietary-killer> (raw)
In-Reply-To: <20180506190825.xmd322zmho7l44gr@proprietary-killer>

On Sun, May 06, 2018 at 02:08:25PM -0500, Marty E. Plummer wrote:
> > On Sun, May 06, 2018 at 08:39:23PM +0200, klaus.goger at theobroma-systems.com wrote:
> > > On 06.05.2018, at 16:25, Marty E. Plummer <hanetzer@startmail.com> wrote:
> > > +		 * we use the 0x00000000~0xfeffffff space
> > > +		 * since 0xff000000~0xffffffff is soc register space
> > > +		 * so we reserve it 
> > > +		 */
> > 
> > That's not true for all Rockchip SoCs. On the RK3399 for example the upper limit 
> > is 0xf8000000. Even on the RK3288 DRAM address range is actually
> >  0x00000000-0xfe00000
> >
> > > +		size_mb = min(size_mb, 0xff000000/SZ_1M);
> > > 	}
> > 
> > Should be 0xfe000000 (4G-32MB) for RK3288.
> > But there is already a define for that, SDRAM_MAX_SIZE is defined in
> > rkxxx_common.h. Using that one would help to avoid possible breakage
> > of other Rockchip SoCs.
> > 
> Oh, does that get #defined properly for each SoC? if so, I'll sub that
> in for better compat.
In fact, could you or someone else help me to understand the #include
chain here? I'm not certain as to what that is available in each header
mentioned can be used in this file to get max compat across the rockchip
lineup, and I don't want to break someone elses board/etc with something
that 'works for me'.

  reply	other threads:[~2018-05-06 20:03 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-06 14:25 [PATCH 0/3] add support for the asus C201 chromebook (4GiB) Marty E. Plummer
2018-05-06 14:25 ` [U-Boot] " Marty E. Plummer
     [not found] ` <20180506142513.19911-1-hanetzer-zVALfsKDk1AS+FvcfC7Uqw@public.gmane.org>
2018-05-06 14:25   ` [PATCH 1/3] sf: Add GigaDevice gd25q32b entry Marty E. Plummer
2018-05-06 14:25     ` [U-Boot] " Marty E. Plummer
2018-05-09  8:57     ` [U-Boot,1/3] " Philipp Tomsich
2018-05-09  8:57       ` [U-Boot] " Philipp Tomsich
2018-05-06 14:25   ` [PATCH 2/3] rockchip: add support for veyron-speedy (ASUS Chromebook C201) Marty E. Plummer
2018-05-06 14:25     ` [U-Boot] " Marty E. Plummer
2018-05-06 22:12     ` klaus.goger at theobroma-systems.com
2018-05-07  0:20       ` Marty E. Plummer
2018-07-13 10:31         ` Dr. Philipp Tomsich
2018-07-24  5:12           ` Marty E. Plummer
2018-07-24  8:05             ` Dr. Philipp Tomsich
2018-05-06 14:25   ` [PATCH 3/3] rockchip: fix incorrect detection of ram size Marty E. Plummer
2018-05-06 14:25     ` [U-Boot] " Marty E. Plummer
2018-05-06 18:39     ` klaus.goger at theobroma-systems.com
2018-05-06 19:08       ` Marty E. Plummer
2018-05-06 20:03         ` Marty E. Plummer [this message]
2018-05-06 20:21           ` klaus.goger at theobroma-systems.com
2018-05-06 20:41             ` Marty E. Plummer
2018-05-06 22:19     ` Dr. Philipp Tomsich
2018-05-06 22:19       ` [U-Boot] " Dr. Philipp Tomsich
2018-05-07  0:25       ` Marty E. Plummer
2018-05-07  0:25         ` [U-Boot] " Marty E. Plummer
2018-05-07  2:20     ` Kever Yang
2018-05-07  2:20       ` [U-Boot] " Kever Yang
2018-05-07  2:34       ` Marty E. Plummer
2018-05-07  2:34         ` [U-Boot] " Marty E. Plummer
2018-05-07  9:16         ` Dr. Philipp Tomsich
2018-05-07  9:16           ` [U-Boot] " Dr. Philipp Tomsich
     [not found]           ` <791299C0-EEC0-4DB1-97C4-A8DAD3B1A481-SN7IsUiht6C/RdPyistoZJqQE7yCjDx5@public.gmane.org>
2018-05-08  0:52             ` Marty E. Plummer
2018-05-08  0:52               ` Marty E. Plummer
2018-05-08 10:21               ` Dr. Philipp Tomsich
2018-05-08 10:21                 ` [U-Boot] " Dr. Philipp Tomsich
2018-05-08 10:23                 ` Dr. Philipp Tomsich
2018-05-08 10:23                   ` [U-Boot] " Dr. Philipp Tomsich
2018-05-08 19:21                 ` Marty E. Plummer
2018-05-08 19:21                   ` [U-Boot] " Marty E. Plummer
2018-05-08 21:08                   ` Dr. Philipp Tomsich
2018-05-08 21:08                     ` [U-Boot] " Dr. Philipp Tomsich
     [not found]                     ` <C5B7DFAE-C5CA-4D9E-B6CB-C44E9AD974E9-SN7IsUiht6C/RdPyistoZJqQE7yCjDx5@public.gmane.org>
2018-05-09  5:29                       ` Marty E. Plummer
2018-05-09  5:29                         ` Marty E. Plummer
2018-05-09  7:24                         ` Dr. Philipp Tomsich
2018-05-09  7:24                           ` [U-Boot] " Dr. Philipp Tomsich
2018-05-14 15:56                           ` Dr. Philipp Tomsich
2018-05-14 15:56                             ` [U-Boot] " Dr. Philipp Tomsich
2018-05-19 10:40                             ` Marty E. Plummer
2018-05-19 12:08                               ` Dr. Philipp Tomsich
2018-07-06  3:11                                 ` Marty E. Plummer
2018-07-24  8:07                                   ` Dr. Philipp Tomsich
2018-07-25 16:28                                     ` Carlo Caione
2018-07-10 14:41                 ` Simon Glass
2018-07-10 14:41                   ` [U-Boot] " Simon Glass
2018-07-10 18:55                   ` Dr. Philipp Tomsich
2018-07-10 18:55                     ` [U-Boot] " Dr. Philipp Tomsich
2018-05-07  0:32 ` [U-Boot] [PATCH 0/3] add support for the asus C201 chromebook (4GiB) Marty E. Plummer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180506200309.ij6kgqdvsuxih56r@proprietary-killer \
    --to=hanetzer@startmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.