Patch Set 3:
> > I'd rather have __SIMPLE_DEVICE__ completely removed.
Unfortunately
> the work that would allow this (to always use struct device *)
in
> stages where devicetree is present, has been stalled as the
related
> util/sconfig changes are not receiving any reviews.
>
> IMO the proposed changes obfuscates what __SIMPLE_DEVICE__
is/was
> for since there is no relation to payload loading whatsoever.
> As i understand the use of __SIMPLE_DEVICE__ is to differentiate
between Pre DRAM stage and post DRAM stage. So i believe we might
still need __SIMPLE_DEVICE__ definition with this approach.

Not quite right. The only reason it was introduced is to solve the
name collision we have with PCI config accessors. We needed a way
to have the same source code file built for different stages; but
different stages use different prototypes for functions like
pci_config_read/write().

[Subrata] Wondering why that might have designed at first place. Might be to avoid use of complex pointer in those pre_ram stages ?


With the PCI config accessors now inlined, there is no perfomance
penalty if we move romstage away from passing pci_devfn_t to struct
device *. As matter of fact, for code sections that move data from
devicetree.cb to hardware, latter probably creates more tighter
assembly output.

https://review.coreboot.org/q/topic:devicetree

[Subrata] thanks for your CL, we can get rid of __SIMPLE_DEVICE__ once your topic branch get landed completely. Do you have an ETA when you think it can be done.

For now we want Coreboot_lite implementation being independent so we can speed up.

View Change

To view, visit change 32765. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ide61ec2c908758ba96c61ca9ed7278e7d11d1ee5
Gerrit-Change-Number: 32765
Gerrit-PatchSet: 3
Gerrit-Owner: Subrata Banik <subrata.banik@intel.com>
Gerrit-Reviewer: Aaron Durbin <adurbin@chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan@google.com>
Gerrit-Reviewer: Julius Werner <jwerner@chromium.org>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki@gmail.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi@google.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik@intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-Reviewer: ron minnich <rminnich@gmail.com>
Gerrit-Comment-Date: Tue, 14 May 2019 15:48:02 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment