Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Andrzej Hajda <andrzej.hajda@intel.com>
To: "Murthy, Arun R" <arun.r.murthy@intel.com>,
	"Jani Nikula" <jani.nikula@linux.intel.com>,
	"Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: "intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"Vivi, Rodrigo" <rodrigo.vivi@intel.com>
Subject: Re: [Intel-gfx] [PATCH 2/2] drm/i915/fbdev: suspend HPD before fbdev unregistration
Date: Wed, 29 Jun 2022 10:22:55 +0200	[thread overview]
Message-ID: <437bcbda-970d-2a83-051f-f350e53827bd@intel.com> (raw)
In-Reply-To: <DM6PR11MB317754BAC87AD15EF47D274FBABB9@DM6PR11MB3177.namprd11.prod.outlook.com>

Thanks for comments,


On 29.06.2022 07:38, Murthy, Arun R wrote:
>>   void intel_fbdev_unregister(struct drm_i915_private *dev_priv)  {
>>        struct intel_fbdev *ifbdev = dev_priv->fbdev; @@ -573,6 +594,8 @@
>> void intel_fbdev_unregister(struct drm_i915_private *dev_priv)
>>        if (!ifbdev)
>>                return;
>>
>> +     intel_fbdev_hpd_set_suspend(dev_priv,
>> FBINFO_STATE_SUSPENDED);
>> +
> 
> Instead of intel_fbdev_hpd_set_suspend(), will intel_fbdev_set_suspend() make more sense?
> If intel_fbdev_set_suspend() is called, then the below cancel_work_sync() may not be required.


It does more than I needed (calls drm_fb_helper_set_suspend), but it 
shouldn't hurt. I will try this approach.

Regards
Andrzej

> 
>>        cancel_work_sync(&dev_priv->fbdev_suspend_work);
>>        if (!current_is_async())
>>                intel_fbdev_sync(ifbdev);
> 
> Thanks and Regards,
> Arun R Murthy
> --------------------


  reply	other threads:[~2022-06-29  8:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-23 16:38 [Intel-gfx] [PATCH 0/2] drm/i915/display: stop HPD workers before display driver unregister Andrzej Hajda
2022-06-23 16:38 ` [Intel-gfx] [PATCH 1/2] drm/i915/hpd: postpone HPD cancel work after last user suspension Andrzej Hajda
2022-06-29  4:16   ` Murthy, Arun R
2022-06-23 16:38 ` [Intel-gfx] [PATCH 2/2] drm/i915/fbdev: suspend HPD before fbdev unregistration Andrzej Hajda
2022-06-29  5:38   ` Murthy, Arun R
2022-06-29  8:22     ` Andrzej Hajda [this message]
2022-06-23 17:40 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/display: stop HPD workers before display driver unregister Patchwork
2022-06-27 16:00 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2022-06-27 22:36   ` Andrzej Hajda

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=437bcbda-970d-2a83-051f-f350e53827bd@intel.com \
    --to=andrzej.hajda@intel.com \
    --cc=arun.r.murthy@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=rodrigo.vivi@intel.com \
    --cc=ville.syrjala@linux.intel.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox