Re: [U-Boot] MIPS (mt7688): EBase change in U-Boot breaks Linux

2018-12-14 Thread Paul Burton
Hi Stefan, On Fri, Dec 14, 2018 at 07:56:59AM +0100, Stefan Roese wrote: > So how to proceed? Should I enable CONFIG_CPU_MIPSR2_IRQ_VI or #define > "cpu_has_veic" to 1 as Lantiq does? ...and on that point in particular, it really depends on your hardware. You shouldn't need to do either of those

Re: [U-Boot] MIPS (mt7688): EBase change in U-Boot breaks Linux

2018-12-14 Thread Paul Burton
Hi Stefan, On Fri, Dec 14, 2018 at 07:56:59AM +0100, Stefan Roese wrote: > > Does this Linux patch help by any chance? > > > > https://git.linux-mips.org/cgit/linux-mti.git/commit/?h=eng-v4.20&id=39e4d339a4540b66e9d9a8ea0da9ee41a21473b4 > > > > I'm not sure I remember why I didn't get that upstr

Re: [U-Boot] MIPS (mt7688): EBase change in U-Boot breaks Linux

2018-12-13 Thread Paul Burton
Hello, On Thu, Dec 13, 2018 at 03:23:39PM +0100, Daniel Schwierzeck wrote: > > Finally I found that this line in U-Boot makes Linux break: > > > > arch/mips/lib/traps.c: > > > > void trap_init(ulong reloc_addr) > > unsigned long ebase = gd->irq_sp; > >

Re: [U-Boot] [PATCH 0/6] Add support for MIPS Creator CI20

2018-12-10 Thread Paul Burton
Hi Ezequiel, On Mon, Dec 10, 2018 at 06:31:29PM -0300, Ezequiel Garcia wrote: > On Mon, 2018-12-10 at 22:00 +0100, Andreas Färber wrote: > > Am 10.12.18 um 21:35 schrieb Ezequiel Garcia: > > > Please note that I've added Paul's SOB to all the patches > > > he authored, to make the authorship chain

Re: [U-Boot] [PATCH] boston: Ensure DDR address calcuations don't overflow

2018-01-22 Thread Paul Burton
Hi Daniel, On Fri, Jan 19, 2018 at 12:31:25PM +0100, Daniel Schwierzeck wrote: > On 18.01.2018 22:19, Paul Burton wrote: > > When constraining the highest DDR address that U-Boot will use for its > > data & relocated self, we need to handle the common case in which a 32 >

[U-Boot] [PATCH] boston: Pad binary in .mcs to a multiple of 16 bytes

2018-01-18 Thread Paul Burton
rror about a spurious reloc: Avoid this problem by padding out the data in the .mcs file to a 16 byte boundary using srec_cat's -range-pad functionality. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck --- board/imgtec/boston/config.mk | 5 - 1 file changed, 4 insertions(+), 1

[U-Boot] [PATCH] boston: Ensure DDR address calcuations don't overflow

2018-01-18 Thread Paul Burton
erflows & wraps to 0. We originally had a check for this case, but it was lost in commit 78edb25729ce ("boston: Provide physical CONFIG_SYS_SDRAM_BASE") causing problems for the affected 32 bit systems. Signed-off-by: Paul Burton Fixes: 78edb25729ce ("boston: Provide physical

[U-Boot] [PATCH v2] boston: Add u-boot.mcs make target

2017-11-21 Thread Paul Burton
for u-boot.mcs which generates it using the srec_cat tool available from the SRecord project, and build it by default when srec_cat is present. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck Cc: u-boot@lists.denx.de --- Changes in v2: - Use try-run as suggested by Daniel. board/imgtec/boston/conf

[U-Boot] [PATCH] boston: Add u-boot.mcs make target

2017-11-21 Thread Paul Burton
for u-boot.mcs which generates it using the srec_cat tool available from the SRecord project, and build it by default when srec_cat is present. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck Cc: u-boot@lists.denx.de --- board/imgtec/boston/config.mk | 15 +++ 1 file changed, 15 inser

[U-Boot] [PATCH 7/8] net: pch_gbe: Use wait_for_bit() helper

2017-11-21 Thread Paul Burton
The pch_gbe driver has 4 paths which open-code the equivalent of wait_for_bit(). Replace these with use of wait_for_bit() in order to shorten the code & avoid duplication. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck Cc: Joe Hershberger Cc: u-boot@lists.denx.de --- drivers/net/pch_g

[U-Boot] [PATCH 8/8] boston: Enable ethernet PHY, reset GPIO, device probe

2017-11-21 Thread Paul Burton
umeration step. We also enable the EG20T GPIO driver to provide the PHY reset GPIO, and support for the Realtek RTL8211E PHY used on the Boston board in order to make ethernet usable. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck Cc: Simon Glass Cc: u-boot@lists.denx.de --- arc

[U-Boot] [PATCH] boston: Set CONFIG_SYS_LOAD_ADDR to 0x88000000

2017-11-21 Thread Paul Burton
ries. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck Cc: u-boot@lists.denx.de --- include/configs/boston.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/boston.h b/include/configs/boston.h index ee4e4a37ea..fdd5ef5632 100644 --- a/include/configs/boston.h +

[U-Boot] [PATCH 2/8] boston: Disable PCI bridge memory space alignment

2017-11-21 Thread Paul Burton
available to the PCI bus. Fix this by disabling that 1MB alignment, which allows all of the EG20T peripheral devices to be assigned memory space within the 1MB region available. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck Cc: Simon Glass Cc: u-boot@lists.denx.de Signed-off-by: Paul Burton

[U-Boot] [PATCH 4/8] gpio: Provide dummy get/request & is_valid functions

2017-11-21 Thread Paul Burton
without needing to perform such checks themselves. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck Cc: Simon Glass Cc: u-boot@lists.denx.de Signed-off-by: Paul Burton --- include/asm-generic/gpio.h | 38 ++ 1 file changed, 38 insertions(+) diff --gi

[U-Boot] [PATCH 6/8] net: pch_gbe: Support PHY reset GPIOs

2017-11-21 Thread Paul Burton
Add support to the pch_gbe driver for resetting the PHY using a GPIO specified in the device tree. This matches the support already in Linux. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck Cc: Joe Hershberger Cc: Simon Glass Cc: u-boot@lists.denx.de Signed-off-by: Paul Burton

[U-Boot] [PATCH 3/8] pci: xilinx: Initialise the root bridge during probe

2017-11-21 Thread Paul Burton
o all possible subordinate busses based upon the size of the ECAM region, and disable interrupts since U-Boot isn't using them. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck Cc: u-boot@lists.denx.de Signed-off-by: Paul Burton --- drivers/pci/pcie_xil

[U-Boot] [PATCH 5/8] gpio: eg20t: Add driver for Intel EG20T GPIO controllers

2017-11-21 Thread Paul Burton
Add a driver for the GPIO controller found in the Intel EG20T Platform Controller Hub. This is used on the MIPS Boston development board to provide GPIOs including ethernet PHY reset. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck Cc: Simon Glass Cc: u-boot@lists.denx.de Signed-off-by: Paul

[U-Boot] [PATCH 1/8] pci: Make PCI bridge memory alignment configurable

2017-11-21 Thread Paul Burton
that systems such as this can select an alignment which works for them. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck Cc: Simon Glass Cc: u-boot@lists.denx.de Signed-off-by: Paul Burton --- drivers/pci/Kconfig| 7 +++ drivers/pci/pci_auto.c | 24 2 files

[U-Boot] [PATCH 0/8] boston: Ethernet support for MIPS Boston board

2017-11-21 Thread Paul Burton
G20T ethernet device, so this leads to delays during boot in QEMU whilst the pch_gbe driver times out on attempted access to the PHY. Applies atop u-boot-mips/next as of 50bff5194d7e ("MIPS: Break out of cache loops for unimplemented caches"). Paul Burton (8): pci: Make PCI bridge me

Re: [U-Boot] [PATCH 0/3] MIPS: Caching fixes

2017-11-21 Thread Paul Burton
Hi Daniel, On Tue, Nov 21, 2017 at 08:57:15PM +0100, Daniel Schwierzeck wrote: > Am 21.11.2017 um 20:18 schrieb Paul Burton: > > This short series fixes a few issues related to our caching code - with > > regards to DMA coherence, instruction cache coherence & systems with n

[U-Boot] [PATCH 3/3] MIPS: Break out of cache loops for unimplemented caches

2017-11-21 Thread Paul Burton
he L1s. Fix this by generalising the check for a zero line size & avoiding the cache op loop when this is the case. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck Cc: u-boot@lists.denx.de --- arch/mips/lib/cache.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) dif

[U-Boot] [PATCH 2/3] MIPS: Clear instruction hazards in flush_cache()

2017-11-21 Thread Paul Burton
introducing & using a new instruction_hazard_barrier() function which makes use of the jr.hb instruction to clear the hazard. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck Cc: u-boot@lists.denx.de --- arch/mips/include/asm/system.h | 13 + arch/mips/lib/cache.c |

[U-Boot] [PATCH 1/3] MIPS: Ensure cache ops complete in cache maintenance functions

2017-11-21 Thread Paul Burton
Signed-off-by: Paul Burton Cc: Daniel Schwierzeck Cc: u-boot@lists.denx.de --- arch/mips/lib/cache.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/mips/lib/cache.c b/arch/mips/lib/cache.c index 91b037f87d..eba7fff316 100644 --- a/arch/mips/lib/cache.c +

[U-Boot] [PATCH 0/3] MIPS: Caching fixes

2017-11-21 Thread Paul Burton
This short series fixes a few issues related to our caching code - with regards to DMA coherence, instruction cache coherence & systems with no caches at all. Applies atop u-boot-mips/next as of d7d9fc01a4ef ("Update Paul Burton's email address"). Paul Burton (3): MIP

[U-Boot] [PATCH] Update Paul Burton's email address

2017-10-30 Thread Paul Burton
ning history) will use the new address. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck Cc: u-boot@lists.denx.de --- .mailmap| 1 + board/imgtec/boston/MAINTAINERS | 2 +- board/imgtec/malta/MAINTAINERS | 2 +- board/imgtec/malta/superio.c| 2 +- board/imgtec/m

Re: [U-Boot] [U-Boot, v2, 4/8] test/py: Import StringIO from io module for python 3.x

2017-09-21 Thread Paul Burton
Hi Tom, On Thursday, 21 September 2017 09:27:02 PDT Tom Rini wrote: > On Thu, Sep 14, 2017 at 02:34:46PM -0700, Paul Burton wrote: > > In python 3.x the StringIO module is gone, and instead StringIO can be > > imported from the io module. Do this in order to run on python 3.x, an

[U-Boot] [PATCH] MIPS: Drop unused PTR_COUNT_SHIFT from u-boot.lds

2017-09-15 Thread Paul Burton
The u-boot.lds linker script for MIPS defines a PTR_COUNT_SHIFT macro to 2 or 3 for 32 bit or 64 bit builds respectively. This macro is never actually used though, so remove the dead code. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck --- arch/mips/cpu/u-boot.lds | 6 -- 1 file

[U-Boot] [PATCH] boston: Remove unused label in lowlevel_display

2017-09-15 Thread Paul Burton
The lowlevel_display() function includes a "1:" label which is never used. Remove it. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck --- board/imgtec/boston/lowlevel_init.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/imgtec/boston/lowlevel_init.

[U-Boot] [PATCH] boston: Drop unused return value

2017-09-15 Thread Paul Burton
The boston lowlevel_init() function zeroes the return register v0, despite the function not being expected to return a value & that value never being used. Remove the redundant assignment to v0. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck --- board/imgtec/boston/lowlevel_init.S

[U-Boot] [PATCH v2 11/13] nios2: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
our no-op unmap_physmem() and definitions of unused map flags. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton Cc: Thomas Chou --- Changes in v2: None arch/nios2/include/asm/io.h | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/a

[U-Boot] [PATCH v2 12/13] powerpc: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
ainers is welcome. Signed-off-by: Paul Burton Cc: Wolfgang Denk --- Changes in v2: None arch/powerpc/include/asm/io.h | 25 + 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/arch/powerpc/include/asm/io.h b/arch/powerpc/include/asm/io.h index a54fc468d5..

[U-Boot] [PATCH v2 13/13] sandbox: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
s_to_virt() & make use of it from map_physmem(). Signed-off-by: Paul Burton Cc: Simon Glass Acked-by: Simon Glass --- Changes in v2: - Move include earlier to get MAP_WRBACK for (un)map_sysmem() - Cast vaddr to uint8_t* in virt_to_phys() for arithmetic with ram_buf arch/sandbox/cpu/cpu.

[U-Boot] [PATCH v2 09/13] xtensa: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
. Signed-off-by: Paul Burton Cc: Max Filippov Acked-by: Max Filippov --- Changes in v2: None arch/xtensa/include/asm/io.h | 25 ++--- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/arch/xtensa/include/asm/io.h b/arch/xtensa/include/asm/io.h index e34d6e1d7f

[U-Boot] [PATCH v2 06/13] nds32: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the nds32 architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for nds32 this is primarily a matter of removing code. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton Cc

[U-Boot] [PATCH v2 08/13] x86: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
-by: Paul Burton Cc: Simon Glass Reviewed-by: Simon Glass --- Changes in v2: None arch/x86/include/asm/io.h | 31 ++- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h index a72daf2263..263dd8fd17

[U-Boot] [PATCH v2 05/13] microblaze: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the microblaze architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for microblaze this is primarily a matter of removing code. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton

[U-Boot] [PATCH v2 10/13] mips: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
our no-op unmap_physmem() and definitions of unused map flags. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck --- Changes in v2: None arch/mips/include/asm/io.h | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/arch/mips/include/asm/io.h b/arch/mips/include

[U-Boot] [PATCH v2 07/13] sh: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the sh architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for sh this is primarily a matter of moving code. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton Cc: Nobuhiro

[U-Boot] [PATCH v2 04/13] m68k: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the m68k architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for m68k this is primarily a matter of emoving code. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton Cc: Huan

[U-Boot] [PATCH v2 03/13] arm: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
-off-by: Paul Burton Cc: Albert Aribaud Reviewed-by: Simon Glass --- Changes in v2: None arch/arm/include/asm/io.h | 30 +- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h index 5834f5b3dc..5df74728de

[U-Boot] [PATCH v2 02/13] arc: Use asm-generic/io.h

2017-09-14 Thread Paul Burton
Convert the arc architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for arc this is primarily a matter of removing code. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton Cc: Alexey

[U-Boot] [PATCH v2 01/13] Provide a generic io.h & address mapping functions

2017-09-14 Thread Paul Burton
use of this generic header - later patches in the series will do so. Signed-off-by: Paul Burton Cc: Albert Aribaud Cc: Alexey Brodkin Cc: Angelo Dureghello Cc: Bin Meng Cc: Daniel Schwierzeck Cc: Macpaul Lin Cc: Michal Simek Cc: Nobuhiro Iwamatsu Cc: Thomas Chou Cc: Wolfgang Denk Acked-by: An

[U-Boot] [PATCH v2 00/13] Add asm-generic/io.h; virt_to_phys(), phys_to_virt() for all arches

2017-09-14 Thread Paul Burton
in order to simplify the process of getting it merged by doing so piecemeal. The v1 patches can be seen at [1]. Thanks, Paul [1] https://patchwork.ozlabs.org/bundle/paulburton/old-asm-generic-io/?state=* Paul Burton (13): Provide a generic io.h & address mapping functions arc: Use

[U-Boot] [PATCH v2 8/8] test/py: vboot: Remove stderr redirect from openssl command

2017-09-14 Thread Paul Burton
can drop the shell-like redirection with no ill effects. With this fix test_vboot now passes for me. Signed-off-by: Paul Burton Reviewed-by: Stephen Warren --- Changes in v2: - Place the % operator at the end of the last string line, not the start of the next. test/py/tests/test_vboot.py |

Re: [U-Boot] [PATCH 8/8] test/py: vboot: Remove stderr redirect from openssl command

2017-09-14 Thread Paul Burton
Hi Stephen, On Thursday, 14 September 2017 13:28:35 PDT Stephen Warren wrote: > I could have sworn I checked this code ran on Python 3 when I first > wrote it. Some of the issues you've fixed were clearly introduced since > then, but not all. Perhaps I'm remembering some other project where I > us

[U-Boot] [PATCH v2 6/8] test/py: fit: Open files as binary files

2017-09-14 Thread Paul Burton
e not text files. Without this test_fit fails on python 3.x when reading an FDT in run_fit_test() with: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 0: invalid continuation byte Signed-off-by: Paul Burton Reviewed-by: Stephen Warren

[U-Boot] [PATCH v2 7/8] test/py: hush_if_test: Use open() in place of file()

2017-09-14 Thread Paul Burton
In python 3.x the file() function has been removed. Use open() instead, which works on both python 2.x & 3.x, and is described as the preferred method of opening a file by python 2.x documentation anyway. Signed-off-by: Paul Burton Reviewed-by: Stephen Warren --- Changes in v2: None tes

[U-Boot] [PATCH v2 5/8] test/py: Encode/decode strings for stdio

2017-09-14 Thread Paul Burton
. Signed-off-by: Paul Burton Reviewed-by: Stephen Warren --- Changes in v2: None test/py/multiplexed_log.py | 4 ++-- test/py/tests/test_ut.py | 2 +- test/py/u_boot_spawn.py| 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/py/multiplexed_log.py b/test/py

[U-Boot] [PATCH v2 4/8] test/py: Import StringIO from io module for python 3.x

2017-09-14 Thread Paul Burton
In python 3.x the StringIO module is gone, and instead StringIO can be imported from the io module. Do this in order to run on python 3.x, and fall back to importing StringIO as a module in order to continue working with python 2.x. Signed-off-by: Paul Burton Reviewed-by: Stephen Warren

[U-Boot] [PATCH v2 3/8] test/py: Import 'configparser' lower case to be python 3.x safe

2017-09-14 Thread Paul Burton
In python 3.x the configparser module is named with all lower case. Import it as such in order to avoid errors when running on python 3.x, and fall back to the CamelCase version in order to keep working with python 2.x. Signed-off-by: Paul Burton Reviewed-by: Stephen Warren --- Changes in v2

[U-Boot] [PATCH v2 2/8] test/py: Use range() rather than xrange()

2017-09-14 Thread Paul Burton
r than an iterator, but the cost should be negligible. Signed-off-by: Paul Burton Reviewed-by: Stephen Warren --- Changes in v2: None test/py/u_boot_console_sandbox.py | 2 +- test/py/u_boot_spawn.py | 6 +++--- test/py/u_boot_utils.py | 4 ++-- 3 files changed, 6 inserti

[U-Boot] [PATCH v2 1/8] test/py: Make print statements python 3.x safe

