Patrick Rudolph has posted comments on this change. ( https://review.coreboot.org/28326 )
Change subject: Documentation: Fix make rule for sphinx-autobuild
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://review.coreboot.org/28326
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I725392f1f132101eede8fed75e8d225c972ad1fe
Gerrit-Change-Number: 28326
Gerrit-PatchSet: 1
Gerrit-Owner: Tom Hiller <thrilleratplay(a)gmail.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Tom Hiller <thrilleratplay(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Fri, 24 Aug 2018 06:35:44 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: Yes
Elyes HAOUAS has uploaded this change for review. ( https://review.coreboot.org/28329
Change subject: util/ipqheader: Fix typo
......................................................................
util/ipqheader: Fix typo
Change-Id: Ibfcb870bb6e7ed747f8875520ab094def49e53cb
Signed-off-by: Elyes HAOUAS <ehaouas(a)noos.fr>
---
M util/ipqheader/mbn_tools.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/29/28329/1
diff --git a/util/ipqheader/mbn_tools.py b/util/ipqheader/mbn_tools.py
index bc2cdd2..c4d26c1 100755
--- a/util/ipqheader/mbn_tools.py
+++ b/util/ipqheader/mbn_tools.py
@@ -1165,7 +1165,7 @@
bytes_to_pad = ELF_BLOCK_ALIGN - pad_hash_segment
hash_seg_end = hash_tbl_end_addr + bytes_to_pad
- # Check if a shifting is required to accomodate for the hash segment.
+ # Check if a shifting is required to accommodate for the hash segment.
# Get the minimum offset by going through the program headers.
# Note that the program headers in the input file do not contain
# the dummy program header for ELF + Program header, and the
--
To view, visit https://review.coreboot.org/28329
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibfcb870bb6e7ed747f8875520ab094def49e53cb
Gerrit-Change-Number: 28329
Gerrit-PatchSet: 1
Gerrit-Owner: Elyes HAOUAS <ehaouas(a)noos.fr>
Tom Hiller has uploaded this change for review. ( https://review.coreboot.org/28326
Change subject: Documentation: Fix make rule for sphinx-autobuild
......................................................................
Documentation: Fix make rule for sphinx-autobuild
Execute sphinx-autobuild for livesphinx make rule
Change-Id: I725392f1f132101eede8fed75e8d225c972ad1fe
Signed-off-by: Tom Hiller <thrilleratplay(a)gmail.com>
---
M Documentation/Makefile.sphinx
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/26/28326/1
diff --git a/Documentation/Makefile.sphinx b/Documentation/Makefile.sphinx
index 8c10a9f..5236f3e 100644
--- a/Documentation/Makefile.sphinx
+++ b/Documentation/Makefile.sphinx
@@ -57,7 +57,7 @@
.PHONY: livehtml
livehtml:
- $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)
+ $(SPHINXAUTOBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)
@echo
@echo "Autobuild finished. The HTML pages are in $(BUILDDIR)."
--
To view, visit https://review.coreboot.org/28326
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I725392f1f132101eede8fed75e8d225c972ad1fe
Gerrit-Change-Number: 28326
Gerrit-PatchSet: 1
Gerrit-Owner: Tom Hiller <thrilleratplay(a)gmail.com>
Patrick Georgi has uploaded this change for review. ( https://review.coreboot.org/28304
Change subject: build system: Add automatic downloading of FSP mirror repo if requested
......................................................................
build system: Add automatic downloading of FSP mirror repo if requested
It only happens if both USE_BLOBS and MAINBOARD_USES_FSP2_0 are enabled.
Change-Id: I46843c61d3ddf398a3c058bb571d285b596bf5c1
Signed-off-by: Patrick Georgi <patrick(a)georgi.software>
---
M Makefile.inc
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/04/28304/1
diff --git a/Makefile.inc b/Makefile.inc
index b3e246a..68b0eb2 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -195,6 +195,9 @@
# this is necessary because 3rdparty/blobs is update=none, and so is ignored
# unless explicitly requested and enabled through --checkout
forgetthis:=$(if $(GIT),$(shell git submodule update --init --checkout 3rdparty/blobs))
+ifeq ($(CONFIG_MAINBOARD_USES_FSP2_0),y)
+forgetthis:=$(if $(GIT),$(shell git submodule update --init --checkout 3rdparty/fsp))
+endif
endif
UPDATED_SUBMODULES:=1
COREBOOT_EXPORTS += UPDATED_SUBMODULES
--
To view, visit https://review.coreboot.org/28304
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I46843c61d3ddf398a3c058bb571d285b596bf5c1
Gerrit-Change-Number: 28304
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Georgi <pgeorgi(a)google.com>
Patrick Georgi has uploaded this change for review. ( https://review.coreboot.org/28303
Change subject: submodules: add FSP mirror as non-default submodule
......................................................................
submodules: add FSP mirror as non-default submodule
Like the 3rdparty/blobs repo this isn't checked out by default. Right
now you can manually check it out using
$ git submodule init --checkout
A follow up commit will add some automagic if USE_BLOBS and
MAINBOARD_USES_FSP2_0 are enabled.
Change-Id: Ie612495abc2a2d5947225e6ab54872aa72d4bec6
Signed-off-by: Patrick Georgi <patrick(a)georgi.software>
---
M .gitmodules
A 3rdparty/fsp
2 files changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/03/28303/1
diff --git a/.gitmodules b/.gitmodules
index c3270e6..f4f7c4f 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -21,3 +21,8 @@
[submodule "libgfxinit"]
path = 3rdparty/libgfxinit
url = ../libgfxinit.git
+[submodule "3rdparty/fsp"]
+ path = 3rdparty/fsp
+ url = ../fsp.git
+ update = none
+ ignore = dirty
diff --git a/3rdparty/fsp b/3rdparty/fsp
new file mode 160000
index 0000000..7431e4f
--- /dev/null
+++ b/3rdparty/fsp
@@ -0,0 +1 @@
+Subproject commit 7431e4f3399a5081c956753b5fa3bcd764196723
--
To view, visit https://review.coreboot.org/28303
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie612495abc2a2d5947225e6ab54872aa72d4bec6
Gerrit-Change-Number: 28303
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Georgi <pgeorgi(a)google.com>
Nico Huber has uploaded this change for review. ( https://review.coreboot.org/28301
Change subject: drivers/intel/gma: Do not rely on CBLV in OpRegion Mailbox3
......................................................................
drivers/intel/gma: Do not rely on CBLV in OpRegion Mailbox3
CBLV is not kept up to date by Linux' i915. We should fix that too,
but it will likely take some years until we can always expect it to
work.
For now read the register values directly. To accomodate that we
are not the only one writing those, revise XBQC() to search for
the closest value in BRIG (instead of a lower equal one) and round
more accurately for better matches.
Change-Id: I4e2d8fa34e75463d4cf7242af3e2c67577cfa2a5
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
---
M src/drivers/intel/gma/acpi/configure_brightness_levels.asl
1 file changed, 36 insertions(+), 51 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/01/28301/1
diff --git a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl
index 72e5466..024360f 100644
--- a/src/drivers/intel/gma/acpi/configure_brightness_levels.asl
+++ b/src/drivers/intel/gma/acpi/configure_brightness_levels.asl
@@ -93,36 +93,6 @@
Return (Ones)
}
-
- /*
- * Get current back-light brightness through mailbox 3
- *
- * @Return The current brightness or Ones on error
- * Errors: * ASLS is zero
- * * Mailbox 3 support not advertised
- * * Driver not loaded or not ready
- * * CBLV is not marked valid
- */
- Method (XBQC, 0, NotSerialized)
- {
- If (LEqual(ASLS, Zero))
- {
- Return (Ones)
- }
- If (LEqual(And(MBOX, 0x4), Zero))
- {
- Return (Ones)
- }
- If (LEqual(ARDY, Zero))
- {
- Return (Ones)
- }
- If (LEqual(And (CBLV, 0x80000000), Zero))
- {
- Return (Ones)
- }
- Return (And (CBLV, 0xff))
- }
}
/*
@@ -132,29 +102,45 @@
{
Name (_ADR, 0)
- Method (XBCM, 1, NotSerialized)
+ /* Divide round closest */
+ Method (DRCL, 2)
{
- Store (Divide (Multiply (Arg0, BCLM), 100), BCLV)
+ Return (Divide (Add (Arg0, Divide (Arg1, 2)), Arg1))
}
+ Method (XBCM, 1, NotSerialized)
+ {
+ Store (DRCL (Multiply (Arg0, BCLM), 100), BCLV)
+ }
+
+ /* Find value closest to BCLV in BRIG (which must be ordered) */
Method (XBQC, 0, NotSerialized)
{
- /* Find value close to BCLV in BRIG (which must be ordered) */
- Store (BCLV, Local0) // Current value
- Store (BCLM, Local1) // For calculations
- Store (2, Local2) // Loop index
- While (LLess (Local2, Subtract (SizeOf (BRIG), 1))) {
- Store (DeRefOf (Index (BRIG, Local2)), Local3)
- /* Use same calculation as XBCM, to get exact matches */
- Store (Divide (Multiply (Local3, Local1), 100), Local3)
+ /* Local0: current percentage */
+ Store (DRCL (Multiply (BCLV, 100), BCLM), Local0)
- If (LLessEqual (Local0, Local3)) {
- Return (DeRefOf (Index (BRIG, Local2)))
+ /* Local1: loop index (selectable values start at 2 in BRIG) */
+ Store (2, Local1)
+ While (LLess (Local1, Subtract (SizeOf (BRIG), 1))) {
+ /* Local[23]: adjacent values in BRIG */
+ Store (DeRefOf (Index (BRIG, Local1)), Local2)
+ Store (DeRefOf (Index (BRIG, Add (Local1, 1))), Local3)
+
+ If (LLess (Local0, Local3)) {
+ If (LOr (LLess (Local0, Local2),
+ LLess (Subtract (Local0, Local2),
+ Subtract (Local3, Local0)))) {
+ Return (Local2)
+ } Else {
+ Return (Local3)
+ }
}
- Add (Local2, 1, Local2)
+
+ Increment (Local1)
}
+
/* Didn't find greater/equal value: use the last */
- Return (DeRefOf (Index (BRIG, Local2)))
+ Return (Local3)
}
}
@@ -168,11 +154,10 @@
Method (XBQC, 0, NotSerialized)
{
- Store (^BOX3.XBQC (), Local0)
- If (LEqual(Local0, Ones))
- {
- Store (^LEGA.XBQC (), Local0)
- }
-
- Return (Local0)
+ /*
+ * Always query the hardware directly. Not all OS drivers
+ * keep CBLV up to date (one is Linux' i915). Some years
+ * after that is fixed we can probably use CBLV?
+ */
+ Return (^LEGA.XBQC ())
}
--
To view, visit https://review.coreboot.org/28301
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4e2d8fa34e75463d4cf7242af3e2c67577cfa2a5
Gerrit-Change-Number: 28301
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>