From: Jani Nikula <jani.nikula@linux.intel.com>
To: Imre Deak <imre.deak@intel.com>, intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH v2 2/4] drm/i915: Move display power initialization during driver probing later
Date: Tue, 14 Feb 2023 11:25:04 +0200 [thread overview]
Message-ID: <87h6votx8v.fsf@intel.com> (raw)
In-Reply-To: <20230208114300.3123934-3-imre.deak@intel.com>
On Wed, 08 Feb 2023, Imre Deak <imre.deak@intel.com> wrote:
> Determining whether the display engine is present on a platform happens
> only in intel_device_info_runtime_init(). Initializing the display power
> functionality depends on this condition, so move
> intel_power_domains_init() later after the runtime init function has
> been called.
>
> The next patch fixing platforms without display, depends on this patch.
>
It's pretty hard to review we aren't using any of the power domain stuff
before the intel_power_domains_init() call. What happens if we do?
I approve of the change, but I can't in good faith claim I checked this.
Acked-by: Jani Nikula <jani.nikula@intel.com>
> Signed-off-by: Imre Deak <imre.deak@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_display.c | 5 +++++
> drivers/gpu/drm/i915/i915_driver.c | 7 -------
> 2 files changed, 5 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
> index 166662ade593c..b3e7ed3866cde 100644
> --- a/drivers/gpu/drm/i915/display/intel_display.c
> +++ b/drivers/gpu/drm/i915/display/intel_display.c
> @@ -8634,6 +8634,10 @@ int intel_modeset_init_noirq(struct drm_i915_private *i915)
> goto cleanup_bios;
>
> /* FIXME: completely on the wrong abstraction layer */
> + ret = intel_power_domains_init(i915);
> + if (ret < 0)
> + goto cleanup_vga;
> +
> intel_power_domains_init_hw(i915, false);
>
> if (!HAS_DISPLAY(i915))
> @@ -8676,6 +8680,7 @@ int intel_modeset_init_noirq(struct drm_i915_private *i915)
> cleanup_vga_client_pw_domain_dmc:
> intel_dmc_ucode_fini(i915);
> intel_power_domains_driver_remove(i915);
> +cleanup_vga:
> intel_vga_unregister(i915);
> cleanup_bios:
> intel_bios_driver_remove(i915);
> diff --git a/drivers/gpu/drm/i915/i915_driver.c b/drivers/gpu/drm/i915/i915_driver.c
> index 13bf4fe52f9fe..fe2870a6ae631 100644
> --- a/drivers/gpu/drm/i915/i915_driver.c
> +++ b/drivers/gpu/drm/i915/i915_driver.c
> @@ -251,9 +251,6 @@ static int i915_driver_early_probe(struct drm_i915_private *dev_priv)
> intel_detect_pch(dev_priv);
>
> intel_pm_setup(dev_priv);
> - ret = intel_power_domains_init(dev_priv);
> - if (ret < 0)
> - goto err_gem;
> intel_irq_init(dev_priv);
> intel_init_display_hooks(dev_priv);
> intel_init_clock_gating_hooks(dev_priv);
> @@ -262,10 +259,6 @@ static int i915_driver_early_probe(struct drm_i915_private *dev_priv)
>
> return 0;
>
> -err_gem:
> - i915_gem_cleanup_early(dev_priv);
> - intel_gt_driver_late_release_all(dev_priv);
> - i915_drm_clients_fini(&dev_priv->clients);
> err_rootgt:
> intel_region_ttm_device_fini(dev_priv);
> err_ttm:
--
Jani Nikula, Intel Open Source Graphics Center
next prev parent reply other threads:[~2023-02-14 9:25 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-08 11:42 [Intel-gfx] [PATCH v2 0/4] drm/i915/dg2: Fix platforms without display Imre Deak
2023-02-08 11:42 ` [Intel-gfx] [PATCH v2 1/4] drm/i915: Fix system suspend without fbdev being initialized Imre Deak
2023-02-14 9:17 ` Jani Nikula
2023-02-22 7:58 ` Andrzej Hajda
2023-02-08 11:42 ` [Intel-gfx] [PATCH v2 2/4] drm/i915: Move display power initialization during driver probing later Imre Deak
2023-02-14 9:25 ` Jani Nikula [this message]
2023-02-14 14:04 ` Imre Deak
2023-02-14 14:17 ` Jani Nikula
2023-02-15 9:59 ` Imre Deak
2023-02-08 11:42 ` [Intel-gfx] [PATCH v2 3/4] drm/i915/dgfx, mtl+: Disable display functionality if the display is not present Imre Deak
2023-02-14 9:18 ` Jani Nikula
2023-02-08 11:43 ` [Intel-gfx] [PATCH v2 4/4] drm/i915: Sanitize the display fused-off check on GEN7/8 Imre Deak
2023-02-14 9:18 ` Jani Nikula
2023-02-08 14:30 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915/dg2: Fix platforms without display Patchwork
2023-02-08 18:58 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-02-09 7:26 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2023-02-14 16:32 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/dg2: Fix platforms without display (rev2) Patchwork
2023-02-14 16:49 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-02-15 3:40 ` [Intel-gfx] ✓ 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=87h6votx8v.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=imre.deak@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.