Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/18674
to look at the new patch set (#6).
Change subject: soc/intel/skylake: Code clean up by using common PCR module
......................................................................
soc/intel/skylake: Code clean up by using common PCR module
This patch creates PCR library to perform CRRd and CRWr operation
using Port Ids, define inside soc/pci_ids.h
Change-Id: Id9336883514298e7f93fbc95aef8228202aa6fb9
Signed-off-by: Subrata Banik <subrata.banik(a)intel.com>
---
M src/soc/intel/skylake/Kconfig
M src/soc/intel/skylake/Makefile.inc
M src/soc/intel/skylake/acpi/irqlinks.asl
M src/soc/intel/skylake/acpi/pch.asl
M src/soc/intel/skylake/acpi/pcr.asl
M src/soc/intel/skylake/bootblock/pch.c
M src/soc/intel/skylake/bootblock/uart.c
M src/soc/intel/skylake/finalize.c
M src/soc/intel/skylake/gpio.c
M src/soc/intel/skylake/include/soc/iomap.h
D src/soc/intel/skylake/include/soc/pcr.h
A src/soc/intel/skylake/include/soc/pcr_ids.h
M src/soc/intel/skylake/lpc.c
D src/soc/intel/skylake/pcr.c
M src/soc/intel/skylake/pmc.c
M src/soc/intel/skylake/smihandler.c
16 files changed, 144 insertions(+), 338 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/74/18674/6
--
To view, visit https://review.coreboot.org/18674
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Id9336883514298e7f93fbc95aef8228202aa6fb9
Gerrit-PatchSet: 6
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: Aamir Bohra <aamir.bohra(a)intel.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: Balaji Manigandan <balaji.manigandan(a)intel.com>
Gerrit-Reviewer: Barnali Sarkar <barnali.sarkar(a)intel.com>
Gerrit-Reviewer: Bora Guvendik <bora.guvendik(a)intel.com>
Gerrit-Reviewer: Hannah Williams <hannah.williams(a)intel.com>
Gerrit-Reviewer: Ravishankar Sarawadi <ravishankar.sarawadi(a)intel.com>
Gerrit-Reviewer: Shaunak Saha <shaunak.saha(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins)
Gerrit-Reviewer: dhaval v sharma <dhaval.v.sharma(a)intel.com>
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/18669
to look at the new patch set (#4).
Change subject: soc/intel/common/block: Add Intel common PCR support
......................................................................
soc/intel/common/block: Add Intel common PCR support
IOSF_SB message space is used to access registers mapped
on IOSF-SB. These registers include uncore CRs (configuration
registers) and chipset specific registers. The Private
Configuration Register (PCR) space is accessed on IOSF-SB
using destination ID also known as Port ID.
Access to IOSF-SB by the Host or System Agent is possible
over PSF via the Primary to Sideband Bridge (P2SB). P2SB will
forward properly formatted register access requests as CRRd and
CRWr request via IOSF-SB.
Change-Id: I78526a86b6d10f226570c08050327557e0bb2c78
Signed-off-by: Subrata Banik <subrata.banik(a)intel.com>
---
A src/soc/intel/common/block/include/intelblocks/pcr.h
A src/soc/intel/common/block/pcr/Kconfig
A src/soc/intel/common/block/pcr/Makefile.inc
A src/soc/intel/common/block/pcr/pcr.c
4 files changed, 214 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/69/18669/4
--
To view, visit https://review.coreboot.org/18669
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I78526a86b6d10f226570c08050327557e0bb2c78
Gerrit-PatchSet: 4
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: Aamir Bohra <aamir.bohra(a)intel.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: Balaji Manigandan <balaji.manigandan(a)intel.com>
Gerrit-Reviewer: Barnali Sarkar <barnali.sarkar(a)intel.com>
Gerrit-Reviewer: Bora Guvendik <bora.guvendik(a)intel.com>
Gerrit-Reviewer: Hannah Williams <hannah.williams(a)intel.com>
Gerrit-Reviewer: Shaunak Saha <shaunak.saha(a)intel.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins)
Gerrit-Reviewer: dhaval v sharma <dhaval.v.sharma(a)intel.com>
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/18673
to look at the new patch set (#6).
Change subject: soc/intel/apollolake: Code clean up by using common PCR module
......................................................................
soc/intel/apollolake: Code clean up by using common PCR module
This patch creates PCR library to perform CRRd and CRWr operation
using Port Ids, define inside soc/pci_ids.h
Change-Id: Iacbf58dbd55bf3915676d875fcb484362d357a44
Signed-off-by: Subrata Banik <subrata.banik(a)intel.com>
---
M src/soc/intel/apollolake/Kconfig
M src/soc/intel/apollolake/acpi/gpio.asl
M src/soc/intel/apollolake/acpi/scs.asl
M src/soc/intel/apollolake/bootblock/bootblock.c
M src/soc/intel/apollolake/gpio.c
M src/soc/intel/apollolake/include/soc/gpio_defs.h
M src/soc/intel/apollolake/include/soc/iomap.h
D src/soc/intel/apollolake/include/soc/iosf.h
A src/soc/intel/apollolake/include/soc/pcr_ids.h
M src/soc/intel/apollolake/itss.c
10 files changed, 122 insertions(+), 132 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/73/18673/6
--
To view, visit https://review.coreboot.org/18673
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Iacbf58dbd55bf3915676d875fcb484362d357a44
Gerrit-PatchSet: 6
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: Balaji Manigandan <balaji.manigandan(a)intel.com>
Gerrit-Reviewer: Barnali Sarkar <barnali.sarkar(a)intel.com>
Gerrit-Reviewer: Bora Guvendik <bora.guvendik(a)intel.com>
Gerrit-Reviewer: Hannah Williams <hannah.williams(a)intel.com>
Gerrit-Reviewer: Ravishankar Sarawadi <ravishankar.sarawadi(a)intel.com>
Gerrit-Reviewer: Shaunak Saha <shaunak.saha(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins)
Gerrit-Reviewer: dhaval v sharma <dhaval.v.sharma(a)intel.com>
Subrata Banik has posted comments on this change. ( https://review.coreboot.org/18669 )
Change subject: soc/intel/common/block: Add Intel common PCR support
......................................................................
Patch Set 3:
(13 comments)
https://review.coreboot.org/#/c/18669/3/src/soc/intel/apollolake/include/so…
File src/soc/intel/apollolake/include/soc/pcr_ids.h:
PS3, Line 43: ~3
> This should have parens
Done
https://review.coreboot.org/#/c/18669/3/src/soc/intel/common/block/include/…
File src/soc/intel/common/block/include/intelblocks/pcr.h:
Line 19: #if !defined(__ASSEMBLER__) && !defined(__ACPI__)
> Why would this header be included from assembler or ACPI code when it's all
Done
Line 23: int pcr_read32(u8 pid, u16 offset, u32 *outdata);
> Can you just use uintX_t variants, please?
Done
https://review.coreboot.org/#/c/18669/3/src/soc/intel/common/block/pcr/pcr.c
File src/soc/intel/common/block/pcr/pcr.c:
PS3, Line 42: u32
> size_t for size
Done
PS3, Line 65: (u32 *)
> cast not needed
Done
PS3, Line 70: (u32 *)
> cast is wrong
Done
PS3, Line 75: (u32 *)
> cast is wrong
Done
PS3, Line 93: (u32)
> casts not needed here
Done
Line 109: pcr_read32(pid, offset, &data);
> This is actually a property of inconsistent designed IPs on certain SoCs th
>> This is actually a property of inconsistent designed IPs on certain SoCs that have posted write semantics. Is every SoC supposed to be impacted by that going forward?
expectation may not be true for all future soc as well but its a safe mechanism to perform a read after write via IOSF-SB.
>> And why was the construction (including comment) completely dropped. Presumably you were using skylake as the basis for "everything common" ?
Apparently pcr library has been taken from big core code and after comparing small core IOSF read/write, its seems same as i have explained over commit message, both are performing access through PSF via IOSF_SB to PCRs. So, i don;t think there might be any reason to call it even skylake code or apollolake code, its a IP CR access mechanism. But i'm agree with you on SKL, we have seen some case where immediate read is needed after writing through SB registers. Hence we have added those "safety" piece of code in common library. I guess time taken for MMIO read should be marginal enough so, we should be good.
>> Lastly, if you already had the address calculated (as you should pcr_reg_address(). Then all you need to do is read. But here you are reading a 32-bit address regardless of size passed in. That's wrong as well.
good point, i have addressed
PS3, Line 116: u32
> you should replace all these types with the 'indata' since the compiler kno
Done
PS3, Line 137: u32
> size_t for size
Done
PS3, Line 141: data32 = 0;
> Why does this need to be initialized?
Done
Line 150: status = pch_pcr_write(pid, offset, size, data32);
> Just 'return pch_pcr_write()'?
Done
--
To view, visit https://review.coreboot.org/18669
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I78526a86b6d10f226570c08050327557e0bb2c78
Gerrit-PatchSet: 3
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: Aamir Bohra <aamir.bohra(a)intel.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: Balaji Manigandan <balaji.manigandan(a)intel.com>
Gerrit-Reviewer: Barnali Sarkar <barnali.sarkar(a)intel.com>
Gerrit-Reviewer: Bora Guvendik <bora.guvendik(a)intel.com>
Gerrit-Reviewer: Hannah Williams <hannah.williams(a)intel.com>
Gerrit-Reviewer: Shaunak Saha <shaunak.saha(a)intel.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins)
Gerrit-Reviewer: dhaval v sharma <dhaval.v.sharma(a)intel.com>
Gerrit-HasComments: Yes
Werner Zeh has posted comments on this change. ( https://review.coreboot.org/18963 )
Change subject: intel/minnow3: Clean up Kconfig, devicetree and FMAP
......................................................................
Patch Set 3: Code-Review+1
You are losing a lot of flash space due to the flashmap setup.
Is there a reason not using as much space for CBFS as possible?
--
To view, visit https://review.coreboot.org/18963
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I620dcbcd622f9326917c74b2a38984d9e49cff2b
Gerrit-PatchSet: 3
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Brenton Dong <brenton.m.dong(a)intel.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: Andrey Petrov <andrey.petrov(a)intel.com>
Gerrit-Reviewer: Brenton Dong <brenton.m.dong(a)intel.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Werner Zeh <werner.zeh(a)siemens.com>
Gerrit-Reviewer: build bot (Jenkins)
Gerrit-HasComments: No
Martin Roth has submitted this change and it was merged. ( https://review.coreboot.org/19018 )
Change subject: mainboard/google/reef: turn off DMIC_CLK_B1 in S0ix
......................................................................
mainboard/google/reef: turn off DMIC_CLK_B1 in S0ix
Wake On Voice stream capture configuration is mono. It is sufficient
to keep DMIC_CLK_A1 on in S0ix; so, turning off DMIC_CLK_B1.
Power saving should be visible in the boards which has more
than one DMIC connected.
BUG=None
BRANCH=None
TEST=WoV and quad channel DMIC capture works
Change-Id: Ic46d4c7b30b945eba47a05d78386f48e4a675a03
Signed-off-by: Sathyanarayana Nujella <sathyanarayana.nujella(a)intel.com>
Reviewed-on: https://review.coreboot.org/19018
Reviewed-by: Aaron Durbin <adurbin(a)chromium.org>
Reviewed-by: Venkateswarlu V Vinjamuri <venkateswarlu.v.vinjamuri(a)intel.com>
Tested-by: build bot (Jenkins)
---
M src/mainboard/google/reef/variants/baseboard/gpio.c
1 file changed, 1 insertion(+), 2 deletions(-)
Approvals:
Aaron Durbin: Looks good to me, approved
Venkateswarlu V Vinjamuri: Looks good to me, but someone else must approve
build bot (Jenkins): Verified
diff --git a/src/mainboard/google/reef/variants/baseboard/gpio.c b/src/mainboard/google/reef/variants/baseboard/gpio.c
index c572b1e..a4cef02 100644
--- a/src/mainboard/google/reef/variants/baseboard/gpio.c
+++ b/src/mainboard/google/reef/variants/baseboard/gpio.c
@@ -222,8 +222,7 @@
/* DMIC or I2S4 */
/* AVS_DMIC_CLK_A1 */
PAD_CFG_NF_IOSSTATE(GPIO_79, NATIVE, DEEP, NF1, IGNORE),
- /* AVS_DMIC_CLK_B1 */
- PAD_CFG_NF_IOSSTATE(GPIO_80, NATIVE, DEEP, NF1, IGNORE),
+ PAD_CFG_NF(GPIO_80, NATIVE, DEEP, NF1), /* AVS_DMIC_CLK_B1 */
PAD_CFG_NF(GPIO_81, NATIVE, DEEP, NF1), /* AVS_DMIC_DATA_1 */
PAD_CFG_GPI(GPIO_82, DN_20K, DEEP), /* unused -- strap */
PAD_CFG_NF(GPIO_83, NATIVE, DEEP, NF1), /* AVS_DMIC_DATA_2 */
--
To view, visit https://review.coreboot.org/19018
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic46d4c7b30b945eba47a05d78386f48e4a675a03
Gerrit-PatchSet: 2
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Sathyanarayana Nujella <sathyanarayana.nujella(a)intel.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: HARSHAPRIYA N <harshapriya.n(a)intel.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Venkateswarlu V Vinjamuri <venkateswarlu.v.vinjamuri(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins)