Re: [PATCH 0/5] Fix, update and cleanup brppt1 board

2022-08-25 Thread Wolfgang Wallner
Complete series is Reviewed-by: Wolfgang Wallner From: Bernhard Messerklinger Sent: Thursday, August 25, 2022 8:53 To: u-boot@lists.denx.de Cc: Wolfgang Wallner ; Bernhard Messerklinger ; Andre Przywara ; Christian Hewitt ; Hannes Schmelzer ; Marcel Ziswiler ; Marek Vasut ; Pali Rohár

Re: [PATCH 1/5] brppt1: Remove unused board variants

2022-08-29 Thread Wolfgang Wallner
 delete mode 100644 arch/arm/dts/am335x-brppt1-spi.dts >  delete mode 100644 configs/brppt1_nand_defconfig >  delete mode 100644 configs/brppt1_spi_defconfig Reviewed-by: Wolfgang Wallner

Re: [PATCH 2/5] brppt1: Fix SPL boot stage

2022-08-29 Thread Wolfgang Wallner
m/dts/am335x-brppt1-mmc-u-boot.dtsi | 80 ++ >  configs/brppt1_mmc_defconfig   |  2 +- >  2 files changed, 81 insertions(+), 1 deletion(-) >  create mode 100644 arch/arm/dts/am335x-brppt1-mmc-u-boot.dtsi Reviewed-by: Wolfgang Wallner

Re: [PATCH 3/5] brppt1: Cleanup device tree

2022-08-29 Thread Wolfgang Wallner
; Signed-off-by: Bernhard Messerklinger > > --- > >  arch/arm/dts/am335x-brppt1-mmc-u-boot.dtsi |  32 >  arch/arm/dts/am335x-brppt1-mmc.dts | 201 - >  2 files changed, 32 insertions(+), 201 deletions(-) Reviewed-by: Wolfgang Wallner

Re: [PATCH 4/5] include: configs: brppt1: Fix commit 0ea4fc4dcf90

2022-08-29 Thread Wolfgang Wallner
ude/configs/brppt1.h | 1 - >  2 files changed, 1 insertion(+), 2 deletions(-) Reviewed-by: Wolfgang Wallner

Re: [PATCH 5/5] brppt1: Update environment to support new boot concept

2022-08-29 Thread Wolfgang Wallner
igned-off-by: Bernhard Messerklinger > > --- > >  configs/brppt1_mmc_defconfig |  4 +++- >  include/configs/brppt1.h | 18 -- >  2 files changed, 15 insertions(+), 7 deletions(-) Reviewed-by: Wolfgang Wallner

Re: [PATCH v2 07/16] x86: zboot: Set up a sub-command structure

2020-08-31 Thread Wolfgang Wallner
; > Change the 's' string variable to const while we are here. > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Fix comment about argv[0] in do_zboot_parent() > > arch/x86/lib/zimage.c | 64 +++---- > 1 file changed, 58 insertions(+), 6 deletions(-) Reviewed-by: Wolfgang Wallner

Re: [PATCH v2 08/57] x86: acpi: Support external GNVS tables

2020-09-04 Thread Wolfgang Wallner
Hi Simon, Bin, -"Simon Glass" schrieb: - > Betreff: [PATCH v2 08/57] x86: acpi: Support external GNVS tables > > At present U-Boot puts a magic number in the ASL for the GNVS table and > searches for it later. > > Add a Kconfig option to use a different approach, where the ASL files > d

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

2020-09-08 Thread Wolfgang Wallner
> ... > > Fixes: 0b885bcfd9b0 ("acpi: Add an acpi command") > Cc: Wolfgang Wallner > Signed-off-by: Andy Shevchenko > --- > cmd/acpi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Wolfgang Wallner Tested-by: Wolfgang Wallner Tested on

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

2020-09-08 Thread Wolfgang Wallner
Hi Andy, -"Andy Shevchenko" schrieb: - > Betreff: Re: [PATCH v1] cmd: acpi: Print revisions in hex format > > On Tue, Sep 8, 2020 at 5:58 PM Wolfgang Wallner > wrote: > > -"Andy Shevchenko" schrieb: - > > > Betreff: [PAT

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

2020-09-09 Thread Wolfgang Wallner
Hi Andy, -"Andy Shevchenko" schrieb: - > Betreff: Re: [PATCH v1] cmd: acpi: Print revisions in hex format > > On Tue, Sep 08, 2020 at 05:32:08PM +0200, Wolfgang Wallner wrote: > > -"Andy Shevchenko" schrieb: - > > > On Tue, Sep 8, 2

[PATCH 2/2] x86: acpi: Add memset to initialize SPCR table

2020-09-09 Thread Wolfgang Wallner
Add a missing memset to acpi_create_spcr(). The other acpi_create_() functions perform a memset on their structures, acpi_create_spcr() does not and as a result the contents of this table are partly uninitialized (and thus random after every reset). Signed-off-by: Wolfgang Wallner

[PATCH 1/2] x86: acpi: Fix calculation of DSDT length

2020-09-09 Thread Wolfgang Wallner
() * Calculate DSDT length * acpi_align() Signed-off-by: Wolfgang Wallner --- arch/x86/lib/acpi_table.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c index 3a93fedfc3..6b827bfa3f 100644 --- a/arch/x86/lib/acpi_table.c +++ b

Re: [PATCH] acpi: device: Fix check for sequence number

2020-09-10 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: Re: [PATCH] acpi: device: Fix check for sequence number > > Hi Wolfgang, > > On Thu, 13 Aug 2020 at 01:23, Wolfgang Wallner > wrote: > > > > Hi Simon, > > > > -"Simon Glass"

chromebook_coral.dts: multiple FSP-S entries for same parameters

2020-09-10 Thread Wolfgang Wallner
Hi Simon, chromebook_coral.dts contains multiple entries of fsps,pcie-root-port-en and fsps,pcie-rp-hot-plug. I don't think this is intentional, as the code parsing the FSP-S settings will only use one of those settings. regards, Wolfgang -- 8< -

[PATCH] x86: fsp: Replace e-mmc with emmc in devicetree bindings

2020-09-11 Thread Wolfgang Wallner
sed a lot within U-Boot, while "e-mmc" is only used in the FSP bindings. Signed-off-by: Wolfgang Wallner --- arch/x86/cpu/apollolake/fsp_bindings.c | 6 +++--- doc/device-tree-bindings/fsp/fsp2/apollolake/fsp-m.txt | 2 +- doc/device-tree-bindings/fsp/fsp2/apollol

Re: [PATCH] x86: Drop duplicate declaration of emulator state

2020-09-14 Thread Wolfgang Wallner
the option ROMs. > > Reported-by: Heinrich Schuchardt > Signed-off-by: Simon Glass > --- > > drivers/bios_emulator/x86emu/sys.c | 4 > 1 file changed, 4 insertions(+) Tested-by: Wolfgang Wallner Tested by building chromebook_coral_defconfig on an Arch Linux with GCC 10.1.0 regards, Wolfgang

[PATCH] dt-bindings: fsp: Fix Apollo Lake FSP-S devicetree bindings

2021-03-23 Thread Wolfgang Wallner
An entry is missing in the FSP-S devicetree bindings, and as a result the description for the next few following entries is off by one line. Signed-off-by: Wolfgang Wallner --- .../fsp/fsp2/apollolake/fsp-s.txt | 19 ++- 1 file changed, 10 insertions(+), 9

[PATCH] x86: mtrr: Fix function descriptions

2021-03-23 Thread Wolfgang Wallner
Fix copy/paste errors in the descriptions of mtrr_close () and mtrr_set(). Signed-off-by: Wolfgang Wallner --- arch/x86/include/asm/mtrr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/mtrr.h b/arch/x86/include/asm/mtrr.h index 3a98aacdef

Antwort: [PATCH v1 01/35] dm: core: Add an ACPI name for the root node

2020-04-30 Thread Wolfgang Wallner
CPI_OPS_PTR > > drivers/core/root.c | 13 + > 1 file changed, 13 insertions(+) Reviewed-by: Wolfgang Wallner

Antwort: [PATCH v1 02/35] acpi: Add a function to get a device path and scope

2020-04-30 Thread Wolfgang Wallner
| 95 >-- > 5 files changed, 212 insertions(+), 13 deletions(-) > create mode 100644 include/acpi/acpi_device.h > create mode 100644 lib/acpi/acpi_device.c Reviewed-by: Wolfgang Wallner

Antwort: Re: [PATCH v2 00/35] dm: Add programmatic generation of ACPI tables (part B)

2020-05-12 Thread Wolfgang Wallner
Hi Bin, -"Bin Meng" schrieb: - > Betreff: Re: [PATCH v2 00/35] dm: Add programmatic generation of ACPI tables > (part B) > > Hi Wolfgang, Andy, > > On Mon, May 11, 2020 at 4:34 AM Simon Glass wrote: > > > > NOTE: I have resent this as v1 to avoid confusion > > > > This is split from t

Antwort: [PATCH v2] test: Use ut_asserteq_mem() where possible

2020-05-12 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - >Betreff: [PATCH v2] test: Use ut_asserteq_mem() where possible > >Quite a few tests still use ut_assertok(memcmp(...)) and variants. >Modify >them to use the macro designed for this purpose. > >Suggested-by: Wolfgang W

Antwort: [PATCH v2 03/35] acpi: Add a way to check device status

2020-05-13 Thread Wolfgang Wallner
device status. > >Signed-off-by: Simon Glass >--- > >Changes in v2: None >Changes in v1: None > > include/acpi/acpi_device.h | 28 > lib/acpi/acpi_device.c | 5 + > test/dm/acpi.c | 12 ++++ > 3 files changed, 45 insertions(+) Reviewed-by: Wolfgang Wallner

Antwort: [PATCH v2 04/35] irq: Add a method to convert an interrupt to ACPI

2020-05-13 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - >Betreff: [PATCH v2 04/35] irq: Add a method to convert an interrupt >to ACPI > >When generating ACPI tables we need to convert IRQs in U-Boot to the >ACPI >structures required by ACPI. This is a SoC-specific conversion and >cannot >be handled by generi

Antwort: [PATCH v2 05/35] acpi: Support generation of ACPI code

2020-05-14 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v2 05/35] acpi: Support generation of ACPI code > > Add a new file to handle generating ACPI code programatically. This is > used when information must be dynamically added to the tables, e.g. the > SSDT. > > Initial support is just

Antwort: [PATCH v2 32/39] irq: Add a method to convert an interrupt to ACPI

2020-03-18 Thread Wolfgang Wallner
Hi Simon, "Simon Glass" schrieb am 09.03.2020 04:44:56: > Von: "Simon Glass" > An: "U-Boot Mailing List" , > Kopie: "Bin Meng" , "Wolfgang Wallner" > , "Andy Shevchenko" > , "Simon Glass" > Datum: 0

Antwort: [PATCH v2 32/39] irq: Add a method to convert an interrupt to ACPI

2020-03-18 Thread Wolfgang Wallner
Hi Simon, I'm resending this mail, as my email client has broken the formating in the first attempt, sorry. "Simon Glass" schrieb am 09.03.2020 04:44:56: > Von: "Simon Glass" > An: "U-Boot Mailing List" , > Kopie: "Bin Meng" , "

Antwort: [PATCH v2 33/39] acpi: Add support for SSDT generation

2020-03-18 Thread Wolfgang Wallner
property */ > + ut_asserteq('c', buf[2]); > + ut_asserteq('d', buf[3]); > + > + ut_asserteq('z', buf[4]); > + > + return 0; > +} > +DM_TEST(dm_test_acpi_fill_ssdt, DM_TESTF_SCAN_PDATA | DM_TESTF_SCAN_FDT); > -- > 2.25.1.481.gfbce0eb801-goog > Reviewed-by: Wolfgang Wallner

Antwort: [PATCH v2 33/39] acpi: Add support for SSDT generation

2020-03-19 Thread Wolfgang Wallner
Hi Simon, during the review of a later patch I spotted a typo in this patch that I missed initially, see below. "Simon Glass" schrieb am 09.03.2020 04:44:57: > Betreff: [PATCH v2 33/39] acpi: Add support for SSDT generation > > Some devices need to generate code for the Secondary System Descri

Antwort: [PATCH v3 11/29] x86: apl: Add Global NVS table header

2020-03-31 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - >An: u-boot@lists.denx.de >Von: "Simon Glass" >Datum: 31.03.2020 01:14 >Kopie: "Andy Shevchenko" , >"Wolfgang Wallner" , "Leif >Lindholm" , "Simon Glass" , "Bin &g

Antwort: [PATCH v3 12/29] dm: core: Add basic ACPI support

2020-03-31 Thread Wolfgang Wallner
+++ > include/dm/device.h | 5 +++ > include/log.h | 2 ++ > 6 files changed, 123 insertions(+) > create mode 100644 drivers/core/acpi.c > create mode 100644 include/dm/acpi.h > Reviewed-by: Wolfgang Wallner

Antwort: [PATCH v3 13/29] dts: Add a binding for hid-over-i2c

2020-03-31 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - >An: u-boot@lists.denx.de >Von: "Simon Glass" >Datum: 31.03.2020 01:14 >Kopie: "Andy Shevchenko" , >"Wolfgang Wallner" , "Leif >Lindholm" , "Simon Glass" >Be

Antwort: [PATCH v3 19/29] acpi: Add a central location for table version numbers

2020-03-31 Thread Wolfgang Wallner
PL_ should alwys be empty anyway. At least that is how I understood the assigment to SPL_ in Makefile.spl. > obj-$(CONFIG_EFI) += efi/ > obj-$(CONFIG_EFI_LOADER) += efi_driver/ > obj-$(CONFIG_EFI_LOADER) += efi_loader/ [snip] Reviewed-by: Wolfgang Wallner

Antwort: [PATCH v3 20/29] acpi: Add support for DMAR

2020-03-31 Thread Wolfgang Wallner
sary __packed >- Move __packed to after struct > > include/acpi/acpi_table.h | 57 >+++ > lib/acpi/acpi_table.c | 28 +++ > test/dm/acpi.c| 13 + > 3 files changed, 98 insertions(+) Reviewed-by: Wolfgang Wallner

Antwort: [PATCH v3 13/29] dts: Add a binding for hid-over-i2c

2020-04-01 Thread Wolfgang Wallner
Hi Simon, -"U-Boot" schrieb: - [snip] >> + - acpi,ddn : Contains the string to use as the _DDN (DOS (Disk >Operating >> +System) Device Name) >> + - acpi,hid : Contains the string to use as the HID (Hardware ID) >> +identifier _HID >> + - acpi,probed : Tells U-Boot to add 'linux

Antwort: Re: [ANN] U-Boot v2020.04-rc4 released

2020-04-01 Thread Wolfgang Wallner
Hi Andy, > On Wed, Apr 1, 2020 at 2:54 PM Andy Shevchenko > wrote: > > > > On Tue, Mar 31, 2020 at 2:31 AM Tom Rini wrote: > > > > > > Hey all, > > > > > > So, I've gotten out of the habit of tagging rcs on cycle. This month I > > > have been taking in changes sparingly and I'm not concerned th

Antwort: Re: [PATCH v2 1/2] serial: ns16550: Revert "Move PCI access from ofdata_to_platdata() to probe()"

2020-04-03 Thread Wolfgang Wallner
Hi Andy, Bin, > -"Andy Shevchenko" schrieb: - > On Thu, Apr 2, 2020 at 7:55 AM Bin Meng wrote: > > On Thu, Apr 2, 2020 at 1:55 AM Simon Glass wrote: > > > On Wed, 1 Apr 2020 at 11:39, Andy Shevchenko > > > wrote: > > > > On Wed, Apr 01, 2020 at 10:56:26AM -0600, Simon Glass wrote: >

Antwort: [PATCH v3] serial: ns16550: Revert "Move PCI access from ofdata_to_platdata() to probe()"

2020-04-03 Thread Wolfgang Wallner
bcbd35612675c. Note, it doesn't affect SoCFPGA case. Cc: Wolfgang Wallner Signed-off-by: Andy Shevchenko --- v3: drop wrong patch, better explanation in the commit message drivers/serial/ns16550.c | 40 1 file changed, 12 insertions(+), 28

Antwort: [PATCH] serial: ns16550: Fix ordering of getting base address

2020-04-03 Thread Wolfgang Wallner
Hi Bin, Thanks for taking care of this! -"Bin Meng" schrieb: - >An: "Simon Glass" , "Tom Rini" >, "Andy Shevchenko" >, "Wolfgang Wallner" >, "Chee Hong Ang" >, "U-Boot Mailing List" > >Von: &quo

Antwort: [PATCH v2] serial: ns16550: Fix ordering of getting base address

2020-04-03 Thread Wolfgang Wallner
Move PCI access from >ofdata_to_platdata() to probe()") >Reported-by: Andy Shevchenko >Signed-off-by: Bin Meng >Tested-by: Andy Shevchenko >Reviewed-by: Wolfgang Wallner >Tested-by: Wolfgang Wallner > >--- > >Changes in v2: >- not to break Fixes, etc

Antwort: Re: [PATCH v3] serial: ns16550: Fix ordering of getting base address

2020-04-06 Thread Wolfgang Wallner
based ns16550 wrapper >> > driver tries to access plat->base before calling probe(), it is >> > still subject to break. >> > >> > Fixes: 720f9e1fdb0c9 ("serial: ns16550: Move PCI access from >ofdata_to_platdata() to probe()") >> > Reported-by

Antwort: [PATCH v3 21/29] test: Add hexdump.h to the unit test header

2020-04-06 Thread Wolfgang Wallner
unit test header > >Changes in v2: None > > include/test/ut.h | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Wolfgang Wallner

[PATCH 1/2] drivers: p2sb: replace Primary-to-Sideband Bus with Primary to Sideband Bridge

2020-07-02 Thread Wolfgang Wallner
In Intel's documentation the term P2SB stands for "Primary to Sideband Bridge". Signed-off-by: Wolfgang Wallner --- drivers/misc/Kconfig | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index 6bb5bc77e9..b6

[PATCH 0/2] Currently it is possible to select the P2SB driver without selecting the

2020-07-02 Thread Wolfgang Wallner
P2SB uclass, which can't work. Fix this by adding a "depends on" in Kconfig. While at it, correct the meaning of P2SB (according to Intel's documentation P2SB stands for "Primary to Sideband Bridge"). Wolfgang Wallner (2): drivers: p2sb: replace Primary-t

[PATCH 2/2] x86: p2sb: make P2SB driver depend on P2SB uclass

2020-07-02 Thread Wolfgang Wallner
Currently it is possible to select the P2SB driver without selecting the P2SB uclass, which can't work. Fix this by adding a "depends on" in Kconfig. Signed-off-by: Wolfgang Wallner --- arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/Kconfig b/a

[PATCH v2 0/2] x86: p2sb: P2SB fixes

2020-07-02 Thread Wolfgang Wallner
quot;). Remark: I have resent this series as V2 as I had messed up the cover letter in V1. Changes in v2: - Fixed cover letter Wolfgang Wallner (2): drivers: p2sb: replace Primary-to-Sideband Bus with Primary to Sideband Bridge x86: p2sb: make P2SB driver depend on P2SB uclass arch/x86/K

[PATCH v2 1/2] drivers: p2sb: replace Primary-to-Sideband Bus with Primary to Sideband Bridge

2020-07-02 Thread Wolfgang Wallner
In Intel's documentation the term P2SB stands for "Primary to Sideband Bridge". Signed-off-by: Wolfgang Wallner --- (no changes since v1) drivers/misc/Kconfig | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/misc/Kconfig b/drivers/mis

[PATCH v2 2/2] x86: p2sb: make P2SB driver depend on P2SB uclass

2020-07-02 Thread Wolfgang Wallner
Currently it is possible to select the P2SB driver without selecting the P2SB uclass, which can't work. Fix this by adding a "depends on" in Kconfig. Signed-off-by: Wolfgang Wallner --- Changes in v2: - Fixed cover letter arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+

Antwort: Re: [PATCH v2 0/2] x86: p2sb: P2SB fixes

2020-07-02 Thread Wolfgang Wallner
Hi Bin, -"Bin Meng" schrieb: - > Betreff: Re: [PATCH v2 0/2] x86: p2sb: P2SB fixes > > Hi Wolfgang, > > On Wed, Jul 1, 2020 at 5:06 PM Wolfgang Wallner > wrote: > > > > Currently it is possible to select the P2SB driver without selecting the >

[PATCH v2 2/2] x86: p2sb: make P2SB driver depend on P2SB uclass

2020-07-02 Thread Wolfgang Wallner
Currently it is possible to select the P2SB driver without selecting the P2SB uclass, which can't work. Fix this by adding a "depends on" in Kconfig. Signed-off-by: Wolfgang Wallner --- (no changes since v2) Changes in v2: - Fixed cover letter arch/x86/Kconfig | 1 + 1

[PATCH v3 1/2] drivers: p2sb: replace Primary-to-Sideband Bus with Primary to Sideband Bridge

2020-07-02 Thread Wolfgang Wallner
In Intel's documentation the term P2SB stands for "Primary to Sideband Bridge". Signed-off-by: Wolfgang Wallner --- Changes in v3: - Replaced the term in two more places drivers/misc/Kconfig | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drive

[PATCH v2 1/2] drivers: p2sb: replace Primary-to-Sideband Bus with Primary to Sideband Bridge

2020-07-02 Thread Wolfgang Wallner
In Intel's documentation the term P2SB stands for "Primary to Sideband Bridge". Signed-off-by: Wolfgang Wallner --- Changes in v3: - Replaced the term in two more places drivers/misc/Kconfig | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drive

[PATCH v3 2/2] x86: p2sb: make P2SB driver depend on P2SB uclass

2020-07-02 Thread Wolfgang Wallner
Currently it is possible to select the P2SB driver without selecting the P2SB uclass, which can't work. Fix this by adding a "depends on" in Kconfig. Signed-off-by: Wolfgang Wallner --- (no changes since v2) Changes in v2: - Fixed cover letter arch/x86/Kconfig | 1 + 1

Re: [PATCH v1 33/43] x86: irq: Support flags for acpi_gpe

2020-07-02 Thread Wolfgang Wallner
TYPE_SHARED (1 << 4) > +#define X86_IRQ_TYPE_WAKE (1 << 5) Nit: BIT(4) and BIT(4) ? > + > +#endif > -- > 2.27.0.290.gba653c62da-goog Reviewed-by: Wolfgang Wallner

Re: [PATCH v1 41/43] x86: acpi: Correct the version of the MADT

2020-07-02 Thread Wolfgang Wallner
dd a central location for table version number") has introduced defines for the different MADT revision numbers in include/acpi/acpi_table.h, e.g. ACPI_MADT_REV_ACPI_3_0 for the value 2. Could you use this instead of the hardcoded value 2? > > madt->lapic_addr = LAPIC_DEFAULT_B

Re: [PATCH v1 37/43] x86: Store the coreboot table address in global_data

2020-07-02 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v1 37/43] x86: Store the coreboot table address in global_data > > At present this information is used to locate and parse the tables but is > not stored. Store it so that we can display it to the user, e.g. with the > 'bdinfo' comman

[PATCH v3 0/2] x86: p2sb: P2SB fixes

2020-07-02 Thread Wolfgang Wallner
quot;). Remark: I have resent this series as V2 as I had messed up the cover letter in V1. Changes in v3: - Replaced the term in two more places Changes in v2: - Fixed cover letter Wolfgang Wallner (2): drivers: p2sb: replace Primary-to-Sideband Bus with Primary to Sideband Bridge x86: p2

[PATCH v2 0/2] x86: p2sb: P2SB fixes

2020-07-02 Thread Wolfgang Wallner
quot;). Remark: I have resent this series as V2 as I had messed up the cover letter in V1. Changes in v3: - Replaced the term in two more places Changes in v2: - Fixed cover letter Wolfgang Wallner (2): drivers: p2sb: replace Primary-to-Sideband Bus with Primary to Sideband Bridge x86: p2

Re: [PATCH v1 23/43] x86: Add error checking for csrt table generation

2020-07-02 Thread Wolfgang Wallner
anges in v1: > - Add new patch to add error checking for csrt table generation > > arch/x86/lib/acpi_table.c | 19 +-- > 1 file changed, 13 insertions(+), 6 deletions(-) Reviewed-by: Wolfgang Wallner

Re: [PATCH v1 22/43] x86: Add support for building up an NHLT structure

2020-07-02 Thread Wolfgang Wallner
Hi Simon, I dont know NHLT well enough to actually review the code, but I did compare the files in this patch to the version in coreboot. Most of the changes are obvious (coding style, spelling, ...), but some things are not, see the remarks below. -"Simon Glass" schrieb: - > Betreff: [P

Re: [PATCH v1 19/43] x86: pinctrl: Add multi-ACPI control

2020-07-02 Thread Wolfgang Wallner
t; + if (IS_ENABLED(CONFIG_INTEL_PINCTRL_MULTI_ACPI_DEVICES)) > + return offset; > group = pinctrl_group_index(comm, offset); > > /* If pad base is not set then use GPIO number as ACPI pin number */ > -- > 2.27.0.290.gba653c62da-goog Reviewed-by: Wolfgang Wallner

Re: [PATCH v2 20/44] x86: pinctrl: Add multi-ACPI control

2020-07-08 Thread Wolfgang Wallner
n the pin number relative to the pinctrl device. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > Reviewed-by: Wolfgang Wallner > --- > > Changes in v2: > - Add help for CONFIG_INTEL_PINCTRL_MULTI_ACPI_DEVICES Thanks for adding the help text. There is a typ

Re: [PATCH v1 22/43] x86: Add support for building up an NHLT structure

2020-07-08 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: Re: [PATCH v1 22/43] x86: Add support for building up an NHLT > structure > > Hi Wolfgang, > > On Thu, 2 Jul 2020 at 02:11, Wolfgang Wallner > wrote: > > > > Hi Simon, > > > > I dont

Re: [PATCH v1 25/43] x86: gpio: Add support for obtaining ACPI info for a GPIO

2020-07-08 Thread Wolfgang Wallner
Hi Simon, Bin, -"Simon Glass" schrieb: - > Betreff: Re: [PATCH v1 25/43] x86: gpio: Add support for obtaining ACPI info > for a GPIO > > Hi Bin, > > On Tue, 30 Jun 2020 at 01:47, Bin Meng wrote: > > > > Hi Simon, > > > > On Mon, Jun 15, 2020 at 11:58 AM Simon Glass wrote: > > > > > >

Re: [PATCH v2 21/44] x86: pinctrl: Set up itss in the probe() method

2020-07-08 Thread Wolfgang Wallner
t; (no changes since v1) > > drivers/pinctrl/intel/pinctrl.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) Reviewed-by: Wolfgang Wallner

Re: [PATCH v2 34/44] x86: apl: Fix save/restore of ITSS priorities

2020-07-08 Thread Wolfgang Wallner
ommon/itss.c | 25 +++-- > arch/x86/include/asm/global_data.h | 1 + > arch/x86/include/asm/itss.h| 2 +- > drivers/misc/irq-uclass.c | 2 +- > 6 files changed, 44 insertions(+), 10 deletions(-) Reviewed-by: Wolfgang Wallner

Re: [PATCH v2 28/44] i2c: designware_i2c: Support ACPI table generation

2020-07-08 Thread Wolfgang Wallner
; + return log_msg_ret("read", -E2BIG); > + > + speed = dev_read_u32_default(dev, "clock-frequency", 10); > + acpigen_write_scope(ctx, path); > + ret = dw_i2c_gen_speed_config(dev, speed, &config); > + if (ret) > + return log_msg_ret("config", ret); > + dw_i2c_acpi_write_speed_config(ctx, &config); > + acpigen_pop_len(ctx); > + > + return 0; > +} > + > +struct acpi_ops dw_i2c_acpi_ops = { > + .fill_ssdt = dw_i2c_acpi_fill_ssdt, > +}; > + > static const struct udevice_id designware_i2c_pci_ids[] = { > { .compatible = "snps,designware-i2c-pci" }, > { .compatible = "intel,apl-i2c", .data = INTEL_APL }, > @@ -124,6 +217,7 @@ U_BOOT_DRIVER(i2c_designware_pci) = { > .remove = designware_i2c_remove, > .flags = DM_FLAG_OS_PREPARE, > .ops= &designware_i2c_ops, > + ACPI_OPS_PTR(&dw_i2c_acpi_ops) > }; > > static struct pci_device_id designware_pci_supported[] = { > -- > 2.27.0.383.g050319c2ae-goog Reviewed-by: Wolfgang Wallner

Re: [PATCH v2 38/44] x86: Store the coreboot table address in global_data

2020-07-08 Thread Wolfgang Wallner
dif > void *itss_priv; /* Private ITSS data pointer */ > ulong acpi_start; /* Start address of ACPI tables */ > + ulong coreboot_table; /* Address of coreboot table */ > }; > > #endif > -- > 2.27.0.383.g050319c2ae-goog Reviewed-by: Wolfgang Wallner

Antwort: Re: [PATCH 009/108] x86: apl: Move p2sb ofdata reading to the correct method

2020-02-14 Thread Wolfgang Wallner
Hello Bin, Simon, -"Bin Meng" schrieb: - > +Wolfgang Wallner > > On Mon, Jan 27, 2020 at 1:08 PM Simon Glass wrote: > > > > With P2SB the initial BAR (base-address register) is set up by TPL and > > this is used unchanged right through U-Boot. &

Antwort: Re: dm: core: Board failing to boot since commit 82de42fa1468 (parent data/probe)

2020-02-17 Thread Wolfgang Wallner
Hi Bin, Simon, -"Bin Meng" schrieb: - > Hi Wolfgang, > > On Wed, Feb 12, 2020 at 1:14 AM Simon Glass wrote: > > > > +Bin > > > > Hi Wolfgang, > > > > On Tue, 11 Feb 2020 at 06:59, Wolfgang Wallner > > wrote: > > &g

[RFC PATCH] serial: ns16550: Move PCI access from ofdata_to_platdata() to probe()

2020-02-18 Thread Wolfgang Wallner
it has not yet been probed. To fix this, move that access to the probe() method of @dev instead." Signed-off-by: Wolfgang Wallner Fixes: 82de42fa1468 ("dm: core: Allocate parent data separate from probing parent") --- The discussion leading to this patch is located at https://lists.

[PATCH] x86: p2sb: Drop 'apl' prefix

2020-02-18 Thread Wolfgang Wallner
intel_common folder. Signed-off-by: Wolfgang Wallner --- This patch follows a similar rational for P2SB as commit 03fe85a27b23 ("x86: itss: Remove apl-prefix") for the ITSS. arch/x86/cpu/intel_common/p2sb.c | 30 +-- arch/x86/dts/chromebook_coral.dts

[PATCH] doc: Chromebook Coral: Fix typo for "Top of CAR region"

2020-02-21 Thread Wolfgang Wallner
The value for "Top of CAR region" should be fefc, not fefc000. This matches the Kconfig default values, as SYS_CAR_ADDR and SYS_CAR_SIZE are 0xfef0 and 0xc respectively. Signed-off-by: Wolfgang Wallner --- doc/board/google/chromebook_coral.rst | 2 +- 1 file changed, 1

[PATCH 1/2] x86: cpu_x86: Make cpu_x86_get_count() non-static

2020-02-25 Thread Wolfgang Wallner
The function cpu_x86_get_count() is also useful for other modules. Make it non-static and add a prototype + description. Signed-off-by: Wolfgang Wallner --- arch/x86/cpu/cpu_x86.c | 2 +- arch/x86/include/asm/cpu_x86.h | 12 2 files changed, 13 insertions(+), 1 deletion

[PATCH 0/2] x86: apl: Add support for different number of cores

2020-02-25 Thread Wolfgang Wallner
() non-static - drops the Apollo Lake specific get_count implementation and uses cpu_x86_get_count() instead With the changes in this series also Apollo Lake variants with a different number of cores boot correctly. Wolfgang Wallner (2): x86: cpu_x86: Make cpu_x86_get_count() non-static

[PATCH 2/2] x86: apl: Use cpu_x86_get_count() for cpu_ops.get_count

2020-02-25 Thread Wolfgang Wallner
. Signed-off-by: Wolfgang Wallner --- arch/x86/cpu/apollolake/cpu.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/x86/cpu/apollolake/cpu.c b/arch/x86/cpu/apollolake/cpu.c index 3d05c82a5c..aa7a3dbd63 100644 --- a/arch/x86/cpu/apollolake/cpu.c +++ b/arch/x86/cpu

Antwort: Re: [RFC PATCH] serial: ns16550: Move PCI access from ofdata_to_platdata() to probe()

2020-02-28 Thread Wolfgang Wallner
Hi Bin, -"Bin Meng" schrieb: - > Hi Wolfgang, > > [snip] > > Unfortunately this patch breaks several ARM board: > > +drivers/built-in.o: In function `ofnode_get_parent': > +drivers/core/ofnode.c:235: undefined reference to `fdt_parent_offset' > +drivers/built-in.o: In function `ofnode_

[PATCH v2] serial: ns16550: Move PCI access from ofdata_to_platdata() to probe()

2020-03-02 Thread Wolfgang Wallner
I bus in that method is not allowed, since it has not yet been probed. To fix this, move that access to the probe() method of @dev instead." Signed-off-by: Wolfgang Wallner Fixes: 82de42fa1468 ("dm: core: Allocate parent data separate from probing parent") --- The discussion leading

Antwort: Re: [PATCH v1] x86: acpi: Refactor XSDT handling in acpi_add_table()

2020-03-03 Thread Wolfgang Wallner
Hi Andy, -"U-Boot" schrieb: - > > [snip] > > > > > > P.S. Briefly looking at the last ~30 patches I can say that the idea > > > > > looks good, implementation needs more work. For example, there is > > > > > 'linux,name' property. Shouldn't be referred at all. Linux names and > > > > > o

Antwort: [PATCH v2 02/39] spi: Add SPI mode enums

2020-03-09 Thread Wolfgang Wallner
initions with DM_SPI > > include/spi.h | 33 + > 1 file changed, 33 insertions(+) Reviewed-by: Wolfgang Wallner

Antwort: [PATCH v2 10/39] pci: Adjust dm_pci_read_bar32() to return errors correctly

2020-03-09 Thread Wolfgang Wallner
ion to avoid masking in this case. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v2: None > > drivers/pci/pci-uclass.c | 9 - > 1 file changed, 8 insertions(+), 1 deletion(-) Reviewed-by: Wolfgang Wallner

Antwort: [PATCH v2 08/39] x86: Correct wording of coreboot source code

2020-03-09 Thread Wolfgang Wallner
v2: None > > arch/x86/cpu/coreboot/timestamp.c | 4 ++-- > arch/x86/include/asm/arch-coreboot/timestamp.h | 4 ++-- > arch/x86/include/asm/intel_pinctrl_defs.h | 2 -- > 3 files changed, 4 insertions(+), 6 deletions(-) Reviewed-by: Wolfgang Wallner

Antwort: [PATCH v2 11/39] x86: apl: Add Global NVS table header

2020-03-09 Thread Wolfgang Wallner
Hi Simon, > -"Simon Glass" schrieb: - > > Add the C version of this header. It includes a few Chrome OS bits which > are disabled for a normal build. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Drop the Chrome OS pieces > - Rename the 'coreboot' console to 'U-Boot' >

Antwort: [PATCH v2 12/39] dm: core: Add basic ACPI support

2020-03-09 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > > ACPI (Advanced Configuration and Power Interface) is an Intel standard > for specifying information about a platform. It is a little like device > tree but considerably more complicated and with more backslashes. A > primary difference is that it s

Antwort: [PATCH v2 13/39] acpi: Add a binding for ACPI settings in the device tree

2020-03-10 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > > Devices need to report various identifiers in the ACPI tables. Rather than > hard-coding these in drivers it is typically better to put them in the > device tree. > > Add a binding file to describe this. > > Signed-off-by: Simon Glass > --- > >

Antwort: [PATCH v2 15/39] x86: Move acpi_table header to main include/ directory

2020-03-10 Thread Wolfgang Wallner
2 +- > arch/x86/lib/zimage.c | 2 +- > include/acpi_table.h | 394 ++ > lib/efi_loader/efi_acpi.c | 2 +- > 12 files changed, 404 insertions(+), 386 deletions(-) Reviewed-by: Wolfgang Wallner

Antwort: [PATCH v2 16/39] acpi: Add an __ACPI__ preprocessor symbol

2020-03-10 Thread Wolfgang Wallner
file.lib | 4 ++-- > 3 files changed, 10 insertions(+), 2 deletions(-) Reviewed-by: Wolfgang Wallner

Antwort: [PATCH v2 17/39] acpi: Add a central location for table version numbers

2020-03-10 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > > Each ACPI table has its own version number. Add the version numbers in a > single function so we can keep them consistent and easily see what > versions are supported. > > Start a new acpi_table file in a generic directory to house this function.

Antwort: [PATCH v2 18/39] acpi: Add support for DMAR

2020-03-10 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > > The DMA Remapping Reporting (DMAR) table contains information about DMA > remapping. > > Add a version simple version of this table with only the minimum fields > filled out. i.e. no entries. > > Reviewed-by: Bin Meng > Signed-off-by: Simon Glas

Antwort: [PATCH v2 19/39] acpi: Move acpi_fill_header() to generic code

2020-03-10 Thread Wolfgang Wallner
t; --- > > Changes in v2: None > > arch/x86/lib/acpi_table.c | 9 - > include/acpi_table.h | 10 ++ > lib/acpi/acpi_table.c | 10 ++ > test/dm/acpi.c| 28 > 4 files changed, 48 insertions(+), 9 d

Antwort: [PATCH v2 14/39] acpi: Add a simple sandbox test

2020-03-10 Thread Wolfgang Wallner
patch > > arch/sandbox/dts/test.dts | 4 ++ > arch/sandbox/include/asm/acpi_table.h | 9 + > include/dm/uclass-id.h| 1 + > test/dm/Makefile | 1 + > test/dm/acpi.c| 55 +++ > 5 files changed, 70 insertions(+) Reviewed-by: Wolfgang Wallner

Antwort: [PATCH v2 19/39] acpi: Move acpi_fill_header() to generic code

2020-03-11 Thread Wolfgang Wallner
Hi Simon, looking at this patch some more I have another question, see below. -"Simon Glass" schrieb: - > > This function needs to be used by sandbox for tests. Move it into the > generic directory. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- [snip] > @@ -81,3 +82

Antwort: [PATCH v2 20/39] acpi: Add a method to write tables for a device

2020-03-11 Thread Wolfgang Wallner
0 +++ > test/dm/acpi.c| 43 +++ > 4 files changed, 138 insertions(+) Reviewed-by: Wolfgang Wallner

Antwort: [PATCH v2 22/39] x86: Allow devices to write ACPI tables

2020-03-11 Thread Wolfgang Wallner
g start_addr) > acpi_inc_align(ctx, spcr->header.length); > acpi_add_table(rsdp, spcr); > > + acpi_write_dev_tables(ctx); > + > addr = map_to_sysmem(ctx->current); > debug("current = %lx\n", addr); > > -- > 2.25.1.481.gfbce0eb801-goog Reviewed-by: Wolfgang Wallner

Antwort: [PATCH v2 21/39] acpi: Convert part of acpi_table to use acpi_ctx

2020-03-11 Thread Wolfgang Wallner
gn(struct acpi_ctx *ctx, uint amount) > +{ > + ctx->current += amount; > + acpi_align(ctx); > +} > diff --git a/test/dm/acpi.c b/test/dm/acpi.c > index b87fbd16b0..0bd7e51ac9 100644 > --- a/test/dm/acpi.c > +++ b/test/dm/acpi.c > @@ -152,3 +152,31 @@ static int dm_test_acpi_write_tables(struct > unit_test_state *uts) > return 0; > } > DM_TEST(dm_test_acpi_write_tables, DM_TESTF_SCAN_PDATA | DM_TESTF_SCAN_FDT); > + > +/* Test basic ACPI functions */ > +static int dm_test_acpi_basic(struct unit_test_state *uts) > +{ > + struct acpi_ctx ctx; > + > + /* Check align works */ > + ctx.current = (void *)5; > + acpi_align(&ctx); > + ut_asserteq_ptr((void *)16, ctx.current); > + > + /* Check that align does nothing if already aligned */ > + acpi_align(&ctx); > + ut_asserteq_ptr((void *)16, ctx.current); > + acpi_align_large(&ctx); > + ut_asserteq_ptr((void *)64, ctx.current); > + acpi_align_large(&ctx); > + ut_asserteq_ptr((void *)64, ctx.current); > + > + /* Check incrementing */ > + acpi_inc(&ctx, 3); > + ut_asserteq_ptr((void *)67, ctx.current); > + acpi_inc_align(&ctx, 3); > + ut_asserteq_ptr((void *)80, ctx.current); > + > + return 0; > +} > +DM_TEST(dm_test_acpi_basic, DM_TESTF_SCAN_PDATA | DM_TESTF_SCAN_FDT); > -- > 2.25.1.481.gfbce0eb801-goog Apart from the nits above: Reviewed-by: Wolfgang Wallner

Antwort: [PATCH v2 24/39] acpi: Move acpi_add_table() to generic code

2020-03-11 Thread Wolfgang Wallner
xsdt->entry[i] = map_to_sysmem(table); > + > + /* Fix XSDT length */ > + xsdt->header.length = sizeof(struct acpi_table_header) + > + (sizeof(u64) * (i + 1)); > + > + /* Re-calculate checksum */ > + xsdt->header.checksum = 0; > + xsdt->header.checksum = > + table_compute_checksum((u8 *)xsdt, xsdt->header.length); > + } > + > + return 0; > +} > diff --git a/test/dm/acpi.c b/test/dm/acpi.c > index 0bd7e51ac9..a2a57a29a6 100644 > --- a/test/dm/acpi.c > +++ b/test/dm/acpi.c > @@ -21,10 +21,14 @@ static int testacpi_write_tables(const struct udevice > *dev, >struct acpi_ctx *ctx) > { > struct acpi_dmar *dmar; > + int ret; > > dmar = (struct acpi_dmar *)ctx->current; > acpi_create_dmar(dmar, DMAR_INTR_REMAP); > ctx->current += sizeof(struct acpi_dmar); > + ret = acpi_add_table(ctx, dmar); > + if (ret) > + return log_msg_ret("add", ret); > > return 0; > } > -- > 2.25.1.481.gfbce0eb801-goog Reviewed-by: Wolfgang Wallner

Antwort: [PATCH v2 25/39] acpi: Put table-setup code in its own function

2020-03-11 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > > We always write three basic tables to ACPI at the start. Move this into > its own function, along with acpi_fill_header(), so we can write a test > for this code. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > arch/x86/lib/ac

Antwort: [PATCH v2 23/39] acpi: Drop code for missing XSDT from acpi_write_rsdp()

2020-03-11 Thread Wolfgang Wallner
; 1 file changed, 2 insertions(+), 13 deletions(-) Reviewed-by: Wolfgang Wallner

Antwort: [PATCH v2 26/39] acpi: Move the xsdt pointer to acpi_ctx

2020-03-11 Thread Wolfgang Wallner
--- > test/dm/acpi.c| 5 + > 3 files changed, 23 insertions(+), 22 deletions(-) Reviewed-by: Wolfgang Wallner

  1   2   3   >