Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13189 - Bug in kernel 2.4.18+ driver for ALi15x3 chipset
Summary: Bug in kernel 2.4.18+ driver for ALi15x3 chipset
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal major (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-03 16:25 UTC by Qserty
Modified: 2003-03-05 12:19 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Qserty 2003-01-03 16:25:58 UTC
Hi!
Trying to install Gentoo 1.4rc2 on laptop Fujitsu P2110 on Transmeta Crusoe 
TM5800 866MHz with ALi1533 chipset (I use i686 LiveCD). There are known bug in 
2.4.18+ kernels: hanging during boot (while detecting HDD, i think). The last 
boot messages are:

...
ALI15X3: IDE controller on PCI bus dev 78
PCI: No IRQ known for interrupt pin A of device 00:0f.0ALI15X3: chipset 
revision 195
ALI15X3: not 100% native mode: will probe irqs later

After this laptop hangs.

In Slackware 8.1 (2.4.18) I bypass this by kernel boot key "pci=conf2", but in 
Gentoo this doesn't work. All other keys (noscsi, etc.) also doesn't help.

There are small patch for 2.4.18 kernel (by someone):

*** linux/drivers/ide/alim15x3.c.orig	Tue Jan 29 20:22:49 2002
--- linux/drivers/ide/alim15x3.c	Tue Jan 29 20:23:50 2002
***************
*** 573,589 ****
  		/*
  		 * set south-bridge's enable bit, m1533, 0x79
  		 */
! 		pci_read_config_byte(isa_dev, 0x79, &tmpbyte);
  		if (m5229_revision == 0xC2) {
  			/*
  			 * 1543C-B0 (m1533, 0x79, bit 2)
  			 */
! 			pci_write_config_byte(isa_dev, 0x79, tmpbyte | 0x04);
  		} else if (m5229_revision >= 0xC3) {
  			/*
  			 * 1553/1535 (m1533, 0x79, bit 1)
  			 */
! 			pci_write_config_byte(isa_dev, 0x79, tmpbyte | 0x02);
  		}
  		/*
  		 * Ultra66 cable detection (from Host View)
--- 573,589 ----
  		/*
  		 * set south-bridge's enable bit, m1533, 0x79
  		 */
! //		pci_read_config_byte(isa_dev, 0x79, &tmpbyte);
  		if (m5229_revision == 0xC2) {
  			/*
  			 * 1543C-B0 (m1533, 0x79, bit 2)
  			 */
! //			pci_write_config_byte(isa_dev, 0x79, tmpbyte | 0x04);
  		} else if (m5229_revision >= 0xC3) {
  			/*
  			 * 1553/1535 (m1533, 0x79, bit 1)
  			 */
! //			pci_write_config_byte(isa_dev, 0x79, tmpbyte | 0x02);
  		}
  		/*
  		 * Ultra66 cable detection (from Host View)

But I haven't any Linux machine to recompile Gentoo kernel :(
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-01-10 13:10:53 UTC
same here

sony vaio C1MHP hangs at the same

will try more recent livecds
Comment 2 tercero12 2003-01-11 16:19:10 UTC
Most recent i686 livecd (1.4-rc2) is still affected by this.  My Fujitsu P-2120
has the same Ali chipset mentioned below.

I can confirm that the patch previously mentioned works to fix the problem with
normal kernels.  I have not tried to rebuild a bootcd, but this patch works
successfully on Gentoo-sources, ck-sources and vanilla-sources (in their recent
ebuild versions).

In some places, it is mentioned that adding the kernel parameters:

ide0=ata66 ide1=ata66 

will fix the problem (on a per-boot basis).  This works for other kernels (such
as Knoppix's), but the kernel on the livecd seems immune to such remedies.

This patch is widely used among the Fujitsu P-series community (www.leog.net). 
It has been tested to be stable and non-intrusive on other items/features.
Comment 3 Brandon Low (RETIRED) gentoo-dev 2003-01-11 19:32:32 UTC
have either of you tried booting with pci=biosirq or pci=bios set?  (I just
browsed the LKML archives about this)

Thanks.
Comment 4 Qserty 2003-01-13 01:45:35 UTC
Yes. Neither "pci=biosirq" nor "pci=bios" works. I've managed to replace kernel 
on LiveCD with "vanilla" 2.4.20 compiled for Crusoe, and it boots 
with "ide0=ata66" and "ide1=ata66". After recompiling with mentioned patch 
kernel boots without any additional parms.
Comment 5 Austin Frank 2003-01-13 17:02:59 UTC
in the gentoo-dev list, drobbins requested that bugs having to do with the
livecd be filed under the heading "LiveCD (all flavors)"-- would this
(important) bug be better off under that category?  I'd _really_ like to see
this fixed for the final release of 1.4.
Comment 6 Bob Johnson (RETIRED) gentoo-dev 2003-03-04 06:36:25 UTC
The lastest livecd should fix this chipset, it will be uploaded tonight
to www.gentoo.org/~livewire , please test if you can.
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2003-03-04 11:16:29 UTC
i downloaded http://cvs.gentoo.org/~livewire/livecd-experimental-3-2-2003.iso

doesn't work (without any parameters) on my sony vaio c1mhp

last output

PCI: No IRQ known for interrupt pin A of device 00:10.0 Please try using pci=biosirq.
ALI15X3: chipset revision 196
ALI15X3: not 100% native mode: will probe irqs later
Comment 8 Bob Johnson (RETIRED) gentoo-dev 2003-03-04 12:28:50 UTC
sorry, i ran into livecd compile problems lastnight, the cd was never uploaded :( 
hopefully tonight. 
Comment 9 Martin Holzer (RETIRED) gentoo-dev 2003-03-04 12:50:27 UTC
that's what i thought and why i've added the url (name) ;)
Comment 10 Martin Holzer (RETIRED) gentoo-dev 2003-03-05 12:19:18 UTC
works now fine