Secure Boot refactoring
Get series with b4
b4 am cover.6abc6e3ea2c2b633ff9fee39507ab1e2dea8ecc9.1481702469.git-series.acourbot@nvidia.comVersions newest first · linked by author and title
- v5 Latest18 patches 0 repliesNew
- v433 patches 0 repliesSuperseded
- v315 patches 0 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 14 patches | 1 reply | Superseded | |
| v1 | 8 patches | 3 replies | Superseded |
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | secboot: rename init() hook to oneinit()drm/ drm/ drm/ +1 more | +9 | 0 replies | |
| 2/18 | secboot: remove fixup_hs_desc hookdrm/ drm/ drm/ | +79 | 0 replies | |
| 3/18 | secboot: add low-secure firmware hooksdrm/ drm/ drm/ | +265 | 0 replies | |
| 4/18 | secboot: generate HS BL descriptor in hookdrm/ drm/ drm/ | +138 | 0 replies | |
| 5/18 | secboot: reorganize into more filesdrm/ drm/ drm/ +11 more | +1877 | 0 replies | |
| 6/18 | secboot: add LS flags to LS func structuredrm/ drm/ drm/ | +8 | 0 replies | |
| 7/18 | secboot: split reset functiondrm/ drm/ | +58 | 0 replies | |
| 8/18 | secboot: disable falcon interrupts when running blobdrm/ | +7 | 0 replies | |
| 9/18 | secboot: remove unneeded ls_ucode_img memberdrm/ drm/ drm/ | +7 | 0 replies | |
| 10/18 | secboot: remove ls_ucode_mgrdrm/ | +33 | 0 replies | |
| 11/18 | secboot: abstract LS firmware loading functionsdrm/ drm/ drm/ +4 more | +215 | 0 replies | |
| 12/18 | secboot: safer zeroing of BL descriptorsdrm/ drm/ | +2 | 0 replies | |
| 13/18 | secboot: add missing fields to BL structuredrm/ | +4 | 0 replies | |
| 14/18 | secboot: set default error value in error registerdrm/ | +3 | 0 replies | |
| 15/18 | secboot: fix WPR descriptor generationdrm/ | +12 | 0 replies | |
| 16/18 | secboot: add lazy-bootstrap flagdrm/ drm/ | +7 | 0 replies | |
| 17/18 | falcon: add clear_interrupt functiondrm/ drm/ drm/ | +25 | 0 replies | |
| 18/18 | secboot: clear halt interrupt after ACR is rundrm/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.
Cover letter [PATCH v5 0/18] Secure Boot refactoring
Sending things in a smaller chunks since it makes their reviewing easier.
This part part 2/3 of the secboot refactoring/PMU command support patch series. Part 1 was the new falcon library which should be merged soon now.
This series is mainly a refactoring/sanitization of the existing secure boot code. It does not add new features (part 3 will).
Secure boot handling is now separated by NVIDIA firmware versions, and LS firmwares are also loaded and managed in their own source files. This makes the code easier to understand (more bite-size chunks instead of thousands of LoC source files) and extend since the proper abstractions are now in place.
The next big chunk will be PMU commands handling. Since PMU is not the only falcon that will have to manage commands (SEC2 will manage security features in newer firmwares), I am currently rewriting it as part of the falcon library instead of the PMU subdev. This will make things more reusable and will allow us to close the loop with the current falcon engine code - please just allow me a few more days to finish this! :)
In the meantime, this code should be good to go and test.
Alexandre Courbot (18):
secboot: rename init() hook to oneinit()
secboot: remove fixup_hs_desc hook
secboot: add low-secure firmware hooks
secboot: generate HS BL descriptor in hook
secboot: reorganize into more files
secboot: add LS flags to LS func structure
secboot: split reset function
secboot: disable falcon interrupts when running blob
secboot: remove unneeded ls_ucode_img member
secboot: remove ls_ucode_mgr
secboot: abstract LS firmware loading functions
secboot: safer zeroing of BL descriptors
secboot: add missing fields to BL structure
secboot: set default error value in error register
secboot: fix WPR descriptor generation
secboot: add lazy-bootstrap flag
falcon: add clear_interrupt function
secboot: clear halt interrupt after ACR is run
drm/nouveau/include/nvkm/engine/falcon.h | 2 +- drm/nouveau/include/nvkm/subdev/secboot.h | 10 +- drm/nouveau/nvkm/falcon/base.c | 6 +- drm/nouveau/nvkm/falcon/v1.c | 17 +- drm/nouveau/nvkm/subdev/secboot/Kbuild | 4 +- drm/nouveau/nvkm/subdev/secboot/acr.c | 54 +- drm/nouveau/nvkm/subdev/secboot/acr.h | 69 +- drm/nouveau/nvkm/subdev/secboot/acr_r352.c | 936 +++++++++++++- drm/nouveau/nvkm/subdev/secboot/acr_r352.h | 250 ++++- drm/nouveau/nvkm/subdev/secboot/acr_r361.c | 138 ++- drm/nouveau/nvkm/subdev/secboot/base.c | 95 +- drm/nouveau/nvkm/subdev/secboot/gm200.c | 1283 +------------------ drm/nouveau/nvkm/subdev/secboot/gm200.h | 43 +- drm/nouveau/nvkm/subdev/secboot/gm20b.c | 125 +-- drm/nouveau/nvkm/subdev/secboot/ls_ucode.h | 151 ++- drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c | 158 ++- drm/nouveau/nvkm/subdev/secboot/priv.h | 200 +--- 17 files changed, 1990 insertions(+), 1551 deletions(-) create mode 100644 drm/nouveau/nvkm/subdev/secboot/acr.c create mode 100644 drm/nouveau/nvkm/subdev/secboot/acr.h create mode 100644 drm/nouveau/nvkm/subdev/secboot/acr_r352.c create mode 100644 drm/nouveau/nvkm/subdev/secboot/acr_r352.h create mode 100644 drm/nouveau/nvkm/subdev/secboot/acr_r361.c create mode 100644 drm/nouveau/nvkm/subdev/secboot/gm200.h create mode 100644 drm/nouveau/nvkm/subdev/secboot/ls_ucode.h create mode 100644 drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c
Signature · 5 lines
git-series 0.8.10 _______________________________________________ Nouveau mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/nouveau