[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK8P3a24WPVX3t4_X=muLfYUXtK6UOOHATrLQT3y_tWSb2XYrQ@mail.gmail.com>
Date: Thu, 4 Feb 2021 18:16:38 +0100
From: Arnd Bergmann <arnd@...nel.org>
To: Alex Elder <elder@...aro.org>
Cc: Ohad Ben-Cohen <ohad@...ery.com>,
Bjorn Andersson <bjorn.andersson@...aro.org>,
Mathieu Poirier <mathieu.poirier@...aro.org>,
Chris Lew <clew@...eaurora.org>,
Rishabh Bhatnagar <rishabhb@...eaurora.org>,
Arnd Bergmann <arnd@...db.de>, Suman Anna <s-anna@...com>,
"Andrew F. Davis" <afd@...com>,
Alexandre Courbot <acourbot@...omium.org>,
Siddharth Gupta <sidgup@...eaurora.org>,
Paul Cercueil <paul@...pouillou.net>,
Colin Ian King <colin.king@...onical.com>,
linux-remoteproc@...r.kernel.org,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] remoteproc: qcom: fix glink dependencies
On Thu, Feb 4, 2021 at 5:16 PM Alex Elder <elder@...aro.org> wrote:
>
> On 2/4/21 9:40 AM, Arnd Bergmann wrote:
> > From: Arnd Bergmann <arnd@...db.de>
> >
> > Building the remoteproc drivers into the kernel while the qcom_glink
> > code is in a loadable module results in a link error:
> >
> > ld.lld: error: undefined symbol: qcom_glink_ssr_notify
> >>>> referenced by vmlinux.o:(glink_subdev_unprepare)
> >
> > Add a Kconfig dependency to avoid this.
>
> So if they're incompatible in that way it's declared in the
> header but not defined in the kernel so the link fails.
>
> And at issue is anything that calls qcom_add_glink_subdev(),
> which is qcom_q6v5_{adsp,mss,pas,wcss}.c, and those are
> selected by CONFIG_QCOM_Q6V5_{ADSP,MSS,PAS,WCSS}.
>
> But I don't see why QCOM_WCNSS_PIL needs the dependency.
>
> Can you explain that? Other that that this looks good
> to me (and I'll offer reviewed-by with your response).
The problem is that QCOM_WCNSS_PIL selects
QCOM_RPROC_COMMON, so qcom_common.o is built-in
whenever QCOM_WCNSS_PIL=y, and this will lead to the
same link failure, regardless of whether the function is needed
or not.
Arnd
Powered by blists - more mailing lists