Attention is currently required from: Tarun Tuli, Kangheui Won, Tyler Wang, Nick Vaccaro, Eric Lai.
Reka Norman has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/69790 )
Change subject: mb/google/nissa/var/craask: Disable SAR Proximity Sensor GPIO pin
......................................................................
Patch Set 3:
(2 comments)
File src/mainboard/google/brya/variants/craask/fw_config.c:
File src/mainboard/google/brya/variants/craask/gpio.c:
https://review.coreboot.org/c/coreboot/+/69790/comment/518b0383_db99c3d8
PS3, Line 21: PAD_NC(GPP_H19, NONE),
This is the same as the baseboard so you can just remove it.
--
To view, visit https://review.coreboot.org/c/coreboot/+/69790
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2b2a2516890b68036e96d1a542e6a10a098cb6a7
Gerrit-Change-Number: 69790
Gerrit-PatchSet: 3
Gerrit-Owner: Tyler Wang <tyler.wang(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Eric Lai <eric_lai(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Kangheui Won <khwon(a)chromium.org>
Gerrit-Reviewer: Nick Vaccaro <nvaccaro(a)google.com>
Gerrit-Reviewer: Reka Norman <rekanorman(a)chromium.org>
Gerrit-Reviewer: Tarun Tuli <taruntuli(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Cathy Chen <cathy_chen(a)quanta.corp-partner.google.com>
Gerrit-CC: David Wu <david_wu(a)quanta.corp-partner.google.com>
Gerrit-CC: Ren Kuo <ren.kuo(a)quanta.corp-partner.google.com>
Gerrit-CC: Victor Ding <victording(a)google.com>
Gerrit-Attention: Tarun Tuli <taruntuli(a)google.com>
Gerrit-Attention: Kangheui Won <khwon(a)chromium.org>
Gerrit-Attention: Tyler Wang <tyler.wang(a)quanta.corp-partner.google.com>
Gerrit-Attention: Nick Vaccaro <nvaccaro(a)google.com>
Gerrit-Attention: Eric Lai <eric_lai(a)quanta.corp-partner.google.com>
Gerrit-Comment-Date: Sun, 20 Nov 2022 23:05:10 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Felix Singer, Jason Nien, Jeremy Soller, Martin Roth, Tim Crawford, Nico Huber, Tarun Tuli, Martin L Roth, Damien Zammit, Subrata Banik, Maxim Polyakov, Kapil Porwal, Alexander Couzens, Werner Zeh, Evgeny Zinoviev.
Michael Niewöhner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/68982 )
Change subject: mainboard: Add SPDX license headers to Makefiles
......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS2:
> It's not that AMD is actually demanding this, but the tool that they're using (palamida scan) is, in […]
>> As far as the license used, the license of coreboot as a whole is GPL V2. If someone contributes a file and doesn't specify a different license, the license defaults to GPL V2 as a part of the coreboot project. These patches just clarify that the Makefile are licensed under GPL V2.
> Is this documented somewhere? As the top-level Makefile is BSD licensed, I
would have guessed otherwise.
Somehow, yes:
https://www.coreboot.org/Development_Guidelines#Sign-off_Procedure
License Issues
Contributed code must be GPL'd (preferrably 'GPLv2', but 'GPLv2 or any later version' is fine, too). At the very minimum the code must have a GPLv2-compatible license.
^ When there is no license specified I would assume a commit is covered by the "default" license (GPLv2 from COPYING), as Martin said.
--
To view, visit https://review.coreboot.org/c/coreboot/+/68982
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic451e68b1ad9ccdf34484dd98bd7fca7e177ef22
Gerrit-Change-Number: 68982
Gerrit-PatchSet: 2
Gerrit-Owner: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: Alexander Couzens <lynxis(a)fe80.eu>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Damien Zammit
Gerrit-Reviewer: Elyes Haouas <ehaouas(a)noos.fr>
Gerrit-Reviewer: Evgeny Zinoviev <me(a)ch1p.io>
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Jason Nien <jason.nien(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Jeremy Soller <jeremy(a)system76.com>
Gerrit-Reviewer: Kapil Porwal <kapilporwal(a)google.com>
Gerrit-Reviewer: Martin Roth <martin.roth(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Maxim Polyakov <max.senia.poliak(a)gmail.com>
Gerrit-Reviewer: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: Tarun Tuli <taruntuli(a)google.com>
Gerrit-Reviewer: Tim Crawford <tcrawford(a)system76.com>
Gerrit-Reviewer: Werner Zeh <werner.zeh(a)siemens.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Attention: Jason Nien <jason.nien(a)amd.corp-partner.google.com>
Gerrit-Attention: Jeremy Soller <jeremy(a)system76.com>
Gerrit-Attention: Martin Roth <martin.roth(a)amd.corp-partner.google.com>
Gerrit-Attention: Tim Crawford <tcrawford(a)system76.com>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Tarun Tuli <taruntuli(a)google.com>
Gerrit-Attention: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Attention: Damien Zammit
Gerrit-Attention: Subrata Banik <subratabanik(a)google.com>
Gerrit-Attention: Maxim Polyakov <max.senia.poliak(a)gmail.com>
Gerrit-Attention: Kapil Porwal <kapilporwal(a)google.com>
Gerrit-Attention: Alexander Couzens <lynxis(a)fe80.eu>
Gerrit-Attention: Werner Zeh <werner.zeh(a)siemens.com>
Gerrit-Attention: Evgeny Zinoviev <me(a)ch1p.io>
Gerrit-Comment-Date: Sun, 20 Nov 2022 22:39:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Nico Huber <nico.h(a)gmx.de>
Comment-In-Reply-To: Martin L Roth <gaumless(a)gmail.com>
Comment-In-Reply-To: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-MessageType: comment
Attention is currently required from: Iman Bingi.
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/69328
to look at the new patch set (#11).
Change subject: payloads/cbflashrom: Add new payload CBFlashrom
......................................................................
payloads/cbflashrom: Add new payload CBFlashrom
Flashrom with Graphical User Interface.
Depends on libpayload and nuklear.
Features:
* Graphical menus with scrolling.
* Text rendering engine (atm only bitmap font)
* Support for keyboard and mouse
* Support for USB and PS/2 devices
* Support for FAT32 file system (USB drives)
* Works as ELF payload
* Works as Seabios secondary payload
* Runs in qemu and on real hardware
Shortcomings:
* Doesn't work in VGA text mode
* Untested
TODO:
* Test on as many hardware/platforms as possible
Change-Id: Ib523ae9eb002f14749942137e53add4986098314
Signed-off-by: Ben Adu-Boahen <imanbingy(a)gmail.com>
---
M payloads/Kconfig
A payloads/cbflashrom/.gitignore
A payloads/cbflashrom/Kconfig
A payloads/cbflashrom/Makefile
A payloads/cbflashrom/NuklearUI/NuklearCBFlashrom.c
A payloads/cbflashrom/NuklearUI/NuklearCBFlashrom.h
A payloads/cbflashrom/NuklearUI/NuklearCheckbox.c
A payloads/cbflashrom/NuklearUI/NuklearCheckbox.h
A payloads/cbflashrom/NuklearUI/NuklearCommon.h
A payloads/cbflashrom/NuklearUI/NuklearDataGrid.c
A payloads/cbflashrom/NuklearUI/NuklearDataGrid.h
A payloads/cbflashrom/NuklearUI/NuklearFieldFile.c
A payloads/cbflashrom/NuklearUI/NuklearFieldFile.h
A payloads/cbflashrom/NuklearUI/NuklearFieldHex.c
A payloads/cbflashrom/NuklearUI/NuklearFieldHex.h
A payloads/cbflashrom/NuklearUI/NuklearFileChooser.c
A payloads/cbflashrom/NuklearUI/NuklearFileChooser.h
A payloads/cbflashrom/NuklearUI/NuklearHex.c
A payloads/cbflashrom/NuklearUI/NuklearHex.h
A payloads/cbflashrom/NuklearUI/NuklearInput.c
A payloads/cbflashrom/NuklearUI/NuklearInput.h
A payloads/cbflashrom/NuklearUI/NuklearObject.c
A payloads/cbflashrom/NuklearUI/NuklearObject.h
A payloads/cbflashrom/NuklearUI/NuklearStyle.c
A payloads/cbflashrom/NuklearUI/NuklearStyle.h
A payloads/cbflashrom/NuklearUI/NuklearUI.h
A payloads/cbflashrom/arch/x86/cpuid.c
A payloads/cbflashrom/arch/x86/cpuid.h
A payloads/cbflashrom/arch/x86/memcpy.c
A payloads/cbflashrom/arch/x86/memcpy.h
A payloads/cbflashrom/cbflashrom.c
A payloads/cbflashrom/cbflashrom.h
A payloads/cbflashrom/flashrom/82802ab.c
A payloads/cbflashrom/flashrom/COPYING
A payloads/cbflashrom/flashrom/Doxyfile
A payloads/cbflashrom/flashrom/MAINTAINERS
A payloads/cbflashrom/flashrom/Makefile
A payloads/cbflashrom/flashrom/Makefile.include
A payloads/cbflashrom/flashrom/README
A payloads/cbflashrom/flashrom/amd_imc.c
A payloads/cbflashrom/flashrom/at45db.c
A payloads/cbflashrom/flashrom/atahpt.c
A payloads/cbflashrom/flashrom/atavia.c
A payloads/cbflashrom/flashrom/bitbang_spi.c
A payloads/cbflashrom/flashrom/board_enable.c
A payloads/cbflashrom/flashrom/buspirate_spi.c
A payloads/cbflashrom/flashrom/cbtable.c
A payloads/cbflashrom/flashrom/ch341a_spi.c
A payloads/cbflashrom/flashrom/chipset_enable.c
A payloads/cbflashrom/flashrom/cli_common.c
A payloads/cbflashrom/flashrom/cli_output.c
A payloads/cbflashrom/flashrom/custom_baud.c
A payloads/cbflashrom/flashrom/dediprog.c
A payloads/cbflashrom/flashrom/developerbox_spi.c
A payloads/cbflashrom/flashrom/digilent_spi.c
A payloads/cbflashrom/flashrom/dirtyjtag_spi.c
A payloads/cbflashrom/flashrom/dmi.c
A payloads/cbflashrom/flashrom/drkaiser.c
A payloads/cbflashrom/flashrom/edi.c
A payloads/cbflashrom/flashrom/en29lv640b.c
A payloads/cbflashrom/flashrom/flashchips.c
A payloads/cbflashrom/flashrom/flashrom.8.tmpl
A payloads/cbflashrom/flashrom/flashrom.c
A payloads/cbflashrom/flashrom/fmap.c
A payloads/cbflashrom/flashrom/ft2232_spi.c
A payloads/cbflashrom/flashrom/gfxnvidia.c
A payloads/cbflashrom/flashrom/helpers.c
A payloads/cbflashrom/flashrom/helpers_fileio.c
A payloads/cbflashrom/flashrom/hwaccess_physmap.c
A payloads/cbflashrom/flashrom/hwaccess_x86_io.c
A payloads/cbflashrom/flashrom/hwaccess_x86_msr.c
A payloads/cbflashrom/flashrom/ich_descriptors.c
A payloads/cbflashrom/flashrom/ichspi.c
A payloads/cbflashrom/flashrom/include/chipdrivers.h
A payloads/cbflashrom/flashrom/include/coreboot_tables.h
A payloads/cbflashrom/flashrom/include/custom_baud.h
A payloads/cbflashrom/flashrom/include/edi.h
A payloads/cbflashrom/flashrom/include/ene.h
A payloads/cbflashrom/flashrom/include/flash.h
A payloads/cbflashrom/flashrom/include/flashchips.h
A payloads/cbflashrom/flashrom/include/fmap.h
A payloads/cbflashrom/flashrom/include/hwaccess_physmap.h
A payloads/cbflashrom/flashrom/include/hwaccess_x86_io.h
A payloads/cbflashrom/flashrom/include/hwaccess_x86_msr.h
A payloads/cbflashrom/flashrom/include/i2c_helper.h
A payloads/cbflashrom/flashrom/include/ich_descriptors.h
A payloads/cbflashrom/flashrom/include/layout.h
A payloads/cbflashrom/flashrom/include/libflashrom.h
A payloads/cbflashrom/flashrom/include/platform.h
A payloads/cbflashrom/flashrom/include/platform/pci.h
A payloads/cbflashrom/flashrom/include/platform/swap.h
A payloads/cbflashrom/flashrom/include/programmer.h
A payloads/cbflashrom/flashrom/include/spi.h
A payloads/cbflashrom/flashrom/include/usb_device.h
A payloads/cbflashrom/flashrom/include/writeprotect.h
A payloads/cbflashrom/flashrom/internal.c
A payloads/cbflashrom/flashrom/internal.h
A payloads/cbflashrom/flashrom/it8212.c
A payloads/cbflashrom/flashrom/it87spi.c
A payloads/cbflashrom/flashrom/jedec.c
A payloads/cbflashrom/flashrom/jlink_spi.c
A payloads/cbflashrom/flashrom/known_boards.c
A payloads/cbflashrom/flashrom/layout.c
A payloads/cbflashrom/flashrom/libflashrom.c
A payloads/cbflashrom/flashrom/libflashrom.map
A payloads/cbflashrom/flashrom/mcp6x_spi.c
A payloads/cbflashrom/flashrom/meson.build
A payloads/cbflashrom/flashrom/meson_options.txt
A payloads/cbflashrom/flashrom/mstarddc_spi.c
A payloads/cbflashrom/flashrom/nic3com.c
A payloads/cbflashrom/flashrom/nicintel.c
A payloads/cbflashrom/flashrom/nicintel_eeprom.c
A payloads/cbflashrom/flashrom/nicintel_spi.c
A payloads/cbflashrom/flashrom/nicnatsemi.c
A payloads/cbflashrom/flashrom/nicrealtek.c
A payloads/cbflashrom/flashrom/ogp_spi.c
A payloads/cbflashrom/flashrom/opaque.c
A payloads/cbflashrom/flashrom/parade_lspcon.c
A payloads/cbflashrom/flashrom/parallel.c
A payloads/cbflashrom/flashrom/pcidev.c
A payloads/cbflashrom/flashrom/pickit2_spi.c
A payloads/cbflashrom/flashrom/platform/endian_big.c
A payloads/cbflashrom/flashrom/platform/endian_little.c
A payloads/cbflashrom/flashrom/platform/memaccess.c
A payloads/cbflashrom/flashrom/platform/meson.build
A payloads/cbflashrom/flashrom/pony_spi.c
A payloads/cbflashrom/flashrom/processor_enable.c
A payloads/cbflashrom/flashrom/programmer.c
A payloads/cbflashrom/flashrom/programmer_table.c
A payloads/cbflashrom/flashrom/raiden_debug_spi.c
A payloads/cbflashrom/flashrom/rayer_spi.c
A payloads/cbflashrom/flashrom/realtek_mst_i2c_spi.c
A payloads/cbflashrom/flashrom/s25f.c
A payloads/cbflashrom/flashrom/satamv.c
A payloads/cbflashrom/flashrom/satasii.c
A payloads/cbflashrom/flashrom/sb600spi.c
A payloads/cbflashrom/flashrom/serprog.c
A payloads/cbflashrom/flashrom/sfdp.c
A payloads/cbflashrom/flashrom/spi.c
A payloads/cbflashrom/flashrom/spi25.c
A payloads/cbflashrom/flashrom/spi25_statusreg.c
A payloads/cbflashrom/flashrom/spi95.c
A payloads/cbflashrom/flashrom/sst28sf040.c
A payloads/cbflashrom/flashrom/sst49lfxxxc.c
A payloads/cbflashrom/flashrom/sst_fwhub.c
A payloads/cbflashrom/flashrom/stlinkv3_spi.c
A payloads/cbflashrom/flashrom/stm50.c
A payloads/cbflashrom/flashrom/test_build.sh
A payloads/cbflashrom/flashrom/udelay.c
A payloads/cbflashrom/flashrom/usb_device.c
A payloads/cbflashrom/flashrom/usbblaster_spi.c
A payloads/cbflashrom/flashrom/usbdev.c
A payloads/cbflashrom/flashrom/w29ee011.c
A payloads/cbflashrom/flashrom/w39.c
A payloads/cbflashrom/flashrom/wbsio_spi.c
A payloads/cbflashrom/flashrom/writeprotect.c
A payloads/cbflashrom/flashrom/writeprotect_ranges.c
A payloads/cbflashrom/fsys/usbstorage.c
A payloads/cbflashrom/fsys/usbstorage.h
A payloads/cbflashrom/gfx/gfx.c
A payloads/cbflashrom/gfx/gfx.h
A payloads/cbflashrom/gfx/splash.c
A payloads/cbflashrom/gfx/splash.h
A payloads/cbflashrom/lang/en.c
A payloads/cbflashrom/lang/lang.c
A payloads/cbflashrom/lang/lang.h
A payloads/cbflashrom/libftdi/LICENSE
A payloads/cbflashrom/libftdi/src/ftdi.c
A payloads/cbflashrom/libftdi/src/ftdi.h
A payloads/cbflashrom/libftdi/src/ftdi_i.h
A payloads/cbflashrom/libftdi/src/ftdi_stream.c
A payloads/cbflashrom/libjaylink/buffer.c
A payloads/cbflashrom/libjaylink/core.c
A payloads/cbflashrom/libjaylink/device.c
A payloads/cbflashrom/libjaylink/discovery.c
A payloads/cbflashrom/libjaylink/discovery_usb.c
A payloads/cbflashrom/libjaylink/emucom.c
A payloads/cbflashrom/libjaylink/error.c
A payloads/cbflashrom/libjaylink/fileio.c
A payloads/cbflashrom/libjaylink/jtag.c
A payloads/cbflashrom/libjaylink/libjaylink-internal.h
A payloads/cbflashrom/libjaylink/libjaylink.h
A payloads/cbflashrom/libjaylink/list.c
A payloads/cbflashrom/libjaylink/log.c
A payloads/cbflashrom/libjaylink/strutil.c
A payloads/cbflashrom/libjaylink/swd.c
A payloads/cbflashrom/libjaylink/swo.c
A payloads/cbflashrom/libjaylink/target.c
A payloads/cbflashrom/libjaylink/transport.c
A payloads/cbflashrom/libjaylink/transport_usb.c
A payloads/cbflashrom/libjaylink/util.c
A payloads/cbflashrom/libusb/libusb.c
A payloads/cbflashrom/libusb/libusb.h
A payloads/cbflashrom/logo/cbui.png
A payloads/cbflashrom/lp.config
A payloads/cbflashrom/util/buffers.c
A payloads/cbflashrom/util/buffers.h
A payloads/cbflashrom/util/vector.c
A payloads/cbflashrom/util/vector.h
199 files changed, 91,910 insertions(+), 11 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/28/69328/11
--
To view, visit https://review.coreboot.org/c/coreboot/+/69328
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ib523ae9eb002f14749942137e53add4986098314
Gerrit-Change-Number: 69328
Gerrit-PatchSet: 11
Gerrit-Owner: Iman Bingi <imanbingy(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Iman Bingi <imanbingy(a)gmail.com>
Gerrit-MessageType: newpatchset
Nicholas Chin has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/69450 )
Change subject: util/kconfig: Re-add KCONFIG_SPLITCONFIG functionality
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
> Hey, I'm sorry, I didn't see this and pushed my own patch - it's pretty much identical to yours. […]
Oh well, it happens. In that case I'll abandon this patch. I also just pushed a patch to fix the diff formatting of your patch, as it is incompatible with the quilt tool. CB:69863
--
To view, visit https://review.coreboot.org/c/coreboot/+/69450
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I4dd36edb0c36d7679896fde6f84e8471589d83a1
Gerrit-Change-Number: 69450
Gerrit-PatchSet: 1
Gerrit-Owner: Nicholas Chin <nic.c3.14(a)gmail.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Sun, 20 Nov 2022 18:11:12 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Martin L Roth <gaumless(a)gmail.com>
Gerrit-MessageType: comment
Attention is currently required from: Martin L Roth.
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/69863 )
Change subject: util/kconfig: Fix patch to be compatible with quilt
......................................................................
Patch Set 1:
(1 comment)
Commit Message:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-164098):
https://review.coreboot.org/c/coreboot/+/69863/comment/da105619_0d21cad4
PS1, Line 8:
Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit b7f92a0b6a0f ("util/kconfig: Add patch to move Kconfig deps to build/config")'
--
To view, visit https://review.coreboot.org/c/coreboot/+/69863
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I95bfe6571e3a2cc2b38074b4338f1610a4c8a595
Gerrit-Change-Number: 69863
Gerrit-PatchSet: 1
Gerrit-Owner: Nicholas Chin <nic.c3.14(a)gmail.com>
Gerrit-Reviewer: Martin L Roth <gaumless(a)gmail.com>
Gerrit-CC: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Comment-Date: Sun, 20 Nov 2022 18:06:28 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Martin L Roth has submitted this change. ( https://review.coreboot.org/c/coreboot/+/54510 )
Change subject: device/pciexp: add pcie_find_dsn()
......................................................................
device/pciexp: add pcie_find_dsn()
Add pcie_find_dsn() to detect and match PCIe device serial
number. In addition, vendor ID is matched when provided.
Change-Id: I54b6dc42c8da47cd7b4447ab23a6a21562c7618
Signed-off-by: Jonathan Zhang <jonzhang(a)meta.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/54510
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Marc Jones <marc(a)marcjonesconsulting.com>
---
M src/device/pciexp_device.c
M src/include/device/pciexp.h
2 files changed, 70 insertions(+), 0 deletions(-)
Approvals:
build bot (Jenkins): Verified
Marc Jones: Looks good to me, approved
diff --git a/src/device/pciexp_device.c b/src/device/pciexp_device.c
index b03089b..c9441fb 100644
--- a/src/device/pciexp_device.c
+++ b/src/device/pciexp_device.c
@@ -93,6 +93,57 @@
}
}
+/**
+ * Find a PCIe device with a given serial number, and a given VID if applicable
+ *
+ * @param serial The serial number of the device.
+ * @param vid Vendor ID of the device, may be 0 if not applicable.
+ * @param from Pointer to the device structure, used as a starting point in
+ * the linked list of all_devices, which can be 0 to start at the
+ * head of the list (i.e. all_devices).
+ * @return Pointer to the device struct.
+ */
+struct device *pcie_find_dsn(const uint64_t serial, const uint16_t vid,
+ struct device *from)
+{
+ union dsn {
+ struct {
+ uint32_t dsn_low;
+ uint32_t dsn_high;
+ };
+ uint64_t dsn;
+ } dsn;
+ unsigned int cap;
+ uint16_t vendor_id;
+
+ if (!from)
+ from = all_devices;
+ else
+ from = from->next;
+
+ while (from) {
+ if (from->path.type == DEVICE_PATH_PCI) {
+ cap = pciexp_find_extended_cap(from, PCI_EXT_CAP_ID_DSN, 0);
+ /*
+ * For PCIe device, find extended capability for serial number.
+ * The capability header is 4 bytes, followed by lower 4 bytes
+ * of serial number, then higher 4 byes of serial number.
+ */
+ if (cap != 0) {
+ dsn.dsn_low = pci_read_config32(from, cap + 4);
+ dsn.dsn_high = pci_read_config32(from, cap + 8);
+ vendor_id = pci_read_config16(from, PCI_VENDOR_ID);
+ if ((dsn.dsn == serial) && (vid == 0 || vendor_id == vid))
+ return from;
+ }
+ }
+
+ from = from->next;
+ }
+
+ return from;
+}
+
/*
* Re-train a PCIe link
*/
diff --git a/src/include/device/pciexp.h b/src/include/device/pciexp.h
index d816240..9f9c28e 100644
--- a/src/include/device/pciexp.h
+++ b/src/include/device/pciexp.h
@@ -44,6 +44,9 @@
type == PCI_EXP_TYPE_PCIE_BRIDGE;
}
+struct device *pcie_find_dsn(const uint64_t serial, const uint16_t vid,
+ struct device *from);
+
bool pciexp_get_ltr_max_latencies(struct device *dev, u16 *max_snoop, u16 *max_nosnoop);
#endif /* DEVICE_PCIEXP_H */
--
To view, visit https://review.coreboot.org/c/coreboot/+/54510
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I54b6dc42c8da47cd7b4447ab23a6a21562c7618b
Gerrit-Change-Number: 54510
Gerrit-PatchSet: 15
Gerrit-Owner: Jonathan Zhang <jonzhang(a)fb.com>
Gerrit-Reviewer: Angel Pons <angel.pons(a)9elements.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: David Hendricks
Gerrit-Reviewer: Jonathan Zhang <jonzhang(a)fb.com>
Gerrit-Reviewer: Marc Jones <marc(a)marcjonesconsulting.com>
Gerrit-Reviewer: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Reviewer: ron minnich <rminnich(a)gmail.com>
Gerrit-CC: Tim Chu <Tim.Chu(a)quantatw.com>
Gerrit-MessageType: merged