Attention is currently required from: Raul Rangel, Furquan Shaikh.
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/54132 )
Change subject: drivers/acpi: Add device tree driver to generate thermal zone
......................................................................
Patch Set 2:
(2 comments)
File src/drivers/acpi/thermal_zone/thermal_zone.c:
https://review.coreboot.org/c/coreboot/+/54132/comment/99890fe3_3407d1c9
PS2, Line 98: !config->passive_config.time_constant_1
: || !config->passive_config.time_constant_2
: || !config->passive_config.time_sampling_period) {
: acpigen_write_name_integer("_TC1", 2);
: acpigen_write_name_integer("_TC2", 5);
: acpigen_write_name_integer("_TSP", SECONDS_TO_DECI_SECONDS(10));
Should there be an error instead of emitting defaults?
https://review.coreboot.org/c/coreboot/+/54132/comment/a2c2b2ac_5de7ab4f
PS2, Line 114:
: config->temperature_controller->ops->acpigen_write_TMP(dev);
Hmm... I'm not a big fan of adding a new callback to `struct device *`... I see where the tricky part of this, how to get the right acpigen calls when emitting `_TMP`.
What do you think about just writing a `_TMP` that forwards the call to the `_TMP` of the temperature_controller device instead? e.g.
```
/*
Method (_TMP, 1)
{
Return acpi_path(temperature_controller)._TMP(Arg0)
}
*/
acpigen_write_method("_TMP", 0);
acpigen_emit_byte(RETURN_OP);
acpigen_emit_namestring(acpi_device_path_join(config->temperature_controller), "_TMP");
acpigen_emit_byte(ARG0_OP);
acpigen_write_method_end();
```
?
--
To view, visit https://review.coreboot.org/c/coreboot/+/54132
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iee2a42db749f18eef6c3f73cdbb3441567301e5d
Gerrit-Change-Number: 54132
Gerrit-PatchSet: 2
Gerrit-Owner: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Attention: Furquan Shaikh <furquan(a)google.com>
Gerrit-Comment-Date: Thu, 13 May 2021 22:52:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Furquan Shaikh, Martin Roth, Tim Wawrzynczak, Rob Barnes.
Raul Rangel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/54134 )
Change subject: mb/google/guybrush: Add SoC thermal zone
......................................................................
Patch Set 2:
(1 comment)
File src/mainboard/google/guybrush/variants/baseboard/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/54134/comment/30d711a8_561eefea
PS1, Line 55: chip drivers/acpi/thermal_zone
: register "name" = ""SOC""
:
: register "temperature_sensor_id" = "0"
:
: register "polling_period" = "10000"
:
: # EC is configured to power off the system at 92C, so add one degree of buffer
: # so the OS can gracefully shutdown
: register "critical_temperature" = "91"
:
: # EC is configured to assert PROCHOT at 90C. That drastically lowers
: # performance. Instead we will tell the OS to start throttling the CPUs at
: # 85C in hopes that we don't hit the PROCHOT limit.
: register "passive_config" = "{
: .temperature = 85,
: .time_constant_1 = 2,
: .time_constant_2 = 5,
: .time_sampling_period = 2000,
: }"
:
: device generic 0 on end
: end
> Sorry I don't follow what the additional callback is for... […]
Pushed a new patch.
--
To view, visit https://review.coreboot.org/c/coreboot/+/54134
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iaeed75bdaa16b117d0fa7144ede98db1388f74f3
Gerrit-Change-Number: 54134
Gerrit-PatchSet: 2
Gerrit-Owner: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Rob Barnes <robbarnes(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-CC: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Attention: Furquan Shaikh <furquan(a)google.com>
Gerrit-Attention: Martin Roth <martinroth(a)google.com>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Attention: Rob Barnes <robbarnes(a)google.com>
Gerrit-Comment-Date: Thu, 13 May 2021 21:59:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Raul Rangel <rrangel(a)chromium.org>
Comment-In-Reply-To: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Furquan Shaikh.
Hello build bot (Jenkins), Furquan Shaikh, Tim Wawrzynczak,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/54133
to look at the new patch set (#2).
Change subject: ec/google/chromeec: Implement support for DRIVERS_ACPI_THERMAL_ZONE
......................................................................
ec/google/chromeec: Implement support for DRIVERS_ACPI_THERMAL_ZONE
This generates the required method to access temperature data from the
ChromeEC.
BUG=b:186166365
TEST=Boot guybrush to the OS
Signed-off-by: Raul E Rangel <rrangel(a)chromium.org>
Change-Id: I418b6691a7d00a4c2d89c9c1fe8f9416602be0f1
---
M src/ec/google/chromeec/ec.h
M src/ec/google/chromeec/ec_acpi.c
M src/ec/google/chromeec/ec_lpc.c
3 files changed, 40 insertions(+), 7 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/33/54133/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/54133
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I418b6691a7d00a4c2d89c9c1fe8f9416602be0f1
Gerrit-Change-Number: 54133
Gerrit-PatchSet: 2
Gerrit-Owner: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Furquan Shaikh <furquan(a)google.com>
Gerrit-MessageType: newpatchset
Attention is currently required from: Furquan Shaikh, Martin Roth, Tim Wawrzynczak, Rob Barnes.
Hello build bot (Jenkins), Furquan Shaikh, Martin Roth, Rob Barnes,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/54134
to look at the new patch set (#2).
Change subject: mb/google/guybrush: Add SoC thermal zone
......................................................................
mb/google/guybrush: Add SoC thermal zone
The time constant values were taken from the zork thermal.asl.
BUG=b:186166365
TEST=Boot guybrush to OS and verify logs look correct
thermal-0294 thermal_trips_update : Found critical threshold [3641]
thermal-0321 thermal_trips_update : No hot threshold
thermal-0200 thermal_get_temperatur: Temperature is 3060 dK
thermal-0219 thermal_get_polling_fr: Polling frequency is 100 dS
thermal-0200 thermal_get_temperatur: Temperature is 3060 dK
thermal LNXTHERM:00: registered as thermal_zone0
ACPI: Thermal Zone [TM00] (33 C)
thermal-0200 thermal_get_temperatur: Temperature is 3070 dK
Signed-off-by: Raul E Rangel <rrangel(a)chromium.org>
Change-Id: Iaeed75bdaa16b117d0fa7144ede98db1388f74f3
---
M src/mainboard/google/guybrush/Kconfig
M src/mainboard/google/guybrush/variants/baseboard/devicetree.cb
2 files changed, 25 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/34/54134/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/54134
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iaeed75bdaa16b117d0fa7144ede98db1388f74f3
Gerrit-Change-Number: 54134
Gerrit-PatchSet: 2
Gerrit-Owner: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Rob Barnes <robbarnes(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-CC: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Attention: Furquan Shaikh <furquan(a)google.com>
Gerrit-Attention: Martin Roth <martinroth(a)google.com>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Attention: Rob Barnes <robbarnes(a)google.com>
Gerrit-MessageType: newpatchset
Attention is currently required from: Furquan Shaikh, Tim Wawrzynczak.
Raul Rangel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/54132 )
Change subject: drivers/acpi: Add device tree driver to generate thermal zone
......................................................................
Patch Set 2:
(6 comments)
File src/drivers/acpi/thermal_zone/chip.h:
https://review.coreboot.org/c/coreboot/+/54132/comment/a977d786_61776e57
PS1, Line 13: /* Name of the thermal zone */
: const char *name;
> suggestion: since this is for _STR, maybe use `description` instead of `name` ? My first thought was […]
Done
https://review.coreboot.org/c/coreboot/+/54132/comment/bcc01e7c_3fe77459
PS1, Line 28: acpi_thermal_zone_passive_config
> I don't think the struct name is required
Reworked the units to be seconds. ms doesn't really make sense.
https://review.coreboot.org/c/coreboot/+/54132/comment/c09b5c42_1b230f36
PS1, Line 51: acpigen_write_thermal_zone_get_temperature
> Having had a bad nights sleep ;) […]
Done
File src/drivers/acpi/thermal_zone/thermal_zone.c:
https://review.coreboot.org/c/coreboot/+/54132/comment/f18012eb_6c283692
PS1, Line 57: K
> deci-kelvin
Done
https://review.coreboot.org/c/coreboot/+/54132/comment/12822244_f0cd5cfb
PS1, Line 76: dev_count_cpu
> ``` […]
lol, maybe I'll file a bug :)
https://review.coreboot.org/c/coreboot/+/54132/comment/89662769_8c565caa
PS1, Line 87: if (acpigen_write_thermal_zone_get_temperature(config) != CB_SUCCESS)
: printk(BIOS_ERR, "Failed to write _TMP for %s.%s\n", scope, name);
> Does this callback need to have a return value? […]
Nope.
--
To view, visit https://review.coreboot.org/c/coreboot/+/54132
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iee2a42db749f18eef6c3f73cdbb3441567301e5d
Gerrit-Change-Number: 54132
Gerrit-PatchSet: 2
Gerrit-Owner: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Furquan Shaikh <furquan(a)google.com>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Comment-Date: Thu, 13 May 2021 21:59:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Raul Rangel <rrangel(a)chromium.org>
Comment-In-Reply-To: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Furquan Shaikh, Tim Wawrzynczak.
Hello build bot (Jenkins), Furquan Shaikh, Tim Wawrzynczak,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/54132
to look at the new patch set (#2).
Change subject: drivers/acpi: Add device tree driver to generate thermal zone
......................................................................
drivers/acpi: Add device tree driver to generate thermal zone
Given the following device tree entry:
chip drivers/acpi/thermal_zone
register "description" = ""SOC""
use chrome_ec as temperature_controller
register "sensor_id" = "0"
register "polling_period" = "10"
# EC is configured to power off the system at 92C, so add one degree of buffer
# so the OS can gracefully shutdown
register "critical_temperature" = "91"
# EC is configured to assert PROCHOT at 90C. That drastically lowers
# performance. Instead we will tell the OS to start throttling the CPUs at
# 85C in hopes that we don't hit the PROCHOT limit.
register "passive_config" = "{
.temperature = 85,
}"
device generic 0 on end
end
It will generate the following:
Scope (\_TZ)
{
ThermalZone (TM00)
{
Name (_STR, "CPU") // _STR: Description String
Name (_RTV, Zero) // _RTV: Relative Temperature Values
Name (_TZP, 0x64) // _TZP: Thermal Zone Polling
Name (_CRT, 0x0E39) // _CRT: Critical Temperature
Name (_PSV, 0x0DFD) // _PSV: Passive Temperature
Name (_PSL, Package (0x10) // _PSL: Passive List
{
\_SB.CP00,
\_SB.CP01,
\_SB.CP02,
\_SB.CP03,
\_SB.CP04,
\_SB.CP05,
\_SB.CP06,
\_SB.CP07,
\_SB.CP08,
\_SB.CP09,
})
Name (_TC1, 0x02) // _TC1: Thermal Constant 1
Name (_TC2, 0x05) // _TC2: Thermal Constant 2
Name (_TSP, 0x14) // _TSP: Thermal Sampling Period
Method (_TMP, 0, Serialized) // _TMP: Temperature
{
Return (\_SB.PCI0.LPCB.EC0.TSRD (Zero))
}
}
}
BUG=b:186166365
TEST=Boot guybrush to OS and verify thermal zone works
Signed-off-by: Raul E Rangel <rrangel(a)chromium.org>
Change-Id: Iee2a42db749f18eef6c3f73cdbb3441567301e5d
---
A src/drivers/acpi/thermal_zone/Kconfig
A src/drivers/acpi/thermal_zone/Makefile.inc
A src/drivers/acpi/thermal_zone/chip.h
A src/drivers/acpi/thermal_zone/thermal_zone.c
M src/include/device/device.h
5 files changed, 200 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/32/54132/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/54132
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iee2a42db749f18eef6c3f73cdbb3441567301e5d
Gerrit-Change-Number: 54132
Gerrit-PatchSet: 2
Gerrit-Owner: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Furquan Shaikh <furquan(a)google.com>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-MessageType: newpatchset
Attention is currently required from: Furquan Shaikh, Dtrain Hsu, Henry Sun, Karthik Ramasubramanian.
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/54057 )
Change subject: mb/google/dedede/var/cret: Enable/disable LTE function based on FW_CONFIG
......................................................................
Patch Set 3:
(1 comment)
Patchset:
PS3:
Furquan, we need your ACPI shutdown patches ðŸ˜
What about implementing a `\_SB.MPTS` and perform the power sequence when entering S5 instead of SMM?
--
To view, visit https://review.coreboot.org/c/coreboot/+/54057
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ib926e99aaf9df433a7cff71180ee55431d69f718
Gerrit-Change-Number: 54057
Gerrit-PatchSet: 3
Gerrit-Owner: Dtrain Hsu <dtrain_hsu(a)compal.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: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Alan Lee <alan_lee(a)compal.corp-partner.google.com>
Gerrit-CC: Ian Feng <ian_feng(a)compal.corp-partner.google.com>
Gerrit-Attention: Furquan Shaikh <furquan(a)google.com>
Gerrit-Attention: Dtrain Hsu <dtrain_hsu(a)compal.corp-partner.google.com>
Gerrit-Attention: Henry Sun <henrysun(a)google.com>
Gerrit-Attention: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Comment-Date: Thu, 13 May 2021 21:04:09 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Bora Guvendik, Furquan Shaikh, Selma Bensaid, Maulik V Vaghela, Ronak Kanabar, Tim Wawrzynczak, Patrick Rudolph.
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/54036 )
Change subject: soc/intel/alderlake: Update meminit code due to upd changes FSP 2147 onwards
......................................................................
Patch Set 4:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/54036/comment/de2b84f0_9abe0668
PS4, Line 19:
Will also need the same Cq-Depend as its parent
--
To view, visit https://review.coreboot.org/c/coreboot/+/54036
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I5af11ae99db3bbe3373a9bd4ce36453b58d62fec
Gerrit-Change-Number: 54036
Gerrit-PatchSet: 4
Gerrit-Owner: Bora Guvendik <bora.guvendik(a)intel.com>
Gerrit-Reviewer: Maulik V Vaghela <maulik.v.vaghela(a)intel.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Ronak Kanabar <ronak.kanabar(a)intel.com>
Gerrit-Reviewer: Selma Bensaid <selma.bensaid(a)intel.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Furquan Shaikh <furquan(a)google.com>
Gerrit-Attention: Bora Guvendik <bora.guvendik(a)intel.com>
Gerrit-Attention: Furquan Shaikh <furquan(a)google.com>
Gerrit-Attention: Selma Bensaid <selma.bensaid(a)intel.com>
Gerrit-Attention: Maulik V Vaghela <maulik.v.vaghela(a)intel.com>
Gerrit-Attention: Ronak Kanabar <ronak.kanabar(a)intel.com>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak(a)google.com>
Gerrit-Attention: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Thu, 13 May 2021 20:21:10 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment