From: Anton Vorontsov <hidden> Date: 2008-12-05 16:55:07
Some 83xx boards were not ready for the optional QUICC Engine support.
This patch fixes following build errors:
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb308): undefined reference to `par_io_data_set'
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb334): undefined reference to `par_io_data_set'
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb408): undefined reference to `qe_ic_get_high_irq'
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb478): undefined reference to `qe_ic_get_low_irq'
arch/powerpc/platforms/built-in.o: In function `mpc832x_spi_init':
mpc832x_rdb.c:(.init.text+0x574c): undefined reference to `par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x5768): undefined reference to `par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x5784): undefined reference to `par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x57a0): undefined reference to `par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x57bc): undefined reference to `par_io_config_pin'
arch/powerpc/platforms/built-in.o:mpc832x_rdb.c:(.init.text+0x57d8): more undefined references to `par_io_config_pin' follow
arch/powerpc/platforms/built-in.o: In function `mpc836x_rdk_init_IRQ':
mpc836x_rdk.c:(.init.text+0x5e84): undefined reference to `qe_ic_init'
arch/powerpc/platforms/built-in.o: In function `mpc836x_rdk_setup_arch':
mpc836x_rdk.c:(.init.text+0x5f10): undefined reference to `qe_reset'
make: *** [.tmp_vmlinux1] Error 1
Signed-off-by: Anton Vorontsov <redacted>
---
This patch implements traditional way of !QE case handling.
Alternative version is coming (w/o ifdefs in the board files).
p.s. I don't know if it is 2.6.28 material...
arch/powerpc/platforms/83xx/mpc832x_rdb.c | 3 ++-
arch/powerpc/platforms/83xx/mpc836x_rdk.c | 6 ++++--
2 files changed, 6 insertions(+), 3 deletions(-)
From: Anton Vorontsov <hidden> Date: 2008-12-05 16:59:15
Some 83xx boards were not ready for the optional QUICC Engine support.
This patch fixes following build errors:
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb308): undefined reference to `par_io_data_set'
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb334): undefined reference to `par_io_data_set'
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb408): undefined reference to `qe_ic_get_high_irq'
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb478): undefined reference to `qe_ic_get_low_irq'
arch/powerpc/platforms/built-in.o: In function `mpc832x_spi_init':
mpc832x_rdb.c:(.init.text+0x574c): undefined reference to `par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x5768): undefined reference to `par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x5784): undefined reference to `par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x57a0): undefined reference to `par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x57bc): undefined reference to `par_io_config_pin'
arch/powerpc/platforms/built-in.o:mpc832x_rdb.c:(.init.text+0x57d8): more undefined references to `par_io_config_pin' follow
arch/powerpc/platforms/built-in.o: In function `mpc836x_rdk_init_IRQ':
mpc836x_rdk.c:(.init.text+0x5e84): undefined reference to `qe_ic_init'
arch/powerpc/platforms/built-in.o: In function `mpc836x_rdk_setup_arch':
mpc836x_rdk.c:(.init.text+0x5f10): undefined reference to `qe_reset'
make: *** [.tmp_vmlinux1] Error 1
Signed-off-by: Anton Vorontsov <redacted>
---
arch/powerpc/include/asm/qe.h | 16 ++++++++++++++--
arch/powerpc/include/asm/qe_ic.h | 21 +++++++++++++++++----
2 files changed, 31 insertions(+), 6 deletions(-)
From: Kumar Gala <hidden> Date: 2008-12-05 17:12:01
On Dec 5, 2008, at 10:55 AM, Anton Vorontsov wrote:
This patch implements traditional way of !QE case handling.
Alternative version is coming (w/o ifdefs in the board files).
p.s. I don't know if it is 2.6.28 material...
arch/powerpc/platforms/83xx/mpc832x_rdb.c | 3 ++-
arch/powerpc/platforms/83xx/mpc836x_rdk.c | 6 ++++--
2 files changed, 6 insertions(+), 3 deletions(-)
this doesn't seem critical right now so I'd say we wait for .29
- k
From: Timur Tabi <hidden> Date: 2008-12-05 17:14:32
Kumar Gala wrote:
this doesn't seem critical right now so I'd say we wait for .29
I agree. None of the defconfigs or default behavior expose this bug. I don't
expect anyone to actually turn off the QE in a real-world situation.
--
Timur Tabi
Linux kernel developer at Freescale
From: Kumar Gala <hidden> Date: 2008-12-16 18:20:19
On Dec 5, 2008, at 10:55 AM, Anton Vorontsov wrote:
Some 83xx boards were not ready for the optional QUICC Engine support.
This patch fixes following build errors:
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb308): undefined reference to `par_io_data_set'
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb334): undefined reference to `par_io_data_set'
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb408): undefined reference to `qe_ic_get_high_irq'
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb478): undefined reference to `qe_ic_get_low_irq'
arch/powerpc/platforms/built-in.o: In function `mpc832x_spi_init':
mpc832x_rdb.c:(.init.text+0x574c): undefined reference to
`par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x5768): undefined reference to
`par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x5784): undefined reference to
`par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x57a0): undefined reference to
`par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x57bc): undefined reference to
`par_io_config_pin'
arch/powerpc/platforms/built-in.o:mpc832x_rdb.c:(.init.text+0x57d8):
more undefined references to `par_io_config_pin' follow
arch/powerpc/platforms/built-in.o: In function `mpc836x_rdk_init_IRQ':
mpc836x_rdk.c:(.init.text+0x5e84): undefined reference to `qe_ic_init'
arch/powerpc/platforms/built-in.o: In function
`mpc836x_rdk_setup_arch':
mpc836x_rdk.c:(.init.text+0x5f10): undefined reference to `qe_reset'
make: *** [.tmp_vmlinux1] Error 1
Signed-off-by: Anton Vorontsov <redacted>
---
This patch implements traditional way of !QE case handling.
Alternative version is coming (w/o ifdefs in the board files).
p.s. I don't know if it is 2.6.28 material...
what's the state of this patch vs the alternate version?
- k
From: Anton Vorontsov <hidden> Date: 2008-12-16 18:44:53
On Tue, Dec 16, 2008 at 12:18:07PM -0600, Kumar Gala wrote:
[..]
quoted
This patch implements traditional way of !QE case handling.
Alternative version is coming (w/o ifdefs in the board files).
p.s. I don't know if it is 2.6.28 material...
what's the state of this patch vs the alternate version?
Pros of the alternative version:
- No #ifdefs in .c files.
Cons of the alternative version:
- For this code (assuming QE=n):
if ((np = of_find_node_by_name(NULL, "par_io")) != NULL)
par_io_init(np);
GCC can still issue the of_find_node_by_name() call. (I wonder if
there is any way to tell gcc that particular function doesn't
produce any side-effects so that gcc can optimize it away too).
It's up to you to decide which version you want to merge.
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
From: Scott Wood <hidden> Date: 2008-12-16 19:01:02
Anton Vorontsov wrote:
GCC can still issue the of_find_node_by_name() call. (I wonder if
there is any way to tell gcc that particular function doesn't
produce any side-effects so that gcc can optimize it away too).
From: Anton Vorontsov <hidden> Date: 2008-12-16 19:14:21
On Tue, Dec 16, 2008 at 01:00:13PM -0600, Scott Wood wrote:
Anton Vorontsov wrote:
quoted
GCC can still issue the of_find_node_by_name() call. (I wonder if
there is any way to tell gcc that particular function doesn't
produce any side-effects so that gcc can optimize it away too).
__attribute__((pure))
Ah, thanks!
But I forgot that of_find_node_by_name() and friends aren't
actually "pure", they're getting the node. :-(
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
From: Kumar Gala <hidden> Date: 2008-12-16 23:01:21
On Dec 16, 2008, at 1:14 PM, Anton Vorontsov wrote:
On Tue, Dec 16, 2008 at 01:00:13PM -0600, Scott Wood wrote:
quoted
Anton Vorontsov wrote:
quoted
GCC can still issue the of_find_node_by_name() call. (I wonder if
there is any way to tell gcc that particular function doesn't
produce any side-effects so that gcc can optimize it away too).
__attribute__((pure))
Ah, thanks!
But I forgot that of_find_node_by_name() and friends aren't
actually "pure", they're getting the node. :-(
Looking at include/linux/compiler-gcc.h I'm guessing the proper way to
use it is __pure & inclusion of compiler.h
- k
From: Anton Vorontsov <hidden> Date: 2008-12-22 17:12:12
On Fri, Dec 05, 2008 at 07:55:04PM +0300, Anton Vorontsov wrote:
Some 83xx boards were not ready for the optional QUICC Engine support.
This patch fixes following build errors:
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb308): undefined reference to `par_io_data_set'
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb334): undefined reference to `par_io_data_set'
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb408): undefined reference to `qe_ic_get_high_irq'
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb478): undefined reference to `qe_ic_get_low_irq'
arch/powerpc/platforms/built-in.o: In function `mpc832x_spi_init':
mpc832x_rdb.c:(.init.text+0x574c): undefined reference to `par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x5768): undefined reference to `par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x5784): undefined reference to `par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x57a0): undefined reference to `par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x57bc): undefined reference to `par_io_config_pin'
arch/powerpc/platforms/built-in.o:mpc832x_rdb.c:(.init.text+0x57d8): more undefined references to `par_io_config_pin' follow
arch/powerpc/platforms/built-in.o: In function `mpc836x_rdk_init_IRQ':
mpc836x_rdk.c:(.init.text+0x5e84): undefined reference to `qe_ic_init'
arch/powerpc/platforms/built-in.o: In function `mpc836x_rdk_setup_arch':
mpc836x_rdk.c:(.init.text+0x5f10): undefined reference to `qe_reset'
make: *** [.tmp_vmlinux1] Error 1
Signed-off-by: Anton Vorontsov <redacted>
---
Kumar,
After all I think we should apply this version.
Soon I'll send cleanup patches for all QE boards to remove need
for most #ifdefs.
But so far let's be consistent and do what other boards are doing.
Thanks,
quoted hunk
This patch implements traditional way of !QE case handling.
Alternative version is coming (w/o ifdefs in the board files).
p.s. I don't know if it is 2.6.28 material...
arch/powerpc/platforms/83xx/mpc832x_rdb.c | 3 ++-
arch/powerpc/platforms/83xx/mpc836x_rdk.c | 6 ++++--
2 files changed, 6 insertions(+), 3 deletions(-)
From: Kumar Gala <hidden> Date: 2008-12-30 17:21:21
On Dec 5, 2008, at 10:55 AM, Anton Vorontsov wrote:
Some 83xx boards were not ready for the optional QUICC Engine support.
This patch fixes following build errors:
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb308): undefined reference to `par_io_data_set'
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb334): undefined reference to `par_io_data_set'
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb408): undefined reference to `qe_ic_get_high_irq'
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb478): undefined reference to `qe_ic_get_low_irq'
arch/powerpc/platforms/built-in.o: In function `mpc832x_spi_init':
mpc832x_rdb.c:(.init.text+0x574c): undefined reference to
`par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x5768): undefined reference to
`par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x5784): undefined reference to
`par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x57a0): undefined reference to
`par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x57bc): undefined reference to
`par_io_config_pin'
arch/powerpc/platforms/built-in.o:mpc832x_rdb.c:(.init.text+0x57d8):
more undefined references to `par_io_config_pin' follow
arch/powerpc/platforms/built-in.o: In function `mpc836x_rdk_init_IRQ':
mpc836x_rdk.c:(.init.text+0x5e84): undefined reference to `qe_ic_init'
arch/powerpc/platforms/built-in.o: In function
`mpc836x_rdk_setup_arch':
mpc836x_rdk.c:(.init.text+0x5f10): undefined reference to `qe_reset'
make: *** [.tmp_vmlinux1] Error 1
Signed-off-by: Anton Vorontsov <redacted>
---
This patch implements traditional way of !QE case handling.
Alternative version is coming (w/o ifdefs in the board files).
p.s. I don't know if it is 2.6.28 material...
arch/powerpc/platforms/83xx/mpc832x_rdb.c | 3 ++-
arch/powerpc/platforms/83xx/mpc836x_rdk.c | 6 ++++--
2 files changed, 6 insertions(+), 3 deletions(-)
From: Kumar Gala <hidden> Date: 2008-12-30 17:26:10
On Dec 5, 2008, at 10:59 AM, Anton Vorontsov wrote:
Some 83xx boards were not ready for the optional QUICC Engine support.
This patch fixes following build errors:
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb308): undefined reference to `par_io_data_set'
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb334): undefined reference to `par_io_data_set'
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb408): undefined reference to `qe_ic_get_high_irq'
arch/powerpc/platforms/built-in.o: In function `flush_disable_caches':
(.text+0xb478): undefined reference to `qe_ic_get_low_irq'
arch/powerpc/platforms/built-in.o: In function `mpc832x_spi_init':
mpc832x_rdb.c:(.init.text+0x574c): undefined reference to
`par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x5768): undefined reference to
`par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x5784): undefined reference to
`par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x57a0): undefined reference to
`par_io_config_pin'
mpc832x_rdb.c:(.init.text+0x57bc): undefined reference to
`par_io_config_pin'
arch/powerpc/platforms/built-in.o:mpc832x_rdb.c:(.init.text+0x57d8):
more undefined references to `par_io_config_pin' follow
arch/powerpc/platforms/built-in.o: In function `mpc836x_rdk_init_IRQ':
mpc836x_rdk.c:(.init.text+0x5e84): undefined reference to `qe_ic_init'
arch/powerpc/platforms/built-in.o: In function
`mpc836x_rdk_setup_arch':
mpc836x_rdk.c:(.init.text+0x5f10): undefined reference to `qe_reset'
make: *** [.tmp_vmlinux1] Error 1
Signed-off-by: Anton Vorontsov <redacted>
---
arch/powerpc/include/asm/qe.h | 16 ++++++++++++++--
arch/powerpc/include/asm/qe_ic.h | 21 +++++++++++++++++----
2 files changed, 31 insertions(+), 6 deletions(-)