* [PATCH] drm/tegra: Fix Kconfig dependencies
@ 2014-01-05 18:22 Guenter Roeck
[not found] ` <1388946171-29459-1-git-send-email-linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Guenter Roeck @ 2014-01-05 18:22 UTC (permalink / raw)
To: Thierry Reding, Terje Bergström
Cc: David Airlie, Stephen Warren,
dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
linux-tegra-u79uwXL29TY76Z2rM5mHXA, Guenter Roeck
arm:allmodconfig fails to build with several undefined drm and host1x symbols.
drivers/gpu/drm/tegra/bus.c:52: undefined reference to `drm_dev_alloc'
drivers/gpu/drm/tegra/bus.c:56: undefined reference to `drm_dev_register'
drivers/gpu/drm/tegra/bus.c:67: undefined reference to `drm_dev_free'
drivers/gpu/drm/tegra/bus.c:75: undefined reference to `drm_put_dev'
drivers/gpu/drm/tegra/drm.c:445: undefined reference to `host1x_syncpt_get_base'
drivers/gpu/drm/tegra/drm.c:449: undefined reference to `host1x_syncpt_base_id'
and so on.
This is caused by DRM=m but DRM_TEGRA=y. DRM_TEGRA is bool while DRM is
tristate. DRM_TEGRA can not be set to tristate because it depends on unexported
host1x symbols (and possibly others). Fix by updating DRM_TEGRA dependency.
Also, the DRM_TEGRA help text states that it can be built as module.
Remove that text since it is not (or no longer) correct.
Signed-off-by: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
---
drivers/gpu/drm/tegra/Kconfig | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/tegra/Kconfig b/drivers/gpu/drm/tegra/Kconfig
index 8961ba6..9966547 100644
--- a/drivers/gpu/drm/tegra/Kconfig
+++ b/drivers/gpu/drm/tegra/Kconfig
@@ -1,7 +1,7 @@
config DRM_TEGRA
bool "NVIDIA Tegra DRM"
depends on ARCH_TEGRA || ARCH_MULTIPLATFORM
- depends on DRM
+ depends on DRM=y
select TEGRA_HOST1X
select DRM_KMS_HELPER
select DRM_KMS_FB_HELPER
@@ -11,9 +11,6 @@ config DRM_TEGRA
help
Choose this option if you have an NVIDIA Tegra SoC.
- To compile this driver as a module, choose M here: the module
- will be called tegra-drm.
-
if DRM_TEGRA
config DRM_TEGRA_DEBUG
--
1.7.9.7
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] drm/tegra: Fix Kconfig dependencies
[not found] ` <1388946171-29459-1-git-send-email-linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
@ 2014-01-06 15:39 ` Thierry Reding
[not found] ` <20140106153945.GA6721-AwZRO8vwLAwmlAP/+Wk3EA@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Thierry Reding @ 2014-01-06 15:39 UTC (permalink / raw)
To: Guenter Roeck
Cc: Terje Bergström, David Airlie, Stephen Warren,
dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
linux-tegra-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 1821 bytes --]
On Sun, Jan 05, 2014 at 10:22:51AM -0800, Guenter Roeck wrote:
> arm:allmodconfig fails to build with several undefined drm and host1x symbols.
>
> drivers/gpu/drm/tegra/bus.c:52: undefined reference to `drm_dev_alloc'
> drivers/gpu/drm/tegra/bus.c:56: undefined reference to `drm_dev_register'
> drivers/gpu/drm/tegra/bus.c:67: undefined reference to `drm_dev_free'
> drivers/gpu/drm/tegra/bus.c:75: undefined reference to `drm_put_dev'
> drivers/gpu/drm/tegra/drm.c:445: undefined reference to `host1x_syncpt_get_base'
> drivers/gpu/drm/tegra/drm.c:449: undefined reference to `host1x_syncpt_base_id'
>
> and so on.
>
> This is caused by DRM=m but DRM_TEGRA=y. DRM_TEGRA is bool while DRM is
> tristate. DRM_TEGRA can not be set to tristate because it depends on unexported
> host1x symbols (and possibly others). Fix by updating DRM_TEGRA dependency.
>
> Also, the DRM_TEGRA help text states that it can be built as module.
> Remove that text since it is not (or no longer) correct.
>
> Signed-off-by: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
> ---
> drivers/gpu/drm/tegra/Kconfig | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
Hi Guenter,
I think this should be fixed in latest next, where it is now possible to
build the Tegra DRM driver as a module. All needed host1x symbols are
exported as well.
One thing that strikes me as odd, though, is that I've always thought
Kconfig would warn if a symbol selected as =y depended on a symbol
selected as =m, precisely because of what you describe above. menuconfig
complains about it pretty loudly as well.
Oh, but I see that if I change DRM_TEGRA back to be bool, then Kconfig
doesn't complain anymore, even if DRM_TEGRA=y and DRM=m. Should that
perhaps be considered a bug?
Thierry
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] drm/tegra: Fix Kconfig dependencies
[not found] ` <20140106153945.GA6721-AwZRO8vwLAwmlAP/+Wk3EA@public.gmane.org>
@ 2014-01-06 16:20 ` Guenter Roeck
2014-01-08 13:29 ` Thierry Reding
0 siblings, 1 reply; 8+ messages in thread
From: Guenter Roeck @ 2014-01-06 16:20 UTC (permalink / raw)
To: Thierry Reding
Cc: Terje Bergström, David Airlie, Stephen Warren,
dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
linux-tegra-u79uwXL29TY76Z2rM5mHXA
On Mon, Jan 06, 2014 at 04:39:47PM +0100, Thierry Reding wrote:
> On Sun, Jan 05, 2014 at 10:22:51AM -0800, Guenter Roeck wrote:
> > arm:allmodconfig fails to build with several undefined drm and host1x symbols.
> >
> > drivers/gpu/drm/tegra/bus.c:52: undefined reference to `drm_dev_alloc'
> > drivers/gpu/drm/tegra/bus.c:56: undefined reference to `drm_dev_register'
> > drivers/gpu/drm/tegra/bus.c:67: undefined reference to `drm_dev_free'
> > drivers/gpu/drm/tegra/bus.c:75: undefined reference to `drm_put_dev'
> > drivers/gpu/drm/tegra/drm.c:445: undefined reference to `host1x_syncpt_get_base'
> > drivers/gpu/drm/tegra/drm.c:449: undefined reference to `host1x_syncpt_base_id'
> >
> > and so on.
> >
> > This is caused by DRM=m but DRM_TEGRA=y. DRM_TEGRA is bool while DRM is
> > tristate. DRM_TEGRA can not be set to tristate because it depends on unexported
> > host1x symbols (and possibly others). Fix by updating DRM_TEGRA dependency.
> >
> > Also, the DRM_TEGRA help text states that it can be built as module.
> > Remove that text since it is not (or no longer) correct.
> >
> > Signed-off-by: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
> > ---
> > drivers/gpu/drm/tegra/Kconfig | 5 +----
> > 1 file changed, 1 insertion(+), 4 deletions(-)
>
> Hi Guenter,
>
> I think this should be fixed in latest next, where it is now possible to
> build the Tegra DRM driver as a module. All needed host1x symbols are
> exported as well.
>
> One thing that strikes me as odd, though, is that I've always thought
> Kconfig would warn if a symbol selected as =y depended on a symbol
> selected as =m, precisely because of what you describe above. menuconfig
> complains about it pretty loudly as well.
>
> Oh, but I see that if I change DRM_TEGRA back to be bool, then Kconfig
> doesn't complain anymore, even if DRM_TEGRA=y and DRM=m. Should that
> perhaps be considered a bug?
>
No idea. All I know is that it causes a build failure ;-).
Anyway, are there plans to push the patches changing DRM_TEGRA to tristate
into 3.13 ? This is one of the reasons for arm:allmodconfig to fail. If there
are no plans to push the patches into 3.13, I think it would make sense
to send my patch to Linus and apply the tristate changes on top of it.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] drm/tegra: Fix Kconfig dependencies
2014-01-06 16:20 ` Guenter Roeck
@ 2014-01-08 13:29 ` Thierry Reding
[not found] ` <20140108132924.GA1592-AwZRO8vwLAwmlAP/+Wk3EA@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Thierry Reding @ 2014-01-08 13:29 UTC (permalink / raw)
To: Guenter Roeck
Cc: linux-tegra, Terje Bergström, dri-devel, Stephen Warren
[-- Attachment #1.1: Type: text/plain, Size: 2909 bytes --]
On Mon, Jan 06, 2014 at 08:20:55AM -0800, Guenter Roeck wrote:
> On Mon, Jan 06, 2014 at 04:39:47PM +0100, Thierry Reding wrote:
> > On Sun, Jan 05, 2014 at 10:22:51AM -0800, Guenter Roeck wrote:
> > > arm:allmodconfig fails to build with several undefined drm and host1x symbols.
> > >
> > > drivers/gpu/drm/tegra/bus.c:52: undefined reference to `drm_dev_alloc'
> > > drivers/gpu/drm/tegra/bus.c:56: undefined reference to `drm_dev_register'
> > > drivers/gpu/drm/tegra/bus.c:67: undefined reference to `drm_dev_free'
> > > drivers/gpu/drm/tegra/bus.c:75: undefined reference to `drm_put_dev'
> > > drivers/gpu/drm/tegra/drm.c:445: undefined reference to `host1x_syncpt_get_base'
> > > drivers/gpu/drm/tegra/drm.c:449: undefined reference to `host1x_syncpt_base_id'
> > >
> > > and so on.
> > >
> > > This is caused by DRM=m but DRM_TEGRA=y. DRM_TEGRA is bool while DRM is
> > > tristate. DRM_TEGRA can not be set to tristate because it depends on unexported
> > > host1x symbols (and possibly others). Fix by updating DRM_TEGRA dependency.
> > >
> > > Also, the DRM_TEGRA help text states that it can be built as module.
> > > Remove that text since it is not (or no longer) correct.
> > >
> > > Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> > > ---
> > > drivers/gpu/drm/tegra/Kconfig | 5 +----
> > > 1 file changed, 1 insertion(+), 4 deletions(-)
> >
> > Hi Guenter,
> >
> > I think this should be fixed in latest next, where it is now possible to
> > build the Tegra DRM driver as a module. All needed host1x symbols are
> > exported as well.
> >
> > One thing that strikes me as odd, though, is that I've always thought
> > Kconfig would warn if a symbol selected as =y depended on a symbol
> > selected as =m, precisely because of what you describe above. menuconfig
> > complains about it pretty loudly as well.
> >
> > Oh, but I see that if I change DRM_TEGRA back to be bool, then Kconfig
> > doesn't complain anymore, even if DRM_TEGRA=y and DRM=m. Should that
> > perhaps be considered a bug?
> >
> No idea. All I know is that it causes a build failure ;-).
>
> Anyway, are there plans to push the patches changing DRM_TEGRA to tristate
> into 3.13 ? This is one of the reasons for arm:allmodconfig to fail. If there
> are no plans to push the patches into 3.13, I think it would make sense
> to send my patch to Linus and apply the tristate changes on top of it.
The patches to change DRM_TEGRA to tristate are part of what is queued
for 3.14. While I agree that having allmodconfig working is a worthwhile
goal in itself for build testing, I'm not sure it warrants a patch this
late in the release cycle that will cause conflicts during the merge
window.
It also seems like there are other issues that prevent allmodconfig to
build successfully on ARM not all of them being as easy to fix as this
one.
Thierry
[-- Attachment #1.2: Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] drm/tegra: Fix Kconfig dependencies
[not found] ` <20140108132924.GA1592-AwZRO8vwLAwmlAP/+Wk3EA@public.gmane.org>
@ 2014-01-08 13:48 ` Guenter Roeck
[not found] ` <52CD573C.4020501-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Guenter Roeck @ 2014-01-08 13:48 UTC (permalink / raw)
To: Thierry Reding
Cc: Terje Bergström, David Airlie, Stephen Warren,
dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
linux-tegra-u79uwXL29TY76Z2rM5mHXA
On 01/08/2014 05:29 AM, Thierry Reding wrote:
> On Mon, Jan 06, 2014 at 08:20:55AM -0800, Guenter Roeck wrote:
>> On Mon, Jan 06, 2014 at 04:39:47PM +0100, Thierry Reding wrote:
>>> On Sun, Jan 05, 2014 at 10:22:51AM -0800, Guenter Roeck wrote:
>>>> arm:allmodconfig fails to build with several undefined drm and host1x symbols.
>>>>
>>>> drivers/gpu/drm/tegra/bus.c:52: undefined reference to `drm_dev_alloc'
>>>> drivers/gpu/drm/tegra/bus.c:56: undefined reference to `drm_dev_register'
>>>> drivers/gpu/drm/tegra/bus.c:67: undefined reference to `drm_dev_free'
>>>> drivers/gpu/drm/tegra/bus.c:75: undefined reference to `drm_put_dev'
>>>> drivers/gpu/drm/tegra/drm.c:445: undefined reference to `host1x_syncpt_get_base'
>>>> drivers/gpu/drm/tegra/drm.c:449: undefined reference to `host1x_syncpt_base_id'
>>>>
>>>> and so on.
>>>>
>>>> This is caused by DRM=m but DRM_TEGRA=y. DRM_TEGRA is bool while DRM is
>>>> tristate. DRM_TEGRA can not be set to tristate because it depends on unexported
>>>> host1x symbols (and possibly others). Fix by updating DRM_TEGRA dependency.
>>>>
>>>> Also, the DRM_TEGRA help text states that it can be built as module.
>>>> Remove that text since it is not (or no longer) correct.
>>>>
>>>> Signed-off-by: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
>>>> ---
>>>> drivers/gpu/drm/tegra/Kconfig | 5 +----
>>>> 1 file changed, 1 insertion(+), 4 deletions(-)
>>>
>>> Hi Guenter,
>>>
>>> I think this should be fixed in latest next, where it is now possible to
>>> build the Tegra DRM driver as a module. All needed host1x symbols are
>>> exported as well.
>>>
>>> One thing that strikes me as odd, though, is that I've always thought
>>> Kconfig would warn if a symbol selected as =y depended on a symbol
>>> selected as =m, precisely because of what you describe above. menuconfig
>>> complains about it pretty loudly as well.
>>>
>>> Oh, but I see that if I change DRM_TEGRA back to be bool, then Kconfig
>>> doesn't complain anymore, even if DRM_TEGRA=y and DRM=m. Should that
>>> perhaps be considered a bug?
>>>
>> No idea. All I know is that it causes a build failure ;-).
>>
>> Anyway, are there plans to push the patches changing DRM_TEGRA to tristate
>> into 3.13 ? This is one of the reasons for arm:allmodconfig to fail. If there
>> are no plans to push the patches into 3.13, I think it would make sense
>> to send my patch to Linus and apply the tristate changes on top of it.
>
> The patches to change DRM_TEGRA to tristate are part of what is queued
> for 3.14. While I agree that having allmodconfig working is a worthwhile
> goal in itself for build testing, I'm not sure it warrants a patch this
> late in the release cycle that will cause conflicts during the merge
> window.
>
> It also seems like there are other issues that prevent allmodconfig to
> build successfully on ARM not all of them being as easy to fix as this
> one.
>
All other problems are being addressed.
If arm:allmodconfig is not pursued as buildable, trying to build it is worthless,
and I'll drop it from my list of test builds for -stable. Thanks for letting me know.
Guenter
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] drm/tegra: Fix Kconfig dependencies
[not found] ` <52CD573C.4020501-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
@ 2014-01-08 14:01 ` Thierry Reding
[not found] ` <20140108140137.GA21974-AwZRO8vwLAwmlAP/+Wk3EA@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Thierry Reding @ 2014-01-08 14:01 UTC (permalink / raw)
To: Guenter Roeck, David Airlie
Cc: Terje Bergström, Stephen Warren,
dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
linux-tegra-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 3943 bytes --]
On Wed, Jan 08, 2014 at 05:48:44AM -0800, Guenter Roeck wrote:
> On 01/08/2014 05:29 AM, Thierry Reding wrote:
> >On Mon, Jan 06, 2014 at 08:20:55AM -0800, Guenter Roeck wrote:
> >>On Mon, Jan 06, 2014 at 04:39:47PM +0100, Thierry Reding wrote:
> >>>On Sun, Jan 05, 2014 at 10:22:51AM -0800, Guenter Roeck wrote:
> >>>>arm:allmodconfig fails to build with several undefined drm and host1x symbols.
> >>>>
> >>>>drivers/gpu/drm/tegra/bus.c:52: undefined reference to `drm_dev_alloc'
> >>>>drivers/gpu/drm/tegra/bus.c:56: undefined reference to `drm_dev_register'
> >>>>drivers/gpu/drm/tegra/bus.c:67: undefined reference to `drm_dev_free'
> >>>>drivers/gpu/drm/tegra/bus.c:75: undefined reference to `drm_put_dev'
> >>>>drivers/gpu/drm/tegra/drm.c:445: undefined reference to `host1x_syncpt_get_base'
> >>>>drivers/gpu/drm/tegra/drm.c:449: undefined reference to `host1x_syncpt_base_id'
> >>>>
> >>>>and so on.
> >>>>
> >>>>This is caused by DRM=m but DRM_TEGRA=y. DRM_TEGRA is bool while DRM is
> >>>>tristate. DRM_TEGRA can not be set to tristate because it depends on unexported
> >>>>host1x symbols (and possibly others). Fix by updating DRM_TEGRA dependency.
> >>>>
> >>>>Also, the DRM_TEGRA help text states that it can be built as module.
> >>>>Remove that text since it is not (or no longer) correct.
> >>>>
> >>>>Signed-off-by: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
> >>>>---
> >>>> drivers/gpu/drm/tegra/Kconfig | 5 +----
> >>>> 1 file changed, 1 insertion(+), 4 deletions(-)
> >>>
> >>>Hi Guenter,
> >>>
> >>>I think this should be fixed in latest next, where it is now possible to
> >>>build the Tegra DRM driver as a module. All needed host1x symbols are
> >>>exported as well.
> >>>
> >>>One thing that strikes me as odd, though, is that I've always thought
> >>>Kconfig would warn if a symbol selected as =y depended on a symbol
> >>>selected as =m, precisely because of what you describe above. menuconfig
> >>>complains about it pretty loudly as well.
> >>>
> >>>Oh, but I see that if I change DRM_TEGRA back to be bool, then Kconfig
> >>>doesn't complain anymore, even if DRM_TEGRA=y and DRM=m. Should that
> >>>perhaps be considered a bug?
> >>>
> >>No idea. All I know is that it causes a build failure ;-).
> >>
> >>Anyway, are there plans to push the patches changing DRM_TEGRA to tristate
> >>into 3.13 ? This is one of the reasons for arm:allmodconfig to fail. If there
> >>are no plans to push the patches into 3.13, I think it would make sense
> >>to send my patch to Linus and apply the tristate changes on top of it.
> >
> >The patches to change DRM_TEGRA to tristate are part of what is queued
> >for 3.14. While I agree that having allmodconfig working is a worthwhile
> >goal in itself for build testing, I'm not sure it warrants a patch this
> >late in the release cycle that will cause conflicts during the merge
> >window.
> >
> >It also seems like there are other issues that prevent allmodconfig to
> >build successfully on ARM not all of them being as easy to fix as this
> >one.
> >
>
> All other problems are being addressed.
Okay, if this is indeed the only remaining issue then I think it makes
sense indeed to go through the trouble of fixing it right away rather
than waiting for 3.14.
> If arm:allmodconfig is not pursued as buildable, trying to build it is worthless,
> and I'll drop it from my list of test builds for -stable. Thanks for letting me know.
Right, I hadn't considered -stable builds and this is an issue that's
new in 3.13, isn't it? In that case, and since this is the only
remaining issue, the above patch:
Acked-by: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Dave, since this is a single patch for 3.13 it might be easier for you
to pick it up directly rather than have me send out a pull request.
Either way is fine with me, though.
Thierry
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] drm/tegra: Fix Kconfig dependencies
[not found] ` <20140108140137.GA21974-AwZRO8vwLAwmlAP/+Wk3EA@public.gmane.org>
@ 2014-01-08 16:24 ` Guenter Roeck
[not found] ` <20140108162402.GA6928-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Guenter Roeck @ 2014-01-08 16:24 UTC (permalink / raw)
To: Thierry Reding
Cc: David Airlie, Terje Bergström, Stephen Warren,
dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
linux-tegra-u79uwXL29TY76Z2rM5mHXA
On Wed, Jan 08, 2014 at 03:01:39PM +0100, Thierry Reding wrote:
> On Wed, Jan 08, 2014 at 05:48:44AM -0800, Guenter Roeck wrote:
> > On 01/08/2014 05:29 AM, Thierry Reding wrote:
> > >On Mon, Jan 06, 2014 at 08:20:55AM -0800, Guenter Roeck wrote:
> > >>On Mon, Jan 06, 2014 at 04:39:47PM +0100, Thierry Reding wrote:
> > >>>On Sun, Jan 05, 2014 at 10:22:51AM -0800, Guenter Roeck wrote:
> > >>>>arm:allmodconfig fails to build with several undefined drm and host1x symbols.
> > >>>>
> > >>>>drivers/gpu/drm/tegra/bus.c:52: undefined reference to `drm_dev_alloc'
> > >>>>drivers/gpu/drm/tegra/bus.c:56: undefined reference to `drm_dev_register'
> > >>>>drivers/gpu/drm/tegra/bus.c:67: undefined reference to `drm_dev_free'
> > >>>>drivers/gpu/drm/tegra/bus.c:75: undefined reference to `drm_put_dev'
> > >>>>drivers/gpu/drm/tegra/drm.c:445: undefined reference to `host1x_syncpt_get_base'
> > >>>>drivers/gpu/drm/tegra/drm.c:449: undefined reference to `host1x_syncpt_base_id'
> > >>>>
> > >>>>and so on.
> > >>>>
> > >>>>This is caused by DRM=m but DRM_TEGRA=y. DRM_TEGRA is bool while DRM is
> > >>>>tristate. DRM_TEGRA can not be set to tristate because it depends on unexported
> > >>>>host1x symbols (and possibly others). Fix by updating DRM_TEGRA dependency.
> > >>>>
> > >>>>Also, the DRM_TEGRA help text states that it can be built as module.
> > >>>>Remove that text since it is not (or no longer) correct.
> > >>>>
> > >>>>Signed-off-by: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
> > >>>>---
> > >>>> drivers/gpu/drm/tegra/Kconfig | 5 +----
> > >>>> 1 file changed, 1 insertion(+), 4 deletions(-)
> > >>>
> > >>>Hi Guenter,
> > >>>
> > >>>I think this should be fixed in latest next, where it is now possible to
> > >>>build the Tegra DRM driver as a module. All needed host1x symbols are
> > >>>exported as well.
> > >>>
> > >>>One thing that strikes me as odd, though, is that I've always thought
> > >>>Kconfig would warn if a symbol selected as =y depended on a symbol
> > >>>selected as =m, precisely because of what you describe above. menuconfig
> > >>>complains about it pretty loudly as well.
> > >>>
> > >>>Oh, but I see that if I change DRM_TEGRA back to be bool, then Kconfig
> > >>>doesn't complain anymore, even if DRM_TEGRA=y and DRM=m. Should that
> > >>>perhaps be considered a bug?
> > >>>
> > >>No idea. All I know is that it causes a build failure ;-).
> > >>
> > >>Anyway, are there plans to push the patches changing DRM_TEGRA to tristate
> > >>into 3.13 ? This is one of the reasons for arm:allmodconfig to fail. If there
> > >>are no plans to push the patches into 3.13, I think it would make sense
> > >>to send my patch to Linus and apply the tristate changes on top of it.
> > >
> > >The patches to change DRM_TEGRA to tristate are part of what is queued
> > >for 3.14. While I agree that having allmodconfig working is a worthwhile
> > >goal in itself for build testing, I'm not sure it warrants a patch this
> > >late in the release cycle that will cause conflicts during the merge
> > >window.
> > >
> > >It also seems like there are other issues that prevent allmodconfig to
> > >build successfully on ARM not all of them being as easy to fix as this
> > >one.
> > >
> >
> > All other problems are being addressed.
>
> Okay, if this is indeed the only remaining issue then I think it makes
> sense indeed to go through the trouble of fixing it right away rather
> than waiting for 3.14.
>
> > If arm:allmodconfig is not pursued as buildable, trying to build it is worthless,
> > and I'll drop it from my list of test builds for -stable. Thanks for letting me know.
>
> Right, I hadn't considered -stable builds and this is an issue that's
> new in 3.13, isn't it? In that case, and since this is the only
> remaining issue, the above patch:
>
> Acked-by: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
>
> Dave, since this is a single patch for 3.13 it might be easier for you
> to pick it up directly rather than have me send out a pull request.
> Either way is fine with me, though.
>
For now I have dropped arm:allmodconfig from my list of build tests and replaced
it with a number of additional individual target builds. As I had this or
similar discussions ever since I started testing -stable builds, my conclusion
is that the arm community isn't much interested in keeping arm:allmodconfig
buildable. If that ever changes, I'll be happy to add it back in.
Guenter
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] drm/tegra: Fix Kconfig dependencies
[not found] ` <20140108162402.GA6928-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
@ 2014-01-08 20:04 ` Thierry Reding
0 siblings, 0 replies; 8+ messages in thread
From: Thierry Reding @ 2014-01-08 20:04 UTC (permalink / raw)
To: Guenter Roeck
Cc: David Airlie, Terje Bergström, Stephen Warren,
dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
linux-tegra-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 5148 bytes --]
On Wed, Jan 08, 2014 at 08:24:02AM -0800, Guenter Roeck wrote:
> On Wed, Jan 08, 2014 at 03:01:39PM +0100, Thierry Reding wrote:
> > On Wed, Jan 08, 2014 at 05:48:44AM -0800, Guenter Roeck wrote:
> > > On 01/08/2014 05:29 AM, Thierry Reding wrote:
> > > >On Mon, Jan 06, 2014 at 08:20:55AM -0800, Guenter Roeck wrote:
> > > >>On Mon, Jan 06, 2014 at 04:39:47PM +0100, Thierry Reding wrote:
> > > >>>On Sun, Jan 05, 2014 at 10:22:51AM -0800, Guenter Roeck wrote:
> > > >>>>arm:allmodconfig fails to build with several undefined drm and host1x symbols.
> > > >>>>
> > > >>>>drivers/gpu/drm/tegra/bus.c:52: undefined reference to `drm_dev_alloc'
> > > >>>>drivers/gpu/drm/tegra/bus.c:56: undefined reference to `drm_dev_register'
> > > >>>>drivers/gpu/drm/tegra/bus.c:67: undefined reference to `drm_dev_free'
> > > >>>>drivers/gpu/drm/tegra/bus.c:75: undefined reference to `drm_put_dev'
> > > >>>>drivers/gpu/drm/tegra/drm.c:445: undefined reference to `host1x_syncpt_get_base'
> > > >>>>drivers/gpu/drm/tegra/drm.c:449: undefined reference to `host1x_syncpt_base_id'
> > > >>>>
> > > >>>>and so on.
> > > >>>>
> > > >>>>This is caused by DRM=m but DRM_TEGRA=y. DRM_TEGRA is bool while DRM is
> > > >>>>tristate. DRM_TEGRA can not be set to tristate because it depends on unexported
> > > >>>>host1x symbols (and possibly others). Fix by updating DRM_TEGRA dependency.
> > > >>>>
> > > >>>>Also, the DRM_TEGRA help text states that it can be built as module.
> > > >>>>Remove that text since it is not (or no longer) correct.
> > > >>>>
> > > >>>>Signed-off-by: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
> > > >>>>---
> > > >>>> drivers/gpu/drm/tegra/Kconfig | 5 +----
> > > >>>> 1 file changed, 1 insertion(+), 4 deletions(-)
> > > >>>
> > > >>>Hi Guenter,
> > > >>>
> > > >>>I think this should be fixed in latest next, where it is now possible to
> > > >>>build the Tegra DRM driver as a module. All needed host1x symbols are
> > > >>>exported as well.
> > > >>>
> > > >>>One thing that strikes me as odd, though, is that I've always thought
> > > >>>Kconfig would warn if a symbol selected as =y depended on a symbol
> > > >>>selected as =m, precisely because of what you describe above. menuconfig
> > > >>>complains about it pretty loudly as well.
> > > >>>
> > > >>>Oh, but I see that if I change DRM_TEGRA back to be bool, then Kconfig
> > > >>>doesn't complain anymore, even if DRM_TEGRA=y and DRM=m. Should that
> > > >>>perhaps be considered a bug?
> > > >>>
> > > >>No idea. All I know is that it causes a build failure ;-).
> > > >>
> > > >>Anyway, are there plans to push the patches changing DRM_TEGRA to tristate
> > > >>into 3.13 ? This is one of the reasons for arm:allmodconfig to fail. If there
> > > >>are no plans to push the patches into 3.13, I think it would make sense
> > > >>to send my patch to Linus and apply the tristate changes on top of it.
> > > >
> > > >The patches to change DRM_TEGRA to tristate are part of what is queued
> > > >for 3.14. While I agree that having allmodconfig working is a worthwhile
> > > >goal in itself for build testing, I'm not sure it warrants a patch this
> > > >late in the release cycle that will cause conflicts during the merge
> > > >window.
> > > >
> > > >It also seems like there are other issues that prevent allmodconfig to
> > > >build successfully on ARM not all of them being as easy to fix as this
> > > >one.
> > > >
> > >
> > > All other problems are being addressed.
> >
> > Okay, if this is indeed the only remaining issue then I think it makes
> > sense indeed to go through the trouble of fixing it right away rather
> > than waiting for 3.14.
> >
> > > If arm:allmodconfig is not pursued as buildable, trying to build it is worthless,
> > > and I'll drop it from my list of test builds for -stable. Thanks for letting me know.
> >
> > Right, I hadn't considered -stable builds and this is an issue that's
> > new in 3.13, isn't it? In that case, and since this is the only
> > remaining issue, the above patch:
> >
> > Acked-by: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> >
> > Dave, since this is a single patch for 3.13 it might be easier for you
> > to pick it up directly rather than have me send out a pull request.
> > Either way is fine with me, though.
> >
>
> For now I have dropped arm:allmodconfig from my list of build tests and replaced
> it with a number of additional individual target builds. As I had this or
> similar discussions ever since I started testing -stable builds, my conclusion
> is that the arm community isn't much interested in keeping arm:allmodconfig
> buildable. If that ever changes, I'll be happy to add it back in.
I can't speak for the community as a whole, but I'm certainly interested
in having more automated build coverage. Last time I attempted an allmod
build on ARM myself, which must have been at least 3 months ago, there
were quite a few issues and I didn't have the time to fix all of them. I
hadn't realize that things had improved that much recently.
Thierry
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-01-08 20:04 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-05 18:22 [PATCH] drm/tegra: Fix Kconfig dependencies Guenter Roeck
[not found] ` <1388946171-29459-1-git-send-email-linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2014-01-06 15:39 ` Thierry Reding
[not found] ` <20140106153945.GA6721-AwZRO8vwLAwmlAP/+Wk3EA@public.gmane.org>
2014-01-06 16:20 ` Guenter Roeck
2014-01-08 13:29 ` Thierry Reding
[not found] ` <20140108132924.GA1592-AwZRO8vwLAwmlAP/+Wk3EA@public.gmane.org>
2014-01-08 13:48 ` Guenter Roeck
[not found] ` <52CD573C.4020501-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2014-01-08 14:01 ` Thierry Reding
[not found] ` <20140108140137.GA21974-AwZRO8vwLAwmlAP/+Wk3EA@public.gmane.org>
2014-01-08 16:24 ` Guenter Roeck
[not found] ` <20140108162402.GA6928-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2014-01-08 20:04 ` Thierry Reding
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).