Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1325609
| From | James Hogan <james.hogan@imgtec.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 06/15] MIPS: CM: Fix mips_cm_max_vp_width for UP kernels |
| Date | 2016-02-03 17:20 +0100 |
| Message-ID | <qY8jV-4ft-43@gated-at.bofh.it> (permalink) |
| References | <qXW93-4Ls-3@gated-at.bofh.it> <qXW95-4Ls-31@gated-at.bofh.it> <qY74u-3fA-15@gated-at.bofh.it> <qY7QS-3Om-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Wed, Feb 03, 2016 at 03:46:34PM +0000, Paul Burton wrote: > On Wed, Feb 03, 2016 at 02:58:59PM +0000, James Hogan wrote: > > On Wed, Feb 03, 2016 at 03:15:26AM +0000, Paul Burton wrote: > > > Fix mips_cm_max_vp_width for UP kernels where it previously referenced > > > smp_num_siblings, which is not declared for UP kernels. This led to > > > build errors such as the following: > > > > > > drivers/built-in.o: In function `$L446': > > > irq-mips-gic.c:(.text+0x1994): undefined reference to `smp_num_siblings' > > > drivers/built-in.o:irq-mips-gic.c:(.text+0x199c): more undefined references to `smp_num_siblings' follow > > > > > > On UP kernels simply return 1, leaving the reference to smp_num_siblings > > > in place only for SMP kernels. > > > > > > Signed-off-by: Paul Burton <paul.burton@imgtec.com> > > > > Need tagging for stable v4.3+? > > It happens that there were no uses of mips_cm_max_vp_width in UP > kernels, but some are added later in this series (the next patch for > instance). So I don't see a need to backport to stable branches. Sorry > that could have been clearer. > > > I do wonder if this should be handled in the header files though... > > As in you don't think it should be handled in headers? It seems like the > logical place to do it to me... > > Or do you mean smp_num_siblings should be defined as 1 for UP kernels? I > did consider that approach, but thought this possibly more semantically > correct since smp isn't in use at all so neither is smp_num_siblings. Yeh, I meant this (didn't really register that the code in this patch was a header too tbh). Cheers James > > Thanks, > Paul > > > Cheers > > James > > > > > --- > > > > > > arch/mips/include/asm/mips-cm.h | 5 ++++- > > > 1 file changed, 4 insertions(+), 1 deletion(-) > > > > > > diff --git a/arch/mips/include/asm/mips-cm.h b/arch/mips/include/asm/mips-cm.h > > > index 1395bbc..3fdb6c9 100644 > > > --- a/arch/mips/include/asm/mips-cm.h > > > +++ b/arch/mips/include/asm/mips-cm.h > > > @@ -462,7 +462,10 @@ static inline unsigned int mips_cm_max_vp_width(void) > > > if (mips_cm_revision() >= CM_REV_CM3) > > > return read_gcr_sys_config2() & CM_GCR_SYS_CONFIG2_MAXVPW_MSK; > > > > > > - return smp_num_siblings; > > > + if (config_enabled(CONFIG_SMP)) > > > + return smp_num_siblings; > > > + > > > + return 1; > > > } > > > > > > /** > > > -- > > > 2.7.0 > > > > > > > >
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 00/15] Support for MIPSr6 Virtual Processors (multi-threading) Paul Burton <paul.burton@imgtec.com> - 2016-02-03 04:20 +0100
[PATCH 08/15] irqchip: mips-gic: Provide VP ID accessor Paul Burton <paul.burton@imgtec.com> - 2016-02-03 04:20 +0100
[PATCH 06/15] MIPS: CM: Fix mips_cm_max_vp_width for UP kernels Paul Burton <paul.burton@imgtec.com> - 2016-02-03 04:20 +0100
Re: [PATCH 06/15] MIPS: CM: Fix mips_cm_max_vp_width for UP kernels James Hogan <james.hogan@imgtec.com> - 2016-02-03 16:00 +0100
Re: [PATCH 06/15] MIPS: CM: Fix mips_cm_max_vp_width for UP kernels Paul Burton <paul.burton@imgtec.com> - 2016-02-03 16:50 +0100
Re: [PATCH 06/15] MIPS: CM: Fix mips_cm_max_vp_width for UP kernels James Hogan <james.hogan@imgtec.com> - 2016-02-03 17:20 +0100
[PATCH 15/15] MIPS: smp-cps: Stop printing EJTAG exceptions to UART Paul Burton <paul.burton@imgtec.com> - 2016-02-03 04:30 +0100
csiph-web