Attention is currently required from: Furquan Shaikh, Tim Wawrzynczak, Rizwan Qureshi, Angel Pons, Patrick Rudolph.
Subrata Banik has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/55965 )
Change subject: cpu/intel/common: Create get_cache_info() function
......................................................................
Patch Set 1:
(2 comments)
File src/cpu/intel/common/common_init.c:
https://review.coreboot.org/c/coreboot/+/55965/comment/04578145_5ebc4ee3
PS1, Line 331: 0x03
> I assume 0x03 is supposed to be LLC here? Create a macro for that?
if we are taking cache_level as argument then do we still need macro ?
https://review.coreboot.org/c/coreboot/+/55965/comment/c0b57aaa_da141917
PS1, Line 332:
: const size_t assoc = CPUID_CACHE_WAYS_OF_ASSOC(res) + 1;
: const size_t partitions = CPUID_CACHE_PHYS_LINE(res) + 1;
: const size_t cache_line_size = CPUID_CACHE_COHER_LINE(res) + 1;
: const size_t number_of_sets = CPUID_CACHE_NO_OF_SETS(res) + 1;
: const size_t cache_size = assoc * partitions * cache_line_size * number_of_sets;
: printk(BIOS_INFO, "Cache Information : ");
: printk(BIOS_INFO, "assoc=%zd par=%zd line_size=%zd sets=%zd\n",
: assoc, partitions, cache_line_size, number_of_sets);
: printk(BIOS_INFO, "@@ cache_size 0x%lx bytes\n", cache_size);
> also remarkably similar to https://review.coreboot.org/plugins/gitiles/coreboot/+/refs/heads/master/sr… ... maybe this function should take a parameter for the ecx value passed to CPUID?
Yes, this is doable but then only problem is smbios_write_type7_cache_parameters() expects to get those individual fields like level, cache_type, assoc etc. etc. so we have two possible ways:
1. Do we want to execute cpuid instruction several time and return those bit-fields as part of dedicated function like below?
static struct cpuid_result get_cpu_cache_parameters(int cache_type)
{
/* 1. Add a check to detect CPU if it belongs to IA or AMD? */
return cpuid_ext(DETERMINISTIC_CACHE_PARAMETERS_CPUID, cache_type);
}
size_t get_cpu_cache_type(int cache_type)
{
struct cpuid_result res = get_cpu_cache_parameters();
return CPUID_CACHE_TYPE(res);
}
...
2. Return all cache parameters as part of a single function call. here cache_type is only input argument and rests are output as below?
size_t get_cache_info(int cache_type, size_t *assoc, size_t *partitions, ...)
{
struct cpuid_result res = cpuid_ext(DETERMINISTIC_CACHE_PARAMETERS_CPUID, cache_type);
*assoc = CPUID_CACHE_WAYS_OF_ASSOC(res) + 1;
*partitions = CPUID_CACHE_PHYS_LINE(res) + 1;
...
}
Then caller of get_cache_info() function like smbios_write_type7_cache_parameters() can use these output variables (assoc, partitions) to perform the regular operations.
>
> `get_cache_info(unsigned int cache_level)`
> or similar?
> then the SMBIOS code could reuse this function.
Yes, this is possible, but need your help to define one path.
--
To view, visit https://review.coreboot.org/c/coreboot/+/55965
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0dd701fb47460092448b64c7fa2162f762bf3095
Gerrit-Change-Number: 55965
Gerrit-PatchSet: 1
Gerrit-Owner: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
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: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Furquan Shaikh <furquan(a)google.com>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Attention: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Thu, 01 Jul 2021 14:45:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Varshit B Pandya, Maulik V Vaghela, Tim Wawrzynczak, Rizwan Qureshi, Patrick Rudolph.
Subrata Banik has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/55998 )
Change subject: soc/intel/alderlake: Correct Bus and Device of Touch Host Controller
......................................................................
Patch Set 1: Code-Review+2
(1 comment)
Patchset:
PS1:
I have verified that my earlier patch that added those TCH0/1 has mistake and this patch fixes that.
--
To view, visit https://review.coreboot.org/c/coreboot/+/55998
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I41858ea156c8258ea0e7be9e2f67fb0e24144c80
Gerrit-Change-Number: 55998
Gerrit-PatchSet: 1
Gerrit-Owner: Varshit B Pandya <varshit.b.pandya(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: 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: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Varshit B Pandya <varshit.b.pandya(a)intel.com>
Gerrit-Attention: Maulik V Vaghela <maulik.v.vaghela(a)intel.com>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Attention: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Attention: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Thu, 01 Jul 2021 14:05:12 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Varshit B Pandya, Maulik V Vaghela, Tim Wawrzynczak, Rizwan Qureshi, Patrick Rudolph.
Subrata Banik has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/55998 )
Change subject: soc/intel/alderlake: Correct Bus and Device of Touch Host Controller
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
Update THC BDF as per EDS Section 23
--
To view, visit https://review.coreboot.org/c/coreboot/+/55998
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I41858ea156c8258ea0e7be9e2f67fb0e24144c80
Gerrit-Change-Number: 55998
Gerrit-PatchSet: 1
Gerrit-Owner: Varshit B Pandya <varshit.b.pandya(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: 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: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Varshit B Pandya <varshit.b.pandya(a)intel.com>
Gerrit-Attention: Maulik V Vaghela <maulik.v.vaghela(a)intel.com>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Attention: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Attention: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Thu, 01 Jul 2021 14:04:23 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Iru Cai, Iru Cai (vimacs).
Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/55947 )
Change subject: arch/x86: Save resume vector to stack in x86_64 mode
......................................................................
Patch Set 2: Code-Review+1
(2 comments)
File src/arch/x86/wakeup.S:
https://review.coreboot.org/c/coreboot/+/55947/comment/424e3766_96d6a429
PS2, Line 20: It's OK to overwrite the return address at (%rsp) because this
: * function doesn't return.
Is that happening? This looks like a 32bit op so I would expect the upper 4 bytes of 4(%rsp) to be preserved?
https://review.coreboot.org/c/coreboot/+/55947/comment/5a7ea5a7_a4f44043
PS2, Line 23: mov
Explicitly use movl to make sure only 4 bytes get moved?
--
To view, visit https://review.coreboot.org/c/coreboot/+/55947
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I45f2678071b2511c0af5dce9d9b73ac70dfd7252
Gerrit-Change-Number: 55947
Gerrit-PatchSet: 2
Gerrit-Owner: Iru Cai (vimacs) <mytbk920423(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Iru Cai <mytbk920423(a)gmail.com>
Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Iru Cai <mytbk920423(a)gmail.com>
Gerrit-Attention: Iru Cai (vimacs) <mytbk920423(a)gmail.com>
Gerrit-Comment-Date: Thu, 01 Jul 2021 13:47:10 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Paul Menzel, Boris Mittelberg.
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/55988 )
Change subject: mb/google/brya: Add HANG_DETECT host event to EC S0ix wake mask
......................................................................
Patch Set 2:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/55988/comment/026b690f_180ea2dd
PS1, Line 10: BIOS
> BIOS means coreboot?
Yes, but will change.
--
To view, visit https://review.coreboot.org/c/coreboot/+/55988
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2c699114abcd9a045a41858c731e4b6fe99d3000
Gerrit-Change-Number: 55988
Gerrit-PatchSet: 2
Gerrit-Owner: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: Boris Mittelberg <bmbm(a)google.com>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
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-Attention: Boris Mittelberg <bmbm(a)google.com>
Gerrit-Comment-Date: Thu, 01 Jul 2021 13:45:43 +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: Tim Wawrzynczak, Boris Mittelberg.
Hello build bot (Jenkins), Furquan Shaikh, Paul Menzel, Boris Mittelberg,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/55988
to look at the new patch set (#2).
Change subject: mb/google/brya: Add HANG_DETECT host event to EC S0ix wake mask
......................................................................
mb/google/brya: Add HANG_DETECT host event to EC S0ix wake mask
The brya EC supports S0ix hang detection, but it was not enabled in
coreboot as well, masking that event out of S0ix, therefore add it in to
the EC S0ix wake mask.
TEST=After EC prints "Warning: Detected sleep hang! Waking host up!",
the host actually wakes up
Change-Id: I2c699114abcd9a045a41858c731e4b6fe99d3000
Signed-off-by: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
---
M src/mainboard/google/brya/variants/baseboard/include/baseboard/ec.h
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/88/55988/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/55988
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2c699114abcd9a045a41858c731e4b6fe99d3000
Gerrit-Change-Number: 55988
Gerrit-PatchSet: 2
Gerrit-Owner: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: Boris Mittelberg <bmbm(a)google.com>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Attention: Boris Mittelberg <bmbm(a)google.com>
Gerrit-MessageType: newpatchset