Peter Lemenkov has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/35449 )
Change subject: mb/{lenovo/x201,packardbell/ms2290}/acpi/platform: We don't have PDC[01] variables
......................................................................
mb/{lenovo/x201,packardbell/ms2290}/acpi/platform: We don't have PDC[01] variables
Change-Id: I330e5b5ff352668a8847d1e4646f4ef5be6a806f
Signed-off-by: Peter Lemenkov <lemenkov(a)gmail.com>
---
M src/mainboard/lenovo/x201/acpi/platform.asl
M src/mainboard/packardbell/ms2290/acpi/platform.asl
2 files changed, 0 insertions(+), 8 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/49/35449/1
diff --git a/src/mainboard/lenovo/x201/acpi/platform.asl b/src/mainboard/lenovo/x201/acpi/platform.asl
index 7d7013b..167fe03 100644
--- a/src/mainboard/lenovo/x201/acpi/platform.asl
+++ b/src/mainboard/lenovo/x201/acpi/platform.asl
@@ -14,10 +14,6 @@
* GNU General Public License for more details.
*/
-/* These come from the dynamically created CPU SSDT */
-External(PDC0)
-External(PDC1)
-
/* The APM port can be used for generating software SMIs */
OperationRegion (APMP, SystemIO, 0xb2, 2)
diff --git a/src/mainboard/packardbell/ms2290/acpi/platform.asl b/src/mainboard/packardbell/ms2290/acpi/platform.asl
index 9812d14..21d8115 100644
--- a/src/mainboard/packardbell/ms2290/acpi/platform.asl
+++ b/src/mainboard/packardbell/ms2290/acpi/platform.asl
@@ -14,10 +14,6 @@
* GNU General Public License for more details.
*/
-/* These come from the dynamically created CPU SSDT */
-External(PDC0)
-External(PDC1)
-
/* The APM port can be used for generating software SMIs */
OperationRegion (APMP, SystemIO, 0xb2, 2)
--
To view, visit https://review.coreboot.org/c/coreboot/+/35449
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I330e5b5ff352668a8847d1e4646f4ef5be6a806f
Gerrit-Change-Number: 35449
Gerrit-PatchSet: 1
Gerrit-Owner: Peter Lemenkov <lemenkov(a)gmail.com>
Gerrit-MessageType: newchange
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29474 )
Change subject: device: Use scan_static_bus() over scan_lpc_bus()
......................................................................
Patch Set 9:
(4 comments)
https://review.coreboot.org/c/coreboot/+/29474/1//COMMIT_MSG
Commit Message:
https://review.coreboot.org/c/coreboot/+/29474/1//COMMIT_MSG@7
PS1, Line 7: device/root_device: Scan bridges on LPC bus too
> Could you please provide a reasoning in the commit description as well as what sort of bridges exist […]
Done
https://review.coreboot.org/c/coreboot/+/29474/5/src/device/root_device.c
File src/device/root_device.c:
https://review.coreboot.org/c/coreboot/+/29474/5/src/device/root_device.c@66
PS5, Line 66: void scan_lpc_bus(struct device *bus)
> Yep (the former sneaked into a rebase). I'll try to consolidate this.
Done
https://review.coreboot.org/c/coreboot/+/29474/5/src/device/root_device.c@1…
PS5, Line 105: link->secondary = ++bus_max;
> Should be needed for dev_find_slot_on_smbus() only? Rename to smbus_idx and set conditionally on pat […]
Unrelated (will hopefully vanish after the next code removal).
https://review.coreboot.org/c/coreboot/+/29474/5/src/device/root_device.c@1…
PS5, Line 126: void scan_smbus(struct device *bus)
> I kind of like that we assign . […]
Won't do, see reasoning in parent change.
--
To view, visit https://review.coreboot.org/c/coreboot/+/29474
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0eb005e41b9168fffc344ee8e666d43b605a30ba
Gerrit-Change-Number: 29474
Gerrit-PatchSet: 9
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: David Guckian <david.guckian(a)intel.com>
Gerrit-Reviewer: Huang Jin <huang.jin(a)intel.com>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-Reviewer: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: Vanny E <vanessa.f.eusebio(a)intel.com>
Gerrit-Reviewer: York Yang <yyang024(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Sun, 06 Oct 2019 16:16:56 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Comment-In-Reply-To: Aaron Durbin <adurbin(a)chromium.org>
Comment-In-Reply-To: Nico Huber <nico.h(a)gmx.de>
Gerrit-MessageType: comment
Hello Arthur Heymans,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/libgfxinit/+/35784
to review the following change.
Change subject: gma ilk hdmi: Add workaround for enable-bit quirk
......................................................................
gma ilk hdmi: Add workaround for enable-bit quirk
The HDMI-enable bit is quirky, too. We are supposed to always set
it twice.
Change-Id: I9d093ff9a3178e01638f65b0607bc8d08c009978
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
---
M common/ironlake/hw-gfx-gma-pch-hdmi.adb
1 file changed, 7 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/libgfxinit refs/changes/84/35784/1
diff --git a/common/ironlake/hw-gfx-gma-pch-hdmi.adb b/common/ironlake/hw-gfx-gma-pch-hdmi.adb
index 4ca9ecd..7210a95 100644
--- a/common/ironlake/hw-gfx-gma-pch-hdmi.adb
+++ b/common/ironlake/hw-gfx-gma-pch-hdmi.adb
@@ -66,6 +66,10 @@
PCH_TRANSCODER_SELECT (FDI_Port) or
PCH_HDMI_SDVO_ENCODING_HDMI or
Polarity);
+ Registers.Posting_Read (PCH_HDMI (Port_Cfg.PCH_Port));
+ -- Set enable a second time, hardware may miss the first.
+ Registers.Set_Mask (PCH_HDMI (Port_Cfg.PCH_Port), PCH_HDMI_ENABLE);
+ Registers.Posting_Read (PCH_HDMI (Port_Cfg.PCH_Port));
end On;
----------------------------------------------------------------------------
@@ -97,6 +101,9 @@
-- Reenable with transcoder A selected to switch.
Registers.Set_Mask (PCH_HDMI (Port), PCH_HDMI_ENABLE);
Registers.Posting_Read (PCH_HDMI (Port));
+ -- Set enable a second time, hardware may miss the first.
+ Registers.Set_Mask (PCH_HDMI (Port), PCH_HDMI_ENABLE);
+ Registers.Posting_Read (PCH_HDMI (Port));
Registers.Unset_Mask (PCH_HDMI (Port), PCH_HDMI_ENABLE);
Registers.Posting_Read (PCH_HDMI (Port));
end if;
--
To view, visit https://review.coreboot.org/c/libgfxinit/+/35784
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: libgfxinit
Gerrit-Branch: master
Gerrit-Change-Id: I9d093ff9a3178e01638f65b0607bc8d08c009978
Gerrit-Change-Number: 35784
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: newchange
Nico Huber has uploaded this change for review. ( https://review.coreboot.org/c/libgfxinit/+/35750 )
Change subject: Increase range of our main Frequency_Type
......................................................................
Increase range of our main Frequency_Type
Increase `Frequency_Type` to 1MHz .. 2.5Ghz. We used to adapt it
whenever necessary, e.g. when a new generation supported higher
frequencies. But that got a little annoying. So let's choose a
broader range that will hopefully lower the noise for some time.
1MHz is low enough for VGA resolution at 24p, and 2.5GHz is high
enough for 8K at 60p. That should give us some margin.
Some corner cases required refactoring of some calculations and
proofs. And, admittedly, the calculation in `HW.GFX.GMA.PCH.VGA`
can in theory overflow, indeed. But our PLL calculations should
ensure that this never happens.
Change-Id: I3a159bc11ccadcaba8ad04e126e6feadfd46008e
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
---
M common/hw-gfx-dp_info.adb
M common/hw-gfx-gma-pch-vga.adb
M common/hw-gfx.ads
3 files changed, 8 insertions(+), 25 deletions(-)
git pull ssh://review.coreboot.org:29418/libgfxinit refs/changes/50/35750/1
diff --git a/common/hw-gfx-dp_info.adb b/common/hw-gfx-dp_info.adb
index 7ac4556..d45826d 100644
--- a/common/hw-gfx-dp_info.adb
+++ b/common/hw-gfx-dp_info.adb
@@ -93,28 +93,11 @@
with
Depends => ((Link, Success) => (Link, Mode))
is
- function Link_Pixel_Per_Second
- (Link_Rate : DP_Bandwidth)
- return Positive
- with
- Post => Pos64 (Link_Pixel_Per_Second'Result) <=
- ((DP_Symbol_Rate_Type'Last * 8) / 3) / BPC_Type'First
- is
- begin
- -- Link_Rate is brutto with 8/10 bit symbols; three colors
- pragma Assert (Positive (DP_Symbol_Rate (Link_Rate)) <= (Positive'Last / 8) * 3);
- pragma Assert ((Int64 (DP_Symbol_Rate (Link_Rate)) * 8) / 3
- >= Int64 (BPC_Type'Last));
- return Positive
- (((Int64 (DP_Symbol_Rate (Link_Rate)) * 8) / 3)
- / Int64 (Mode.BPC));
- end Link_Pixel_Per_Second;
-
- Count : Natural;
+ Lane_Pixel_Per_Second : constant Pos64 :=
+ (((DP_Symbol_Rate (Link.Bandwidth) * 8) / 3) / Mode.BPC);
+ Count : constant Pos64 :=
+ Div_Round_Up (Mode.Dotclock, Lane_Pixel_Per_Second);
begin
- Count := Link_Pixel_Per_Second (Link.Bandwidth);
- Count := (Positive (Mode.Dotclock) + Count - 1) / Count;
-
Success := True;
case Count is
when 1 => Link.Lane_Count := DP_Lane_Count_1;
@@ -184,8 +167,8 @@
DATA_N_MAX : constant := 16#800000#;
LINK_N_MAX : constant := 16#100000#;
- subtype Calc_M_Type is Int64 range 0 .. 2 ** 36;
- subtype Calc_N_Type is Int64 range 0 .. 2 ** 36;
+ subtype Calc_M_Type is Int64 range 0 .. 2 ** 38;
+ subtype Calc_N_Type is Int64 range 0 .. 2 ** 38;
subtype N_Rounded_Type is Int64 range
0 .. Int64'Max (DATA_N_MAX, LINK_N_MAX);
diff --git a/common/hw-gfx-gma-pch-vga.adb b/common/hw-gfx-gma-pch-vga.adb
index fd82740..eb7f9a0 100644
--- a/common/hw-gfx-gma-pch-vga.adb
+++ b/common/hw-gfx-gma-pch-vga.adb
@@ -135,7 +135,7 @@
Mask => SBI_SSCCTL_DISABLE);
Aux_Div := 16#0000_0000#;
- Div_Sel := Word32 (Refclock / Mode.Dotclock - 2);
+ Div_Sel := Word32 (Refclock / Mode.Dotclock) - 2;
Phase_Inc := Word32 ((Refclock * 64) / Mode.Dotclock) and 16#0000_003f#;
Phase_Dir := 16#0000_0000#;
diff --git a/common/hw-gfx.ads b/common/hw-gfx.ads
index 93a3684..2cfc017 100644
--- a/common/hw-gfx.ads
+++ b/common/hw-gfx.ads
@@ -66,7 +66,7 @@
Rotation => No_Rotation,
Offset => 0);
- subtype Frequency_Type is Pos64 range 19_200_000 .. 624_000_000;
+ subtype Frequency_Type is Pos64 range 1_000_000 .. 2_500_000_000;
type DP_Lane_Count is (DP_Lane_Count_1, DP_Lane_Count_2, DP_Lane_Count_4);
subtype DP_Lane_Count_Type is Pos64 range 1 .. 4;
--
To view, visit https://review.coreboot.org/c/libgfxinit/+/35750
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: libgfxinit
Gerrit-Branch: master
Gerrit-Change-Id: I3a159bc11ccadcaba8ad04e126e6feadfd46008e
Gerrit-Change-Number: 35750
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-MessageType: newchange
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35680 )
Change subject: cpu/qemu-x86: Add x86_64 bootblock support
......................................................................
Patch Set 6:
(2 comments)
https://review.coreboot.org/c/coreboot/+/35680/6/util/pgtblgen/pgtblgen.c
File util/pgtblgen/pgtblgen.c:
https://review.coreboot.org/c/coreboot/+/35680/6/util/pgtblgen/pgtblgen.c@28
PS6, Line 28: printf("usage: %s -b <addr> -a <arch> -o <file>\n", argv[0]);
Prefer using '"%s...", __func__' to using 'usage', this function's name, in a string
https://review.coreboot.org/c/coreboot/+/35680/6/util/pgtblgen/pgtblgen.c@1…
PS6, Line 147: FILE *fd = fopen(filename, "wb");
need consistent spacing around '*' (ctx:WxV)
--
To view, visit https://review.coreboot.org/c/coreboot/+/35680
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iec92c6cea464c97c18a0811e2e91bc22133ace42
Gerrit-Change-Number: 35680
Gerrit-PatchSet: 6
Gerrit-Owner: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: Alexandru Gagniuc <alexandrux.gagniuc(a)intel.com>
Gerrit-Reviewer: Gerd Hoffmann <kraxel(a)redhat.com>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Lee Leahy <leroy.p.leahy(a)intel.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Reviewer: ron minnich <rminnich(a)gmail.com>
Gerrit-CC: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Sun, 06 Oct 2019 12:19:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Hello Kyösti Mälkki, Aaron Durbin, Alexandru Gagniuc, ron minnich, Gerd Hoffmann, Lee Leahy, Stefan Reinauer, build bot (Jenkins), Patrick Georgi, Martin Roth,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/35680
to look at the new patch set (#6).
Change subject: cpu/qemu-x86: Add x86_64 bootblock support
......................................................................
cpu/qemu-x86: Add x86_64 bootblock support
Add support for x86_64 bootblock on qemu.
Introduce a new approach to long mode support. The previous patch set
generated page tables at runtime and placed them in heap. The new
approach places the page tables in memory mapped ROM.
Introduce a new tool called pgtblgen that creates x86 long mode compatible
page tables and writes those to a file. The file is included into the CBFS
and placed at a predefined offset.
Add assembly code to load the page tables, based on a Kconfig symbol and
enter long in bootblock.
The code can be easily ported to real hardware bootblock.
Tested on qemu q35.
Change-Id: Iec92c6cea464c97c18a0811e2e91bc22133ace42
Signed-off-by: Patrick Rudolph <siro(a)das-labor.org>
---
M Documentation/arch/x86/index.md
M Makefile.inc
M src/arch/x86/Kconfig
M src/arch/x86/bootblock_crt0.S
M src/cpu/qemu-x86/cache_as_ram_bootblock.S
A src/cpu/x86/64bit/entry64.inc
A util/pgtblgen/Makefile.inc
A util/pgtblgen/description.md
A util/pgtblgen/pgtblgen.c
9 files changed, 294 insertions(+), 12 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/80/35680/6
--
To view, visit https://review.coreboot.org/c/coreboot/+/35680
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iec92c6cea464c97c18a0811e2e91bc22133ace42
Gerrit-Change-Number: 35680
Gerrit-PatchSet: 6
Gerrit-Owner: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: Alexandru Gagniuc <alexandrux.gagniuc(a)intel.com>
Gerrit-Reviewer: Gerd Hoffmann <kraxel(a)redhat.com>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Lee Leahy <leroy.p.leahy(a)intel.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Reviewer: ron minnich <rminnich(a)gmail.com>
Gerrit-CC: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: newpatchset