| View previous topic :: View next topic |
| Author |
Message |
pwaller n00b

Joined: 03 Sep 2007 Posts: 25
|
Posted: Sun Sep 23, 2007 5:29 pm Post subject: |
|
|
okay, so it turns out I was being really dumb and was compiling 2.6.22-suspend2-r2 but using 2.6.22-suspend2 (no -r2)
and it turns out that something I disabled (and I am unsure what unfortunately, because I made lots of small changes to make sure I didn't break anything, but wasn't using the right kernel, so I have no idea what broke it.
It's complaining it can't find my boot partition... I've tried turning lots of stuff back on but to no avail.. urrgh...
I will continue fiddling. If anyone can spot what I might be doing wrong I would appreciate it. |
|
| Back to top |
|
 |
pwaller n00b

Joined: 03 Sep 2007 Posts: 25
|
Posted: Sun Sep 23, 2007 7:02 pm Post subject: |
|
|
jupiter afs # hdparm -d1 -u1 -c1 /dev/hda
/dev/hda:
setting 32-bit IO_support flag to 1
setting unmaskirq to 1 (on)
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 0 (off)
Nothing listed in dmesg.
I managed to get a bootable system back. Not sure what was the problem. Started off with a good config and painstakingly removed bits at a time.
Benchmark using hdparm:
jupiter afs # hdparm -tT /dev/hda
/dev/hda:
Timing cached reads: 2258 MB in 2.00 seconds = 1129.86 MB/sec
Timing buffered disk reads: 18 MB in 3.26 seconds = 5.52 MB/sec
I read that the cached reads number is acceptable, but the buffered read rate should be more like ten times what I have, and of course DMA is off.
My latest kernel config: (I will remove RTC and reset the schedulers and stuff soon, I'm now more worried about the DMA issues.)
http://pastebin.ca/708293 |
|
| Back to top |
|
 |
Sadako Advocate


Joined: 05 Aug 2004 Posts: 3744 Location: sleeping in the bathtub
|
Posted: Sun Sep 23, 2007 7:20 pm Post subject: |
|
|
"CONFIG_BLK_DEV_VIA82CXXX"?
You're still using the via chipset driver, and as energyman76b pointed out it's one of the intel drivers you should be using. _________________ "You have to invite me in" |
|
| Back to top |
|
 |
pwaller n00b

Joined: 03 Sep 2007 Posts: 25
|
Posted: Sun Sep 23, 2007 7:22 pm Post subject: |
|
|
| Ah. Yup, whoops. I will be disabling this very shortly. |
|
| Back to top |
|
 |
Sadako Advocate


Joined: 05 Aug 2004 Posts: 3744 Location: sleeping in the bathtub
|
Posted: Sun Sep 23, 2007 7:25 pm Post subject: |
|
|
| pwaller wrote: | | Ah. Yup, whoops. I will be disabling this very shortly. |
Disabling this will not be enough, you need to enable the appropriate driver for your intel chipset. _________________ "You have to invite me in" |
|
| Back to top |
|
 |
pwaller n00b

Joined: 03 Sep 2007 Posts: 25
|
Posted: Sun Sep 23, 2007 8:06 pm Post subject: |
|
|
hmm. I disabled the Via and I disabled the generic, enabling the Intel PIIX and I am unable to boot. Then I enabled the generic and I can boot.
Here is my dmesg:
http://pastebin.ca/708386 |
|
| Back to top |
|
 |
energyman76b Advocate


Joined: 26 Mar 2003 Posts: 2005 Location: Germany
|
Posted: Sun Sep 23, 2007 9:56 pm Post subject: |
|
|
could you please post the config belonging to that dmesg? (and turn of the fs you don't have... please.. your dmesg will be a lot shorter and more readable with all the superfluos stuff turned off...). _________________
| AidanJT wrote: |
...because pro-lifers (especially the catholic variety) are sick, depraved, satanic ....
|
...'people' - had to clean it up to not be offensive...
"The secret of politics? Make a good treaty with Russia." |
|
| Back to top |
|
 |
pwaller n00b

Joined: 03 Sep 2007 Posts: 25
|
Posted: Sun Sep 23, 2007 10:01 pm Post subject: |
|
|
Config:
http://pastebin.ca/708522
Oh, and I have turned off all of the FS's I want to. |
|
| Back to top |
|
 |
energyman76b Advocate


Joined: 26 Mar 2003 Posts: 2005 Location: Germany
|
Posted: Mon Sep 24, 2007 12:21 am Post subject: |
|
|
please turn off this stuff:
CONFIG_ATA=y
CONFIG_ATA_ACPI=y
CONFIG_ATA_PIIX=y
you only can have libata or the 'normal' ide drivers, but if you try using both, you run into problems. _________________
| AidanJT wrote: |
...because pro-lifers (especially the catholic variety) are sick, depraved, satanic ....
|
...'people' - had to clean it up to not be offensive...
"The secret of politics? Make a good treaty with Russia." |
|
| Back to top |
|
 |
pwaller n00b

Joined: 03 Sep 2007 Posts: 25
|
Posted: Mon Sep 24, 2007 12:26 am Post subject: |
|
|
| Okay, slightly confused. So I have an Intel Chipset (ICH stuff) and my hard drive is SATA. What do I want to be using? (If not the things you just listed) |
|
| Back to top |
|
 |
energyman76b Advocate


Joined: 26 Mar 2003 Posts: 2005 Location: Germany
|
Posted: Mon Sep 24, 2007 12:51 am Post subject: |
|
|
aaaah. You have SATA. I missed that.
Ok, in that case, keep the ide stuff (not the libata stuff) and also set this option:
CONFIG_ATA_ACPI=y
CONFIG_SATA_AHCI=y
or, if AHCI does not work for you (but AHCI is supported by most intel chipsets - it was intels idea..):
deactivate everthing in ide, and set
CONFIG_ATA_PIIX
but, you also have to compile scsi harddisk support and scsi cdrom support into the kernel.
Is your cdrom sata too? Or only the harddisk? _________________
| AidanJT wrote: |
...because pro-lifers (especially the catholic variety) are sick, depraved, satanic ....
|
...'people' - had to clean it up to not be offensive...
"The secret of politics? Make a good treaty with Russia." |
|
| Back to top |
|
 |
pwaller n00b

Joined: 03 Sep 2007 Posts: 25
|
Posted: Mon Sep 24, 2007 1:39 am Post subject: |
|
|
| I don't know about the CD-Rom -- is there an easy way to find out? |
|
| Back to top |
|
 |
energyman76b Advocate


Joined: 26 Mar 2003 Posts: 2005 Location: Germany
|
Posted: Mon Sep 24, 2007 3:22 am Post subject: |
|
|
| pwaller wrote: | | I don't know about the CD-Rom -- is there an easy way to find out? |
hdparm -iI /dev/deviceofyourcdrom and googling for the name. _________________
| AidanJT wrote: |
...because pro-lifers (especially the catholic variety) are sick, depraved, satanic ....
|
...'people' - had to clean it up to not be offensive...
"The secret of politics? Make a good treaty with Russia." |
|
| Back to top |
|
 |
pwaller n00b

Joined: 03 Sep 2007 Posts: 25
|
|
| Back to top |
|
 |
energyman76b Advocate


Joined: 26 Mar 2003 Posts: 2005 Location: Germany
|
Posted: Mon Sep 24, 2007 1:34 pm Post subject: |
|
|
ok, in that case try the AHCI driver in the SATA/ATA menu, compile scsi disk into the kernel, and the ide drivers.
I am not sure - it might be problematic, maybe someone using intel-chips could say something *sigh* _________________
| AidanJT wrote: |
...because pro-lifers (especially the catholic variety) are sick, depraved, satanic ....
|
...'people' - had to clean it up to not be offensive...
"The secret of politics? Make a good treaty with Russia." |
|
| Back to top |
|
 |
tarpman Veteran


Joined: 04 Nov 2004 Posts: 1083 Location: Victoria, BC, Canada
|
Posted: Mon Sep 24, 2007 1:59 pm Post subject: |
|
|
Your laptop is very similar to mine. What you want to do is disable the E/IDE subsystem completely in favour of the new libata stuff (CONFIG_ATA and friends). Specifically, you need CONFIG_ATA for the libata subsystem (CONFIG_ATA_ACPI, a hidden symbol, is selected automatically), CONFIG_ATA_PIIX for your SATA chipset, and CONFIG_PATA_MPIIX for IDE support for your DVD drive. All other ATA related options should be disabled; specifically, CONFIG_IDE and everything underneath it must be disabled, as must CONFIG_ATA_GENERIC. Then, to allow the devices to show up, make sure CONFIG_BLK_DEV_SD (for your hard drive) and CONFIG_BLK_DEV_SR (for your optical drive) are enabled. CONFIG_CHR_DEV_SG is also a good idea.
Be warned: this is a major subsystem change. Your hard drive, if it is currently /dev/hda, will change to /dev/sda; make sure you update /etc/fstab to reflect this before rebooting. Your DVD drive may or may not become /dev/sr0; it may also stay as /dev/hdc, in which case /dev/sr0 may or may not be a symlink to it (or vice versa), depending on your specific hardware; either way, udev should maintain appropriate /dev/cdrom and /dev/dvd symlinks, so you shouldn't have to do anything with that. hdparm does not work to set parameters on SATA drives, although you can use it with -i and/or -I to show information about your drives; to set parameters you want sdparm instead.
DMA is automatically enabled for all drives supported by the libata subsystem, so if you are able to boot with CONFIG_IDE and CONFIG_ATA_GENERIC disabled, then DMA will be enabled for you unless it simply will not work with your particular hardware. _________________ Saving the world, one kilobyte at a time. |
|
| Back to top |
|
 |
pwaller n00b

Joined: 03 Sep 2007 Posts: 25
|
Posted: Mon Sep 24, 2007 8:12 pm Post subject: |
|
|
Woohoo, this is exactly correct.
Cheers.
- Pete |
|
| Back to top |
|
 |
SkyLeach Apprentice


Joined: 05 Nov 2002 Posts: 177 Location: Knoxville, TN
|
Posted: Mon Sep 24, 2007 9:20 pm Post subject: no luck with DMA on intel 82801GB/GR/GH hardware |
|
|
I've searched google, these forums and others and I'm still having no luck getting DMA to work on an HP-Compaq 2300 series desktop microtower
lspci:
| Code: | 00:00.0 Host bridge: Intel Corporation Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation PCI Express Root Port (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Integrated Graphics Controller (rev 02)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) Serial ATA Storage Controller IDE (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
02:00.0 RAID bus controller: Silicon Image, Inc. SiI 3124 PCI-X Serial ATA Controller (rev 01)
02:08.0 Ethernet controller: Intel Corporation 82801G (ICH7 Family) LAN Controller (rev 01)
|
There are no bios options on this machine concerning the operation mode of the SATA controller. The kernel sees the disks as IDE disks (/dev/hda, /dev/hdb -> dvdr)
there is no ide interface on this system, it's all SATA
dunno what else to try, thought I'd try posting.
some additional info:
hdparm /dev/hda:
| Code: | /dev/hda:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 16383/255/63, sectors = 156301488, start = 0
|
speed test:
| Code: | backdoorman mgregory # hdparm -tT /dev/hda
/dev/hda:
Timing cached reads: 1994 MB in 2.00 seconds = 997.17 MB/sec
Timing buffered disk reads: 12 MB in 3.39 seconds = 3.54 MB/sec
|
attempt to turn on dma results in this:
| Code: | /dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off) |
_________________ -SL
http://www.skyleach.org |
|
| Back to top |
|
 |
tarpman Veteran


Joined: 04 Nov 2004 Posts: 1083 Location: Victoria, BC, Canada
|
Posted: Mon Sep 24, 2007 9:53 pm Post subject: |
|
|
Post your kernel config (with comments stripped out - try zgrep -ve "^#" -e "^$" /proc/config.gz) somewhere, and take a look at my post here. I know your machine isn't a laptop, but the advice there pertains to any 82801 or similar chipset. _________________ Saving the world, one kilobyte at a time. |
|
| Back to top |
|
 |
SkyLeach Apprentice


Joined: 05 Nov 2002 Posts: 177 Location: Knoxville, TN
|
Posted: Tue Sep 25, 2007 1:22 am Post subject: |
|
|
| tarpman wrote: | | Post your kernel config (with comments stripped out - try zgrep -ve "^#" -e "^$" /proc/config.gz) somewhere, and take a look at my post here. I know your machine isn't a laptop, but the advice there pertains to any 82801 or similar chipset. |
managed to fix it by using 2.6.22-gentoo-r7 _________________ -SL
http://www.skyleach.org |
|
| Back to top |
|
 |
SkyLeach Apprentice


Joined: 05 Nov 2002 Posts: 177 Location: Knoxville, TN
|
Posted: Tue Sep 25, 2007 1:24 am Post subject: |
|
|
btw, I had already read your post and checked my kernel config. I had found some other information on ICH7 based laptops and done all of it as well.
different chipset revision perhaps? Mine is a 946gz express. _________________ -SL
http://www.skyleach.org |
|
| Back to top |
|
 |
tarpman Veteran


Joined: 04 Nov 2004 Posts: 1083 Location: Victoria, BC, Canada
|
Posted: Tue Sep 25, 2007 2:08 am Post subject: |
|
|
Does your drive appear as /dev/sda with the new kernel, or is it still /dev/hda? If you have it set up properly, it should be the former. If it's still /dev/hda, then you're still using the older IDE subsystem, rather than the new libata one, and some things may not work at their best. There's nothing to be lost from switching to libata - it's a fully mature and functional system at this point. For SATA drives in particular, it's definitely the better choice (e.g. NCQ functionality).
Chipset revision doesn't (ok, shouldn't) matter; this information applies to all ICH7 boards, and possibly to some earlier ones as well. _________________ Saving the world, one kilobyte at a time. |
|
| Back to top |
|
 |
desultory Administrator


Joined: 04 Nov 2005 Posts: 6906
|
|
| Back to top |
|
 |
SkyLeach Apprentice


Joined: 05 Nov 2002 Posts: 177 Location: Knoxville, TN
|
Posted: Tue Sep 25, 2007 6:55 pm Post subject: |
|
|
| tarpman wrote: | Does your drive appear as /dev/sda with the new kernel, or is it still /dev/hda? If you have it set up properly, it should be the former. If it's still /dev/hda, then you're still using the older IDE subsystem, rather than the new libata one, and some things may not work at their best. There's nothing to be lost from switching to libata - it's a fully mature and functional system at this point. For SATA drives in particular, it's definitely the better choice (e.g. NCQ functionality).
Chipset revision doesn't (ok, shouldn't) matter; this information applies to all ICH7 boards, and possibly to some earlier ones as well. |
yeah, it's showing up as a scsi device now. _________________ -SL
http://www.skyleach.org |
|
| Back to top |
|
 |
|