2017-09-14 Thread Paul Burton
In python 3.x print must be called as a function rather than used as a statement. Update uses of print to the function call syntax in order to be python 3.x safe. Signed-off-by: Paul Burton Reviewed-by: Stephen Warren --- Changes in v2: None test/py/conftest.py | 2 +- test/py

[U-Boot] [PATCH v2 0/8] test/py: Fixes for python 3.x

2017-09-14 Thread Paul Burton
Paul Paul Burton (8): test/py: Make print statements python 3.x safe test/py: Use range() rather than xrange() test/py: Import 'configparser' lower case to be python 3.x safe test/py: Import StringIO from io module for python 3.x test/py: Encode/decode strings for stdio test/py:

[U-Boot] [PATCH 8/8] test/py: vboot: Remove stderr redirect from openssl command

2017-09-14 Thread Paul Burton
can drop the shell-like redirection with no ill effects. With this fix test_vboot now passes for me. Signed-off-by: Paul Burton --- test/py/tests/test_vboot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/py/tests/test_vboot.py b/test/py/tests/test_vboot.py index 6

[U-Boot] [PATCH 5/8] test/py: Encode/decode strings for stdio

2017-09-14 Thread Paul Burton
. Signed-off-by: Paul Burton --- test/py/multiplexed_log.py | 4 ++-- test/py/tests/test_ut.py | 2 +- test/py/u_boot_spawn.py| 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/py/multiplexed_log.py b/test/py/multiplexed_log.py index bf926c3e77..21bdcb7309 100644

[U-Boot] [PATCH 6/8] test/py: fit: Open files as binary files

2017-09-14 Thread Paul Burton
e not text files. Without this test_fit fails on python 3.x when reading an FDT in run_fit_test() with: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 0: invalid continuation byte Signed-off-by: Paul Burton --- test/py/tests/test_f

[U-Boot] [PATCH 7/8] test/py: hush_if_test: Use open() in place of file()

2017-09-14 Thread Paul Burton
In python 3.x the file() function has been removed. Use open() instead, which works on both python 2.x & 3.x, and is described as the preferred method of opening a file by python 2.x documentation anyway. Signed-off-by: Paul Burton --- test/py/tests/test_hush_if_test.py | 2 +- 1 file cha

[U-Boot] [PATCH 4/8] test/py: Import StringIO from io module for python 3.x

2017-09-14 Thread Paul Burton
In python 3.x the StringIO module is gone, and instead StringIO can be imported from the io module. Do this in order to run on python 3.x, and fall back to importing StringIO as a module in order to continue working with python 2.x. Signed-off-by: Paul Burton --- test/py/conftest.py | 8

[U-Boot] [PATCH 3/8] test/py: Import 'configparser' lower case to be python 3.x safe

2017-09-14 Thread Paul Burton
In python 3.x the configparser module is named with all lower case. Import it as such in order to avoid errors when running on python 3.x, and fall back to the CamelCase version in order to keep working with python 2.x. Signed-off-by: Paul Burton --- test/py/conftest.py | 6 +- 1 file

[U-Boot] [PATCH 2/8] test/py: Use range() rather than xrange()

2017-09-14 Thread Paul Burton
r than an iterator, but the cost should be negligible. Signed-off-by: Paul Burton --- test/py/u_boot_console_sandbox.py | 2 +- test/py/u_boot_spawn.py | 6 +++--- test/py/u_boot_utils.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git

[U-Boot] [PATCH 1/8] test/py: Make print statements python 3.x safe

2017-09-14 Thread Paul Burton
In python 3.x print must be called as a function rather than used as a statement. Update uses of print to the function call syntax in order to be python 3.x safe. Signed-off-by: Paul Burton --- test/py/conftest.py | 2 +- test/py/test.py | 6 -- test/py

[U-Boot] [PATCH 0/8] test/py: Fixes for python 3.x

2017-09-14 Thread Paul Burton
Paul Paul Burton (8): test/py: Make print statements python 3.x safe test/py: Use range() rather than xrange() test/py: Import 'configparser' lower case to be python 3.x safe test/py: Import StringIO from io module for python 3.x test/py: Encode/decode strings for stdio test/py:

Re: [U-Boot] [PATCH v3 2/2] MIPS: Stop building position independent code

2017-07-31 Thread Paul Burton
On Monday, 31 July 2017 03:52:57 PDT Daniel Schwierzeck wrote: > 2017-07-30 18:04 GMT+02:00 Álvaro Fernández Rojas : > > El 30/07/2017 a las 16:05, Daniel Schwierzeck escribió: > >> Am 30.07.2017 um 14:27 schrieb Álvaro Fernández Rojas: > >>> I've been a bit busy lately and I couldn't test this unt

Re: [U-Boot] Pull request: u-boot-mips

2017-07-25 Thread Paul Burton
Hi Daniel, On Tuesday, 25 July 2017 14:38:44 BST Daniel Schwierzeck wrote: > Hi Paul, > > 2017-07-19 15:04 GMT+02:00 Tom Rini : > > On Wed, Jul 19, 2017 at 01:59:16PM +0100, Paul Burton wrote: > >> Hi Tom, > >> > >> On Tuesday, 18 July 2017 02:07:59

[U-Boot] [PATCH] mips-relocs: Fix warning from gcc 6.3

2017-07-25 Thread Paul Burton
default case, and asserting that we didn't actually hit it for good measure. For reference gcc 7.1.1 seems to be smart enough to not hit the above warning without this patch. Signed-off-by: Paul Burton Fixes: 011dd93ca97a ("MIPS: Stop building position independent code") Cc: Daniel Schwi

[U-Boot] [PATCH] mips-relocs: Fix warning from gcc 6.3

2017-07-25 Thread Paul Burton
default case, and asserting that we didn't actually hit it for good measure. For reference gcc 7.1.1 seems to be smart enough to not hit the above warning without this patch. Signed-off-by: Paul Burton Fixes: 011dd93ca97a ("MIPS: Stop building position independent code") Cc: Daniel Schwi

Re: [U-Boot] Pull request: u-boot-mips

2017-07-19 Thread Paul Burton
Hi Tom, On Tuesday, 18 July 2017 02:07:59 BST Tom Rini wrote: > On Thu, Jul 13, 2017 at 10:58:47AM -0700, Paul Burton wrote: > > Hi Daniel & Tom, > > > > On Thursday, 13 July 2017 03:51:00 PDT Daniel Schwierzeck wrote: > > > Hi Paul, > > > > >

Re: [U-Boot] Pull request: u-boot-mips

2017-07-13 Thread Paul Burton
Hi Daniel & Tom, On Thursday, 13 July 2017 03:51:00 PDT Daniel Schwierzeck wrote: > Hi Paul, > > 2017-07-13 2:33 GMT+02:00 Tom Rini : > > On Wed, Jul 12, 2017 at 04:57:42PM -0400, Tom Rini wrote: > >> On Wed, Jul 12, 2017 at 10:32:29PM +0200, Daniel Schwierzeck wrote: > >> > Hi Tom, > >> > > >>

Re: [U-Boot] [PATCH 2/2] MIPS: Stop building position independent code

2017-06-19 Thread Paul Burton
Hi Daniel, On Monday, 19 June 2017 12:48:12 PDT Daniel Schwierzeck wrote: > Am 19.06.2017 um 20:53 schrieb Paul Burton: > > Hi Daniel, > > > > On Friday, 16 June 2017 15:48:06 PDT Daniel Schwierzeck wrote: > >> Am 16.06.2017 um 02:05 schrieb Paul Burton: > >&

[U-Boot] [PATCH v3 2/2] MIPS: Stop building position independent code

2017-06-19 Thread Paul Burton
also makes it easier to read & debug. Taking maltael_defconfig as an example the size of u-boot.bin built using the Codescape MIPS 2016.05-06 toolchain (gcc 4.9.2, binutils 2.24.90) shrinks from 254KiB to 224KiB. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck Cc: u-boot@lists.denx.de -

Re: [U-Boot] [PATCH 2/2] MIPS: Stop building position independent code

2017-06-19 Thread Paul Burton
Hi Daniel, On Friday, 16 June 2017 15:48:06 PDT Daniel Schwierzeck wrote: > Am 16.06.2017 um 02:05 schrieb Paul Burton: > > U-Boot has up until now built with -fpic for the MIPS architecture, > > producing position independent code which uses indirection through a > > global

[U-Boot] [PATCH v2 2/2] MIPS: Stop building position independent code

2017-06-16 Thread Paul Burton
also makes it easier to read & debug. Taking maltael_defconfig as an example the size of u-boot.bin built using the Codescape MIPS 2016.05-06 toolchain (gcc 4.9.2, binutils 2.24.90) shrinks from 254KiB to 224KiB. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck Cc: u-boot@lists.denx.de --

Re: [U-Boot] [PATCH 2/2] MIPS: Stop building position independent code

2017-06-16 Thread Paul Burton
Hi Daniel, On Friday, 16 June 2017 06:49:55 PDT Daniel Schwierzeck wrote: > Hi Paul, > > Am 16.06.2017 um 02:05 schrieb Paul Burton: > > U-Boot has up until now built with -fpic for the MIPS architecture, > > producing position independent code which uses indirection throug

[U-Boot] [PATCH 2/2] MIPS: Stop building position independent code

2017-06-15 Thread Paul Burton
also makes it easier to read & debug. Taking maltael_defconfig as an example the size of u-boot.bin built using the Codescape MIPS 2016.05-06 toolchain (gcc 4.9.2, binutils 2.24.90) shrinks from 254KiB to 224KiB. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck Cc: u-boot@lists

[U-Boot] [PATCH 1/2] Makefile: Allow arch post-link hook

2017-06-15 Thread Paul Burton
This commit allows an architecture to provide a Makefile.postlink whose u-boot target gets invoked after the u-boot ELF is linked. This will be of use for MIPS in a following commit. This mirrors Linux commit fbe6e37dab97 ("kbuild: add arch specific post-link Makefile"). Signed-of

Re: [U-Boot] [PATCH 01/27] Provide a generic io.h & address mapping functions

2016-11-17 Thread Paul Burton
On Monday, 3 October 2016 15:49:33 GMT Simon Glass wrote: > Hi Paul, > > On 1 October 2016 at 08:19, Paul Burton wrote: > > Most architectures currently supported by U-Boot use trivial > > implementations of map_to_physmem & virt_to_phys which simply cast a > > ph

Re: [U-Boot] [PATCH 00/27] Clean up address mapping functions & CONFIG_SYS_SDRAM_BASE

2016-10-03 Thread Paul Burton
On Sunday, 2 October 2016 22:46:45 BST Masahiro Yamada wrote: > Hi Paul, > > 2016-10-01 23:19 GMT+09:00 Paul Burton : > > README states that CONFIG_SYS_SDRAM_BASE should be the physical address > > of the base of SDRAM memory. This is expected by some code such as the >

Re: [U-Boot] [PATCH 07/23] pci: Handle MIPS systems with virtual CONFIG_SYS_SDRAM_BASE

2016-10-01 Thread Paul Burton
On Tuesday, 27 September 2016 12:01:32 BST Daniel Schwierzeck wrote: > 2016-09-27 2:35 GMT+02:00 Simon Glass : > > Hi Paul, > > > > On 26 September 2016 at 12:29, Paul Burton wrote: > >> The decode_regions() function in the PCI code presumes that > >> CONF

[U-Boot] [PATCH 26/27] mips: Use a physical CONFIG_SYS_SDRAM_BASE for remaining boards

2016-10-01 Thread Paul Burton
ards use CONFIG_SYS_SDRAM_BASE in their code, so they're handled together. This has only been build-tested, feedback welcome. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck Cc: Marek Vasut Cc: Purna Chandra Mandal Cc: Wills Wang --- include/configs/ap121.h | 2 +- include/conf

[U-Boot] [PATCH 27/27] mips: Remove virt_to_phys call on bi_memstart

2016-10-01 Thread Paul Burton
CONFIG_SYS_SDRAM_BASE & by extension bi_memstart are now physical addresses, so there's no need to call virt_to_phys in arch_fixup_fdt. Remove the call. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck --- arch/mips/lib/bootm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[U-Boot] [PATCH 24/27] malta: Use a physical CONFIG_SYS_SDRAM_BASE

2016-10-01 Thread Paul Burton
ects CONFIG_SYS_SDRAM_BASE to be a physical address, which makes the inconsistency a mess. Now that the preceding patches have prepared us to handle using a physical CONFIG_SYS_SDRAM_BASE, clean up the inconsistency for malta by providing a physical CONFIG_SYS_SDRAM_BASE. Signed-off-by: Paul Burton Cc: Da

[U-Boot] [PATCH 25/27] xilfpga: Use a physical CONFIG_SYS_SDRAM_BASE

2016-10-01 Thread Paul Burton
back welcome. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck Cc: Zubair Lutfullah Kakakhel --- include/configs/imgtec_xilfpga.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/imgtec_xilfpga.h b/include/configs/imgtec_xilfpga.h index 0a7fe60..1583f21 10

[U-Boot] [PATCH 22/27] mips: Ensure stack is at a virtual address

2016-10-01 Thread Paul Burton
In preparation for making CONFIG_SYS_SDRAM_BASE a physical address on MIPS as README says it should be, ensure that our default CONFIG_SYS_INIT_SP_ADDR is placed in (c)kseg0 rather than being a simple offset addition to CONFIG_SYS_SDRAM_BASE. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck

[U-Boot] [PATCH 23/27] boston: Provide physical CONFIG_SYS_SDRAM_BASE

2016-10-01 Thread Paul Burton
_to_virt is that on MIPS64 U-Boot will now access DDR through the xkphys region of the virtual address space rather than ckseg0, which necessitates the change to board_get_usable_ram_top(). Signed-off-by: Paul Burton Cc: Daniel Schwierzeck --- board/imgtec/boston/ddr.c | 8 ++-- include

[U-Boot] [PATCH 21/27] mips: Use ram_top, not bi_memsize, in arch_lmb_reserve

2016-10-01 Thread Paul Burton
When calculating the region to reserve for the stack in arch_lmb_reserve, make use of ram_top instead of adding bi_memsize to CONFIG_SYS_SDRAM_BASE. This avoids overflow if the system has enough memory to reach the end of the address space. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck

[U-Boot] [PATCH 20/27] image: Use ram_top, not bi_memsize, in getenv_bootm_size

