linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Some IDE issues with 2.6.28 on PC-Engines ALIX2
@ 2009-01-31 11:25 Christoph .J Thompson
  2009-01-31 12:53 ` Martin K. Petersen
  2009-01-31 14:42 ` Sergei Shtylyov
  0 siblings, 2 replies; 32+ messages in thread
From: Christoph .J Thompson @ 2009-01-31 11:25 UTC (permalink / raw)
  To: linux-ide

Sergei Shtylyov wrote:
> Hm, looks like your CF drive is rather advanced
> and might be supporting UltraDMA (and your CF slot
> supports DMA). Care to post the output of 'hdparm -i /dev/hda'? 

/dev/hda:                                                                       
                                                                                
 Model=HMS360604D5CF00, FwRev=DP3OC40D, SerialNo=DNP450B4YHR2EA                 
 Config={ HardSect NotMFM Removeable DTR>10Mbs nonMagnetic }                    
 RawCHS=5952/16/63, TrkSize=32256, SectSize=512, ECCbytes=4                     
 BuffType=DualPortCache, BuffSize=128kB, MaxMultSect=32, MultSect=off           
 CurCHS=5952/16/63, CurSects=5999616, LBA=yes, LBAsects=5999616                 
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}               
 PIO modes:  pio0 pio1 pio2 pio3 pio4                                           
 DMA modes:  mdma0 mdma1 mdma2                                                  
 UDMA modes: udma0 udma1 *udma2                                                 
 AdvancedPM=yes: mode=0x60 (96) WriteCache=disabled                             
 Drive conforms to: ATA/ATAPI-4 published, ANSI INCITS 317-1998:  ATA/ATAPI-1,24
                                                                                
 * signifies the current active mode

That's the output for my Hitachi Microdrive on the ALIX.2d3. It's using UDMA although I'm not using the pata_cs5536 driver since this Microdrive shows up as /dev/hda.

I'm having problems booting a kernel with pata_cs5536 on this box:

PC Engines ALIX.2 v0.99h
640 KB Base Memory
261120 KB Extended Memory
Waiting for HDD ...

01F0 Master 848A HMS360604D5CF00                         
Phys C/H/S 5952/16/63 Log C/H/S 744/128/63

LI
LILLOO  2222..88  bboooott::  

LLooaaddiinngg  LLiinnuuxx..................................................

BBIIOOSS  ddaattaa  cchheecckk  ssuucccceessssffuull

