Re: [PATCH v3 14/17] x86: zboot: Add an option to dump the setup information

2020-09-21 Thread Bin Meng
On Sun, Sep 6, 2020 at 4:51 AM Simon Glass wrote: > > There is a lot of information in the setup block and it is quite hard to > decode manually. Add a 'zboot dump' command to decode it into a > human-readable format. > > Signed-off-by: Simon Glass > Reviewed-by: Wolfgang Wallner > --- > >

Re: [PATCH v3 11/17] x86: zboot: Add an 'setup' subcommand

2020-09-21 Thread Bin Meng
On Sun, Sep 6, 2020 at 4:51 AM Simon Glass wrote: > > Add a subcommand that sets up the kernel ready for execution. > > Signed-off-by: Simon Glass > Reviewed-by: Wolfgang Wallner > --- > > Changes in v3: > - Fix 'summary' typo > - Move command help into the patch for each command > >

Re: [PATCH v3 01/17] x86: Update the bootparam header

2020-09-21 Thread Bin Meng
On Sun, Sep 6, 2020 at 4:51 AM Simon Glass wrote: > > This header is missing a few of the newer features from the specification. > Add these as well as a link to the spec. Also use the BIT() macros where > appropriate. > > Signed-off-by: Simon Glass > Reviewed-by: Wolfgang Wallner > --- > > (no

[PATCH] usb: xhci: fix event trb handling missed

2020-09-21 Thread Ran Wang
In functiion xhci_bulk_tx(), when buffer cross 64KB boundary, it will send request in more than 1 Transfer TRB by chaining them, but then handle only 1 event TRB to mark request completed. However, on Layerscape platforms (LS1028A, LS1088A, etc), we observe xhci controller will generated more

Re: [PATCH v5 2/9] timer: Add helper for drivers using timebase fallback

2020-09-21 Thread Rick Chen
> This function is designed to be used when a timer used to be initialized by > the cpu (e.g. RISC-V timers), but now is initialized by dm_timer_init. In > such a case, the timer may prefer to use the clocks and clock-frequency > properties, but should be able to fall back on using the cpu's >

Re: [PATCH v5 1/9] riscv: Rework riscv timer driver to only support S-mode

2020-09-21 Thread Rick Chen
> The riscv-timer driver currently serves as a shim for several riscv timer > drivers. This is not too desirable because it bypasses the usual timer > selection via the driver model. There is no easy way to specify an > alternate timing driver, or have the tick rate depend on the cpu's >

[PATCH 1/2] tools: socfpgaimage: Add check params function for Arria 10 (v1)

2020-09-21 Thread Ley Foon Tan
Add check params function for Arria 10 (header v1). >From [1] page 42, entry point offset should be 4 bytes aligned and any value smaller than 0x14 is invalid. Rename existing socfpgaimage_check_params() for v0. [1]:

[PATCH 2/2] tools: socfpgaimage: Add param entry point (ep) support for Arria 10 (v1)

2020-09-21 Thread Ley Foon Tan
Add param entry point (ep) support for Arria 10 header. User can pass in 'e' option to mkimage to set the entry point. This is an optional option. If not specified, default is 0x14. Signed-off-by: Ley Foon Tan --- tools/socfpgaimage.c | 21 + 1 file changed, 13

Re: [PATCH 6/8] sunxi: board: Set fdtfile to match the DT chosen by SPL

2020-09-21 Thread Samuel Holland
On 9/21/20 7:43 PM, André Przywara wrote: > On 03/09/2020 06:07, Samuel Holland wrote: > > Hi, > >> Previously, fdtfile was always the value in CONFIG_DEFAULT_DEVICE_TREE. >> This meant that, regardless of the DT chosen by SPL (either by changing >> the header in the image or by the selection

Re: u-boot leaves watchdog enabled by default

2020-09-21 Thread Tom Rini
On Mon, Sep 21, 2020 at 10:56:14PM +0200, Michael Walle wrote: > Hi, > > Am 2020-09-21 20:50, schrieb Tom Rini: > > On Mon, Sep 21, 2020 at 08:29:00PM +0200, Heinrich Schuchardt wrote: > > > On 9/21/20 7:30 PM, Tom Rini wrote: > > > > On Mon, Sep 21, 2020 at 11:01:37AM +0200, Stefan Roese wrote:

Re: [PATCH 5/8] sunxi: board: Save the chosen DT name in the SPL header

2020-09-21 Thread Samuel Holland
On 9/21/20 7:41 PM, André Przywara wrote: > On 03/09/2020 06:07, Samuel Holland wrote: >> This overwrites the name loaded from the SPL image. It will be different >> if there was previously no name provided, or if a more accurate name was >> determined by the board variant selection logic. This

Re: [PATCH v3 6/7] riscv: Ensure gp is NULL or points to valid data

2020-09-21 Thread Rick Chen
> This ensures constructs like `if (gd & gd->...) { ... }` work when > accessing the global data pointer. Without this change, it was possible for > a very early trap to cause _exit_trap to directly or indirectly (through > printf) to read arbitrary memory. This could cause a second trap, >

Re: [PATCH v3 4/7] riscv: Clear pending IPIs on initialization

2020-09-21 Thread Rick Chen
> Even though we no longer call smp_function if an IPI was not sent by > U-Boot, we still need to clear any IPIs which were pending from the > execution environment. Otherwise, secondary harts will busy-wait in > secondary_hart_loop, instead of relaxing. > > Along with the previous commit ("riscv:

Re: [PATCH v3 1/7] Revert "riscv: Clear pending interrupts before enabling IPIs"

2020-09-21 Thread Rick Chen
> Clearing MIP.MSIP is not guaranteed to do anything by the spec. In > addition, most existing RISC-V hardware does nothing when this bit is set. > > The following commits "riscv: Use a valid bit to ignore already-pending > IPIs" and "riscv: Clear pending IPIs on initialization" should implement >

Re: u-boot leaves watchdog enabled by default

2020-09-21 Thread Heinrich Schuchardt
On 9/21/20 10:56 PM, Michael Walle wrote: > Hi, > > Am 2020-09-21 20:50, schrieb Tom Rini: >> On Mon, Sep 21, 2020 at 08:29:00PM +0200, Heinrich Schuchardt wrote: >>> On 9/21/20 7:30 PM, Tom Rini wrote: >>> > On Mon, Sep 21, 2020 at 11:01:37AM +0200, Stefan Roese wrote: >>> >> Hi Michael, >>> >>

Re: [PATCH 6/8] sunxi: board: Set fdtfile to match the DT chosen by SPL

2020-09-21 Thread André Przywara
On 03/09/2020 06:07, Samuel Holland wrote: Hi, > Previously, fdtfile was always the value in CONFIG_DEFAULT_DEVICE_TREE. > This meant that, regardless of the DT chosen by SPL (either by changing > the header in the image or by the selection code at runtime), Linux > always used the default DT. >

Re: [PATCH 4/8] sunxi: board: Add PinePhone DT selection logic

2020-09-21 Thread André Przywara
On 03/09/2020 06:07, Samuel Holland wrote: Hi, > There are two different publicly-released revisions of the PinePhone > hardware, versions 1.1 and 1.2; and they need different device trees. > Since some GPIO pins were rerouted, we can use that to distinguish > between them. Nice one. I once had

Re: [PATCH 5/8] sunxi: board: Save the chosen DT name in the SPL header

2020-09-21 Thread André Przywara
On 03/09/2020 06:07, Samuel Holland wrote: > This overwrites the name loaded from the SPL image. It will be different > if there was previously no name provided, or if a more accurate name was > determined by the board variant selection logic. This means that the DT> name > in the SPL header now

Re: [PATCH 3/8] sunxi: board: Simplify Pine A64 DT selection logic

2020-09-21 Thread André Przywara
On 03/09/2020 06:07, Samuel Holland wrote: > Instead of using an entirely separate matching algorithm, simply update > the name of the DT we want to match. Enabling this logic does not depend > on the FIT config name, only on the initial guess of the board name. Yeah, clever solution. The

Re: [PATCH 2/8] sunxi: board: Add a helper to get the SPL DT name

2020-09-21 Thread André Przywara
On 03/09/2020 06:07, Samuel Holland wrote: > This moves the validity checking and typecasts all to one place away > from the string comparison logic, and it detangles the compile-time > and runtime control flow. > > The new helper will also be used by U-Boot proper in a future commit. > >

Re: [PATCH 1/8] sunxi: board: Use a more descriptive variable name

2020-09-21 Thread André Przywara
On 03/09/2020 06:07, Samuel Holland wrote: > The variable "cmp_str" always leaves me wondering if it is the DT name > of the current board (yes) or DT name in the FIT config entry (no). > > In preparation for expanding the functionality here, rename it to > something that obviously means "this is

Re: [PATCH v2] configs: powerpc: Don't set CONFIG_ENV_ADDR for QorIQ SPIFLASH

2020-09-21 Thread Tom Rini
On Tue, Sep 22, 2020 at 09:12:26AM +1200, Chris Packham wrote: > Hi Tom, > > On Mon, Sep 7, 2020 at 10:37 AM Chris Packham wrote: > > > > Setting CONFIG_ENV_ADDR to something other than 0 stops gd->env_addr > > from being allocated dynamically. When the environment is in SPI we need > > it to be

Re: [PATCH v2] configs: powerpc: Don't set CONFIG_ENV_ADDR for QorIQ SPIFLASH

2020-09-21 Thread Chris Packham
Hi Tom, On Mon, Sep 7, 2020 at 10:37 AM Chris Packham wrote: > > Setting CONFIG_ENV_ADDR to something other than 0 stops gd->env_addr > from being allocated dynamically. When the environment is in SPI we need > it to be allocated as we can't use a direct memory mapped address. > > Signed-off-by:

Re: u-boot leaves watchdog enabled by default

2020-09-21 Thread Chris Packham
On Tue, Sep 22, 2020 at 8:56 AM Michael Walle wrote: > > Hi, > > Am 2020-09-21 20:50, schrieb Tom Rini: > > On Mon, Sep 21, 2020 at 08:29:00PM +0200, Heinrich Schuchardt wrote: > >> On 9/21/20 7:30 PM, Tom Rini wrote: > >> > On Mon, Sep 21, 2020 at 11:01:37AM +0200, Stefan Roese wrote: > >> >> Hi

Re: u-boot leaves watchdog enabled by default

2020-09-21 Thread Michael Walle
Hi, Am 2020-09-21 20:50, schrieb Tom Rini: On Mon, Sep 21, 2020 at 08:29:00PM +0200, Heinrich Schuchardt wrote: On 9/21/20 7:30 PM, Tom Rini wrote: > On Mon, Sep 21, 2020 at 11:01:37AM +0200, Stefan Roese wrote: >> Hi Michael, >> Hi Chris, >> >> On 15.09.20 12:44, Chris Packham wrote: >>> >>>

Re: u-boot leaves watchdog enabled by default

2020-09-21 Thread Michael Walle
Hi Stefan, Am 2020-09-21 11:01, schrieb Stefan Roese: Hi Michael, Hi Chris, On 15.09.20 12:44, Chris Packham wrote: On Tue, 15 Sep 2020, 7:54 PM Michael Walle, wrote: Am 2020-09-15 09:44, schrieb Rayagonda Kokatanur: > On Tue, Sep 15, 2020 at 12:56 PM Michael Walle >

Re: [PATCH v3 08/10] spi: dw: Add mem_ops

2020-09-21 Thread Eugeniy Paltsev
> From: Sean Anderson > Sent: Monday, September 14, 2020 18:35 > To: u-boot@lists.denx.de; uboot-snps-...@synopsys.com > Cc: Marek Vasut; Horatiu Vultur; Eugeniy Paltsev; Jagan Teki; Heinrich > Schuchardt; Sean Anderson > Subject: [PATCH v3 08/10] spi: dw: Add mem_ops > > Changes in v3: > - Use

Re: u-boot leaves watchdog enabled by default

2020-09-21 Thread Tom Rini
On Mon, Sep 21, 2020 at 08:29:00PM +0200, Heinrich Schuchardt wrote: > On 9/21/20 7:30 PM, Tom Rini wrote: > > On Mon, Sep 21, 2020 at 11:01:37AM +0200, Stefan Roese wrote: > >> Hi Michael, > >> Hi Chris, > >> > >> On 15.09.20 12:44, Chris Packham wrote: > >>> > >>> > >>> On Tue, 15 Sep 2020, 7:54

Re: u-boot leaves watchdog enabled by default

2020-09-21 Thread Heinrich Schuchardt
On 9/21/20 7:30 PM, Tom Rini wrote: > On Mon, Sep 21, 2020 at 11:01:37AM +0200, Stefan Roese wrote: >> Hi Michael, >> Hi Chris, >> >> On 15.09.20 12:44, Chris Packham wrote: >>> >>> >>> On Tue, 15 Sep 2020, 7:54 PM Michael Walle, wrote: >>> >>> Am 2020-09-15 09:44, schrieb Rayagonda

[ANN] U-Boot v2020.10-rc5 released

2020-09-21 Thread Tom Rini
Hey all, It's release day and time for the final -rc prior to the final. I see a few bugfixes out there I do want to grab related to PowerPC. I'm going to pull this -rc in to -next as well as that should also unblock some other changes as it pulls in a build time fix for rockchip in some cases.

Re: Please pull u-boot-x86

2020-09-21 Thread Tom Rini
On Mon, Sep 21, 2020 at 10:14:11PM +0800, Bin Meng wrote: > Hi Tom, > > This PR contains the following x86 changes for v2020.10: > > - Several ACPI bug fixes > - Intel edison: Move config SYS_MALLOC_LEN to Kconfig > - Use "emmc" in ApolloLake FSP devicetree bindings > > Azure results: PASS >

Re: u-boot leaves watchdog enabled by default

2020-09-21 Thread Tom Rini
On Mon, Sep 21, 2020 at 11:01:37AM +0200, Stefan Roese wrote: > Hi Michael, > Hi Chris, > > On 15.09.20 12:44, Chris Packham wrote: > > > > > > On Tue, 15 Sep 2020, 7:54 PM Michael Walle, wrote: > > > > Am 2020-09-15 09:44, schrieb Rayagonda Kokatanur: > > > On Tue, Sep 15, 2020 at

RE: [PATCH 1/2] arm: rmobile: Add RZ/G2M SoC

2020-09-21 Thread Biju Das
Hi Marek, Thanks for the feedback. > Subject: Re: [PATCH 1/2] arm: rmobile: Add RZ/G2M SoC > > On 9/21/20 12:30 PM, Biju Das wrote: > > [...] > > >> I don't think you need to modify anything then, the DT passed from > >> TFA would contain the correct compatible string in / node, and that > >>

[PATCH] usb: xhci-rcar: Add support for R8A774A1 SoC

2020-09-21 Thread Lad Prabhakar
The R8A774A1 is compatible with the generic rcar-gen3-xhci controller. This patch adds the compatibility flag, to support the xHCI controller. Signed-off-by: Lad Prabhakar Reviewed-by: Biju Das --- drivers/usb/host/xhci-rcar.c | 1 + 1 file changed, 1 insertion(+) diff --git

RE: [PATCH 1/1] rng: stm32mp1: use log() instead of printf()

2020-09-21 Thread Patrick DELAUNAY
Hi Heinrich > From: U-Boot On Behalf Of Heinrich Schuchardt > Sent: jeudi 17 septembre 2020 16:58 > To: Sughosh Ganu > Cc: u-boot@lists.denx.de; Heinrich Schuchardt > Subject: [PATCH 1/1] rng: stm32mp1: use log() instead of printf() > > The logging system provides flexible filtering and

Re: [PATCH v3 7/7] riscv: Add some comments to start.S

2020-09-21 Thread Sean Anderson
On 9/21/20 12:23 PM, Heinrich Schuchardt wrote: > On 21.09.20 13:51, Sean Anderson wrote: >> This adds comments regarding the ordering and purpose of certain >> instructions as I understand them. >> >> Signed-off-by: Sean Anderson >> Reviewed-by: Bin Meng >> Reviewed-by: Rick Chen >>

[PATCH] Revert "i2c: rcar_i2c: Set the slave address from rcar_i2c_xfer"

2020-09-21 Thread Lad Prabhakar
This reverts commit 7c8f821e ("i2c: rcar_i2c: Set the slave address from rcar_i2c_xfer"), as it blindly called rcar_i2c_set_addr() with read argument always set to 1 during xfer which introduced read errors, whereas earlier rcar_i2c_read_common() called rcar_i2c_set_addr() with read set to 1 and

Re: [PATCH] net: ravb: Fix NULL pointer access

2020-09-21 Thread Marek Vasut
On 9/20/20 9:34 AM, Biju Das wrote: Hi, [...] >>> if we remove writephyext, by looking the code at [1], rxc-skew-ps will be >> taken from the device tree[3] and "txc-skew-pc" will be the default >> value(0xf). >>> [3]https://elixir.bootlin.com/u-boot/v2020.10-rc4/source/arch/arm/dts/ >>>

Re: [PATCH 1/2] arm: rmobile: Add RZ/G2M SoC

2020-09-21 Thread Marek Vasut
On 9/21/20 12:30 PM, Biju Das wrote: [...] >> I don't think you need to modify anything then, the DT passed from TFA >> would contain the correct compatible string in / node, and that gets merged >> into the U-Boot control DT early on in fdtdec_board_setup() in: >>

Re: [PATCH v3 7/7] riscv: Add some comments to start.S

2020-09-21 Thread Heinrich Schuchardt
On 21.09.20 13:51, Sean Anderson wrote: > This adds comments regarding the ordering and purpose of certain > instructions as I understand them. > > Signed-off-by: Sean Anderson > Reviewed-by: Bin Meng > Reviewed-by: Rick Chen > Reviewed-by: Leo Liang > --- > > (no changes since v2) > > Changes

RE: [EXT] [PATCH] defconfig: espressobin: enable NET_RANDOM_ETHADDR

2020-09-21 Thread Kostya Porotchkin
> -Original Message- > From: Andre Heider > Sent: Tuesday, September 8, 2020 09:35 > To: Stefan Roese ; Kostya Porotchkin > Cc: Pali Rohár ; u-boot@lists.denx.de > Subject: [EXT] [PATCH] defconfig: espressobin: enable > NET_RANDOM_ETHADDR > > External Email > >

Re: Pending x86 patches

2020-09-21 Thread Simon Glass
Hi Bin, On Sun, 20 Sep 2020 at 20:36, Bin Meng wrote: > > Hi Simon, > > On Mon, Sep 21, 2020 at 3:19 AM Simon Glass wrote: > > > > Hi Bin, > > > > At present I have a lot of x86 patches pending, such that it is very > > difficult to make further progress. > > > > I'd like to suggest that we get

Re: [PATCH] defconfig: espressobin: enable NET_RANDOM_ETHADDR

2020-09-21 Thread Tom Rini
On Mon, Sep 21, 2020 at 03:31:14PM +0200, Pali Rohár wrote: > On Monday 21 September 2020 15:21:44 Marek Behun wrote: > > On Mon, 21 Sep 2020 15:05:22 +0200 > > Pali Rohár wrote: > > > > > Moreover CONFIG_NET_RANDOM_ETHADDR introduce another issue. In case > > > there is no valid mac address,

Please pull u-boot-x86

2020-09-21 Thread Bin Meng
Hi Tom, This PR contains the following x86 changes for v2020.10: - Several ACPI bug fixes - Intel edison: Move config SYS_MALLOC_LEN to Kconfig - Use "emmc" in ApolloLake FSP devicetree bindings Azure results: PASS https://dev.azure.com/bmeng/GitHub/_build/results?buildId=292=results The

Re: [PATCH v3 02/57] x86: acpi: Add base asl files for common x86 devices

2020-09-21 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v3 02/57] x86: acpi: Add base asl files for common x86 devices > > Add common x86 ASL files, taken from coreboot. > > Signed-off-by: Simon Glass > --- > > (no changes since v1) > > arch/x86/include/asm/acpi/chromeos.asl| 108

Re: [PATCH] defconfig: espressobin: enable NET_RANDOM_ETHADDR

2020-09-21 Thread Pali Rohár
On Monday 21 September 2020 15:21:44 Marek Behun wrote: > On Mon, 21 Sep 2020 15:05:22 +0200 > Pali Rohár wrote: > > > Moreover CONFIG_NET_RANDOM_ETHADDR introduce another issue. In case > > there is no valid mac address, U-Boot generates one. But it does not > > pass this generates mac address

Re: [PATCH] cfi_flash: Fix devicetree address determination

2020-09-21 Thread Stefan Roese
Hi Andre, (added Simon) On 18.09.20 19:45, Andre Przywara wrote: The cfi-flash driver uses an open-coded version of the generic algorithm to decode and translate multiple frames of a "reg" property. This starts off the wrong foot by using the address-cells and size-cells properties of *this*

Re: [PATCH] defconfig: espressobin: enable NET_RANDOM_ETHADDR

2020-09-21 Thread Marek Behun
On Mon, 21 Sep 2020 15:05:22 +0200 Pali Rohár wrote: > Moreover CONFIG_NET_RANDOM_ETHADDR introduce another issue. In case > there is no valid mac address, U-Boot generates one. But it does not > pass this generates mac address to kernel and therefore kernel generates > another new random mac

Re: [PATCH] defconfig: espressobin: enable NET_RANDOM_ETHADDR

2020-09-21 Thread Pali Rohár
On Friday 11 September 2020 18:22:04 Marek Behún wrote: > On Fri, 11 Sep 2020 17:52:26 +0200 > Andre Heider wrote: > > > Hi Marek, > > > > On 11/09/2020 13:55, Marek Behún wrote: > > > On Wed, 9 Sep 2020 00:38:31 +0200 Pali Rohár > > > wrote: > > >> On Tuesday 08 September 2020 08:52:56 Tom

Re: [PATCH 4/5] arm: dts: v3s: Add support for simple-framebuffer with DE2/TCON

2020-09-21 Thread Maxime Ripard
On Wed, Sep 16, 2020 at 05:53:35PM +0200, Martin Cerveny wrote: > On Wed, 16 Sep 2020, Maxime Ripard wrote: > > On Wed, Sep 16, 2020 at 04:10:51PM +0200, Martin Cerveny wrote: > > > Add support for DE2 and TCON connected LCD display. > > > Add support for export as "allwinner,simple-framebuffer" >

Re: [PATCH 5/5] sunxi: add drivers and configs needed for LCD display

2020-09-21 Thread Maxime Ripard
On Wed, Sep 16, 2020 at 05:44:58PM +0200, Martin Cerveny wrote: > > > On Wed, 16 Sep 2020, Maxime Ripard wrote: > > On Wed, Sep 16, 2020 at 04:10:52PM +0200, Martin Cerveny wrote: > > > Add PWM and dummy power regulator support. > > > Modify data timings for LCD displays. > > > > > >

Re: [PATCH v3 39/57] tpm: cr50: Add ACPI support

2020-09-21 Thread Andy Shevchenko
On Mon, Sep 21, 2020 at 02:50:56PM +0300, Andy Shevchenko wrote: > On Sun, Sep 06, 2020 at 03:43:47PM -0600, Simon Glass wrote: > > Generate ACPI information for this device so that Linux can use it > > correctly. > > > + ret = acpi_device_write_interrupt_or_gpio(ctx, (struct udevice *)dev, > >

[PATCH v3 7/7] riscv: Add some comments to start.S

2020-09-21 Thread Sean Anderson
This adds comments regarding the ordering and purpose of certain instructions as I understand them. Signed-off-by: Sean Anderson Reviewed-by: Bin Meng Reviewed-by: Rick Chen Reviewed-by: Leo Liang --- (no changes since v2) Changes in v2: - Clarify comments regarding tp

[PATCH v3 4/7] riscv: Clear pending IPIs on initialization

2020-09-21 Thread Sean Anderson
Even though we no longer call smp_function if an IPI was not sent by U-Boot, we still need to clear any IPIs which were pending from the execution environment. Otherwise, secondary harts will busy-wait in secondary_hart_loop, instead of relaxing. Along with the previous commit ("riscv: Use a

[PATCH v3 6/7] riscv: Ensure gp is NULL or points to valid data

2020-09-21 Thread Sean Anderson
This ensures constructs like `if (gd & gd->...) { ... }` work when accessing the global data pointer. Without this change, it was possible for a very early trap to cause _exit_trap to directly or indirectly (through printf) to read arbitrary memory. This could cause a second trap, preventing

[PATCH v3 5/7] riscv: Consolidate fences into AMOs for available_harts_lock

2020-09-21 Thread Sean Anderson
We can reduce the number of instructions needed to use available_harts_lock by using the aq and rl suffixes for AMOs. Signed-off-by: Sean Anderson Reviewed-by: Bin Meng Reviewed-by: Rick Chen --- (no changes since v2) Changes in v2: - Remove fences after amoswaps - Reword commit message

[PATCH v3 1/7] Revert "riscv: Clear pending interrupts before enabling IPIs"

2020-09-21 Thread Sean Anderson
Clearing MIP.MSIP is not guaranteed to do anything by the spec. In addition, most existing RISC-V hardware does nothing when this bit is set. The following commits "riscv: Use a valid bit to ignore already-pending IPIs" and "riscv: Clear pending IPIs on initialization" should implement the

[PATCH v3 2/7] riscv: Match memory barriers between send_ipi_many and handle_ipi

2020-09-21 Thread Sean Anderson
Without a matching barrier on the write side, the barrier in handle_ipi does nothing. It was entirely possible for the boot hart to write to addr, arg0, and arg1 *after* sending the IPI, because there was no barrier on the sending side. Fixes: 90ae281437 ("riscv: add option to wait for ack from

[PATCH v3 0/7] riscv: Correctly handle IPIs already pending upon boot

2020-09-21 Thread Sean Anderson
On the K210, the prior stage bootloader does not clear IPIs. This presents a problem, because U-Boot up until this point assumes (with one exception) that IPIs are cleared when it starts. This series attempts to fix this in a robust manner, and fix several concurrency bugs I noticed while fixing

[PATCH v3 3/7] riscv: Use a valid bit to ignore already-pending IPIs

2020-09-21 Thread Sean Anderson
Some IPIs may already be pending when U-Boot is started. This could be a problem if a secondary hart tries to handle an IPI before the boot hart has initialized the IPI device. To be specific, the Kendryte K210 ROM-based bootloader does not clear IPIs before passing control to U-Boot. Without

Re: [PATCH v3 39/57] tpm: cr50: Add ACPI support

2020-09-21 Thread Andy Shevchenko
On Sun, Sep 06, 2020 at 03:43:47PM -0600, Simon Glass wrote: > Generate ACPI information for this device so that Linux can use it > correctly. > + ret = acpi_device_write_interrupt_or_gpio(ctx, (struct udevice *)dev, > + "ready-gpios"); > + if

RE: [PATCH 1/2] arm: rmobile: Add RZ/G2M SoC

2020-09-21 Thread Biju Das
Hi Marek, Thanks for the feedback. > Subject: Re: [PATCH 1/2] arm: rmobile: Add RZ/G2M SoC > > On 9/19/20 8:35 PM, Biju Das wrote: > > Hi, > > [...] > > > +static const struct udevice_id *of_soc_match_compatible(void) { > > +const struct udevice_id *of_match = soc_ids; int i; > > + >

Re: [PATCH] gpio/mpc83xx_spisel_boot.c: include log.h

2020-09-21 Thread Heiko Schocher
Hello Rasmus, Am 21.09.2020 um 09:48 schrieb Rasmus Villemoes: Fix build failure, it used to get this implicitly through common.h until f7ae49fc4f (common: Drop log.h from common header). Signed-off-by: Rasmus Villemoes --- drivers/gpio/mpc83xx_spisel_boot.c | 1 + 1 file changed, 1

Re: [PATCH v2 0/5] powerpc, mpc83xx: add DM_ETH support

2020-09-21 Thread Heiko Schocher
Hi Rasmus, Am 21.09.2020 um 10:40 schrieb Rasmus Villemoes: On 17/09/2020 06.24, Heiko Schocher wrote: Hello Rasmus, Am 16.09.2020 um 21:35 schrieb Rasmus Villemoes: We have a mpc8309-based board, currently using a U-Boot based on v2020.04. If you have a git tree I can pull these patches

Re: [PATCH] musb-new: Use predefined configuration data for SUN50I_H6

2020-09-21 Thread Roman Stratiienko
CC: linux-su...@googlegroups.com сб, 13 июн. 2020 г. в 22:33, Roman Stratiienko : > > чт, 14 мая 2020 г. в 09:44, Roman Stratiienko : > > > > CC: ja...@amarulasolutions.com > > > > пт, 8 мая 2020 г. в 15:29, Roman Stratiienko : > > > > > > Same was done in the kernel for all devices compatible

Re: [PATCH 1/1] mtd: fix typos in drivers/mtd/Kconfig

2020-09-21 Thread Stefan Roese
On 17.09.20 18:07, Heinrich Schuchardt wrote: Fix a typo %s/interract/interact/ Use Samsung's capitalization of their trademarks %s/onenand/OneNAND/ %s/Hyperflash/HyperFlash/ Please see nits below. Signed-off-by: Heinrich Schuchardt --- drivers/mtd/Kconfig | 6 +++--- 1 file changed,

Re: u-boot leaves watchdog enabled by default

2020-09-21 Thread Stefan Roese
Hi Michael, Hi Chris, On 15.09.20 12:44, Chris Packham wrote: On Tue, 15 Sep 2020, 7:54 PM Michael Walle, wrote: Am 2020-09-15 09:44, schrieb Rayagonda Kokatanur: > On Tue, Sep 15, 2020 at 12:56 PM Michael Walle > wrote: >> >> Hi Stefan, >> >> it appears

Re: [PATCH v2 0/5] powerpc, mpc83xx: add DM_ETH support

2020-09-21 Thread Rasmus Villemoes
On 17/09/2020 06.24, Heiko Schocher wrote: > Hello Rasmus, > > Am 16.09.2020 um 21:35 schrieb Rasmus Villemoes: >> >> We have a mpc8309-based board, currently using a U-Boot based on >> v2020.04. If you have a git tree I can pull these patches from I'll try >> to test them on our hardware. > >

Re: [PATCH v2] cmd: acpi: Print revisions in hex format

2020-09-21 Thread Bin Meng
On Mon, Sep 21, 2020 at 4:34 PM Andy Shevchenko wrote: > > The revisions are usually dates in hex-decimal format representing > mmdd. Print them in hex to see this clearly. > > Before: > ... > FACP 000e5420 f4 (v06 U-BOOT U-BOOTBL 538970376 INTL 0) > DSDT 000e4780 000ba0 (v02 U-BOOT

Re: [PATCH v1] cmd: acpi: Print revisions in hex format

2020-09-21 Thread Andy Shevchenko
2d %.6s %.8s %x %.4s %x)\n", hdr->revision, > >hdr->oem_id, hdr->oem_table_id, hdr->oem_revision, > >hdr->aslc_id, hdr->aslc_revision); > > } else { > > -- > > This unfortunately breaks the

[PATCH v2] cmd: acpi: Print revisions in hex format

2020-09-21 Thread Andy Shevchenko
The revisions are usually dates in hex-decimal format representing mmdd. Print them in hex to see this clearly. Before: ... FACP 000e5420 f4 (v06 U-BOOT U-BOOTBL 538970376 INTL 0) DSDT 000e4780 000ba0 (v02 U-BOOT U-BOOTBL 65536 INTL 538968870) ... After: ... FACP 000e5420

Re: [EXT] Re: [PATCH] defconfig: espressobin: enable NET_RANDOM_ETHADDR

2020-09-21 Thread Stefan Roese
Hi Kosta, On 13.09.20 11:21, Kostya Porotchkin wrote: Good point, so let's assume the user doesn't have a mac stored. Without CONFIG_NET_RANDOM_ETHADDR: * u-boot refuses to do anything network related * Linux generates a random mac, network works With CONFIG_NET_RANDOM_ETHADDR: * u-boot

[PATCH] gpio/mpc83xx_spisel_boot.c: include log.h

2020-09-21 Thread Rasmus Villemoes
Fix build failure, it used to get this implicitly through common.h until f7ae49fc4f (common: Drop log.h from common header). Signed-off-by: Rasmus Villemoes --- drivers/gpio/mpc83xx_spisel_boot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/mpc83xx_spisel_boot.c

[PATCH v2 4/4] board: amlogic: vim3: add support for dynamic PCIe enable

2020-09-21 Thread Neil Armstrong
The VIM3 on-board MCU can mux the PCIe/USB3.0 shared differential lines using a FUSB340TMX USB 3.1 SuperSpeed Data Switch between an USB3.0 Type A connector and a M.2 Key M slot. The PHY driving these differential lines is shared between the USB3.0 controller and the PCIe Controller, thus only a

[PATCH v2 1/4] ARM: dts: sync amlogic G12A/SM1 DT from Linux 5.9-rc1

2020-09-21 Thread Neil Armstrong
This imports the G12A & SM1 SoC and boards DT changes from the Linux commit 9123e3a74ec7 ("Linux 5.9-rc1"). Signed-off-by: Neil Armstrong Reviewed-by: Kevin Hilman Tested-by: Kevin Hilman --- arch/arm/dts/meson-g12-common.dtsi| 55 --- arch/arm/dts/meson-g12b-odroid-n2.dts

[PATCH v2 3/4] configs: vim3: use the vim3 board support

2020-09-21 Thread Neil Armstrong
Use the newly added VIM3 board support instead of the generic W400. Signed-off-by: Neil Armstrong Reviewed-by: Kevin Hilman Tested-by: Kevin Hilman --- configs/khadas-vim3_defconfig | 2 +- configs/khadas-vim3l_defconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v2 0/4] amlogic: vim3: add support for dynamic PCIe enable

2020-09-21 Thread Neil Armstrong
The VIM3 on-board MCU can mux the PCIe/USB3.0 shared differential lines using a FUSB340TMX USB 3.1 SuperSpeed Data Switch between an USB3.0 Type A connector and a M.2 Key M slot. The PHY driving these differential lines is shared between the USB3.0 controller and the PCIe Controller, thus only a

[PATCH v2 2/4] board: amlogic: add a vim3 specific board support

2020-09-21 Thread Neil Armstrong
The VIM3 will need a specific code to enable PCIe if enabled in the MCU, thus add a specific board support for VIM3 & VIM3L. Signed-off-by: Neil Armstrong Reviewed-by: Kevin Hilman Tested-by: Kevin Hilman --- board/amlogic/vim3/MAINTAINERS | 9 + board/amlogic/vim3/Makefile| 6

RE: [PATCH 1/2] reset: ast2500: Use SCU for reset control

2020-09-21 Thread Ryan Chen
> -Original Message- > From: ChiaWei Wang > Sent: Tuesday, September 8, 2020 3:21 PM > To: Ryan Chen ; max...@google.com; > u-boot@lists.denx.de > Cc: BMC-SW > Subject: [PATCH 1/2] reset: ast2500: Use SCU for reset control > > The System Control Unit (SCU) controller of Aspeed SoCs

RE: [PATCH 2/2] cosmetic: reset: ast2500: Rename driver and configs

2020-09-21 Thread Ryan Chen
> -Original Message- > From: ChiaWei Wang > Sent: Tuesday, September 8, 2020 3:21 PM > To: Ryan Chen ; max...@google.com; > u-boot@lists.denx.de > Cc: BMC-SW > Subject: [PATCH 2/2] cosmetic: reset: ast2500: Rename driver and configs > > 1. Rename AST2500 reset driver from

[PATCH 10/11] board/freescale: Remove P5020DS board support

2020-09-21 Thread Priyanka Jain
Remove NXP powerpc P5020DS board support as it is no longer maintained. Signed-off-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/Kconfig | 8 --- board/freescale/common/Makefile| 1 - board/freescale/corenet_ds/Kconfig | 15 --

[PATCH 08/11] configs: Remove P3041DS secure boot configs

2020-09-21 Thread Priyanka Jain
Remove NXP powerpc P3041DS secure boot configs as they are no longer maintained. Signed-off-by: Priyanka Jain --- board/freescale/corenet_ds/MAINTAINERS | 1 - configs/P3041DS_NAND_SECURE_BOOT_defconfig | 62 -- configs/P3041DS_SECURE_BOOT_defconfig | 60

[PATCH 11/11] configs: Remove P5040DS secure boot configs

2020-09-21 Thread Priyanka Jain
Remove NXP powerpc P5040DS secure boot configs as they are no longer maintained. Signed-off-by: Priyanka Jain --- configs/P5040DS_NAND_SECURE_BOOT_defconfig | 63 -- configs/P5040DS_SECURE_BOOT_defconfig | 60 - 2 files changed, 123 deletions(-)

[PATCH 09/11] powerpc:Remove P4080DS secure boot configs

2020-09-21 Thread Priyanka Jain
Remove NXP powerpc P4080DS secure boot configs as they are no longer maintained. Signed-off-by: Priyanka Jain --- board/freescale/corenet_ds/MAINTAINERS | 1 - configs/P4080DS_SECURE_BOOT_defconfig | 59 -- 2 files changed, 60 deletions(-) delete mode 100644

[PATCH 03/11] board/freescale: Remove P1025RDB board support

2020-09-21 Thread Priyanka Jain
Remove NXP powerpc P1025RDB board support as it is no longer maintained. Signed-off-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/Kconfig| 9 --- board/freescale/p1_p2_rdb_pc/Kconfig| 1 - board/freescale/p1_p2_rdb_pc/MAINTAINERS| 5 --

[PATCH 07/11] board/freescale: Remove P1024RDB board support

2020-09-21 Thread Priyanka Jain
Remove NXP powerpc P1024RDB board support as it is no longer maintained. Signed-off-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/Kconfig | 9 --- board/freescale/p1_p2_rdb_pc/Kconfig | 1 - board/freescale/p1_p2_rdb_pc/MAINTAINERS | 5 -- configs/P1024RDB_36BIT_defconfig

[PATCH 05/11] board/freescale: Remove P1020MBG board support

2020-09-21 Thread Priyanka Jain
Remove NXP powerpc P1020MBG board support as it is no longer maintained. Signed-off-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/Kconfig | 9 --- board/freescale/p1_p2_rdb_pc/Kconfig | 3 +- board/freescale/p1_p2_rdb_pc/MAINTAINERS | 4 --

[PATCH 04/11] board/freescale: Remove P1020UTM board support

2020-09-21 Thread Priyanka Jain
Remove NXP powerpc P1020UTM board support as it is no longer maintained. Signed-off-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/Kconfig | 9 --- board/freescale/p1_p2_rdb_pc/Kconfig | 1 - board/freescale/p1_p2_rdb_pc/MAINTAINERS | 4 --

[PATCH 06/11] board/freescale: Remove P1021RDB board support

2020-09-21 Thread Priyanka Jain
Remove NXP powerpc P1021RDB board support as it is no longer maintained. Signed-off-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/Kconfig | 9 -- board/freescale/p1_p2_rdb_pc/Kconfig | 1 - board/freescale/p1_p2_rdb_pc/MAINTAINERS | 8 --

[PATCH 02/11] configs: Remove P1010RDB secure boot configs

2020-09-21 Thread Priyanka Jain
Remove NXP powerpc P1010RDB secure boot configs as they are no longer maintained. Signed-off-by: Priyanka Jain --- board/freescale/p1010rdb/MAINTAINERS | 12 .../P1010RDB-PA_36BIT_NAND_SECBOOT_defconfig | 65 -- .../P1010RDB-PA_36BIT_NOR_SECBOOT_defconfig | 64

[PATCH 01/11] board/freescale: Remove p1023rdb board support

2020-09-21 Thread Priyanka Jain
Remove NXP powerpc p1023rdb board support as it is no longer maintained. Signed-off-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/Kconfig | 8 - board/freescale/p1023rdb/Kconfig | 12 - board/freescale/p1023rdb/MAINTAINERS | 6 - board/freescale/p1023rdb/Makefile| 8 -

[PATCH 00/11] powerpc: Remove some platforms support

2020-09-21 Thread Priyanka Jain
Remove some of NXP powerpc platforms support which are no longer maintained. Previous versions of uboot are recommended for use Priyanka Jain (11): board/freescale: Remove p1023rdb board support configs: Remove P1010RDB secure boot configs board/freescale: Remove P1025RDB board support