From: Catalin Marinas <catalin.marinas@arm.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Mark Rutland <mark.rutland@arm.com>,
Gavin Shan <gshan@redhat.com>,
kernel-team@android.com, linux-kernel@vger.kernel.org,
Sudeep Holla <sudeep.holla@arm.com>,
Sumit Gupta <sumitg@nvidia.com>, Will Deacon <will@kernel.org>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] fix arm64 build with lack of __cpu_logical_map exported
Date: Sat, 8 Aug 2020 19:29:08 +0100 [thread overview]
Message-ID: <20200808182907.GA2073@gaia> (raw)
In-Reply-To: <20200808152958.GB369184@kroah.com>
On Sat, Aug 08, 2020 at 05:29:58PM +0200, Greg Kroah-Hartman wrote:
> On Sat, Aug 08, 2020 at 04:05:00PM +0100, Catalin Marinas wrote:
> > On Sat, Aug 08, 2020 at 02:42:42PM +0200, Greg Kroah-Hartman wrote:
> > > diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
> > > index 87e81d29e6fb..b421a4756793 100644
> > > --- a/arch/arm64/kernel/setup.c
> > > +++ b/arch/arm64/kernel/setup.c
> > > @@ -275,6 +275,7 @@ static int __init reserve_memblock_reserved_regions(void)
> > > arch_initcall(reserve_memblock_reserved_regions);
> > >
> > > u64 __cpu_logical_map[NR_CPUS] = { [0 ... NR_CPUS-1] = INVALID_HWID };
> > > +EXPORT_SYMBOL_GPL(__cpu_logical_map);
> >
> > This was still under discussion, Sudeep preferring an alternative in the
> > driver:
> >
> > http://lkml.kernel.org/r/20200727172744.GD8003@bogus
> > http://lkml.kernel.org/r/20200724131059.GB6521@bogus
> >
> > Sumit came with a new diff inline that fixes the driver instead of
> > exporting the __cpu_logical_map.
> >
> > https://lore.kernel.org/linux-arm-kernel/e3a4bc21-c334-4d48-90b5-aab8d187939e@nvidia.com/
>
> Ok, but having a broken tree is not nice, how did this survive
> linux-next testing?
I guess defconfig worked ok since tegra194-cpufreq is not a module so we
didn't bother much. The fault was reported for allmodconfig but the
discussion didn't conclude.
> > Sumit, Sudeep, is the above diff sufficient and can it go upstream?
>
> Note that MIPS already export this symbol, so perhaps the drivers that
> need it on that platform should also be fixed the same way?
I push Kefeng's patch to the arm64 for-next/core branch which exports
cpu_logical_map() as a function. We can revert it later is the Tegra
driver is fixed.
I'll send Linus a pull request in a bit, once I finish testing the
branch.
--
Catalin
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: Catalin Marinas <catalin.marinas@arm.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Will Deacon <will@kernel.org>, Gavin Shan <gshan@redhat.com>,
Mark Rutland <mark.rutland@arm.com>,
Sudeep Holla <sudeep.holla@arm.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, kernel-team@android.com,
Sumit Gupta <sumitg@nvidia.com>
Subject: Re: [PATCH] fix arm64 build with lack of __cpu_logical_map exported
Date: Sat, 8 Aug 2020 19:29:08 +0100 [thread overview]
Message-ID: <20200808182907.GA2073@gaia> (raw)
In-Reply-To: <20200808152958.GB369184@kroah.com>
On Sat, Aug 08, 2020 at 05:29:58PM +0200, Greg Kroah-Hartman wrote:
> On Sat, Aug 08, 2020 at 04:05:00PM +0100, Catalin Marinas wrote:
> > On Sat, Aug 08, 2020 at 02:42:42PM +0200, Greg Kroah-Hartman wrote:
> > > diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
> > > index 87e81d29e6fb..b421a4756793 100644
> > > --- a/arch/arm64/kernel/setup.c
> > > +++ b/arch/arm64/kernel/setup.c
> > > @@ -275,6 +275,7 @@ static int __init reserve_memblock_reserved_regions(void)
> > > arch_initcall(reserve_memblock_reserved_regions);
> > >
> > > u64 __cpu_logical_map[NR_CPUS] = { [0 ... NR_CPUS-1] = INVALID_HWID };
> > > +EXPORT_SYMBOL_GPL(__cpu_logical_map);
> >
> > This was still under discussion, Sudeep preferring an alternative in the
> > driver:
> >
> > http://lkml.kernel.org/r/20200727172744.GD8003@bogus
> > http://lkml.kernel.org/r/20200724131059.GB6521@bogus
> >
> > Sumit came with a new diff inline that fixes the driver instead of
> > exporting the __cpu_logical_map.
> >
> > https://lore.kernel.org/linux-arm-kernel/e3a4bc21-c334-4d48-90b5-aab8d187939e@nvidia.com/
>
> Ok, but having a broken tree is not nice, how did this survive
> linux-next testing?
I guess defconfig worked ok since tegra194-cpufreq is not a module so we
didn't bother much. The fault was reported for allmodconfig but the
discussion didn't conclude.
> > Sumit, Sudeep, is the above diff sufficient and can it go upstream?
>
> Note that MIPS already export this symbol, so perhaps the drivers that
> need it on that platform should also be fixed the same way?
I push Kefeng's patch to the arm64 for-next/core branch which exports
cpu_logical_map() as a function. We can revert it later is the Tegra
driver is fixed.
I'll send Linus a pull request in a bit, once I finish testing the
branch.
--
Catalin
next prev parent reply other threads:[~2020-08-08 18:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-08 12:42 [PATCH] fix arm64 build with lack of __cpu_logical_map exported Greg Kroah-Hartman
2020-08-08 12:42 ` Greg Kroah-Hartman
2020-08-08 15:05 ` Catalin Marinas
2020-08-08 15:05 ` Catalin Marinas
2020-08-08 15:29 ` Greg Kroah-Hartman
2020-08-08 15:29 ` Greg Kroah-Hartman
2020-08-08 18:29 ` Catalin Marinas [this message]
2020-08-08 18:29 ` Catalin Marinas
2020-08-09 7:14 ` Greg Kroah-Hartman
2020-08-09 7:14 ` Greg Kroah-Hartman
2020-08-10 7:45 ` Sudeep Holla
2020-08-10 7:45 ` Sudeep Holla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200808182907.GA2073@gaia \
--to=catalin.marinas@arm.com \
--cc=gregkh@linuxfoundation.org \
--cc=gshan@redhat.com \
--cc=kernel-team@android.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=sudeep.holla@arm.com \
--cc=sumitg@nvidia.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.