Patrick Georgi has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/55168 )
Change subject: Ada: Enable the newest Ada standard + extensions supported by gnat
......................................................................
Ada: Enable the newest Ada standard + extensions supported by gnat
We're a bit in a bind here: The only way to declare an array containing
atomic or volatile members is to mark the member type atomic or
volatile as well.
The only way to mark a member type atomic or volatile seems to be to
use Ada202x.
Change-Id: If2f627bdf7f29ffdd4433b4ca608b2291ebe1551
Signed-off-by: Patrick Georgi <pgeorgi(a)google.com>
---
M Makefile.inc
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/68/55168/1
diff --git a/Makefile.inc b/Makefile.inc
index eb505e5..fce53fa 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -435,7 +435,7 @@
endif
endif
-ADAFLAGS_common += -gnatp
+ADAFLAGS_common += -gnatp -gnatX
ADAFLAGS_common += -Wuninitialized -Wall -Werror
ADAFLAGS_common += -pipe -g -nostdinc
ADAFLAGS_common += -Wstrict-aliasing -Wshadow
--
To view, visit https://review.coreboot.org/c/coreboot/+/55168
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If2f627bdf7f29ffdd4433b4ca608b2291ebe1551
Gerrit-Change-Number: 55168
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: newchange
Patrick Georgi has uploaded this change for review. ( https://review.coreboot.org/c/libhwbase/+/55167 )
Change subject: Make gcc11 compatible
......................................................................
Make gcc11 compatible
It's much more picky when dealing with arrays containing volatile or
atomic members.
Meanwhile System.Address_To_Access_Conversions doesn't seem to be
able to return an element with atomic/volatile aspect, so everything
fell apart.
Entire untested except that it builds (for me)
Change-Id: Ieb50c4dd8ba96248c3051a7282f9e5cdbb270344
Signed-off-by: Patrick Georgi <pgeorgi(a)google.com>
---
M ada/dynamic_mmio/hw-mmio_range.adb
M common/hw-mmio_range.ads
M common/hw-pci-dev.ads
M common/hw-pci-mmconf.adb
M common/hw-pci-mmconf.ads
5 files changed, 30 insertions(+), 31 deletions(-)
git pull ssh://review.coreboot.org:29418/libhwbase refs/changes/67/55167/1
diff --git a/ada/dynamic_mmio/hw-mmio_range.adb b/ada/dynamic_mmio/hw-mmio_range.adb
index 86c8d1b..60cbbd5 100644
--- a/ada/dynamic_mmio/hw-mmio_range.adb
+++ b/ada/dynamic_mmio/hw-mmio_range.adb
@@ -14,14 +14,12 @@
with HW.Debug;
with GNAT.Source_Info;
-with System.Storage_Elements;
-with System.Address_To_Access_Conversions;
package body HW.MMIO_Range
with
Refined_State =>
- (State => null, -- the contents accessed, Range_A points to it
- Base_Address => Range_A) -- the address, stored in Range_A
+ (State => null, -- the contents accessed, Base points to it
+ Base_Address => (Base, Range_A)) -- the address, stored in Base
is
pragma Warnings (Off, "implicit dereference",
Reason => "This is what this package is about.");
@@ -29,12 +27,6 @@
Debug_Reads : constant Boolean := False;
Debug_Writes : constant Boolean := False;
- type Range_Access is access all Array_T;
- package Conv_Range is new System.Address_To_Access_Conversions (Array_T);
-
- Range_A : Range_Access :=
- Range_Access (Conv_Range.To_Pointer (System'To_Address (Base_Addr)));
-
procedure Read (Value : out Element_T; Index : in Index_T)
is
use type Word32;
@@ -45,9 +37,8 @@
pragma Debug (Debug_Reads, Debug.Put_Word32 (Word32 (Value)));
pragma Debug (Debug_Reads, Debug.Put (" <- "));
pragma Debug (Debug_Reads, Debug.Put_Word32
- (Word32 (System.Storage_Elements.To_Integer
- (Conv_Range.To_Address (Conv_Range.Object_Pointer (Range_A)))) +
- Word32 (Index) * (Element_T'Size / 8)));
+ (Word32 (System.Storage_Elements.To_Integer (Base))
+ + Word32 (Index) * (Element_T'Size / 8)));
pragma Debug (Debug_Reads, Debug.New_Line);
end Read;
@@ -60,17 +51,17 @@
pragma Debug (Debug_Writes, Debug.Put_Word32 (Word32 (Value)));
pragma Debug (Debug_Writes, Debug.Put (" -> "));
pragma Debug (Debug_Writes, Debug.Put_Word32
- (Word32 (System.Storage_Elements.To_Integer
- (Conv_Range.To_Address (Conv_Range.Object_Pointer (Range_A)))) +
- Word32 (Index) * (Element_T'Size / 8)));
+ (Word32 (System.Storage_Elements.To_Integer (Base))
+ + Word32 (Index) * (Element_T'Size / 8)));
pragma Debug (Debug_Writes, Debug.New_Line);
Range_A (Index) := Value;
end Write;
- procedure Set_Base_Address (Base : Word64) is
+ procedure Set_Base_Address (New_Base : Word64) is
+ Address : System.Storage_Elements.Integer_Address;
begin
- Range_A := Range_Access
- (Conv_Range.To_Pointer (System'To_Address (Base)));
+ Address := System.Storage_Elements.Integer_Address (New_Base);
+ Base := System.Storage_Elements.To_Address(Address);
end Set_Base_Address;
end HW.MMIO_Range;
diff --git a/common/hw-mmio_range.ads b/common/hw-mmio_range.ads
index 8495f73..86ddcd6 100644
--- a/common/hw-mmio_range.ads
+++ b/common/hw-mmio_range.ads
@@ -13,17 +13,17 @@
--
with System;
+with System.Storage_Elements;
generic
Base_Addr : Word64;
type Element_T is mod <>;
type Index_T is range <>;
- type Array_T is array (Index_T) of Element_T;
package HW.MMIO_Range
with
Abstract_State =>
((State with External),
- Base_Address),
+ (Base_Address with External)),
Initializes => Base_Address
is
@@ -31,6 +31,18 @@
procedure Write (Index : in Index_T; Value : in Element_T);
- procedure Set_Base_Address (Base : Word64);
+ procedure Set_Base_Address (New_Base : Word64);
+
+private
+
+ Base : System.Address := System.Storage_Elements.To_Address
+ (System.Storage_Elements.Integer_Address (Base_Addr))
+ with Part_Of => Base_Address;
+
+ type Volatile_Element_T is new Element_T with Volatile;
+ type Array_T is array (Index_T) of Element_T with Volatile_Components;
+
+ Range_A : Array_T with Part_Of => Base_Address;
+ for Range_A'Address use Base;
end HW.MMIO_Range;
diff --git a/common/hw-pci-dev.ads b/common/hw-pci-dev.ads
index 5b20aa1..6bfef74 100644
--- a/common/hw-pci-dev.ads
+++ b/common/hw-pci-dev.ads
@@ -16,7 +16,7 @@
Dev : PCI.Address := (0, 0, 0);
package HW.PCI.Dev
with
- Abstract_State => (Address_State, (PCI_State with External)),
+ Abstract_State => ((Address_State with External), (PCI_State with External)),
Initializes => Address_State
is
diff --git a/common/hw-pci-mmconf.adb b/common/hw-pci-mmconf.adb
index 180f2d7..493780d 100644
--- a/common/hw-pci-mmconf.adb
+++ b/common/hw-pci-mmconf.adb
@@ -29,16 +29,12 @@
type Index16 is new Index range 0 .. Index'Last / 2;
type Index32 is new Index range 0 .. Index'Last / 4;
- type Array8 is array (Index) of Byte with Atomic_Components;
- type Array16 is array (Index16) of Word16 with Atomic_Components;
- type Array32 is array (Index32) of Word32 with Atomic_Components;
-
package MM8 is new HW.MMIO_Range
- (Default_Base_Address, Word8, Index, Array8);
+ (Default_Base_Address, Word8, Index);
package MM16 is new HW.MMIO_Range
- (Default_Base_Address, Word16, Index16, Array16);
+ (Default_Base_Address, Word16, Index16);
package MM32 is new HW.MMIO_Range
- (Default_Base_Address, Word32, Index32, Array32);
+ (Default_Base_Address, Word32, Index32);
procedure Read8 (Value : out Word8; Offset : Index) renames MM8.Read;
diff --git a/common/hw-pci-mmconf.ads b/common/hw-pci-mmconf.ads
index 597ebfa..22e2e2e 100644
--- a/common/hw-pci-mmconf.ads
+++ b/common/hw-pci-mmconf.ads
@@ -21,7 +21,7 @@
Dev : Address := (0, 0, 0);
package HW.PCI.MMConf
with
- Abstract_State => (Address_State, (PCI_State with External)),
+ Abstract_State => ((Address_State with External), (PCI_State with External)),
Initializes => Address_State
is
--
To view, visit https://review.coreboot.org/c/libhwbase/+/55167
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: libhwbase
Gerrit-Branch: master
Gerrit-Change-Id: Ieb50c4dd8ba96248c3051a7282f9e5cdbb270344
Gerrit-Change-Number: 55167
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: newchange
Attention is currently required from: Rex-BC Chen, Yu-Ping Wu.
Hung-Te Lin has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/55163 )
Change subject: soc/mediatek/mt8195: fix GPIO register offset
......................................................................
Patch Set 1:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/55163/comment/b5a4c2fc_bedc046f
PS1, Line 9: Fix GPIO pu/pd offset.
Do you have a reference for these offsets so we can know it's now correct?
Maybe which chapter in the data sheet / application doc ?
--
To view, visit https://review.coreboot.org/c/coreboot/+/55163
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I9b0f8a24756092a97933cc9d4ba13a9e79c73e91
Gerrit-Change-Number: 55163
Gerrit-PatchSet: 1
Gerrit-Owner: Rex-BC Chen <rex-bc.chen(a)mediatek.corp-partner.google.com>
Gerrit-Reviewer: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-Reviewer: Yu-Ping Wu <yupingso(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Rex-BC Chen <rex-bc.chen(a)mediatek.corp-partner.google.com>
Gerrit-Attention: Yu-Ping Wu <yupingso(a)google.com>
Gerrit-Comment-Date: Thu, 03 Jun 2021 13:46:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Henry Sun, Tao Xia, Karthik Ramasubramanian.
Sumeet R Pawnikar has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/54715 )
Change subject: mb/google/dedede/var/blipper: Update DPTF parameters
......................................................................
Patch Set 2: Code-Review+1
--
To view, visit https://review.coreboot.org/c/coreboot/+/54715
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I379c0ea79a7c27bdd81ed41a54135f7284fb6412
Gerrit-Change-Number: 54715
Gerrit-PatchSet: 2
Gerrit-Owner: Tao Xia <xiatao5(a)huaqin.corp-partner.google.com>
Gerrit-Reviewer: Henry Sun <henrysun(a)google.com>
Gerrit-Reviewer: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Reviewer: Sumeet R Pawnikar <sumeet.r.pawnikar(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Ginger Zhang <zhangqingchun(a)huaqin.corp-partner.google.com>
Gerrit-CC: Krystal Han <hanlijing(a)huaqin.corp-partner.google.com>
Gerrit-CC: Weimin Wu <wuweimin(a)huaqin.corp-partner.google.com>
Gerrit-CC: zanxi chen <chenzanxi(a)huaqin.corp-partner.google.com>
Gerrit-Attention: Henry Sun <henrysun(a)google.com>
Gerrit-Attention: Tao Xia <xiatao5(a)huaqin.corp-partner.google.com>
Gerrit-Attention: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Comment-Date: Thu, 03 Jun 2021 12:24:40 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Furquan Shaikh, Tim Wawrzynczak, Paul Menzel, Rajasekhar Venkatanagapavan, Patrick Rudolph, Karthik Ramasubramanian.
Sumeet R Pawnikar has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/54676 )
Change subject: soc/intel/adl: Add SKU specific power limits support
......................................................................
Patch Set 8:
(1 comment)
File src/mainboard/intel/adlrvp/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/54676/comment/2efc76f2_61561c50
PS8, Line 137: register "power_limits_config" = "{
: .tdp_pl1_override = 45,
: .tdp_pl2_override = 56,
: }"
:
> adlrvp still needs to override these, or else this patch will change them to 45 and 115
These values were not appropriate earlier and not required anymore. All updated values are part of chipset.cb file as per doc mentioned in commit message. I have tested this patch and it works fine on adlrvp and brya boards.
--
To view, visit https://review.coreboot.org/c/coreboot/+/54676
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic1676e2b4d611cdc85e770f131d5b6d5ecd180be
Gerrit-Change-Number: 54676
Gerrit-PatchSet: 8
Gerrit-Owner: Sumeet R Pawnikar <sumeet.r.pawnikar(a)intel.com>
Gerrit-Reviewer: Anil Kumar K <anil.kumar.k(a)intel.com>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Rajasekhar Venkatanagapavan <rajasekhar.venkatanagapavan(a)intel.corp-partner.google.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Furquan Shaikh <furquan(a)google.com>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Attention: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Rajasekhar Venkatanagapavan <rajasekhar.venkatanagapavan(a)intel.corp-partner.google.com>
Gerrit-Attention: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Attention: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Comment-Date: Thu, 03 Jun 2021 12:18:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Sean Rhodes, Andy Pont, Tim Wawrzynczak, Paul Menzel, Patrick Rudolph.
Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/52800 )
Change subject: soc/intel: Allow enable/disable ME via CMOS
......................................................................
Patch Set 25:
(1 comment)
File src/soc/intel/common/block/cse/cse.c:
https://review.coreboot.org/c/coreboot/+/52800/comment/41e36a86_a13da649
PS20, Line 847: print_me_fw_version
> If the ME is enabled, and we want to disable it, we don't want to reset heci. It wont cover that.
You probably don't want to get the firmware revision after that either which is what this function does.
What I propose is to add an .enable to the device_operations. This will be run before resources are probed and allocated and also before printing the version is run. This should cover your usecase.
--
To view, visit https://review.coreboot.org/c/coreboot/+/52800
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I374db3b7c0ded71cdc18f27970252fec7220cc20
Gerrit-Change-Number: 52800
Gerrit-PatchSet: 25
Gerrit-Owner: Sean Rhodes <admin(a)starlabs.systems>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Andy Pont <andy.pont(a)sdcsystems.com>
Gerrit-CC: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Sean Rhodes <admin(a)starlabs.systems>
Gerrit-Attention: Andy Pont <andy.pont(a)sdcsystems.com>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Attention: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Thu, 03 Jun 2021 11:10:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Sean Rhodes <admin(a)starlabs.systems>
Comment-In-Reply-To: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: comment