[coreboot-gerrit] Change in coreboot[master]: soc/intel/common/block: Add Intel common PCR support

Subrata Banik (Code Review) gerrit at coreboot.org
Wed Apr 5 17:18:30 CEST 2017


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 12:

(1 comment)

https://review.coreboot.org/#/c/18669/12/src/soc/intel/common/block/pcr/pcr.c
File src/soc/intel/common/block/pcr/pcr.c:

Line 28: 	reg_addr += ((uintptr_t)offset & PCR_REG_MASK);
> So this is actually wrong now that I finally see this PCR_REG_MASK in use. 
SBREG_BAR access
Addr[32:24] Addr[23:16] Addr[15:0]
REG_BAR[32:24] TargetPort[7:0] TargetRegister[15:0]

>>  Are only 32-bit aligned accesses allowed on the sideband fabric

IOSF spec 1.0 limits all access to be DWORD based but IOSF 1.1 allows any access.

I could see this code has some serious problem
((uintptr_t)offset & PCR_REG_MASK has to be ((uintptr_t)offset) << PCR_OFFSET_SHIFT


-- 
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: 12
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Subrata Banik <subrata.banik at intel.com>
Gerrit-Reviewer: Aamir Bohra <aamir.bohra at intel.com>
Gerrit-Reviewer: Aaron Durbin <adurbin at chromium.org>
Gerrit-Reviewer: Balaji Manigandan <balaji.manigandan at intel.com>
Gerrit-Reviewer: Barnali Sarkar <barnali.sarkar at intel.com>
Gerrit-Reviewer: Bora Guvendik <bora.guvendik at intel.com>
Gerrit-Reviewer: Furquan Shaikh <furquan at google.com>
Gerrit-Reviewer: Hannah Williams <hannah.williams at intel.com>
Gerrit-Reviewer: Paul Menzel <paulepanter at users.sourceforge.net>
Gerrit-Reviewer: Shaunak Saha <shaunak.saha at intel.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik at intel.com>
Gerrit-Reviewer: build bot (Jenkins)
Gerrit-Reviewer: dhaval v sharma <dhaval.v.sharma at intel.com>
Gerrit-HasComments: Yes



More information about the coreboot-gerrit mailing list