Bug 136944 - ITE card fails after install (IT8212 Chip Set)
Summary: ITE card fails after install (IT8212 Chip Set)
Status: VERIFIED WORKSFORME
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Alpha 4
Hardware: x86 Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-05 16:07 UTC by andy norrie
Modified: 2006-03-14 13:25 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Log from failure (22.53 KB, text/plain)
2005-12-13 16:25 UTC, andy norrie
Details
Log of failure (19.62 KB, text/plain)
2005-12-14 19:29 UTC, andy norrie
Details
dummy file (39 bytes, text/plain)
2005-12-16 19:14 UTC, andy norrie
Details
Disable DMA if not listed as supported (318 bytes, patch)
2006-01-04 14:13 UTC, Jens Axboe
Details | Diff
ITE Raid driver that USED to work in case it helps (194.60 KB, patch)
2006-01-04 16:51 UTC, andy norrie
Details | Diff
Possibly better patch (560 bytes, patch)
2006-01-17 14:01 UTC, Jens Axboe
Details | Diff
Patched driver (22.35 KB, patch)
2006-01-25 18:08 UTC, Jens Axboe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description andy norrie 2005-12-05 16:07:30 UTC
On install the ITE card recognises the extra 4 IDE disks and there partitions (They end up correctly in /etc/fstab) but after reboot I get invalid command for each partition followed by unable to sync msg then kernel panic. With the ITE IDE card removed it installs fine.

Andy Norrie
Comment 1 Ladislav Slezák 2005-12-06 16:36:54 UTC
What is the invalid command? Please, provide more information.

Reassigned to the kernel team.
Comment 2 Lars Marowsky-Bree 2005-12-06 21:23:42 UTC
Please provide hwinfo output from the system as well as kernel logfiles regarding the failure.
Comment 3 Lars Marowsky-Bree 2005-12-13 14:49:41 UTC
No further feedback. Please re-open if more information is available.
Comment 4 andy norrie 2005-12-13 16:25:12 UTC
Created attachment 60437 [details]
Log from failure

Sorry it took so long to get. The command that fails says in the console log it is "unknown". Note that this is a dual boot machine and the disks are all NTFS partitions and run fine under XP SP2 plus all latest fixes as of today added. If you want more info can to tell me how to get it at it took ages to find out how to boot the rescue system and then mount the real root and a windows FAT partition to move the dafa across. 
Cheers, Andy
Comment 5 andy norrie 2005-12-13 16:27:02 UTC
Re-open after data supplied
Comment 6 Lars Marowsky-Bree 2005-12-13 17:16:10 UTC
Thanks for the feedback, but something went wrong with the attachment, sorry. It appears to be empty and just consists of ascii zeroes... Could you please try attaching it again after making sure it's the right file indeed and displays OK locally?

Thanks!
Comment 7 andy norrie 2005-12-14 19:29:55 UTC
Created attachment 60577 [details]
Log of failure

Log file provided. Strange - this time it got futher and loaded up CD's 2 -> 5 and then failed on reboot. The end of the console log is as follows...

hdf  dma_timer_expiry dma_status 0x60
hdf  dma timer retry
hdf  timeout waiting for dma
hde  status_error   status 0x58 {driveready seekcomplete datarequest}
ide  failed opcode was : unknown
cpu 0 machine check exception exception 4 bank 4 b200000000070f0f
tsc 26272ad37d
kernel panic - not syncing: machine check


Note I have run memory test on the machine (from the install disk) for 24 hours with no errors - just in case.....

Thanks, Andy
Comment 8 andy norrie 2005-12-16 08:37:56 UTC
Sorry - I had the level of Linux incorrect but it did also fail on 10.0 the same way but as I am now on 10.1 Alpha (in the hope it would fix the problem) that is the one I will continue to use unless a newer beta comes out. Also added the chipset type IT8212
Comment 9 andy norrie 2005-12-16 19:14:37 UTC
Created attachment 61131 [details]
dummy file

Have tried the Alpha 4 release but get the same problem. Have also tried this on another Athlon 64 processer machine with the same problem. It has its own 8212 card. 

Andy Norrie
Comment 10 Olaf Kirch 2006-01-02 16:30:21 UTC
Something's fishy here indeed. The log says:

<6>hde: 398297088 sectors (203928 MB) w/8192KiB Cache, CHS=24792/255/63, BUG

Note the BUG at the end of the line.

Jens, any idea why it would do that?
Comment 11 Jens Axboe 2006-01-04 14:05:16 UTC
The BUG shows up because the drive has some weird values set in its IDENTIFY page. This is usually where you see the UDMA/DMA mode listed.

Does the failsafe boot change anything? It looks like problems with either dma or irq delivery.
Comment 12 Jens Axboe 2006-01-04 14:07:21 UTC
Checking the ATA spec, it looks really strange indeed. word53 is the one that ide-dma checks to see what modes are supported, and the drive doesn't list either ultra or pio modes as valid. Only bit 1, which is the basic cyl/head/sec values.
Comment 13 Jens Axboe 2006-01-04 14:09:58 UTC
Oh, it's the it821x driver doing these 'fixups' for non-raid volumes that aren't in pass-through mode. It actually looks like a very inferior mode looking at the driver, the problem is most likely that dma gets enabled which it wont support in this configuration.

Any chance you can change this setup?
Comment 14 Jens Axboe 2006-01-04 14:13:23 UTC
Created attachment 61950 [details]
Disable DMA if not listed as supported

This might help the driver at least talk to the drives in this configuration.
Comment 15 andy norrie 2006-01-04 16:51:27 UTC
Created attachment 61959 [details]
ITE Raid driver that USED to work in case it helps

Details on possible working driver attached.
Comment 16 Jens Axboe 2006-01-04 19:43:17 UTC
It's not of much help I"m afraid, as it's the older SCSI variant. It really cannot help fix the current issue with the IDE layer and the new driver.
Comment 17 andy norrie 2006-01-14 16:45:37 UTC
Good news, I think. I have applied the patch and all seems well however I cant be 100% sure
as this is the first time I patched the Kernel.

I applied the patch and it created an IDE_DMA.C.ORIG file.

I then did a make bzImage

Then added an extra section in grub to boot that kernel.
I made the grub stuf identical to normal boot except for the kernel name

I IPL'ed the new Kernel and I could get read/write access to the drives there
Read access to the NTFS ones and read/write to the FAT one.

If there are any other things I can test etc give me a shout via Email
at  GM1MQE@AOL.COM

Very many thanks, Andy Norrie
Comment 18 Jens Axboe 2006-01-16 10:21:13 UTC
Thanks for testing, the patch will be in 10.1 (I have committed it).
Comment 19 Jens Axboe 2006-01-17 14:01:12 UTC
Created attachment 63609 [details]
Possibly better patch

Any chance you can test this patch _instead_ of the previous one?
Comment 20 andy norrie 2006-01-17 16:59:51 UTC
Yes I will but do I remove the origional patch first?
Comment 21 Jens Axboe 2006-01-17 20:50:29 UTC
Yes, it's very important that you remove the old one first. You should see the BUG thing at boot again when you do that, so the newly built kernel with the replacement patch should display that again.
Comment 22 andy norrie 2006-01-21 08:58:14 UTC
Been unable to get the patch supplied to apply to alpha-4 level. It looks as if its to do with the directories. Can you please have a look as I dont know much about the patch system. It seems to obgect to the --dif stuff as well.
Comment 23 Jens Axboe 2006-01-23 14:31:13 UTC
Hmm, it applies fine and without offset for me:

axboe@nelson:[.]mnt/kscratch/linux-2.6.15 $ patch -p1 --dry-run < ~/it821x-dma-bug 
patching file drivers/ide/pci/it821x.c
axboe@nelson:[.]mnt/kscratch/linux-2.6.15 $ 

What happens for you?
Comment 25 andy norrie 2006-01-25 18:05:34 UTC
Still cant get patch to fit.... Its erroring on the directories - they dont exist in my system. Sorry. I have downloaded and installed the BETA 1 level. Would it be at all possible to send my via Email a copy of the patched IT821x.c file with the patch installed as I can cope with that?

Next job... Learn how to patch kernels properly!!

Thanks Andy   GM1MQE@AOL.COM
Comment 26 Jens Axboe 2006-01-25 18:08:40 UTC
Created attachment 65070 [details]
Patched driver

Here it is, the file with the patch applied.
Comment 27 Jens Axboe 2006-01-25 18:08:57 UTC
There you go, please give that a test spin.
Comment 28 andy norrie 2006-01-25 19:38:42 UTC
That was a fast response! OK I have tried it out and it "works for me". I did see the "BUG" msg at startup time in the log as you warned. I intend to reload the whole Beta 1 version tomorrow, redo the patch and set it all up properly and then give it some serious disk testing on that card.

Many thanks, Andy
Comment 29 Jens Axboe 2006-01-25 19:56:55 UTC
Excellent, thanks a lot for testing. I've committed this change now, I wont be there before beta3 though.
Comment 30 andy norrie 2006-01-25 20:59:20 UTC
Thanks for all your help. I will do a re-test when Beta-3 is available.

Regards, Andy
Comment 31 andy norrie 2006-03-14 13:25:55 UTC
Just to confirm it all works beautifully on Beta 6. Sorry I was not able to test earlier but I have been unwell. Thanks for all your help.