[    0.000000] BIOS EBDA/lowmem at: 00000000/000a0000
[    0.000000] Linux version 2.6.28.2alix2d3-2 (witukind@wotan) (gcc version 4.2.4) #4 Fri Jan 30 23:31:26 CET 2009
[    0.000000] KERNEL supported cpus:
[    0.000000]   Intel GenuineIntel
[    0.000000]   AMD AuthenticAMD
[    0.000000]   NSC Geode by NSC
[    0.000000]   Cyrix CyrixInstead
[    0.000000]   Centaur CentaurHauls
[    0.000000]   Transmeta GenuineTMx86
[    0.000000]   Transmeta TransmetaCPU
[    0.000000]   UMC UMC UMC UMC
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
[    0.000000]  BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
[    0.000000]  BIOS-e820: 0000000000100000 - 0000000010000000 (usable)
[    0.000000]  BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
[    0.000000] DMI not present or invalid.
[    0.000000] last_pfn = 0x10000 max_arch_pfn = 0x100000
[    0.000000] ACPI Error (tbxfroot-0218): A valid RSDP was not found [20080926]
[    0.000000] 256MB LOWMEM available.
[    0.000000]   mapped low ram: 0 - 10000000
[    0.000000]   low ram: 00000000 - 10000000
[    0.000000]   bootmap 00001000 - 00003000
[    0.000000] (6 early reservations) ==> bootmem [0000000000 - 0010000000]
[    0.000000]   #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
[    0.000000]   #1 [0000200000 - 00004ab218]    TEXT DATA BSS ==> [0000200000 - 00004ab218]
[    0.000000]   #2 [00004ac000 - 00004af000]    INIT_PG_TABLE ==> [00004ac000 - 00004af000]
[    0.000000]   #3 [000009f000 - 0000100000]    BIOS reserved ==> [000009f000 - 0000100000]
[    0.000000]   #4 [0000007000 - 0000008000]          PGTABLE ==> [0000007000 - 0000008000]
[    0.000000]   #5 [0000001000 - 0000003000]          BOOTMAP ==> [0000001000 - 0000003000]
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA      0x00000000 -> 0x00001000
[    0.000000]   Normal   0x00001000 -> 0x00010000
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[2] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x000000a0
[    0.000000]     0: 0x00000100 -> 0x00010000
[    0.000000] Allocating PCI resources starting at 20000000 (gap: 10000000:eff00000)
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64928
[    0.000000] Kernel command line: BOOT_IMAGE=Linux ro root=LABEL=root console=ttyS0,38400n8 edd=off
[    0.000000] Initializing CPU#0
[    0.000000] PID hash table entries: 1024 (order: 10, 4096 bytes)
[    0.000000] Fast TSC calibration using PIT
[    0.000000] Detected 497.995 MHz processor.
[    0.010000] Console: colour dummy device 80x25
[    0.010000] console [ttyS0] enabled
[    0.010000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.010000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.010000] Memory: 256568k/262144k available (1568k kernel code, 5008k reserved, 752k data, 176k init, 0k highmem)
[    0.010000] virtual kernel memory layout:
[    0.010000]     fixmap  : 0xfffed000 - 0xfffff000   (  72 kB)
[    0.010000]     vmalloc : 0xd0800000 - 0xfffeb000   ( 759 MB)
[    0.010000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.010000]       .init : 0xc0448000 - 0xc0474000   ( 176 kB)
[    0.010000]       .data : 0xc03880f0 - 0xc0444334   ( 752 kB)
[    0.010000]       .text : 0xc0200000 - 0xc03880f0   (1568 kB)
[    0.010000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
[    0.010000] SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.010016] Calibrating delay loop (skipped), value calculated using timer frequency.. 995.99 BogoMIPS (lpj=4979950)
[    0.030051] Security Framework initialized
[    0.040033] Mount-cache hash table entries: 512
[    0.050364] CPU: L1 I Cache: 64K (32 bytes/line), D cache 64K (32 bytes/line)
[    0.060011] CPU: L2 Cache: 128K (32 bytes/line)
[    0.070027] CPU: Geode(TM) Integrated Processor by AMD PCS stepping 02
[    0.090012] Checking 'hlt' instruction... OK.
[    0.141405] Freeing SMP alternatives: 0k freed
[    0.150010] ACPI: Core revision 20080926
[    0.160110] ACPI Exception (tbxface-0627): AE_NO_ACPI_TABLES, While loading namespace from ACPI tables [20080926]
[    0.183426] ACPI: Unable to load the System Description Tables
[    0.190690] net_namespace: 704 bytes
[    0.200771] NET: Registered protocol family 16
[    0.210050] geode-mfgpt:  8 MFGPT timers available.
[    0.220009] geode-mfgpt:  Registered timer 0
[    0.230034] mfgpt-timer:  Registering MFGPT timer 0 as a clock event, using IRQ 7
[    0.241693] PCI: PCI BIOS revision 2.10 entry at 0xfced9, last bus=0
[    0.250013] PCI: Using configuration type 1 for base access
[    0.265322] ACPI: Interpreter disabled.
[    0.270927] SCSI subsystem initialized
[    0.280775] PCI: Probing PCI hardware
[    0.290653] pci 0000:00:09.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.300171] pci 0000:00:09.0: PME# disabled
[    0.310312] pci 0000:00:0a.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.320038] pci 0000:00:0a.0: PME# disabled
[    0.330141] pci 0000:00:0b.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.340011] pci 0000:00:0b.0: PME# disabled
[    0.350802] pci 0000:00:0f.4: PME# supported from D0 D3hot D3cold
[    0.360018] pci 0000:00:0f.4: PME# disabled
[    0.370247] pci 0000:00:0f.5: PME# supported from D0 D3hot D3cold
[    0.380016] pci 0000:00:0f.5: PME# disabled
[    0.392386] pnp: PnP ACPI: disabled
[    0.402124] bus: 00 index 0 io port: [0x00-0xffff]
[    0.416578] bus: 00 index 1 mmio: [0x000000-0xffffffff]
[    0.432357] NET: Registered protocol family 2
[    0.446189] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.468140] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.489576] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    0.509082] TCP: Hash tables configured (established 8192 bind 8192)
[    0.528204] TCP reno registered
[    0.538551] platform rtc_cmos: registered platform RTC device (no PNP device found)
[    0.584100] HugeTLB registered 4 MB page size, pre-allocated 0 pages
[    0.615490] msgmni has been set to 501
[    0.628037] alg: No test for stdrng (krng)
[    0.641030] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.663275] io scheduler noop registered
[    0.675209] io scheduler cfq registered (default)
[    0.701838] Serial: 8250/16550 driver4 ports, IRQ sharing disabled
ÿ[    1.006820] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a NS16550A
[    1.306617] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a NS16550A
[    1.326604] Driver 'sd' needs updating - please use bus_type methods
[    1.346086] scsi0 : pata_cs5536
[    1.356079] scsi1 : pata_cs5536
[    1.365962] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xff00 irq 14
[    1.386924] ata2: DUMMY
[    1.570678] ata1.00: CFA: HMS360604D5CF00, DP3OC40D, max UDMA/33
[    1.588766] ata1.00: 5999616 sectors, multi 0: LBA 
[    1.646824] ata1.00: configured for UDMA/33
[    1.659803] scsi 0:0:0:0: Direct-Access     ATA      HMS360604D5CF00  DP3O PQ: 0 ANSI: 5
[    1.684813] sd 0:0:0:0: [sda] 5999616 512-byte hardware sectors: (3.07 GB/2.86 GiB)
[    1.707902] sd 0:0:0:0: [sda] Write Protect is off
[    1.722482] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    1.750365] sd 0:0:0:0: [sda] 5999616 512-byte hardware sectors: (3.07 GB/2.86 GiB)
[    1.773459] sd 0:0:0:0: [sda] Write Protect is off
[    1.788001] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    1.815452]  sda: sda1 sda2 sda3 < sda5 sda6 sda7 sda8 sda9 sda10 >
[    2.217848] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    2.235380] PNP: No PS/2 controller found. Probing ports directly.
[    2.254873] i8042.c: No controller found.
[    2.267240] mice: PS/2 mouse device common for all mice
[    2.283134] cpuidle: using governor ladder
[    2.295520] cpuidle: using governor menu
[    2.310323] Using IPI Shortcut mode
[    2.322395] VFS: Cannot open root device "LABEL=root" or unknown-block(0,0)
[    2.343367] Please append a correct "root=" boot option; here are the available partitions:
[    2.368481] 0800         2999808 sda driver: sd
[    2.382190]   0801           96736 sda1
[    2.393810]   0802          249984 sda2
[    2.405455]   0803               1 sda3
[    2.417079]   0805          572512 sda5
[    2.428702]   0806          294304 sda6
[    2.440321]   0807          878944 sda7
[    2.451942]   0808          124960 sda8
[    2.463589]   0809          193504 sda9
[    2.475213]   080a          588640 sda10
[    2.487121] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

