Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1298472 > unrolled thread
| Started by | Noam Camus <noamc@ezchip.com> |
|---|---|
| First post | 2015-12-28 03:50 +0100 |
| Last post | 2015-12-28 12:20 +0100 |
| Articles | 5 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v5 04/20] clocksource: Add NPS400 timers driver Noam Camus <noamc@ezchip.com> - 2015-12-28 03:50 +0100
Re: [PATCH v5 04/20] clocksource: Add NPS400 timers driver Daniel Lezcano <daniel.lezcano@linaro.org> - 2015-12-28 10:10 +0100
Re: [PATCH v5 04/20] clocksource: Add NPS400 timers driver Vineet Gupta <Vineet.Gupta1@synopsys.com> - 2015-12-28 11:40 +0100
Re: [PATCH v5 04/20] clocksource: Add NPS400 timers driver Daniel Lezcano <daniel.lezcano@linaro.org> - 2015-12-28 12:00 +0100
Re: [PATCH v5 04/20] clocksource: Add NPS400 timers driver Vineet Gupta <Vineet.Gupta1@synopsys.com> - 2015-12-28 12:20 +0100
| From | Noam Camus <noamc@ezchip.com> |
|---|---|
| Date | 2015-12-28 03:50 +0100 |
| Subject | Re: [PATCH v5 04/20] clocksource: Add NPS400 timers driver |
| Message-ID | <qKw3k-3Io-763@gated-at.bofh.it> |
>From: kbuild test robot <lkp@intel.com> >Sent: Sunday, December 27, 2015 4:55 PM >[if your patch is applied to the wrong git tree, please drop us a note to help improving the system] >Hi Noam, >[auto build test ERROR on arc/for-next] >[also build test ERROR on v4.4-rc6 next-20151223] >url: https://github.com/0day-ci/linux/commits/Noam-Camus/Adding-plat-eznps-to-ARC/20151227-220433 >base: https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc for-next >config: i386-allmodconfig (attached as .config) >reproduce: > # save the attached .config to linux build tree > make ARCH=i386 This is meant for ARC only (not i386), I will add to the Kconfig file a dependency on my platform. -Noam-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Daniel Lezcano <daniel.lezcano@linaro.org> |
|---|---|
| Date | 2015-12-28 10:10 +0100 |
| Message-ID | <qKBYt-8fe-9@gated-at.bofh.it> |
| In reply to | #1298472 |
On 12/27/2015 10:41 PM, Noam Camus wrote: >> From: kbuild test robot <lkp@intel.com> >> Sent: Sunday, December 27, 2015 4:55 PM > >> [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] >> Hi Noam, > >> [auto build test ERROR on arc/for-next] >> [also build test ERROR on v4.4-rc6 next-20151223] > >> url: https://github.com/0day-ci/linux/commits/Noam-Camus/Adding-plat-eznps-to-ARC/20151227-220433 >> base: https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc for-next >> config: i386-allmodconfig (attached as .config) >> reproduce: >> # save the attached .config to linux build tree >> make ARCH=i386 > > This is meant for ARC only (not i386), I will add to the Kconfig file a dependency on my platform. Hi Noam, for compilation test coverage it would be nice to not restrict the to ARC only but change the write_aux_reg to a common name across the different arch if possible. -- Daniel -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Vineet Gupta <Vineet.Gupta1@synopsys.com> |
|---|---|
| Date | 2015-12-28 11:40 +0100 |
| Message-ID | <qKDnA-AY-13@gated-at.bofh.it> |
| In reply to | #1298546 |
On Monday 28 December 2015 02:30 PM, Daniel Lezcano wrote: >>> reproduce: >>> # save the attached .config to linux build tree >>> make ARCH=i386 >> >> This is meant for ARC only (not i386), I will add to the Kconfig file a >> dependency on my platform. > > Hi Noam, > > for compilation test coverage it would be nice to not restrict the to ARC only but > change the write_aux_reg to a common name across the different arch if possible. > > -- Daniel Hi Daniel, AUX registers is a ARC specific mechanism used to access some of the core functionality (intc, caches, ....) which other arches likely do via MMIO. I don't think a generic abstraction exists. And IMHO it doesn't make sense to invent one given this may not map directly to other arches. This was one of the key reasons arc intc/timers were not added to drivers/* in first place. I do agree with compilation test coverage aspect though. Maybe we add a *hack* to include/soc/nps/common.h #ifndef __ARC__ #define write_aux_reg(r, v) #define read_aux_reg(r) 0 #endif What say you ? -Vineet -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Daniel Lezcano <daniel.lezcano@linaro.org> |
|---|---|
| Date | 2015-12-28 12:00 +0100 |
| Message-ID | <qKDGW-IK-17@gated-at.bofh.it> |
| In reply to | #1298605 |
On 12/28/2015 11:35 AM, Vineet Gupta wrote: > On Monday 28 December 2015 02:30 PM, Daniel Lezcano wrote: >>>> reproduce: >>>> # save the attached .config to linux build tree >>>> make ARCH=i386 >>> >>> This is meant for ARC only (not i386), I will add to the Kconfig file a >>> dependency on my platform. >> >> Hi Noam, >> >> for compilation test coverage it would be nice to not restrict the to ARC only but >> change the write_aux_reg to a common name across the different arch if possible. >> >> -- Daniel > > Hi Daniel, > > AUX registers is a ARC specific mechanism used to access some of the core > functionality (intc, caches, ....) which other arches likely do via MMIO. I don't > think a generic abstraction exists. And IMHO it doesn't make sense to invent one > given this may not map directly to other arches. > > This was one of the key reasons arc intc/timers were not added to drivers/* in > first place. > > I do agree with compilation test coverage aspect though. > Maybe we add a *hack* to include/soc/nps/common.h > > #ifndef __ARC__ > #define write_aux_reg(r, v) > #define read_aux_reg(r) 0 > #endif > > What say you ? Yes that's an alternative. Perhaps instead of the __ARC__: /* * Define dummy macros to let different architectures to * compile test some drivers, eg. the timer. */ #ifndef write_aux_reg #define write_aux_reg(r, v) #endif #ifndef read_aux_reg #define read_aux_reg(r) 0 #endif Now that header must be included always *after* asm/arcregs.h. Not sure this kind of implicit ordering is not prone to bug. -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Vineet Gupta <Vineet.Gupta1@synopsys.com> |
|---|---|
| Date | 2015-12-28 12:20 +0100 |
| Message-ID | <qKE0i-17I-11@gated-at.bofh.it> |
| In reply to | #1298607 |
On Monday 28 December 2015 04:25 PM, Daniel Lezcano wrote: > On 12/28/2015 11:35 AM, Vineet Gupta wrote: >> On Monday 28 December 2015 02:30 PM, Daniel Lezcano wrote: >>>>> reproduce: >>>>> # save the attached .config to linux build tree >>>>> make ARCH=i386 >>>> >>>> This is meant for ARC only (not i386), I will add to the Kconfig file a >>>> dependency on my platform. >>> >>> Hi Noam, >>> >>> for compilation test coverage it would be nice to not restrict the to ARC only but >>> change the write_aux_reg to a common name across the different arch if possible. >>> >>> -- Daniel >> >> Hi Daniel, >> >> AUX registers is a ARC specific mechanism used to access some of the core >> functionality (intc, caches, ....) which other arches likely do via MMIO. I don't >> think a generic abstraction exists. And IMHO it doesn't make sense to invent one >> given this may not map directly to other arches. >> >> This was one of the key reasons arc intc/timers were not added to drivers/* in >> first place. >> >> I do agree with compilation test coverage aspect though. >> Maybe we add a *hack* to include/soc/nps/common.h >> >> #ifndef __ARC__ >> #define write_aux_reg(r, v) >> #define read_aux_reg(r) 0 >> #endif >> >> What say you ? > > Yes that's an alternative. > > Perhaps instead of the __ARC__: > > /* > * Define dummy macros to let different architectures to > * compile test some drivers, eg. the timer. > */ > #ifndef write_aux_reg > #define write_aux_reg(r, v) > #endif > > #ifndef read_aux_reg > #define read_aux_reg(r) 0 > #endif > > Now that header must be included always *after* asm/arcregs.h. > > Not sure this kind of implicit ordering is not prone to bug. Indeed, this all seems too fragile. The main point here is to allow building of this code on !ARC and that can simply be done with my original proposal, w/o adding any other ordering rules/dependencies for ARC builds ! -Vineet -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web