2016-10-01 Thread Paul Burton
has 2GB of memory then the addition would wrap around to 0. The maximum amount of memory to be used by U-Boot is already accounted for by the ram_top field of struct global_data, so make use of that for the calculation instead. Signed-off-by: Paul Burton --- common/image.c | 2 +- 1 file change

[U-Boot] [PATCH 19/27] image: Account for CONFIG_SYS_SDRAM_BASE being physical

2016-10-01 Thread Paul Burton
ated bi_memstart field of struct bd_info to virtual addresses for use. Signed-off-by: Paul Burton --- common/image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/image.c b/common/image.c index a5d19ab..1581022 100644 --- a/common/image.c +++ b/common/image.c @@ -466,7 +4

[U-Boot] [PATCH 18/27] board_f: Account for CONFIG_SYS_SDRAM_BASE being physical

2016-10-01 Thread Paul Burton
calculate most memory addresses used by U-Boot. Signed-off-by: Paul Burton --- common/board_f.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/board_f.c b/common/board_f.c index 2c88595..1afc80d 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -315,7 +315,7

[U-Boot] [PATCH 17/27] sandbox: Use asm-generic/io.h

2016-10-01 Thread Paul Burton
s_to_virt() & make use of it from map_physmem(). Signed-off-by: Paul Burton Cc: Simon Glass --- arch/sandbox/cpu/cpu.c| 12 +++- arch/sandbox/include/asm/io.h | 17 - 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/arch/sandbox/cpu/cpu.c b/arc

[U-Boot] [PATCH 16/27] powerpc: Use asm-generic/io.h

2016-10-01 Thread Paul Burton
ainers is welcome. Signed-off-by: Paul Burton Cc: Wolfgang Denk --- arch/powerpc/include/asm/io.h | 25 + 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/arch/powerpc/include/asm/io.h b/arch/powerpc/include/asm/io.h index a54fc46..34fbfdf 100644 --- a/arc

[U-Boot] [PATCH 15/27] nios2: Use asm-generic/io.h

2016-10-01 Thread Paul Burton
our no-op unmap_physmem() and definitions of unused map flags. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton Cc: Thomas Chou --- arch/nios2/include/asm/io.h | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/arch/nios2/include/a

[U-Boot] [PATCH 14/27] mips: Fix map_physmem for cached mappings

2016-10-01 Thread Paul Burton
kseg1 pointer that uncached mappings return via ioremap. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck --- arch/mips/include/asm/io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h index be9616a..45d7ca0 100644 --- a

[U-Boot] [PATCH 13/27] mips: Use asm-generic/io.h

2016-10-01 Thread Paul Burton
our no-op unmap_physmem() and definitions of unused map flags. Signed-off-by: Paul Burton Cc: Daniel Schwierzeck --- arch/mips/include/asm/io.h | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h index 5b86386

[U-Boot] [PATCH 12/27] xtensa: Use asm-generic/io.h

2016-10-01 Thread Paul Burton
. Signed-off-by: Paul Burton Cc: Max Filippov --- arch/xtensa/include/asm/io.h | 25 ++--- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/arch/xtensa/include/asm/io.h b/arch/xtensa/include/asm/io.h index e34d6e1..c9e335f 100644 --- a/arch/xtensa/include/asm/io.h

[U-Boot] [PATCH 11/27] x86: Use asm-generic/io.h

2016-10-01 Thread Paul Burton
-by: Paul Burton Cc: Simon Glass --- arch/x86/include/asm/io.h | 31 ++- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h index 3156781..6f29a73 100644 --- a/arch/x86/include/asm/io.h +++ b/arch/x86

[U-Boot] [PATCH 08/27] openrisc: Use asm-generic/io.h

2016-10-01 Thread Paul Burton
Convert the openrisc architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for openrisc this is primarily a matter of removing code. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton Cc

[U-Boot] [PATCH 09/27] sh: Use asm-generic/io.h

2016-10-01 Thread Paul Burton
Convert the sh architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for sh this is primarily a matter of moving code. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton Cc: Nobuhiro

[U-Boot] [PATCH 10/27] sparc: Use asm-generic/io.h

2016-10-01 Thread Paul Burton
Convert the sparc architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for sparc this is primarily a matter of moving code. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton --- arch

[U-Boot] [PATCH 07/27] nds32: Use asm-generic/io.h

2016-10-01 Thread Paul Burton
Convert the nds32 architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for nds32 this is primarily a matter of removing code. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton Cc

[U-Boot] [PATCH 06/27] microblaze: Use asm-generic/io.h

2016-10-01 Thread Paul Burton
Convert the microblaze architecture to make use of the new asm-generic/io.h to provide address mapping functions. As the generic implementations are suitable for microblaze this is primarily a matter of removing code. Feedback from architecture maintainers is welcome. Signed-off-by: Paul Burton

  1   2   3   4   5   6   >