Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43074 )
Change subject: drivers/nvidia/optimus: Write _ROM method
......................................................................
Patch Set 4:
(2 comments)
https://review.coreboot.org/c/coreboot/+/43074/4//COMMIT_MSG
Commit Message:
https://review.coreboot.org/c/coreboot/+/43074/4//COMMIT_MSG@9
PS4, Line 9: OptionROM
Video BIOS Option ROM
https://review.coreboot.org/c/coreboot/+/43074/4//COMMIT_MSG@15
PS4, Line 15: obtains the vBIOS via ACPI.
Please note the Linux kernel version.
--
To view, visit https://review.coreboot.org/c/coreboot/+/43074
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ida87aebf8fdf341ab350c2bb3704d2ef695cf8f0
Gerrit-Change-Number: 43074
Gerrit-PatchSet: 4
Gerrit-Owner: Benjamin Doron <benjamin.doron00(a)gmail.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Evgeny Zinoviev <me(a)ch1p.io>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Jeremy Soller <jeremy(a)system76.com>
Gerrit-CC: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-CC: Prasun Gera
Gerrit-Comment-Date: Fri, 07 Aug 2020 06:32:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Patrick Rudolph has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43074 )
Change subject: drivers/nvidia/optimus: Write _ROM method
......................................................................
Patch Set 4:
> Patch Set 4:
>
> > Please explain why this is needed. The generic PCI driver should already do the same.
>
> 1. Without an ACPI name declared, a scope cannot be written to the device.
> 2. Are you referring to device/pci_device.c? I see that it should call `pci_rom_ssdt`, but it hadn't been successful for me. Possibly due to 1? (or in my case, CB:43070. I'll test again.)
In case the device has no acpi name/scope that's a SoC bug, as it simply doesn't provide those names yet. A console log will show what's missing.
--
To view, visit https://review.coreboot.org/c/coreboot/+/43074
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ida87aebf8fdf341ab350c2bb3704d2ef695cf8f0
Gerrit-Change-Number: 43074
Gerrit-PatchSet: 4
Gerrit-Owner: Benjamin Doron <benjamin.doron00(a)gmail.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Evgeny Zinoviev <me(a)ch1p.io>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Jeremy Soller <jeremy(a)system76.com>
Gerrit-CC: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-CC: Prasun Gera
Gerrit-Comment-Date: Fri, 07 Aug 2020 04:38:40 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43074 )
Change subject: drivers/nvidia/optimus: Write _ROM method
......................................................................
Patch Set 4:
> Please explain why this is needed. The generic PCI driver should already do the same.
1. Without an ACPI name declared, a scope cannot be written to the device.
2. Are you referring to device/pci_device.c? I see that it should call `pci_rom_ssdt`, but it hadn't been successful for me. Possibly due to 1? (or in my case, CB:43070. I'll test again.)
--
To view, visit https://review.coreboot.org/c/coreboot/+/43074
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ida87aebf8fdf341ab350c2bb3704d2ef695cf8f0
Gerrit-Change-Number: 43074
Gerrit-PatchSet: 4
Gerrit-Owner: Benjamin Doron <benjamin.doron00(a)gmail.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Evgeny Zinoviev <me(a)ch1p.io>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Jeremy Soller <jeremy(a)system76.com>
Gerrit-CC: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-CC: Prasun Gera
Gerrit-Comment-Date: Fri, 07 Aug 2020 04:15:23 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Patrick Rudolph has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43074 )
Change subject: drivers/nvidia/optimus: Write _ROM method
......................................................................
Patch Set 4:
Please explain why this is needed. The generic PCI driver should already do the same.
--
To view, visit https://review.coreboot.org/c/coreboot/+/43074
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ida87aebf8fdf341ab350c2bb3704d2ef695cf8f0
Gerrit-Change-Number: 43074
Gerrit-PatchSet: 4
Gerrit-Owner: Benjamin Doron <benjamin.doron00(a)gmail.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Evgeny Zinoviev <me(a)ch1p.io>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Jeremy Soller <jeremy(a)system76.com>
Gerrit-CC: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-CC: Prasun Gera
Gerrit-Comment-Date: Fri, 07 Aug 2020 03:42:13 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/44062 )
Change subject: src/soc/intel/icelake: Allow option to use USE_INTEL_FSP_MP_INIT
......................................................................
src/soc/intel/icelake: Allow option to use USE_INTEL_FSP_MP_INIT
This patch removes the unnecessary enforcement of MP PPI in ICL
in order to have parity with other IA-SoC.
Now it allows user to select USE_INTEL_FSP_MP_INIT if required.
TEST=Able to build and boot ICL platform with either USE_INTEL_FSP_MP_INIT
or USE_INTEL_FSP_TO_CALL_COREBOOT_PUBLISH_MP_PPI selected.
Change-Id: I25288a24cdf9dceec45a90e4e7233225a6cab508
Signed-off-by: Subrata Banik <subrata.banik(a)intel.com>
---
M src/soc/intel/icelake/fsp_params.c
1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/62/44062/1
diff --git a/src/soc/intel/icelake/fsp_params.c b/src/soc/intel/icelake/fsp_params.c
index d4485c6..0130d2c 100644
--- a/src/soc/intel/icelake/fsp_params.c
+++ b/src/soc/intel/icelake/fsp_params.c
@@ -71,8 +71,9 @@
for (i = 0; i < ARRAY_SIZE(params->Usb3OverCurrentPin); i++)
params->Usb3OverCurrentPin[i] = 0;
- /* Mandatory to make use of CpuMpPpi implementation from ICL onwards */
- params->CpuMpPpi = (uintptr_t) mp_fill_ppi_services_data();
+ /* Use coreboot MP PPI services if Kconfig is enabled */
+ if (CONFIG(USE_INTEL_FSP_TO_CALL_COREBOOT_PUBLISH_MP_PPI))
+ params->CpuMpPpi = (uintptr_t) mp_fill_ppi_services_data();
mainboard_silicon_init_params(params);
--
To view, visit https://review.coreboot.org/c/coreboot/+/44062
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I25288a24cdf9dceec45a90e4e7233225a6cab508
Gerrit-Change-Number: 44062
Gerrit-PatchSet: 1
Gerrit-Owner: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-MessageType: newchange
Hello Furquan Shaikh, Alexandru Stan, Douglas Anderson,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/44253
to review the following change.
Change subject: gpio: Pull down HiZ pins after reading tristate GPIO strapping
......................................................................
gpio: Pull down HiZ pins after reading tristate GPIO strapping
People who know a lot more about electrons and stuff than I do tell me
that leaving a HiZ pin floating without a pull resistor may waste power.
So if we find a pin to be HiZ when reading tristate strapping GPIOs, we
should make sure the internal pull-down is enabled when we're done with
it. (For pins that are externally pulled high or low, we should continue
to leave the internal pull disabled instead.)
Signed-off-by: Julius Werner <jwerner(a)chromium.org>
Change-Id: I1669823c8a7faab536e0441cb4c6cfeb9f696189
---
M src/lib/gpio.c
1 file changed, 6 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/53/44253/1
diff --git a/src/lib/gpio.c b/src/lib/gpio.c
index 3f3ae60..801a3b3 100644
--- a/src/lib/gpio.c
+++ b/src/lib/gpio.c
@@ -114,6 +114,12 @@
printk(BIOS_DEBUG, "%c ", tristate_char[temp]);
result = (result * 3) + temp;
+ /* Disable pull to avoid wasting power. For HiZ we leave the
+ pull-down enabled, since letting them float freely back and
+ forth may waste power in the SoC's GPIO input logic. */
+ if (temp != Z)
+ gpio_input(gpio[index]);
+
/*
* For binary_first we keep track of the normal ternary result
* and whether we found any pin that was a Z. We also determine
@@ -159,10 +165,6 @@
printk(BIOS_DEBUG, "= %d (%s base3 number system)\n", result,
binary_first ? "binary_first" : "standard");
- /* Disable pull up / pull down to conserve power */
- for (index = 0; index < num_gpio; ++index)
- gpio_input(gpio[index]);
-
return result;
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/44253
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1669823c8a7faab536e0441cb4c6cfeb9f696189
Gerrit-Change-Number: 44253
Gerrit-PatchSet: 1
Gerrit-Owner: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Alexandru Stan <amstan(a)chromium.org>
Gerrit-Reviewer: Douglas Anderson <dianders(a)chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-MessageType: newchange