[Nouveau] [PATCH 0/5] nouveau: unified firmware loading functions

Alexandre Courbot acourbot at nvidia.com
Sun Jan 17 22:07:08 PST 2016

This patchset centralizes the firmware-loading procedure to one set of functions
instead of having each engine load its firmware as it pleases. This helps ensure
that all firmware comes from the same place, namely nvidia/<chip>/.

This changes where the firmware is fetched from for falcon/xtensa/bios, but
these locations never seemed to have been official anyway. Also for most (all?)
chips supported by Nouveau there is corresponding internal firmware, so
disruption should be minimal/non-existent. If this assumption is wrong, feel
free to drop patches 3-5. At the very least, firmware officially provided by
NVIDIA should be looked up using the new functions for consistency.

These new functions are also used by the secure boot series, which will follow

Alexandre Courbot (5):
  core: add firmware handling functions
  gr/gf100: use the nvkm_firmware functions
  falcon: use the nvkm_firmware functions
  xtensa: use the nvkm_firmware functions
  bios: use the nvkm_firmware functions

 drm/nouveau/include/nvkm/core/firmware.h | 11 ++++++
 drm/nouveau/nvkm/core/Kbuild             |  1 +
 drm/nouveau/nvkm/core/firmware.c         | 64 ++++++++++++++++++++++++++++++++
 drm/nouveau/nvkm/engine/falcon.c         | 22 +++++------
 drm/nouveau/nvkm/engine/gr/gf100.c       | 18 ++-------
 drm/nouveau/nvkm/engine/xtensa.c         | 12 +++---
 drm/nouveau/nvkm/subdev/bios/shadow.c    |  7 ++--
 7 files changed, 99 insertions(+), 36 deletions(-)
 create mode 100644 drm/nouveau/include/nvkm/core/firmware.h
 create mode 100644 drm/nouveau/nvkm/core/firmware.c


More information about the Nouveau mailing list