-- 
Christoph .J Thompson <cjsthompson@gmail.com>

^ permalink raw reply	[flat|nested] 32+ messages in thread
* Some IDE issues with 2.6.28 on PC-Engines ALIX2
@ 2009-01-05  0:37 Karl Auerbach
  2009-01-05  3:01 ` Martin K. Petersen
                   ` (2 more replies)
  0 siblings, 3 replies; 32+ messages in thread
From: Karl Auerbach @ 2009-01-05  0:37 UTC (permalink / raw)
  To: linux-ide, karl

I've found what I believe are some problems with the IDE drivers on the 
2.6.8 kernel on
the PC-Engines ALIX2 platform.

There are two points in particular:

1. The ide_generic driver no longer finds the IDE drive (an EXT3
formatted compact flash on an IDE channel on an AMD CS5536 controller)
unless the kernel is given the ide_generic.probe_mask=0x## command
line parameter.  (I'll get to the values of ## later.)

2. The cs5535 ide driver doesn't seem to be able to recognize the
newer CS5536 controller for IDE.

I will provide more details below.

I'd submit these directly into the bugzilla but as I'm not familar
with the process and conventions I thought I'd begin with this email.

Thanks,
                 --karl--
                 Karl Auerbach (Santa Cruz, CA)
                 karl@cavebear.com

=================================================

Here's the scripts/ver_linux output:

[root@board-1 linux-2.6.28]# sh scripts/ver_linux If some fields are
empty or look unusual you may have an old version.  Compare to the
current minimal requirements in Documentation/Changes.

Linux board-1.cavebear.com 2.6.28-ALIX2 #1 Fri Jan 2 16:58:36 PST 2009 
i586 unknown

Gnu C                  4.2.4
Gnu make               3.81
binutils               2.19
util-linux             fdformat: unrecognized option `--version'
BusyBox v1.13.1 (2009-01-02 17:00:22 PST) multi-call binary

Usage: fdformat [-n] DEVICE

Format floppy disk

Options:
         -n      Don't verify after format

mount                  (rw
(rw,errors=continue,data=ordered
(rw
(rw
(rw,size=1024k,mode=755
(rw
(rw,gid=5,mode=620
(rw
(rw,size=32768k
(ro,noatime,nodiratime,errors=continue,data=ordered
(rw,vers=3,rsize=8192,wsize=8192,namlen=255,hard,nointr,nolock,proto=udp,timeo=7,retrans=3,sec=sys,addr=192.203.17.130
module-init-tools      found
e2fsprogs              1.41.3
Linux C Library        2.6.1
Dynamic linker (ldd)   2.6.1
Procps                 `--version'
Kbd                    78:
Sh-utils               --v
Modules Loaded         ebtable_filter ebtables x_tables bridge stp llc 
geodewdt cs5535_gpio geode_rng

=================================================

I. The ide_generic issue:

[1.] One line summary of the problem:

ide_generic driver under 2.6.28 no longer finds IDE drives on
PC-Engines ALIX2.

[2.] Full description of the problem/report:

The PC-Engines ALIX2 platform uses an AMD Geode LX processor with the
AMD CS5536 companion chip for things like IDE support.  The IDE drive
is a compact flash.

On the 2.6.27.8 kernel the ide_generic driver found the IDE and
compact flash without the need for any kernel command line parameters.

On the 2.6.28 kernel the ide_generic driver no longer finds the IDE
drive unless a ide_generic.probe_mask=0x## command line parameter is
given to the kernel.

I've tried several values for ##, I have not yet found one that
exactly replicates the behaviour of the 2.6.27.8 kernel.

However, values 0x3f, 0x31, and 0x11 all seem to work, although the
last of these (0x11 has the closest behaviour to the 2.6.27.8 kernel.)

Here's the relevant kernel output when using the 0x11 value in the
following kernel command line.  (The 0x31 value gives the same
results.  The 0x3f value finds several more IDE items.)

Kernel command line: console=ttyS0,38400 root=/dev/hda2 
ramdisk_size=16384 initrd=/initrd.gz rw ide_generic.probe_mask=0x11 
BOOT_IMAGE=/linux

Uniform Multi-Platform E-IDE driver
ide_generic: enforcing probing of I/O ports upon user request
hda: TRANSCEND, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x1e0-0x1e7,0x3e6 on irq 8
ide2 at 0x160-0x167,0x366 on irq 12
ide-gd driver 1.18
hda: max request size: 128KiB
hda: 3915072 sectors (2004 MB) w/1KiB Cache, CHS=3884/16/63
  hda: hda1 hda2 hda3
Driver 'sd' needs updating - please use bus_type methods

When the ide_generic.probe_mask=0x11 is not given no ide items are
found under 2.6.28 (although they were found under 2.6.27.8)

[3.] Keywords (i.e., modules, networking, kernel):

ide_generic, ALIX2

[4.] Kernel version (from /proc/version):

2.6.28


[7.7.] Other information that might be relevant to the problem
        (please look in /proc and include all information that you
        think to be relevant):

I can provide kernel .config files if you want.

=================================================

II. The cs5536 controller issue.

[1.] One line summary of the problem:

The cs5535 ide driver doesn't seem to recognize the AMD CS5536
controller.

[2.] Full description of the problem/report

The old AMD Geode used the CS5535 companion chipset for several
purposes including IDE.

The newer AMD Geode LX uses the CS5536 companion chipset.

It is not clear that the cs5535 ide kernel driver is supposed to
handle the newer chipset.  But in any event, it seems that the cs5535
driver, when it is looking for the hardware, is not seeing anything it
recognizes.

There is some ambiguity created becaause at least one "cs5535" driver
works on the The CS5536: cs5535_gpio

This is not a particularly signifcant issue - the ide_generic driver
handles the CS5536 IDE just fine (modulo the command line issue I
reported above.)  But it would be nice if any ambiguity about what the
cs5535 driver supports and what it does not support were clarified.


	Thanks,
		--karl--


^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2009-02-01 17:24 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-31 11:25 Some IDE issues with 2.6.28 on PC-Engines ALIX2 Christoph .J Thompson
2009-01-31 12:53 ` Martin K. Petersen
2009-01-31 14:15   ` Sergei Shtylyov
2009-01-31 14:58     ` Martin K. Petersen
2009-01-31 14:42 ` Sergei Shtylyov
2009-01-31 16:27   ` Christoph .J Thompson
2009-01-31 16:35     ` Mark Lord
  -- strict thread matches above, loose matches on Subject: below --
2009-01-05  0:37 Karl Auerbach
2009-01-05  3:01 ` Martin K. Petersen
2009-01-05 12:44   ` Sergei Shtylyov
2009-01-05 13:33     ` Alan Cox
2009-01-05 17:47       ` Sergei Shtylyov
2009-01-05 18:04         ` Alan Cox
2009-01-05 18:44     ` Martin K. Petersen
2009-01-05 11:36 ` Alan Cox
2009-01-05 23:23   ` Karl Auerbach
2009-01-05 23:27     ` Alan Cox
2009-01-06 12:58     ` Sergei Shtylyov
2009-01-06 19:21       ` Alan Cox
2009-01-06 19:54         ` Bartlomiej Zolnierkiewicz
2009-01-05 12:08 ` Sergei Shtylyov
2009-01-05 16:36   ` Bartlomiej Zolnierkiewicz
2009-01-05 16:52     ` Alan Cox
2009-01-05 17:15       ` Bartlomiej Zolnierkiewicz
2009-01-05 17:19         ` Alan Cox
2009-01-05 17:38           ` Bartlomiej Zolnierkiewicz
2009-01-05 18:00             ` Alan Cox
2009-01-05 18:10               ` Bartlomiej Zolnierkiewicz
2009-01-05 22:41     ` Sergei Shtylyov
2009-01-11 17:47       ` Bartlomiej Zolnierkiewicz
2009-01-31 21:03         ` Sergei Shtylyov
2009-02-01 16:16           ` Bartlomiej Zolnierkiewicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).