[U-Boot] [PATCH 8/9] bootstage: Mark the start/end of TPL and SPL separately

2019-10-14 Thread Simon Glass
: 196 dm_r 8,300 dm_spl 14,139 dm_f 229,121 fsp-m 262,992 fsp-s Signed-off-by: Simon Glass --- common/spl/spl.c| 9 ++--- include/bootstage.h | 2 ++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/common

[U-Boot] [PATCH 7/9] bootstage: Correct relocation algorithm

2019-10-14 Thread Simon Glass
-by: Simon Glass --- common/board_f.c | 1 + common/board_r.c | 1 - common/bootstage.c | 25 ++--- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/common/board_f.c b/common/board_f.c index 4852a3b0d84..e3591cbaebd 100644 --- a/common/board_f.c +++ b/common

[U-Boot] [PATCH 5/9] bootstage: Fix counting of entries in stash

2019-10-14 Thread Simon Glass
The current code searches for empty records but these do not exist with bootstage now. This used to be needed when bootstage records were stored in a sparse array. Drop the unnecessary code and fix a code-style nit at the same time. Signed-off-by: Simon Glass --- common/bootstage.c | 12

[U-Boot] [PATCH 9/9] bootstage: Allow SPL to obtain bootstage info from TPL

2019-10-14 Thread Simon Glass
It is possible to enable bootstage in TPL. TPL can stash the info for SPL. But at present this information is then lost because SPL does not read from the stash. Add support for SPL not being the first phase to enable bootstage. Signed-off-by: Simon Glass --- common/spl/spl.c | 16

[U-Boot] [PATCH 2/9] tiny-printf: Add print_grouped_ull()

2019-10-14 Thread Simon Glass
This function is used in the bootstage report which may be triggered in sPL or TPL. Add a very basic implication of this function so that it builds. There is no attempt to get the formatting right, since this would add too much to code size. Signed-off-by: Simon Glass --- lib/tiny-printf.c | 6

[U-Boot] [PATCH 6/9] bootstage: Avoid conflicts between stash/unstash

2019-10-14 Thread Simon Glass
be a small cost in terms of space. Fix the header-file order at the same time. This problem doesn't happen at the next stage (SPL->U-Boot) since U-Boot relocates the boostage data. Signed-off-by: Simon Glass --- common/bootstage.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) d

[U-Boot] [PATCH 1/9] tiny-printf: Reduce size by removing ctype

2019-10-14 Thread Simon Glass
The ctype array is brought into the image, adding 256 bytes, when it is unlikely to be needed. The extra code for %p is only present when DEBUG is defined, so let's drop ctype as well unless DEBUG is defined. Signed-off-by: Simon Glass --- lib/tiny-printf.c | 7 +++ 1 file changed, 7

[U-Boot] [PATCH 4/9] bootstage: Store the next ID in the stash

2019-10-14 Thread Simon Glass
When stashing bootstage info, store the next ID so that it can be used when the stash is restored. This avoids the ID starting at zero and potentially overwriting existing entries. Signed-off-by: Simon Glass --- common/bootstage.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions

[U-Boot] [PATCH 3/9] bloblist: Reserve an aligned base

2019-10-14 Thread Simon Glass
Make sure that the bloblist starts on an aligned boundary. This protects against one of the earlier allocations causing the alignment to be lost. Signed-off-by: Simon Glass --- common/board_f.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/board_f.c b/common/board_f.c index

[U-Boot] [PATCH 0/9] bootstage: TPL and SPL improvements

2019-10-14 Thread Simon Glass
At present bootstage cannot be fully used on x86 since it violates a few U-Boot rules, mostly accessing pre-relocation memory after relocation. This series corrects this and adds better support for using bootstage in TPL. Simon Glass (9): tiny-printf: Reduce size by removing ctype tiny

Re: [U-Boot] [PATCH 097/126] x86: Add support for newer CAR schemes

2019-10-14 Thread Simon Glass
Hi Bin, On Sun, 13 Oct 2019 at 19:58, Bin Meng wrote: > > Hi Simon, > > On Sun, Oct 13, 2019 at 1:53 AM Simon Glass wrote: > > > > Hi Bin, > > > > On Fri, 11 Oct 2019 at 22:48, Bin Meng wrote: > > > > > > Hi Simon, > >

Re: [U-Boot] IS_ERR_VALUE failing on socfpga gen5

2019-10-14 Thread Simon Glass
Hi Simon, On Mon, 14 Oct 2019 at 14:05, Simon Goldschmidt wrote: > > Am 14.10.2019 um 22:02 schrieb Simon Glass: > > Hi Simon, > > > > On Mon, 14 Oct 2019 at 13:13, Simon Goldschmidt > > wrote: > >> > >> Am 12.10.2019 um 00:11 schrieb Simon Glass:

Re: [U-Boot] [PATCH 066/126] x86: spl: Support init of a PUNIT

2019-10-14 Thread Simon Glass
Hi Bin, On Wed, 9 Oct 2019 at 08:02, Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > The x86 power unit handles power management. Support initing this device > > which is modelled as a new type of system controller sin

Re: [U-Boot] [PATCH 021/126] sandbox: net: Suppress the MAC-address warnings

2019-10-14 Thread Simon Glass
, > > > > > > On Fri, Oct 4, 2019 at 9:27 PM Bin Meng wrote: > > > > > > > > Hi Simon, > > > > > > > > On Sat, Oct 5, 2019 at 10:16 AM Bin Meng wrote: > > > > > > > > > > Hi Simon, > > > > > > >

Re: [U-Boot] IS_ERR_VALUE failing on socfpga gen5

2019-10-14 Thread Simon Glass
Hi Simon, On Mon, 14 Oct 2019 at 13:13, Simon Goldschmidt wrote: > > Am 12.10.2019 um 00:11 schrieb Simon Glass: > > Hi Simon, > > > > On Fri, 11 Oct 2019 at 12:31, Simon Goldschmidt > > wrote: > >> > >> > >> > >> Simon

Re: [U-Boot] [PATCH 047/126] spl: Allow SPL/TPL to use of-platdata without libfdt

2019-10-13 Thread Simon Glass
Hi Bin, On Mon, 7 Oct 2019 at 23:46, Bin Meng wrote: > > On Mon, Oct 7, 2019 at 9:55 AM Bin Meng wrote: > > > > On Sat, Oct 5, 2019 at 11:30 PM Bin Meng wrote: > > > > > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > > &g

Re: [U-Boot] [PATCH 005/126] dm: core: Don't include ofnode functions with of-platdata

2019-10-13 Thread Simon Glass
Hi Bin, On Sun, 6 Oct 2019 at 19:40, Bin Meng wrote: > > Hi Simon, > > On Sun, Oct 6, 2019 at 5:15 PM Bin Meng wrote: > > > > On Thu, Oct 3, 2019 at 8:48 PM Bin Meng wrote: > > > > > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: &

Re: [U-Boot] [PATCH 063/126] x86: pci: Add a function to decode a PCI BDF

2019-10-13 Thread Simon Glass
Hi Bin, On Mon, 7 Oct 2019 at 07:53, Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > Early in boot it is necessary to decode the PCI device/function values for > > particular peripherals in the device tree or of-platdata. Add

Re: [U-Boot] [PATCH 010/126] dm: doc: Correct of-platdata CONFIG_IS_ENABLED() condition

2019-10-13 Thread Simon Glass
Hi Bin, On Fri, 4 Oct 2019 at 03:44, Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > This condition is not correct since it should not include an SPL_ prefix. > > Fix it and also add a note about the driver name in the

Re: [U-Boot] [PATCH 014/126] fdt: Show the preprocessed .dts file on error

2019-10-13 Thread Simon Glass
Hi Bin, On Fri, 4 Oct 2019 at 03:45, Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > When device-tree compilation fails it is sometimes tricky to see which > > line is broken, since the input file to dtc is a pre-proce

Re: [U-Boot] [PATCH 2/2] test: provide test for errno_str()

2019-10-13 Thread Simon Glass
Hi Heinrich, On Sun, 6 Oct 2019 at 06:33, Heinrich Schuchardt wrote: > > Provide a unit test for errno_str(). Test that known and unknown error > numbers are handled correctly. > > Signed-off-by: Heinrich Schuchardt > --- > test/lib/Makefile | 1 + > test/lib/test_errno_str.c | 50

Re: [U-Boot] [PATCH 1/2] lib: errno: check for unsupported error number

2019-10-13 Thread Simon Glass
nged, 7 insertions(+), 1 deletion(-) Reviewed-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 074/126] pci: Add support for p2sb uclass

2019-10-12 Thread Simon Glass
Hi Bin, On Fri, 11 Oct 2019 at 21:37, Simon Glass wrote: > > Hi Bin, > > On Wed, 9 Oct 2019 at 22:57, Bin Meng wrote: > > > > Hi Simon, > > > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > > > The Primary-to-Sideband bus (P2S

Re: [U-Boot] [PATCH 050/126] x86: timer: Reduce timer code size in TPL on Intel CPUs

2019-10-12 Thread Simon Glass
Hi Bin, On Fri, 11 Oct 2019 at 23:18, Bin Meng wrote: > > Hi Simon, > > On Sat, Oct 12, 2019 at 11:38 AM Simon Glass wrote: > > > > Hi Bin, > > > > On Fri, 11 Oct 2019 at 07:19, Bin Meng wrote: > > > > > > Hi Simon, > >

Re: [U-Boot] [PATCH 097/126] x86: Add support for newer CAR schemes

2019-10-12 Thread Simon Glass
Hi Bin, On Fri, 11 Oct 2019 at 22:48, Bin Meng wrote: > > Hi Simon, > > On Sat, Oct 12, 2019 at 11:38 AM Simon Glass wrote: > > > > Hi Bin, > > > > On Thu, 10 Oct 2019 at 03:50, Bin Meng wrote: > > > > > > Hi Simon, > >

Re: [U-Boot] [PATCH 050/126] x86: timer: Reduce timer code size in TPL on Intel CPUs

2019-10-11 Thread Simon Glass
Hi Bin, On Fri, 11 Oct 2019 at 07:19, Bin Meng wrote: > > Hi Simon, > > On Fri, Oct 11, 2019 at 1:06 AM Simon Glass wrote: > > > > Hi Bin, > > > > On Sat, 5 Oct 2019 at 08:36, Bin Meng wrote: > > > > > > Hi Simon, > >

Re: [U-Boot] [PATCH 097/126] x86: Add support for newer CAR schemes

2019-10-11 Thread Simon Glass
Hi Bin, On Thu, 10 Oct 2019 at 03:50, Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > Newer Intel SoCs have different ways of setting up cache-as-ram (CAR). > > Add support for these along with suitable configuration op

Re: [U-Boot] [PATCH 089/126] x86: Set up the MTRR for SDRAM

2019-10-11 Thread Simon Glass
Hi Bin, On Thu, 10 Oct 2019 at 03:19, Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > Set up MTRRs for the FST SDRAM regions to improve performance. > > > > Signed-off-by: Simon Glass > > --- > > > > arch/x86/l

Re: [U-Boot] [PATCH 074/126] pci: Add support for p2sb uclass

2019-10-11 Thread Simon Glass
Hi Bin, On Wed, 9 Oct 2019 at 22:57, Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > The Primary-to-Sideband bus (P2SB) is used to access various peripherals > > through memory-mapped I/O in a large chunk of PCI spa

Re: [U-Boot] [PATCH 060/126] x86: timer: Set up the timer in timer_early_get_count()

2019-10-11 Thread Simon Glass
Hi Bin, On Sun, 6 Oct 2019 at 18:32, Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > This function can be called before the timer is set up. Make sure that the > > init function is called so that it works correctly

Re: [U-Boot] [PATCH 081/126] x86: Correct mrccache find_next_mrc_cache() calculation

2019-10-11 Thread Simon Glass
Hi Bin, On Thu, 10 Oct 2019 at 00:23, Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > This should take account of the end of the new cache record since a record > > cannot extend beyond the end of the flash region.

Re: [U-Boot] [PATCH 070/126] x86: power: Add a PMC uclass

2019-10-11 Thread Simon Glass
Hi Bin, On Wed, 9 Oct 2019 at 21:11, Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > Intel x86 SoCs have a power manager/controller which handles several > > power-related aspects of the platform. Add a uclass f

Re: [U-Boot] [PATCH v2 14/38] spi: Add support for memory-mapped flash

2019-10-11 Thread Simon Glass
Hi Bin, On Wed, 9 Oct 2019 at 07:55, Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 10:12 PM Simon Glass wrote: > > > > On x86 platforms the SPI flash can be mapped into memory so that the > > contents can be read with normal memory accesses. >

Re: [U-Boot] [PATCH v2 36/38] x86: Add support for booting from Fast SPI

2019-10-11 Thread Simon Glass
Hi Bin, On Wed, 2 Oct 2019 at 08:08, Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:13 PM Simon Glass wrote: > > > > Most x86 CPUs use a mechanism where the SPI flash is mapped into the very > > top of 32-bit address space, so that it can be executed in place and read &g

Re: [U-Boot] [RESEND PATCH 2/2] dm: pinctrl: introduce PINCONF_RECURSIVE option

2019-10-11 Thread Simon Glass
On Tue, 13 Aug 2019 at 03:34, Simon Glass wrote: > > On Fri, 2 Aug 2019 at 06:48, Patrick Delaunay wrote: > > > > In the Linux pinctrl binding, the pin configuration nodes don't need to > > be direct children of the pin controller device (may be grandchildren for >

Re: [U-Boot] [PATCH 045/126] spl: Add a size check for TPL

2019-10-11 Thread Simon Glass
Hi Simon, On Thu, 26 Sep 2019 at 06:23, Simon Goldschmidt wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 5:36 PM Simon Glass wrote: > > > > We have the ability to enforce a maximum size for SPL but not yet for TPL. > > Add a new option for this. > > > &

Re: [U-Boot] [EXT] Re: Issues with driver binding and probing

2019-10-11 Thread Simon Glass
Hi Aaron, On Wed, 25 Sep 2019 at 22:08, Aaron Williams wrote: > > Hi Simon, > > On Wednesday, September 25, 2019 8:40:48 PM PDT Bin Meng wrote: > > External Email > > > > -- > > +Simon > > > > Hi Aaron, > > > > On Thu, Sep 26,

Re: [U-Boot] [PATCH v2] spl: Introduce SPL_DM_GPIO Kconfig define

2019-10-11 Thread Simon Glass
Hi Lukasz, On Wed, 9 Oct 2019 at 03:02, Lukasz Majewski wrote: > > Dear Tom, > > > This define indicates if DM_GPIO shall be supported in SPL. This > > allows proper operation of DM converted GPIO drivers in SPL, which use > > boards. > > > > Signed-off-by: Lukasz Majewski > > --- > > > >

Re: [U-Boot] [PATCH 4/4] dm: core: device: switch off power domain after device removal

2019-10-11 Thread Simon Glass
; --- > drivers/core/device-remove.c | 5 + > 1 file changed, 5 insertions(+) Reviewed-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH 1/5] sandbox: test: Show hex values on failure

2019-10-11 Thread Simon Glass
Quite a few tests use addresses or hex values for comparisons. Add hex output for test failures, e.g.: 0x55ca22fa == reg: Expected 0x55ca22fa (1439310586), got 0x55ea22fb (1441407739) Signed-off-by: Simon Glass --- include/test/ut.h | 3 ++- 1 file changed, 2 insertions(+), 1

Re: [U-Boot] [PATCH v2] dm: Tidy up dump output when there are many devices

2019-10-11 Thread Simon Glass
INCTRL_FULL activated have one pinconfig > by pin configuration, so they can have more than 100 devices > pinconfig (for example with stm32mp157c-ev1 board we have > 106 pinconfig node). > > Signed-off-by: Patrick Delaunay > > --- Reviewed-by: Simon Glass

[U-Boot] [PATCH 0/5] dm: regmap: Various fixes for regmap

2019-10-11 Thread Simon Glass
read from the regmap Simon Glass (4): sandbox: test: Show hex values on failure sandbox: Drop 'const' from sandbox_write() sandbox: test: Add a prototype for sandbox_set_enable_memio() dm: regmap: Fix mask in regmap_update_bits() arch/sandbox/cpu/cpu.c | 3 +-- arch/sandbox

[U-Boot] [PATCH 5/5] test: regmap: check the values read from the regmap

2019-10-11 Thread Simon Glass
From: Jean-Jacques Hiblot The test did reads after writes but didn't check the value. It probably was because the sandbox didn't implement the writeX/readX functions. Signed-off-by: Jean-Jacques Hiblot Updated to use sandbox_set_enable_memio(): Signed-off-by: Simon Glass --- test/dm

[U-Boot] [PATCH 2/5] sandbox: Drop 'const' from sandbox_write()

2019-10-11 Thread Simon Glass
This function writes to its address so the address should not be declared as const. Fix it. Signed-off-by: Simon Glass --- arch/sandbox/cpu/cpu.c| 3 +-- arch/sandbox/include/asm/io.h | 11 +-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/arch/sandbox/cpu

[U-Boot] [PATCH 4/5] dm: regmap: Fix mask in regmap_update_bits()

2019-10-11 Thread Simon Glass
This function assumes that the 'val' parameter has no masked bits set. This is not defined by the function prototype though. Fix the function to mask the value and update the documentation. Signed-off-by: Simon Glass --- drivers/core/regmap.c | 2 +- include/regmap.h | 3 ++- 2 files

[U-Boot] [PATCH 3/5] sandbox: test: Add a prototype for sandbox_set_enable_memio()

2019-10-11 Thread Simon Glass
This function needs a prototype so that tests can use it. Add one. Signed-off-by: Simon Glass --- arch/sandbox/include/asm/test.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/sandbox/include/asm/test.h b/arch/sandbox/include/asm/test.h index cd2b9e3155d..b885e1a14f1

Re: [U-Boot] [PATCH 3/4] power: domain: Introduce dev_power_domain_off

2019-10-11 Thread Simon Glass
include/power-domain.h | 17 +++ > 2 files changed, 44 insertions(+), 7 deletions(-) Reviewed-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v1 0/2] sandbox: Fixes the regmap tests

2019-10-11 Thread Simon Glass
Hi Jean-Jacques, On Wed, 2 Oct 2019 at 03:29, Jean-Jacques Hiblot wrote: > > The sandbox architecture does not implement the writeX nor readX functions. > This prevents testing properly the regmaps and the other stuff relying on > it. I just added a feature to sandbox to support mmio. I'll send

Re: [U-Boot] [PATCH] dm: device: Fix typo in the non-DEVRES version of devm_kmalloc_array()

2019-10-11 Thread Simon Glass
gt; include/dm/device.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v1 2/2] test: regmap: check the values read from the regmap

2019-10-11 Thread Simon Glass
Hi Jean-Jacques, On Wed, 2 Oct 2019 at 03:28, Jean-Jacques Hiblot wrote: > > The test did reads after writes but didn't check the value. > It probably was because the sandbox didn't implement the writeX/readX > functions. > > Signed-off-by: Jean-Jacques Hiblot > > --- > > test/dm/regmap.c | 15

Re: [U-Boot] [PATCH v1 1/2] arch: sandbox: Provide working writeX/readX functions

2019-10-11 Thread Simon Glass
Hi Jean-Jacques, On Wed, 2 Oct 2019 at 03:29, Jean-Jacques Hiblot wrote: > > Those functions are used by the regmap core. Without them regmaps are > not working on sandbox. > The implementation is taken from arch/x86/include/asm/io.h. > > Signed-off-by: Jean-Jacques Hiblot > --- > >

Re: [U-Boot] [PATCH 2/4] remoteproc: k3_arm64: Enable DM_FLAG_DEFAULT_PD_CTRL_OFF

2019-10-11 Thread Simon Glass
1 insertion(+) Reviewed-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v5 12/15] drivers: board: Make the board drivers available in SPL

2019-10-11 Thread Simon Glass
> > Changes in v5: None > Changes in v4: None > Changes in v3: None > Changes in v2: > - depend on SPL_DM > - update the commit log > > drivers/Makefile | 2 +- > drivers/board/Kconfig | 3 +++ > drivers/board/Makefile | 2 +- > 3 files change

Re: [U-Boot] [PATCH] sandbox: Remove sandbox_noblk build

2019-10-11 Thread Simon Glass
On Fri, 11 Oct 2019 at 14:30, Tom Rini wrote: > > At this point, all drivers that do not use CONFIG_BLK are past their > migration deadlines, so remove this config as it's no longer helpful and > hinders enhancing block drivers. > > Cc: Simon Glass > Cc: Faiz Abbas >

Re: [U-Boot] [PATCH 1/4] dm: core: Allow for not controlling the power-domain by DM framework

2019-10-11 Thread Simon Glass
gt; --- > drivers/core/device.c | 3 ++- > include/dm/device.h | 3 +++ > 2 files changed, 5 insertions(+), 1 deletion(-) Reviewed-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] IS_ERR_VALUE failing on socfpga gen5

2019-10-11 Thread Simon Glass
Hi Simon, On Fri, 11 Oct 2019 at 12:31, Simon Goldschmidt wrote: > > > > Simon Glass schrieb am Fr., 11. Okt. 2019, 20:27: >> >> Hi Simon, >> >> On Tue, 8 Oct 2019 at 14:34, Simon Goldschmidt >> wrote: >> > >> > In a se

Re: [U-Boot] [PATCH v2 1/4] libfdt: fdt_address_cells() and fdt_size_cells()

2019-10-11 Thread Simon Glass
ation comment. > > > > This is based in upstream commit: > > c12b2b0 ("libfdt: fdt_address_cells() and fdt_size_cells()") > > but misses the test cases, as we don't implement them in U-Boot. > > > > Signed-off-by: Matthias Brugger >

Re: [U-Boot] IS_ERR_VALUE failing on socfpga gen5

2019-10-11 Thread Simon Glass
Hi Simon, On Tue, 8 Oct 2019 at 14:34, Simon Goldschmidt wrote: > > In a series I'm currently preparing, I've stumbled accross the fact that > IS_ERR_VALUE() doesn't reliably work on socfpga SPL as the onchip SRAM > begins at 0x and the heap is at the end of the 32 bit range. > Which

Re: [U-Boot] [PATCH] test/py: hush_if_test: Add tests to cover octal/hex values

2019-10-11 Thread Simon Glass
Hi Michal, On Fri, 11 Oct 2019 at 01:50, Michal Simek wrote: > > On 10. 10. 19 19:06, Simon Glass wrote: > > Hi Michal, > > > > On Thu, 10 Oct 2019 at 05:44, Michal Simek wrote: > >> > >> Extend test suite to cover also automatic octal/hex conver

Re: [U-Boot] [PATCH 1/2] rockchip: make_fit_atf.py: allow inclusion of a tee binary

2019-10-11 Thread Simon Glass
Hi Heiko, On Thu, 10 Oct 2019 at 12:28, Heiko Stübner wrote: > > Hi Simon, > > Am Donnerstag, 10. Oktober 2019, 19:06:12 CEST schrieb Simon Glass: > > On Tue, 1 Oct 2019 at 14:23, Heiko Stuebner wrote: > > > A trusted execution environment should also get loaded a

Re: [U-Boot] [PATCH 1/1] cbfs: do not pack struct cbfs_cachenode

2019-10-10 Thread Simon Glass
e structure is naturally packed and remove the __packed > attribute. > > Signed-off-by: Heinrich Schuchardt > --- > include/cbfs.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > Reviewed-by: Simon Glass ___ U-Boot mai

Re: [U-Boot] [PATCH 079/126] x86: Reduce mrccache record alignment size

2019-10-10 Thread Simon Glass
Hi Bin, On Wed, 9 Oct 2019 at 23:09, Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > At present the records are 4KB in size. This is unnecessarily large when > > the SPI-flash erase size is 256 bytes

Re: [U-Boot] [PATCH 050/126] x86: timer: Reduce timer code size in TPL on Intel CPUs

2019-10-10 Thread Simon Glass
Hi Bin, On Sat, 5 Oct 2019 at 08:36, Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > Most of the timer-calibration methods are not needed on recent Intel CPUs > > and just increase code size. Add an option to use

Re: [U-Boot] [PATCH 1/1] tools: provide cbfstool

2019-10-10 Thread Simon Glass
Hi, On Sun, 6 Oct 2019 at 15:06, Tom Rini wrote: > > On Sun, Oct 06, 2019 at 10:50:45PM +0200, Heinrich Schuchardt wrote: > > > 'make tests' requires cbfstool. But this file is not built by U-Boot. If so this is a bug. The tests are supposed to detect that cbfstool is missing and skip the

Re: [U-Boot] [PATCH 1/3] buildman: Perform tests in /tmp

2019-10-10 Thread Simon Glass
On Fri, 4 Oct 2019 at 09:13, Tom Rini wrote: > > We may not always be able to write to the default output directory but > we will always have a usable /tmp. Make the buildman tests use /tmp > > Cc: Simon Glass > Signed-off-by: Tom Rini > --- > tools/bu

Re: [U-Boot] [PATCH] binman: Use qemu-x86_defconfig in the example

2019-10-10 Thread Simon Glass
> --- > > tools/binman/README | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 000/126] x86: Add initial support for apollolake

2019-10-10 Thread Simon Glass
Hi Bin, On Mon, 7 Oct 2019 at 08:31, Bin Meng wrote: > > Hi Simon, > > On Wed, Oct 2, 2019 at 8:34 PM Bin Meng wrote: > > > > Hi Simon, > > > > On Wed, Oct 2, 2019 at 10:15 AM Simon Glass wrote: > > > > > > Hi Bin, > &

Re: [U-Boot] [PATCH 1/2] rockchip: make_fit_atf.py: allow inclusion of a tee binary

2019-10-10 Thread Simon Glass
Hi Heiko, On Tue, 1 Oct 2019 at 14:23, Heiko Stuebner wrote: > > A trusted execution environment should also get loaded as loadable from > a fit image, so add the possibility to present a tee.elf to make_fit_atf.py > that then gets included as additional loadable into the generated its. > > For

Re: [U-Boot] [PATCH 078/126] x86: Define the SPL image start

2019-10-10 Thread Simon Glass
Hi Bin, On Thu, 10 Oct 2019 at 01:09, Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > Define this symbol so that we can use binman symbols correctly. > > > > Signed-off-by: Simon Glass > > --- > > &

Re: [U-Boot] [PATCH] sandbox: fix build error due to missing struct udevice definition

2019-10-10 Thread Simon Glass
On Thu, 3 Oct 2019 at 21:41, AKASHI Takahiro wrote: > > Without this patch, compiling may potentially fail. > > Signed-off-by: AKASHI Takahiro > --- > arch/sandbox/include/asm/u-boot-sandbox.h | 2 ++ > 1 file changed, 2 insertions(+) Rev

Re: [U-Boot] [PATCH v2 33/38] x86: fsp: Allow the HOBs to be used after relocation

2019-10-10 Thread Simon Glass
Hi Bin, On Thu, 3 Oct 2019 at 20:23, Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 10:13 PM Simon Glass wrote: > > > > Allocate memory for the HOBs and copy them before relocation. This ensures > > that they can still be accessed after relocatio

Re: [U-Boot] [PATCH] test/py: hush_if_test: Add tests to cover octal/hex values

2019-10-10 Thread Simon Glass
Hi Michal, On Thu, 10 Oct 2019 at 05:44, Michal Simek wrote: > > Extend test suite to cover also automatic octal/hex converstions which > haven't been implemented in past. > > Signed-off-by: Michal Simek > --- > > Depends on https://lists.denx.de/pipermail/u-boot/2019-September/383309.html > >

Re: [U-Boot] [PATCH 000/126] x86: Add initial support for apollolake

2019-10-01 Thread Simon Glass
Hi Bin, On Wed, 25 Sep 2019 at 08:58, Simon Glass wrote: > > Apollolake is an Intel SoC generation aimed at relatively low-end embedded > systems. It was released in 2016 but has become more popular recently with > some embedded boards using it. > > This series adds supp

Re: [U-Boot] [PATCH v3 02/10] x86: Move fsp_azalia.h to the generic fsp directory

2019-10-01 Thread Simon Glass
Hi Bin, On Tue, 1 Oct 2019 at 04:59, Bin Meng wrote: > > Hi Simon, > > On Wed, Sep 25, 2019 at 10:00 PM Simon Glass wrote: > > > > This header file is the same for FSP v1 and v2. Move it into the general > > fsp directory. > > > > Signed-off-by:

Re: [U-Boot] [PATCH 39/41] common: Move trap_init() out of common.h

2019-09-30 Thread Simon Glass
Hi Daniel, On Mon, 30 Sep 2019 at 09:43, Daniel Schwierzeck wrote: > > On Mon, Sep 30, 2019 at 5:37 PM Simon Glass wrote: > > > > Hi Daniel, > > > > On Mon, 30 Sep 2019 at 09:13, Daniel Schwierzeck > > wrote: > > > > > > On Mon, Sep 30, 20

Re: [U-Boot] [PATCH 39/41] common: Move trap_init() out of common.h

2019-09-30 Thread Simon Glass
Hi Daniel, On Mon, 30 Sep 2019 at 09:13, Daniel Schwierzeck wrote: > > On Mon, Sep 30, 2019 at 4:58 PM Simon Glass wrote: > > > > Move this function into the irq_legacy.h header file. > > > > Signed-off-by: Simon Glass > > --- > > > > arch/m68k/

[U-Boot] [PATCH 41/41] common: Move old EEPROM functions into a new header

2019-09-30 Thread Simon Glass
These functions do not use driver model but are still used. Move them to a new eeprom_legacy.h header file. Signed-off-by: Simon Glass --- board/atmel/common/mac_eeprom.c | 1 + board/compulab/common/eeprom.c| 1 + board/corscience/tricorder/tricorder-eeprom.c

[U-Boot] [PATCH 29/41] common: Drop checkicache() and checkdcache()

2019-09-30 Thread Simon Glass
These are used by only one arch and only within a single file. Drop the declarations from the common file. Signed-off-by: Simon Glass --- arch/powerpc/cpu/mpc8xx/cpu.c | 130 +- include/common.h | 2 - 2 files changed, 65 insertions(+), 67

[U-Boot] [PATCH 40/41] common: Drop get_endaddr()

2019-09-30 Thread Simon Glass
This is not used in U-Boot. Drop it. Signed-off-by: Simon Glass --- include/common.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/common.h b/include/common.h index e946e4d9b7f..64d0cf542e8 100644 --- a/include/common.h +++ b/include/common.h @@ -144,7 +144,6 @@ void

[U-Boot] [PATCH 36/41] common: Move board_get_usable_ram_top() out of common.h

2019-09-30 Thread Simon Glass
Move this function into init.h which seems to be designed for this sort of thing. Also update the header to declare struct global_data so that it can be included without global_data.h being needed. Signed-off-by: Simon Glass --- arch/arm/mach-mvebu/arm64-common.c| 1 + arch/arm/mach

[U-Boot] [PATCH 33/41] common: Move enable/disable_interrupts out of common.h

2019-09-30 Thread Simon Glass
Move these two functions into the irq_legacy.h header file. Also move interrupt_handler_t as this is used by the irq_install_handler() function. Signed-off-by: Simon Glass --- arch/arc/lib/bootm.c | 1 + arch/arm/cpu/arm11/cpu.c | 1 + arch/arm/cpu

[U-Boot] [PATCH 35/41] common: Drop board_show_dram()

2019-09-30 Thread Simon Glass
This function is not defined by any boards so the feature is not used. Drop it. Signed-off-by: Simon Glass --- cmd/mem.c| 9 ++--- include/common.h | 9 - 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/cmd/mem.c b/cmd/mem.c index c6b8038fc9d..545534b1fc7

[U-Boot] [PATCH 34/41] common: Move command functions out of common.h

2019-09-30 Thread Simon Glass
Move these functions into the command.h header file which is a better fit. Signed-off-by: Simon Glass --- arch/arm/mach-kirkwood/cpu.c| 1 + arch/sandbox/cpu/start.c| 1 + board/engicam/common/board.c| 1 + board/gdsys/a38x/keyprogram.c | 1

[U-Boot] [PATCH 25/41] common: Move checkcpu() out of common.h

2019-09-30 Thread Simon Glass
This function belongs in cpu.h so move it over. Signed-off-by: Simon Glass --- arch/powerpc/cpu/mpc83xx/cpu.c | 1 + arch/powerpc/cpu/mpc8xx/cpu.c| 1 + arch/sh/cpu/sh4/cpu.c| 1 + arch/x86/cpu/broadwell/cpu_from_spl.c| 1

[U-Boot] [PATCH 37/41] common: Move some board functions out of common.h

2019-09-30 Thread Simon Glass
A number of board function belong in init.h with the others. Move them. Signed-off-by: Simon Glass --- arch/arm/cpu/armv8/fsl-layerscape/soc.c | 1 + arch/arm/mach-imx/mx6/opos6ul.c | 1 + arch/arm/mach-imx/mx6/soc.c | 1

[U-Boot] [PATCH 20/41] common: Move timer_get_us() function out of common.h

2019-09-30 Thread Simon Glass
This function belongs in time.h so move it over and update the comment style. Signed-off-by: Simon Glass --- include/common.h | 3 --- include/time.h | 7 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/common.h b/include/common.h index 091b54787f7..e68bed64078

[U-Boot] [PATCH 26/41] common: Move some SMP functions out of common.h

2019-09-30 Thread Simon Glass
These functions belong in cpu_legacy.h so move them over. Signed-off-by: Simon Glass --- arch/arm/cpu/armv7/ls102xa/cpu.c| 1 + arch/arm/cpu/armv7/virt-v7.c| 1 + arch/arm/lib/bootm.c| 1 + arch/arm/mach-uniphier/arm32/psci.c | 1 + board/armltd

[U-Boot] [PATCH 22/41] common: Move mii_init() function out of common.h

2019-09-30 Thread Simon Glass
This function belongs in mii.h so move it over. Signed-off-by: Simon Glass --- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 1 + drivers/net/fsl_mcdmafec.c | 1 + drivers/net/ldpaa_eth/ls1088a.c | 1 + drivers/net/ldpaa_eth/lx2160a.c | 1 + drivers/net/mcffec.c

[U-Boot] [PATCH 39/41] common: Move trap_init() out of common.h

2019-09-30 Thread Simon Glass
Move this function into the irq_legacy.h header file. Signed-off-by: Simon Glass --- arch/m68k/lib/traps.c | 1 + arch/mips/lib/traps.c | 1 + include/common.h | 1 - include/irq_legacy.h | 2 ++ 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/m68k/lib/traps.c b/arch

[U-Boot] [PATCH 21/41] common: Move get_ticks() function out of common.h

2019-09-30 Thread Simon Glass
This function belongs in time.h so move it over and add a comment. Signed-off-by: Simon Glass --- arch/arm/cpu/arm920t/ep93xx/timer.c| 1 + arch/arm/cpu/arm920t/imx/timer.c | 1 + arch/arm/cpu/arm926ejs/armada100/timer.c | 1 + arch/arm/cpu/arm926ejs/lpc32xx/timer.c

[U-Boot] [PATCH 38/41] common: Move pci_init_board() out of common.h

2019-09-30 Thread Simon Glass
This function can be dropped when all boards use driver model for PCI. For now, move it into init.h with a comment. Signed-off-by: Simon Glass --- board/armltd/integrator/pci.c | 1 + board/cavium/thunderx/thunderx.c| 1 + board/esd/vme8349/pci.c

[U-Boot] [PATCH 15/41] common: Move serial_printf() to the serial header

2019-09-30 Thread Simon Glass
serial.c and serial-uclass.c, neither of which seem worthwhile. Signed-off-by: Simon Glass --- drivers/usb/gadget/core.c | 1 + drivers/usb/gadget/designware_udc.c | 1 + drivers/usb/gadget/ep0.c| 3 ++- drivers/usb/musb-new/omap2430.c | 1 + drivers/usb/musb

[U-Boot] [PATCH 31/41] arm: powerpc: Tidy up code style for interrupt functions

2019-09-30 Thread Simon Glass
Remove the unwanted space before the bracket. Signed-off-by: Simon Glass --- arch/arm/cpu/arm11/cpu.c | 2 +- arch/arm/cpu/arm920t/cpu.c| 2 +- arch/arm/cpu/arm926ejs/cpu.c | 2 +- arch/arm/cpu/arm946es/cpu.c | 2 +- arch/arm/cpu/sa1100/cpu.c

[U-Boot] [PATCH 10/41] common: Move bootcount functions to their header file

2019-09-30 Thread Simon Glass
These don't need to be in common.h so move them out. Signed-off-by: Simon Glass --- board/BuR/brppt1/board.c | 1 + include/bootcount.h | 10 ++ include/common.h | 4 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/board/BuR/brppt1/board.c b/board

[U-Boot] [PATCH 07/41] crc: Fix code style with crc functions

2019-09-30 Thread Simon Glass
Some of these have a space before the bracket. Drop it to fix the style. Add some missing function comments while here. Note that u32 and u8 cannot be used here since crc.h is included on the host side. Signed-off-by: Simon Glass --- cmd/i2c.c| 2 +- include/u-boot/crc.h | 75

[U-Boot] [PATCH 23/41] common: Move some CPU functions out of common.h

2019-09-30 Thread Simon Glass
These functions belong in cpu_legacy.h since they do not use driver model. Move them over. Don't bother adding comments since these functions should be deleted. Signed-off-by: Simon Glass --- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 1 + .../armv8/fsl-layerscape/fsl_lsch2_speed.c

[U-Boot] [PATCH 28/41] common: Move some cache and MMU functions out of common.h

2019-09-30 Thread Simon Glass
These functions belong in cpu_legacy.h. Another option would be cache.h but that code uses driver model and we have not moved these cache functions to use driver model. Since they are CPU-related it seems reasonable to put them here. Move them over. Signed-off-by: Simon Glass --- arch/arc/lib

[U-Boot] [PATCH 32/41] common: Move interrupt functions into a new header

2019-09-30 Thread Simon Glass
These functions do not use driver model but are fairly widely used in U-Boot. Move them to a new irq_legacy.h header file. Signed-off-by: Simon Glass --- arch/arc/lib/interrupts.c | 1 + arch/arm/lib/interrupts.c | 1 + arch/arm/lib/interrupts_64.c | 1

[U-Boot] [PATCH 30/41] common: Move ARM cache operations out of common.h

2019-09-30 Thread Simon Glass
These functions are CPU-related and do not use driver model. Move them to cpu_legacy.h Signed-off-by: Simon Glass --- arch/arm/cpu/arm926ejs/lpc32xx/cpu.c | 1 + arch/arm/cpu/armv7/cache_v7.c | 1 + arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c | 1 + arch/arm/cpu/armv8

[U-Boot] [PATCH 24/41] common: Drop cpu_init()

2019-09-30 Thread Simon Glass
This function is not defined anywhere. Drop it. Signed-off-by: Simon Glass --- include/common.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/common.h b/include/common.h index 4de05032b2b..ce08bfe11fe 100644 --- a/include/common.h +++ b/include/common.h @@ -64,8 +64,6 @@ typedef

  1   2   3   4   5   6   7   8   9   10   >