Attention is currently required from: Felix Singer, Jeremy Soller, Angel Pons.
Tim Crawford has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/49104 )
Change subject: soc/intel/cannonlake: Allow setting PCIe subsystem IDs after FSP SiliconInit
......................................................................
Patch Set 3:
(1 comment)
File src/soc/intel/cannonlake/fsp_params.c:
https://review.coreboot.org/c/coreboot/+/49104/comment/19c8bdd6_bf56f1d1
PS2, Line 552: /* Program XHCI SSID/SVID before FSP silicon init */
: dev = pcidev_path_on_root(PCH_DEVFN_XHCI);
: if (!dev->subsystem_vendor || !dev->subsystem_device) {
: pci_write_config32(dev, PCI_SUBSYSTEM_VENDOR_ID,
: pci_read_config32(dev, PCI_VENDOR_ID));
: } else {
: pci_write_config32(dev, PCI_SUBSYSTEM_VENDOR_ID,
: ((dev->subsystem_device & 0xffff) << 16) |
: (dev->subsystem_vendor & 0xffff));
: }
:
: /* Program HDAudio SSID/SVID before FSP silicon init */
: dev = pcidev_path_on_root(PCH_DEVFN_HDA);
: if (!dev->subsystem_vendor || !dev->subsystem_device) {
: pci_write_config32(dev, PCI_SUBSYSTEM_VENDOR_ID,
: pci_read_config32(dev, PCI_VENDOR_ID));
: } else {
: pci_write_config32(dev, PCI_SUBSYSTEM_VENDOR_ID,
: ((dev->subsystem_device & 0xffff) << 16) |
: (dev->subsystem_vendor & 0xffff));
: }
> We know that the SVID/SSID registers are write-once, and FSP writes to them before coreboot does, so […]
*Most* are RW/O. These two specifically are RW/L. They can be written multiple times, and will get locked regardless of writing to them.
coreboot is still writing them after SiliconInit in pci_dev_enable_resources(). That has not change, including attempting to write these two devices' SSIDs. But the RW/O work now because the FSP is not writing them.
So specifically for these RW/L registers, they must be written before the lock happens.
--
To view, visit https://review.coreboot.org/c/coreboot/+/49104
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ieaa45ef7fa8e0da4a25b9174ded1ea0c5d9c4b4e
Gerrit-Change-Number: 49104
Gerrit-PatchSet: 3
Gerrit-Owner: Tim Crawford <tcrawford(a)system76.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Jeremy Soller <jeremy(a)system76.com>
Gerrit-Reviewer: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Felix Singer <felixsinger(a)posteo.net>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-CC: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Attention: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Attention: Jeremy Soller <jeremy(a)system76.com>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Comment-Date: Thu, 07 Jan 2021 17:34:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Felix Singer <felixsinger(a)posteo.net>
Comment-In-Reply-To: Tim Crawford <tcrawford(a)system76.com>
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: comment
Attention is currently required from: Furquan Shaikh, Henry Sun, Ren Kuo, Tim Chen.
Karthik Ramasubramanian has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/49221 )
Change subject: mb/google/dedede/var/magolor: remove the unused touch controller
......................................................................
Patch Set 1:
(2 comments)
Commit Message:
https://review.coreboot.org/c/coreboot/+/49221/comment/53799b56_ad5731b6
PS1, Line 7: mb/google/dedede/var/magolor: remove the unused touch controller
Nit: Always start the sentence with a capital letter.
https://review.coreboot.org/c/coreboot/+/49221/comment/8fcd1f9a_53116f44
PS1, Line 11: BUG=None
BRANCH=dedede
--
To view, visit https://review.coreboot.org/c/coreboot/+/49221
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2a01666bc1e353e21ddf961a0eb721a0cb4013db
Gerrit-Change-Number: 49221
Gerrit-PatchSet: 1
Gerrit-Owner: Ren Kuo <ren.kuo(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Henry Sun <henrysun(a)google.com>
Gerrit-Reviewer: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Ren Kuo <ren.kuo(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Tim Chen <tim-chen(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Furquan Shaikh <furquan(a)google.com>
Gerrit-Attention: Henry Sun <henrysun(a)google.com>
Gerrit-Attention: Ren Kuo <ren.kuo(a)quanta.corp-partner.google.com>
Gerrit-Attention: Tim Chen <tim-chen(a)quanta.corp-partner.google.com>
Gerrit-Comment-Date: Thu, 07 Jan 2021 16:23:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Henry Sun, Stanley Wu.
Karthik Ramasubramanian has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/49220 )
Change subject: drivers/i2c/sx9324: Add more register
......................................................................
Patch Set 1:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/49220/comment/4ade79ac_3331c95e
PS1, Line 9: Export registers that driver is looking for.
Can you please mention what registers are being added and what is the purpose of those registers.
--
To view, visit https://review.coreboot.org/c/coreboot/+/49220
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I3cee84a5658fecf55d2d8b8621879588ffe0158d
Gerrit-Change-Number: 49220
Gerrit-PatchSet: 1
Gerrit-Owner: Stanley Wu <stanley1.wu(a)lcfc.corp-partner.google.com>
Gerrit-Reviewer: Henry Sun <henrysun(a)google.com>
Gerrit-Reviewer: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Allen Cheng <allen.cheng(a)lcfc.corp-partner.google.com>
Gerrit-CC: Jerry2 Huang <jerry2.huang(a)lcfc.corp-partner.google.com>
Gerrit-CC: Kevin Chang <kevin.chang(a)lcfc.corp-partner.google.com>
Gerrit-CC: Rasheed Hsueh <rasheed.hsueh(a)lcfc.corp-partner.google.com>
Gerrit-CC: Sunshine Chao <sunshine.chao(a)lcfc.corp-partner.google.com>
Gerrit-Attention: Henry Sun <henrysun(a)google.com>
Gerrit-Attention: Stanley Wu <stanley1.wu(a)lcfc.corp-partner.google.com>
Gerrit-Comment-Date: Thu, 07 Jan 2021 16:21:46 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Patrick Rudolph.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/49224 )
Change subject: soc/intel/cannonlake: Enable wake from USB in S4
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/49224
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0bb266e70ee6b4eb8922671b7d0078db0d29a1da
Gerrit-Change-Number: 49224
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Attention: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Thu, 07 Jan 2021 16:00:25 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Felix Singer, Tim Crawford, Jeremy Soller.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/49104 )
Change subject: soc/intel/cannonlake: Allow setting PCIe subsystem IDs after FSP SiliconInit
......................................................................
Patch Set 3:
(2 comments)
File src/soc/intel/cannonlake/fsp_params.c:
https://review.coreboot.org/c/coreboot/+/49104/comment/25daba99_d7f99099
PS2, Line 552: /* Program XHCI SSID/SVID before FSP silicon init */
: dev = pcidev_path_on_root(PCH_DEVFN_XHCI);
: if (!dev->subsystem_vendor || !dev->subsystem_device) {
: pci_write_config32(dev, PCI_SUBSYSTEM_VENDOR_ID,
: pci_read_config32(dev, PCI_VENDOR_ID));
: } else {
: pci_write_config32(dev, PCI_SUBSYSTEM_VENDOR_ID,
: ((dev->subsystem_device & 0xffff) << 16) |
: (dev->subsystem_vendor & 0xffff));
: }
:
: /* Program HDAudio SSID/SVID before FSP silicon init */
: dev = pcidev_path_on_root(PCH_DEVFN_HDA);
: if (!dev->subsystem_vendor || !dev->subsystem_device) {
: pci_write_config32(dev, PCI_SUBSYSTEM_VENDOR_ID,
: pci_read_config32(dev, PCI_VENDOR_ID));
: } else {
: pci_write_config32(dev, PCI_SUBSYSTEM_VENDOR_ID,
: ((dev->subsystem_device & 0xffff) << 16) |
: (dev->subsystem_vendor & 0xffff));
: }
> From what Jeremy has told me, the registers are locked during FSP-S. […]
We know that the SVID/SSID registers are write-once, and FSP writes to them before coreboot does, so they end up with undesired values. This patch does two things:
1. sets some FSP UPDs related to SVID/SSID programming
2. programs the SVID/SSID registers in coreboot before running FSP
The problem I see is that these two things are mutually exclusive, so one of them is unnecessary. Either FSP or coreboot does the first write to a SVID/SSID register and makes it become read-only. Is there a reason to change the FSP UPDs when coreboot programs the SVID/SSID registers?
File src/soc/intel/cannonlake/fsp_params.c:
https://review.coreboot.org/c/coreboot/+/49104/comment/d06f3cf8_89d8ff08
PS3, Line 555: if (dev->subsystem_vendor && dev->subsystem_device) {
: pci_write_config32(dev, PCI_SUBSYSTEM_VENDOR_ID,
: ((dev->subsystem_device & 0xffff) << 16) |
: (dev->subsystem_vendor & 0xffff));
: } else {
: pci_write_config32(dev, PCI_SUBSYSTEM_VENDOR_ID,
: pci_read_config32(dev, PCI_VENDOR_ID));
: }
This logic is already implemented in `pci_dev_set_subsystem`
--
To view, visit https://review.coreboot.org/c/coreboot/+/49104
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ieaa45ef7fa8e0da4a25b9174ded1ea0c5d9c4b4e
Gerrit-Change-Number: 49104
Gerrit-PatchSet: 3
Gerrit-Owner: Tim Crawford <tcrawford(a)system76.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Jeremy Soller <jeremy(a)system76.com>
Gerrit-Reviewer: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Felix Singer <felixsinger(a)posteo.net>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-CC: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Attention: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Attention: Tim Crawford <tcrawford(a)system76.com>
Gerrit-Attention: Jeremy Soller <jeremy(a)system76.com>
Gerrit-Comment-Date: Thu, 07 Jan 2021 15:59:17 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Felix Singer <felixsinger(a)posteo.net>
Comment-In-Reply-To: Tim Crawford <tcrawford(a)system76.com>
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: comment
Attention is currently required from: Patrick Rudolph.
Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/49224 )
Change subject: soc/intel/cannonlake: Enable wake from USB in S4
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/49224
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0bb266e70ee6b4eb8922671b7d0078db0d29a1da
Gerrit-Change-Number: 49224
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Attention: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Thu, 07 Jan 2021 15:59:08 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment