Josie Nordrum has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/44156 )
Change subject: mb/google/zork: Add kconfigs to check schematic version 3.6
......................................................................
mb/google/zork: Add kconfigs to check schematic version 3.6
Added VARIANT_SUPPORTS_PRE_V3_6_SCHEMATICS and
VARIANT_MIN_BOARD_ID_V3_6_SCHEMATICS.
BUG=b:161938476
BRANCH=None
TEST=None
Change-Id: If86e1ea3c02db354c7b410f1bbc1daacb483cc51
Signed-off-by: Josie Nordrum <josienordrum(a)google.com>
---
M src/mainboard/google/zork/Kconfig
M src/mainboard/google/zork/variants/baseboard/helpers.c
M src/mainboard/google/zork/variants/baseboard/include/baseboard/variants.h
3 files changed, 53 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/56/44156/1
diff --git a/src/mainboard/google/zork/Kconfig b/src/mainboard/google/zork/Kconfig
index 6160021..c854e54 100644
--- a/src/mainboard/google/zork/Kconfig
+++ b/src/mainboard/google/zork/Kconfig
@@ -169,6 +169,32 @@
longer has to support pre-v3 schematics, `default y` entry
for it can be dropped.
+config VARIANT_SUPPORTS_PRE_V3_6_SCHEMATICS
+ bool
+ default y if BOARD_GOOGLE_TREMBYLE
+ default y if BOARD_GOOGLE_EZKINIL
+ default y if BOARD_GOOGLE_MORPHIUS
+ default y if BOARD_GOOGLE_BERKNIP
+ default y if BOARD_GOOGLE_DALBOZ
+ default y if BOARD_GOOGLE_WOOMAX
+ default y if BOARD_GOOGLE_VILBOZ
+ default n
+
+config VARIANT_MIN_BOARD_ID_V3_6_SCHEMATICS
+ int
+ depends on VARIANT_SUPPORTS_PRE_V3_6_SCHEMATICS
+ default 4 if BOARD_GOOGLE_TREMBYLE
+ default 3 if BOARD_GOOGLE_EZKINIL
+ default 4 if BOARD_GOOGLE_MORPHIUS
+ default 3 if BOARD_GOOGLE_BERKNIP
+ default 3 if BOARD_GOOGLE_DALBOZ
+ default 2 if BOARD_GOOGLE_WOOMAX
+ default 2 if BOARD_GOOGLE_VILBOZ
+ default 256
+ help
+ Minimum board versions which switched to using non-CODEC_GPI pin for
+ HP_INT_ODL.
+
config VARIANT_MIN_BOARD_ID_V3_SCHEMATICS
int
depends on VARIANT_SUPPORTS_PRE_V3_SCHEMATICS
diff --git a/src/mainboard/google/zork/variants/baseboard/helpers.c b/src/mainboard/google/zork/variants/baseboard/helpers.c
index 0a1cf5c..ec393d3 100644
--- a/src/mainboard/google/zork/variants/baseboard/helpers.c
+++ b/src/mainboard/google/zork/variants/baseboard/helpers.c
@@ -130,6 +130,29 @@
return true;
}
+bool variant_uses_v3_6_schematics(void)
+{
+ uint32_t board_version;
+
+ if (!CONFIG(VARIANT_SUPPORTS_PRE_V3_6_SCHEMATICS))
+ return true;
+
+ if (google_chromeec_cbi_get_board_version(&board_version))
+ return false;
+
+ if ((int)board_version < VARIANT_MIN_BOARD_ID_V3_6_SCHEMATICS)
+ return false;
+
+ return true;
+}
+
+/* pre-v3.6, CODEC_GPI was used as headphone jack interrupt.
+ Starting v3.6 this was changed to a separate GPIO.*/
+bool variant_uses_codec_gpi(void)
+{
+ return !variant_uses_v3_6_schematics();
+}
+
bool variant_has_active_low_wifi_power(void)
{
uint32_t board_version;
diff --git a/src/mainboard/google/zork/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/zork/variants/baseboard/include/baseboard/variants.h
index 6b9bbfd..5ea6b87 100644
--- a/src/mainboard/google/zork/variants/baseboard/include/baseboard/variants.h
+++ b/src/mainboard/google/zork/variants/baseboard/include/baseboard/variants.h
@@ -66,6 +66,10 @@
/* Return true if variant uses v3 version of reference schematics. */
bool variant_uses_v3_schematics(void);
+/* Return true if variant uses v3.6 version of reference schematics. */
+bool variant_uses_v3_6_schematics(void);
+/* Return true if variant does NOT use v3.6 version of reference schematics. */
+bool variant_uses_codec_gpi(void);
/* Return true if variant has active low power enable fow WiFi. */
bool variant_has_active_low_wifi_power(void);
--
To view, visit https://review.coreboot.org/c/coreboot/+/44156
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If86e1ea3c02db354c7b410f1bbc1daacb483cc51
Gerrit-Change-Number: 44156
Gerrit-PatchSet: 1
Gerrit-Owner: Josie Nordrum <josienordrum(a)google.com>
Gerrit-MessageType: newchange
Aamir Bohra has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43494 )
Change subject: soc/intel/common/cpu: Update COS mask calculation for nem enhanced mode
......................................................................
Patch Set 3:
(2 comments)
https://review.coreboot.org/c/coreboot/+/43494/3//COMMIT_MSG
Commit Message:
https://review.coreboot.org/c/coreboot/+/43494/3//COMMIT_MSG@20
PS3, Line 20:
: Also the COS mask selection is mapped to bit 32:33 of MSR
: IA32_PQR_ASSOC(0xC8F) and need to be updated in edx(maps 63:32) before
: MSR write instead of eax(mas 31:0). This implementation corrects that
: as well.
> does this mean that the enhanced mode never worked correctly in the first place? IOW, we were writin […]
I am checking on this, on the SKL, CNL, ICL it still maps to LSB.
In my CML testing I am seeing a hang with this implementation. Need to confirm on the offset mapping.
https://review.coreboot.org/c/coreboot/+/43494/3/src/soc/intel/common/block…
File src/soc/intel/common/block/cpu/car/cache_as_ram.S:
PS3:
> Ok, I see. […]
yes, we configure the mask2 with the RW data mapped ways configured for eviction and start filling in the cache lines i.e access one DWORD from each cache line of the dataStack region to map all dataStack into the cache. and then toggle the mask to protect the data from eviction so that the RW data does not get evicted out.
--
To view, visit https://review.coreboot.org/c/coreboot/+/43494
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I54e047161853bfc70516c1d607aa479e68836d04
Gerrit-Change-Number: 43494
Gerrit-PatchSet: 3
Gerrit-Owner: Aamir Bohra <aamir.bohra(a)intel.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: Duncan Laurie <dlaurie(a)chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: Usha P <usha.p(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-CC: Nick Vaccaro <nvaccaro(a)google.com>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-CC: Shreesh Chhabbi <shreesh.chhabbi(a)intel.com>
Gerrit-Comment-Date: Thu, 06 Aug 2020 18:02:43 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Comment-In-Reply-To: Aamir Bohra <aamir.bohra(a)intel.com>
Gerrit-MessageType: comment
Raul Rangel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/44266 )
Change subject: amd/picasso/acpi: Add power resources for UART0
......................................................................
Patch Set 1: Code-Review+2
Thanks for testing. I'm wondering if we should hold off on merging this one until S3 has stabilized. This will turn off the serial console while suspending, I guess we can update the care and feeding guide to add the no_console_suspend command line.
--
To view, visit https://review.coreboot.org/c/coreboot/+/44266
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I25457e18b69d28a83e42c2fe02b45a3979ad58cd
Gerrit-Change-Number: 44266
Gerrit-PatchSet: 1
Gerrit-Owner: Kangheui Won <khwon(a)chromium.org>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Thu, 06 Aug 2020 14:49:52 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Hello Varshit B Pandya, build bot (Jenkins), Pratik Prajapati, Nico Huber, Patrick Georgi, Subrata Banik, Varun Joshi, Arthur Heymans, Patrick Rudolph, Nathaniel L Desimone,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/36356
to look at the new patch set (#5).
Change subject: soc/intel/cannonlake: set LT_LOCK_MEMORY at end of POST
......................................................................
soc/intel/cannonlake: set LT_LOCK_MEMORY at end of POST
FSP does not set LT_LOCK_MEMORY when SkipMpInit=1. Therefore, set
LT_LOCK_MEMORY at end of POST, when native MP init is used, to protect
SMM in accordance to Intel BWG.
Change-Id: Iaadd4996653c4f27d268b1c4773c1e2e86114912
Signed-off-by: Michael Niewöhner <foss(a)mniewoehner.de>
---
M src/soc/intel/cannonlake/finalize.c
1 file changed, 10 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/56/36356/5
--
To view, visit https://review.coreboot.org/c/coreboot/+/36356
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iaadd4996653c4f27d268b1c4773c1e2e86114912
Gerrit-Change-Number: 36356
Gerrit-PatchSet: 5
Gerrit-Owner: Michael Niewöhner
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Michael Niewöhner
Gerrit-Reviewer: Nathaniel L Desimone <nathaniel.l.desimone(a)intel.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Pratik Prajapati <pratik.prajapati(a)gmail.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: Varshit B Pandya <varshit.b.pandya(a)intel.com>
Gerrit-Reviewer: Varun Joshi <varun.joshi(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: newpatchset