firmware/guc: Remove USES_GUC_SUBMISSION for suspend/resume
Subsystems (2)
PATCH 1/1 firmware/guc: Remove USES_GUC_SUBMISSION for suspend/resume
In the guc_ctl_debug_flags, the ads struct is programmed only when USES_GUC_SUBMISSION is satisfied. But, this has to be programmed for all suspend/resume cases.
Remove the condition and program the ads struct for both huc loading and guc submission.
This issue was noticed when CI threw errors for enable_guc=2 (load huc; disable submission)
Credits to: Daniele Ceraolo Spurio <[email protected]>
--- drivers/gpu/drm/i915/intel_guc.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/intel_guc.c +4 -5
@@ -207,6 +207,7 @@ static u32 guc_ctl_debug_flags(struct intel_guc *guc) {u32 level =intel_guc_log_get_level (&guc->log);u32 flags =0 ; +u32 ads =0 ;if (!GUC_LOG_LEVEL_IS_ENABLED (level)) flags |=GUC_LOG_DEFAULT_DISABLED ;
@@ -217,12 +218,10 @@ static u32 guc_ctl_debug_flags(struct intel_guc *guc) flags |=GUC_LOG_LEVEL_TO_VERBOSITY (level) <<GUC_LOG_VERBOSITY_SHIFT ; -if (USES_GUC_SUBMISSION (guc_to_i915 (guc))) { -u32 ads =intel_guc_ggtt_offset (guc, guc->ads_vma) - >>PAGE_SHIFT ; + ads =intel_guc_ggtt_offset (guc, guc->ads_vma) << +PAGE_SHIFT ; - flags |= ads <<GUC_ADS_ADDR_SHIFT |GUC_ADS_ENABLED ; - } + flags |= ads <<GUC_ADS_ADDR_SHIFT |GUC_ADS_ENABLED ;return flags; }
Signature · 6 lines
2.7.4 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Commit title is slightly misleading, as the USES_GUC_SUBMISSION is not removed from a suspend/resume path. the firmware tag is also confusing since this fixes an i915 bug. Maybe something like "drm/i915/guc: Remove USES_GUC_SUBMISSION for ads programming" would be clearer
Quoted 9 lines · Anusha Srivatsa
In the
guc_ctl_debug_flags, the ads struct is programmed only whenUSES_GUC_SUBMISSIONis satisfied. But, this has to be programmed for all suspend/resume cases.
Remove the condition and program the ads struct for both huc loading and guc submission.This issue was noticed when CI threw errors for enable_guc=2 (load huc; disable submission)
Do we need a fixes: tag? Not sure we want this backported since GuC is off by default.
Quoted 22 lines
Credits to: Daniele Ceraolo Spurio <[email protected]>
Cc John Spotswood <[email protected]>Cc Oscar Mateo <[email protected]>Cc Daniele Ceraolo Spurio <[email protected]>Signed-off-by Anusha Srivatsa <[email protected]>--- drivers/gpu/drm/i915/intel_guc.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)drivers/gpu/drm/i915/intel_guc.c +1
-0@@ -207,6 +207,7 @@ static u32 guc_ctl_debug_flags(struct intel_guc *guc) {u32 level =intel_guc_log_get_level (&guc->log);u32 flags =0 ; +u32 ads =0 ;if (!GUC_LOG_LEVEL_IS_ENABLED (level)) flags |=GUC_LOG_DEFAULT_DISABLED ;
drivers/gpu/drm/i915/intel_guc.c static u32 guc_ctl_debug_flags(struct intel_guc *guc) · line 221
Quoted 7 lines
drivers/gpu/drm/i915/intel_guc.c +1
-3@@ -217,12 +218,10 @@ static u32 guc_ctl_debug_flags(struct intel_guc *guc) flags |=GUC_LOG_LEVEL_TO_VERBOSITY (level) <<GUC_LOG_VERBOSITY_SHIFT ; -if (USES_GUC_SUBMISSION (guc_to_i915 (guc))) { -u32 ads =intel_guc_ggtt_offset (guc, guc->ads_vma) - >>PAGE_SHIFT ; + ads = intel_guc_ggtt_offset(guc, guc->ads_vma) <<
You've flipped the shift here. With that fixed:
drivers/gpu/drm/i915/intel_guc.c static u32 guc_ctl_debug_flags(struct intel_guc *guc) · line 227
Quoted 9 lines
drivers/gpu/drm/i915/intel_guc.c +2
-2+PAGE_SHIFT ; - flags |= ads <<GUC_ADS_ADDR_SHIFT |GUC_ADS_ENABLED ; - } + flags |= ads <<GUC_ADS_ADDR_SHIFT |GUC_ADS_ENABLED ;return flags; }
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
John Spotswood
Reviewed-byQuoted 59 lines · Daniele Ceraolo Spurio
Commit title is slightly misleading, as the
USES_GUC_SUBMISSIONis not
removed from a suspend/resume path. the firmware tag is also confusing
since this fixes an i915 bug. Maybe something like "drm/i915/guc:
RemoveUSES_GUC_SUBMISSIONfor ads programming" would be clearerQuoted 10 lines · Anusha Srivatsa
In the
guc_ctl_debug_flags, the ads struct is programmed only whenUSES_GUC_SUBMISSIONis satisfied. But, this has to be programmed for all suspend/resume cases.
Remove the condition and program the ads struct for both huc loading and guc submission.This issue was noticed when CI threw errors for enable_guc=2 (load huc; disable submission)
Do we need a fixes: tag? Not sure we want this backported since GuC is
off by default.Quoted 30 lines
Credits to: Daniele Ceraolo Spurio <[email protected]
Quoted 1 line
Cc John Spotswood <[email protected]>Cc Oscar Mateo <[email protected]>Cc Daniele Ceraolo Spurio <[email protected]>Signed-off-by Anusha Srivatsa <[email protected]>---
drivers/gpu/drm/i915/intel_guc.c| 9 ++++-----1 file changed, 4 insertions(+), 5 deletions(-)drivers/gpu/drm/i915/intel_guc.c +1
-0@@ -207,6 +207,7 @@ static u32 guc_ctl_debug_flags(struct intel_guc *guc) { u32 level = intel_guc_log_get_level(&guc->log); u32 flags = 0; +u32 ads =0 ;
if (!GUC_LOG_LEVEL_IS_ENABLED(level)) flags |=GUC_LOG_DEFAULT_DISABLED;drivers/gpu/drm/i915/intel_guc.c +0
-0@@ -217,12 +218,10 @@ static u32 guc_ctl_debug_flags(struct intel_guc *guc)flags |=
GUC_LOG_LEVEL_TO_VERBOSITY(level)<<GUC_LOG_VERBOSITY_SHIFT;drivers/gpu/drm/i915/intel_guc.c static u32 guc_ctl_debug_flags(struct intel_guc *guc) · line 221
Quoted 4 lines
drivers/gpu/drm/i915/intel_guc.c +1
-3-if (USES_GUC_SUBMISSION (guc_to_i915 (guc))) { -u32 ads =intel_guc_ggtt_offset (guc, guc->ads_vma) - >>PAGE_SHIFT ; + ads = intel_guc_ggtt_offset(guc, guc->ads_vma) <<You've flipped the shift here. With that fixed:
Quoted 2 lines
Reviewed-by Daniele Ceraolo Spurio <[email protected]>
With Daniele's recommended changes:
Quoted 11 lines
Quoted 11 lines
drivers/gpu/drm/i915/intel_guc.c +1
-0+PAGE_SHIFT ;drivers/gpu/drm/i915/intel_guc.c +0
-1- flags |= ads << GUC_ADS_ADDR_SHIFT |
GUC_ADS_ENABLED;drivers/gpu/drm/i915/intel_guc.c +1
-1- } + flags |= ads <<GUC_ADS_ADDR_SHIFT |GUC_ADS_ENABLED ;
return flags;
}
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 12 lines
-----Original Message-----
From: Ceraolo Spurio, Daniele
Sent: Friday, June 22, 2018 10:26 AM
To: Srivatsa, Anusha <[email protected]>; intel- [email protected]
Cc: Spotswood, John A <[email protected]>; Mateo Lozano, Oscar <[email protected]>
Subject: Re: [PATCH]firmware/guc: RemoveUSES_GUC_SUBMISSIONfor suspend/resume
Quoted 4 lines
Commit title is slightly misleading, as the
USES_GUC_SUBMISSIONis not removed from a suspend/resume path. the firmware tag is also confusing since this fixes an i915 bug. Maybe something like "drm/i915/guc: RemoveUSES_GUC_SUBMISSIONfor ads programming" would be clearer
Sure.
Makes sense.
Quoted 7 lines · Anusha Srivatsa
Quoted 6 lines
In the
guc_ctl_debug_flags, the ads struct is programmed only whenUSES_GUC_SUBMISSIONis satisfied. But, this has to be programmed for all suspend/resume cases.
Remove the condition and program the ads struct for both huc loading and guc submission.
Quoted 6 lines
Quoted 3 lines
This issue was noticed when CI threw errors for enable_guc=2 (load huc; disable submission)
Do we need a fixes: tag? Not sure we want this backported since GuC is off by default.
Hmm...so the patch - Load Guc,HuC on GLK is still not merged. Maybe skip the fixes tag?
Quoted 27 lines
Quoted 15 lines
Credits to: Daniele Ceraolo Spurio <[email protected]>
Cc John Spotswood <[email protected]>Cc Oscar Mateo <[email protected]>Cc Daniele Ceraolo Spurio <[email protected]>Signed-off-by Anusha Srivatsa <[email protected]>--- drivers/gpu/drm/i915/intel_guc.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)drivers/gpu/drm/i915/intel_guc.c +0
-0drivers/gpu/drm/i915/intel_guc.c static u32 guc_ctl_debug_flags(struct intel_guc *guc) · line 213
Quoted 7 lines
drivers/gpu/drm/i915/intel_guc.c +1
-0@@ -207,6 +207,7 @@ static u32 guc_ctl_debug_flags(struct intel_guc *guc) {u32 level =intel_guc_log_get_level (&guc->log);u32 flags =0 ; +u32 ads =0 ;if (!GUC_LOG_LEVEL_IS_ENABLED (level)) flags |= GUC_LOG_DEFAULT_DISABLED; @@ -217,12 +218,10@@ static
Quoted 4 lines
u32
guc_ctl_debug_flags(struct intel_guc *guc)
flags |=GUC_LOG_LEVEL_TO_VERBOSITY(level)<<
GUC_LOG_VERBOSITY_SHIFT;
Quoted 6 lines
drivers/gpu/drm/i915/intel_guc.c static u32 guc_ctl_debug_flags(struct intel_guc *guc) · line 221
Quoted 4 lines
drivers/gpu/drm/i915/intel_guc.c +1
-3-if (USES_GUC_SUBMISSION (guc_to_i915 (guc))) { -u32 ads =intel_guc_ggtt_offset (guc, guc->ads_vma) - >>PAGE_SHIFT ; + ads = intel_guc_ggtt_offset(guc, guc->ads_vma) <<You've flipped the shift here. With that fixed:
Oops...thanks for pointing it out.
Quoted 1 line
Reviewed-by Daniele Ceraolo Spurio <[email protected]>
And thanks for the review. Will re-spin the patch asap.
Anusha
Quoted 9 lines
drivers/gpu/drm/i915/intel_guc.c static u32 guc_ctl_debug_flags(struct intel_guc *guc) · line 227
Quoted 9 lines
drivers/gpu/drm/i915/intel_guc.c +2
-2+PAGE_SHIFT ; - flags |= ads <<GUC_ADS_ADDR_SHIFT |GUC_ADS_ENABLED ; - } + flags |= ads <<GUC_ADS_ADDR_SHIFT |GUC_ADS_ENABLED ;return flags; }
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 30 lines · Anusha
Quoted 12 lines
-----Original Message-----
From: Ceraolo Spurio, Daniele
Sent: Friday, June 22, 2018 10:26 AM
To: Srivatsa, Anusha <[email protected]>; intel- [email protected]
Cc: Spotswood, John A <[email protected]>; Mateo Lozano, Oscar <[email protected]>
Subject: Re: [PATCH]firmware/guc: RemoveUSES_GUC_SUBMISSIONfor suspend/resumeQuoted 4 lines
Commit title is slightly misleading, as the
USES_GUC_SUBMISSIONis not removed from a suspend/resume path. the firmware tag is also confusing since this fixes an i915 bug. Maybe something like "drm/i915/guc: RemoveUSES_GUC_SUBMISSIONfor ads programming" would be clearerSure.
Makes sense.Quoted 11 lines · Anusha Srivatsa
Quoted 9 lines
In the
guc_ctl_debug_flags, the ads struct is programmed only whenUSES_GUC_SUBMISSIONis satisfied. But, this has to be programmed for all suspend/resume cases.
Remove the condition and program the ads struct for both huc loading and guc submission.This issue was noticed when CI threw errors for enable_guc=2 (load huc; disable submission)
Quoted 6 lines
Quoted 2 lines
Do we need a fixes: tag? Not sure we want this backported since GuC is off by default.
Hmm...so the patch - Load Guc,HuC on GLK is still not merged. Maybe skip the fixes tag?
This fails on SKL as well and we had FW there for a while. I still think we can skip the tag because guc is off by default, but don't take my word as assurance :)
Daniele
Quoted 43 lines
Quoted 28 lines
Quoted 16 lines
Credits to: Daniele Ceraolo Spurio <[email protected]>
Cc John Spotswood <[email protected]>Cc Oscar Mateo <[email protected]>Cc Daniele Ceraolo Spurio <[email protected]>Signed-off-by Anusha Srivatsa <[email protected]>--- drivers/gpu/drm/i915/intel_guc.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)drivers/gpu/drm/i915/intel_guc.c +0
-0drivers/gpu/drm/i915/intel_guc.c static u32 guc_ctl_debug_flags(struct intel_guc *guc) · line 213
Quoted 7 lines
drivers/gpu/drm/i915/intel_guc.c +1
-0@@ -207,6 +207,7 @@ static u32 guc_ctl_debug_flags(struct intel_guc *guc) {u32 level =intel_guc_log_get_level (&guc->log);u32 flags =0 ; +u32 ads =0 ;if (!GUC_LOG_LEVEL_IS_ENABLED (level)) flags |= GUC_LOG_DEFAULT_DISABLED; @@ -217,12 +218,10@@ static
Quoted 4 lines
u32
guc_ctl_debug_flags(struct intel_guc *guc)
flags |=GUC_LOG_LEVEL_TO_VERBOSITY(level)<<
GUC_LOG_VERBOSITY_SHIFT;Quoted 6 lines
drivers/gpu/drm/i915/intel_guc.c static u32 guc_ctl_debug_flags(struct intel_guc *guc) · line 221
Quoted 4 lines
drivers/gpu/drm/i915/intel_guc.c +1
-3-if (USES_GUC_SUBMISSION (guc_to_i915 (guc))) { -u32 ads =intel_guc_ggtt_offset (guc, guc->ads_vma) - >>PAGE_SHIFT ; + ads = intel_guc_ggtt_offset(guc, guc->ads_vma) <<You've flipped the shift here. With that fixed:
Oops...thanks for pointing it out.
Quoted 1 line
Reviewed-by Daniele Ceraolo Spurio <[email protected]>And thanks for the review. Will re-spin the patch asap.
Anusha
Quoted 2 lines
Quoted 2 lines
drivers/gpu/drm/i915/intel_guc.c +1
-0+PAGE_SHIFT ;
Quoted 7 lines
Quoted 7 lines
drivers/gpu/drm/i915/intel_guc.c static u32 guc_ctl_debug_flags(struct intel_guc *guc) · line 227
Quoted 7 lines
drivers/gpu/drm/i915/intel_guc.c +1
-2- flags |= ads <<GUC_ADS_ADDR_SHIFT |GUC_ADS_ENABLED ; - } + flags |= ads <<GUC_ADS_ADDR_SHIFT |GUC_ADS_ENABLED ;return flags; }
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for firmware/guc: Remove USES_GUC_SUBMISSION for suspend/resume
In reply to Anusha Srivatsa== Series Details ==
== Series Details ==
Series: firmware/guc: Remove USES_GUC_SUBMISSION for suspend/resume
URL : https://patchwork.freedesktop.org/series/45270/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4369 -> Patchwork_9403 =
== Summary - WARNING ==
Minor unknown changes coming with Patchwork_9403 need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_9403, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://patchwork.freedesktop.org/api/1.0/series/45270/revisions/1/mbox/
== Possible new issues ==
Here are the unknown changes that may have been introduced in Patchwork_9403:
=== IGT changes ===
==== Warnings ====
igt@kms_addfb_basic@addfb25-modifier-no-flag:
fi-cfl-guc: PASS -> SKIP +243
igt@prime_self_import@basic-llseek-bad:
fi-skl-guc: PASS -> SKIP +243
igt@prime_vgem@basic-read:
fi-kbl-guc: PASS -> SKIP +206== Known issues ==
Here are the changes found in Patchwork_9403 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@drv_module_reload@basic-reload:
fi-skl-guc: PASS -> DMESG-FAIL (fdo#106685) +2
fi-kbl-guc: PASS -> DMESG-FAIL (fdo#106685) +2
fi-cfl-guc: PASS -> DMESG-FAIL (fdo#106685) +2fdo#106685 https://bugs.freedesktop.org/show_bug.cgi?id=106685
== Participating hosts (41 -> 34) ==
Missing (7): fi-ilk-m540 fi-hsw-4200u fi-glk-dsi fi-bsw-cyan fi-ctg-p8600 fi-kbl-x1275 fi-kbl-7560u
== Build changes ==
* Linux: CI_DRM_4369 -> Patchwork_9403
CI_DRM_4369: cf1a331121ec497115239b06a60385c9db797892 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4528: 6be300d405de5974b262e8b93a445be4ac618e6a @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_9403: b981adfcb28890d299d03e504bc63f1f1215159b @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
b981adfcb288 firmware/guc: Remove USES_GUC_SUBMISSION for suspend/resume
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_9403/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for firmware/guc: Remove USES_GUC_SUBMISSION for suspend/resume
In reply to Anusha Srivatsa== Series Details ==
== Series Details ==
Series: firmware/guc: Remove USES_GUC_SUBMISSION for suspend/resume
URL : https://patchwork.freedesktop.org/series/45270/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4369_full -> Patchwork_9403_full =
== Summary - WARNING ==
Minor unknown changes coming with Patchwork_9403_full need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_9403_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
== Possible new issues ==
Here are the unknown changes that may have been introduced in Patchwork_9403_full:
=== IGT changes ===
==== Warnings ====
igt@gem_mocs_settings@mocs-rc6-blt:
shard-kbl: SKIP -> PASS +1
igt@kms_cursor_legacy@cursorb-vs-flipb-legacy:
shard-hsw: SKIP -> PASS
igt@perf_pmu@rc6:
shard-kbl: PASS -> SKIP== Known issues ==
Here are the changes found in Patchwork_9403_full that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@gem_workarounds@suspend-resume-context:
shard-apl: PASS -> FAIL (fdo#103375) +1
igt@kms_rotation_crc@primary-rotation-270:
shard-apl: PASS -> FAIL (fdo#103925, fdo#104724)
igt@kms_setmode@basic:
shard-hsw: PASS -> FAIL (fdo#99912)
==== Possible fixes ====
igt@gem_exec_await@wide-contexts:
shard-kbl: FAIL (fdo#105900) -> PASS
igt@kms_cursor_legacy@2x-nonblocking-modeset-vs-cursor-atomic:
shard-glk: FAIL (fdo#106509, fdo#105454) -> PASS
igt@kms_flip@plain-flip-fb-recreate-interruptible:
shard-glk: FAIL (fdo#100368) -> PASS +1
igt@perf@blocking:
shard-hsw: FAIL (fdo#102252) -> PASS fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#102252 https://bugs.freedesktop.org/show_bug.cgi?id=102252
fdo#103375 https://bugs.freedesktop.org/show_bug.cgi?id=103375
fdo#103925 https://bugs.freedesktop.org/show_bug.cgi?id=103925
fdo#104724 https://bugs.freedesktop.org/show_bug.cgi?id=104724
fdo#105454 https://bugs.freedesktop.org/show_bug.cgi?id=105454
fdo#105900 https://bugs.freedesktop.org/show_bug.cgi?id=105900
fdo#106509 https://bugs.freedesktop.org/show_bug.cgi?id=106509
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
== Participating hosts (5 -> 5) ==
No changes in participating hosts
== Build changes ==
* Linux: CI_DRM_4369 -> Patchwork_9403
CI_DRM_4369: cf1a331121ec497115239b06a60385c9db797892 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4528: 6be300d405de5974b262e8b93a445be4ac618e6a @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_9403: b981adfcb28890d299d03e504bc63f1f1215159b @ 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_9403/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx