Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit d392e1b

Browse files
zehortigozarodrigovivi
authored andcommitted
drm/i915: Do not print 'pxp init failed with 0' when it succeed
It is misleading, if the intention was to also print something in case it succeed it should have a different string. Cc: Alan Previn <alan.previn.teres.alexis@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Fixes: 698e19d ("drm/i915: Skip pxp init if gt is wedged") Reviewed-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240320210547.71937-1-jose.souza@intel.com (cherry picked from commit d437099) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
1 parent e41d769 commit d392e1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/i915_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ int i915_driver_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
800800
goto out_cleanup_modeset2;
801801

802802
ret = intel_pxp_init(i915);
803-
if (ret != -ENODEV)
803+
if (ret && ret != -ENODEV)
804804
drm_dbg(&i915->drm, "pxp init failed with %d\n", ret);
805805

806806
ret = intel_display_driver_probe(i915);

0 commit comments

Comments
 (0)