Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Call i915_perf_fini() on init_hw error unwind
@ 2018-04-14  9:12 Chris Wilson
  2018-04-14  9:18 ` ✗ Fi.CI.BAT: failure for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Chris Wilson @ 2018-04-14  9:12 UTC (permalink / raw)
  To: intel-gfx; +Cc: Matthew Auld

We have to cleanup after i915_perf_init(), even on the error path, as it
passes a pointer into the module to the sysfs core. If we fail to
unregister the sysctl table, we leave a dangling pointer which then may
explode anytime later the sysctl table, we leave a dangling pointer
which then may explode anytime later.

Fixes: 9f9b2792b6d3 ("drm/i915/perf: reuse timestamp frequency from device info")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
---
 drivers/gpu/drm/i915/i915_drv.c | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 9944a03cdea6..beac565ddfe0 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -1109,30 +1109,30 @@ static int i915_driver_init_hw(struct drm_i915_private *dev_priv)
 
 	ret = i915_ggtt_probe_hw(dev_priv);
 	if (ret)
-		return ret;
+		goto err_perf;
 
 	/* WARNING: Apparently we must kick fbdev drivers before vgacon,
 	 * otherwise the vga fbdev driver falls over. */
 	ret = i915_kick_out_firmware_fb(dev_priv);
 	if (ret) {
 		DRM_ERROR("failed to remove conflicting framebuffer drivers\n");
-		goto out_ggtt;
+		goto err_ggtt;
 	}
 
 	ret = i915_kick_out_vgacon(dev_priv);
 	if (ret) {
 		DRM_ERROR("failed to remove conflicting VGA console\n");
-		goto out_ggtt;
+		goto err_ggtt;
 	}
 
 	ret = i915_ggtt_init_hw(dev_priv);
 	if (ret)
-		return ret;
+		goto err_ggtt;
 
 	ret = i915_ggtt_enable_hw(dev_priv);
 	if (ret) {
 		DRM_ERROR("failed to enable GGTT\n");
-		goto out_ggtt;
+		goto err_ggtt;
 	}
 
 	pci_set_master(pdev);
@@ -1143,7 +1143,7 @@ static int i915_driver_init_hw(struct drm_i915_private *dev_priv)
 		if (ret) {
 			DRM_ERROR("failed to set DMA mask\n");
 
-			goto out_ggtt;
+			goto err_ggtt;
 		}
 	}
 
@@ -1161,7 +1161,7 @@ static int i915_driver_init_hw(struct drm_i915_private *dev_priv)
 		if (ret) {
 			DRM_ERROR("failed to set DMA mask\n");
 
-			goto out_ggtt;
+			goto err_ggtt;
 		}
 	}
 
@@ -1197,13 +1197,14 @@ static int i915_driver_init_hw(struct drm_i915_private *dev_priv)
 
 	ret = intel_gvt_init(dev_priv);
 	if (ret)
-		goto out_ggtt;
+		goto err_ggtt;
 
 	return 0;
 
-out_ggtt:
+err_ggtt:
 	i915_ggtt_cleanup_hw(dev_priv);
-
+err_perf:
+	i915_perf_fini(dev_priv);
 	return ret;
 }
 
-- 
2.17.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* ✗ Fi.CI.BAT: failure for drm/i915: Call i915_perf_fini() on init_hw error unwind
  2018-04-14  9:12 [PATCH] drm/i915: Call i915_perf_fini() on init_hw error unwind Chris Wilson
@ 2018-04-14  9:18 ` Patchwork
  2018-04-14 15:28   ` Arkadiusz Hiler
  2018-04-14 15:40 ` [PATCH] " Lionel Landwerlin
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 8+ messages in thread
From: Patchwork @ 2018-04-14  9:18 UTC (permalink / raw)
  To: Chris Wilson; +Cc: intel-gfx

== Series Details ==

Series: drm/i915: Call i915_perf_fini() on init_hw error unwind
URL   : https://patchwork.freedesktop.org/series/41711/
State : failure

== Summary ==

CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  DESCEND  objtool
  CHK     scripts/mod/devicetable-offsets.h
  CHK     include/generated/compile.h
  CHK     kernel/config_data.h
  CHK     include/generated/uapi/linux/version.h
  DATAREL arch/x86/boot/compressed/vmlinux
  LD      arch/x86/boot/setup.elf
  OBJCOPY arch/x86/boot/setup.bin
  OBJCOPY arch/x86/boot/vmlinux.bin
objcopy:arch/x86/boot/vmlinux.bin[.rodata..compressed]: No space left on device
arch/x86/boot/Makefile:86: recipe for target 'arch/x86/boot/vmlinux.bin' failed
make[1]: *** [arch/x86/boot/vmlinux.bin] Error 1
arch/x86/Makefile:307: recipe for target 'bzImage' failed
make: *** [bzImage] Error 2

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ✗ Fi.CI.BAT: failure for drm/i915: Call i915_perf_fini() on init_hw error unwind
  2018-04-14  9:18 ` ✗ Fi.CI.BAT: failure for " Patchwork
@ 2018-04-14 15:28   ` Arkadiusz Hiler
  0 siblings, 0 replies; 8+ messages in thread
From: Arkadiusz Hiler @ 2018-04-14 15:28 UTC (permalink / raw)
  To: intel-gfx

On Sat, Apr 14, 2018 at 09:18:52AM +0000, Patchwork wrote:
> == Series Details ==
> 
> Series: drm/i915: Call i915_perf_fini() on init_hw error unwind
> URL   : https://patchwork.freedesktop.org/series/41711/
> State : failure
> 
> == Summary ==
> 
> CHK     include/config/kernel.release
>   CHK     include/generated/uapi/linux/version.h
>   CHK     include/generated/utsrelease.h
>   CHK     include/generated/bounds.h
>   CHK     include/generated/timeconst.h
>   CHK     include/generated/asm-offsets.h
>   CALL    scripts/checksyscalls.sh
>   DESCEND  objtool
>   CHK     scripts/mod/devicetable-offsets.h
>   CHK     include/generated/compile.h
>   CHK     kernel/config_data.h
>   CHK     include/generated/uapi/linux/version.h
>   DATAREL arch/x86/boot/compressed/vmlinux
>   LD      arch/x86/boot/setup.elf
>   OBJCOPY arch/x86/boot/setup.bin
>   OBJCOPY arch/x86/boot/vmlinux.bin
> objcopy:arch/x86/boot/vmlinux.bin[.rodata..compressed]: No space left on device
> arch/x86/boot/Makefile:86: recipe for target 'arch/x86/boot/vmlinux.bin' failed
> make[1]: *** [arch/x86/boot/vmlinux.bin] Error 1
> arch/x86/Makefile:307: recipe for target 'bzImage' failed
> make: *** [bzImage] Error 2

Whoops. Reclaimed some space, rerun queued.
-Arek
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] drm/i915: Call i915_perf_fini() on init_hw error unwind
  2018-04-14  9:12 [PATCH] drm/i915: Call i915_perf_fini() on init_hw error unwind Chris Wilson
  2018-04-14  9:18 ` ✗ Fi.CI.BAT: failure for " Patchwork
@ 2018-04-14 15:40 ` Lionel Landwerlin
  2018-04-14 15:59 ` Michal Wajdeczko
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Lionel Landwerlin @ 2018-04-14 15:40 UTC (permalink / raw)
  To: Chris Wilson, intel-gfx; +Cc: Matthew Auld

On 14/04/18 02:12, Chris Wilson wrote:
> We have to cleanup after i915_perf_init(), even on the error path, as it
> passes a pointer into the module to the sysfs core. If we fail to
> unregister the sysctl table, we leave a dangling pointer which then may
> explode anytime later the sysctl table, we leave a dangling pointer
> which then may explode anytime later.
>
> Fixes: 9f9b2792b6d3 ("drm/i915/perf: reuse timestamp frequency from device info")
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
> Cc: Matthew Auld <matthew.auld@intel.com>

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>

Thanks a lot!

> ---
>   drivers/gpu/drm/i915/i915_drv.c | 21 +++++++++++----------
>   1 file changed, 11 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
> index 9944a03cdea6..beac565ddfe0 100644
> --- a/drivers/gpu/drm/i915/i915_drv.c
> +++ b/drivers/gpu/drm/i915/i915_drv.c
> @@ -1109,30 +1109,30 @@ static int i915_driver_init_hw(struct drm_i915_private *dev_priv)
>   
>   	ret = i915_ggtt_probe_hw(dev_priv);
>   	if (ret)
> -		return ret;
> +		goto err_perf;
>   
>   	/* WARNING: Apparently we must kick fbdev drivers before vgacon,
>   	 * otherwise the vga fbdev driver falls over. */
>   	ret = i915_kick_out_firmware_fb(dev_priv);
>   	if (ret) {
>   		DRM_ERROR("failed to remove conflicting framebuffer drivers\n");
> -		goto out_ggtt;
> +		goto err_ggtt;
>   	}
>   
>   	ret = i915_kick_out_vgacon(dev_priv);
>   	if (ret) {
>   		DRM_ERROR("failed to remove conflicting VGA console\n");
> -		goto out_ggtt;
> +		goto err_ggtt;
>   	}
>   
>   	ret = i915_ggtt_init_hw(dev_priv);
>   	if (ret)
> -		return ret;
> +		goto err_ggtt;
>   
>   	ret = i915_ggtt_enable_hw(dev_priv);
>   	if (ret) {
>   		DRM_ERROR("failed to enable GGTT\n");
> -		goto out_ggtt;
> +		goto err_ggtt;
>   	}
>   
>   	pci_set_master(pdev);
> @@ -1143,7 +1143,7 @@ static int i915_driver_init_hw(struct drm_i915_private *dev_priv)
>   		if (ret) {
>   			DRM_ERROR("failed to set DMA mask\n");
>   
> -			goto out_ggtt;
> +			goto err_ggtt;
>   		}
>   	}
>   
> @@ -1161,7 +1161,7 @@ static int i915_driver_init_hw(struct drm_i915_private *dev_priv)
>   		if (ret) {
>   			DRM_ERROR("failed to set DMA mask\n");
>   
> -			goto out_ggtt;
> +			goto err_ggtt;
>   		}
>   	}
>   
> @@ -1197,13 +1197,14 @@ static int i915_driver_init_hw(struct drm_i915_private *dev_priv)
>   
>   	ret = intel_gvt_init(dev_priv);
>   	if (ret)
> -		goto out_ggtt;
> +		goto err_ggtt;
>   
>   	return 0;
>   
> -out_ggtt:
> +err_ggtt:
>   	i915_ggtt_cleanup_hw(dev_priv);
> -
> +err_perf:
> +	i915_perf_fini(dev_priv);
>   	return ret;
>   }
>   


_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] drm/i915: Call i915_perf_fini() on init_hw error unwind
  2018-04-14  9:12 [PATCH] drm/i915: Call i915_perf_fini() on init_hw error unwind Chris Wilson
  2018-04-14  9:18 ` ✗ Fi.CI.BAT: failure for " Patchwork
  2018-04-14 15:40 ` [PATCH] " Lionel Landwerlin
@ 2018-04-14 15:59 ` Michal Wajdeczko
  2018-04-17 13:53   ` Chris Wilson
  2018-04-14 16:28 ` ✓ Fi.CI.BAT: success for " Patchwork
  2018-04-14 17:43 ` ✓ Fi.CI.IGT: " Patchwork
  4 siblings, 1 reply; 8+ messages in thread
From: Michal Wajdeczko @ 2018-04-14 15:59 UTC (permalink / raw)
  To: intel-gfx, Chris Wilson; +Cc: Matthew Auld

On Sat, 14 Apr 2018 11:12:33 +0200, Chris Wilson  
<chris@chris-wilson.co.uk> wrote:

> We have to cleanup after i915_perf_init(), even on the error path, as it
> passes a pointer into the module to the sysfs core. If we fail to
> unregister the sysctl table, we leave a dangling pointer which then may
> explode anytime later the sysctl table, we leave a dangling pointer
> which then may explode anytime later.

no need to repeat, we're smart enough to get it after first time ;)

>
> Fixes: 9f9b2792b6d3 ("drm/i915/perf: reuse timestamp frequency from  
> device info")
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
> Cc: Matthew Auld <matthew.auld@intel.com>
> ---
>  drivers/gpu/drm/i915/i915_drv.c | 21 +++++++++++----------
>  1 file changed, 11 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_drv.c  
> b/drivers/gpu/drm/i915/i915_drv.c
> index 9944a03cdea6..beac565ddfe0 100644
> --- a/drivers/gpu/drm/i915/i915_drv.c
> +++ b/drivers/gpu/drm/i915/i915_drv.c
> @@ -1109,30 +1109,30 @@ static int i915_driver_init_hw(struct  
> drm_i915_private *dev_priv)
> 	ret = i915_ggtt_probe_hw(dev_priv);
>  	if (ret)
> -		return ret;
> +		goto err_perf;
> 	/* WARNING: Apparently we must kick fbdev drivers before vgacon,
>  	 * otherwise the vga fbdev driver falls over. */

btw, as you're doing labels cleanup, maybe you can also fix above comment
to follow multi-line style?

>  	ret = i915_kick_out_firmware_fb(dev_priv);
>  	if (ret) {
>  		DRM_ERROR("failed to remove conflicting framebuffer drivers\n");
> -		goto out_ggtt;
> +		goto err_ggtt;
>  	}
> 	ret = i915_kick_out_vgacon(dev_priv);
>  	if (ret) {
>  		DRM_ERROR("failed to remove conflicting VGA console\n");
> -		goto out_ggtt;
> +		goto err_ggtt;
>  	}
> 	ret = i915_ggtt_init_hw(dev_priv);
>  	if (ret)
> -		return ret;
> +		goto err_ggtt;
> 	ret = i915_ggtt_enable_hw(dev_priv);
>  	if (ret) {
>  		DRM_ERROR("failed to enable GGTT\n");
> -		goto out_ggtt;
> +		goto err_ggtt;
>  	}
> 	pci_set_master(pdev);
> @@ -1143,7 +1143,7 @@ static int i915_driver_init_hw(struct  
> drm_i915_private *dev_priv)
>  		if (ret) {
>  			DRM_ERROR("failed to set DMA mask\n");
> -			goto out_ggtt;
> +			goto err_ggtt;
>  		}
>  	}
> @@ -1161,7 +1161,7 @@ static int i915_driver_init_hw(struct  
> drm_i915_private *dev_priv)
>  		if (ret) {
>  			DRM_ERROR("failed to set DMA mask\n");
> -			goto out_ggtt;
> +			goto err_ggtt;
>  		}
>  	}
> @@ -1197,13 +1197,14 @@ static int i915_driver_init_hw(struct  
> drm_i915_private *dev_priv)
> 	ret = intel_gvt_init(dev_priv);
>  	if (ret)
> -		goto out_ggtt;
> +		goto err_ggtt;
> 	return 0;
> -out_ggtt:
> +err_ggtt:
>  	i915_ggtt_cleanup_hw(dev_priv);
> -
> +err_perf:
> +	i915_perf_fini(dev_priv);
>  	return ret;
>  }
>

Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* ✓ Fi.CI.BAT: success for drm/i915: Call i915_perf_fini() on init_hw error unwind
  2018-04-14  9:12 [PATCH] drm/i915: Call i915_perf_fini() on init_hw error unwind Chris Wilson
                   ` (2 preceding siblings ...)
  2018-04-14 15:59 ` Michal Wajdeczko
@ 2018-04-14 16:28 ` Patchwork
  2018-04-14 17:43 ` ✓ Fi.CI.IGT: " Patchwork
  4 siblings, 0 replies; 8+ messages in thread
From: Patchwork @ 2018-04-14 16:28 UTC (permalink / raw)
  To: Chris Wilson; +Cc: intel-gfx

== Series Details ==

Series: drm/i915: Call i915_perf_fini() on init_hw error unwind
URL   : https://patchwork.freedesktop.org/series/41711/
State : success

== Summary ==

= CI Bug Log - changes from CI_DRM_4053 -> Patchwork_8692 =

== Summary - WARNING ==

  Minor unknown changes coming with Patchwork_8692 need to be verified
  manually.
  
  If you think the reported changes have nothing to do with the changes
  introduced in Patchwork_8692, 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/41711/revisions/1/mbox/

== Possible new issues ==

  Here are the unknown changes that may have been introduced in Patchwork_8692:

  === IGT changes ===

    ==== Warnings ====

    igt@gem_exec_gttfill@basic:
      fi-pnv-d510:        PASS -> SKIP

    
== Known issues ==

  Here are the changes found in Patchwork_8692 that come from known issues:

  === IGT changes ===

    ==== Issues hit ====

    igt@gem_ctx_param@basic-default:
      fi-cnl-y3:          PASS -> INCOMPLETE (fdo#105086)

    igt@gem_mmap_gtt@basic-small-bo-tiledx:
      fi-gdg-551:         PASS -> FAIL (fdo#102575)

    igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
      fi-snb-2520m:       NOTRUN -> INCOMPLETE (fdo#103713)

    igt@prime_vgem@basic-fence-flip:
      fi-ilk-650:         PASS -> FAIL (fdo#104008)

    
    ==== Possible fixes ====

    igt@debugfs_test@read_all_entries:
      fi-snb-2520m:       INCOMPLETE (fdo#103713) -> PASS

    
  fdo#102575 https://bugs.freedesktop.org/show_bug.cgi?id=102575
  fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713
  fdo#104008 https://bugs.freedesktop.org/show_bug.cgi?id=104008
  fdo#105086 https://bugs.freedesktop.org/show_bug.cgi?id=105086


== Participating hosts (35 -> 33) ==

  Missing    (2): fi-ilk-m540 fi-skl-6700hq 


== Build changes ==

    * Linux: CI_DRM_4053 -> Patchwork_8692

  CI_DRM_4053: e2599f775a9c1c27f702e90e6432e555764edcd8 @ git://anongit.freedesktop.org/gfx-ci/linux
  IGT_4429: 80e4910581c7310258375a003a5de9a57ed24546 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
  Patchwork_8692: 57932c0fb665721baa95aeac11ef747a68cbbd65 @ git://anongit.freedesktop.org/gfx-ci/linux
  piglit_4429: 93b35926a150e318439d2505901288594b3548f5 @ git://anongit.freedesktop.org/piglit


== Linux commits ==

57932c0fb665 drm/i915: Call i915_perf_fini() on init_hw error unwind

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_8692/issues.html
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* ✓ Fi.CI.IGT: success for drm/i915: Call i915_perf_fini() on init_hw error unwind
  2018-04-14  9:12 [PATCH] drm/i915: Call i915_perf_fini() on init_hw error unwind Chris Wilson
                   ` (3 preceding siblings ...)
  2018-04-14 16:28 ` ✓ Fi.CI.BAT: success for " Patchwork
@ 2018-04-14 17:43 ` Patchwork
  4 siblings, 0 replies; 8+ messages in thread
From: Patchwork @ 2018-04-14 17:43 UTC (permalink / raw)
  To: Chris Wilson; +Cc: intel-gfx

== Series Details ==

Series: drm/i915: Call i915_perf_fini() on init_hw error unwind
URL   : https://patchwork.freedesktop.org/series/41711/
State : success

== Summary ==

= CI Bug Log - changes from CI_DRM_4053_full -> Patchwork_8692_full =

== Summary - SUCCESS ==

  No regressions found.

  External URL: https://patchwork.freedesktop.org/api/1.0/series/41711/revisions/1/mbox/

== Known issues ==

  Here are the changes found in Patchwork_8692_full that come from known issues:

  === IGT changes ===

    ==== Possible fixes ====

    igt@kms_setmode@basic:
      shard-kbl:          FAIL (fdo#99912) -> PASS

    
  fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912


== Participating hosts (6 -> 4) ==

  Missing    (2): shard-glk shard-glkb 


== Build changes ==

    * Linux: CI_DRM_4053 -> Patchwork_8692

  CI_DRM_4053: e2599f775a9c1c27f702e90e6432e555764edcd8 @ git://anongit.freedesktop.org/gfx-ci/linux
  IGT_4429: 80e4910581c7310258375a003a5de9a57ed24546 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
  Patchwork_8692: 57932c0fb665721baa95aeac11ef747a68cbbd65 @ git://anongit.freedesktop.org/gfx-ci/linux
  piglit_4429: 93b35926a150e318439d2505901288594b3548f5 @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_8692/shards.html
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] drm/i915: Call i915_perf_fini() on init_hw error unwind
  2018-04-14 15:59 ` Michal Wajdeczko
@ 2018-04-17 13:53   ` Chris Wilson
  0 siblings, 0 replies; 8+ messages in thread
From: Chris Wilson @ 2018-04-17 13:53 UTC (permalink / raw)
  To: Michal Wajdeczko, intel-gfx; +Cc: Matthew Auld

Quoting Michal Wajdeczko (2018-04-14 16:59:13)
> On Sat, 14 Apr 2018 11:12:33 +0200, Chris Wilson  
> <chris@chris-wilson.co.uk> wrote:
> 
> > We have to cleanup after i915_perf_init(), even on the error path, as it
> > passes a pointer into the module to the sysfs core. If we fail to
> > unregister the sysctl table, we leave a dangling pointer which then may
> > explode anytime later the sysctl table, we leave a dangling pointer
> > which then may explode anytime later.
> 
> no need to repeat, we're smart enough to get it after first time ;)

Smarter than me for sure, I didn't even notice I hit '.' too late.

Fixed up the commitmsg and old comment style, and pushed (and forgot to
say I pushed). Thanks all for the review,
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-04-17 13:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-14  9:12 [PATCH] drm/i915: Call i915_perf_fini() on init_hw error unwind Chris Wilson
2018-04-14  9:18 ` ✗ Fi.CI.BAT: failure for " Patchwork
2018-04-14 15:28   ` Arkadiusz Hiler
2018-04-14 15:40 ` [PATCH] " Lionel Landwerlin
2018-04-14 15:59 ` Michal Wajdeczko
2018-04-17 13:53   ` Chris Wilson
2018-04-14 16:28 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-04-14 17:43 ` ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox