From: John Spotswood <john.a.spotswood@intel.com>
To: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>,
Anusha Srivatsa <anusha.srivatsa@intel.com>,
intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] firmware/guc: Remove USES_GUC_SUBMISSION for suspend/resume
Date: Fri, 22 Jun 2018 10:34:49 -0700 [thread overview]
Message-ID: <1529688889.3618.25.camel@intel.com> (raw)
In-Reply-To: <02dc32a5-881d-0117-351c-3b9b27a16685@intel.com>
On Fri, 2018-06-22 at 10:25 -0700, Daniele Ceraolo Spurio wrote:
> 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
>
> On 22/06/18 10:05, Anusha Srivatsa wrote:
> >
> > 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)
> >
> Do we need a fixes: tag? Not sure we want this backported since GuC
> is
> off by default.
>
> >
> > Credits to: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com
> > >
> > Cc: John Spotswood <john.a.spotswood@intel.com>
> > Cc: Oscar Mateo <oscar.mateo@intel.com>
> > Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
> > Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
> > ---
> > drivers/gpu/drm/i915/intel_guc.c | 9 ++++-----
> > 1 file changed, 4 insertions(+), 5 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_guc.c
> > b/drivers/gpu/drm/i915/intel_guc.c
> > index 1aff30b..b1d1a10 100644
> > --- a/drivers/gpu/drm/i915/intel_guc.c
> > +++ b/drivers/gpu/drm/i915/intel_guc.c
> > @@ -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) <<
> You've flipped the shift here. With that fixed:
>
> Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
>
With Daniele's recommended changes:
Reviewed-by: John Spotswood <john.a.spotswood@intel.com>
> >
> > + 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
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-06-22 17:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-22 17:05 [PATCH] firmware/guc: Remove USES_GUC_SUBMISSION for suspend/resume Anusha Srivatsa
2018-06-22 17:25 ` Daniele Ceraolo Spurio
2018-06-22 17:34 ` John Spotswood [this message]
2018-06-22 17:38 ` Srivatsa, Anusha
2018-06-22 17:44 ` Daniele Ceraolo Spurio
2018-06-22 17:39 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-06-22 19:33 ` ✓ Fi.CI.IGT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1529688889.3618.25.camel@intel.com \
--to=john.a.spotswood@intel.com \
--cc=anusha.srivatsa@intel.com \
--cc=daniele.ceraolospurio@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.