Attention is currently required from: Eran Mitrani, Intel coreboot Reviewers, Jakub Czapiga, Jayvik Desai, Nick Vaccaro, Pranava Y N, Subrata Banik, Tarun, Werner Zeh.
Jérémy Compostella has posted comments on this change by Subrata Banik. ( https://review.coreboot.org/c/coreboot/+/86164?usp=email )
Change subject: soc/intel: Add check to pmc_/gpe0_different_values
......................................................................
Patch Set 2:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/86164/comment/7a5031e7_9d3cb8a0?usp... :
PS2, Line 14: This prevents potential issues arising from a zeroed configuration
this is a WA for an issue caused by CB:85161. […]
I am trying here to wake up my brain. If all three variables are zero how is the assert passing with the submitted code? Could you point out my mistake here ? Sorry if I am wasting your time.
```
unsigned int dw0 = 0;
unsigned int dw1 = 0;
unsigned int dw2 = 0;
bool all_zero = (dw0 == 0) && (dw1 == 0) && (dw2 == 0);
bool different = (dw0 != dw1) && (dw1 != dw2) && (dw0 != dw2);
bool result = (dw0 != dw1) && (dw1 != dw2) && (dw0 != dw2) && !all_zero;
printf("all_zero=%s\n", all_zero ? "yes" : "no");
printf("different=%s\n", different ? "yes" : "no");
printf("result=%s\n", result ? "yes" : "no");
```
```
all_zero=yes
different=no
result=no
```
--
To view, visit
https://review.coreboot.org/c/coreboot/+/86164?usp=email
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Ie66d6dbcf49d5400b3fc3e4da113a569fe52dd51
Gerrit-Change-Number: 86164
Gerrit-PatchSet: 2
Gerrit-Owner: Subrata Banik
subratabanik@google.com
Gerrit-Reviewer: Dinesh Gehlot
digehlot@google.com
Gerrit-Reviewer: Eran Mitrani
mitrani@google.com
Gerrit-Reviewer: Eric Lai
ericllai@google.com
Gerrit-Reviewer: Intel coreboot Reviewers
intel_coreboot_reviewers@intel.com
Gerrit-Reviewer: Jakub Czapiga
czapiga@google.com
Gerrit-Reviewer: Jayvik Desai
jayvik@google.com
Gerrit-Reviewer: Kapil Porwal
kapilporwal@google.com
Gerrit-Reviewer: Matt DeVillier
matt.devillier@gmail.com
Gerrit-Reviewer: Nick Vaccaro
nvaccaro@chromium.org
Gerrit-Reviewer: Pranava Y N
pranavayn@google.com
Gerrit-Reviewer: Sean Rhodes
sean@starlabs.systems
Gerrit-Reviewer: Tarun
tstuli@gmail.com
Gerrit-Reviewer: Werner Zeh
werner.zeh@siemens.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Jérémy Compostella
jeremy.compostella@intel.com
Gerrit-Attention: Jayvik Desai
jayvik@google.com
Gerrit-Attention: Intel coreboot Reviewers
intel_coreboot_reviewers@intel.com
Gerrit-Attention: Eran Mitrani
mitrani@google.com
Gerrit-Attention: Jakub Czapiga
czapiga@google.com
Gerrit-Attention: Subrata Banik
subratabanik@google.com
Gerrit-Attention: Nick Vaccaro
nvaccaro@chromium.org
Gerrit-Attention: Werner Zeh
werner.zeh@siemens.com
Gerrit-Attention: Tarun
tstuli@gmail.com
Gerrit-Attention: Pranava Y N
pranavayn@google.com
Gerrit-Comment-Date: Mon, 27 Jan 2025 17:33:27 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Jérémy Compostella
jeremy.compostella@intel.com
Comment-In-Reply-To: Matt DeVillier
matt.devillier@gmail.com