Attention is currently required from: Varshit Pandya.
Felix Held has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/78900?usp=email )
Change subject: soc/amd/genoa: add I2C support
......................................................................
Set Ready For Review
--
To view, visit https://review.coreboot.org/c/coreboot/+/78900?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Iebc10de6ea5c6d441cff04e016dcec62405078c3
Gerrit-Change-Number: 78900
Gerrit-PatchSet: 5
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Varshit Pandya <pandyavarshit(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Attention: Varshit Pandya <pandyavarshit(a)gmail.com>
Gerrit-Comment-Date: Mon, 20 Nov 2023 16:26:23 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Felix Held has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/79177?usp=email )
Change subject: [WIP] soc/amd/genoa: add I2C pad control support
......................................................................
[WIP] soc/amd/genoa: add I2C pad control support
Still need to find out for sure which type of pad control register is
used for I2C4 and I2C5.
Signed-off-by: Felix Held <felix-coreboot(a)felixheld.de>
Change-Id: Ibc14a6de60be84460418703472293814e9a51379
---
M src/soc/amd/genoa/Kconfig
M src/soc/amd/genoa/chip.h
M src/soc/amd/genoa/i2c.c
3 files changed, 14 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/77/79177/1
diff --git a/src/soc/amd/genoa/Kconfig b/src/soc/amd/genoa/Kconfig
index cbf0ddd..bca6ed4 100644
--- a/src/soc/amd/genoa/Kconfig
+++ b/src/soc/amd/genoa/Kconfig
@@ -21,6 +21,8 @@
select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_EXTENDED_MMIO
select SOC_AMD_COMMON_BLOCK_HAS_ESPI
select SOC_AMD_COMMON_BLOCK_I2C
+ select SOC_AMD_COMMON_BLOCK_I2C_PAD_CTRL
+ select SOC_AMD_COMMON_BLOCK_I23C_PAD_CTRL
select SOC_AMD_COMMON_BLOCK_IOMMU
select SOC_AMD_COMMON_BLOCK_LPC
select SOC_AMD_COMMON_BLOCK_MCAX
diff --git a/src/soc/amd/genoa/chip.h b/src/soc/amd/genoa/chip.h
index bca40af..5713a72 100644
--- a/src/soc/amd/genoa/chip.h
+++ b/src/soc/amd/genoa/chip.h
@@ -14,6 +14,7 @@
u8 i2c_scl_reset;
struct dw_i2c_bus_config i2c[I2C_CTRLR_COUNT];
+ struct i2c_pad_control i2c_pad[I2C_CTRLR_COUNT];
};
#endif
diff --git a/src/soc/amd/genoa/i2c.c b/src/soc/amd/genoa/i2c.c
index 76c1049..0a1f4fb 100644
--- a/src/soc/amd/genoa/i2c.c
+++ b/src/soc/amd/genoa/i2c.c
@@ -38,7 +38,17 @@
void soc_i2c_misc_init(unsigned int bus, const struct dw_i2c_bus_config *cfg)
{
- /* TODO: write I2C pad control registers */
+ const struct soc_amd_genoa_config *config = config_of_soc();
+
+ if (bus >= ARRAY_SIZE(config->i2c_pad))
+ return;
+
+ /* The I/O pads of I2C0..3 are the new I23C pads and the I/O pads of I2C4..5 still are
+ the same I2C pads as in Picasso and Cezanne. TODO: verify if this is true */
+ if (bus <= 3)
+ fch_i23c_pad_init(bus, cfg->speed, &config->i2c_pad[bus]);
+ else
+ fch_i2c_pad_init(bus, cfg->speed, &config->i2c_pad[bus]);
}
const struct soc_i2c_ctrlr_info *soc_get_i2c_ctrlr_info(size_t *num_ctrlrs)
--
To view, visit https://review.coreboot.org/c/coreboot/+/79177?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Ibc14a6de60be84460418703472293814e9a51379
Gerrit-Change-Number: 79177
Gerrit-PatchSet: 1
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-MessageType: newchange
Attention is currently required from: Angel Pons, Kevin Keijzer, Paul Menzel.
Keith Hui has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/78204?usp=email )
Change subject: Documentation/mb/asus/p8z77-m: Document latest test results
......................................................................
Patch Set 2:
(1 comment)
File Documentation/mainboard/asus/p8z77-m.md:
https://review.coreboot.org/c/coreboot/+/78204/comment/b88537b0_36d92a69 :
PS2, Line 106: It appears all memory modules rated for DDR3-1600 will fail to boot if
: max_mem_clock_mhz is set to 800 in devicetree.
> No, the *sticky* scratchpad register persists across warm reboots, so they'd work for this purpose. […]
Rebase done, but I'm running into problems over there too. Take a look.
--
To view, visit https://review.coreboot.org/c/coreboot/+/78204?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I4f4c9268cd272caa83267be3f71d4a2022c26a1c
Gerrit-Change-Number: 78204
Gerrit-PatchSet: 2
Gerrit-Owner: Keith Hui <buurin(a)gmail.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Nicholas Chin <nic.c3.14(a)gmail.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Kevin Keijzer <kevin(a)quietlife.nl>
Gerrit-Attention: Kevin Keijzer <kevin(a)quietlife.nl>
Gerrit-Attention: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Comment-Date: Mon, 20 Nov 2023 16:09:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Kevin Keijzer <kevin(a)quietlife.nl>
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Comment-In-Reply-To: Keith Hui <buurin(a)gmail.com>
Gerrit-MessageType: comment
Attention is currently required from: Paul Menzel.
Patrick Rudolph has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/78609?usp=email )
Change subject: cpu/intel/model_206ax: Program Ivy Bridge defaults for MSR_PKGC_IRTL
......................................................................
Patch Set 6:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/78609/comment/20fdf64d_69fc99cb :
PS6, Line 12: Test: Lenovo X220 still boots.
> Can it somehow be checked, if the correct latencies were programmed, and if they make a difference?
It should stay in deeper C-states longer as before, but it's hard to tell if it really does as there are so many things having an influence on the actual time spend in a C-state.
--
To view, visit https://review.coreboot.org/c/coreboot/+/78609?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Ib307e3b191ba68e016cc348f82e2dccf1dc9ae16
Gerrit-Change-Number: 78609
Gerrit-PatchSet: 6
Gerrit-Owner: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Comment-Date: Mon, 20 Nov 2023 16:04:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-MessageType: comment
Attention is currently required from: Angel Pons, Arthur Heymans, Felix Held, Krystian Hebel, Michał Żygowski, Nico Huber.
Patrick Rudolph has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/77338?usp=email )
Change subject: device/pciexp_device.c: Fix setting Max Payload Size
......................................................................
Patch Set 10:
(1 comment)
File src/device/pciexp_device.c:
https://review.coreboot.org/c/coreboot/+/77338/comment/99518b6b_44b48c75 :
PS10, Line 709: pciexp_configure_max_payload
> I tried the above suggestion and it doesn't work. […]
It looks like the parent of a device can be the device itself.
```
/* Walk up the chain and adjust MaxPayload to the minimum supported in the chain */
while (dev->bus && dev->bus->dev && !pciexp_device_is_root_port(dev)) {
if (dev->bus->dev == dev || dev->bus->dev->path.type != DEVICE_PATH_PCI)
break;
/* Adjust Max_Payload_Size */
pciexp_set_max_payload_size(dev->bus->dev, root_cap, dev, cap);
dev = dev->bus->dev;
};
```
Should work.
--
To view, visit https://review.coreboot.org/c/coreboot/+/77338?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I24386dc208363b7d94fea46dec25c231a3968225
Gerrit-Change-Number: 77338
Gerrit-PatchSet: 10
Gerrit-Owner: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Gerrit-Reviewer: Angel Pons <angel.pons(a)9elements.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Krystian Hebel <krystian.hebel(a)3mdeb.com>
Gerrit-CC: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-CC: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Attention: Krystian Hebel <krystian.hebel(a)3mdeb.com>
Gerrit-Attention: Angel Pons <angel.pons(a)9elements.com>
Gerrit-Attention: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Comment-Date: Mon, 20 Nov 2023 15:54:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Comment-In-Reply-To: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-MessageType: comment
Attention is currently required from: Keith Hui, Kevin Keijzer, Paul Menzel.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/78204?usp=email )
Change subject: Documentation/mb/asus/p8z77-m: Document latest test results
......................................................................
Patch Set 2:
(1 comment)
File Documentation/mainboard/asus/p8z77-m.md:
https://review.coreboot.org/c/coreboot/+/78204/comment/ec943ec7_82096f8e :
PS2, Line 106: It appears all memory modules rated for DDR3-1600 will fail to boot if
: max_mem_clock_mhz is set to 800 in devicetree.
> We need auto downclocking. […]
No, the *sticky* scratchpad register persists across warm reboots, so they'd work for this purpose. Actually, I'd avoid using NVRAM - I switch between coreboot and vendor firmware from time to time, and vendor firmware resets its settings if coreboot has modified NVRAM.
In theory, channels should be independent, so if one stick works on its own on channel 0 and the other stick works on its own on channel 1, both should be able to work at the same time too. But something seems to be different for dual-channel.
If this discussion is going to take time, I suggest that you rebase CB:78205 out of the relation chain so that it can be submitted.
--
To view, visit https://review.coreboot.org/c/coreboot/+/78204?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I4f4c9268cd272caa83267be3f71d4a2022c26a1c
Gerrit-Change-Number: 78204
Gerrit-PatchSet: 2
Gerrit-Owner: Keith Hui <buurin(a)gmail.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Nicholas Chin <nic.c3.14(a)gmail.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Kevin Keijzer <kevin(a)quietlife.nl>
Gerrit-Attention: Kevin Keijzer <kevin(a)quietlife.nl>
Gerrit-Attention: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Keith Hui <buurin(a)gmail.com>
Gerrit-Comment-Date: Mon, 20 Nov 2023 15:40:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Kevin Keijzer <kevin(a)quietlife.nl>
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Comment-In-Reply-To: Keith Hui <buurin(a)gmail.com>
Gerrit-MessageType: comment
Attention is currently required from: Angel Pons, Arthur Heymans, Felix Held, Krystian Hebel, Nico Huber, Patrick Rudolph.
Michał Żygowski has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/77338?usp=email )
Change subject: device/pciexp_device.c: Fix setting Max Payload Size
......................................................................
Patch Set 10:
(1 comment)
File src/device/pciexp_device.c:
https://review.coreboot.org/c/coreboot/+/77338/comment/84fe88d8_3595872e :
PS10, Line 709: pciexp_configure_max_payload
> instead of adding all of the new code, wouldn't it be simpler to do something like this here: […]
I tried the above suggestion and it doesn't work.
`dev = dev->bus->dev;` assignment break the whole chain and the pciexp_set_max_payload_size gets called with root and endp being the same devices.
--
To view, visit https://review.coreboot.org/c/coreboot/+/77338?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I24386dc208363b7d94fea46dec25c231a3968225
Gerrit-Change-Number: 77338
Gerrit-PatchSet: 10
Gerrit-Owner: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Gerrit-Reviewer: Angel Pons <angel.pons(a)9elements.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Krystian Hebel <krystian.hebel(a)3mdeb.com>
Gerrit-CC: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-CC: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Attention: Krystian Hebel <krystian.hebel(a)3mdeb.com>
Gerrit-Attention: Angel Pons <angel.pons(a)9elements.com>
Gerrit-Attention: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Comment-Date: Mon, 20 Nov 2023 15:03:59 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-MessageType: comment