Bug 122015

Summary: after loading module sis5513, kernel cannot see ide bus anymore and installation cannot continue
Product: [openSUSE] openSUSE 10.2 Reporter: Livio Bertacco <livio>
Component: KernelAssignee: Tejun Heo <teheo>
Status: RESOLVED NORESPONSE QA Contact: Klaus Kämpf <kkaempf>
Severity: Critical    
Priority: P5 - None CC: asklein, fh, leah, nicpost, snwint, vetter, vojtech
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: lspci -s 00:02.5 -vv output
lspci -vv output
lspci -n output
Add the 760 chipset to the sis driver
sis5513 for SL10.0 i386 default with 765l support
sis5513 for SL10.0 x86-64 default with 765l support
hwinfo from running SUSE 10.0
hwinfo from default boot of beta 5
dmidecode output from running 10.0

Description Livio Bertacco 2005-10-10 16:18:14 UTC
I tried installed suse 10.1 alpha and 10.0 final on a Asus Barebone Vintage 
AE1 (with an AMD sempron 2800 64bit, 754 socket and SIS 760GX chipset).
The install dvd boots properly, I get the first "install/rescue/memtest" 
screen, choose install and the kernel start loading.
At a certain point, a red (text) dialog pops up saying that installation files 
cannot be found and if I want to continue manually. But even if I continue 
manually, neither the cd nor the HD can be accessed.
Checking the kernel message in the console, the last lines look like:
SIS5513: chipse revision 1
SIS5513: not 100% native mode: will probe irqs later
SIS_IDE: probe of 0000:00:02.5 failed with error -1
I tried the "failsafe" and "acpi=no" but got the same results.
It looks like the sis5513 module is causing problems. Other distro (e.g. 
Scientific linux 4.0) can install properly but they don't load the sis5513 
module.
Is there a way to have suse10.0/10.1 installation NOT LOAD the sis5513 module 
and use the generic_ide instead? (on a different console I see several time 
the message "please provide config file" - can it be useful in this case?)
Comment 1 Steffen Winterfeldt 2005-10-11 08:40:50 UTC
Sure. Boot with 'brokenmodules=sis5513 insmod=foo'.  
  
But I think the module should be fixed.  
Comment 2 Jens Axboe 2005-10-11 11:51:31 UTC
That work around is probably the best we can do for now.
Comment 3 Livio Bertacco 2005-10-11 17:58:29 UTC
(In reply to comment #2)
> That work around is probably the best we can do for now.

Unfortunately this doesn't solve. I tried booting with brokenmodules=sis5513.
The sis5513 module doesn't get loaded and the generic ide module gets loaded
instead. But still /dev/hda and /dev/hdc don't get created and installation
aborts since the installation files (on /dev/hdc) cannot be found.
Any ideas? Should these device get automatically created after loading the
generic module?
Today I tried also with Scientific Linux 4.1 x64_86 which is based on kernel
2.6.9 and that one works fine. However it's not true that it doesn't use the
sis5513 driver. It just doesn't load it as a module but probably has it compiled
in the kernel (I get the same SIS5513 messages reported above except for the
last "SIS_IDE: probe ...fail..." line).
Comment 4 Jens Axboe 2005-10-11 18:14:24 UTC
Can you provide lspci -s 00:02.5 -vv output from the working kernel?

It looks like it doesn't actually know your specific sis chipset in the sis5513
driver and that is what is causing the error.
Comment 5 Livio Bertacco 2005-10-12 12:31:58 UTC
Created attachment 53816 [details]
lspci -s 00:02.5 -vv output
Comment 6 Livio Bertacco 2005-10-12 12:34:08 UTC
More stats: Suse 9.1, Fedora Core 2,  Kubuntu 5.04 and ScientLinux 4.0 and 4.1 
all works all right. Suse 9.3 has same issue as 10.0 and 10.1. Fedora Core 4 
doesn't even load kernel (probably for a different issue).
Comment 7 Jens Axboe 2005-10-12 12:36:08 UTC
Please include a full lspci as well btw, sorry I forgot to mention that in the
first place.
Comment 8 Livio Bertacco 2005-10-12 13:26:26 UTC
Created attachment 53819 [details]
lspci -vv output
Comment 9 Jens Axboe 2005-10-12 13:35:17 UTC
Without the -vv please as well :-)

A lspci -n would be great!
Comment 10 Livio Bertacco 2005-10-12 14:01:30 UTC
Created attachment 53823 [details]
lspci -n output
Comment 11 Jens Axboe 2005-10-12 14:03:33 UTC
Created attachment 53824 [details]
Add the 760 chipset to the sis driver

This should probably fix it. Are you able to build a kernel yourself?
Comment 12 Livio Bertacco 2005-10-12 14:21:54 UTC
(In reply to comment #11)
> Created an attachment (id=53824) [edit]
> Add the 760 chipset to the sis driver
> This should probably fix it. Are you able to build a kernel yourself?

Actually no. I'm able to build a patched kernel from a working system but here 
I don't even have another 64bit CPU to install Suse on and start with. And 
anyway I need to create a (patched) installation CD/DVD (at least the network 
install cd) in order to test the patched kernel on the new machine.
Comment 13 Livio Bertacco 2005-10-12 19:54:04 UTC
If you sent me the compiled (patched) module, would it be possible to use the 
current installation dvd and load the module from an usb memory stick?
Comment 14 Nico Laum 2005-10-28 11:23:38 UTC
I have the same problem. Mainboard is an Asus K8S-MX, SiS760GX chipset and SiS965L Southbridge. Setup cant find DVD anymore while booting up the setup. insmod ide-generic solves that but HDD on SATA isnt found though. Testet with Suse 10.0 64 bit and 32 bit and Suse 9.3. Newest Mandriva Kernel has solved that problem so Mandriva 2006 works fine (also SiS190 NIC is working under Mandriva... Kernel 2.6.14-RC1 has solved that too). Anyone please make a new driver module so I can load setup. Dont want to wait till march next year...
Comment 15 Roger Larsson 2005-10-29 21:26:13 UTC
I think that this too can be related to bug #117541
(SiS chipset, ide problems)
Try if 10.0 beta3 is working for you too (It is the only version
that is working for me...)
Comment 16 Nico Laum 2005-11-03 10:49:55 UTC
This is a kernel bug fixed in 2.6.14-RC1 ... SiS190 NIC and SiS965L Southbridge SATA are not supported before. Someone please make a working driver to get installation work otherwise I cant install Suse 10. Kernel changelog from Mandriva kernel 2.6.12-12mdk:  Added sata_sil24 module, SiS182? minimal support, SiS190? driver, support of the IDE chipset of the SiS965L? boards. Kernel Patch here: http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.14-rc2/2.6.14-rc2-mm2/broken-out/sis5513-support-sis-965l.patch
Comment 17 Jens Axboe 2005-11-03 10:56:56 UTC
Good digging, thanks! I've added the patch to the SL100 repo, so it should show up in the next release. It should be possible to dig the sl5513.ko out of that rpm and manually load it from a usb stick or similar to get the installation going.
Comment 18 Nico Laum 2005-11-03 11:00:54 UTC
Could you explain that? Where can I find this rpm?
Comment 19 Jens Axboe 2005-11-03 11:08:35 UTC
It will go out via YOU like the other updates. But that can take a while, of course. I should have a built kernel here in a few hours, I will attach the updated sis5513.ko here so you can grab it.

One thing that you can try (I haven't verified if this works) is to enter the vendor and device ID in yast2 when it starts up and map it to sis5513 - in theory that should get you going right away.
Comment 20 Jens Axboe 2005-11-03 11:14:29 UTC
Created attachment 56348 [details]
sis5513 for SL10.0 i386 default with 765l support

Try this module, I just generated it for SL10.0 i386 default kernel.
Comment 21 Nico Laum 2005-11-03 11:30:21 UTC
I need a 64 bit module I think
Comment 22 Nico Laum 2005-11-03 11:48:43 UTC
I've copied that module to an USB mass Storage device. It's the only file on that device but setup (64 and 32 Bit) says "No new Driver Updates found" after I've selected USB Stick as Update medium
Comment 23 Jens Axboe 2005-11-03 11:49:15 UTC
Created attachment 56354 [details]
sis5513 for SL10.0 x86-64 default with 765l support

x86-64 module
Comment 24 Jens Axboe 2005-11-03 11:49:41 UTC
Indeed you do, I have attached the SL10.0 x84-64 default module as well.
Comment 25 Jens Axboe 2005-11-03 11:52:34 UTC
YOu need to load the module manually, it's not an update disk. So mount the stick and do an insmod /path/sis5513.ko

You did bunzip2 the file first, right?
Comment 26 Nico Laum 2005-11-03 12:14:53 UTC
bunziped that of course. Problem is I dont know where to mount the USB device and insmod the module when setup loads up. Tried boot options "mount /dev/sda insmod /dev/sda/sis5513_64.ko" but that doesnt worked.
Comment 27 Jens Axboe 2005-11-03 12:20:22 UTC
You probably have to load usb-storage, sd, and the usb adapter driver and then mount /dev/sda first. If you have a floppy, that would be easier to use (just mount /dev/fd0 and insmod from there).
Comment 28 Nico Laum 2005-11-03 12:34:02 UTC
So "boot options" is the correct way to input "mount... insmod..."?! I've just loaded setup then the USB Storage is mounted by setup the normal way while booting up. Then setup says "No CD found. Going to manual setup" because of that bug. Now I'm there like before, storage device is found at "apply driver update" so it is mounted but I cant find a way to insmod the module from this device. No textmode no anything. Unfortunately I dont have a floppy. 
Comment 29 Jens Axboe 2005-11-03 12:37:06 UTC
You should have a console on ctrl-alt-f2 after setup has started, do it from there. You can't mount/insmod with the boot options, you have to do it manually.
Comment 30 Nico Laum 2005-11-03 13:18:42 UTC
I'm now at the console but I cant mount/find the USB Device. Its a MP3 Player in USB Mass Storage mode and it seems to be mounted (the display shows "Do not disconnect"). I also see that from boot.msg. It should be sda... but /dev/sda is no dir and it cant be mounted or unmounted.
Comment 31 Nico Laum 2005-11-03 13:29:50 UTC
Ok, I've mounted sda at /media/floppy and can see sis5513_64.ko but "insmod /media/floppy/sis5513_64.ko" brings "insmod: error inserting 'sis5513_64.ko': -1 file exists"
Comment 32 Nico Laum 2005-11-03 13:41:48 UTC
OK my boot options are now "brokenmodules=sis5513 insmod=ide-generic" and insmod sis5513_64.ko make no errors. And now? How do I get back to Setup?
Comment 33 Nico Laum 2005-11-03 14:00:38 UTC
OK found that too... ctrl-alt-f7. Now I'm back at setup but the partitioner dont find my HDD... only sda USB Device.
Kernel messages after loading sis5513_64.ko are following:
sis5513: no version for "struct_module" found: kernel tainted.
sis5513: module not supported by Novell, setting U taint flag.
SIS5513: IDE controller at PCI slot 0000:00:02.5
    ACPI-0212: *** Warning: Device is not power manageable
SIS5513: chipset revision 1
SIS5513: not 100% native mode: will probe irqs later
SIS5513: SIS 965 IDE UDMA133 controller
SIS5513: port 0x01f already claimed by ide0
    ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:DMA
Probing IDE interface ide1...
Comment 35 Nico Laum 2005-11-04 10:43:44 UTC
I've tested the i386 module too but its the same thing. Nothing happens after Probing IDE interface ide1... Could you make new .ko from the other patch?
Comment 36 Steffen Winterfeldt 2005-11-16 11:07:20 UTC
To use a new module, either make it a driver update disk by putting it as
  /linux/suse/x86_64-10.1/modules/foo.ko
on a disk or copy it to
  /foo.ko
which makes it a modules disk which can be used if you select the 'more modules' entry in the module loading dialog.

You may want to try 'manual=1' to prevent auto-loading of modules.
Comment 37 Nico Laum 2005-11-16 15:03:21 UTC
I don't if thats exactly what you mean but I renamed sis5513.ko (64 bit) to foo.ko and put that on a CD but setup doesn't recognize this CD as a module disk. Tried that with manual=1 and loaded ide-generic to access the CD device
Comment 38 Steffen Winterfeldt 2005-11-16 15:20:19 UTC
Hm, ok, could be it accepts only floppy disks. :-(
I didn't actually mean you to rename it to 'foo', 'foo' is just a
placeholder for the module name.

In any case, go for the diver update variant, then. There's an 'apply driver update' menu item in linuxrc. It will accept CD-ROMs.
Note that 'x86_64' and '10.1' should be replaced with the real arch and
release you are testing with. ;-)
Comment 39 Nico Laum 2005-11-16 16:33:11 UTC
OK tried that. "Driver Update OK" but I get the same kernel messages I wrote 4 posts ago but without Probing IDE interface ide1... Still no HDD present
Comment 40 Nico Laum 2005-11-16 16:51:17 UTC
I was able to load the new sis5513. I had to load setup with manual=1, so sis5513 AND ide-generic both are not loaded because sis5513 cant be removed if loaded and ide-generic keeps sis5513 from loading correctly (I think). So loading of sis5513 brings up my DVD device on ide (like ide-generic did) but how do get the SATA HDD? Which modules I have to load to activate SATA support?
Comment 41 Nico Laum 2005-11-16 16:53:22 UTC
Used a USB Storage for that with /linux/suse/x86_64-10.0/modules/sis5513.ko and loaded usb storage module
Comment 42 Nico Laum 2005-11-16 17:16:21 UTC
Perhaps there's also missing a patch for sata_sis? I've loaded it but nothing happens... http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f2c853bca542f5ac0b036377637192a74f2091c2
Comment 43 Steffen Winterfeldt 2005-11-17 10:56:29 UTC
Modules that are relevant for your hardware are marked with a '*' in the
module loading menus.

If there are still no disks after all modules are loaded, then there might
still be a bug in this driver.

BTW, there's a simple shell running on console 9 all the time, in case you
need it for experiments.
Comment 44 Nico Laum 2005-11-17 13:29:13 UTC
No HDD is detected after loading all necessary modules. I've checked the kernel messages from the Mandriva 2006 Installation that works for the SIS965L Chipset and I made it that way Mandriva did (sis5513, later libata and sata_sis - after sata_sis the HDD is detected under Mandriva Linux) but it didnt worked. So I think problem is in sata_sis because nothing happens after loading it
Comment 45 Nico Laum 2005-11-17 13:31:43 UTC
Could you provide me the patched (two posts ago) sata_sis 64 Bit to test it?
Comment 46 Fernando Hartmann 2006-01-23 19:04:05 UTC
I have the same problem, any news about the suport of the SATA HDs with SiS 965L ?
Comment 48 Leah Cunningham 2006-02-27 22:15:21 UTC
Not sure if this is related or should be in another but, but I am also seeing trouble with an Asus board and 10.1.  Actually, the problems started in one of the  update Kernels to 10.0, but vanilla 10.0 worked mostly okay.

Anyhow, for me it works to do at install time (not sure what happens on reboot yet):

 brokenmodules=sis5513 insmod=ide_generic

I've attached hwinfo from 10.0 with the drive working, and one from the install system without this work-around enabled.
Comment 49 Leah Cunningham 2006-02-27 22:17:01 UTC
Created attachment 70497 [details]
hwinfo from running SUSE 10.0
Comment 50 Leah Cunningham 2006-02-27 22:17:47 UTC
Created attachment 70498 [details]
hwinfo from default boot of beta 5
Comment 51 Leah Cunningham 2006-02-27 22:18:15 UTC
Created attachment 70499 [details]
dmidecode output from running 10.0
Comment 53 Christoph Thiel 2006-04-20 19:22:28 UTC
This bug hasn't seen any progress for more than a month now, what's the status?
Comment 54 Bodo Bauer 2006-05-08 11:58:45 UTC
What's up here? Jens is this bug still valid?
Comment 55 Greg Kroah-Hartman 2006-12-19 19:20:49 UTC
Closing due to inactivity.

If this is still valid on the 10.2 release, please reopen.
Comment 56 Ivan Sassi 2007-04-17 11:16:37 UTC
Reopening:

The bug is still valid in the 10.2 openSuSE release... installing on a IBM Lenovo ThinkCentre type 8873-79G with SiS5513 rev.2 the installation can not find any hard disk...

I've tryied with the "brokenmodules=sis5513 insmod=ide_generic" with no luck...


Comment 57 Tejun Heo 2007-05-18 10:10:31 UTC
What happens if you pass only "brokenmodules=sis5513" but not the insmod part?  libata drivers should be able to take care of the device.
Comment 58 Stephan Kulow 2007-10-01 06:49:45 UTC
No response, closing old bug.