* [2.4 PATCH] problems with modular and nonmodular ide mix
@ 2004-07-19 11:01 Meelis Roos
2004-07-31 15:02 ` Marcelo Tosatti
0 siblings, 1 reply; 5+ messages in thread
From: Meelis Roos @ 2004-07-19 11:01 UTC (permalink / raw)
To: Linux Kernel list
I was trying to figure out an unresolved modules symbol on PPC
(2.4.27-BK): init_cmd640_vlb(). This is used in ide.c and defined in
pci/cmd640.c. It appears that nothing from drivers/ide/pci is compiled
at all - make traverses the directory but nothing gets compiled.
Relevant part of .config is below.
So at least sl82c105 and cmd640 should get compiled but don't.
I suspected that since IDE is modular, only drivers configured as
modules are compiled but not static ones. I set sl82c105 to M and it was
compiled.
So the problem is that cmd640 can only be compiled in statically but not
into modular IDE. What about the patch below to fix this? It builds
and loads fine here, but it only fixes an obscure configuration.
CONFIG_IDE=m
CONFIG_BLK_DEV_IDE=m
# CONFIG_BLK_DEV_HD_IDE is not set
# CONFIG_BLK_DEV_HD is not set
CONFIG_BLK_DEV_IDEDISK=m
CONFIG_IDEDISK_MULTI_MODE=y
CONFIG_IDEDISK_STROKE=y
# CONFIG_BLK_DEV_IDECS is not set
CONFIG_BLK_DEV_IDECD=m
# CONFIG_BLK_DEV_IDETAPE is not set
CONFIG_BLK_DEV_IDEFLOPPY=m
CONFIG_BLK_DEV_IDESCSI=m
CONFIG_IDE_TASK_IOCTL=y
#
# IDE chipset support/bugfixes
#
CONFIG_BLK_DEV_CMD640=y
CONFIG_BLK_DEV_CMD640_ENHANCED=y
# CONFIG_BLK_DEV_ISAPNP is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_BLK_DEV_GENERIC=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_OFFBOARD is not set
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_PCI_WIP=y
# CONFIG_BLK_DEV_ADMA100 is not set
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_WDC_ALI15X3 is not set
# CONFIG_BLK_DEV_AMD74XX is not set
# CONFIG_AMD74XX_OVERRIDE is not set
# CONFIG_BLK_DEV_ATIIXP is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_TRIFLEX is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_HPT34X_AUTODMA is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_PIIX is not set
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_OPTI621 is not set
# CONFIG_BLK_DEV_PDC202XX_OLD is not set
# CONFIG_PDC202XX_BURST is not set
# CONFIG_BLK_DEV_PDC202XX_NEW is not set
# CONFIG_BLK_DEV_RZ1000 is not set
# CONFIG_BLK_DEV_SC1200 is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIIMAGE is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_VIA82CXXX is not set
CONFIG_BLK_DEV_SL82C105=y
# CONFIG_BLK_DEV_IDE_PMAC is not set
# CONFIG_BLK_DEV_IDE_PMAC_ATA100FIRST is not set
# CONFIG_BLK_DEV_IDEDMA_PMAC is not set
# CONFIG_BLK_DEV_IDEDMA_PMAC_AUTO is not set
# CONFIG_IDE_CHIPSETS is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_IDEDMA_IVB is not set
# CONFIG_DMA_NONPCI is not set
# CONFIG_BLK_DEV_ATARAID is not set
# CONFIG_BLK_DEV_ATARAID_PDC is not set
# CONFIG_BLK_DEV_ATARAID_HPT is not set
# CONFIG_BLK_DEV_ATARAID_MEDLEY is not set
# CONFIG_BLK_DEV_ATARAID_SII is not set
===== drivers/ide/Config.in 1.41 vs edited =====
--- 1.41/drivers/ide/Config.in 2004-05-22 23:30:37 +03:00
+++ edited/drivers/ide/Config.in 2004-07-19 13:58:33 +03:00
@@ -27,8 +27,10 @@
comment 'IDE chipset support/bugfixes'
if [ "$CONFIG_BLK_DEV_IDE" != "n" ]; then
- dep_bool ' CMD640 chipset bugfix/support' CONFIG_BLK_DEV_CMD640 $CONFIG_X86
- dep_bool ' CMD640 enhanced support' CONFIG_BLK_DEV_CMD640_ENHANCED $CONFIG_BLK_DEV_CMD640
+ dep_tristate ' CMD640 chipset bugfix/support' CONFIG_BLK_DEV_CMD640 $CONFIG_X86
+ if [ "$CONFIG_BLK_DEV_CMD640" != "n" ]; then
+ bool ' CMD640 enhanced support' CONFIG_BLK_DEV_CMD640_ENHANCED
+ fi
dep_bool ' ISA-PNP EIDE support' CONFIG_BLK_DEV_ISAPNP $CONFIG_ISAPNP
if [ "$CONFIG_PCI" = "y" ]; then
bool ' PCI IDE chipset support' CONFIG_BLK_DEV_IDEPCI
--
Meelis Roos (mroos@linux.ee)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [2.4 PATCH] problems with modular and nonmodular ide mix
2004-07-19 11:01 [2.4 PATCH] problems with modular and nonmodular ide mix Meelis Roos
@ 2004-07-31 15:02 ` Marcelo Tosatti
2004-08-01 11:09 ` Meelis Roos
0 siblings, 1 reply; 5+ messages in thread
From: Marcelo Tosatti @ 2004-07-31 15:02 UTC (permalink / raw)
To: Meelis Roos; +Cc: Linux Kernel list
On Mon, Jul 19, 2004 at 02:01:16PM +0300, Meelis Roos wrote:
> I was trying to figure out an unresolved modules symbol on PPC
> (2.4.27-BK): init_cmd640_vlb(). This is used in ide.c and defined in
> pci/cmd640.c. It appears that nothing from drivers/ide/pci is compiled
> at all - make traverses the directory but nothing gets compiled.
> Relevant part of .config is below.
>
> So at least sl82c105 and cmd640 should get compiled but don't.
>
> I suspected that since IDE is modular, only drivers configured as
> modules are compiled but not static ones. I set sl82c105 to M and it was
> compiled.
>
> So the problem is that cmd640 can only be compiled in statically but not
> into modular IDE. What about the patch below to fix this? It builds
> and loads fine here, but it only fixes an obscure configuration.
Hi Meelis,
The thing is cmd640 can't be compiled as a module - just dont
use IDE modular if you need cmd640.
> ===== drivers/ide/Config.in 1.41 vs edited =====
> --- 1.41/drivers/ide/Config.in 2004-05-22 23:30:37 +03:00
> +++ edited/drivers/ide/Config.in 2004-07-19 13:58:33 +03:00
> @@ -27,8 +27,10 @@
>
> comment 'IDE chipset support/bugfixes'
> if [ "$CONFIG_BLK_DEV_IDE" != "n" ]; then
> - dep_bool ' CMD640 chipset bugfix/support' CONFIG_BLK_DEV_CMD640 $CONFIG_X86
> - dep_bool ' CMD640 enhanced support' CONFIG_BLK_DEV_CMD640_ENHANCED $CONFIG_BLK_DEV_CMD640
> + dep_tristate ' CMD640 chipset bugfix/support' CONFIG_BLK_DEV_CMD640 $CONFIG_X86
> + if [ "$CONFIG_BLK_DEV_CMD640" != "n" ]; then
> + bool ' CMD640 enhanced support' CONFIG_BLK_DEV_CMD640_ENHANCED
> + fi
> dep_bool ' ISA-PNP EIDE support' CONFIG_BLK_DEV_ISAPNP $CONFIG_ISAPNP
> if [ "$CONFIG_PCI" = "y" ]; then
> bool ' PCI IDE chipset support' CONFIG_BLK_DEV_IDEPCI
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [2.4 PATCH] problems with modular and nonmodular ide mix
2004-07-31 15:02 ` Marcelo Tosatti
@ 2004-08-01 11:09 ` Meelis Roos
2004-08-02 0:12 ` Marcelo Tosatti
0 siblings, 1 reply; 5+ messages in thread
From: Meelis Roos @ 2004-08-01 11:09 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: Linux Kernel list
> The thing is cmd640 can't be compiled as a module - just dont
> use IDE modular if you need cmd640.
OK, but should CONFIG_BLK_DEV_CMD640 then depend on CONFIG_BLK_DEV_IDE=y
and show a comment otherwise?
--
Meelis Roos (mroos@linux.ee)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [2.4 PATCH] problems with modular and nonmodular ide mix
2004-08-01 11:09 ` Meelis Roos
@ 2004-08-02 0:12 ` Marcelo Tosatti
2004-08-05 5:11 ` Meelis Roos
0 siblings, 1 reply; 5+ messages in thread
From: Marcelo Tosatti @ 2004-08-02 0:12 UTC (permalink / raw)
To: Meelis Roos; +Cc: Linux Kernel list
On Sun, Aug 01, 2004 at 02:09:02PM +0300, Meelis Roos wrote:
> > The thing is cmd640 can't be compiled as a module - just dont
> > use IDE modular if you need cmd640.
>
> OK, but should CONFIG_BLK_DEV_CMD640 then depend on CONFIG_BLK_DEV_IDE=y
> and show a comment otherwise?
Yep, that sounds good.
But that was not what your patch was trying to do, was it?
Thanks!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [2.4 PATCH] problems with modular and nonmodular ide mix
2004-08-02 0:12 ` Marcelo Tosatti
@ 2004-08-05 5:11 ` Meelis Roos
0 siblings, 0 replies; 5+ messages in thread
From: Meelis Roos @ 2004-08-05 5:11 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: Linux Kernel list
> > OK, but should CONFIG_BLK_DEV_CMD640 then depend on CONFIG_BLK_DEV_IDE=y
> > and show a comment otherwise?
>
> Yep, that sounds good.
>
> But that was not what your patch was trying to do, was it?
No, I'll make a new patch when I'm back from a trip.
--
Meelis Roos (mroos@linux.ee)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-08-05 5:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-19 11:01 [2.4 PATCH] problems with modular and nonmodular ide mix Meelis Roos
2004-07-31 15:02 ` Marcelo Tosatti
2004-08-01 11:09 ` Meelis Roos
2004-08-02 0:12 ` Marcelo Tosatti
2004-08-05 5:11 ` Meelis Roos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox