Iru Cai (vimacs) has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/20226 )
Change subject: [test only, do not merge] add some printks in src/device
......................................................................
Abandoned
--
To view, visit https://review.coreboot.org/c/coreboot/+/20226
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1bfc49cc3205a2d3ed3141120fc30a28f85dcc29
Gerrit-Change-Number: 20226
Gerrit-PatchSet: 1
Gerrit-Owner: Iru Cai (vimacs) <mytbk920423(a)gmail.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-MessageType: abandon
Akash Asthana has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/25372 )
Change subject: sdm845: Add QUPv3 FW load & config
......................................................................
Patch Set 63:
(8 comments)
https://review.coreboot.org/#/c/25372/6/src/mainboard/google/cheza/qupv3_co…
File src/mainboard/google/cheza/qupv3_config.c:
https://review.coreboot.org/#/c/25372/6/src/mainboard/google/cheza/qupv3_co…
PS6, Line 18: struct se_cfg se_mappings[QUPV3_SE_MAX] =
> On other boards we usually have mainboard code call a function to initialize a controller at the fir […]
So the expectation here is that i2c_init/spi_init.. function will load appropriate firmware to respective QUP.
=======================================================
Further, you added comment in PS#25:
Actually, thinking about this some more I'm not sure if we really need to do that on-demand approach I described earlier. Answering my own question from patch set 6, we have now determined empirically that it seems to be possible to update QUP firmware again after it had already been loaded (except for UARTs, but I assume that's just an issue with the code that could be fixed?), so there's not such big reason to delay the other QUPs until RW firmware anymore.
However, even if we keep this approach there need to be some changes: the QSPI needs to be initialized in mainboard code (because the bus frequency is mainboard-dependent), so the QUP initialization needs to be called from there as well so it can run after QSPI (and thus access CBFS). If we have that we can get rid of this roundabout callback scheme and just pass the QUP mapping directly into the function. I think the structure can be simpler too, since QUPs are numbered 0 through 15 and there only needs to be one value if the other two are dependent on that... so I'd just make it a 16-element array of protocols (with 'none' as another valid protocol choice). See also the other comments from patch set 6
===========================================================
Few queries to get clear understanding, though we haven't thought of this wrt time/scoping.
Is the loading of FW from respective protocol init function is needed for OTA upgrade OR something else in terms design ?
Could you please provide some refrence drivers which are doing the same.
If not then i shall make remaining changes you suggested for :
Moving QSPI and QUP init to the mainboard and passing a 16-element array to qupv3 init function with none as an extra protocol.
https://review.coreboot.org/#/c/25372/6/src/soc/qualcomm/sdm845/include/soc…
File src/soc/qualcomm/sdm845/include/soc/qupv3_fw_config.h:
https://review.coreboot.org/#/c/25372/6/src/soc/qualcomm/sdm845/include/soc…
PS6, Line 65: bool dfs_mode;
> Aren't mode and dfs_mode directly dependent on protocol (i.e. […]
dfs_mode is directly dependent on protocol(true for all except UART) so, I have removed it from se_cfg structure. But modes aren't directly depends on the protocol, for example, SPI can be operated in FIFO as well as DMA mode so, I am keeping that in latest patch.
https://review.coreboot.org/#/c/25372/6/src/soc/qualcomm/sdm845/qupv3_fw_co…
File src/soc/qualcomm/sdm845/qupv3_fw_config.c:
https://review.coreboot.org/#/c/25372/6/src/soc/qualcomm/sdm845/qupv3_fw_co…
PS6, Line 142: #define SE_IRQ_EN_RMSK 0x0000000f
> See general comments about how to do register accesses in other CLs (use struct overlays and the def […]
We are using struct overlay for register access.
https://review.coreboot.org/#/c/25372/6/src/soc/qualcomm/sdm845/qupv3_fw_co…
PS6, Line 145: __attribute__((packed))
> Avoid __attribute__((packed)) unless any elements are really misaligned. […]
Agree, removed __attribute__((packed)) from latest patchset.
https://review.coreboot.org/#/c/25372/6/src/soc/qualcomm/sdm845/qupv3_fw_co…
PS6, Line 190: static void fw_init_qup_common(void);
> You generally shouldn't need to forward declare functions unless they recursively call into each oth […]
Done
https://review.coreboot.org/#/c/25372/6/src/soc/qualcomm/sdm845/qupv3_fw_co…
PS6, Line 227: /* HPG section 3.1.7.1 */
> "HPG" sounds like some sort of programming guide. […]
We cannot directly release it to you, our tech release team will take care of that. If you still need it, I can initiate a request for that.
https://review.coreboot.org/#/c/25372/6/src/soc/qualcomm/sdm845/qupv3_fw_co…
PS6, Line 353: fw_size_in_items
> nit: could use an assert() to make sure it doesn't overrun the available register space (same goes f […]
Done
https://review.coreboot.org/#/c/25372/6/src/soc/qualcomm/sdm845/qupv3_fw_co…
PS6, Line 422: REG_OUT(0x0015200C, 0, 0x3FFFFFC0);
> Should probably be a separate function in clock.c. […]
We are using clock_enable_qup API to turn on all the clocks.
--
To view, visit https://review.coreboot.org/c/coreboot/+/25372
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6e87f868ecbe2a8e51d94c045ad76b99bb1b345d
Gerrit-Change-Number: 25372
Gerrit-PatchSet: 63
Gerrit-Owner: T.Michael Turney <tturne(a)codeaurora.org>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Mukesh Savaliya <msavaliy(a)qualcomm.corp-partner.google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: T.Michael Turney <tturne(a)codeaurora.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Reviewer: mturney mturney <mturney(a)codeaurora.org>
Gerrit-CC: Akash Asthana <akashast(a)qualcomm.corp-partner.google.com>
Gerrit-CC: Julius Werner <jwerner(a)chromium.org>
Gerrit-Comment-Date: Fri, 18 Jan 2019 09:39:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Julius Werner <jwerner(a)chromium.org>
Gerrit-MessageType: comment
Patrick Rudolph has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/28724 )
Change subject: lib/boot_device: Add API for write protect a region
......................................................................
Patch Set 18: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/28724
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I4c9376e2c2c7a4852f13c65824c6cd64a1c6ac0a
Gerrit-Change-Number: 28724
Gerrit-PatchSet: 18
Gerrit-Owner: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Comment-Date: Fri, 18 Jan 2019 07:49:35 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Lijian Zhao has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/30824 )
Change subject: ec/google/wilco: Turn on wake up from lid
......................................................................
Patch Set 6:
(1 comment)
https://review.coreboot.org/#/c/30824/6/src/ec/google/wilco/commands.h
File src/ec/google/wilco/commands.h:
https://review.coreboot.org/#/c/30824/6/src/ec/google/wilco/commands.h@278
PS6, Line 278: EC_ACPI_WAKE_PWRB
> I don't think this and LID are actually implemented (or can be disabled) and they are force/default […]
Spec said power button had been force enabled, but lid switch not enabled by default, we checked during power on time.
--
To view, visit https://review.coreboot.org/c/coreboot/+/30824
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I13f3469847b0886147b8b624311a1ece796f847b
Gerrit-Change-Number: 30824
Gerrit-PatchSet: 6
Gerrit-Owner: Lijian Zhao <lijian.zhao(a)intel.com>
Gerrit-Reviewer: Bora Guvendik <bora.guvendik(a)intel.com>
Gerrit-Reviewer: Duncan Laurie <dlaurie(a)chromium.org>
Gerrit-Reviewer: Hannah Williams <hannah.williams(a)intel.com>
Gerrit-Reviewer: Krzysztof M Sywula <krzysztof.m.sywula(a)intel.com>
Gerrit-Reviewer: Lijian Zhao <lijian.zhao(a)intel.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Fri, 18 Jan 2019 07:24:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Duncan Laurie <dlaurie(a)chromium.org>
Gerrit-MessageType: comment
Samuel Holland has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/20095 )
Change subject: device/pnp: simplify pnp_get_ioresource
......................................................................
Abandoned
Superseded by I0089278f5adf65e8f084580bc5bc1eb2f77b87f7
--
To view, visit https://review.coreboot.org/c/coreboot/+/20095
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia99b785dcd9cf56fb236ad7ade54656851f88a5e
Gerrit-Change-Number: 20095
Gerrit-PatchSet: 2
Gerrit-Owner: Samuel Holland <samuel(a)sholland.org>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Samuel Holland <samuel(a)sholland.org>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-MessageType: abandon
Duncan Laurie has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/30824 )
Change subject: ec/google/wilco: Turn on wake up from lid
......................................................................
Patch Set 6:
(2 comments)
I will need to retest this, I had an open bug that it didn't work when set in coreboot...
https://review.coreboot.org/#/c/30824/6//COMMIT_MSG
Commit Message:
https://review.coreboot.org/#/c/30824/6//COMMIT_MSG@17
PS6, Line 17: Signed-off-by: Lijian Zhao <lijian.zhao(a)intel.com>
duplicate
https://review.coreboot.org/#/c/30824/6/src/ec/google/wilco/commands.h
File src/ec/google/wilco/commands.h:
https://review.coreboot.org/#/c/30824/6/src/ec/google/wilco/commands.h@278
PS6, Line 278: EC_ACPI_WAKE_PWRB
I don't think this and LID are actually implemented (or can be disabled) and they are force/default on.
--
To view, visit https://review.coreboot.org/c/coreboot/+/30824
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I13f3469847b0886147b8b624311a1ece796f847b
Gerrit-Change-Number: 30824
Gerrit-PatchSet: 6
Gerrit-Owner: Lijian Zhao <lijian.zhao(a)intel.com>
Gerrit-Reviewer: Bora Guvendik <bora.guvendik(a)intel.com>
Gerrit-Reviewer: Duncan Laurie <dlaurie(a)chromium.org>
Gerrit-Reviewer: Hannah Williams <hannah.williams(a)intel.com>
Gerrit-Reviewer: Krzysztof M Sywula <krzysztof.m.sywula(a)intel.com>
Gerrit-Reviewer: Lijian Zhao <lijian.zhao(a)intel.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Fri, 18 Jan 2019 04:12:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment