MTL IoT FSP does not set up DPR

未关闭
#116 6 条评论 5 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
c
领域
embedded-iot

调研方向

先从报告中的 FSP_M_CONFIG 和 FSP_S_CONFIG 参数开始,然后将 MTL IoT FSP 4122_56 与 ADL FSP 的行为以及 coreboot 的 DPR 检查进行比较。定位实现和验证路径,并在 FSP 在锁定 TSEG 基址和 DPR 大小之前对其进行编程,从而使 Intel TXT 初始化不再报告 DPR 保护未激活时,将该 issue 视为完成。

由索引模型根据 Issue 内容生成。

描述

The MTL IoT FSP 4122_56 does not program the host bridge DPR register. When attempting to initialize Intel TXT with the aforementioned FSP, the DPR check in coreboot yields an error that DPR is not programmed:

[DEBUG]  TEE-TXT: MCH DPR 0x00000001
[DEBUG]  TEE-TXT: MCH DPR base @ 0x00000000 size 0 MiB
[ERROR]  TEE-TXT: MCH DPR protection not active.

Parameters passed to FSP:

FSP_M_CONFIG->VmxEnable = 1;
FSP_M_CONFIG->TxtImplemented = 1;
FSP_M_CONFIG->Txt = 1;
FSP_M_CONFIG->SinitMemorySize = 0x50000;
FSP_M_CONFIG->TxtHeapMemorySize = 0xf0000;
FSP_M_CONFIG->TxtDprMemorySize = 4 << 20;
FSP_M_CONFIG->TxtDprMemoryBase = 1;
FSP_M_CONFIG->BiosAcmBase = acm_base; // 256K aligned address of S-ACM in CBFS
FSP_M_CONFIG->BiosAcmSize = acm_size;
FSP_M_CONFIG->ApStartupBase = 1;
FSP_S_CONFIG->TxtEnable = 1;

Older versions of the FSP also do not program DPR. It is simply being locked without programming the TSEG base and DPR size into it. For comparison ADL FSP did program DPR correctly. Currently it is impossible to initialize Intel TXT properly without making workarounds in host firmware that will program DPR before FSP MemoryInit with last known good TSEG base and requested DPR size, assuming that configuration does not change.

主要语言
C
星标
366
派生
143
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

intel/FSP 的其他 Issue

查看 intel/FSP 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。