[U-Boot] [GIT PULL] Kconfig changes

2018-07-29 Thread Michal Simek
Hi Tom, I have put together that CMD_DM enabling we have discussed (and small Kconfig changes). I have rebased it on Friday and travis also looks good. https://travis-ci.org/michalsimek/u-boot/builds/408812930 There will be more and more collisions when new stuff is coming that's why please consi

[U-Boot] [PATCH] configs: omap3_logic: Disable NAND ID during SPL

2018-07-29 Thread Adam Ford
For these boards, the GPMC timings are more determined by processor speed/type than the NAND/PoP memory. This code is never invoked, so disable the config option, so it doesn't take the time to compile it in. Signed-off-by: Adam Ford diff --git a/configs/omap3_logic_defconfig b/configs/omap3_lo

[U-Boot] [PATCH] configs: omap: Remove dead config CONFIG_SYS_NAND_ADDR

2018-07-29 Thread Adam Ford
CONFIG_SYS_NAND_ADDR is defined and never referenced. This patch removes the dead code. Signed-off-by: Adam Ford --- include/configs/am3517_crane.h | 2 -- include/configs/am3517_evm.h| 2 -- include/configs/cm_t35.h| 2 -- include/configs/cm_t3517.h | 2 -- include/configs/dev

[U-Boot] [PATCH v2 17/21] pci: sandbox: emul: Rename priv structure

2018-07-29 Thread Bin Meng
We have "struct sandbox_pci_priv" in pci_sandbox driver. To avoid confusion, rename the emul's priv to "struct sandbox_pci_emul_priv". Signed-off-by: Bin Meng --- Changes in v2: None drivers/pci/pci-emul-uclass.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drive

[U-Boot] [PATCH v2 21/21] test: dm: pci: Add cases for finding PCI capability APIs

2018-07-29 Thread Bin Meng
Add several PCI capability and extended capability ID registers in the swap_case driver, so that we can add test case for dm_pci_find_capability() and dm_pci_find_ext_capability(). Signed-off-by: Bin Meng --- Changes in v2: None arch/sandbox/include/asm/test.h | 8 drivers/misc/swap

[U-Boot] [PATCH v2 20/21] dm: pci: Add APIs to find capability and extended capability

2018-07-29 Thread Bin Meng
This introduces two new APIs dm_pci_find_capability() and dm_pci_find_ext_capability() to get PCI capability address and PCI express extended capability address for a given PCI device. Signed-off-by: Bin Meng --- Changes in v2: - Mask header_type with 0x7f drivers/pci/pci-uclass.c | 68 ++

[U-Boot] [PATCH v2 11/21] pci: sandbox: emul: Fix the call to pci_bus_find_devfn()

2018-07-29 Thread Bin Meng
With the newly added test cases for PCI configuration access, we get: => ut dm pci_busdev Test: dm_test_pci_busdev: pci.c test/dm/pci.c:49, dm_test_pci_busdev(): SANDBOX_PCI_VENDOR_ID == vendor: Expected 4660, got 65535 Test: dm_test_pci_busdev: pci.c (flat tree) test/dm/pci.c:49, dm_t

[U-Boot] [PATCH v2 13/21] pci: sandbox: Support dynamically binding device driver

2018-07-29 Thread Bin Meng
At present all emulated sandbox pci devices must be present in the device tree in order to be used. The real world pci uclass driver supports pci device driver matching, and we should add such support on sandbox too. Signed-off-by: Bin Meng --- Changes in v2: None doc/driver-model/pci-info.txt

[U-Boot] [PATCH v2 14/21] pci: sandbox: swap_case: Declare dynamic driver matching

2018-07-29 Thread Bin Meng
This adds a U_BOOT_PCI_DEVICE() declaration to the swap_case driver. Signed-off-by: Bin Meng --- Changes in v2: None arch/sandbox/include/asm/test.h | 4 drivers/misc/swap_case.c| 7 +++ 2 files changed, 11 insertions(+) diff --git a/arch/sandbox/include/asm/test.h b/arch/san

[U-Boot] [PATCH v2 15/21] sandbox: Update test.dts for dynamic PCI device driver matching

2018-07-29 Thread Bin Meng
Signed-off-by: Bin Meng --- Changes in v2: None arch/sandbox/dts/test.dts | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index 0bce6d0..44d24f9 100644 --- a/arch/sandbox/dts/test.dts +++ b/arch/sandbox/

[U-Boot] [PATCH v2 16/21] test: dm: pci: Test driver binding with driver data provided

2018-07-29 Thread Bin Meng
With struct pci_device_id, it's possible to pass a driver data for bound driver to use. This adds a test case for this functionality. Signed-off-by: Bin Meng --- Changes in v2: None test/dm/pci.c | 17 + 1 file changed, 17 insertions(+) diff --git a/test/dm/pci.c b/test/dm/pci

[U-Boot] [PATCH v2 18/21] test: dm: pci: Add tests for mixed static and dynamic devices on the same bus

2018-07-29 Thread Bin Meng
In the Sandbox test configuration, PCI bus#0 only has static devices while bus#1 only has dynamic devices. Create a bus#2 that has both types of devices and test such. Signed-off-by: Bin Meng --- Changes in v2: None arch/sandbox/dts/test.dts | 18 ++ test/dm/pci.c | 63

[U-Boot] [PATCH v2 12/21] dm: pci: Assign correct driver data when binding a driver

2018-07-29 Thread Bin Meng
The correct driver data comes from the matching 'id' instead of 'find_id' in pci_find_and_bind_driver(). Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: None drivers/pci/pci-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/pci-uclass

[U-Boot] [PATCH v2 08/21] pci: sandbox: swap_case: Preserve space indicator bit in BAR registers

2018-07-29 Thread Bin Meng
With the newly added testing of more than one device, we get: => ut dm pci_swapcase Test: dm_test_pci_swapcase: pci.c test/dm/pci.c:88, dm_test_pci_swapcase(): "tHIS IS A tESt" = ptr: Expected "tHIS IS A tESt", got "this is a test" Test: dm_test_pci_swapcase: pci.c (flat tree) test/dm/

[U-Boot] [PATCH v2 19/21] pci: Add all known capability and extended capability ids

2018-07-29 Thread Bin Meng
Currently we don't have a complete list of capability and extended capability ids. This adds them. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: None include/pci.h | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/include/pci.h b/in

[U-Boot] [PATCH v2 07/21] test: dm: pci: Test more than one device on the same bus

2018-07-29 Thread Bin Meng
It's quite common to have more than one device on the same PCI bus. This updates the test case to test such scenario. Signed-off-by: Bin Meng --- Changes in v2: None arch/sandbox/dts/test.dts | 7 +++ test/dm/pci.c | 37 + 2 files changed, 4

[U-Boot] [PATCH v2 09/21] test: dm: pci: Test more than one PCI host controller

2018-07-29 Thread Bin Meng
So far there is only one PCI host controller in the sandbox test configuration. This is normally the case for x86, but it can be common on other architectures like ARM/PPC to have more than one PCI host controller in the system. This updates the case to cover such scenario. Signed-off-by: Bin Men

[U-Boot] [PATCH v2 10/21] test: dm: pci: Add tests for configuration space access

2018-07-29 Thread Bin Meng
So far we missed the testing for PCI configuration space access. Signed-off-by: Bin Meng --- Changes in v2: None test/dm/pci.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/test/dm/pci.c b/test/dm/pci.c index 727ec34..089b72e 100644 --- a/test/dm

[U-Boot] [PATCH v2 06/21] test: dm: pci: Remove unnecessary steps in dm_test_pci_swapcase()

2018-07-29 Thread Bin Meng
The check on uclass_get_device() and device_active() is unnecessary as the follow-up test operations will implicitly probe the driver. Signed-off-by: Bin Meng --- Changes in v2: None test/dm/pci.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/dm/pci.c b/test/dm/pc

[U-Boot] [PATCH v2 03/21] dm: core: Add ofnode function to read PCI vendor and device id

2018-07-29 Thread Bin Meng
We don't have the live-tree version of fdtdec_get_pci_vendev(). This adds the API. Signed-off-by: Bin Meng --- Changes in v2: None drivers/core/ofnode.c | 36 include/dm/ofnode.h | 13 + 2 files changed, 49 insertions(+) diff --git a/drivers/

[U-Boot] [PATCH v2 04/21] dm: pci: Extract vendor/device id in child_post_bind()

2018-07-29 Thread Bin Meng
Currently only devfn is extracted in child_post_bind(). Now that we have the live-tree version API to look up PCI vendor and device id from the compatible string, let's extract and save them too. Signed-off-by: Bin Meng --- Changes in v2: None drivers/pci/pci-uclass.c | 11 +-- 1 file

[U-Boot] [PATCH v2 05/21] dm: pci: Fix scanning multi-function device

2018-07-29 Thread Bin Meng
The flag to control whether to scan multi-function device during enumeration should be cleared at the beginning of each iteration if the device's function number equals to zero. Signed-off-by: Bin Meng --- Changes in v2: None drivers/pci/pci-uclass.c | 2 ++ 1 file changed, 2 insertions(+) di

[U-Boot] [PATCH v2 01/21] pci: Remove 440ep specific macros

2018-07-29 Thread Bin Meng
These macros should not be put in the generic pci.h header file. Since they are not referenced anywhere, remove them completely. Signed-off-by: Bin Meng --- Changes in v2: None include/pci.h | 15 --- 1 file changed, 15 deletions(-) diff --git a/include/pci.h b/include/pci.h index

[U-Boot] [PATCH v2 02/21] dm: Correct typos in uclass_first/next_device_check()

2018-07-29 Thread Bin Meng
Correct typos in the comment block of uclass_first/next_device_check(). Signed-off-by: Bin Meng --- Changes in v2: None include/dm/uclass.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/dm/uclass.h b/include/dm/uclass.h index 9fbaa7d..0e882ce 100644 --- a/incl

[U-Boot] [PATCH v2 00/21] dm: pci: Various fixes and test cases update

2018-07-29 Thread Bin Meng
This fixes several bugs in dm pci driver, as well as updating test cases running on Sandbox to test dm pci. It turns out adding test cases for v1 (3 commits) reveals more design limitations/bugs of sandbox pci driver. Now the v2 series contains 20+ patches! This series is available for testing at

Re: [U-Boot] [linux-sunxi] [PATCH v2 00/13] Allwinner H6 support (w/ SPL)

2018-07-29 Thread Icenowy Zheng
在 2018-07-27五的 18:48 +0530,Jagan Teki写道: > On Thu, Jul 26, 2018 at 12:35 PM, Icenowy Zheng > wrote: > > > > > > 于 2018年7月26日 GMT+08:00 下午3:02:50, Jagan Teki < > > ja...@amarulasolutions.com> 写到: > > > On Sat, Jul 21, 2018 at 1:50 PM, Icenowy Zheng > > > wrote: > > > > This patchset trys to add

[U-Boot] [PATCH 1/1] efi_loader: document runtime functions

2018-07-29 Thread Heinrich Schuchardt
Add comments for runtime service functions. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_runtime.c | 153 ++- 1 file changed, 149 insertions(+), 4 deletions(-) diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c index 351db8d8ed5

Re: [U-Boot] [BUG] qemu-x86_defconfig does not build with GCC 8.1

2018-07-29 Thread Heinrich Schuchardt
On 07/29/2018 02:40 AM, Bin Meng wrote: > Hi Heinrich, > > On Sat, Jul 28, 2018 at 11:42 PM, Heinrich Schuchardt > wrote: >> Debian Buster has upgraded gcc to version 8.1. > > Do you know any pre-built gcc 8.1 that can be used on other > distributions than Debian Buster, so that I can take a loo

[U-Boot] [PATCH 1/1] doc: README.iscsi: make compatible with restructured text

2018-07-29 Thread Heinrich Schuchardt
The Sphinx documentation system uses restructured text. Make the README.iscsi file compatible. Signed-off-by: Heinrich Schuchardt --- doc/README.iscsi | 130 +-- 1 file changed, 68 insertions(+), 62 deletions(-) diff --git a/doc/README.iscsi b/doc/REA

[U-Boot] [PATCH 1/1] doc: add structure to Sphinx generated docs

2018-07-29 Thread Heinrich Schuchardt
Create separate html pages for linker lists, the serial subsystem, and the EFI subsystem. Add a table of content. Signed-off-by: Heinrich Schuchardt --- Documentation/efi.rst | 16 + Documentation/index.rst| 122 +++-- Documentation/linker_lists

Re: [U-Boot] [PATCH] env: common: load read-only variables after reset

2018-07-29 Thread Yaniv Levinsky
Hello Wolfgang, On 07/28/2018 03:56 PM, Wolfgang Denk wrote: > Dear Yaniv, > > In message <20180727153444.5602-1-yaniv.levin...@compulab.co.il> you wrote: >> U-Boot fails to load read-only variables from storage after a reset. It >> happens because the environment hash table prevents creating rea

[U-Boot] [PATCH 1/1] README: U_BOOT_ENV_CALLBACK functions

2018-07-29 Thread Heinrich Schuchardt
Describe the interface of environment variable callback functions. Signed-off-by: Heinrich Schuchardt --- README | 11 +++ 1 file changed, 11 insertions(+) diff --git a/README b/README index aee0f7371c4..179d6d74a4a 100644 --- a/README +++ b/README @@ -3943,6 +3943,17 @@ If CONFIG_REGEX

[U-Boot] [PATCH 1/1] drivers: serial: document on_baudrate()

2018-07-29 Thread Heinrich Schuchardt
Add parameter description. Signed-off-by: Heinrich Schuchardt --- drivers/serial/serial.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c index 63b232b536c..c84fd83f210 100644 --- a/drivers/serial/serial.c +++ b/drivers/serial/serial.

[U-Boot] [PATCH] ARC: AXS10x/HSDK: Use our own version of mkimage

2018-07-29 Thread Alexey Brodkin
Since U-Boot tools are being built anyways it's much nicer to use them instead of relying on some of them bein installed on build host (which might easily not be the case). Signed-off-by: Alexey Brodkin --- board/synopsys/axs10x/config.mk | 2 +- board/synopsys/hsdk/config.mk | 2 +- 2 files c

Re: [U-Boot] [PATCH v4 1/2] lib: crc32: mark function crc32() as __efi_runtime

2018-07-29 Thread Bin Meng
Hi Heinrich, On Sun, Jul 29, 2018 at 3:49 PM, Heinrich Schuchardt wrote: > The function crc32() is needed by the EFI subsystem at runtime. So it has > to be linked into the runtime section together with all dependencies. > > Eliminate empty defines local and ZEXPORT. > > Mark variables as static

[U-Boot] [PATCH v4 2/2] efi_loader: update runtime services table crc32

2018-07-29 Thread Heinrich Schuchardt
The crc32 of the runtime services table must be updated after detaching. efi_update_table_header_crc32() must be __efi_runtime. So move it to efi_runtime.c Signed-off-by: Heinrich Schuchardt --- v3 new patch v4: rebase on current master --- include/efi_loader.h | 3 +++

[U-Boot] [PATCH v4 1/2] lib: crc32: mark function crc32() as __efi_runtime

2018-07-29 Thread Heinrich Schuchardt
The function crc32() is needed by the EFI subsystem at runtime. So it has to be linked into the runtime section together with all dependencies. Eliminate empty defines local and ZEXPORT. Mark variables as static which are not exported. Signed-off-by: Heinrich Schuchardt --- v4: put all

[U-Boot] [PATCH v4 0/2] efi_loader: correctly initialize system table crc32

2018-07-29 Thread Heinrich Schuchardt
Update the crc32 of the runtime services table when detaching. Travis results where ok except for two file size limits exceeded: https://travis-ci.org/xypron2/u-boot/builds/409390055 v4: Remove patches accepted for efi-next Rebase on current master Do not put functions int

[U-Boot] [PATCH] ARC: Enable unaligned access in hardware if compiler uses it

2018-07-29 Thread Alexey Brodkin
Even if ARC core might handle unaligned access to data this hardware feature by default is disabled. But GCC starting from 8.1.0 unconditionally uses it for ARC HS cores. Which leads to quite strange and fatal run-time failures like the one below if HW is not configured properly: | hsdk# sf probe

Re: [U-Boot] [PULL] efi patch queue 2018-07-25

2018-07-29 Thread Heinrich Schuchardt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 07/29/2018 03:33 AM, Tom Rini wrote: > On Sat, Jul 28, 2018 at 11:32:56PM +0200, Heinrich Schuchardt > wrote: >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 >> >> On 07/28/2018 08:33 PM, Tom Rini wrote: >>> On Sat, Jul 28, 2018 at 07:10:39PM

[U-Boot] [PATCH] net: pch_gbe: Make probe/remove static

2018-07-29 Thread Bin Meng
These two routines are internal to pch_gbe driver. Signed-off-by: Bin Meng --- drivers/net/pch_gbe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/pch_gbe.c b/drivers/net/pch_gbe.c index d31c45f..2286dd0 100644 --- a/drivers/net/pch_gbe.c +++ b/drivers/net/

Re: [U-Boot] [PATCH 17/17] fs-test: fix false positive error at Test Case 12

2018-07-29 Thread Heinrich Schuchardt
On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > The error message to be matched is wrong. Fix it. > > Signed-off-by: AKASHI Takahiro > --- > test/fs/fs-test.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/test/fs/fs-test.sh b/test/fs/fs-test.sh > index 2e8d5ee4df..7