Skip to contentSkip to conversation

build problems with powerpc allmodconfig

DISCUSSION Christoph Hellwig 2 participants 3 messages Oct 31, 2006

lore
Share & tools
lore
#0 lore raw

When trying to build an allmodconfig kernel on powerpc I run into three errors, all related to the integeration of iseries support into the main kernel image:

- vicocons.c can't be compiled at the same time as CONFIG_VT, but instead of expressing that in the Kconfig it errors out in that case. This should at least be a Kconfig dependency, but long term viocons must work at the same time as the normal vt code to have a single ppc64 image
- vioscsi linkage fails because iseries_vscsi.c and rpa_vscsi.c. This needs some trivial indirection via function vectors, but how can we find out which one to use from the driver? Both seem to look the same in the device tree
- arch/powerpc/platforms/iseries/setup.c references rd_size when CONFIG_INITRD is set. But rd_size is defined drivers/block/rd.c which can me modular (and is selected by CONFIG_BLK_DEV_RAM). This same bug is repeated in the arm amd arm26 code, but except for those no one outside of rd.c uses this symbol. I don't see a point why arch code should modify this as it's already big enough.

#1 lore raw
Quoted 6 lines · On Tue, 31 Oct 2006 15:22:13 +0100 Christoph Hellwig <[email protected]> wrote:

- vicocons.c can't be compiled at the same time as CONFIG_VT, but instead of expressing that in the Kconfig it errors out in that case. This should at least be a Kconfig dependency, but long term viocons must work at the same time as the normal vt code to have a single ppc64 image

viocons is deprecated (in favour of hvc_iseries) so we just need Kconfig to say to build it only CONFIG_VT is not defined.

Quoted 4 lines

- vioscsi linkage fails because iseries_vscsi.c and rpa_vscsi.c. This needs some trivial indirection via function vectors, but how can we find out which one to use from the driver? Both seem to look the same in the device tree

The maintainer suggested that we just don't build vioscsi for iseries if we are building the rpa version as it is not often used (in particular, it is not used for installations). We could, however distinguish them by changing the "compat" field in the iSeries device tree if we wished.

Quoted 6 lines

- arch/powerpc/platforms/iseries/setup.c references rd_size when CONFIG_INITRD is set. But rd_size is defined drivers/block/rd.c which can me modular (and is selected by CONFIG_BLK_DEV_RAM). This same bug is repeated in the arm amd arm26 code, but except for those no one outside of rd.c uses this symbol. I don't see a point why arch code should modify this as it's already big enough.

A fix for this has already been posted
(http://patchwork.ozlabs.org/linuxppc/patch?id=7523).

--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/

#2 lore raw
Quoted 10 lines · On Wed, 1 Nov 2006 02:22:13 +1100 Stephen Rothwell <[email protected]> wrote:
Quoted 7 lines · On Tue, 31 Oct 2006 15:22:13 +0100 Christoph Hellwig <[email protected]> wrote:

- arch/powerpc/platforms/iseries/setup.c references rd_size when CONFIG_INITRD is set. But rd_size is defined drivers/block/rd.c which can me modular (and is selected by CONFIG_BLK_DEV_RAM). This same bug is repeated in the arm amd arm26 code, but except for those no one outside of rd.c uses this symbol. I don't see a point why arch code should modify this as it's already big enough.

Quoted 2 lines

A fix for this has already been posted
(http://patchwork.ozlabs.org/linuxppc/patch?id=7523).

This patch is already in the powerpc git tree.
--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/