* [PATCH] drm/i915: move a Kconfig symbol to unbreak the menu presentation
@ 2023-02-15 4:45 Randy Dunlap
2023-02-15 5:51 ` Christoph Hellwig
2023-02-17 1:52 ` Zhenyu Wang
0 siblings, 2 replies; 5+ messages in thread
From: Randy Dunlap @ 2023-02-15 4:45 UTC (permalink / raw)
To: linux-kernel
Cc: Randy Dunlap, Christoph Hellwig, Zhi Wang, Jani Nikula,
Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin, Zhenyu Wang,
intel-gfx, intel-gvt-dev, dri-devel
Inserting a Kconfig symbol that does not have a dependency (DRM_I915_GVT)
into a list of other symbols that do have a dependency (on DRM_I915)
breaks the driver menu presentation in 'make *config'.
Relocate the DRM_I915_GVT symbol so that it does not cause this
problem.
Fixes: 8b750bf74418 ("drm/i915/gvt: move the gvt code into kvmgt.ko")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Zhi Wang <zhi.a.wang@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Cc: intel-gvt-dev@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
---
drivers/gpu/drm/i915/Kconfig | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff -- a/drivers/gpu/drm/i915/Kconfig b/drivers/gpu/drm/i915/Kconfig
--- a/drivers/gpu/drm/i915/Kconfig
+++ b/drivers/gpu/drm/i915/Kconfig
@@ -118,9 +118,6 @@ config DRM_I915_USERPTR
If in doubt, say "Y".
-config DRM_I915_GVT
- bool
-
config DRM_I915_GVT_KVMGT
tristate "Enable KVM host support Intel GVT-g graphics virtualization"
depends on DRM_I915
@@ -172,3 +169,6 @@ menu "drm/i915 Unstable Evolution"
depends on DRM_I915
source "drivers/gpu/drm/i915/Kconfig.unstable"
endmenu
+
+config DRM_I915_GVT
+ bool
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/i915: move a Kconfig symbol to unbreak the menu presentation
2023-02-15 4:45 [PATCH] drm/i915: move a Kconfig symbol to unbreak the menu presentation Randy Dunlap
@ 2023-02-15 5:51 ` Christoph Hellwig
2023-02-17 1:52 ` Zhenyu Wang
1 sibling, 0 replies; 5+ messages in thread
From: Christoph Hellwig @ 2023-02-15 5:51 UTC (permalink / raw)
To: Randy Dunlap
Cc: linux-kernel, Christoph Hellwig, Zhi Wang, Jani Nikula,
Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin, Zhenyu Wang,
intel-gfx, intel-gvt-dev, dri-devel
On Tue, Feb 14, 2023 at 08:45:33PM -0800, Randy Dunlap wrote:
> Inserting a Kconfig symbol that does not have a dependency (DRM_I915_GVT)
> into a list of other symbols that do have a dependency (on DRM_I915)
> breaks the driver menu presentation in 'make *config'.
>
> Relocate the DRM_I915_GVT symbol so that it does not cause this
> problem.
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/i915: move a Kconfig symbol to unbreak the menu presentation
2023-02-15 4:45 [PATCH] drm/i915: move a Kconfig symbol to unbreak the menu presentation Randy Dunlap
2023-02-15 5:51 ` Christoph Hellwig
@ 2023-02-17 1:52 ` Zhenyu Wang
2023-02-17 6:32 ` Randy Dunlap
1 sibling, 1 reply; 5+ messages in thread
From: Zhenyu Wang @ 2023-02-17 1:52 UTC (permalink / raw)
To: Randy Dunlap
Cc: linux-kernel, Christoph Hellwig, Zhi Wang, Jani Nikula,
Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin, Zhenyu Wang,
intel-gfx, intel-gvt-dev, dri-devel
[-- Attachment #1: Type: text/plain, Size: 1761 bytes --]
On 2023.02.14 20:45:33 -0800, Randy Dunlap wrote:
> Inserting a Kconfig symbol that does not have a dependency (DRM_I915_GVT)
> into a list of other symbols that do have a dependency (on DRM_I915)
> breaks the driver menu presentation in 'make *config'.
>
I'm not sure what's the actual failure in presentation, I'm not quite familiar
with Kconfig, could you help to elaborate?
thanks!
> Relocate the DRM_I915_GVT symbol so that it does not cause this
> problem.
>
> Fixes: 8b750bf74418 ("drm/i915/gvt: move the gvt code into kvmgt.ko")
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Christoph Hellwig <hch@lst.de>
> Cc: Zhi Wang <zhi.a.wang@intel.com>
> Cc: Jani Nikula <jani.nikula@linux.intel.com>
> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
> Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
> Cc: intel-gfx@lists.freedesktop.org
> Cc: intel-gvt-dev@lists.freedesktop.org
> Cc: dri-devel@lists.freedesktop.org
> ---
> drivers/gpu/drm/i915/Kconfig | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff -- a/drivers/gpu/drm/i915/Kconfig b/drivers/gpu/drm/i915/Kconfig
> --- a/drivers/gpu/drm/i915/Kconfig
> +++ b/drivers/gpu/drm/i915/Kconfig
> @@ -118,9 +118,6 @@ config DRM_I915_USERPTR
>
> If in doubt, say "Y".
>
> -config DRM_I915_GVT
> - bool
> -
> config DRM_I915_GVT_KVMGT
> tristate "Enable KVM host support Intel GVT-g graphics virtualization"
> depends on DRM_I915
> @@ -172,3 +169,6 @@ menu "drm/i915 Unstable Evolution"
> depends on DRM_I915
> source "drivers/gpu/drm/i915/Kconfig.unstable"
> endmenu
> +
> +config DRM_I915_GVT
> + bool
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/i915: move a Kconfig symbol to unbreak the menu presentation
2023-02-17 1:52 ` Zhenyu Wang
@ 2023-02-17 6:32 ` Randy Dunlap
2023-02-19 12:52 ` Zhenyu Wang
0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2023-02-17 6:32 UTC (permalink / raw)
To: Zhenyu Wang
Cc: linux-kernel, Christoph Hellwig, Zhi Wang, Jani Nikula,
Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin, intel-gfx,
intel-gvt-dev, dri-devel
[-- Attachment #1: Type: text/plain, Size: 2824 bytes --]
Hi,
On 2/16/23 17:52, Zhenyu Wang wrote:
> On 2023.02.14 20:45:33 -0800, Randy Dunlap wrote:
>> Inserting a Kconfig symbol that does not have a dependency (DRM_I915_GVT)
>> into a list of other symbols that do have a dependency (on DRM_I915)
>> breaks the driver menu presentation in 'make *config'.
>>
>
> I'm not sure what's the actual failure in presentation, I'm not quite familiar
> with Kconfig, could you help to elaborate?
>
> thanks!
For menuconfig and nconfig, it's a subtle difference. The following menu
items are indented more after the patch (i.e., they are not indented enough
before the patch):
│ <M> Enable KVM host support Intel GVT-g graphics virtualization │
│ [*] Enable Intel PXP support │
│ drm/i915 Debugging ---> │
│ drm/i915 Profile Guided Optimisation --->
Same menu items for gconfig: they should all be subordinate (so indented)
to the main
<M> Intel 8xx/9xx/G3x/G4x/HD Graphics
menu.
For xconfig, it's worse. "drm/i915 Debugging" and "drm/i915 Profile Guided Optimisation"
are shown on the left side window, while are of the other i915 options are shown in the
right side window (before the patch).
After the patch, all subordinate options are listed in the right side window under the
main "Intel 8xx/9xx/G3x/G4x/HD Graphics" menu item.
See attached photos for comparisons.
HTH.
>> Relocate the DRM_I915_GVT symbol so that it does not cause this
>> problem.
>>
>> Fixes: 8b750bf74418 ("drm/i915/gvt: move the gvt code into kvmgt.ko")
>> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
>> Cc: Christoph Hellwig <hch@lst.de>
>> Cc: Zhi Wang <zhi.a.wang@intel.com>
>> Cc: Jani Nikula <jani.nikula@linux.intel.com>
>> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
>> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
>> Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
>> Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
>> Cc: intel-gfx@lists.freedesktop.org
>> Cc: intel-gvt-dev@lists.freedesktop.org
>> Cc: dri-devel@lists.freedesktop.org
>> ---
>> drivers/gpu/drm/i915/Kconfig | 6 +++---
>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff -- a/drivers/gpu/drm/i915/Kconfig b/drivers/gpu/drm/i915/Kconfig
>> --- a/drivers/gpu/drm/i915/Kconfig
>> +++ b/drivers/gpu/drm/i915/Kconfig
>> @@ -118,9 +118,6 @@ config DRM_I915_USERPTR
>>
>> If in doubt, say "Y".
>>
>> -config DRM_I915_GVT
>> - bool
>> -
>> config DRM_I915_GVT_KVMGT
>> tristate "Enable KVM host support Intel GVT-g graphics virtualization"
>> depends on DRM_I915
>> @@ -172,3 +169,6 @@ menu "drm/i915 Unstable Evolution"
>> depends on DRM_I915
>> source "drivers/gpu/drm/i915/Kconfig.unstable"
>> endmenu
>> +
>> +config DRM_I915_GVT
>> + bool
--
~Randy
[-- Attachment #2: xconfig-aft-patch.png --]
[-- Type: image/png, Size: 176376 bytes --]
[-- Attachment #3: xconfig-b4-patch.png --]
[-- Type: image/png, Size: 170454 bytes --]
[-- Attachment #4: gconfig-aft-patch.png --]
[-- Type: image/png, Size: 94579 bytes --]
[-- Attachment #5: gconfig-b4-patch.png --]
[-- Type: image/png, Size: 89000 bytes --]
[-- Attachment #6: nconfig-aft-patch.png --]
[-- Type: image/png, Size: 93714 bytes --]
[-- Attachment #7: nconfig-b4-patch.png --]
[-- Type: image/png, Size: 93718 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/i915: move a Kconfig symbol to unbreak the menu presentation
2023-02-17 6:32 ` Randy Dunlap
@ 2023-02-19 12:52 ` Zhenyu Wang
0 siblings, 0 replies; 5+ messages in thread
From: Zhenyu Wang @ 2023-02-19 12:52 UTC (permalink / raw)
To: Randy Dunlap
Cc: linux-kernel, Christoph Hellwig, Zhi Wang, Jani Nikula,
Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin, intel-gfx,
intel-gvt-dev, dri-devel
[-- Attachment #1: Type: text/plain, Size: 1723 bytes --]
On 2023.02.16 22:32:33 -0800, Randy Dunlap wrote:
> Hi,
>
> On 2/16/23 17:52, Zhenyu Wang wrote:
> > On 2023.02.14 20:45:33 -0800, Randy Dunlap wrote:
> >> Inserting a Kconfig symbol that does not have a dependency (DRM_I915_GVT)
> >> into a list of other symbols that do have a dependency (on DRM_I915)
> >> breaks the driver menu presentation in 'make *config'.
> >>
> >
> > I'm not sure what's the actual failure in presentation, I'm not quite familiar
> > with Kconfig, could you help to elaborate?
> >
> > thanks!
>
> For menuconfig and nconfig, it's a subtle difference. The following menu
> items are indented more after the patch (i.e., they are not indented enough
> before the patch):
>
> │ <M> Enable KVM host support Intel GVT-g graphics virtualization │
> │ [*] Enable Intel PXP support │
> │ drm/i915 Debugging ---> │
> │ drm/i915 Profile Guided Optimisation --->
>
> Same menu items for gconfig: they should all be subordinate (so indented)
> to the main
> <M> Intel 8xx/9xx/G3x/G4x/HD Graphics
> menu.
>
> For xconfig, it's worse. "drm/i915 Debugging" and "drm/i915 Profile Guided Optimisation"
> are shown on the left side window, while are of the other i915 options are shown in the
> right side window (before the patch).
> After the patch, all subordinate options are listed in the right side window under the
> main "Intel 8xx/9xx/G3x/G4x/HD Graphics" menu item.
>
> See attached photos for comparisons.
>
I wasn't awared of the wrong indentation. Thanks a lot, Randy!
Acked-by: Zhenyu Wang <zhenyuw@linux.intel.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-02-19 12:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-15 4:45 [PATCH] drm/i915: move a Kconfig symbol to unbreak the menu presentation Randy Dunlap
2023-02-15 5:51 ` Christoph Hellwig
2023-02-17 1:52 ` Zhenyu Wang
2023-02-17 6:32 ` Randy Dunlap
2023-02-19 12:52 ` Zhenyu Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox