[PATCH v2 8/8] mips: octeon: octeon_ebb7304_defconfig: Enable USB support

2020-08-19 Thread Stefan Roese
This patch enables USB support with some helpful commands, like fs support. Signed-off-by: Stefan Roese --- (no changes since v1) configs/octeon_ebb7304_defconfig | 17 + 1 file changed, 17 insertions(+) diff --git a/configs/octeon_ebb7304_defconfig

[PATCH v2 3/8] usb: xhci: octeon: Add DWC3 glue layer for Octeon

2020-08-19 Thread Stefan Roese
This patch adds the glue layer for the MIPS Octeon SoCs. Its ported mainly from the Linux code. Signed-off-by: Stefan Roese Cc: Bin Meng Cc: Marek Vasut --- (no changes since v1) drivers/usb/host/Kconfig| 9 + drivers/usb/host/Makefile | 1 +

[PATCH v2 6/8] mips: octeon: cache.c: Flush all pending writes in flush_dcache_range()

2020-08-19 Thread Stefan Roese
As noticed while working on the USB xHCI support, Octeon needs to flush all pending writes so that the values are present in the memory. Add this "syncw" instruction (twice) to flush_dcache_range(). Signed-off-by: Stefan Roese --- (no changes since v1) arch/mips/mach-octeon/cache.c | 12

[PATCH v2 7/8] mips: octeon: Add USB DT nodes

2020-08-19 Thread Stefan Roese
Add the USB device tree nodes to the Octeon dts/dtsi files. Signed-off-by: Stefan Roese --- (no changes since v1) arch/mips/dts/mrvl,cn73xx.dtsi| 58 +++ arch/mips/dts/mrvl,octeon-ebb7304.dts | 22 ++ 2 files changed, 80 insertions(+) diff --git

[PATCH v2 2/8] usb: xhci: xhci_bulk_tx: Don't "BUG" when comparing addresses

2020-08-19 Thread Stefan Roese
Octeon uses mapped addresses for virtual and physical memory. Its not that easy to calculate the resulting addresses here. So lets remove this BUG_ON() completely, as its not really helpful. Please also note, that BUG_ON() is not recommended any more in the Linux kernel. Signed-off-by: Stefan

[PATCH v2 4/8] mips: octeon: cpu.c: Add table for selective swapping

2020-08-19 Thread Stefan Roese
Import octeon_should_swizzle_table[] which is needed for the area specific swapping. It will be used by the platform specific mangle-port.h header. Imported from Linux v5.7. Signed-off-by: Stefan Roese --- (no changes since v1) arch/mips/mach-octeon/cpu.c | 21 + 1 file

[PATCH v2 5/8] mips: octeon: Add mangle-port.h

2020-08-19 Thread Stefan Roese
Import platform specific mangle-port.h header, allowing a area specific swapping, which is needed on Octeon for USB & PCI areas. Imported from Linux v5.7. Signed-off-by: Stefan Roese --- Changes in v2: - Only use SPDX format for license info arch/mips/mach-octeon/include/mangle-port.h | 56

[PATCH v2 0/8] mips/usb: Add Octeon xHCI USB support

2020-08-19 Thread Stefan Roese
This patchset adds xHCI USB support for MIPS Octeon. After the xHCI code has been fixed to support mapped addresses (virt != phys), this patchset now adds the missing code pieces to enable USB support on Octeon. This is mainly the USB glue code for Octeon and the MIPS platform specific changes

[PATCH v2 1/8] usb: xhci: xhci-dwc3.c: Use dev_remap_addr() instead of dev_get_addr()

2020-08-19 Thread Stefan Roese
On MIPS platforms, mapping of the base address is needed. This patch switches from dev_get_addr() to dev_remap_addr() to get the mapped base address of the xHCI controller. Signed-off-by: Stefan Roese Cc: Bin Meng Cc: Marek Vasut --- (no changes since v1) drivers/usb/host/xhci-dwc3.c | 2 +-

[PATCH v1 08/10] mips: octeon: Add bootmem support

2020-08-19 Thread Stefan Roese
From: Aaron Williams This is needed for Linux booting, as the memory infos need to be passed in this bootmem format to the Linux kernel. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/Makefile|1 + arch/mips/mach-octeon/cvmx-bootmem.c

[PATCH v1 07/10] mips: octeon: Add coremask support

2020-08-19 Thread Stefan Roese
From: Aaron Williams This patch adds the coremask handling functions. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/Makefile| 1 + arch/mips/mach-octeon/cvmx-coremask.c | 366 +

[PATCH v1 04/10] mips: octeon: Add header octeon-feature.h

2020-08-19 Thread Stefan Roese
From: Aaron Williams This header includes the Octeon feature detection used in many Octeon drivers. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- .../mach-octeon/include/mach/octeon-feature.h | 442 ++ 1 file changed, 442 insertions(+) create mode 100644

[PATCH v1 09/10] mips: octeon: Add bootoctlinux command

2020-08-19 Thread Stefan Roese
From: Aaron Williams Octeon needs a platform specific cmd to boot the Linux kernel, as specific parameters need to be passed and special handling for the multiple cores (SMP) is needed. Co-developed-by: Stefan Roese Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese ---

[PATCH v1 10/10] mips: octeon: octeon_common.h: Increase CONFIG_SYS_BOOTM_LEN

2020-08-19 Thread Stefan Roese
Increase CONFIG_SYS_BOOTM_LEN to 64MiB for Linux kernel booting. Signed-off-by: Stefan Roese --- include/configs/octeon_common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/octeon_common.h b/include/configs/octeon_common.h index 541b81801e..109ef4064d 100644 ---

[PATCH v1 06/10] mips: octeon: Add header cvmx-bootinfo.h

2020-08-19 Thread Stefan Roese
From: Aaron Williams Add header to handle bootinfo support, needed for Octeon Linux kernel booting. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- .../mach-octeon/include/mach/cvmx-bootinfo.h | 350 ++ 1 file changed, 350 insertions(+) create mode 100644

[PATCH v1 02/10] mips: octeon: lowlevel_init.S: Add NMI handling code for SMP Linux booting

2020-08-19 Thread Stefan Roese
This patch adds the necessary lowlevel init code, to enable SMP Linux booting. This code will be used with the platform specific Octeon Linux boot command "bootoctlinux", which starts a configurable number of cores into Linux. Additionally some erratas and lowlevel register initializations are

[PATCH v1 05/10] mips: octeon: Add header cvmx-fuse.h

2020-08-19 Thread Stefan Roese
From: Aaron Williams Add header to handle Octeon fuse access. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- .../mips/mach-octeon/include/mach/cvmx-fuse.h | 71 +++ 1 file changed, 71 insertions(+) create mode 100644

[PATCH v1 03/10] mips: octeon: Add header cvmx-regs.h

2020-08-19 Thread Stefan Roese
From: Aaron Williams This header includes common register defines and accessor functions. Signed-off-by: Aaron Williams Signed-off-by: Stefan Roese --- .../mips/mach-octeon/include/mach/cvmx-regs.h | 144 ++ 1 file changed, 144 insertions(+) create mode 100644

[PATCH v1 01/10] mips: octeon: octeon-model.h: Enable inclusion from assembler files

2020-08-19 Thread Stefan Roese
Add the #ifdef __ASSEMBLY__ checks to enable inclusion of this header from assembler files. Signed-off-by: Stefan Roese --- arch/mips/mach-octeon/include/mach/octeon-model.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/mips/mach-octeon/include/mach/octeon-model.h

[PATCH v1 00/10] mips: octeon: Add bootoctlinux command for Octeon Linux kernel booting

2020-08-19 Thread Stefan Roese
This patchset adds the platforms specific bootoctlinux command, which is used to boot the MIPS Octeon Linux kernel (4.9.x). A special command is necessary here, as very platform specific data is passed to the kernel via the bootinfo / bootmem format. This patchset also includes various required

Re: [EXT] [PATCH 1/2] arm64: a37xx: pci: Make PCIe Reset GPIO DT compatible with Linux kernel DT

2020-08-19 Thread Stefan Roese
Hi Kosta, AFAICT, this mail does not contain any info from you. I can only assume, that you wanted to send a Reviewed-by tag. If yes, then please double-check which mails did not work and resend them with the correct tags. As they are automatically collected by patchwork. Thanks, Stefan On

Re: [PATCH 2/2] arm64: a37xx: pci: Assert PERST# signal when unloading driver

2020-08-19 Thread Stefan Roese
On 19.08.20 15:57, Pali Rohár wrote: This change ensures that PCIe card is put into reset state when U-Boot stops using it. DM_FLAG_OS_PREPARE ensures that U-Boot executes driver's remove callback prior booting Linux kernel. Linux kernel pci-aardvark driver needs to reset PCIe card via PERST#

Re: [PATCH 1/2] arm64: a37xx: pci: Make PCIe Reset GPIO DT compatible with Linux kernel DT

2020-08-19 Thread Stefan Roese
On 19.08.20 15:57, Pali Rohár wrote: Change active-high to active-low and change DT property name from reset-gpio to reset-gpios. This format of gpio reset is used by pci-aardvark driver in Linux kernel. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan ---

Re: [PATCH 2/2] arm: mvebu: Espressobin: Setup MTD partitions when booting kernel

2020-08-19 Thread Stefan Roese
On 19.08.20 16:24, Pali Rohár wrote: Due to different partition layouts in different U-Boot versions, DTS for Espressobin in Linux does not contain any definition of MTD partitions. See commit https://git.kernel.org/stable/c/00954566464a4 for more details. This patch via ft_board_setup() hook

Re: [PATCH 1/2] arm: mvebu: Espressobin: Make SPI env offset compatible with Marvell's U-Boot

2020-08-19 Thread Stefan Roese
On 19.08.20 16:24, Pali Rohár wrote: Espressobin board comes with Marvell's U-Boot version where U-Boot env is stored in SPI at offset 0x3F. This patch changes env offset in Espressobin defconfig file to match Marvell's U-Boot version. Users who want to use previous or different env offset

Re: [PATCH 2/2] arm: dts: a37x0: enable sd card support on espressobin

2020-08-19 Thread Stefan Roese
On 19.08.20 16:19, Pali Rohár wrote: From: Wilson Ding Enabled SDIO slot 0 (south bridge) for SD card on Espressobin board. Change-Id: I51a2debf9fba276b9c4a2bc6da91328d47f443e3 Signed-off-by: Wilson Ding Signed-off-by: Konstantin Porotchkin Reviewed-on:

Re: [PATCH 1/2] mmc: xenon: set signal voltage and max base clock

2020-08-19 Thread Stefan Roese
On 19.08.20 16:19, Pali Rohár wrote: From: Evan Wang - The SDIO signal voltage and max base clock frequency setting are missing in driver, which causes SDIO not working. - The patch adds SDIO signal voltage switch support, which is based on regulator-gpio of vqmmc-supply, and sets

[PATCH v7 08/10] powerpc: Remove bi_memstart & bi_memsize assignments in spl.c

2020-08-19 Thread Stefan Roese
Most likely these deprecated (removed) variables are not needed. Lets remove the assignments completely from all spl.c files. Signed-off-by: Stefan Roese Tested-by: Oleksandr Zhadan and Michael Durrant --- (no changes since v5) Changes in v5: - Add Tested-by tag from Oleksandr & Michael

[PATCH v7 09/10] cmd: bdinfo: Remove print of superseeded bi_memstart / bi_memsize values

2020-08-19 Thread Stefan Roese
Remove printing of the superseeded (by bi_dram[]) memory values from the bdinfo command. Signed-off-by: Stefan Roese Reviewed-by: Ovidiu Panait --- Changes in v7: - Add Reviewe-by tag from Ovidiu Changes in v4: - New patch cmd/bdinfo.c | 8 1 file changed, 8 deletions(-) diff

[PATCH v7 10/10] asm-generic/u-boot.h: Remove bi_memstart & bi_memsize from bd_info

2020-08-19 Thread Stefan Roese
bi_memstart & bi_memsize are now not referenced any more. This patch removes their definitions from the bd_info struct. Signed-off-by: Stefan Roese --- (no changes since v4) Changes in v4: - New patch include/asm-generic/u-boot.h | 2 -- 1 file changed, 2 deletions(-) diff --git

[PATCH v7 05/10] xtensa: Remove arch_setup_bdinfo()

2020-08-19 Thread Stefan Roese
arch_setup_bdinfo() only configures the deprecated bi_memstart & bi_memsize values, which should not be needed any more. Lets remove this file completely. Signed-off-by: Stefan Roese Reviewed-by: Ovidiu Panait --- Changes in v7: - Add Reviewe-by tag from Ovidiu Changes in v4: - New patch

[PATCH v7 07/10] video: cfb_console.c: Use bi_dram[] values on all platforms

2020-08-19 Thread Stefan Roese
All platforms support bi_dram[] since quite some time. Lets remove the and bi_memsize values completely. Signed-off-by: Stefan Roese --- (no changes since v4) Changes in v4: - New patch drivers/video/cfb_console.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git

[PATCH v7 04/10] global: Move from bi_memstart/memsize -> gd->ram_base/ram_size

2020-08-19 Thread Stefan Roese
With the planned removal of bi_memstart & bi_memsize, this patch now moves the references to the better suiting gd->ram_base/ram_size variables. Signed-off-by: Stefan Roese --- Changes in v7: - Reword commit text as suggested by Wolfgang Changes in v5: - Use PHYSADDR() for xtensa, as the

[PATCH v7 06/10] xtensa: Remove local no-op dram_init_banksize()

2020-08-19 Thread Stefan Roese
When this no-op dram_init_banksize() is removed, the weak default will be used instead, which correctly sets the bi_dram[] banksize values. Signed-off-by: Stefan Roese Reviewed-by: Ovidiu Panait --- Changes in v7: - Add Reviewe-by tag from Ovidiu Changes in v5: - New patch to fix the failing

[PATCH v7 01/10] CONFIG_NR_DRAM_BANKS: Remove unreferenced code as its always defined

2020-08-19 Thread Stefan Roese
Since commit 86cf1c82850f ("configs: Migrate CONFIG_NR_DRAM_BANKS") & commit 999a772d9f24 ("Kconfig: Migrate CONFIG_NR_DRAM_BANKS"), CONFIG_NR_DRAM_BANKS is always defined with a value (4 is default). It makes no sense to still carry code that is guarded with "#ifndef CONFIG_NR_DRAM_BANKS" (and

[PATCH v7 03/10] board_f: Add default values for bi_dram[] in dram_init_banksize()

2020-08-19 Thread Stefan Roese
Remove the bi_memstart / bi_memsize assignment in setup_bdinfo() and make sure, that bd_dram[] is always configured in the weak default implementation of dram_init_banksize(), when CONFIG_SYS_SDRAM_BASE is not set. Signed-off-by: Stefan Roese Reviewed-by: Ovidiu Panait --- Changes in v7: -

[PATCH v7 02/10] image: Use gd->ram_base/_size in env_get_bootm_size()

2020-08-19 Thread Stefan Roese
Use only gd->ram_base/_size in env_get_bootm_size() instead of bi_dram[] in some cases and bi_memstart in others. Signed-off-by: Stefan Roese --- (no changes since v4) Changes in v4: - New patch common/image.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git

Re: Aw: Re: [PATCH v2 09/11] arm: dts: mt7622: add sata- and asm_sel nodes

2020-08-19 Thread Chunfeng Yun
On Wed, 2020-08-19 at 12:58 +0200, Frank Wunderlich wrote: > Hi > > > Gesendet: Mittwoch, 19. August 2020 um 10:54 Uhr > > Von: "Chunfeng Yun" > > > + sata_phy: sata-phy@1a243000 { > > > + compatible = "mediatek,generic-tphy-v1"; > > > + #address-cells = <1>; > > > +

Re: [PATCH v3 1/1] cmd: provide command sbi

2020-08-19 Thread Bin Meng
Hi Heinrich, On Wed, Aug 19, 2020 at 6:29 PM Heinrich Schuchardt wrote: > > Provide a command to display information about the SBI implementation. > > The output might look like: > > => sbi > SBI 0.2 > OpenSBI > Extensions: > sbi_set_timer > sbi_console_putchar > sbi_console_getchar >

Re: [PATCH] arm: dts: fix ast2500-evb inclusion for correct target

2020-08-19 Thread Thirupathaiah Annapureddy
Adding Ryan and Chiawei to the list. On 8/17/2020 5:53 PM, Thirupathaiah Annapureddy wrote: > Include ast2500-evb.dtb for CONFIG_TARGET_EVB_AST2500 instead of > for all aspeed targets. > > Signed-off-by: Thirupathaiah Annapureddy --- > arch/arm/dts/Makefile | 2 +- > 1 file changed, 1

Re: [v3, 00/11] mmc: fsl_esdhc: support eMMC HS200/HS400 modes

2020-08-19 Thread Jaehoon Chung
Hi Yangbo, On 8/18/20 1:35 PM, Y.b. Lu wrote: > Any commets on the v3 patch-set. > Thanks! Sorry for late. I will test with your patch on my target. Today, i will reply about your patch. Best Regards, Jaehoon Chung > > Best regards, > Yangbo Lu > >> -Original Message- >> From: Yangbo

Re: [PATCH 2/3] arm: dts: k3-j7200-r5: Add fs_loader node

2020-08-19 Thread Suman Anna
Hi Lokesh, On 8/18/20 2:09 PM, Suman Anna wrote: > Add a generic fs_loader node to the K3 J7200 R5 common board dts > file and use it as the chosen firmware-loader so that it can be > used for loading various firmwares from a boot media/filesystem > in R5 SPL on K3 J7200 EVM. > > Signed-off-by:

Re: [PATCH v3 1/1] cmd: provide command sbi

2020-08-19 Thread Atish Patra
On Wed, Aug 19, 2020 at 3:29 AM Heinrich Schuchardt wrote: > > Provide a command to display information about the SBI implementation. > > The output might look like: > > => sbi > SBI 0.2 > OpenSBI > Extensions: > sbi_set_timer > sbi_console_putchar > sbi_console_getchar > sbi_clear_ipi >

Re: Revert "ARM: socfpga: Remove socfpga_sdram_apply_static_cfg()

2020-08-19 Thread Ralph Siemsen
On Wed, Aug 19, 2020 at 09:28:39PM +0200, Marek Vasut wrote: Is the F2SDRAM port enabled in your case ? Is there a way I can check this via software? Unfortunately I do not have access to Quartus/Qsys files, nor the person who did the design. Ralph

Re: [PATCH] arm: imx6q_logic: Enable I2C PMIC

2020-08-19 Thread Fabio Estevam
Hi Adam, On Wed, Aug 19, 2020 at 9:13 AM Adam Ford wrote: > The issue I am seeing is U-Boot specific, because Linux doesn't power > this rail down. I'd rather not keep this regulator-always-on in > Linux, and I want to keep the devices trees between U-Boot and Linux Yes, I also prefer to

Re: [PATCH 4/5] usb: xhci: Add Qualcomm DWC3 xHCI driver

2020-08-19 Thread Marek Vasut
On 8/19/20 8:22 PM, Tom Rini wrote: [...] >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include Please keep the list sorted. >> +/* Declare global data pointer */ >> +DECLARE_GLOBAL_DATA_PTR; >> + >> +struct ipq_xhci_platdata { >> +

Re: Revert "ARM: socfpga: Remove socfpga_sdram_apply_static_cfg()

2020-08-19 Thread Marek Vasut
On 8/19/20 8:35 PM, Ralph Siemsen wrote: > Hi Wolfgang et al., > > On Fri, Aug 07, 2020 at 05:49:13PM +0200, Wolfgang Grandegger wrote: >> >> >> Am 07.08.20 um 17:05 schrieb Dinh Nguyen: >>> >>> On 8/6/20 7:36 AM, Wolfgang Grandegger wrote: Am 06.08.20 um 13:04 schrieb Marek Vasut: > On

[PATCH] ARM: imx6q_logic: Fix broken booting by moving fdt_addr_r address

2020-08-19 Thread Adam Ford
The loading address is too close to the kernel address, so newer kernels may overlap memory space, so loading the device tree may corrupt zImage. This patch moves the fdt_addr_r to 0x1800 which is also consistent with some other i.MX6Q boards. Signed-off-by: Adam Ford diff --git

Re: Revert "ARM: socfpga: Remove socfpga_sdram_apply_static_cfg()

2020-08-19 Thread Ralph Siemsen
Hi Wolfgang et al., On Fri, Aug 07, 2020 at 05:49:13PM +0200, Wolfgang Grandegger wrote: Am 07.08.20 um 17:05 schrieb Dinh Nguyen: On 8/6/20 7:36 AM, Wolfgang Grandegger wrote: Am 06.08.20 um 13:04 schrieb Marek Vasut: On 8/6/20 12:53 PM, Wolfgang Grandegger wrote: This reverts commit

Re: [PATCH 4/5] usb: xhci: Add Qualcomm DWC3 xHCI driver

2020-08-19 Thread Tom Rini
On Mon, Aug 17, 2020 at 12:36:05PM +0200, Robert Marko wrote: > Add driver for Qualcomm DWC3 based dual role xHCI USB controller. > Currently tested on IPQ40xx, but should support other Qualcomm SoC families > as well. > > Signed-off-by: Robert Marko > --- > MAINTAINERS

RE: [EXT] [PATCH 2/2] arm: mvebu: Espressobin: Setup MTD partitions when booting kernel

2020-08-19 Thread Kostya Porotchkin
> -Original Message- > From: Pali Rohár > Sent: Wednesday, August 19, 2020 17:24 > To: Stefan Roese ; Kostya Porotchkin > Cc: u-boot@lists.denx.de > Subject: [EXT] [PATCH 2/2] arm: mvebu: Espressobin: Setup MTD partitions > when booting kernel > > External Email > >

RE: [EXT] [PATCH 1/2] arm: mvebu: Espressobin: Make SPI env offset compatible with Marvell's U-Boot

2020-08-19 Thread Kostya Porotchkin
> -Original Message- > From: Pali Rohár > Sent: Wednesday, August 19, 2020 17:24 > To: Stefan Roese ; Kostya Porotchkin > Cc: u-boot@lists.denx.de > Subject: [EXT] [PATCH 1/2] arm: mvebu: Espressobin: Make SPI env offset > compatible with Marvell's U-Boot > > External Email > >

RE: [EXT] [PATCH 2/2] arm: dts: a37x0: enable sd card support on espressobin

2020-08-19 Thread Kostya Porotchkin
> -Original Message- > From: Pali Rohár > Sent: Wednesday, August 19, 2020 17:20 > To: Peng Fan ; Kostya Porotchkin > ; Stefan Roese > Cc: u-boot@lists.denx.de > Subject: [EXT] [PATCH 2/2] arm: dts: a37x0: enable sd card support on > espressobin > > External Email > >

RE: [EXT] [PATCH 1/2] mmc: xenon: set signal voltage and max base clock

2020-08-19 Thread Kostya Porotchkin
> -Original Message- > From: Pali Rohár > Sent: Wednesday, August 19, 2020 17:20 > To: Peng Fan ; Kostya Porotchkin > ; Stefan Roese > Cc: u-boot@lists.denx.de > Subject: [EXT] [PATCH 1/2] mmc: xenon: set signal voltage and max base > clock > > External Email > >

Re: [EXT] [PATCH 2/2] arm64: a37xx: pci: Assert PERST# signal when unloading driver

2020-08-19 Thread Kostya Porotchkin
From: Pali Rohár Sent: Wednesday, August 19, 2020 16:57 To: Stefan Roese; Kostya Porotchkin Cc: u-boot@lists.denx.de Subject: [EXT] [PATCH 2/2] arm64: a37xx: pci: Assert PERST# signal when unloading driver External Email

Re: [EXT] [PATCH 1/2] arm64: a37xx: pci: Make PCIe Reset GPIO DT compatible with Linux kernel DT

2020-08-19 Thread Kostya Porotchkin
From: Pali Rohár Sent: Wednesday, August 19, 2020 16:57 To: Stefan Roese; Kostya Porotchkin Cc: u-boot@lists.denx.de Subject: [EXT] [PATCH 1/2] arm64: a37xx: pci: Make PCIe Reset GPIO DT compatible with Linux kernel DT External Email

[PATCH 1/1] fs/squashfs: Fix Coverity Scan defects

2020-08-19 Thread Joao Marcos Costa
Fix defects such as uninitialized variables and untrusted pointer operations. Most part of the tainted variables and the related defects actually comes from Linux's macro get_unaligned_le**, extensively used in SquashFS code. Add sanity checks for those variables. Signed-off-by: Joao Marcos Costa

[PATCH 0/1] fs/squashfs: Fix Coverity Scan defects

2020-08-19 Thread Joao Marcos Costa
Hello, The following patch fixes most of the defects pointed by Coverity Scan. It depends on the previous patch series adding new decompression algorithms. Some of the defects may be out of SquashFS scope, because they come from a Linux's macro, but sanity checks were added as a possible solution

Re: [PATCH v2 7/9] ram: octeon: Add MIPS Octeon3 DDR4 support (part 3/3)

2020-08-19 Thread Daniel Schwierzeck
Am Montag, den 17.08.2020, 14:12 +0200 schrieb Stefan Roese: > From: Aaron Williams > > This Octeon 3 DDR driver is ported from the 2013 Cavium / Marvell U-Boot > repository. It currently supports DDR4 on Octeon 3. It can be later > extended to support also DDR3 and Octeon 2 platforms. > > Part

Re: [PATCH v2 5/9] ram: octeon: Add MIPS Octeon3 DDR4 support (part 1/3)

2020-08-19 Thread Daniel Schwierzeck
Am Montag, den 17.08.2020, 14:12 +0200 schrieb Stefan Roese: > From: Aaron Williams > > This Octeon 3 DDR driver is ported from the 2013 Cavium / Marvell U-Boot > repository. It currently supports DDR4 on Octeon 3. It can be later > extended to support also DDR3 and Octeon 2 platforms. > > Part

[PATCH 1/2] arm: mvebu: Espressobin: Make SPI env offset compatible with Marvell's U-Boot

2020-08-19 Thread Pali Rohár
Espressobin board comes with Marvell's U-Boot version where U-Boot env is stored in SPI at offset 0x3F. This patch changes env offset in Espressobin defconfig file to match Marvell's U-Boot version. Users who want to use previous or different env offset can still change it in .config file

[PATCH 2/2] arm: mvebu: Espressobin: Setup MTD partitions when booting kernel

2020-08-19 Thread Pali Rohár
Due to different partition layouts in different U-Boot versions, DTS for Espressobin in Linux does not contain any definition of MTD partitions. See commit https://git.kernel.org/stable/c/00954566464a4 for more details. This patch via ft_board_setup() hook fills current partition layout used by

[PATCH 2/2] arm: dts: a37x0: enable sd card support on espressobin

2020-08-19 Thread Pali Rohár
From: Wilson Ding Enabled SDIO slot 0 (south bridge) for SD card on Espressobin board. Change-Id: I51a2debf9fba276b9c4a2bc6da91328d47f443e3 Signed-off-by: Wilson Ding Signed-off-by: Konstantin Porotchkin Reviewed-on: http://vgitil04.il.marvell.com:8080/60945 Tested-by: iSoC Platform CI

[PATCH 1/2] mmc: xenon: set signal voltage and max base clock

2020-08-19 Thread Pali Rohár
From: Evan Wang - The SDIO signal voltage and max base clock frequency setting are missing in driver, which causes SDIO not working. - The patch adds SDIO signal voltage switch support, which is based on regulator-gpio of vqmmc-supply, and sets the max base clock frequency. - Fix the

[PATCH 0/2] arm: mvebu: Espressobin: Add support for SD card

2020-08-19 Thread Pali Rohár
This patch series contains two patches from Marvell's U-Boot repository https://github.com/MarvellEmbeddedProcessors/u-boot-marvell/ which add support for SD card on Espressobin board. I slightly modified them for current mainline U-Boot version. It allows U-Boot to load and boot Linux kernel

Re: [PATCH v2 4/9] mips: octeon: Add octeon_ddr.h header

2020-08-19 Thread Daniel Schwierzeck
Am Montag, den 17.08.2020, 14:12 +0200 schrieb Stefan Roese: > From: Aaron Williams > > This header will be used by the DDR driver (lmc). Its ported from the > 2013 Cavium / Marvell U-Boot repository. > > Signed-off-by: Aaron Williams > Signed-off-by: Stefan Roese > > --- > > Changes in v2:

Re: [PATCH v2 3/9] mips: octeon Add cvmx/cvmx-lmcx-defs.h header

2020-08-19 Thread Daniel Schwierzeck
Am Montag, den 17.08.2020, 14:12 +0200 schrieb Stefan Roese: > From: Aaron Williams > > This header will be used by the DDR driver (lmc). Its ported from the > 2013 Cavium / Marvell U-Boot repository. > > Signed-off-by: Aaron Williams > Signed-off-by: Stefan Roese > > --- > > Changes in v2:

Re: [PATCH v2 2/9] mips: octeon: Add octeon-model.h header

2020-08-19 Thread Daniel Schwierzeck
Am Montag, den 17.08.2020, 14:12 +0200 schrieb Stefan Roese: > From: Aaron Williams > > This header is used by the upcoming DDR driver and potentially by other > drivers ported from the 2013 Cavium / Marvell U-Boot repository. > > Signed-off-by: Aaron Williams > Signed-off-by: Stefan Roese >

Re: [PATCH v1 8/8] mips: octeon: octeon_ebb7304_defconfig: Enable USB support

2020-08-19 Thread Stefan Roese
On 19.08.20 15:54, Daniel Schwierzeck wrote: Am Montag, den 17.08.2020, 15:06 +0200 schrieb Stefan Roese: This patch enables USB support with some helpful commands, like fs support. Signed-off-by: Stefan Roese --- configs/octeon_ebb7304_defconfig | 17 + 1 file changed,

[PATCH 1/2] arm64: a37xx: pci: Make PCIe Reset GPIO DT compatible with Linux kernel DT

2020-08-19 Thread Pali Rohár
Change active-high to active-low and change DT property name from reset-gpio to reset-gpios. This format of gpio reset is used by pci-aardvark driver in Linux kernel. Signed-off-by: Pali Rohár --- arch/arm/dts/armada-3720-db.dts | 2 +- arch/arm/dts/armada-3720-espressobin.dts | 2 +-

[PATCH 2/2] arm64: a37xx: pci: Assert PERST# signal when unloading driver

2020-08-19 Thread Pali Rohár
This change ensures that PCIe card is put into reset state when U-Boot stops using it. DM_FLAG_OS_PREPARE ensures that U-Boot executes driver's remove callback prior booting Linux kernel. Linux kernel pci-aardvark driver needs to reset PCIe card via PERST# signal prior initializing it. If it

Re: [PATCH v1 8/8] mips: octeon: octeon_ebb7304_defconfig: Enable USB support

2020-08-19 Thread Daniel Schwierzeck
Am Montag, den 17.08.2020, 15:06 +0200 schrieb Stefan Roese: > This patch enables USB support with some helpful commands, like fs > support. > > Signed-off-by: Stefan Roese > > --- > > configs/octeon_ebb7304_defconfig | 17 + > 1 file changed, 17 insertions(+) > > diff --git

Re: [PATCH v1 2/8] usb: xhci: xhci_bulk_tx: Don't "BUG" when comparing addresses on Octeon

2020-08-19 Thread Stefan Roese
On 19.08.20 15:49, Daniel Schwierzeck wrote: Am Montag, den 17.08.2020, 15:06 +0200 schrieb Stefan Roese: Octeon uses mapped addresses for virtual and physical memory. Its not that easy to calculate the resulting addresses here. So lets remove this BUG_ON() for Octeon in xhci_bulk_tx().

Re: [PATCH v1 5/8] mips: octeon: Add mangle-port.h

2020-08-19 Thread Stefan Roese
On 19.08.20 15:43, Daniel Schwierzeck wrote: Am Montag, den 17.08.2020, 15:06 +0200 schrieb Stefan Roese: Import platform specific mangle-port.h header, allowing a area specific swapping, which is needed on Octeon for USB & PCI areas. Imported from Linux v5.7. Signed-off-by: Stefan Roese ---

Re: [PATCH v1 2/8] usb: xhci: xhci_bulk_tx: Don't "BUG" when comparing addresses on Octeon

2020-08-19 Thread Daniel Schwierzeck
Am Montag, den 17.08.2020, 15:06 +0200 schrieb Stefan Roese: > Octeon uses mapped addresses for virtual and physical memory. Its not > that easy to calculate the resulting addresses here. So lets remove > this BUG_ON() for Octeon in xhci_bulk_tx(). > > Signed-off-by: Stefan Roese > Cc: Bin Meng

Re: [PATCH v1 5/8] mips: octeon: Add mangle-port.h

2020-08-19 Thread Daniel Schwierzeck
Am Montag, den 17.08.2020, 15:06 +0200 schrieb Stefan Roese: > Import platform specific mangle-port.h header, allowing a area specific > swapping, which is needed on Octeon for USB & PCI areas. > > Imported from Linux v5.7. > > Signed-off-by: Stefan Roese > --- > >

Re: [PATCHv2] armv8: MMU: Mark code memory Executable, any other Non-Executable

2020-08-19 Thread Tom Rini
On Wed, Aug 19, 2020 at 03:17:24PM +0200, Marek Bykowski wrote: > > I think this will have to wait for you to return from holidays and > > investigate more. All I know is that the QEMU models are working as > > expected prior to the patch and fail with it. > > > > -- > > Tom > > From the esr

[RFCv2 03/16] common: Drop linux/printk.h from common header

2020-08-19 Thread Tom Rini
From: Simon Glass Move this out of the common header and include it only where needed. Signed-off-by: Simon Glass --- arch/arm/lib/gic-v3-its.c | 1 + arch/arm/mach-imx/imx8/fdt.c | 1 + arch/arm/mach-k3/common.c

Re: [PATCH 4/9] nand: Kconfig: Change dependency for NAND_ARASAN

2020-08-19 Thread Michal Simek
On 19. 08. 20 15:15, Tom Rini wrote: > On Wed, Aug 19, 2020 at 02:52:11PM +0200, Michal Simek wrote: >> >> >> On 19. 08. 20 14:43, Tom Rini wrote: >>> On Wed, Aug 19, 2020 at 02:36:20PM +0200, Michal Simek wrote: On 19. 08. 20 14:31, Tom Rini wrote: > On Wed, Aug 19, 2020 at 10:44:18AM

Re: [PATCH 5/5] xen: Code style conformity

2020-08-19 Thread Tom Rini
On Wed, Aug 19, 2020 at 03:42:21PM +0300, Anastasiia Lukianenko wrote: > From: Anastasiia Lukianenko > > Signed-off-by: Anastasiia Lukianenko Checkpatch still notes: CHECK: Comparison to NULL could be written "err" And please add a commit message saying what you're cleaning up. Thanks! --

Re: [PATCHv2] armv8: MMU: Mark code memory Executable, any other Non-Executable

2020-08-19 Thread Marek Bykowski
> I think this will have to wait for you to return from holidays and > investigate more. All I know is that the QEMU models are working as > expected prior to the patch and fail with it. > > -- > Tom >From the esr (Exception Syndrome Register) = 0x964F: - EC (Exception Class) -> it is an

Re: [PATCH 2/5] MAINTAINERS: Add maintainers to XEN section

2020-08-19 Thread Tom Rini
On Wed, Aug 19, 2020 at 03:42:18PM +0300, Anastasiia Lukianenko wrote: > From: Anastasiia Lukianenko > > Signed-off-by: Anastasiia Lukianenko > --- > MAINTAINERS | 20 > 1 file changed, 20 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index

Re: [PATCH 1/5] board: xen: Remove unnecessary CONFIG_BOARD_EARLY_INIT_F define and board_early_init_f function

2020-08-19 Thread Tom Rini
On Wed, Aug 19, 2020 at 03:42:17PM +0300, Anastasiia Lukianenko wrote: > From: Anastasiia Lukianenko > > Signed-off-by: Anastasiia Lukianenko Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH 4/9] nand: Kconfig: Change dependency for NAND_ARASAN

2020-08-19 Thread Tom Rini
On Wed, Aug 19, 2020 at 02:52:11PM +0200, Michal Simek wrote: > > > On 19. 08. 20 14:43, Tom Rini wrote: > > On Wed, Aug 19, 2020 at 02:36:20PM +0200, Michal Simek wrote: > >> On 19. 08. 20 14:31, Tom Rini wrote: > >>> On Wed, Aug 19, 2020 at 10:44:18AM +0200, Michal Simek wrote: > >>> >

[RFCv2 15/16] common: Add a comment about the current state of common.h

2020-08-19 Thread Tom Rini
From: Simon Glass This file still includes the auto-generated config.h header. Add a comment as to why, to help guide further work. Signed-off-by: Simon Glass --- include/common.h | 8 scripts/Makefile.autoconf | 19 +++ 2 files changed, 23 insertions(+), 4

[RFCv2 16/16] Makefile: Drop linux/kconfig.h from config.h

2020-08-19 Thread Tom Rini
From: Simon Glass This header always included by the build system (see UBOOTINCLUDE) except when building tools, so is unnecessary. Drop it and update the documentation in the common.h header. Tools generally should not make use of the board config, but a few do. Update the Atmel pmecc tool to

[RFCv2 05/16] common: Drop time.h from common header

2020-08-19 Thread Tom Rini
From: Simon Glass Move this out of the common header and include it only where needed. Signed-off-by: Simon Glass --- api/api.c| 1 + arch/arm/mach-at91/arm920t/clock.c | 1 + arch/arm/mach-at91/arm926ejs/clock.c | 1 +

[RFCv2 14/16] common: Move the build-system includes to a separate file

2020-08-19 Thread Tom Rini
From: Simon Glass At present common.h is used by the build system when calculating dependencies. Move it out into a separate file so we can drop the env_internal.h inclusion from common. Signed-off-by: Simon Glass --- arch/nds32/lib/asm-offsets.c | 1 + include/common.h | 5

[RFCv2 09/16] common: Drop stdarg.h from common header

2020-08-19 Thread Tom Rini
From: Simon Glass Move this out of the common header and include it only where needed. Signed-off-by: Simon Glass --- api/api.c | 1 + board/CZ.NIC/turris_mox/turris_mox.c| 1 + common/lcd_console.c| 1 +

[RFCv2] common: Drop remaining includes in common.h

2020-08-19 Thread Tom Rini
I've picked up Simon's v1 of this series and moved it to an RFC with this v2. I don't intend for this series to go in as-is but rather since I spent a good bit of time iterating over the problems of trying a conversion (in a few places) where we only selectively add back in the header being

[RFCv2 04/16] Fix code style for time functions

2020-08-19 Thread Tom Rini
From: Simon Glass Fix the code style used for some time functions. Signed-off-by: Simon Glass --- arch/arm/cpu/arm920t/imx/timer.c | 2 +- arch/arm/cpu/sa1100/timer.c | 2 +- arch/microblaze/cpu/timer.c | 2 +- arch/powerpc/lib/interrupts.c| 2 +- arch/powerpc/lib/time.c

[RFCv2 02/16] common: Drop display_options.h from common header

2020-08-19 Thread Tom Rini
From: Simon Glass Move this out of the common header and include it only where needed. Signed-off-by: Simon Glass --- arch/arm/cpu/armv7/s5p-common/cpu_info.c | 1 + arch/arm/mach-at91/arm926ejs/eflash.c | 1 + arch/arm/mach-imx/hab.c | 1 +

Re: [PATCH 4/9] nand: Kconfig: Change dependency for NAND_ARASAN

2020-08-19 Thread Michal Simek
On 19. 08. 20 14:43, Tom Rini wrote: > On Wed, Aug 19, 2020 at 02:36:20PM +0200, Michal Simek wrote: >> On 19. 08. 20 14:31, Tom Rini wrote: >>> On Wed, Aug 19, 2020 at 10:44:18AM +0200, Michal Simek wrote: >>> NAND_ARASAN selecting DM_MTD uunconditionally. Driver can be enabled with

Re: [PATCH 4/9] nand: Kconfig: Change dependency for NAND_ARASAN

2020-08-19 Thread Tom Rini
On Wed, Aug 19, 2020 at 02:36:20PM +0200, Michal Simek wrote: > On 19. 08. 20 14:31, Tom Rini wrote: > > On Wed, Aug 19, 2020 at 10:44:18AM +0200, Michal Simek wrote: > > > >> NAND_ARASAN selecting DM_MTD uunconditionally. Driver can be enabled with > >> !DM that's why Kconfig it showing it as

[PATCH 3/5] board: xen: Remove CONFIG_CMD_RUN define as it is set on by default in Kconfig

2020-08-19 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Signed-off-by: Anastasiia Lukianenko --- configs/xenguest_arm64_defconfig | 1 - include/configs/xenguest_arm64.h | 2 -- 2 files changed, 3 deletions(-) diff --git a/configs/xenguest_arm64_defconfig b/configs/xenguest_arm64_defconfig index 46473c251d..1a85166ff5

[PATCH 2/5] MAINTAINERS: Add maintainers to XEN section

2020-08-19 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Signed-off-by: Anastasiia Lukianenko --- MAINTAINERS | 20 1 file changed, 20 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2a281a9a0f..840c7625f1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1028,6 +1028,26 @@ T: git

[PATCH 4/5] board: xen: Remove unnecessary CONFIG_INITRD_TAG and CONFIG_CMDLINE_TAG

2020-08-19 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Signed-off-by: Anastasiia Lukianenko --- include/configs/xenguest_arm64.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/configs/xenguest_arm64.h b/include/configs/xenguest_arm64.h index f3092cb2f8..c44381e966 100644 ---

[PATCH 5/5] xen: Code style conformity

2020-08-19 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Signed-off-by: Anastasiia Lukianenko --- drivers/xen/gnttab.c | 3 ++- drivers/xen/pvblock.c | 12 ++-- include/xen/gnttab.h | 3 +-- lib/sscanf.c | 3 ++- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/drivers/xen/gnttab.c

[PATCH 0/5] Follow up to "Add new board: Xen guest for ARM64" series

2020-08-19 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Removed unnecessary defines, fixed code style errors and added maintainers to XEN section. Anastasiia Lukianenko (5): board: xen: Remove unnecessary CONFIG_BOARD_EARLY_INIT_F define and board_early_init_f function MAINTAINERS: Add maintainers to XEN section

[PATCH 1/5] board: xen: Remove unnecessary CONFIG_BOARD_EARLY_INIT_F define and board_early_init_f function

2020-08-19 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Signed-off-by: Anastasiia Lukianenko --- board/xen/xenguest_arm64/xenguest_arm64.c | 5 - include/configs/xenguest_arm64.h | 2 -- 2 files changed, 7 deletions(-) diff --git a/board/xen/xenguest_arm64/xenguest_arm64.c

  1   2   >