intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH] drm/i915: Restrict DRM_I915_DEBUG to developer builds
@ 2021-01-22  9:10 Chris Wilson
  2021-01-22  9:35 ` Jani Nikula
  2021-01-22 15:53 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for " Patchwork
  0 siblings, 2 replies; 5+ messages in thread
From: Chris Wilson @ 2021-01-22  9:10 UTC (permalink / raw)
  To: intel-gfx; +Cc: Stephen Rothwell, Chris Wilson

Let's not encourage everybody to build i915's debug code, and certainly
not the build robots who need to scrutinise the production build. Since
CI will complain if the debug build is broken, having the other build
bots focus on the builds we don't cover ourselves should improve the
build coverage.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: 4f86975f539d ("drm/i915: Add DEBUG_GEM to the recommended CI config")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/Kconfig.debug | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/i915/Kconfig.debug b/drivers/gpu/drm/i915/Kconfig.debug
index e2d33f1abb3d..5b457fb2d268 100644
--- a/drivers/gpu/drm/i915/Kconfig.debug
+++ b/drivers/gpu/drm/i915/Kconfig.debug
@@ -19,6 +19,8 @@ config DRM_I915_WERROR
 config DRM_I915_DEBUG
 	bool "Enable additional driver debugging"
 	depends on DRM_I915
+	depends on EXPERT # only for developers
+	depends on !COMPILE_TEST # never built by robots
 	select PCI_MSI # ... for iommu enabled by default
 	select IOMMU_API
 	select IOMMU_IOVA
-- 
2.20.1

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

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

* Re: [Intel-gfx] [PATCH] drm/i915: Restrict DRM_I915_DEBUG to developer builds
  2021-01-22  9:10 [Intel-gfx] [PATCH] drm/i915: Restrict DRM_I915_DEBUG to developer builds Chris Wilson
@ 2021-01-22  9:35 ` Jani Nikula
  2021-01-22  9:39   ` Chris Wilson
  2021-01-22  9:43   ` Jani Nikula
  2021-01-22 15:53 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for " Patchwork
  1 sibling, 2 replies; 5+ messages in thread
From: Jani Nikula @ 2021-01-22  9:35 UTC (permalink / raw)
  To: Chris Wilson, intel-gfx; +Cc: Stephen Rothwell, Chris Wilson

On Fri, 22 Jan 2021, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> Let's not encourage everybody to build i915's debug code, and certainly
> not the build robots who need to scrutinise the production build. Since
> CI will complain if the debug build is broken, having the other build
> bots focus on the builds we don't cover ourselves should improve the
> build coverage.

I don't disagree with this, although I wrote in another mail that I'm
not sure DRM_I915_DEBUG should select DRM_I915_WERROR. I think they
should be two separate things.

Even so, for this change,

Acked-by: Jani Nikula <jani.nikula@intel.com>

>
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Fixes: 4f86975f539d ("drm/i915: Add DEBUG_GEM to the recommended CI config")
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> ---
>  drivers/gpu/drm/i915/Kconfig.debug | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/Kconfig.debug b/drivers/gpu/drm/i915/Kconfig.debug
> index e2d33f1abb3d..5b457fb2d268 100644
> --- a/drivers/gpu/drm/i915/Kconfig.debug
> +++ b/drivers/gpu/drm/i915/Kconfig.debug
> @@ -19,6 +19,8 @@ config DRM_I915_WERROR
>  config DRM_I915_DEBUG
>  	bool "Enable additional driver debugging"
>  	depends on DRM_I915
> +	depends on EXPERT # only for developers
> +	depends on !COMPILE_TEST # never built by robots
>  	select PCI_MSI # ... for iommu enabled by default
>  	select IOMMU_API
>  	select IOMMU_IOVA

-- 
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [Intel-gfx] [PATCH] drm/i915: Restrict DRM_I915_DEBUG to developer builds
  2021-01-22  9:35 ` Jani Nikula
@ 2021-01-22  9:39   ` Chris Wilson
  2021-01-22  9:43   ` Jani Nikula
  1 sibling, 0 replies; 5+ messages in thread
From: Chris Wilson @ 2021-01-22  9:39 UTC (permalink / raw)
  To: Jani Nikula, intel-gfx; +Cc: Stephen Rothwell

Quoting Jani Nikula (2021-01-22 09:35:42)
> On Fri, 22 Jan 2021, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> > Let's not encourage everybody to build i915's debug code, and certainly
> > not the build robots who need to scrutinise the production build. Since
> > CI will complain if the debug build is broken, having the other build
> > bots focus on the builds we don't cover ourselves should improve the
> > build coverage.
> 
> I don't disagree with this, although I wrote in another mail that I'm
> not sure DRM_I915_DEBUG should select DRM_I915_WERROR. I think they
> should be two separate things.

DRM_I915_DEBUG is the CI catch-all, and so the build we recommend
developers try at least once. But the original purpose of DRM_I915_DEBUG
was to be able to switch on features for CI without having to bug Tomi.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [Intel-gfx] [PATCH] drm/i915: Restrict DRM_I915_DEBUG to developer builds
  2021-01-22  9:35 ` Jani Nikula
  2021-01-22  9:39   ` Chris Wilson
@ 2021-01-22  9:43   ` Jani Nikula
  1 sibling, 0 replies; 5+ messages in thread
From: Jani Nikula @ 2021-01-22  9:43 UTC (permalink / raw)
  To: Chris Wilson, intel-gfx; +Cc: Stephen Rothwell, Chris Wilson

On Fri, 22 Jan 2021, Jani Nikula <jani.nikula@linux.intel.com> wrote:
> On Fri, 22 Jan 2021, Chris Wilson <chris@chris-wilson.co.uk> wrote:
>> Let's not encourage everybody to build i915's debug code, and certainly
>> not the build robots who need to scrutinise the production build. Since
>> CI will complain if the debug build is broken, having the other build
>> bots focus on the builds we don't cover ourselves should improve the
>> build coverage.
>
> I don't disagree with this, although I wrote in another mail that I'm
> not sure DRM_I915_DEBUG should select DRM_I915_WERROR. I think they
> should be two separate things.
>
> Even so, for this change,
>
> Acked-by: Jani Nikula <jani.nikula@intel.com>

Musing, a compile test could still enable all the individual knobs in
Kconfig.debug, right?

How would this work in Kconfig?

+if DRM_I915 && EXPERT && !COMPILE_TEST
 menu "drm/i915 Debugging"
-depends on DRM_I915
-depends on EXPERT
 source "drivers/gpu/drm/i915/Kconfig.debug"
 endmenu
+endif


BR,
Jani.

>
>>
>> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
>> Fixes: 4f86975f539d ("drm/i915: Add DEBUG_GEM to the recommended CI config")
>> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
>> ---
>>  drivers/gpu/drm/i915/Kconfig.debug | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/i915/Kconfig.debug b/drivers/gpu/drm/i915/Kconfig.debug
>> index e2d33f1abb3d..5b457fb2d268 100644
>> --- a/drivers/gpu/drm/i915/Kconfig.debug
>> +++ b/drivers/gpu/drm/i915/Kconfig.debug
>> @@ -19,6 +19,8 @@ config DRM_I915_WERROR
>>  config DRM_I915_DEBUG
>>  	bool "Enable additional driver debugging"
>>  	depends on DRM_I915
>> +	depends on EXPERT # only for developers
>> +	depends on !COMPILE_TEST # never built by robots
>>  	select PCI_MSI # ... for iommu enabled by default
>>  	select IOMMU_API
>>  	select IOMMU_IOVA

-- 
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* [Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Restrict DRM_I915_DEBUG to developer builds
  2021-01-22  9:10 [Intel-gfx] [PATCH] drm/i915: Restrict DRM_I915_DEBUG to developer builds Chris Wilson
  2021-01-22  9:35 ` Jani Nikula
@ 2021-01-22 15:53 ` Patchwork
  1 sibling, 0 replies; 5+ messages in thread
From: Patchwork @ 2021-01-22 15:53 UTC (permalink / raw)
  To: Chris Wilson; +Cc: intel-gfx


[-- Attachment #1.1: Type: text/plain, Size: 408 bytes --]

== Series Details ==

Series: drm/i915: Restrict DRM_I915_DEBUG to developer builds
URL   : https://patchwork.freedesktop.org/series/86175/
State : failure

== Summary ==

Applying: drm/i915: Restrict DRM_I915_DEBUG to developer builds
Using index info to reconstruct a base tree...
M	drivers/gpu/drm/i915/Kconfig.debug
Falling back to patching base and 3-way merge...
No changes -- Patch already applied.



[-- Attachment #1.2: Type: text/html, Size: 902 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

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

end of thread, other threads:[~2021-01-22 15:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-22  9:10 [Intel-gfx] [PATCH] drm/i915: Restrict DRM_I915_DEBUG to developer builds Chris Wilson
2021-01-22  9:35 ` Jani Nikula
2021-01-22  9:39   ` Chris Wilson
2021-01-22  9:43   ` Jani Nikula
2021-01-22 15:53 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).