Tim Wawrzynczak has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/43458 )
Change subject: drivers/intel/dptf: Add missing scope operator around TSR options ......................................................................
drivers/intel/dptf: Add missing scope operator around TSR options
The previous DPTF patch train missed the proper scope operator around all of the TSR options. Without this, the optional GTSH and/or _STR Methods end up in the wrong scope.
Signed-off-by: Tim Wawrzynczak twawrzynczak@chromium.org Change-Id: I9298c442c047c5f7f606574d900057a7c004b47f --- M src/drivers/intel/dptf/dptf.c 1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/58/43458/1
diff --git a/src/drivers/intel/dptf/dptf.c b/src/drivers/intel/dptf/dptf.c index 1e4063e..3d3b63e 100644 --- a/src/drivers/intel/dptf/dptf.c +++ b/src/drivers/intel/dptf/dptf.c @@ -95,9 +95,12 @@
/* TSR options */ for (p = DPTF_TEMP_SENSOR_0, i = 0; p <= DPTF_TEMP_SENSOR_3; ++p, ++i) { - if (tsr_en[i]) { + if (tsr_en[i] && (config->options.tsr[i].hysteresis || + config->options.tsr[i].desc)) { + dptf_write_scope(p); dptf_write_tsr_hysteresis(config->options.tsr[i].hysteresis); dptf_write_STR(config->options.tsr[i].desc); + acpigen_pop_len(); /* Scope */ } }
Karthik Ramasubramanian has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43458 )
Change subject: drivers/intel/dptf: Add missing scope operator around TSR options ......................................................................
Patch Set 1: Code-Review+2
Duncan Laurie has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43458 )
Change subject: drivers/intel/dptf: Add missing scope operator around TSR options ......................................................................
Patch Set 1: Code-Review+2
Sumeet R Pawnikar has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43458 )
Change subject: drivers/intel/dptf: Add missing scope operator around TSR options ......................................................................
Patch Set 1: Code-Review+2
Hello build bot (Jenkins), Duncan Laurie, Sumeet R Pawnikar, Patrick Rudolph, Karthik Ramasubramanian,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/43458
to look at the new patch set (#2).
Change subject: drivers/intel/dptf: Add missing scope operator around TSR options ......................................................................
drivers/intel/dptf: Add missing scope operator around TSR options
The previous DPTF patch train missed the proper scope operator around all of the TSR options. Without this, the optional GTSH and/or _STR Methods end up in the wrong scope.
Signed-off-by: Tim Wawrzynczak twawrzynczak@chromium.org Change-Id: I9298c442c047c5f7f606574d900057a7c004b47f --- M src/drivers/intel/dptf/dptf.c 1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/58/43458/2
Karthik Ramasubramanian has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43458 )
Change subject: drivers/intel/dptf: Add missing scope operator around TSR options ......................................................................
Patch Set 3: Code-Review+2
Tim Wawrzynczak has submitted this change. ( https://review.coreboot.org/c/coreboot/+/43458 )
Change subject: drivers/intel/dptf: Add missing scope operator around TSR options ......................................................................
drivers/intel/dptf: Add missing scope operator around TSR options
The previous DPTF patch train missed the proper scope operator around all of the TSR options. Without this, the optional GTSH and/or _STR Methods end up in the wrong scope.
Signed-off-by: Tim Wawrzynczak twawrzynczak@chromium.org Change-Id: I9298c442c047c5f7f606574d900057a7c004b47f Reviewed-on: https://review.coreboot.org/c/coreboot/+/43458 Reviewed-by: Karthik Ramasubramanian kramasub@google.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/drivers/intel/dptf/dptf.c 1 file changed, 4 insertions(+), 1 deletion(-)
Approvals: build bot (Jenkins): Verified Karthik Ramasubramanian: Looks good to me, approved
diff --git a/src/drivers/intel/dptf/dptf.c b/src/drivers/intel/dptf/dptf.c index 4bc6b08..a13f6d0 100644 --- a/src/drivers/intel/dptf/dptf.c +++ b/src/drivers/intel/dptf/dptf.c @@ -215,9 +215,12 @@
/* TSR options */ for (p = DPTF_TEMP_SENSOR_0, i = 0; p <= DPTF_TEMP_SENSOR_3; ++p, ++i) { - if (is_participant_used(config, p)) { + if (is_participant_used(config, p) && (config->options.tsr[i].hysteresis || + config->options.tsr[i].desc)) { + dptf_write_scope(p); dptf_write_tsr_hysteresis(config->options.tsr[i].hysteresis); dptf_write_STR(config->options.tsr[i].desc); + acpigen_pop_len(); /* Scope */ } } }