Commit 199ddded authored by Michal Wajdeczko's avatar Michal Wajdeczko Committed by Chris Wilson

drm/i915/uc: Update drawing for firmware layout

Sphinx was rendering firmware layout as html table, but since
we want to add sizes relations switch to plain text graphics.

v2: also update text and do it before move (Daniele)
Signed-off-by: default avatarMichal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: default avatarDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190725141308.24660-2-michal.wajdeczko@intel.com
parent dbbff8c3
...@@ -430,6 +430,12 @@ WOPCM Layout ...@@ -430,6 +430,12 @@ WOPCM Layout
GuC GuC
=== ===
Firmware Layout
-------------------
.. kernel-doc:: drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h
:doc: Firmware Layout
GuC-specific firmware loader GuC-specific firmware loader
---------------------------- ----------------------------
...@@ -445,12 +451,6 @@ GuC-based command submission ...@@ -445,12 +451,6 @@ GuC-based command submission
.. kernel-doc:: drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c .. kernel-doc:: drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
:internal: :internal:
GuC Firmware Layout
-------------------
.. kernel-doc:: drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h
:doc: GuC Firmware Layout
GuC Address Space GuC Address Space
----------------- -----------------
......
...@@ -122,23 +122,20 @@ ...@@ -122,23 +122,20 @@
#define GUC_CTL_MAX_DWORDS (SOFT_SCRATCH_COUNT - 2) /* [1..14] */ #define GUC_CTL_MAX_DWORDS (SOFT_SCRATCH_COUNT - 2) /* [1..14] */
/** /**
* DOC: GuC Firmware Layout * DOC: Firmware Layout
* *
* The GuC firmware layout looks like this: * The GuC/HuC firmware layout looks like this::
* *
* +-------------------------------+ * +======================================================================+
* | uc_css_header | * | Firmware blob |
* | | * +===============+===============+============+============+============+
* | contains major/minor version | * | CSS header | uCode | RSA key | modulus | exponent |
* +-------------------------------+ * +===============+===============+============+============+============+
* | uCode | * <-header size-> <---header size continued ----------->
* +-------------------------------+ * <--- size ----------------------------------------------------------->
* | RSA signature | * <-key size->
* +-------------------------------+ * <-mod size->
* | modulus key | * <-exp size->
* +-------------------------------+
* | exponent val |
* +-------------------------------+
* *
* The firmware may or may not have modulus key and exponent data. The header, * The firmware may or may not have modulus key and exponent data. The header,
* uCode and RSA signature are must-have components that will be used by driver. * uCode and RSA signature are must-have components that will be used by driver.
...@@ -155,8 +152,8 @@ ...@@ -155,8 +152,8 @@
* 4. Modulus and exponent key are not required by driver. They may not appear * 4. Modulus and exponent key are not required by driver. They may not appear
* in fw. So driver will load a truncated firmware in this case. * in fw. So driver will load a truncated firmware in this case.
* *
* HuC firmware layout is same as GuC firmware. * The only difference between GuC and HuC firmwares is how the version
* Only HuC version information is saved in a different way. * information is saved.
*/ */
struct uc_css_header { struct uc_css_header {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment