Skip to content

arm64: dts: aspeed: shrink eDAF reserved region to 32MB - #319

Open
ankitaprasad2206 wants to merge 1 commit into
integ_sp8from
resolving-espi-boot-issue
Open

arm64: dts: aspeed: shrink eDAF reserved region to 32MB#319
ankitaprasad2206 wants to merge 1 commit into
integ_sp8from
resolving-espi-boot-issue

Conversation

@ankitaprasad2206

Copy link
Copy Markdown
Collaborator

Resize edaf0 from 0x4000000 to 0x2000000 so the reserved-memory size matches flash-edaf-size and the programmed translation mask.

Tested

  • Tested on Morocco
  • Host boots and SOL logs are available


edaf0: eadf0-memory@428000000 {
reg = <0x4 0x28000000 0x0 0x4000000>;
reg = <0x4 0x28000000 0x0 0x2000000>;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our DTS should override this node. The dtsi comes from Aspeed, and we usually don’t change it.

@ankitaprasad2206
ankitaprasad2206 force-pushed the resolving-espi-boot-issue branch from 974c7a5 to 1a7f3c9 Compare September 8, 2026 16:51
Replace flash-edaf-tgt-addr phandles with a 64-bit target address
so Mix-mode eDAF can program ESPI_CH3_EDAF_TADDR from DT.

Keep Aspeed ast2700-reserved-mem.dtsi at the vendor 64MB edaf0
default. Override &edaf0 to 32MB in AMD board DTS so the
reserved-memory size matches flash-edaf-size and the programmed
translation mask.

Tested
- Tested on Morocco
- Host boots and SOL logs are available

Signed-off-by: Ankita Prasad <ankprasa@amd.com>
@ankitaprasad2206
ankitaprasad2206 force-pushed the resolving-espi-boot-issue branch from 1a7f3c9 to 3c830b6 Compare September 8, 2026 17:10
dev_err(dev, "cannot get eDAF memory region\n");
return -ENODEV;
}
rc = of_property_read_u64(dev->of_node, "flash-edaf-tgt-addr",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular reason for having this to allow for the old(flash-edaf-tgt-addr and flash-edaf-size) and new style (edaf0 with reg?
AspeedTech-BMC@1b160bb

New style should do the exact same thing.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// Using the new way of
&edaf0 {
reg = <0x1 0x80000000 0x0 0x2000000>;
};

// Should be equivalent to
&espi0 {
...
flash-edaf-tgt-addr = <0x1 0x80000000>;
flash-edaf-size = <0x0 0x2000000>;
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants