linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: linux-next: Tree for Feb 19 (gpu/drm/pl111/)
       [not found] ` <5a671632-f746-52d2-1a9c-1e72a7e2f42b@infradead.org>
@ 2018-02-19 18:30   ` Randy Dunlap
  2018-02-20 10:07     ` Thierry Reding
  2018-02-20 10:29     ` [PATCH] drm/pl111: Remove reverse dependency on DRM_DUMB_VGA_DAC Thierry Reding
  0 siblings, 2 replies; 7+ messages in thread
From: Randy Dunlap @ 2018-02-19 18:30 UTC (permalink / raw)
  To: Stephen Rothwell, Linux-Next Mailing List
  Cc: Linux Kernel Mailing List, dri-devel

[add Eric + dri-devel]

On 02/19/18 09:26, Randy Dunlap wrote:
> On 02/18/18 18:14, Stephen Rothwell wrote:
>> Hi all,
>>
>> Changes since 20180216:
>>
>> The nand tree gained a conflict against Linus' tree.
>>
>> The drm tree gained conflicts against Linus' tree.
> 
> on i386 (randconfig):
> 
> warning: (DRM_PL111) selects DRM_DUMB_VGA_DAC which has unmet direct dependencies (HAS_IOMEM && DRM && DRM_BRIDGE && OF)
> 
> and then
> 
> ../drivers/gpu/drm/bridge/dumb-vga-dac.c: In function 'dumb_vga_probe':
> ../drivers/gpu/drm/bridge/dumb-vga-dac.c:207:13: error: 'struct drm_bridge' has no member named 'of_node'
>   vga->bridge.of_node = pdev->dev.of_node;
>              ^
> 
> 


-- 
~Randy
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: linux-next: Tree for Feb 19 (gpu/drm/pl111/)
  2018-02-19 18:30   ` linux-next: Tree for Feb 19 (gpu/drm/pl111/) Randy Dunlap
@ 2018-02-20 10:07     ` Thierry Reding
  2018-02-20 10:29     ` [PATCH] drm/pl111: Remove reverse dependency on DRM_DUMB_VGA_DAC Thierry Reding
  1 sibling, 0 replies; 7+ messages in thread
From: Thierry Reding @ 2018-02-20 10:07 UTC (permalink / raw)
  To: Randy Dunlap
  Cc: Stephen Rothwell, Linux-Next Mailing List,
	Linux Kernel Mailing List, dri-devel


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

On Mon, Feb 19, 2018 at 10:30:06AM -0800, Randy Dunlap wrote:
> [add Eric + dri-devel]
> 
> On 02/19/18 09:26, Randy Dunlap wrote:
> > On 02/18/18 18:14, Stephen Rothwell wrote:
> >> Hi all,
> >>
> >> Changes since 20180216:
> >>
> >> The nand tree gained a conflict against Linus' tree.
> >>
> >> The drm tree gained conflicts against Linus' tree.
> > 
> > on i386 (randconfig):
> > 
> > warning: (DRM_PL111) selects DRM_DUMB_VGA_DAC which has unmet direct dependencies (HAS_IOMEM && DRM && DRM_BRIDGE && OF)

I think this is caused by the fact that DRM_PL111 has || COMPILE_TEST in
the architecture dependencies, which causes it to be unavailable on
systems other than ARM and ARM64 where OF may not be implied. Then the
DRM_PL111 selects DRM_DUMB_VGA_DAC that has a dependency on OF.

I think the best solution would be to remove the select DRM_DUMB_VGA_DAC
from DRM_PL111. Also see the warning against selecting visible symbols
in Documentation/kbuild/kconfig-language.txt (line 127).

> > and then
> > 
> > ../drivers/gpu/drm/bridge/dumb-vga-dac.c: In function 'dumb_vga_probe':
> > ../drivers/gpu/drm/bridge/dumb-vga-dac.c:207:13: error: 'struct drm_bridge' has no member named 'of_node'
> >   vga->bridge.of_node = pdev->dev.of_node;
> >              ^

Irrespective of the above, I don't think it's very useful to have
of_node conditionally included in this structure. This used to be the
case for struct gpio_chip (and others) and used to cause lots of such
build failures because people tend not to build-test OF vs. !OF

Thierry

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* [PATCH] drm/pl111: Remove reverse dependency on DRM_DUMB_VGA_DAC
  2018-02-19 18:30   ` linux-next: Tree for Feb 19 (gpu/drm/pl111/) Randy Dunlap
  2018-02-20 10:07     ` Thierry Reding
@ 2018-02-20 10:29     ` Thierry Reding
  2018-02-20 11:14       ` Archit Taneja
                         ` (2 more replies)
  1 sibling, 3 replies; 7+ messages in thread
From: Thierry Reding @ 2018-02-20 10:29 UTC (permalink / raw)
  To: dri-devel; +Cc: Randy Dunlap, linux-next, Laurent Pinchart

From: Thierry Reding <treding@nvidia.com>

DRM_DUMB_VGA_DAC is a user-visible symbol. Selecting it can cause unmet
direct dependencies such as this (on i386, randconfig):

	warning: (DRM_PL111) selects DRM_DUMB_VGA_DAC which has unmet direct dependencies (HAS_IOMEM && DRM && DRM_BRIDGE && OF)

This is because DRM_DUMB_VGA_DAC depends on OF while DRM_PL111 does not.
It does indirectly depend on OF via the ARM and ARM64 dependencies, but
since it can also be enabled under COMPILE_TEST, randconfig can find a
case where DRM_PL111 is selected without pulling in OF and not meeting
the dependency for DRM_DUMB_VGA_DAC.

Since select is "heavy handed", DRM_DUMB_VGA_DAC is going to be enabled
regardless of the above warning and causes the following build error:

	../drivers/gpu/drm/bridge/dumb-vga-dac.c: In function 'dumb_vga_probe':
	../drivers/gpu/drm/bridge/dumb-vga-dac.c:207:13: error: 'struct drm_bridge' has no member named 'of_node'
	  vga->bridge.of_node = pdev->dev.of_node;

See Documentation/kbuild/kconfig-language.txt, "reverse dependencies".

Fixes: 49f81d80ab84 ("drm/pl111: Support handling bridge timings")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Archit Taneja <architt@codeaurora.org>
Cc: Eric Anholt <eric@anholt.net>
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
 drivers/gpu/drm/pl111/Kconfig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/pl111/Kconfig b/drivers/gpu/drm/pl111/Kconfig
index 82cb3e60ddc8..e5e2abd66491 100644
--- a/drivers/gpu/drm/pl111/Kconfig
+++ b/drivers/gpu/drm/pl111/Kconfig
@@ -8,7 +8,6 @@ config DRM_PL111
 	select DRM_GEM_CMA_HELPER
 	select DRM_BRIDGE
 	select DRM_PANEL_BRIDGE
-	select DRM_DUMB_VGA_DAC
 	select VT_HW_CONSOLE_BINDING if FRAMEBUFFER_CONSOLE
 	help
 	  Choose this option for DRM support for the PL111 CLCD controller.
-- 
2.15.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [PATCH] drm/pl111: Remove reverse dependency on DRM_DUMB_VGA_DAC
  2018-02-20 10:29     ` [PATCH] drm/pl111: Remove reverse dependency on DRM_DUMB_VGA_DAC Thierry Reding
@ 2018-02-20 11:14       ` Archit Taneja
  2018-02-26 10:16         ` Archit Taneja
  2018-02-21  7:05       ` Linus Walleij
  2018-02-22 20:10       ` Eric Anholt
  2 siblings, 1 reply; 7+ messages in thread
From: Archit Taneja @ 2018-02-20 11:14 UTC (permalink / raw)
  To: Thierry Reding, dri-devel, linus.walleij
  Cc: Randy Dunlap, linux-next, Laurent Pinchart



On Tuesday 20 February 2018 03:59 PM, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
> 
> DRM_DUMB_VGA_DAC is a user-visible symbol. Selecting it can cause unmet
> direct dependencies such as this (on i386, randconfig):
> 
> 	warning: (DRM_PL111) selects DRM_DUMB_VGA_DAC which has unmet direct dependencies (HAS_IOMEM && DRM && DRM_BRIDGE && OF)
> 
> This is because DRM_DUMB_VGA_DAC depends on OF while DRM_PL111 does not.
> It does indirectly depend on OF via the ARM and ARM64 dependencies, but
> since it can also be enabled under COMPILE_TEST, randconfig can find a
> case where DRM_PL111 is selected without pulling in OF and not meeting
> the dependency for DRM_DUMB_VGA_DAC.
> 
> Since select is "heavy handed", DRM_DUMB_VGA_DAC is going to be enabled
> regardless of the above warning and causes the following build error:
> 
> 	../drivers/gpu/drm/bridge/dumb-vga-dac.c: In function 'dumb_vga_probe':
> 	../drivers/gpu/drm/bridge/dumb-vga-dac.c:207:13: error: 'struct drm_bridge' has no member named 'of_node'
> 	  vga->bridge.of_node = pdev->dev.of_node;
> 
> See Documentation/kbuild/kconfig-language.txt, "reverse dependencies".

+Linus.

I guess this needs to go in drm-misc-fixes once it is updated to
4.16-rc2.

Thanks,
Archit

> 
> Fixes: 49f81d80ab84 ("drm/pl111: Support handling bridge timings")
> Reported-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> Cc: Archit Taneja <architt@codeaurora.org>
> Cc: Eric Anholt <eric@anholt.net>
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
>   drivers/gpu/drm/pl111/Kconfig | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/pl111/Kconfig b/drivers/gpu/drm/pl111/Kconfig
> index 82cb3e60ddc8..e5e2abd66491 100644
> --- a/drivers/gpu/drm/pl111/Kconfig
> +++ b/drivers/gpu/drm/pl111/Kconfig
> @@ -8,7 +8,6 @@ config DRM_PL111
>   	select DRM_GEM_CMA_HELPER
>   	select DRM_BRIDGE
>   	select DRM_PANEL_BRIDGE
> -	select DRM_DUMB_VGA_DAC
>   	select VT_HW_CONSOLE_BINDING if FRAMEBUFFER_CONSOLE
>   	help
>   	  Choose this option for DRM support for the PL111 CLCD controller.
> 
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [PATCH] drm/pl111: Remove reverse dependency on DRM_DUMB_VGA_DAC
  2018-02-20 10:29     ` [PATCH] drm/pl111: Remove reverse dependency on DRM_DUMB_VGA_DAC Thierry Reding
  2018-02-20 11:14       ` Archit Taneja
@ 2018-02-21  7:05       ` Linus Walleij
  2018-02-22 20:10       ` Eric Anholt
  2 siblings, 0 replies; 7+ messages in thread
From: Linus Walleij @ 2018-02-21  7:05 UTC (permalink / raw)
  To: Thierry Reding
  Cc: Randy Dunlap, Linux-Next Mailing List,
	open list:DRM PANEL DRIVERS, Laurent Pinchart

On Tue, Feb 20, 2018 at 11:29 AM, Thierry Reding
<thierry.reding@gmail.com> wrote:

> From: Thierry Reding <treding@nvidia.com>
>
> DRM_DUMB_VGA_DAC is a user-visible symbol. Selecting it can cause unmet
> direct dependencies such as this (on i386, randconfig):
>
>         warning: (DRM_PL111) selects DRM_DUMB_VGA_DAC which has unmet direct dependencies (HAS_IOMEM && DRM && DRM_BRIDGE && OF)
>
> This is because DRM_DUMB_VGA_DAC depends on OF while DRM_PL111 does not.
> It does indirectly depend on OF via the ARM and ARM64 dependencies, but
> since it can also be enabled under COMPILE_TEST, randconfig can find a
> case where DRM_PL111 is selected without pulling in OF and not meeting
> the dependency for DRM_DUMB_VGA_DAC.
>
> Since select is "heavy handed", DRM_DUMB_VGA_DAC is going to be enabled
> regardless of the above warning and causes the following build error:
>
>         ../drivers/gpu/drm/bridge/dumb-vga-dac.c: In function 'dumb_vga_probe':
>         ../drivers/gpu/drm/bridge/dumb-vga-dac.c:207:13: error: 'struct drm_bridge' has no member named 'of_node'
>           vga->bridge.of_node = pdev->dev.of_node;
>
> See Documentation/kbuild/kconfig-language.txt, "reverse dependencies".
>
> Fixes: 49f81d80ab84 ("drm/pl111: Support handling bridge timings")
> Reported-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> Cc: Archit Taneja <architt@codeaurora.org>
> Cc: Eric Anholt <eric@anholt.net>
> Signed-off-by: Thierry Reding <treding@nvidia.com>

OK sorry about that, I just get to let the platforms that need the bridge
select it explicitly.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [PATCH] drm/pl111: Remove reverse dependency on DRM_DUMB_VGA_DAC
  2018-02-20 10:29     ` [PATCH] drm/pl111: Remove reverse dependency on DRM_DUMB_VGA_DAC Thierry Reding
  2018-02-20 11:14       ` Archit Taneja
  2018-02-21  7:05       ` Linus Walleij
@ 2018-02-22 20:10       ` Eric Anholt
  2 siblings, 0 replies; 7+ messages in thread
From: Eric Anholt @ 2018-02-22 20:10 UTC (permalink / raw)
  To: Thierry Reding, dri-devel; +Cc: Randy Dunlap, linux-next, Laurent Pinchart


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

Thierry Reding <thierry.reding@gmail.com> writes:

> From: Thierry Reding <treding@nvidia.com>
>
> DRM_DUMB_VGA_DAC is a user-visible symbol. Selecting it can cause unmet
> direct dependencies such as this (on i386, randconfig):
>
> 	warning: (DRM_PL111) selects DRM_DUMB_VGA_DAC which has unmet direct dependencies (HAS_IOMEM && DRM && DRM_BRIDGE && OF)
>
> This is because DRM_DUMB_VGA_DAC depends on OF while DRM_PL111 does not.
> It does indirectly depend on OF via the ARM and ARM64 dependencies, but
> since it can also be enabled under COMPILE_TEST, randconfig can find a
> case where DRM_PL111 is selected without pulling in OF and not meeting
> the dependency for DRM_DUMB_VGA_DAC.
>
> Since select is "heavy handed", DRM_DUMB_VGA_DAC is going to be enabled
> regardless of the above warning and causes the following build error:
>
> 	../drivers/gpu/drm/bridge/dumb-vga-dac.c: In function 'dumb_vga_probe':
> 	../drivers/gpu/drm/bridge/dumb-vga-dac.c:207:13: error: 'struct drm_bridge' has no member named 'of_node'
> 	  vga->bridge.of_node = pdev->dev.of_node;
>
> See Documentation/kbuild/kconfig-language.txt, "reverse dependencies".
>
> Fixes: 49f81d80ab84 ("drm/pl111: Support handling bridge timings")
> Reported-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> Cc: Archit Taneja <architt@codeaurora.org>
> Cc: Eric Anholt <eric@anholt.net>
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
>  drivers/gpu/drm/pl111/Kconfig | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/pl111/Kconfig b/drivers/gpu/drm/pl111/Kconfig
> index 82cb3e60ddc8..e5e2abd66491 100644
> --- a/drivers/gpu/drm/pl111/Kconfig
> +++ b/drivers/gpu/drm/pl111/Kconfig
> @@ -8,7 +8,6 @@ config DRM_PL111
>  	select DRM_GEM_CMA_HELPER
>  	select DRM_BRIDGE
>  	select DRM_PANEL_BRIDGE
> -	select DRM_DUMB_VGA_DAC
>  	select VT_HW_CONSOLE_BINDING if FRAMEBUFFER_CONSOLE
>  	help
>  	  Choose this option for DRM support for the PL111 CLCD controller.
> -- 
> 2.15.1

Reviewed-by: Eric Anholt <eric@anholt.net>

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [PATCH] drm/pl111: Remove reverse dependency on DRM_DUMB_VGA_DAC
  2018-02-20 11:14       ` Archit Taneja
@ 2018-02-26 10:16         ` Archit Taneja
  0 siblings, 0 replies; 7+ messages in thread
From: Archit Taneja @ 2018-02-26 10:16 UTC (permalink / raw)
  To: Thierry Reding, dri-devel, linus.walleij
  Cc: Randy Dunlap, linux-next, Laurent Pinchart



On Tuesday 20 February 2018 04:44 PM, Archit Taneja wrote:
> 
> 
> On Tuesday 20 February 2018 03:59 PM, Thierry Reding wrote:
>> From: Thierry Reding <treding@nvidia.com>
>>
>> DRM_DUMB_VGA_DAC is a user-visible symbol. Selecting it can cause unmet
>> direct dependencies such as this (on i386, randconfig):
>>
>>     warning: (DRM_PL111) selects DRM_DUMB_VGA_DAC which has unmet 
>> direct dependencies (HAS_IOMEM && DRM && DRM_BRIDGE && OF)
>>
>> This is because DRM_DUMB_VGA_DAC depends on OF while DRM_PL111 does not.
>> It does indirectly depend on OF via the ARM and ARM64 dependencies, but
>> since it can also be enabled under COMPILE_TEST, randconfig can find a
>> case where DRM_PL111 is selected without pulling in OF and not meeting
>> the dependency for DRM_DUMB_VGA_DAC.
>>
>> Since select is "heavy handed", DRM_DUMB_VGA_DAC is going to be enabled
>> regardless of the above warning and causes the following build error:
>>
>>     ../drivers/gpu/drm/bridge/dumb-vga-dac.c: In function 
>> 'dumb_vga_probe':
>>     ../drivers/gpu/drm/bridge/dumb-vga-dac.c:207:13: error: 'struct 
>> drm_bridge' has no member named 'of_node'
>>       vga->bridge.of_node = pdev->dev.of_node;
>>
>> See Documentation/kbuild/kconfig-language.txt, "reverse dependencies".
> 
> +Linus.
> 
> I guess this needs to go in drm-misc-fixes once it is updated to
> 4.16-rc2.

Looks like this was headed for 4.17, it isn't a part of 4.16. Queued to 
drm-misc-next.

Thanks,
Archit

> 
> Thanks,
> Archit
> 
>>
>> Fixes: 49f81d80ab84 ("drm/pl111: Support handling bridge timings")
>> Reported-by: Randy Dunlap <rdunlap@infradead.org>
>> Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
>> Cc: Archit Taneja <architt@codeaurora.org>
>> Cc: Eric Anholt <eric@anholt.net>
>> Signed-off-by: Thierry Reding <treding@nvidia.com>
>> ---
>>   drivers/gpu/drm/pl111/Kconfig | 1 -
>>   1 file changed, 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/pl111/Kconfig 
>> b/drivers/gpu/drm/pl111/Kconfig
>> index 82cb3e60ddc8..e5e2abd66491 100644
>> --- a/drivers/gpu/drm/pl111/Kconfig
>> +++ b/drivers/gpu/drm/pl111/Kconfig
>> @@ -8,7 +8,6 @@ config DRM_PL111
>>       select DRM_GEM_CMA_HELPER
>>       select DRM_BRIDGE
>>       select DRM_PANEL_BRIDGE
>> -    select DRM_DUMB_VGA_DAC
>>       select VT_HW_CONSOLE_BINDING if FRAMEBUFFER_CONSOLE
>>       help
>>         Choose this option for DRM support for the PL111 CLCD controller.
>>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2018-02-26 10:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20180219131426.14ecac87@canb.auug.org.au>
     [not found] ` <5a671632-f746-52d2-1a9c-1e72a7e2f42b@infradead.org>
2018-02-19 18:30   ` linux-next: Tree for Feb 19 (gpu/drm/pl111/) Randy Dunlap
2018-02-20 10:07     ` Thierry Reding
2018-02-20 10:29     ` [PATCH] drm/pl111: Remove reverse dependency on DRM_DUMB_VGA_DAC Thierry Reding
2018-02-20 11:14       ` Archit Taneja
2018-02-26 10:16         ` Archit Taneja
2018-02-21  7:05       ` Linus Walleij
2018-02-22 20:10       ` Eric Anholt

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).