GuC 32.0.3
Subsystems (2)
v3 cover GuC 32.0.3
New GuC firmwares (for SKL, BXT, KBL, ICL) with updated ABI interface.
Note: For correct bisecting, patches 3-8 can be squashed, as Gen9 GuC support will be broken during update of GuC firmware definitions.
v2: only HuC authentication is supported
v3: never allow to turn on GuC submission mode
Michal Wajdeczko (17):
drm/i915/guc: Change platform default GuC mode drm/i915/guc: Don't allow GuC submission drm/i915/guc: Update GuC firmware versions and names drm/i915/guc: Update GuC firmware CSS header drm/i915/guc: Update GuC boot parameters drm/i915/guc: Update suspend/resume protocol drm/i915/guc: Update GuC sample-forcewake command drm/i915/guc: Update GuC ADS object definition drm/i915/guc: Reset GuC ADS during sanitize drm/i915/guc: Always ask GuC to update power domain states drm/i915/guc: New GuC interrupt register for Gen11 drm/i915/guc: New GuC scratch registers for Gen11 drm/i915/huc: New HuC status register for Gen11 drm/i915/guc: Update GuC CTB response definition drm/i915/guc: Enable GuC CTB communication on Gen11 drm/i915/guc: Define GuC firmware version for Icelake drm/i915/huc: Define HuC firmware version for Icelake
Oscar Mateo (2):
drm/i915/guc: Create vfuncs for the GuC interrupts control functions drm/i915/guc: Correctly handle GuC interrupts on Gen11
drivers/gpu/drm/i915/i915_drv.h | 6 +- drivers/gpu/drm/i915/i915_irq.c | 64 ++++++- drivers/gpu/drm/i915/i915_pci.c | 1 + drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_drv.h | 3 + drivers/gpu/drm/i915/intel_engine_cs.c | 9 +- drivers/gpu/drm/i915/intel_guc.c | 121 ++++++------ drivers/gpu/drm/i915/intel_guc.h | 10 +- drivers/gpu/drm/i915/intel_guc_ads.c | 167 ++++++++++------ drivers/gpu/drm/i915/intel_guc_ads.h | 1 + drivers/gpu/drm/i915/intel_guc_ct.c | 2 +- drivers/gpu/drm/i915/intel_guc_fw.c | 85 +++++---- drivers/gpu/drm/i915/intel_guc_fwif.h | 199 +++++++++----------- drivers/gpu/drm/i915/intel_guc_reg.h | 25 +++ drivers/gpu/drm/i915/intel_guc_submission.c | 4 - drivers/gpu/drm/i915/intel_huc.c | 26 ++- drivers/gpu/drm/i915/intel_huc.h | 6 + drivers/gpu/drm/i915/intel_huc_fw.c | 12 ++ drivers/gpu/drm/i915/intel_ringbuffer.h | 2 + drivers/gpu/drm/i915/intel_uc.c | 48 +++-- drivers/gpu/drm/i915/intel_uc_fw.c | 20 +- 21 files changed, 510 insertions(+), 302 deletions(-)
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 1/19 drm/i915/guc: Change platform default GuC mode
Today our most desired GuC configuration is to only enable HuC if it is available and we really don't care about GuC submission. Change platform default GuC mode to match our desire.
--- drivers/gpu/drm/i915/intel_uc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/intel_uc.c +2 -4
@@ -57,10 +57,8 @@ static int __get_platform_enable_guc(struct drm_i915_private *i915)struct intel_uc_fw *huc_fw = &i915->huc.fw;int enable_guc =0 ; -/* Default is to enable GuC/HuC if we know their firmwares */ -if (intel_uc_fw_is_selected (guc_fw)) - enable_guc |=ENABLE_GUC_SUBMISSION ; -if (intel_uc_fw_is_selected (huc_fw)) +/* Default is to use HuC if we know GuC and HuC firmwares */ +if (intel_uc_fw_is_selected (guc_fw) &&intel_uc_fw_is_selected (huc_fw)) enable_guc |=ENABLE_GUC_LOAD_HUC ;/* Any platform specific fine-tuning can be done here */
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v3 01/19] drm/i915/guc: Change platform default GuC mode
Quoted 25 lines · Michal Wajdeczko
Today our most desired GuC configuration is to only enable HuC if it is available and we really don't care about GuC submission. Change platform default GuC mode to match our desire.
Signed-off-by Michal Wajdeczko <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Chris Wilson <[email protected]>Cc Rodrigo Vivi <[email protected]>Cc Daniele Ceraolo Spurio <[email protected]>Cc John Spotswood <[email protected]>Cc Vinay Belgaumkar <[email protected]>Cc Tony Ye <[email protected]>Cc Anusha Srivatsa <[email protected]>Cc Jeff Mcgee <[email protected]>Cc Antonio Argenziano <[email protected]>Cc Sujaritha Sundaresan <[email protected]>--- drivers/gpu/drm/i915/intel_uc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/intel_uc.c +0
-0
drivers/gpu/drm/i915/intel_uc.c static int __get_platform_enable_guc(struct drm_i915_private *i915) · line 62
Quoted 10 lines
drivers/gpu/drm/i915/intel_uc.c +2
-4@@ -57,10 +57,8 @@ static int __get_platform_enable_guc(struct drm_i915_private *i915)struct intel_uc_fw *huc_fw = &i915->huc.fw;int enable_guc =0 ; -/* Default is to enable GuC/HuC if we know their firmwares */ -if (intel_uc_fw_is_selected (guc_fw)) - enable_guc |=ENABLE_GUC_SUBMISSION ; -if (intel_uc_fw_is_selected (huc_fw)) +/* Default is to use HuC if we know GuC and HuC firmwares */ +if (intel_uc_fw_is_selected (guc_fw) &&intel_uc_fw_is_selected (huc_fw)) enable_guc |=ENABLE_GUC_LOAD_HUC ;
Regards,
Tony
drivers/gpu/drm/i915/intel_uc.c static int __get_platform_enable_guc(struct drm_i915_private *i915) · line 64
Quoted 2 lines
drivers/gpu/drm/i915/intel_uc.c +0
-0/* Any platform specific fine-tuning can be done here */
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v3 01/19] drm/i915/guc: Change platform default GuC mode
In reply to Michal WajdeczkoQuoted 27 lines · Michal Wajdeczko
Today our most desired GuC configuration is to only enable HuC if it is available and we really don't care about GuC submission. Change platform default GuC mode to match our desire.
Signed-off-by Michal Wajdeczko <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Chris Wilson <[email protected]>Cc Rodrigo Vivi <[email protected]>Cc Daniele Ceraolo Spurio <[email protected]>Cc John Spotswood <[email protected]>Cc Vinay Belgaumkar <[email protected]>Cc Tony Ye <[email protected]>Cc Anusha Srivatsa <[email protected]>Cc Jeff Mcgee <[email protected]>Cc Antonio Argenziano <[email protected]>Cc Sujaritha Sundaresan <[email protected]>--- drivers/gpu/drm/i915/intel_uc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/intel_uc.c +0
-0@@ -57,10 +57,8 @@ static int __get_platform_enable_guc(struct drm_i915_private *i915)struct intel_uc_fw *huc_fw = &i915->huc.fw;int enable_guc =0 ;
drivers/gpu/drm/i915/intel_uc.c static int __get_platform_enable_guc(struct drm_i915_private *i915) · line 64
Quoted 10 lines
drivers/gpu/drm/i915/intel_uc.c +2
-4-/* Default is to enable GuC/HuC if we know their firmwares */ -if (intel_uc_fw_is_selected (guc_fw)) - enable_guc |=ENABLE_GUC_SUBMISSION ; -if (intel_uc_fw_is_selected (huc_fw)) +/* Default is to use HuC if we know GuC and HuC firmwares */ +if (intel_uc_fw_is_selected (guc_fw) &&intel_uc_fw_is_selected (huc_fw)) enable_guc |=ENABLE_GUC_LOAD_HUC ;/* Any platform specific fine-tuning can be done here */
Regards,
Sujaritha
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 2/19 drm/i915/guc: Don't allow GuC submission
In reply to Michal WajdeczkoDue to the upcoming changes to the GuC ABI interface, we must disable GuC submission mode until final ABI will be available on all GuC firmwares.
To avoid regressions on systems configured to run with no longer supported configuration "enable_guc=3" or "enable_guc=1" clear GuC submission bit.
v2: force switch to non-GuC submission mode
--- drivers/gpu/drm/i915/intel_uc.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
drivers/gpu/drm/i915/intel_uc.c +13 -0
@@ -130,6 +130,15 @@ static void sanitize_options_early(struct drm_i915_private *i915) "no HuC firmware"); } +/* XXX: GuC submission is unavailable for now */ +if (intel_uc_is_using_guc_submission (i915)) { +DRM_INFO ("Incompatible option detected: %s=%d, %s!\n" , +"enable_guc" , i915_modparams.enable_guc, +"GuC submission not supported" ); +DRM_INFO ("Switching to non-GuC submission mode!\n" ); + i915_modparams.enable_guc &= ~ENABLE_GUC_SUBMISSION ; + } +/* A negative value means "use platform/config default" */ if (i915_modparams.guc_log_level <0 ) i915_modparams.guc_log_level =
@@ -286,6 +295,10 @@ int intel_uc_init(struct drm_i915_private *i915)if (!HAS_GUC (i915))return -ENODEV ; +/* XXX: GuC submission is unavailable for now */ +if (USES_GUC_SUBMISSION (i915)) +return -EIO ; + ret =intel_guc_init (guc);if (ret)return ret;
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v3 02/19] drm/i915/guc: Don't allow GuC submission
Quoted 10 lines · Michal Wajdeczko
Due to the upcoming changes to the GuC ABI interface, we must disable GuC submission mode until final ABI will be available on all GuC firmwares.
To avoid regressions on systems configured to run with no longer supported configuration "enable_guc=3" or "enable_guc=1" clear GuC submission bit.
v2: force switch to non-GuC submission mode
Quoted 13 lines
Signed-off-by Michal Wajdeczko <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Chris Wilson <[email protected]>Cc Rodrigo Vivi <[email protected]>Cc Daniele Ceraolo Spurio <[email protected]>Cc John Spotswood <[email protected]>Cc Vinay Belgaumkar <[email protected]>Cc Tony Ye <[email protected]>Cc Anusha Srivatsa <[email protected]>Cc Jeff Mcgee <[email protected]>Cc Antonio Argenziano <[email protected]>Cc Sujaritha Sundaresan <[email protected]>Cc Martin Peres <[email protected]>
Thanks for the update! This will also allow you to drop the HAX patch (patch 22/22) :)
Quoted 26 lines
--- drivers/gpu/drm/i915/intel_uc.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)drivers/gpu/drm/i915/intel_uc.c +9
-0@@ -130,6 +130,15 @@ static void sanitize_options_early(struct drm_i915_private *i915) "no HuC firmware"); } +/* XXX: GuC submission is unavailable for now */ +if (intel_uc_is_using_guc_submission (i915)) { +DRM_INFO ("Incompatible option detected: %s=%d, %s!\n" , +"enable_guc" , i915_modparams.enable_guc, +"GuC submission not supported" ); +DRM_INFO ("Switching to non-GuC submission mode!\n" ); + i915_modparams.enable_guc &= ~ENABLE_GUC_SUBMISSION ; + } +/* A negative value means "use platform/config default" */ if (i915_modparams.guc_log_level <0 ) i915_modparams.guc_log_level =
drivers/gpu/drm/i915/intel_uc.c int intel_uc_init(struct drm_i915_private *i915) · line 304
Quoted 10 lines
drivers/gpu/drm/i915/intel_uc.c +4
-0@@ -286,6 +295,10 @@ int intel_uc_init(struct drm_i915_private *i915)if (!HAS_GUC (i915))return -ENODEV ; +/* XXX: GuC submission is unavailable for now */ +if (USES_GUC_SUBMISSION (i915)) +return -EIO ; + ret =intel_guc_init (guc);if (ret)return ret;
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 3/19 drm/i915/guc: Update GuC firmware versions and names
In reply to Michal WajdeczkoGuC firmware changed its release version numbering schema and now it also includes patch version. Update our GuC firmware path definitions to match new pattern:
<platform>_guc_<major>.<minor>.<patch>.bin
While here, reorder platform checks and start from the latest.
v2: keep single platform defs in one block (Daniele)
--- drivers/gpu/drm/i915/intel_guc_fw.c | 75 ++++++++++++++++------------- 1 file changed, 41 insertions(+), 34 deletions(-)
drivers/gpu/drm/i915/intel_guc_fw.c +41 -34
@@ -30,53 +30,60 @@#include "intel_guc_fw.h" #include "i915_drv.h" -#define SKL_FW_MAJOR 9 -#define SKL_FW_MINOR 33 - -#define BXT_FW_MAJOR 9 -#define BXT_FW_MINOR 29 - -#define KBL_FW_MAJOR 9 -#define KBL_FW_MINOR 39 - -#define GUC_FW_PATH (platform, major, minor) \ - "i915/" __stringify(platform) "_guc_ver" __stringify(major) "_" __stringify(minor) ".bin" - -#define I915_SKL_GUC_UCODE GUC_FW_PATH(skl, SKL_FW_MAJOR, SKL_FW_MINOR) -MODULE_FIRMWARE (I915_SKL_GUC_UCODE ); - -#define I915_BXT_GUC_UCODE GUC_FW_PATH(bxt, BXT_FW_MAJOR, BXT_FW_MINOR) -MODULE_FIRMWARE (I915_BXT_GUC_UCODE ); - -#define I915_KBL_GUC_UCODE GUC_FW_PATH(kbl, KBL_FW_MAJOR, KBL_FW_MINOR) -MODULE_FIRMWARE (I915_KBL_GUC_UCODE ); +#define __MAKE_GUC_FW_PATH (KEY ) \ + "i915/" \ + __stringify(KEY##_GUC_FW_PREFIX) "_guc_" \ + __stringify(KEY##_GUC_FW_MAJOR) "." \ + __stringify(KEY##_GUC_FW_MINOR) "." \ + __stringify(KEY##_GUC_FW_PATCH) ".bin" + +#define SKL_GUC_FW_PREFIX skl +#define SKL_GUC_FW_MAJOR 32 +#define SKL_GUC_FW_MINOR 0 +#define SKL_GUC_FW_PATCH 3 +#define SKL_GUC_FIRMWARE_PATH __MAKE_GUC_FW_PATH(SKL) +MODULE_FIRMWARE (SKL_GUC_FIRMWARE_PATH ); + +#define BXT_GUC_FW_PREFIX bxt +#define BXT_GUC_FW_MAJOR 32 +#define BXT_GUC_FW_MINOR 0 +#define BXT_GUC_FW_PATCH 3 +#define BXT_GUC_FIRMWARE_PATH __MAKE_GUC_FW_PATH(BXT) +MODULE_FIRMWARE (BXT_GUC_FIRMWARE_PATH ); + +#define KBL_GUC_FW_PREFIX kbl +#define KBL_GUC_FW_MAJOR 32 +#define KBL_GUC_FW_MINOR 0 +#define KBL_GUC_FW_PATCH 3 +#define KBL_GUC_FIRMWARE_PATH __MAKE_GUC_FW_PATH(KBL) +MODULE_FIRMWARE (KBL_GUC_FIRMWARE_PATH );static void guc_fw_select (struct intel_uc_fw *guc_fw) { struct intel_guc *guc = container_of(guc_fw, struct intel_guc, fw); -struct drm_i915_private *dev_priv =guc_to_i915 (guc); +struct drm_i915_private *i915 =guc_to_i915 (guc);GEM_BUG_ON (guc_fw->type !=INTEL_UC_FW_TYPE_GUC ); -if (!HAS_GUC (dev_priv)) +if (!HAS_GUC (i915))return ;if (i915_modparams.guc_firmware_path) { guc_fw->path = i915_modparams.guc_firmware_path; guc_fw->major_ver_wanted =0 ; guc_fw->minor_ver_wanted =0 ; - }else if (IS_SKYLAKE (dev_priv)) { - guc_fw->path =I915_SKL_GUC_UCODE ; - guc_fw->major_ver_wanted =SKL_FW_MAJOR ; - guc_fw->minor_ver_wanted =SKL_FW_MINOR ; - }else if (IS_BROXTON (dev_priv)) { - guc_fw->path =I915_BXT_GUC_UCODE ; - guc_fw->major_ver_wanted =BXT_FW_MAJOR ; - guc_fw->minor_ver_wanted =BXT_FW_MINOR ; - }else if (IS_KABYLAKE (dev_priv) ||IS_COFFEELAKE (dev_priv)) { - guc_fw->path =I915_KBL_GUC_UCODE ; - guc_fw->major_ver_wanted =KBL_FW_MAJOR ; - guc_fw->minor_ver_wanted =KBL_FW_MINOR ; + }else if (IS_KABYLAKE (i915) ||IS_COFFEELAKE (i915)) { + guc_fw->path =KBL_GUC_FIRMWARE_PATH ; + guc_fw->major_ver_wanted =KBL_GUC_FW_MAJOR ; + guc_fw->minor_ver_wanted =KBL_GUC_FW_MINOR ; + }else if (IS_BROXTON (i915)) { + guc_fw->path =BXT_GUC_FIRMWARE_PATH ; + guc_fw->major_ver_wanted =BXT_GUC_FW_MAJOR ; + guc_fw->minor_ver_wanted =BXT_GUC_FW_MINOR ; + }else if (IS_SKYLAKE (i915)) { + guc_fw->path =SKL_GUC_FIRMWARE_PATH ; + guc_fw->major_ver_wanted =SKL_GUC_FW_MAJOR ; + guc_fw->minor_ver_wanted =SKL_GUC_FW_MINOR ; } }
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 4/19 drm/i915/guc: Update GuC firmware CSS header
In reply to Michal WajdeczkoThere are few minor changes in the CSS header related to the version numbering in new GuC firmwares. Update our definition and start using common tools for extracting bitfields.
v2: drop deprecated prod_preprod_fw field, replace unions with bit defs
--- drivers/gpu/drm/i915/intel_guc_fwif.h | 50 +++++++++------------------ drivers/gpu/drm/i915/intel_uc_fw.c | 20 +++++------ 2 files changed, 26 insertions(+), 44 deletions(-)
drivers/gpu/drm/i915/intel_guc_fwif.h +16 -34
@@ -168,11 +168,7 @@* in fw. So driver will load a truncated firmware in this case. * * HuC firmware layout is same as GuC firmware. -* -* HuC firmware css header is different. However, the only difference is where -* the version information is saved. The uc_css_header is unified to support -* both. Driver should get HuC version from uc_css_header.huc_sw_version, while -* uc_css_header.guc_sw_version for GuC. +* Only HuC version information is saved in a different way. */ struct uc_css_header {
@@ -183,41 +179,27 @@ struct uc_css_header {u32 header_version;u32 module_id;u32 module_vendor; -union { -struct { -u8 day; -u8 month; -u16 year; - }; -u32 date; - }; +u32 date; +#define CSS_DATE_DAY (0xFF << 0) +#define CSS_DATE_MONTH (0xFF << 8) +#define CSS_DATE_YEAR (0xFFFF << 16)u32 size_dw;/* uCode plus header_size_dw */ u32 key_size_dw;u32 modulus_size_dw;u32 exponent_size_dw; -union { -struct { -u8 hour; -u8 min; -u16 sec; - }; -u32 time; - }; - +u32 time; +#define CSS_TIME_HOUR (0xFF << 0) +#define CSS_DATE_MIN (0xFF << 8) +#define CSS_DATE_SEC (0xFFFF << 16)char username[8 ];char buildnumber[12 ]; -union { -struct { -u32 branch_client_version; -u32 sw_version; - } guc; -struct { -u32 sw_version; -u32 reserved; - } huc; - }; -u32 prod_preprod_fw; -u32 reserved[12 ]; +u32 sw_version; +#define CSS_SW_VERSION_GUC_MAJOR (0xFF << 16) +#define CSS_SW_VERSION_GUC_MINOR (0xFF << 8) +#define CSS_SW_VERSION_GUC_PATCH (0xFF << 0) +#define CSS_SW_VERSION_HUC_MAJOR (0xFFFF << 16) +#define CSS_SW_VERSION_HUC_MINOR (0xFFFF << 0) +u32 reserved[14 ];u32 header_info; } __packed;
drivers/gpu/drm/i915/intel_uc_fw.c +10 -10
@@ -22,6 +22,7 @@* */ +#include <linux/bitfield.h> #include <linux/firmware.h> #include <drm/drm_print.h>
@@ -119,21 +120,20 @@ void intel_uc_fw_fetch(struct drm_i915_private *dev_priv, goto fail; } -/* -* The GuC firmware image has the version number embedded at a -* well-known offset within the firmware blob; note that major / minor -* version are TWO bytes each (i.e. u16), although all pointers and -* offsets are defined in terms of bytes (u8). -*/ +/* Get version numbers from the CSS header */ switch (uc_fw->type) {case INTEL_UC_FW_TYPE_GUC : - uc_fw->major_ver_found = css->guc.sw_version >>16 ; - uc_fw->minor_ver_found = css->guc.sw_version &0xFFFF ; + uc_fw->major_ver_found =FIELD_GET (CSS_SW_VERSION_GUC_MAJOR , + css->sw_version); + uc_fw->minor_ver_found =FIELD_GET (CSS_SW_VERSION_GUC_MINOR , + css->sw_version);break ;case INTEL_UC_FW_TYPE_HUC : - uc_fw->major_ver_found = css->huc.sw_version >>16 ; - uc_fw->minor_ver_found = css->huc.sw_version &0xFFFF ; + uc_fw->major_ver_found =FIELD_GET (CSS_SW_VERSION_HUC_MAJOR , + css->sw_version); + uc_fw->minor_ver_found =FIELD_GET (CSS_SW_VERSION_HUC_MINOR , + css->sw_version);break ;default :
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v3 04/19] drm/i915/guc: Update GuC firmware CSS header
Quoted 11 lines · Michal Wajdeczko
There are few minor changes in the CSS header related to the version numbering in new GuC firmwares. Update our definition and start using common tools for extracting bitfields.
v2: drop deprecated
prod_preprod_fwfield, replace unions with bit defsSigned-off-by Michal Wajdeczko <[email protected]>Cc Daniele Ceraolo Spurio <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc John Spotswood <[email protected]>Cc Jeff Mcgee <[email protected]>
Quoted 113 lines
--- drivers/gpu/drm/i915/intel_guc_fwif.h | 50 +++++++++------------------ drivers/gpu/drm/i915/intel_uc_fw.c | 20 +++++------ 2 files changed, 26 insertions(+), 44 deletions(-)drivers/gpu/drm/i915/intel_guc_fwif.h +16
-34@@ -168,11 +168,7 @@* in fw. So driver will load a truncated firmware in this case. * * HuC firmware layout is same as GuC firmware. -* -* HuC firmware css header is different. However, the only difference is where -* the version information is saved. The uc_css_header is unified to support -* both. Driver should get HuC version from uc_css_header.huc_sw_version, while -* uc_css_header.guc_sw_version for GuC. +* Only HuC version information is saved in a different way. */ struct uc_css_header {@@ -183,41 +179,27 @@ struct uc_css_header {u32 header_version;u32 module_id;u32 module_vendor; -union { -struct { -u8 day; -u8 month; -u16 year; - }; -u32 date; - }; +u32 date; +#define CSS_DATE_DAY (0xFF << 0) +#define CSS_DATE_MONTH (0xFF << 8) +#define CSS_DATE_YEAR (0xFFFF << 16)u32 size_dw;/* uCode plus header_size_dw */ u32 key_size_dw;u32 modulus_size_dw;u32 exponent_size_dw; -union { -struct { -u8 hour; -u8 min; -u16 sec; - }; -u32 time; - }; - +u32 time; +#define CSS_TIME_HOUR (0xFF << 0) +#define CSS_DATE_MIN (0xFF << 8) +#define CSS_DATE_SEC (0xFFFF << 16)char username[8 ];char buildnumber[12 ]; -union { -struct { -u32 branch_client_version; -u32 sw_version; - } guc; -struct { -u32 sw_version; -u32 reserved; - } huc; - }; -u32 prod_preprod_fw; -u32 reserved[12 ]; +u32 sw_version; +#define CSS_SW_VERSION_GUC_MAJOR (0xFF << 16) +#define CSS_SW_VERSION_GUC_MINOR (0xFF << 8) +#define CSS_SW_VERSION_GUC_PATCH (0xFF << 0) +#define CSS_SW_VERSION_HUC_MAJOR (0xFFFF << 16) +#define CSS_SW_VERSION_HUC_MINOR (0xFFFF << 0) +u32 reserved[14 ];u32 header_info; } __packed;drivers/gpu/drm/i915/intel_uc_fw.c +6
-8@@ -22,6 +22,7 @@* */ +#include <linux/bitfield.h> #include <linux/firmware.h> #include <drm/drm_print.h> @@ -119,21 +120,20 @@ void intel_uc_fw_fetch(struct drm_i915_private *dev_priv, goto fail; } -/* -* The GuC firmware image has the version number embedded at a -* well-known offset within the firmware blob; note that major / minor -* version are TWO bytes each (i.e. u16), although all pointers and -* offsets are defined in terms of bytes (u8). -*/ +/* Get version numbers from the CSS header */ switch (uc_fw->type) {case INTEL_UC_FW_TYPE_GUC : - uc_fw->major_ver_found = css->guc.sw_version >>16 ; - uc_fw->minor_ver_found = css->guc.sw_version &0xFFFF ; + uc_fw->major_ver_found =FIELD_GET (CSS_SW_VERSION_GUC_MAJOR , + css->sw_version); + uc_fw->minor_ver_found =FIELD_GET (CSS_SW_VERSION_GUC_MINOR , + css->sw_version);break ;
drivers/gpu/drm/i915/intel_uc_fw.c void intel_uc_fw_fetch(struct drm_i915_private *dev_priv, · line 139
Quoted 10 lines
drivers/gpu/drm/i915/intel_uc_fw.c +4
-2case INTEL_UC_FW_TYPE_HUC : - uc_fw->major_ver_found = css->huc.sw_version >>16 ; - uc_fw->minor_ver_found = css->huc.sw_version &0xFFFF ; + uc_fw->major_ver_found =FIELD_GET (CSS_SW_VERSION_HUC_MAJOR , + css->sw_version); + uc_fw->minor_ver_found =FIELD_GET (CSS_SW_VERSION_HUC_MINOR , + css->sw_version);break ;default :
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 5/19 drm/i915/guc: Update GuC boot parameters
In reply to Michal WajdeczkoNew GuC firmwares require updated boot parameters.
v2: rebased
--- drivers/gpu/drm/i915/intel_guc.c | 38 +++++++++----------------- drivers/gpu/drm/i915/intel_guc_fwif.h | 39 +++++++-------------------- 2 files changed, 23 insertions(+), 54 deletions(-)
drivers/gpu/drm/i915/intel_guc.c +13 -25
@@ -243,14 +243,7 @@ void intel_guc_fini(struct intel_guc *guc)static u32 guc_ctl_debug_flags (struct intel_guc *guc) {u32 level =intel_guc_log_get_level (&guc->log); -u32 flags; -u32 ads; - - ads =intel_guc_ggtt_offset (guc, guc->ads_vma) >>PAGE_SHIFT ; - flags = ads <<GUC_ADS_ADDR_SHIFT |GUC_ADS_ENABLED ; - -if (!GUC_LOG_LEVEL_IS_ENABLED (level)) - flags |=GUC_LOG_DEFAULT_DISABLED ; +u32 flags =0 ;if (!GUC_LOG_LEVEL_IS_VERBOSE (level)) flags |=GUC_LOG_DISABLED ;
@@ -265,11 +258,7 @@ static u32 guc_ctl_feature_flags(struct intel_guc *guc) {u32 flags =0 ; - flags |=GUC_CTL_VCS2_ENABLED ; - -if (USES_GUC_SUBMISSION (guc_to_i915 (guc))) - flags |=GUC_CTL_KERNEL_SUBMISSIONS ; -else +if (!USES_GUC_SUBMISSION (guc_to_i915 (guc))) flags |=GUC_CTL_DISABLE_SCHEDULER ;return flags;
@@ -333,6 +322,14 @@ static u32 guc_ctl_log_params_flags(struct intel_guc *guc)return flags; } +static u32 guc_ctl_ads_flags (struct intel_guc *guc) +{ +u32 ads =intel_guc_ggtt_offset (guc, guc->ads_vma) >>PAGE_SHIFT ; +u32 flags = ads <<GUC_ADS_ADDR_SHIFT ; + +return flags; +} +/* * Initialise the GuC parameter block before starting the firmware * transfer. These parameters are read by the firmware on startup
@@ -346,20 +343,11 @@ void intel_guc_init_params(struct intel_guc *guc)memset (params,0 ,sizeof (params)); -/* -* GuC ARAT increment is 10 ns. GuC default scheduler quantum is one -* second. This ARAR is calculated by: -* Scheduler-Quantum-in-ns / ARAT-increment-in-ns = 1000000000 / 10 -*/ - params[GUC_CTL_ARAT_HIGH ] =0 ; - params[GUC_CTL_ARAT_LOW ] =100000000 ; - - params[GUC_CTL_WA ] |=GUC_CTL_WA_UK_BY_DRIVER ; - + params[GUC_CTL_CTXINFO ] =guc_ctl_ctxinfo_flags (guc); + params[GUC_CTL_LOG_PARAMS ] =guc_ctl_log_params_flags (guc); params[GUC_CTL_FEATURE ] =guc_ctl_feature_flags (guc); - params[GUC_CTL_LOG_PARAMS ] =guc_ctl_log_params_flags (guc); params[GUC_CTL_DEBUG ] =guc_ctl_debug_flags (guc); - params[GUC_CTL_CTXINFO ] =guc_ctl_ctxinfo_flags (guc); + params[GUC_CTL_ADS ] =guc_ctl_ads_flags (guc);for (i =0 ; i <GUC_CTL_MAX_DWORDS ; i++)DRM_DEBUG_DRIVER ("param[%2d] = %#x\n" , i, params[i]);
drivers/gpu/drm/i915/intel_guc_fwif.h +10 -29
@@ -73,44 +73,28 @@#define GUC_STAGE_DESC_ATTR_PCH BIT(6)#define GUC_STAGE_DESC_ATTR_TERMINATED BIT(7) -/* The guc control data is 10 DWORDs */ +/* New GuC control data */ #define GUC_CTL_CTXINFO 0#define GUC_CTL_CTXNUM_IN16_SHIFT 0#define GUC_CTL_BASE_ADDR_SHIFT 12 -#define GUC_CTL_ARAT_HIGH 1 -#define GUC_CTL_ARAT_LOW 2 - -#define GUC_CTL_DEVICE_INFO 3 - -#define GUC_CTL_LOG_PARAMS 4 +#define GUC_CTL_LOG_PARAMS 1#define GUC_LOG_VALID (1 << 0)#define GUC_LOG_NOTIFY_ON_HALF_FULL (1 << 1)#define GUC_LOG_ALLOC_IN_MEGABYTE (1 << 3)#define GUC_LOG_CRASH_SHIFT 4 -#define GUC_LOG_CRASH_MASK (0x1 << GUC_LOG_CRASH_SHIFT) +#define GUC_LOG_CRASH_MASK (0x3 << GUC_LOG_CRASH_SHIFT)#define GUC_LOG_DPC_SHIFT 6#define GUC_LOG_DPC_MASK (0x7 << GUC_LOG_DPC_SHIFT)#define GUC_LOG_ISR_SHIFT 9#define GUC_LOG_ISR_MASK (0x7 << GUC_LOG_ISR_SHIFT)#define GUC_LOG_BUF_ADDR_SHIFT 12 -#define GUC_CTL_PAGE_FAULT_CONTROL 5 - -#define GUC_CTL_WA 6 -#define GUC_CTL_WA_UK_BY_DRIVER (1 << 3) - -#define GUC_CTL_FEATURE 7 -#define GUC_CTL_VCS2_ENABLED (1 << 0) -#define GUC_CTL_KERNEL_SUBMISSIONS (1 << 1) -#define GUC_CTL_FEATURE2 (1 << 2) -#define GUC_CTL_POWER_GATING (1 << 3) -#define GUC_CTL_DISABLE_SCHEDULER (1 << 4) -#define GUC_CTL_PREEMPTION_LOG (1 << 5) -#define GUC_CTL_ENABLE_SLPC (1 << 7) -#define GUC_CTL_RESET_ON_PREMPT_FAILURE (1 << 8) +#define GUC_CTL_WA 2 +#define GUC_CTL_FEATURE 3 +#define GUC_CTL_DISABLE_SCHEDULER (1 << 14) -#define GUC_CTL_DEBUG 8 +#define GUC_CTL_DEBUG 4#define GUC_LOG_VERBOSITY_SHIFT 0#define GUC_LOG_VERBOSITY_LOW (0 << GUC_LOG_VERBOSITY_SHIFT)#define GUC_LOG_VERBOSITY_MED (1 << GUC_LOG_VERBOSITY_SHIFT)
@@ -123,13 +107,10 @@#define GUC_LOG_DESTINATION_MASK (3 << 4)#define GUC_LOG_DISABLED (1 << 6)#define GUC_PROFILE_ENABLED (1 << 7) -#define GUC_WQ_TRACK_ENABLED (1 << 8) -#define GUC_ADS_ENABLED (1 << 9) -#define GUC_LOG_DEFAULT_DISABLED (1 << 10) -#define GUC_ADS_ADDR_SHIFT 11 -#define GUC_ADS_ADDR_MASK 0xfffff800 -#define GUC_CTL_RSRVD 9 +#define GUC_CTL_ADS 5 +#define GUC_ADS_ADDR_SHIFT 1 +#define GUC_ADS_ADDR_MASK (0xFFFFF << GUC_ADS_ADDR_SHIFT)#define GUC_CTL_MAX_DWORDS (SOFT_SCRATCH_COUNT - 2)/* [1..14] */
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 6/19 drm/i915/guc: Update suspend/resume protocol
In reply to Michal WajdeczkoNew GuC firmwares use updated sleep status definitions.
The polling on scratch register 14 is also now required only on suspend and there is no need to provide the shared page.
v2: include changes for polling and shared page
--- drivers/gpu/drm/i915/intel_guc.c | 50 +++++++++++---------------- drivers/gpu/drm/i915/intel_guc_fwif.h | 6 ++-- 2 files changed, 24 insertions(+), 32 deletions(-)
drivers/gpu/drm/i915/intel_guc.c +21 -29
@@ -531,25 +531,33 @@ int intel_guc_auth_huc(struct intel_guc *guc, u32 rsa_offset)return intel_guc_send (guc, action,ARRAY_SIZE (action)); } -/* -* The ENTER/EXIT_S_STATE actions queue the save/restore operation in GuC FW and -* then return, so waiting on the H2G is not enough to guarantee GuC is done. -* When all the processing is done, GuC writes INTEL_GUC_SLEEP_STATE_SUCCESS to -* scratch register 14, so we can poll on that. Note that GuC does not ensure -* that the value in the register is different from -* INTEL_GUC_SLEEP_STATE_SUCCESS while the action is in progress so we need to -* take care of that ourselves as well. +/** +* intel_guc_suspend() - notify GuC entering suspend state +* @guc: the guc */ -static int guc_sleep_state_action (struct intel_guc *guc, -const u32 *action,u32 len) +int intel_guc_suspend (struct intel_guc *guc) {struct drm_i915_private *dev_priv =guc_to_i915 (guc);int ret;u32 status; +u32 action[] = { +INTEL_GUC_ACTION_ENTER_S_STATE , +GUC_POWER_D1 ,/* any value greater than GUC_POWER_D0 */ + }; + +/* +* The ENTER_S_STATE action queues the save/restore operation in GuC FW +* and then returns, so waiting on the H2G is not enough to guarantee +* GuC is done. When all the processing is done, GuC writes +* INTEL_GUC_SLEEP_STATE_SUCCESS to scratch register 14, so we can poll +* on that. Note that GuC does not ensure that the value in the register +* is different from INTEL_GUC_SLEEP_STATE_SUCCESS while the action is +* in progress so we need to take care of that ourselves as well. +*/ I915_WRITE (SOFT_SCRATCH (14 ),INTEL_GUC_SLEEP_STATE_INVALID_MASK ); - ret =intel_guc_send (guc, action, len); + ret =intel_guc_send (guc, action,ARRAY_SIZE (action));if (ret)return ret;
@@ -569,21 +577,6 @@ static int guc_sleep_state_action(struct intel_guc *guc,return 0 ; } -/** -* intel_guc_suspend() - notify GuC entering suspend state -* @guc: the guc -*/ -int intel_guc_suspend (struct intel_guc *guc) -{ -u32 data[] = { -INTEL_GUC_ACTION_ENTER_S_STATE , -GUC_POWER_D1 ,/* any value greater than GUC_POWER_D0 */ -intel_guc_ggtt_offset (guc, guc->shared_data) - }; - -return guc_sleep_state_action (guc, data,ARRAY_SIZE (data)); -} -/** * intel_guc_reset_engine() - ask GuC to reset an engine * @guc: intel_guc structure
@@ -613,13 +606,12 @@ int intel_guc_reset_engine(struct intel_guc *guc,*/ int intel_guc_resume (struct intel_guc *guc) { -u32 data[] = { +u32 action[] = {INTEL_GUC_ACTION_EXIT_S_STATE ,GUC_POWER_D0 , -intel_guc_ggtt_offset (guc, guc->shared_data) }; -return guc_sleep_state_action (guc, data,ARRAY_SIZE (data)); +return intel_guc_send (guc, action,ARRAY_SIZE (action)); }/**
drivers/gpu/drm/i915/intel_guc_fwif.h +3 -3
@@ -637,9 +637,9 @@ enum intel_guc_report_status { };enum intel_guc_sleep_state_status { -INTEL_GUC_SLEEP_STATE_SUCCESS =0x0 , -INTEL_GUC_SLEEP_STATE_PREEMPT_TO_IDLE_FAILED =0x1 , - INTEL_GUC_SLEEP_STATE_ENGINE_RESET_FAILED = 0x2 +INTEL_GUC_SLEEP_STATE_SUCCESS =0x1 , +INTEL_GUC_SLEEP_STATE_PREEMPT_TO_IDLE_FAILED =0x2 , + INTEL_GUC_SLEEP_STATE_ENGINE_RESET_FAILED = 0x3 #define INTEL_GUC_SLEEP_STATE_INVALID_MASK 0x80000000 };
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 7/19 drm/i915/guc: Update GuC sample-forcewake command
In reply to Michal WajdeczkoNew GuC firmwares use different action code value for this command.
--- drivers/gpu/drm/i915/intel_guc_fwif.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_guc_fwif.h +1 -1
@@ -609,7 +609,6 @@ enum intel_guc_action {INTEL_GUC_ACTION_DEFAULT =0x0 ,INTEL_GUC_ACTION_REQUEST_PREEMPTION =0x2 ,INTEL_GUC_ACTION_REQUEST_ENGINE_RESET =0x3 , -INTEL_GUC_ACTION_SAMPLE_FORCEWAKE =0x6 ,INTEL_GUC_ACTION_ALLOCATE_DOORBELL =0x10 ,INTEL_GUC_ACTION_DEALLOCATE_DOORBELL =0x20 , INTEL_GUC_ACTION_LOG_BUFFER_FILE_FLUSH_COMPLETE = 0x30,
@@ -617,6 +616,7 @@ enum intel_guc_action {INTEL_GUC_ACTION_ENTER_S_STATE =0x501 ,INTEL_GUC_ACTION_EXIT_S_STATE =0x502 ,INTEL_GUC_ACTION_SLPC_REQUEST =0x3003 , +INTEL_GUC_ACTION_SAMPLE_FORCEWAKE =0x3005 ,INTEL_GUC_ACTION_AUTHENTICATE_HUC =0x4000 ,INTEL_GUC_ACTION_REGISTER_COMMAND_TRANSPORT_BUFFER =0x4505 , INTEL_GUC_ACTION_DEREGISTER_COMMAND_TRANSPORT_BUFFER = 0x4506,
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 8/19 drm/i915/guc: Update GuC ADS object definition
In reply to Michal WajdeczkoNew GuC firmwares use updated definitions for the Additional Data Structures (ADS).
v2: add note about Gen9 definition mismatch (Daniele)
rename __intel_engine_context_size (Daniele)
--- drivers/gpu/drm/i915/intel_engine_cs.c | 9 ++- drivers/gpu/drm/i915/intel_guc_ads.c | 95 +++++++++++++++---------- drivers/gpu/drm/i915/intel_guc_fwif.h | 94 ++++++++++++++---------- drivers/gpu/drm/i915/intel_ringbuffer.h | 2 + 4 files changed, 122 insertions(+), 78 deletions(-)
drivers/gpu/drm/i915/intel_engine_cs.c +4 -5
@@ -165,7 +165,7 @@ static const struct engine_info intel_engines[] = { };/** -* ___intel_engine_context_size() - return the size of the context for an engine +* intel_engine_context_size() - return the size of the context for an engine * @dev_priv: i915 device private * @class: engine class *
@@ -178,8 +178,7 @@ static const struct engine_info intel_engines[] = {* in LRC mode, but does not include the "shared data page" used with * GuC submission. The caller should account for this if using the GuC. */ -static u32 -__intel_engine_context_size (struct drm_i915_private *dev_priv,u8 class) +u32 intel_engine_context_size (struct drm_i915_private *dev_priv,u8 class) {u32 cxt_size;
@@ -314,8 +313,8 @@ intel_engine_setup(struct drm_i915_private *dev_priv, engine->uabi_class = intel_engine_classes[info->class].uabi_class; - engine->context_size =__intel_engine_context_size (dev_priv, - engine->class); + engine->context_size =intel_engine_context_size (dev_priv, + engine->class);if (WARN_ON (engine->context_size >BIT (20 ))) engine->context_size =0 ;if (engine->context_size)
drivers/gpu/drm/i915/intel_guc_ads.c +59 -36
143 lines not on this page · raw message
drivers/gpu/drm/i915/intel_guc_fwif.h +57 -37
143 lines not on this page · raw message
drivers/gpu/drm/i915/intel_ringbuffer.h +2 -0
@@ -547,6 +547,8 @@ ktime_t intel_engine_get_busy_time(struct intel_engine_cs *engine);struct i915_request *intel_engine_find_active_request (struct intel_engine_cs *engine); +u32 intel_engine_context_size (struct drm_i915_private *i915,u8 class); +#if IS_ENABLED (CONFIG_DRM_I915_SELFTEST )static inline bool inject_preempt_hang (struct intel_engine_execlists *execlists)
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v3 08/19] drm/i915/guc: Update GuC ADS object definition
Quoted 6 lines · Michal Wajdeczko
New GuC firmwares use updated definitions for the Additional Data Structures (ADS).
v2: add note about Gen9 definition mismatch (Daniele)
rename__intel_engine_context_size(Daniele)
Quoted 6 lines
Signed-off-by Michal Wajdeczko <[email protected]>Signed-off-by Daniele Ceraolo Spurio <[email protected]>Signed-off-by Fernando Pacheco <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc John Spotswood <[email protected]>Cc Tomasz Lis <[email protected]>
Quoted 348 lines
--- drivers/gpu/drm/i915/intel_engine_cs.c | 9 ++- drivers/gpu/drm/i915/intel_guc_ads.c | 95 +++++++++++++++---------- drivers/gpu/drm/i915/intel_guc_fwif.h | 94 ++++++++++++++---------- drivers/gpu/drm/i915/intel_ringbuffer.h | 2 + 4 files changed, 122 insertions(+), 78 deletions(-)drivers/gpu/drm/i915/intel_engine_cs.c +4
-5@@ -165,7 +165,7 @@ static const struct engine_info intel_engines[] = { };/** -* ___intel_engine_context_size() - return the size of the context for an engine +* intel_engine_context_size() - return the size of the context for an engine * @dev_priv: i915 device private * @class: engine class * @@ -178,8 +178,7 @@ static const struct engine_info intel_engines[] = {* in LRC mode, but does not include the "shared data page" used with * GuC submission. The caller should account for this if using the GuC. */ -static u32 -__intel_engine_context_size (struct drm_i915_private *dev_priv,u8 class) +u32 intel_engine_context_size (struct drm_i915_private *dev_priv,u8 class) {u32 cxt_size;@@ -314,8 +313,8 @@ intel_engine_setup(struct drm_i915_private *dev_priv, engine->uabi_class = intel_engine_classes[info->class].uabi_class; - engine->context_size =__intel_engine_context_size (dev_priv, - engine->class); + engine->context_size =intel_engine_context_size (dev_priv, + engine->class);if (WARN_ON (engine->context_size >BIT (20 ))) engine->context_size =0 ;if (engine->context_size)drivers/gpu/drm/i915/intel_guc_ads.c +59
-36@@ -51,7 +51,7 @@ static void guc_policies_init(struct guc_policies *policies) policies->max_num_work_items =POLICY_MAX_NUM_WI ;for (p =0 ; p <GUC_CLIENT_PRIORITY_NUM ; p++) { -for (i =GUC_RENDER_ENGINE ; i <GUC_MAX_ENGINES_NUM ; i++) { +for (i =0 ; i <GUC_MAX_ENGINE_CLASSES ; i++) { policy = &policies->policy[p][i];guc_policy_init (policy);@@ -61,6 +61,11 @@ static void guc_policies_init(struct guc_policies *policies) policies->is_valid =1 ; } +static void guc_ct_pool_entries_init (struct guc_ct_pool_entry *pool,u32 num) +{ +memset (pool,0 , num *sizeof (*pool)); +} +/* * The first 80 dwords of the register state context, containing the * execlists and ppgtt registers. @@ -75,20 +80,21 @@ static void guc_policies_init(struct guc_policies *policies)int intel_guc_ads_create (struct intel_guc *guc) {struct drm_i915_private *dev_priv =guc_to_i915 (guc); -struct i915_vma *vma, *kernel_ctx_vma; -struct page *page; +struct i915_vma *vma;/* The ads obj includes the struct itself and buffers passed to GuC */ struct {struct guc_ads ads;struct guc_policies policies;struct guc_mmio_reg_state reg_state; +struct guc_gt_system_info system_info; +struct guc_clients_info clients_info; +struct guc_ct_pool_entry ct_pool[GUC_CT_POOL_SIZE ];u8 reg_state_buffer[GUC_S3_SAVE_SPACE_PAGES *PAGE_SIZE ]; } __packed *blob; -struct intel_engine_cs *engine; -enum intel_engine_id id; -const u32 skipped_offset =LRC_HEADER_PAGES *PAGE_SIZE ;const u32 skipped_size =LRC_PPHWSP_SZ *PAGE_SIZE +LR_HW_CONTEXT_SIZE ;u32 base; +u8 engine_class; +int ret;GEM_BUG_ON (guc->ads_vma);@@ -98,51 +104,68 @@ int intel_guc_ads_create(struct intel_guc *guc) guc->ads_vma = vma; - page =i915_vma_first_page (vma); - blob =kmap (page); + blob =i915_gem_object_pin_map (guc->ads_vma->obj,I915_MAP_WB ); +if (IS_ERR (blob)) { + ret =PTR_ERR (blob); + goto err_vma; + }/* GuC scheduling policies */ guc_policies_init (&blob->policies); -/* MMIO reg state */ -for_each_engine (engine, dev_priv, id) { - blob->reg_state.white_list[engine->guc_id].mmio_start = - engine->mmio_base +GUC_MMIO_WHITE_LIST_START ; - -/* Nothing to be saved or restored for now. */ - blob->reg_state.white_list[engine->guc_id].count =0 ; - } -/* -* The GuC requires a "Golden Context" when it reinitialises -* engines after a reset. Here we use the Render ring default -* context, which must already exist and be pinned in the GGTT, -* so its address won't change after we've told the GuC where -* to find it. Note that we have to skip our header (1 page), -* because our GuC shared data is there. +* GuC expects a per-engine-class context image and size +* (minus hwsp and ring context). The context image will be +* used to reinitialize engines after a reset. It must exist +* and be pinned in the GGTT, so that the address won't change after +* we have told GuC where to find it. The context size will be used +* to validate that the LRC base + size fall within allowed GGTT. */ - kernel_ctx_vma = dev_priv->engine[RCS0 ]->kernel_context->state; - blob->ads.golden_context_lrca = -intel_guc_ggtt_offset (guc, kernel_ctx_vma) + skipped_offset; +for (engine_class =0 ; engine_class <=MAX_ENGINE_CLASS ; ++engine_class) { +if (engine_class ==OTHER_CLASS ) +continue ; +/* +* TODO: Set context pointer to default state to allow +* GuC to re-init guilty contexts after internal reset. +*/ + blob->ads.golden_context_lrca[engine_class] =0 ; + blob->ads.eng_state_size[engine_class] = +intel_engine_context_size (dev_priv, engine_class) - + skipped_size; + } -/* -* The GuC expects us to exclude the portion of the context image that -* it skips from the size it is to read. It starts reading from after -* the execlist context (so skipping the first page [PPHWSP] and 80 -* dwords). Weird guc is weird. -*/ -for_each_engine (engine, dev_priv, id) - blob->ads.eng_state_size[engine->guc_id] = - engine->context_size - skipped_size; +/* System info */ + blob->system_info.slice_enabled =hweight8 (RUNTIME_INFO (dev_priv)->sseu.slice_mask); + blob->system_info.rcs_enabled =1 ; + blob->system_info.bcs_enabled =1 ; + + blob->system_info.vdbox_enable_mask =VDBOX_MASK (dev_priv); + blob->system_info.vebox_enable_mask =VEBOX_MASK (dev_priv); + blob->system_info.vdbox_sfc_support_mask =RUNTIME_INFO (dev_priv)->vdbox_sfc_access; base =intel_guc_ggtt_offset (guc, vma); + +/* Clients info */ +guc_ct_pool_entries_init (blob->ct_pool,ARRAY_SIZE (blob->ct_pool)); + + blob->clients_info.clients_num =1 ; + blob->clients_info.ct_pool_addr = base +ptr_offset (blob, ct_pool); + blob->clients_info.ct_pool_count =ARRAY_SIZE (blob->ct_pool); + +/* ADS */ blob->ads.scheduler_policies = base +ptr_offset (blob, policies); blob->ads.reg_state_buffer = base +ptr_offset (blob, reg_state_buffer); blob->ads.reg_state_addr = base +ptr_offset (blob, reg_state); + blob->ads.gt_system_info = base +ptr_offset (blob, system_info); + blob->ads.clients_info = base +ptr_offset (blob, clients_info); -kunmap (page); +i915_gem_object_unpin_map (guc->ads_vma->obj);return 0 ; + +err_vma: +i915_vma_unpin_and_release (&guc->ads_vma,0 ); +return ret; }void intel_guc_ads_destroy (struct intel_guc *guc)drivers/gpu/drm/i915/intel_guc_fwif.h +57
-37@@ -39,6 +39,14 @@#define GUC_VIDEO_ENGINE2 4#define GUC_MAX_ENGINES_NUM (GUC_VIDEO_ENGINE2 + 1) +/* +* XXX: Beware that Gen9 firmware 32.x uses wrong definition for +* GUC_MAX_INSTANCES_PER_CLASS (1) but this is harmless for us now +* as we are not enabling GuC submission mode where this will be used +*/ +#define GUC_MAX_ENGINE_CLASSES 5 +#define GUC_MAX_INSTANCES_PER_CLASS 4 +#define GUC_DOORBELL_INVALID 256#define GUC_DB_SIZE (PAGE_SIZE)@@ -386,23 +394,19 @@ struct guc_ct_buffer_desc {struct guc_policy {/* Time for one workload to execute. (in micro seconds) */ u32 execution_quantum; -u32 reserved1; -/* Time to wait for a preemption request to completed before issuing a * reset. (in micro seconds). */ u32 preemption_time; -/* How much time to allow to run after the first fault is observed. * Then preempt afterwards. (in micro seconds) */ u32 fault_time; -u32 policy_flags; -u32 reserved[2 ]; +u32 reserved[8 ]; } __packed;struct guc_policies { -struct guc_policy policy[GUC_CLIENT_PRIORITY_NUM ][GUC_MAX_ENGINES_NUM ]; - +struct guc_policy policy[GUC_CLIENT_PRIORITY_NUM ][GUC_MAX_ENGINE_CLASSES ]; +u32 submission_queue_depth[GUC_MAX_ENGINE_CLASSES ];/* In micro seconds. How much time to allow before DPC processing is * called back via interrupt (to prevent DPC queue drain starving). * Typically 1000s of micro seconds (example only, not granularity). */ @@ -415,57 +419,73 @@ struct guc_policies {* idle. */ u32 max_num_work_items; -u32 reserved[19 ]; +u32 reserved[4 ]; } __packed;/* GuC MMIO reg state struct */ -#define GUC_REGSET_FLAGS_NONE 0x0 -#define GUC_REGSET_POWERCYCLE 0x1 -#define GUC_REGSET_MASKED 0x2 -#define GUC_REGSET_ENGINERESET 0x4 -#define GUC_REGSET_SAVE_DEFAULT_VALUE 0x8 -#define GUC_REGSET_SAVE_CURRENT_VALUE 0x10 -#define GUC_REGSET_MAX_REGISTERS 25 -#define GUC_MMIO_WHITE_LIST_START 0x24d0 -#define GUC_MMIO_WHITE_LIST_MAX 12 +#define GUC_REGSET_MAX_REGISTERS 64#define GUC_S3_SAVE_SPACE_PAGES 10 -struct guc_mmio_regset { -struct __packed { -u32 offset; -u32 value; -u32 flags; - } registers[GUC_REGSET_MAX_REGISTERS ]; +struct guc_mmio_reg { +u32 offset; +u32 value; +u32 flags; +#define GUC_REGSET_MASKED (1 << 0) +} __packed; +struct guc_mmio_regset { +struct guc_mmio_reg registers[GUC_REGSET_MAX_REGISTERS ];u32 values_valid;u32 number_of_registers; } __packed; -/* MMIO registers that are set as non privileged */ -struct mmio_white_list { -u32 mmio_start; -u32 offsets[GUC_MMIO_WHITE_LIST_MAX ]; -u32 count; +/* GuC register sets */ +struct guc_mmio_reg_state { +struct guc_mmio_regset engine_reg[GUC_MAX_ENGINE_CLASSES ][GUC_MAX_INSTANCES_PER_CLASS ]; +u32 reserved[98 ]; } __packed; -struct guc_mmio_reg_state { -struct guc_mmio_regset global_reg; -struct guc_mmio_regset engine_reg[GUC_MAX_ENGINES_NUM ]; -struct mmio_white_list white_list[GUC_MAX_ENGINES_NUM ]; +/* HW info */ +struct guc_gt_system_info { +u32 slice_enabled; +u32 rcs_enabled; +u32 reserved0; +u32 bcs_enabled; +u32 vdbox_enable_mask; +u32 vdbox_sfc_support_mask; +u32 vebox_enable_mask; +u32 reserved[9 ]; } __packed; -/* GuC Additional Data Struct */ +/* Clients info */ +struct guc_ct_pool_entry { +struct guc_ct_buffer_desc desc; +u32 reserved[7 ]; +} __packed; +#define GUC_CT_POOL_SIZE 2 + +struct guc_clients_info { +u32 clients_num; +u32 reserved0[13 ]; +u32 ct_pool_addr; +u32 ct_pool_count; +u32 reserved[4 ]; +} __packed; + +/* GuC Additional Data Struct */ struct guc_ads {u32 reg_state_addr;u32 reg_state_buffer; -u32 golden_context_lrca;u32 scheduler_policies; -u32 reserved0[3 ]; -u32 eng_state_size[GUC_MAX_ENGINES_NUM ]; -u32 reserved2[4 ]; +u32 gt_system_info; +u32 clients_info; +u32 control_data; +u32 golden_context_lrca[GUC_MAX_ENGINE_CLASSES ]; +u32 eng_state_size[GUC_MAX_ENGINE_CLASSES ]; +u32 reserved[16 ]; } __packed;/* GuC logging structures */ drivers/gpu/drm/i915/intel_ringbuffer.h +0
-0
drivers/gpu/drm/i915/intel_ringbuffer.h ktime_t intel_engine_get_busy_time(struct intel_engine_cs *engine); · line 554
Quoted 8 lines
drivers/gpu/drm/i915/intel_ringbuffer.h +2
-0@@ -547,6 +547,8 @@ ktime_t intel_engine_get_busy_time(struct intel_engine_cs *engine);struct i915_request *intel_engine_find_active_request (struct intel_engine_cs *engine); +u32 intel_engine_context_size (struct drm_i915_private *i915,u8 class); +#if IS_ENABLED (CONFIG_DRM_I915_SELFTEST )static inline bool inject_preempt_hang (struct intel_engine_execlists *execlists)
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 9/19 drm/i915/guc: Reset GuC ADS during sanitize
In reply to Michal WajdeczkoGuC stores some data in there, which might be stale after a reset. Reinitialize whole ADS in case any part of it was corrupted during previous GuC run.
v2: s/reinit/init, update functions descriptions (Tomek/Michal)
--- drivers/gpu/drm/i915/intel_guc.h | 2 + drivers/gpu/drm/i915/intel_guc_ads.c | 90 ++++++++++++++++++---------- drivers/gpu/drm/i915/intel_guc_ads.h | 1 + 3 files changed, 62 insertions(+), 31 deletions(-)
drivers/gpu/drm/i915/intel_guc.h +2 -0
@@ -26,6 +26,7 @@#define _INTEL_GUC_H_#include "intel_uncore.h" +#include "intel_guc_ads.h" #include "intel_guc_fw.h" #include "intel_guc_fwif.h" #include "intel_guc_ct.h"
@@ -177,6 +178,7 @@ u32 intel_guc_reserved_gtt_size(struct intel_guc *guc);static inline int intel_guc_sanitize (struct intel_guc *guc) {intel_uc_fw_sanitize (&guc->fw); +intel_guc_ads_reset (guc);return 0 ; }
drivers/gpu/drm/i915/intel_guc_ads.c +59 -31
118 lines not on this page · raw message
drivers/gpu/drm/i915/intel_guc_ads.h +1 -0
@@ -29,5 +29,6 @@ struct intel_guc;int intel_guc_ads_create (struct intel_guc *guc);void intel_guc_ads_destroy (struct intel_guc *guc); +void intel_guc_ads_reset (struct intel_guc *guc);#endif
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 10/19 drm/i915/guc: Always ask GuC to update power domain states
In reply to Michal WajdeczkoWith newer GuC firmware it is always ok to ask GuC to update power domain states. Make it an unconditional initialization step.
--- drivers/gpu/drm/i915/intel_guc_submission.c | 4 ---- drivers/gpu/drm/i915/intel_uc.c | 8 ++++---- 2 files changed, 4 insertions(+), 8 deletions(-)
drivers/gpu/drm/i915/intel_guc_submission.c +0 -4
@@ -1421,10 +1421,6 @@ int intel_guc_submission_enable(struct intel_guc *guc)GEM_BUG_ON (!guc->execbuf_client); - err =intel_guc_sample_forcewake (guc); -if (err) -return err; - err =guc_clients_enable (guc);if (err)return err;
drivers/gpu/drm/i915/intel_uc.c +4 -4
@@ -407,14 +407,14 @@ int intel_uc_init_hw(struct drm_i915_private *i915) goto err_communication; } + ret =intel_guc_sample_forcewake (guc); +if (ret) + goto err_communication; +if (USES_GUC_SUBMISSION (i915)) { ret =intel_guc_submission_enable (guc);if (ret) goto err_communication; - }else if (INTEL_GEN (i915) <11 ) { - ret =intel_guc_sample_forcewake (guc); -if (ret) - goto err_communication; } dev_info(i915->drm.dev, "GuC firmware version %u.%u\n",
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 11/19 drm/i915/guc: New GuC interrupt register for Gen11
In reply to Michal WajdeczkoGen11 defines new more flexible Host-to-GuC interrupt register. Now the host can write any 32-bit payload to trigger an interrupt and GuC can additionally read this payload from the register. Current GuC firmware ignores the payload so we just write 0.
Bspec: 21043
--- drivers/gpu/drm/i915/intel_guc.c | 14 +++++++++++++- drivers/gpu/drm/i915/intel_guc_reg.h | 1 + 2 files changed, 14 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_guc.c +13 -1
@@ -34,6 +34,13 @@ static void gen8_guc_raise_irq(struct intel_guc *guc)I915_WRITE (GUC_SEND_INTERRUPT ,GUC_SEND_TRIGGER ); } +static void gen11_guc_raise_irq (struct intel_guc *guc) +{ +struct drm_i915_private *dev_priv =guc_to_i915 (guc); + +I915_WRITE (GEN11_GUC_HOST_INTERRUPT ,0 ); +} +static inline i915_reg_t guc_send_reg (struct intel_guc *guc,u32 i) {GEM_BUG_ON (!guc->send_regs.base);
@@ -63,6 +70,8 @@ void intel_guc_init_send_regs(struct intel_guc *guc)void intel_guc_init_early (struct intel_guc *guc) { +struct drm_i915_private *i915 =guc_to_i915 (guc); +intel_guc_fw_init_early (guc);intel_guc_ct_init_early (&guc->ct);intel_guc_log_init_early (&guc->log);
@@ -71,7 +80,10 @@ void intel_guc_init_early(struct intel_guc *guc)spin_lock_init (&guc->irq_lock); guc->send = intel_guc_send_nop; guc->handler = intel_guc_to_host_event_handler_nop; - guc->notify = gen8_guc_raise_irq; +if (INTEL_GEN (i915) >=11 ) + guc->notify = gen11_guc_raise_irq; +else + guc->notify = gen8_guc_raise_irq; }static int guc_init_wq (struct intel_guc *guc)
drivers/gpu/drm/i915/intel_guc_reg.h +1 -0
@@ -103,6 +103,7 @@#define GUC_SEND_INTERRUPT _MMIO(0xc4c8)#define GUC_SEND_TRIGGER (1<<0) +#define GEN11_GUC_HOST_INTERRUPT _MMIO(0x1901f0)#define GUC_NUM_DOORBELLS 256
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 12/19 drm/i915/guc: New GuC scratch registers for Gen11
In reply to Michal WajdeczkoGen11 adds new set of scratch registers that can be used for MMIO based Host-to-Guc communication. Due to limited number of these registers it is expected that host will use them only for command transport buffers (CTB) communication setup if one is available.
Bspec: 21044
--- drivers/gpu/drm/i915/intel_guc.c | 12 +++++++++--- drivers/gpu/drm/i915/intel_guc_reg.h | 3 +++ 2 files changed, 12 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/intel_guc.c +9 -3
@@ -56,9 +56,15 @@ void intel_guc_init_send_regs(struct intel_guc *guc)enum forcewake_domains fw_domains =0 ;unsigned int i; - guc->send_regs.base =i915_mmio_reg_offset (SOFT_SCRATCH (0 )); - guc->send_regs.count =GUC_MAX_MMIO_MSG_LEN ; -BUILD_BUG_ON (GUC_MAX_MMIO_MSG_LEN >SOFT_SCRATCH_COUNT ); +if (HAS_GUC_CT (dev_priv) &&INTEL_GEN (dev_priv) >=11 ) { + guc->send_regs.base = +i915_mmio_reg_offset (GEN11_SOFT_SCRATCH (0 )); + guc->send_regs.count =GEN11_SOFT_SCRATCH_COUNT ; + }else { + guc->send_regs.base =i915_mmio_reg_offset (SOFT_SCRATCH (0 )); + guc->send_regs.count =GUC_MAX_MMIO_MSG_LEN ; +BUILD_BUG_ON (GUC_MAX_MMIO_MSG_LEN >SOFT_SCRATCH_COUNT ); + }for (i =0 ; i < guc->send_regs.count; i++) { fw_domains |= intel_uncore_forcewake_for_reg(&dev_priv->uncore,
drivers/gpu/drm/i915/intel_guc_reg.h +3 -0
@@ -51,6 +51,9 @@#define SOFT_SCRATCH (n) _MMIO(0xc180 + (n) * 4)#define SOFT_SCRATCH_COUNT 16 +#define GEN11_SOFT_SCRATCH (n) _MMIO(0x190240 + (n) * 4) +#define GEN11_SOFT_SCRATCH_COUNT 4 +#define UOS_RSA_SCRATCH (i) _MMIO(0xc200 + (i) * 4)#define UOS_RSA_SCRATCH_COUNT 64
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 13/19 drm/i915/huc: New HuC status register for Gen11
In reply to Michal WajdeczkoGen11 defines new register for checking HuC authentication status. Look into the right register and bit.
v2: use reg/mask/value instead of dedicated functions (Daniele)
BSpec: 19686
--- drivers/gpu/drm/i915/intel_guc_reg.h | 3 +++ drivers/gpu/drm/i915/intel_huc.c | 26 +++++++++++++++++++------- drivers/gpu/drm/i915/intel_huc.h | 6 ++++++ 3 files changed, 28 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/intel_guc_reg.h +3 -0
@@ -79,6 +79,9 @@#define HUC_STATUS2 _MMIO(0xD3B0)#define HUC_FW_VERIFIED (1<<7) +#define GEN11_HUC_KERNEL_LOAD_INFO _MMIO(0xC1DC) +#define HUC_LOAD_SUCCESSFUL (1 << 0) +#define GUC_WOPCM_SIZE _MMIO(0xc050)#define GUC_WOPCM_SIZE_LOCKED (1<<0)#define GUC_WOPCM_SIZE_SHIFT 12
drivers/gpu/drm/i915/intel_huc.c +19 -7
@@ -29,7 +29,19 @@void intel_huc_init_early (struct intel_huc *huc) { +struct drm_i915_private *i915 =huc_to_i915 (huc); +intel_huc_fw_init_early (huc); + +if (INTEL_GEN (i915) >=11 ) { + huc->status.reg =GEN11_HUC_KERNEL_LOAD_INFO ; + huc->status.mask =HUC_LOAD_SUCCESSFUL ; + huc->status.value =HUC_LOAD_SUCCESSFUL ; + }else { + huc->status.reg =HUC_STATUS2 ; + huc->status.mask =HUC_FW_VERIFIED ; + huc->status.value =HUC_FW_VERIFIED ; + } }int intel_huc_init_misc (struct intel_huc *huc)
@@ -56,7 +68,6 @@ int intel_huc_auth(struct intel_huc *huc)struct drm_i915_private *i915 =huc_to_i915 (huc);struct intel_guc *guc = &i915->guc;struct i915_vma *vma; -u32 status;int ret;if (huc->fw.load_status !=INTEL_UC_FIRMWARE_SUCCESS )
@@ -80,12 +91,12 @@ int intel_huc_auth(struct intel_huc *huc)/* Check authentication status, it should be done by now */ ret =__intel_wait_for_register (&i915->uncore, -HUC_STATUS2 , -HUC_FW_VERIFIED , -HUC_FW_VERIFIED , -2 ,50 , &status); + huc->status.reg, + huc->status.mask, + huc->status.value, +2 ,50 ,NULL );if (ret) { -DRM_ERROR ("HuC: Firmware not verified %#x\n" , status); +DRM_ERROR ("HuC: Firmware not verified %d\n" , ret); goto fail_unpin; }
@@ -122,7 +133,8 @@ int intel_huc_check_status(struct intel_huc *huc)return -ENODEV ;with_intel_runtime_pm (dev_priv, wakeref) - status = I915_READ(HUC_STATUS2) & HUC_FW_VERIFIED; + status = (I915_READ(huc->status.reg) & huc->status.mask) == + huc->status.value;return status; }
drivers/gpu/drm/i915/intel_huc.h +6 -0
@@ -25,6 +25,7 @@#ifndef _INTEL_HUC_H_#define _INTEL_HUC_H_ +#include "i915_reg.h" #include "intel_uc_fw.h" #include "intel_huc_fw.h"
@@ -33,6 +34,11 @@ struct intel_huc {struct intel_uc_fw fw;/* HuC-specific additions */ +struct { +i915_reg_t reg; +u32 mask; +u32 value; + } status; };void intel_huc_init_early (struct intel_huc *huc);
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v3 13/19] drm/i915/huc: New HuC status register for Gen11
Quoted 7 lines · Michal Wajdeczko
Gen11 defines new register for checking HuC authentication status. Look into the right register and bit.
v2: use reg/mask/value instead of dedicated functions (Daniele)
BSpec: 19686
Quoted 7 lines
Signed-off-by Michal Wajdeczko <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Rodrigo Vivi <[email protected]>Cc Tony Ye <[email protected]>Cc Vinay Belgaumkar <[email protected]>Cc John Spotswood <[email protected]>Cc Anusha Srivatsa <[email protected]>
Quoted 95 lines
--- drivers/gpu/drm/i915/intel_guc_reg.h | 3 +++ drivers/gpu/drm/i915/intel_huc.c | 26 +++++++++++++++++++------- drivers/gpu/drm/i915/intel_huc.h | 6 ++++++ 3 files changed, 28 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/intel_guc_reg.h +3
-0@@ -79,6 +79,9 @@#define HUC_STATUS2 _MMIO(0xD3B0)#define HUC_FW_VERIFIED (1<<7) +#define GEN11_HUC_KERNEL_LOAD_INFO _MMIO(0xC1DC) +#define HUC_LOAD_SUCCESSFUL (1 << 0) +#define GUC_WOPCM_SIZE _MMIO(0xc050)#define GUC_WOPCM_SIZE_LOCKED (1<<0)#define GUC_WOPCM_SIZE_SHIFT 12drivers/gpu/drm/i915/intel_huc.c +19
-7@@ -29,7 +29,19 @@void intel_huc_init_early (struct intel_huc *huc) { +struct drm_i915_private *i915 =huc_to_i915 (huc); +intel_huc_fw_init_early (huc); + +if (INTEL_GEN (i915) >=11 ) { + huc->status.reg =GEN11_HUC_KERNEL_LOAD_INFO ; + huc->status.mask =HUC_LOAD_SUCCESSFUL ; + huc->status.value =HUC_LOAD_SUCCESSFUL ; + }else { + huc->status.reg =HUC_STATUS2 ; + huc->status.mask =HUC_FW_VERIFIED ; + huc->status.value =HUC_FW_VERIFIED ; + } }int intel_huc_init_misc (struct intel_huc *huc)@@ -56,7 +68,6 @@ int intel_huc_auth(struct intel_huc *huc)struct drm_i915_private *i915 =huc_to_i915 (huc);struct intel_guc *guc = &i915->guc;struct i915_vma *vma; -u32 status;int ret;if (huc->fw.load_status !=INTEL_UC_FIRMWARE_SUCCESS )@@ -80,12 +91,12 @@ int intel_huc_auth(struct intel_huc *huc)/* Check authentication status, it should be done by now */ ret =__intel_wait_for_register (&i915->uncore, -HUC_STATUS2 , -HUC_FW_VERIFIED , -HUC_FW_VERIFIED , -2 ,50 , &status); + huc->status.reg, + huc->status.mask, + huc->status.value, +2 ,50 ,NULL );if (ret) { -DRM_ERROR ("HuC: Firmware not verified %#x\n" , status); +DRM_ERROR ("HuC: Firmware not verified %d\n" , ret); goto fail_unpin; }@@ -122,7 +133,8 @@ int intel_huc_check_status(struct intel_huc *huc)return -ENODEV ;with_intel_runtime_pm (dev_priv, wakeref) - status = I915_READ(HUC_STATUS2) & HUC_FW_VERIFIED; + status = (I915_READ(huc->status.reg) & huc->status.mask) == + huc->status.value;return status; }drivers/gpu/drm/i915/intel_huc.h +1
-0@@ -25,6 +25,7 @@#ifndef _INTEL_HUC_H_#define _INTEL_HUC_H_ +#include "i915_reg.h" #include "intel_uc_fw.h" #include "intel_huc_fw.h" @@ -33,6 +34,11 @@ struct intel_huc {struct intel_uc_fw fw;
drivers/gpu/drm/i915/intel_huc.h struct intel_huc { · line 44
Quoted 10 lines
drivers/gpu/drm/i915/intel_huc.h +5
-0/* HuC-specific additions */ +struct { +i915_reg_t reg; +u32 mask; +u32 value; + } status; };void intel_huc_init_early (struct intel_huc *huc);
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 14/19 drm/i915/guc: Create vfuncs for the GuC interrupts control functions
In reply to Michal WajdeczkoFrom: Oscar Mateo <[email protected]>
Controlling and handling of the GuC interrupts is Gen specific. Create virtual functions to avoid redundant runtime Gen checks. Gen-specific versions of these functions will follow.
v2: move vfuncs to struct guc (Daniele)
--- drivers/gpu/drm/i915/i915_irq.c | 6 +++--- drivers/gpu/drm/i915/intel_guc.c | 8 ++++++-- drivers/gpu/drm/i915/intel_guc.h | 8 +++++++- drivers/gpu/drm/i915/intel_uc.c | 21 ++++++++++++++++++--- 4 files changed, 34 insertions(+), 9 deletions(-)
drivers/gpu/drm/i915/i915_irq.c +3 -3
@@ -596,10 +596,10 @@ void gen9_enable_guc_interrupts(struct drm_i915_private *dev_priv)assert_rpm_wakelock_held (dev_priv);spin_lock_irq (&dev_priv->irq_lock); -if (!dev_priv->guc.interrupts_enabled) { +if (!dev_priv->guc.interrupts.enabled) {WARN_ON_ONCE (I915_READ (gen6_pm_iir (dev_priv)) & dev_priv->pm_guc_events); - dev_priv->guc.interrupts_enabled = true; + dev_priv->guc.interrupts.enabled = true;gen6_enable_pm_irq (dev_priv, dev_priv->pm_guc_events); }spin_unlock_irq (&dev_priv->irq_lock);
@@ -610,7 +610,7 @@ void gen9_disable_guc_interrupts(struct drm_i915_private *dev_priv)assert_rpm_wakelock_held (dev_priv);spin_lock_irq (&dev_priv->irq_lock); - dev_priv->guc.interrupts_enabled = false; + dev_priv->guc.interrupts.enabled = false;gen6_disable_pm_irq (dev_priv, dev_priv->pm_guc_events);
drivers/gpu/drm/i915/intel_guc.c +6 -2
@@ -86,10 +86,14 @@ void intel_guc_init_early(struct intel_guc *guc)spin_lock_init (&guc->irq_lock); guc->send = intel_guc_send_nop; guc->handler = intel_guc_to_host_event_handler_nop; -if (INTEL_GEN (i915) >=11 ) +if (INTEL_GEN (i915) >=11 ) { guc->notify = gen11_guc_raise_irq; -else + }else { guc->notify = gen8_guc_raise_irq; + guc->interrupts.reset = gen9_reset_guc_interrupts; + guc->interrupts.enable = gen9_enable_guc_interrupts; + guc->interrupts.disable = gen9_disable_guc_interrupts; + } }static int guc_init_wq (struct intel_guc *guc)
drivers/gpu/drm/i915/intel_guc.h +7 -1
@@ -56,9 +56,15 @@ struct intel_guc {/* intel_guc_recv interrupt related state */ spinlock_t irq_lock; -bool interrupts_enabled;unsigned int msg_enabled_mask; +struct { +bool enabled; +void (*reset)(struct drm_i915_private *i915); +void (*enable)(struct drm_i915_private *i915); +void (*disable)(struct drm_i915_private *i915); + } interrupts; +struct i915_vma *ads_vma;struct i915_vma *stage_desc_pool;void *stage_desc_pool_vaddr;
drivers/gpu/drm/i915/intel_uc.c +18 -3
@@ -217,11 +217,26 @@ static void guc_free_load_err_log(struct intel_guc *guc)i915_gem_object_put (guc->load_err_log); } +static void guc_reset_interrupts (struct intel_guc *guc) +{ + guc->interrupts.reset (guc_to_i915 (guc)); +} + +static void guc_enable_interrupts (struct intel_guc *guc) +{ + guc->interrupts.enable (guc_to_i915 (guc)); +} + +static void guc_disable_interrupts (struct intel_guc *guc) +{ + guc->interrupts.disable (guc_to_i915 (guc)); +} +static int guc_enable_communication (struct intel_guc *guc) {struct drm_i915_private *i915 =guc_to_i915 (guc); -gen9_enable_guc_interrupts (i915); +guc_enable_interrupts (guc);if (HAS_GUC_CT (i915))return intel_guc_ct_enable (&guc->ct);
@@ -238,7 +253,7 @@ static void guc_disable_communication(struct intel_guc *guc)if (HAS_GUC_CT (i915))intel_guc_ct_disable (&guc->ct); -gen9_disable_guc_interrupts (i915); +guc_disable_interrupts (guc); guc->send = intel_guc_send_nop; guc->handler = intel_guc_to_host_event_handler_nop;
@@ -360,7 +375,7 @@ int intel_uc_init_hw(struct drm_i915_private *i915)GEM_BUG_ON (!HAS_GUC (i915)); -gen9_reset_guc_interrupts (i915); +guc_reset_interrupts (guc);/* WaEnableuKernelHeaderValidFix:skl */ /* WaEnableGuCBootHashCheckNotSet:skl,bxt,kbl */
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 15/19 drm/i915/guc: Correctly handle GuC interrupts on Gen11
In reply to Michal WajdeczkoFrom: Oscar Mateo <[email protected]>
The GuC interrupts now get their own interrupt vector (instead of sharing a register with the PM interrupts) so handle appropriately.
v2: (Chris)
v3: rebased (Michal)
Bspec: 19820
--- drivers/gpu/drm/i915/i915_drv.h | 6 ++- drivers/gpu/drm/i915/i915_irq.c | 58 +++++++++++++++++++++++++++- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_drv.h | 3 ++ drivers/gpu/drm/i915/intel_guc.c | 3 ++ drivers/gpu/drm/i915/intel_guc_reg.h | 18 +++++++++ 6 files changed, 86 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +5 -1
@@ -1571,7 +1571,11 @@ struct drm_i915_private {u32 pm_imr;u32 pm_ier;u32 pm_rps_events; -u32 pm_guc_events; +union { +/* RPS and GuC share a register pre-Gen11 */ +u32 pm_guc_events; +u32 guc_events; + };u32 pipestat_irq_mask[I915_MAX_PIPES ];struct i915_hotplug hotplug;
drivers/gpu/drm/i915/i915_irq.c +56 -2
94 lines not on this page · raw message
drivers/gpu/drm/i915/i915_reg.h +1 -0
@@ -290,6 +290,7 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)#define OTHER_CLASS 4#define MAX_ENGINE_CLASS 4 +#define OTHER_GUC_INSTANCE 0#define OTHER_GTPM_INSTANCE 1#define MAX_ENGINE_INSTANCE 3
drivers/gpu/drm/i915/intel_drv.h +3 -0
@@ -1630,6 +1630,9 @@ void gen8_irq_power_well_pre_disable(struct drm_i915_private *dev_priv,void gen9_reset_guc_interrupts (struct drm_i915_private *dev_priv);void gen9_enable_guc_interrupts (struct drm_i915_private *dev_priv);void gen9_disable_guc_interrupts (struct drm_i915_private *dev_priv); +void gen11_reset_guc_interrupts (struct drm_i915_private *i915); +void gen11_enable_guc_interrupts (struct drm_i915_private *i915); +void gen11_disable_guc_interrupts (struct drm_i915_private *i915);/* intel_display.c */ void intel_plane_destroy (struct drm_plane *plane);
drivers/gpu/drm/i915/intel_guc.c +3 -0
@@ -88,6 +88,9 @@ void intel_guc_init_early(struct intel_guc *guc) guc->handler = intel_guc_to_host_event_handler_nop;if (INTEL_GEN (i915) >=11 ) { guc->notify = gen11_guc_raise_irq; + guc->interrupts.reset = gen11_reset_guc_interrupts; + guc->interrupts.enable = gen11_enable_guc_interrupts; + guc->interrupts.disable = gen11_disable_guc_interrupts; }else { guc->notify = gen8_guc_raise_irq; guc->interrupts.reset = gen9_reset_guc_interrupts;
drivers/gpu/drm/i915/intel_guc_reg.h +18 -0
@@ -134,4 +134,22 @@ struct guc_doorbell_info {#define GUC_WD_VECS_IER _MMIO(0xC558)#define GUC_PM_P24C_IER _MMIO(0xC55C) +/* GuC Interrupt Vector */ +#define GEN11_GUC_INTR_GUC2HOST (1 << 15) +#define GEN11_GUC_INTR_EXEC_ERROR (1 << 14) +#define GEN11_GUC_INTR_DISPLAY_EVENT (1 << 13) +#define GEN11_GUC_INTR_SEM_SIG (1 << 12) +#define GEN11_GUC_INTR_IOMMU2GUC (1 << 11) +#define GEN11_GUC_INTR_DOORBELL_RANG (1 << 10) +#define GEN11_GUC_INTR_DMA_DONE (1 << 9) +#define GEN11_GUC_INTR_FATAL_ERROR (1 << 8) +#define GEN11_GUC_INTR_NOTIF_ERROR (1 << 7) +#define GEN11_GUC_INTR_SW_INT_6 (1 << 6) +#define GEN11_GUC_INTR_SW_INT_5 (1 << 5) +#define GEN11_GUC_INTR_SW_INT_4 (1 << 4) +#define GEN11_GUC_INTR_SW_INT_3 (1 << 3) +#define GEN11_GUC_INTR_SW_INT_2 (1 << 2) +#define GEN11_GUC_INTR_SW_INT_1 (1 << 1) +#define GEN11_GUC_INTR_SW_INT_0 (1 << 0) +#endif
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 16/19 drm/i915/guc: Update GuC CTB response definition
In reply to Michal WajdeczkoCurrent GuC firmwares identify response message in a different way.
v2: update comments for other H2G bits (Daniele)
--- drivers/gpu/drm/i915/intel_guc_ct.c | 2 +- drivers/gpu/drm/i915/intel_guc_fwif.h | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/intel_guc_ct.c +1 -1
@@ -565,7 +565,7 @@ static inline unsigned int ct_header_get_action(u32 header)static inline bool ct_header_is_response (u32 header) { -return ct_header_get_action (header) ==INTEL_GUC_ACTION_DEFAULT ; +return !!(header &GUC_CT_MSG_IS_RESPONSE ); }static int ctb_read (struct intel_guc_ct_buffer *ctb,u32 *data)
drivers/gpu/drm/i915/intel_guc_fwif.h +5 -3
@@ -355,14 +355,16 @@ struct guc_ct_buffer_desc {* * bit[4..0] message len (in dwords) * bit[7..5] reserved -* bit[8] write fence to desc -* bit[9] write status to H2G buff -* bit[10] send status (via G2H) +* bit[8] response (G2H only) +* bit[8] write fence to desc (H2G only) +* bit[9] write status to H2G buff (H2G only) +* bit[10] send status back via G2H (H2G only) * bit[15..11] reserved * bit[31..16] action code */ #define GUC_CT_MSG_LEN_SHIFT 0#define GUC_CT_MSG_LEN_MASK 0x1F +#define GUC_CT_MSG_IS_RESPONSE (1 << 8)#define GUC_CT_MSG_WRITE_FENCE_TO_DESC (1 << 8)#define GUC_CT_MSG_WRITE_STATUS_TO_BUFF (1 << 9)#define GUC_CT_MSG_SEND_STATUS (1 << 10)
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 17/19 drm/i915/guc: Enable GuC CTB communication on Gen11
In reply to Michal WajdeczkoGen11 GuC firmware expects H2G command messages to be sent over CTB (command transport buffers).
--- drivers/gpu/drm/i915/i915_pci.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/i915/i915_pci.c +1 -0
@@ -743,6 +743,7 @@ static const struct intel_device_info intel_cannonlake_info = { }, \ GEN(11), \ .ddb_size = 2048, \ + .has_guc_ct = 1, \ .has_logical_ring_elsq = 1, \ .color = { .degamma_lut_size = 33, .gamma_lut_size = 1024 }
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 18/19 drm/i915/guc: Define GuC firmware version for Icelake
In reply to Michal WajdeczkoDefine GuC firmware version for Icelake.
--- drivers/gpu/drm/i915/intel_guc_fw.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_guc_fw.c +11 -1
@@ -56,7 +56,13 @@ MODULE_FIRMWARE(BXT_GUC_FIRMWARE_PATH);#define KBL_GUC_FW_MINOR 0#define KBL_GUC_FW_PATCH 3#define KBL_GUC_FIRMWARE_PATH __MAKE_GUC_FW_PATH(KBL) -MODULE_FIRMWARE (KBL_GUC_FIRMWARE_PATH ); + +#define ICL_GUC_FW_PREFIX icl +#define ICL_GUC_FW_MAJOR 32 +#define ICL_GUC_FW_MINOR 0 +#define ICL_GUC_FW_PATCH 3 +#define ICL_GUC_FIRMWARE_PATH __MAKE_GUC_FW_PATH(ICL) +MODULE_FIRMWARE (ICL_GUC_FIRMWARE_PATH );static void guc_fw_select (struct intel_uc_fw *guc_fw) {
@@ -72,6 +78,10 @@ static void guc_fw_select(struct intel_uc_fw *guc_fw) guc_fw->path = i915_modparams.guc_firmware_path; guc_fw->major_ver_wanted =0 ; guc_fw->minor_ver_wanted =0 ; + }else if (IS_ICELAKE (i915)) { + guc_fw->path =ICL_GUC_FIRMWARE_PATH ; + guc_fw->major_ver_wanted =ICL_GUC_FW_MAJOR ; + guc_fw->minor_ver_wanted =ICL_GUC_FW_MINOR ; }else if (IS_KABYLAKE (i915) ||IS_COFFEELAKE (i915)) { guc_fw->path =KBL_GUC_FIRMWARE_PATH ; guc_fw->major_ver_wanted =KBL_GUC_FW_MAJOR ;
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 19/19 drm/i915/huc: Define HuC firmware version for Icelake
In reply to Michal WajdeczkoThis patch adds the support to load HuC on ICL.
--- drivers/gpu/drm/i915/intel_huc_fw.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
drivers/gpu/drm/i915/intel_huc_fw.c +12 -0
@@ -34,6 +34,10 @@#define KBL_HUC_FW_MINOR 00#define KBL_BLD_NUM 1810 +#define ICL_HUC_FW_MAJOR 8 +#define ICL_HUC_FW_MINOR 4 +#define ICL_BLD_NUM 3132 +#define HUC_FW_PATH (platform, major, minor, bld_num) \ "i915/" __stringify(platform) "_huc_ver" __stringify(major) "_" \ __stringify(minor) "_" __stringify(bld_num) ".bin"
@@ -50,6 +54,10 @@ MODULE_FIRMWARE(I915_BXT_HUC_UCODE); KBL_HUC_FW_MINOR, KBL_BLD_NUM)MODULE_FIRMWARE (I915_KBL_HUC_UCODE ); +#define I915_ICL_HUC_UCODE HUC_FW_PATH(icl, ICL_HUC_FW_MAJOR, \ + ICL_HUC_FW_MINOR, ICL_BLD_NUM) +MODULE_FIRMWARE (I915_ICL_HUC_UCODE ); +static void huc_fw_select (struct intel_uc_fw *huc_fw) { struct intel_huc *huc = container_of(huc_fw, struct intel_huc, fw);
@@ -76,6 +84,10 @@ static void huc_fw_select(struct intel_uc_fw *huc_fw) huc_fw->path =I915_KBL_HUC_UCODE ; huc_fw->major_ver_wanted =KBL_HUC_FW_MAJOR ; huc_fw->minor_ver_wanted =KBL_HUC_FW_MINOR ; + }else if (IS_ICELAKE (dev_priv)) { + huc_fw->path =I915_ICL_HUC_UCODE ; + huc_fw->major_ver_wanted =ICL_HUC_FW_MAJOR ; + huc_fw->minor_ver_wanted =ICL_HUC_FW_MINOR ; } }
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.SPARSE: warning for GuC 32.0.3 (rev4)
In reply to Michal Wajdeczko== Series Details ==
== Series Details ==
Series: GuC 32.0.3 (rev4)
URL : https://patchwork.freedesktop.org/series/58760/
State : warning
== Summary ==
$ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm/i915/guc: Change platform default GuC mode Okay!
Commit: drm/i915/guc: Don't allow GuC submission
Okay!
Commit: drm/i915/guc: Update GuC firmware versions and names Okay!
Commit: drm/i915/guc: Update GuC firmware CSS header Okay!
Commit: drm/i915/guc: Update GuC boot parameters
Okay!
Commit: drm/i915/guc: Update suspend/resume protocol Okay!
Commit: drm/i915/guc: Update GuC sample-forcewake command Okay!
Commit: drm/i915/guc: Update GuC ADS object definition Okay!
Commit: drm/i915/guc: Reset GuC ADS during sanitize Okay!
Commit: drm/i915/guc: Always ask GuC to update power domain states Okay!
Commit: drm/i915/guc: New GuC interrupt register for Gen11 Okay!
Commit: drm/i915/guc: New GuC scratch registers for Gen11 Okay!
Commit: drm/i915/huc: New HuC status register for Gen11 Okay!
Commit: drm/i915/guc: Create vfuncs for the GuC interrupts control functions Okay!
Commit: drm/i915/guc: Correctly handle GuC interrupts on Gen11 +drivers/gpu/drm/i915/i915_irq.c:1031:20: warning: expression using sizeof(void) +drivers/gpu/drm/i915/i915_irq.c:1031:20: warning: expression using sizeof(void) -drivers/gpu/drm/i915/i915_irq.c:1031:20: warning: expression using sizeof(void) -drivers/gpu/drm/i915/i915_irq.c:1031:20: warning: expression using sizeof(void) -drivers/gpu/drm/i915/selftests/../i915_drv.h:3616:16: warning: expression using sizeof(void) +drivers/gpu/drm/i915/selftests/../i915_drv.h:3620:16: warning: expression using sizeof(void)
Commit: drm/i915/guc: Update GuC CTB response definition Okay!
Commit: drm/i915/guc: Enable GuC CTB communication on Gen11 Okay!
Commit: drm/i915/guc: Define GuC firmware version for Icelake Okay!
Commit: drm/i915/huc: Define HuC firmware version for Icelake Okay!
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for GuC 32.0.3 (rev4)
In reply to Michal Wajdeczko== Series Details ==
== Series Details ==
Series: GuC 32.0.3 (rev4)
URL : https://patchwork.freedesktop.org/series/58760/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_5942 -> Patchwork_12818
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/58760/revisions/4/mbox/
Known issues
------------
Here are the changes found in Patchwork_12818 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_basic@basic-bsd2:
- fi-icl-guc: NOTRUN -> SKIP [fdo#109276] +7
* igt@gem_exec_parse@basic-rejected:
- fi-icl-guc: NOTRUN -> SKIP [fdo#109289] +1
* igt@gem_exec_store@basic-bsd1:
- fi-kbl-r: NOTRUN -> SKIP [fdo#109271] +41
* igt@gem_exec_suspend@basic-s3:
- fi-icl-guc: NOTRUN -> INCOMPLETE [fdo#107713] / [fdo#108743]
* igt@i915_selftest@live_contexts:
- fi-bdw-gvtdvm: PASS -> DMESG-FAIL [fdo#110235 ]
* igt@kms_frontbuffer_tracking@basic:
- fi-byt-clapper: PASS -> FAIL [fdo#103167]
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#108743]: https://bugs.freedesktop.org/show_bug.cgi?id=108743
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#110235 ]: https://bugs.freedesktop.org/show_bug.cgi?id=110235
Participating hosts (48 -> 43)
------------------------------
Additional (2): fi-icl-guc fi-kbl-r
Missing (7): fi-ilk-m540 fi-hsw-4200u fi-bsw-cyan fi-gdg-551 fi-icl-y fi-bsw-kefka fi-bdw-samus
Build changes
-------------
* Linux: CI_DRM_5942 -> Patchwork_12818
CI_DRM_5942: 1d19629d12fdb73dd65d1df91cf69b89fd76cae6 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4953: e03d0030391689cfd0fbca293d44d83dd7d9e356 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_12818: 44708181445eea08c0878720bf67bcd8d20931a1 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
44708181445e drm/i915/huc: Define HuC firmware version for Icelake 9b6f92782d60 drm/i915/guc: Define GuC firmware version for Icelake ee4642c1725e drm/i915/guc: Enable GuC CTB communication on Gen11 3778c6a46a91 drm/i915/guc: Update GuC CTB response definition f72e7b125a34 drm/i915/guc: Correctly handle GuC interrupts on Gen11 0c9e429f11b0 drm/i915/guc: Create vfuncs for the GuC interrupts control functions 96e7a9b801b2 drm/i915/huc: New HuC status register for Gen11 af2bcd57103d drm/i915/guc: New GuC scratch registers for Gen11 95786a7bc966 drm/i915/guc: New GuC interrupt register for Gen11 8cbf7d327f29 drm/i915/guc: Always ask GuC to update power domain states 29d559c22728 drm/i915/guc: Reset GuC ADS during sanitize aa74aa92a26a drm/i915/guc: Update GuC ADS object definition 1a2dab71ea54 drm/i915/guc: Update GuC sample-forcewake command 557b1aac0cb2 drm/i915/guc: Update suspend/resume protocol 85279ca1d42b drm/i915/guc: Update GuC boot parameters78809b11d59c drm/i915/guc: Update GuC firmware CSS header 7beba1dc2b09 drm/i915/guc: Update GuC firmware versions and names 653ab76474d5 drm/i915/guc: Don't allow GuC submissione07e33b06fd6 drm/i915/guc: Change platform default GuC mode
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_12818/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for GuC 32.0.3 (rev4)
In reply to Michal Wajdeczko== Series Details ==
== Series Details ==
Series: GuC 32.0.3 (rev4)
URL : https://patchwork.freedesktop.org/series/58760/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_5942_full -> Patchwork_12818_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_12818_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_parallel@bsd1-fds:
- shard-iclb: NOTRUN -> SKIP [fdo#109276] +9
* igt@gem_exec_schedule@preempt-queue-contexts-bsd1:
- shard-skl: NOTRUN -> ( 2 SKIP ) [fdo#109271] +26
* igt@gem_exec_store@cachelines-bsd2:
- shard-glk: NOTRUN -> SKIP [fdo#109271] +17
* igt@gem_mocs_settings@mocs-rc6-ctx-dirty-render:
- shard-iclb: NOTRUN -> SKIP [fdo#110206]
* igt@gem_tiled_swapping@non-threaded:
- shard-iclb: PASS -> FAIL [fdo#108686]
* igt@gen3_render_tiledx_blits:
- shard-iclb: NOTRUN -> SKIP [fdo#109289]
* igt@i915_pm_rpm@cursor:
- shard-skl: PASS -> INCOMPLETE [fdo#107807] +1
* igt@i915_pm_sseu@full-enable:
- shard-apl: PASS -> INCOMPLETE [fdo#103927]
* igt@i915_suspend@debugfs-reader:
- shard-apl: PASS -> DMESG-WARN [fdo#108566] +3
* igt@kms_atomic_transition@4x-modeset-transitions-nonblocking:
- shard-iclb: NOTRUN -> SKIP [fdo#109278] +3
* igt@kms_busy@extended-modeset-hang-oldfb-with-reset-render-f:
- shard-glk: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +1
* igt@kms_chamelium@hdmi-crc-fast:
- shard-iclb: NOTRUN -> SKIP [fdo#109284] +1
* igt@kms_cursor_crc@cursor-512x512-offscreen:
- shard-iclb: NOTRUN -> SKIP [fdo#109279]
* igt@kms_cursor_crc@cursor-64x21-sliding:
- shard-glk: NOTRUN -> FAIL [fdo#103232]
* igt@kms_flip@2x-flip-vs-expired-vblank:
- shard-iclb: NOTRUN -> SKIP [fdo#109274] +1
* igt@kms_force_connector_basic@force-edid:
- shard-iclb: NOTRUN -> SKIP [fdo#109285]
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-move:
- shard-iclb: NOTRUN -> SKIP [fdo#109280] +11
* igt@kms_frontbuffer_tracking@fbc-rgb565-draw-pwrite:
- shard-iclb: PASS -> FAIL [fdo#103167] +4
* igt@kms_invalid_dotclock:
- shard-iclb: NOTRUN -> SKIP [fdo#109310]
* igt@kms_lease@atomic_implicit_crtc:
- shard-skl: NOTRUN -> FAIL [fdo#110279]
- shard-iclb: NOTRUN -> FAIL [fdo#110279]
* igt@kms_pipe_crc_basic@nonblocking-crc-pipe-e:
- shard-skl: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +11
* igt@kms_plane@pixel-format-pipe-c-planes-source-clamping:
- shard-glk: PASS -> SKIP [fdo#109271] +1
* igt@kms_plane_alpha_blend@pipe-a-alpha-basic:
- shard-skl: NOTRUN -> FAIL [fdo#108145] +2
* igt@kms_plane_alpha_blend@pipe-b-alpha-7efc:
- shard-skl: NOTRUN -> ( 2 FAIL ) [fdo#108145]
* igt@kms_plane_alpha_blend@pipe-c-alpha-opaque-fb:
- shard-glk: NOTRUN -> FAIL [fdo#108145]
* igt@kms_plane_lowres@pipe-a-tiling-x:
- shard-iclb: PASS -> FAIL [fdo#103166]
* igt@kms_plane_scaling@pipe-a-scaler-with-rotation:
- shard-glk: PASS -> SKIP [fdo#109271] / [fdo#109278] +1
* igt@kms_rotation_crc@multiplane-rotation:
- shard-kbl: PASS -> INCOMPLETE [fdo#103665]
* igt@kms_universal_plane@disable-primary-vs-flip-pipe-f:
- shard-skl: NOTRUN -> ( 2 SKIP ) [fdo#109271] / [fdo#109278] +1
* igt@kms_vrr@flip-suspend:
- shard-skl: NOTRUN -> SKIP [fdo#109271] +89
* igt@v3d_get_bo_offset@get-bad-handle:
- shard-iclb: NOTRUN -> SKIP [fdo#109315] +1
#### Possible fixes ####
* igt@i915_pm_rc6_residency@rc6-accuracy:
- shard-snb: SKIP [fdo#109271] -> PASS
* igt@i915_pm_rpm@drm-resources-equal:
- shard-skl: INCOMPLETE [fdo#107807] -> PASS
* igt@i915_pm_rpm@i2c:
- shard-iclb: DMESG-WARN [fdo#109982] -> PASS
* igt@i915_selftest@live_workarounds:
- shard-iclb: DMESG-FAIL [fdo#108954] -> PASS
* igt@kms_flip@flip-vs-suspend-interruptible:
- shard-apl: DMESG-WARN [fdo#108566] -> PASS +1
* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-pwrite:
- shard-iclb: FAIL [fdo#103167] -> PASS +5
* igt@kms_plane@plane-position-covered-pipe-c-planes:
- shard-skl: FAIL [fdo#110038] -> PASS
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: FAIL [fdo#108145] / [fdo#110403] -> PASS +1
* igt@kms_plane_scaling@pipe-a-scaler-with-clipping-clamping:
- shard-glk: SKIP [fdo#109271] / [fdo#109278] -> PASS +2
* igt@kms_psr2_su@page_flip:
- shard-iclb: SKIP [fdo#109642] -> PASS
* igt@kms_psr@no_drrs:
- shard-iclb: FAIL [fdo#108341] -> PASS
* igt@kms_psr@psr2_cursor_mmap_cpu:
- shard-iclb: SKIP [fdo#109441] -> PASS
#### Warnings ####
* igt@kms_frontbuffer_tracking@psr-1p-primscrn-spr-indfb-fullscreen:
- shard-apl: SKIP [fdo#109271] -> INCOMPLETE [fdo#103927]
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103232]: https://bugs.freedesktop.org/show_bug.cgi?id=103232
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#107807]: https://bugs.freedesktop.org/show_bug.cgi?id=107807
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108341]: https://bugs.freedesktop.org/show_bug.cgi?id=108341
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#108686]: https://bugs.freedesktop.org/show_bug.cgi?id=108686
[fdo#108954]: https://bugs.freedesktop.org/show_bug.cgi?id=108954
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109279]: https://bugs.freedesktop.org/show_bug.cgi?id=109279
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109284]: https://bugs.freedesktop.org/show_bug.cgi?id=109284
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109310]: https://bugs.freedesktop.org/show_bug.cgi?id=109310
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#109982]: https://bugs.freedesktop.org/show_bug.cgi?id=109982
[fdo#110038]: https://bugs.freedesktop.org/show_bug.cgi?id=110038
[fdo#110206]: https://bugs.freedesktop.org/show_bug.cgi?id=110206
[fdo#110279]: https://bugs.freedesktop.org/show_bug.cgi?id=110279
[fdo#110403]: https://bugs.freedesktop.org/show_bug.cgi?id=110403
Participating hosts (10 -> 9)
------------------------------
Missing (1): shard-hsw
Build changes
-------------
* Linux: CI_DRM_5942 -> Patchwork_12818
CI_DRM_5942: 1d19629d12fdb73dd65d1df91cf69b89fd76cae6 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4953: e03d0030391689cfd0fbca293d44d83dd7d9e356 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_12818: 44708181445eea08c0878720bf67bcd8d20931a1 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_12818/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Michal Wajdeczko (2019-04-17 06:39:45)
Quoted 7 lines
New GuC firmwares (for SKL, BXT, KBL, ICL) with updated ABI interface.
Note: For correct bisecting, patches 3-8 can be squashed, as Gen9 GuC support will be broken during update of GuC firmware definitions.
v2: only HuC authentication is supported
v3: never allow to turn on GuC submission mode
So one thing that Joonas said was imperative was that HuC authentication is not broken at any point along the series. What igt do we have to verify userspace can talk to the HuC, or whatever is required? -Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx