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

2019-10-18 Thread Bin Meng
Hi Simon, On Fri, Oct 18, 2019 at 10:14 PM Simon Glass wrote: > > Hi Bin, > > On Thu, 17 Oct 2019 at 20:32, Bin Meng wrote: > > > > Hi Simon, > > > > On Fri, Oct 18, 2019 at 10:22 AM Simon Glass wrote: > > > > > > Hi, > &

Re: [U-Boot] [PATCH v3] arm: add initial support for the Phytium Durian Board

2019-10-18 Thread Bin Meng
On Fri, Oct 18, 2019 at 5:22 AM Tom Rini wrote: > > On Thu, Oct 17, 2019 at 02:05:05PM +, liu hao wrote: > > > This adds platform code and the device tree for the Phytium Durian Board. > > The initial support comprises the UART the GMAC and the PCIE. > > > > v3: Please drop these changelog

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

2019-10-17 Thread Bin Meng
Hi Simon, On Fri, Oct 18, 2019 at 10:22 AM Simon Glass wrote: > > Hi, > > On Thu, 17 Oct 2019 at 08:28, Simon Glass wrote: > > > > Hi Vignesh, > > > > On Wed, 16 Oct 2019 at 04:28, Vignesh Raghavendra wrote: > > > > > > Hi Simon, > &

Re: [U-Boot] [PATCH 5/5] doc: Add documentation for how to build U-Boot host tools

2019-10-17 Thread Bin Meng
Hi Tom, On Thu, Oct 17, 2019 at 11:12 PM Tom Rini wrote: > > On Thu, Oct 17, 2019 at 11:02:47PM +0800, Bin Meng wrote: > > Hi Tom, > > > > On Thu, Oct 17, 2019 at 10:10 PM Tom Rini wrote: > > > > > > On Thu, Oct 17, 2019 at 09:50:

Re: [U-Boot] [PATCH 5/5] doc: Add documentation for how to build U-Boot host tools

2019-10-17 Thread Bin Meng
Hi Tom, On Thu, Oct 17, 2019 at 10:10 PM Tom Rini wrote: > > On Thu, Oct 17, 2019 at 09:50:57AM +0800, Bin Meng wrote: > > Hi Tom, > > > > On Thu, Oct 17, 2019 at 2:20 AM Tom Rini wrote: > > > > > > On Wed, Oct 16, 2019 at 09:27:25AM -0700, Bin

Re: [U-Boot] [PATCH] nvme: flush dcache on both r/w, and the prp list

2019-10-17 Thread Bin Meng
hanged, 5 insertions(+), 3 deletions(-) > Reviewed-by: Bin Meng ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] nvme: add more cache flushes

2019-10-17 Thread Bin Meng
Hi Patrick, On Thu, Oct 17, 2019 at 2:44 PM Patrick Wildt wrote: > > On Thu, Oct 17, 2019 at 10:55:11AM +0800, Bin Meng wrote: > > Hi Patrick, > > > > On Wed, Oct 16, 2019 at 11:35 PM Patrick Wildt wrote: > > > > > > On Wed, Oct 16, 2019 at 06:11:23PM

Re: [U-Boot] [PATCH] nvme: add more cache flushes

2019-10-16 Thread Bin Meng
Hi Patrick, On Wed, Oct 16, 2019 at 11:35 PM Patrick Wildt wrote: > > On Wed, Oct 16, 2019 at 06:11:23PM +0800, Bin Meng wrote: > > On Mon, Oct 14, 2019 at 7:11 PM Patrick Wildt wrote: > > > > > > On an i.MX8MQ our nvme driver doesn't completely work since we

Re: [U-Boot] [PATCH 5/5] doc: Add documentation for how to build U-Boot host tools

2019-10-16 Thread Bin Meng
Hi Tom, On Thu, Oct 17, 2019 at 2:20 AM Tom Rini wrote: > > On Wed, Oct 16, 2019 at 09:27:25AM -0700, Bin Meng wrote: > > > This adds a reST document for how to build U-Boot host tools, > > including information for both Linux and Windows. > > > > Signed-off-by

[U-Boot] [PATCH 4/5] linux/types.h: Surround 'struct ustat' with __linux__

2019-10-16 Thread Bin Meng
'struct ustat' uses linux-specific typedefs to declare its memebers: __kernel_daddr_t and __kernel_ino_t. It is currently not used by any U-Boot codes, but when we build U-Boot tools for other platform like Windows, this becomes a problem. Let's surround it with __linux__. Signed-off-by: Bin

[U-Boot] [PATCH 5/5] doc: Add documentation for how to build U-Boot host tools

2019-10-16 Thread Bin Meng
This adds a reST document for how to build U-Boot host tools, including information for both Linux and Windows. Signed-off-by: Bin Meng --- doc/build/index.rst | 9 + doc/build/tools.rst | 47 +++ doc/index.rst | 11 +++ 3

[U-Boot] [PATCH 3/5] tools: zynqmpbif: Use compiler builtin instead of linux-specific __swab32

2019-10-16 Thread Bin Meng
__swab32() is a Linux specific macro defined in linux/swab.h. Let's use the compiler equivalent builtin function __builtin_bswap32() for better portability. Signed-off-by: Bin Meng --- tools/zynqmpbif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/zynqmpbif.c b

[U-Boot] [PATCH 1/5] tools: image.h: Use portable uint32_t instead of linux-specific __be32

2019-10-16 Thread Bin Meng
__be32 has Linux kernel specific __attribute__((bitwise)) which is not portable. Use uint32_t instead. Signed-off-by: Bin Meng --- include/image.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/image.h b/include/image.h index c1065c0..f4d2aaf 100644

[U-Boot] [PATCH 2/5] tools: mtk_image.h: Use portable uintXX_t instead of linux-specific __leXX

2019-10-16 Thread Bin Meng
__leXX has Linux kernel specific __attribute__((bitwise)) which is not portable. Use corresponding uintXX_t instead. Signed-off-by: Bin Meng --- tools/mtk_image.h | 86 +++ 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/tools

[U-Boot] [PATCH 0/5] tools: Support building U-Boot host tools for Windows via MSYS2

2019-10-16 Thread Bin Meng
is added. Bin Meng (5): tools: image.h: Use portable uint32_t instead of linux-specific __be32 tools: mtk_image.h: Use portable uintXX_t instead of linux-specific __leXX tools: zynqmpbif: Use compiler builtin instead of linux-specific __swab32 linux/types.h: Surround 'struct ustat

Re: [U-Boot] [PATCH 1/1] virtio: pci: use correct type in virtio_pci_bind()

2019-10-16 Thread Bin Meng
On Wed, Oct 16, 2019 at 6:59 PM Heinrich Schuchardt wrote: > > For printing as %u we should use an unsigned int. > > Signed-off-by: Heinrich Schuchardt > --- > drivers/virtio/virtio_pci_legacy.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

Re: [U-Boot] [PATCH v2] nvme: use page-aligned buffer for identify command

2019-10-16 Thread Bin Meng
> Changes for v2: >- use dev->page_size instead of hardcoded value > > drivers/nvme/nvme.c | 24 ++-- > 1 file changed, 18 insertions(+), 6 deletions(-) > Reviewed-by: Bin Meng ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] nvme: add more cache flushes

2019-10-16 Thread Bin Meng
On Mon, Oct 14, 2019 at 7:11 PM Patrick Wildt wrote: > > On an i.MX8MQ our nvme driver doesn't completely work since we are > missing a few cache flushes. One is the prp list, which is an extra > buffer that we need to flush before handing it to the hardware. Also > the block read/write

Re: [U-Boot] [PATCH] nvme: use page-aligned buffer for identify command

2019-10-15 Thread Bin Meng
On Mon, Oct 14, 2019 at 7:10 PM Patrick Wildt wrote: > > Change the stack-allocated buffer for the identification command > to explicitly allocate page-aligned buffers. Even though the spec > seems to allow having admin queue commands on non page-aligned > buffers, it seems to not be possible on

Re: [U-Boot] Using MinGW gcc cross-compiling host tools for Windows broken

2019-10-15 Thread Bin Meng
Hi Peter, On Tue, Oct 15, 2019 at 10:44 AM Peter Tyser wrote: > > Hi Bin, > > - Original Message - > > From: "Bin Meng" > > To: "ptyser" , "Vladimir Yakovlev" , > > "Mike Frysinger" , "Remy > > Bohmer"

[U-Boot] Using MinGW gcc cross-compiling host tools for Windows broken

2019-10-14 Thread Bin Meng
Hi Peter, I noticed that you were the first one that added support to build native Win32 tools using MinGW GCC via: commit 2f8d396b9302eddcd8d552648e101a46b7a80acd Author: Peter Tyser Date: Fri Mar 13 18:54:51 2009 -0500 Add support for building native win32 tools Add support for

Re: [U-Boot] [PATCH v2 1/4] dm: spi: Return 0 if driver does not implement ops->cs_info

2019-10-13 Thread Bin Meng
On Tue, Oct 8, 2019 at 8:59 PM Bin Meng wrote: > > On Sun, Sep 29, 2019 at 4:04 PM Bin Meng wrote: > > > > Hi Jagan, > > > > On Mon, Sep 9, 2019 at 9:00 PM Bin Meng wrote: > > > > > > If an SPI controller driver does not implement ops->cs_inf

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

2019-10-13 Thread Bin Meng
Hi Simon, On Sun, Oct 13, 2019 at 1:55 AM Simon Glass wrote: > > 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, >

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

2019-10-13 Thread Bin Meng
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, > > > > On Sat, Oct 12, 2019 at 11:38 AM Simon Glass wrote: > > > > > > Hi Bin, >

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

2019-10-13 Thread Bin Meng
Hi Simon, On Sun, Oct 13, 2019 at 11:03 PM Simon Glass wrote: > > 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 d

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

2019-10-11 Thread Bin Meng
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, > > > > On Fri, Oct 11, 2019 at 1:06 AM Simon Glass wrote: > > > > > > Hi Bin, &g

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

2019-10-11 Thread Bin Meng
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, > > > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > > > Newer Intel SoCs have diff

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

2019-10-11 Thread Bin Meng
Hi Simon, On Sat, Oct 12, 2019 at 11:38 AM Simon Glass wrote: > > 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 acc

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

2019-10-11 Thread Bin Meng
Hi Simon, On Sat, Oct 12, 2019 at 11:08 AM Simon Glass wrote: > > 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 x8

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

2019-10-11 Thread Bin Meng
Hiblot > Updated to use sandbox_set_enable_memio(): > Signed-off-by: Simon Glass > --- > > test/dm/regmap.c | 19 --- > 1 file changed, 16 insertions(+), 3 deletions(-) > Reviewed-by: Bin Meng Tested-by: Bin Meng ___ U

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

2019-10-11 Thread Bin Meng
ff-by: Simon Glass > --- > > drivers/core/regmap.c | 2 +- > include/regmap.h | 3 ++- > 2 files changed, 3 insertions(+), 2 deletions(-) > Reviewed-by: Bin Meng ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

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

2019-10-11 Thread Bin Meng
gned-off-by: Simon Glass > --- > > include/test/ut.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > Reviewed-by: Bin Meng ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

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

2019-10-11 Thread Bin Meng
On Sat, Oct 12, 2019 at 6:22 AM Simon Glass wrote: > > 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(+)

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

2019-10-11 Thread Bin Meng
see whether it generates warning somewhere. Reviewed-by: Bin Meng ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] Please pull u-boot-x86

2019-10-11 Thread Bin Meng
:44 +0800) Bin Meng (1): binman: Use qemu-x86_defconfig in the example Simon Glass (8): x86: Panic when SPL or TPL fail sandbox: pci: Remember the device being emulated trace: Remove the const from write

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

2019-10-11 Thread Bin Meng
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, > > > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > > > Most of the timer-c

Re: [U-Boot] [PATCH 093/126] x86: Allow interrupt to happen once

2019-10-11 Thread Bin Meng
Hi Simon, On Fri, Oct 11, 2019 at 4:35 PM Bin Meng wrote: > > On Thu, Oct 10, 2019 at 5:26 PM Bin Meng wrote: > > > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > > > At present the interrupt table is included in all phases of U-Boot. Allow

Re: [U-Boot] [PATCH] MAINTAINERS: Update ARM entry

2019-10-11 Thread Bin Meng
ress is no longer available. Reviewed-by: Bin Meng ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 105/126] x86: Reduce resetvec size

2019-10-11 Thread Bin Meng
On Thu, Oct 10, 2019 at 3:12 PM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 11:02 PM Simon Glass wrote: > > > > At present this produces a 16-byte file. It is intended to start 16 bytes > > before the end of ROM and pads with zeroes to readh the end. > > > &g

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

2019-10-11 Thread Bin Meng
On Fri, Oct 11, 2019 at 1:06 AM Simon Glass wrote: > > On Wed, 2 Oct 2019 at 19:07, Bin Meng wrote: > > > > The doc currently uses sandbox_defconfig as examples of enabling > > debug/verbose output of binman. However during a sandbox build it > > does not call bi

Re: [U-Boot] [PATCH 099/126] x86: Drop RESET_SEG_SIZE

2019-10-11 Thread Bin Meng
On Thu, Oct 10, 2019 at 5:57 PM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > This is not used anywhere now, so drop it. > > > > Signed-off-by: Simon Glass > > --- > > > > arch/x86/Kconfig | 5 - > &

Re: [U-Boot] [PATCH 098/126] x86: Drop RESET_BASE

2019-10-11 Thread Bin Meng
On Thu, Oct 10, 2019 at 5:56 PM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > Since x86 users binman now, we don't need this compile-time define. > > > > Signed-off-by: Simon Glass > > --- > > > > arch/x86/cpu

Re: [U-Boot] [PATCH 093/126] x86: Allow interrupt to happen once

2019-10-11 Thread Bin Meng
On Thu, Oct 10, 2019 at 5:26 PM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > At present the interrupt table is included in all phases of U-Boot. Allow > > it to be omitted, e.g. in TPL, to reduce size. > > > > Signed-off-by

Re: [U-Boot] [PATCH 090/126] x86: Update Kconfig options for FSP1

2019-10-11 Thread Bin Meng
On Thu, Oct 10, 2019 at 5:19 PM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > Many of the Kconfig options do not apply to FSP2. Update them to use the > > FSP_VERSION1 condition instead. > > > > Signed-off-by: Simon Glass &g

Re: [U-Boot] [PATCH 080/126] x86: Add a function to find the size of an mrccache record

2019-10-11 Thread Bin Meng
On Thu, Oct 10, 2019 at 1:09 PM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > > > Move the code to determine the size of a cache record into a function so > > we can use it elsewhere in this file. > > > > Signed-off-by: Simon

Re: [U-Boot] [PATCH 073/126] trace: Remove the const from write functions

2019-10-11 Thread Bin Meng
On Thu, Oct 10, 2019 at 11:20 AM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > The write functions do actually change the contents of memory so it is not > > correct to use 'const'. Remove it. > > > > Signed-off-by: Simon Glas

Re: [U-Boot] [PATCH 069/126] sandbox: pci: Remember the device being emulated

2019-10-11 Thread Bin Meng
On Wed, Oct 9, 2019 at 10:27 PM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > Add a field to the PCI emulator per-device data which records which device > > is being emulated. This is useful when the emulator needs to check the

Re: [U-Boot] [PATCH 067/126] x86: Panic when SPL or TPL fail

2019-10-10 Thread Bin Meng
On Wed, Oct 9, 2019 at 10:02 PM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > At present when these fail to boot there is no message, just a hang. Add a > > panic so it is obvious that something when wrong. > >

Re: [U-Boot] [PATCH 102/126] x86: Update .dtsi file for FSP2

2019-10-10 Thread Bin Meng
Hi Simon, On Wed, Sep 25, 2019 at 11:02 PM Simon Glass wrote: > > Include the IFWI section and the FSP-M binary. The FSP-T binary is not > currently used, as CAR is set up manually. > > Also drop the FSP binary as this relates only to FSP1. > > Signed-off-by: Simon Glass > --- > >

Re: [U-Boot] [PATCH 101/126] x86: Use fsp command with FSP1

2019-10-10 Thread Bin Meng
Hi Simon, On Wed, Sep 25, 2019 at 11:02 PM Simon Glass wrote: > > The current 'fsp' command only works with FSP1. Update it to avoid trying > to build it with FSP2. > > Signed-off-by: Simon Glass > --- > > cmd/x86/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [U-Boot] [PATCH 100/126] x86: Disable microcode section for FSP2

2019-10-10 Thread Bin Meng
Hi Simon, On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > At present we don't support loading microcode with FSP2. The correct way > to do this is by adding it to the FIT. For now, disable including > microcode in the image. > > Signed-off-by: Simon Glass > --- > > arch/x86/Kconfig

Re: [U-Boot] [PATCH 099/126] x86: Drop RESET_SEG_SIZE

2019-10-10 Thread Bin Meng
On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > This is not used anywhere now, so drop it. > > Signed-off-by: Simon Glass > --- > > arch/x86/Kconfig | 5 - > arch/x86/cpu/config.mk | 1 - > 2 files changed, 6 deletions(

Re: [U-Boot] [PATCH 098/126] x86: Drop RESET_BASE

2019-10-10 Thread Bin Meng
On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > Since x86 users binman now, we don't need this compile-time define. > > Signed-off-by: Simon Glass > --- > > arch/x86/cpu/config.mk | 1 - > 1 file changed, 1 deletion(-)

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

2019-10-10 Thread Bin Meng
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 options. > I wonder why do we need do this in U-Boot. Isn't FSP-T doing the CAR for us? >

Re: [U-Boot] [PATCH 096/126] x86: Add an option to include a FIT

2019-10-10 Thread Bin Meng
Hi Simon, On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > Many Intel SoCs require a FIT in order to boot properly. Add an option to > include this and enable it by default. > > Signed-off-by: Simon Glass > --- > > arch/x86/Kconfig | 9 + > arch/x86/dts/u-boot.dtsi | 6

Re: [U-Boot] [PATCH 095/126] x86: Don't include the BIOS emulator in TPL

2019-10-10 Thread Bin Meng
On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > We don't generally have enough space to run this, so don't build it into > TPL. This helps reduce the size of TPL. > > Signed-off-by: Simon Glass > --- > > arch/x86/lib/Makefile | 2 ++ > 1 file changed, 2 insert

Re: [U-Boot] [PATCH 093/126] x86: Allow interrupt to happen once

2019-10-10 Thread Bin Meng
1 insertion(+), 1 deletion(-) > Reviewed-by: Bin Meng ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 092/126] x86: Allow removal of standard PCH drivers

2019-10-10 Thread Bin Meng
--- a/drivers/pch/Makefile > +++ b/drivers/pch/Makefile > @@ -1,6 +1,6 @@ > # SPDX-License-Identifier: GPL-2.0+ > > obj-y += pch-uclass.o > -obj-y += pch7.o > -obj-y += pch9.o > +obj-$(CONFIG_X86_PCH7) += pch7.o > +obj-$(CONFIG_X86_PCH9) += pch9.o > obj-$(CONF

Re: [U-Boot] [PATCH 091/126] x86: Don't imply TPL_OF_LIBFDT

2019-10-10 Thread Bin Meng
| 1 - > 1 file changed, 1 deletion(-) > Reviewed-by: Bin Meng But let's wait for custodians to reach an agreement of SPL / TPL boot order. Regards, Bin ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 090/126] x86: Update Kconfig options for FSP1

2019-10-10 Thread Bin Meng
insertions(+), 7 deletions(-) > Reviewed-by: Bin Meng ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

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

2019-10-10 Thread Bin Meng
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/lib/fsp/fsp_dram.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/x86/lib/fsp/fsp_dram.c

Re: [U-Boot] [PATCH 088/126] x86: Set the DRAM banks to reflect real location

2019-10-10 Thread Bin Meng
> 1 file changed, 31 insertions(+), 1 deletion(-) > Reviewed-by: Bin Meng ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 087/126] x86: Move fsp_prepare_mrc_cache() to fsp1 directory

2019-10-10 Thread Bin Meng
; arch/x86/include/asm/fsp/fsp_support.h | 7 --- > arch/x86/lib/fsp/fsp_common.c | 20 > arch/x86/lib/fsp1/fsp_common.c | 20 > 3 files changed, 20 insertions(+), 27 deletions(-) > Reviewed-by: Bin Meng ___

Re: [U-Boot] [PATCH 086/126] x86: Add mrccache support for a 'variable' cache

2019-10-10 Thread Bin Meng
Hi Simon, On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > Add support for a second cache type, for apollolake. > > Signed-off-by: Simon Glass > --- > > arch/x86/include/asm/mrccache.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/x86/include/asm/mrccache.h

Re: [U-Boot] [PATCH 085/126] x86: Update mrccache to support multiple caches

2019-10-10 Thread Bin Meng
Hi Simon, On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > With apollolake we need to support a normal cache, which almost never > changes and a much smaller 'variable' cache which changes every time. > > Update the code to add a cache type, use an array for the caches and use a > for

Re: [U-Boot] [PATCH 105/126] x86: Reduce resetvec size

2019-10-10 Thread Bin Meng
Furthermore binman automatically pads the data if it is finishes early. > > Drop the padding in resetvec and let binman handle it. > > Signed-off-by: Simon Glass > --- > > arch/x86/cpu/resetvec.S | 3 --- > 1 file changed, 3 deletions(-) > Reviewed-by: Bin Meng _

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

2019-10-10 Thread Bin Meng
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 > --- > > arch/x86/cpu/u-boot-spl.lds | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git

Re: [U-Boot] [PATCH 084/126] x86: Tidy up error handling in mrccache_save()

2019-10-10 Thread Bin Meng
ot. > > Signed-off-by: Simon Glass > --- > > arch/x86/lib/mrccache.c | 17 ++--- > 1 file changed, 6 insertions(+), 11 deletions(-) > Reviewed-by: Bin Meng ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 083/126] x86: Add a new global_data member for the cache record

2019-10-10 Thread Bin Meng
gned-off-by: Simon Glass > --- > > arch/x86/include/asm/global_data.h | 2 ++ > arch/x86/lib/mrccache.c| 11 +-- > 2 files changed, 7 insertions(+), 6 deletions(-) > Reviewed-by: Bin Meng ___ U-Boot mailing list U-Boot@list

Re: [U-Boot] [PATCH 082/126] x86: Adjust mrccache_get_region() to use livetree

2019-10-10 Thread Bin Meng
Hi Simon, On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > Change the algorithm to first find the flash device then read the > properties using the livetree API. With this change the device is not > probed so this needs to be done in mrccache_save(). > > Signed-off-by: Simon Glass > ---

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

2019-10-10 Thread Bin Meng
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. This problem was not > seen before due to the alignment of the relatively small amount of MRC > data. >

Re: [U-Boot] [PATCH 080/126] x86: Add a function to find the size of an mrccache record

2019-10-09 Thread Bin Meng
changed, 8 insertions(+), 7 deletions(-) > Reviewed-by: Bin Meng ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

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

2019-10-09 Thread Bin Meng
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. Reduce it so it will be more But this will break for SPI-flash erase size that is not 256 bytes? > efficient with

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

2019-10-09 Thread Bin Meng
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 space. The space is > segmented into different channels and peripherals are accessed by > device-specific

Re: [U-Boot] [PATCH 073/126] trace: Remove the const from write functions

2019-10-09 Thread Bin Meng
13 ++--- > 2 files changed, 9 insertions(+), 10 deletions(-) > Reviewed-by: Bin Meng ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

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

2019-10-09 Thread Bin Meng
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 for this, with a few > useful operations. > I don't like to create another x86 specific uclass for this

Re: [U-Boot] [PATCH 076/126] x86: Add a uclass for ITSS

2019-10-09 Thread Bin Meng
Hi Simon, On Wed, Sep 25, 2019 at 10:59 PM Simon Glass wrote: > > This models some sort of interrupt thingy but there are so many > abreviations that I cannot find out what it stands for. It is something > to do with interrupts. > After I read the ApolloLake datasheet, the ITSS contains the

Re: [U-Boot] [PATCH 069/126] sandbox: pci: Remember the device being emulated

2019-10-09 Thread Bin Meng
t_emul(struct udevice *bus, pci_dev_t find_devfn, > struct udevice **containerp, struct udevice **emulp); > > +/** > + * sandbox_pci_get_client() - Find the client for an emulation device > + * > + * @emul: Emulation device to check > + * @devp: Re

Re: [U-Boot] [PATCH 068/126] x86: tpl: Add a fake PCI bus

2019-10-09 Thread Bin Meng
Hi Simon, On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > In TPL we try to minimise code size so do not include the PCI subsystem. > We can use fixed BARs and drivers can directly program the devices that > they need. > > However we do need to bind the devices on the PCI bus and without

Re: [U-Boot] [PATCH 067/126] x86: Panic when SPL or TPL fail

2019-10-09 Thread Bin Meng
lib/tpl.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Bin Meng ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

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

2019-10-09 Thread Bin Meng
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 since there are no > operations needed. > > Signed-off-by: Simon Glass > --- > >

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

2019-10-09 Thread Bin Meng
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. > > Add a new SPI flash method to find the location of the SPI flash in > memory. This differs from the

Re: [U-Boot] [PATCH v2 13/38] spi: sandbox: Add a test driver for sandbox SPI flash

2019-10-09 Thread Bin Meng
Hi Simon, On Wed, Sep 25, 2019 at 10:12 PM Simon Glass wrote: > > At present SPI-flash testing relies on a sandbox driver which emulates the > SPI bus and implements a flash chip behind that emulated bus. > > This provides good coverage but can only implement features supported by > the SPI bus.

Re: [U-Boot] [PATCH v2 12/38] x86: spi: Add a driver for the Intel Fast SPI interface

2019-10-09 Thread Bin Meng
Hi Simon, On Wed, Sep 25, 2019 at 10:12 PM Simon Glass wrote: > > This provides access to SPI flash both through a read-only memory map and > with operations to erase and write flash. It supports 4KB or 64KB erase > sizes. > I read the SPI controller chapter in the datasheet of apollolake as

Re: [U-Boot] [PATCH] RISC-V: Align boot image header with Linux.

2019-10-08 Thread Bin Meng
On Wed, Oct 9, 2019 at 9:15 AM Atish Patra wrote: > nits: please remove the ending period in the commit summary > The release linux boot image header in v5.3 is different from the nits: Linux > one present in U-boot. Align the header with the new version. The nits: U-Boot > changes in Linux

Re: [U-Boot] [PATCH v2 1/4] dm: spi: Return 0 if driver does not implement ops->cs_info

2019-10-08 Thread Bin Meng
On Sun, Sep 29, 2019 at 4:04 PM Bin Meng wrote: > > Hi Jagan, > > On Mon, Sep 9, 2019 at 9:00 PM Bin Meng wrote: > > > > If an SPI controller driver does not implement ops->cs_info, that > > probably means any chip select number could be valid, hence l

Re: [U-Boot] [ANN] U-Boot v2019.10 released

2019-10-08 Thread Bin Meng
On Tue, Oct 8, 2019 at 8:36 PM Tom Rini wrote: > > On Tue, Oct 08, 2019 at 02:20:40PM +0200, Michal Simek wrote: > > On 07. 10. 19 23:15, Tom Rini wrote: > > > Hey all, > > > > > > It's release day and while we've once again had some last minute > > > regression fixes, I feel things are as stable

[U-Boot] Please pull u-boot-x86

2019-10-08 Thread Bin Meng
Hi Tom, This PR includes the following changes for v2020.01: - Rename existing FSP code to fsp1 - Add fsp2 directory in preparation to support FSP 2.0 - Various x86 platform codes update - Various bug fixes and updates in dm core, sandbox and spl GitLab CI passed

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

2019-10-07 Thread Bin Meng
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: > > > > > > At present libfdt is included in SPL/TPL if SPL/TPL_OF_CONTROL is enabled

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

2019-10-07 Thread Bin Meng
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, > > > > On Wed, 25 Sep 2019 at 08:58, Simon Glass wrote: > > > > > > Apollolake is an Int

Re: [U-Boot] Pull request for UEFI sub-system for efi-2020-01-rc1

2019-10-07 Thread Bin Meng
Hi Tom, On Mon, Oct 7, 2019 at 10:15 PM Tom Rini wrote: > > On Sun, Oct 06, 2019 at 11:13:21PM +0200, Heinrich Schuchardt wrote: > > > The following changes since commit dac51e9aaf6fd38298007b266feb6a80e9ec91ee: > > > > Merge branch 'master' of git://git.denx.de/u-boot-sh (2019-10-05 > >

Re: [U-Boot] [PATCH 065/126] x86: Use mtrr_commit() with FSP2

2019-10-07 Thread Bin Meng
On Mon, Oct 7, 2019 at 9:53 PM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > With FSP2 we use MTRRs in U-Boot proper even though the 32-bit init > > happens in TPL. Enable this, using a variable to try to make the > > conditions

Re: [U-Boot] [PATCH 062/126] x86: Add a function to set variable MTRRs

2019-10-07 Thread Bin Meng
On Mon, Oct 7, 2019 at 9:53 PM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > Normally U-Boot handles MTRRs through an add/commit process which > > overwrites all MTRRs. But in very early boot it is not desirable to clear > > the

Re: [U-Boot] [PATCH 064/126] x86: cpu: Don't include the cpu driver in TPL

2019-10-07 Thread Bin Meng
On Mon, Oct 7, 2019 at 9:53 PM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > We don't need this driver very early in boot and it adds code size. Drop > > it. > > > > Signed-off-by: Simon Glass > > --- > > > >

Re: [U-Boot] [PATCH 061/126] x86: Refactor mtrr_commit() to allow for shared code

2019-10-07 Thread Bin Meng
On Mon, Oct 7, 2019 at 9:53 PM Bin Meng wrote: > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > > > Move the code that actually sets up the MTRR into another function so it > > can be used elsewhere in the file. > > > > Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH 064/126] x86: cpu: Don't include the cpu driver in TPL

2019-10-07 Thread Bin Meng
On Wed, Sep 25, 2019 at 10:58 PM Simon Glass wrote: > > We don't need this driver very early in boot and it adds code size. Drop > it. > > Signed-off-by: Simon Glass > --- > > arch/x86/cpu/Makefile | 5 - > 1 file changed, 4 insertions(+), 1 deletion(

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

2019-10-07 Thread Bin Meng
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 functions to > handle this. > > Signed-off-by: Simon Glass > --- > > arch/x86/cpu/pci.c | 18

Re: [U-Boot] [PATCH 065/126] x86: Use mtrr_commit() with FSP2

2019-10-07 Thread Bin Meng
x86/lib/init_helpers.c | 22 +++--- > 1 file changed, 15 insertions(+), 7 deletions(-) > Reviewed-by: Bin Meng ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 062/126] x86: Add a function to set variable MTRRs

2019-10-07 Thread Bin Meng
+ * @size: Size > + * @return 0 on success, -ENOSPC if there are no more MTRRs > + */ > +int mtrr_set_next_var(uint type, uint64_t base, uint64_t size); > + > #endif > > #if ((CONFIG_XIP_ROM_SIZE & (CONFIG_XIP_ROM_SIZE - 1)) != 0) > -- Other than above, Reviewed-by: Bin Meng ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 061/126] x86: Refactor mtrr_commit() to allow for shared code

2019-10-07 Thread Bin Meng
hanged, 12 insertions(+), 7 deletions(-) > Reviewed-by: Bin Meng ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

  1   2   3   4   5   6   7   8   9   10   >