LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-28-2007, 11:50 PM   #16
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 172

Original Poster
Rep: Reputation: 19

I've done some more google looking. I see some systems where it seems to be working (Performance around 50-60 MB/s) and some where it doesn't. HDPARM doesn't seem to give good information sometimes. And other times, it seems right on. Hdparm is not able to change any SATA settings. But Maybe my chipset controller isn't supported.

Whole bunch of confusing answers of people who it either works for or doesn't work for. There are a load of issues with Hdparm & SATA and very little in the way of solutions.

I still don't know whether its a faulty drive or linux itself.

(I did update the BIOS to the most recent version, doesn't seem to make a difference)

So I'm a little disheartened..
 
Old 12-29-2007, 01:47 AM   #17
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
HDPARM should't change SATA settings, because lots of the settings are only available for IDE drives. Maybe this will help:

http://linux-ata.org/faq.html#combined

Last edited by Alien_Hominid; 12-29-2007 at 01:48 AM.
 
Old 12-29-2007, 09:14 AM   #18
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 11,155
Blog Entries: 3

Rep: Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408
Hi,

Quote:
Originally Posted by Alien_Hominid View Post
HDPARM should't change SATA settings, because lots of the settings are only available for IDE drives. Maybe this will help:

http://linux-ata.org/faq.html#combined
If you 'man hdparm';

Quote:
excerpt from 'man hdparm'
HDPARM(8) HDPARM(8)

NAME
hdparm - get/set hard disk parameters

SYNOPSIS
hdparm [ flags ] [device] ..

DESCRIPTION
hdparm provides a command line interface to various hard disk ioctls
supported by the Linux SATA/PATA/SAS "libata" subsystem and the older
IDE driver subsystem. Some options may work correctly only with the
latest kernels.
I would read the whole 'man' page!

Quote:
DESCRIPTION
hdparm provides a command line interface to various hard disk ioctls
supported by the Linux SATA/PATA/SAS "libata" subsystem and the older
IDE driver subsystem. Some options may work correctly only with the
latest kernels.
Notice the note about latests kernels. In reading your reference link the similar notes are made. The use of the 'Older, unsupported ioctls' does reference the older IDE libata.
 
Old 12-29-2007, 09:32 AM   #19
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 11,155
Blog Entries: 3

Rep: Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408
Hi,

Quote:
Originally Posted by rigelan View Post
I've done some more google looking. I see some systems where it seems to be working (Performance around 50-60 MB/s) and some where it doesn't. HDPARM doesn't seem to give good information sometimes. And other times, it seems right on. Hdparm is not able to change any SATA settings. But Maybe my chipset controller isn't supported.

Whole bunch of confusing answers of people who it either works for or doesn't work for. There are a load of issues with Hdparm & SATA and very little in the way of solutions.

I still don't know whether its a faulty drive or linux itself.

(I did update the BIOS to the most recent version, doesn't seem to make a difference)

So I'm a little disheartened..
You could be having problems with both the controller and the SATA drive support. Did you check your kernel?

This is for linux--2.6.21.5;

Quote:
~# cat /usr/src/linux-2.6.21.5/.config |grep -i sata
# CONFIG_BLK_DEV_IDE_SATA is not set
CONFIG_SATA_AHCI=y
CONFIG_SATA_SVW=y
CONFIG_SATA_MV=y
CONFIG_SATA_NV=y
CONFIG_SATA_QSTOR=y
CONFIG_SATA_PROMISE=y
CONFIG_SATA_SX4=y
CONFIG_SATA_SIL=y
CONFIG_SATA_SIL24=y
CONFIG_SATA_SIS=y
CONFIG_SATA_ULI=y
CONFIG_SATA_VIA=y
CONFIG_SATA_VITESSE=y
CONFIG_SATA_INIC162X=m
CONFIG_SATA_INTEL_COMBINED=y
CONFIG_SATA_ACPI=y
For the IDE;

Quote:
~# cat /usr/src/linux-2.6.21.5/.config |grep -i ide
CONFIG_ACPI_VIDEO=m
CONFIG_PARIDE=m
# Parallel IDE high-level drivers
CONFIG_PARIDE_PD=m
CONFIG_PARIDE_PCD=m
CONFIG_PARIDE_PF=m
CONFIG_PARIDE_PT=m
CONFIG_PARIDE_PG=m
# Parallel IDE protocol modules
CONFIG_PARIDE_ATEN=m
CONFIG_PARIDE_BPCK=m
CONFIG_PARIDE_BPCK6=m
CONFIG_PARIDE_COMM=m
CONFIG_PARIDE_DSTR=m
CONFIG_PARIDE_FIT2=m
CONFIG_PARIDE_FIT3=m
CONFIG_PARIDE_EPAT=m
CONFIG_PARIDE_EPATC8=y
CONFIG_PARIDE_EPIA=m
CONFIG_PARIDE_FRIQ=m
CONFIG_PARIDE_FRPW=m
CONFIG_PARIDE_KBIC=m
CONFIG_PARIDE_KTTI=m
CONFIG_PARIDE_ON20=m
CONFIG_PARIDE_ON26=m
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y
# Please see Documentation/ide.txt for help/info on IDE drives
# CONFIG_BLK_DEV_IDE_SATA is not set
# CONFIG_BLK_DEV_HD_IDE is not set
CONFIG_BLK_DEV_IDEDISK=y
# CONFIG_IDEDISK_MULTI_MODE is not set
CONFIG_BLK_DEV_IDECS=m
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_IDETAPE=m
CONFIG_BLK_DEV_IDEFLOPPY=y
CONFIG_BLK_DEV_IDESCSI=m
# CONFIG_BLK_DEV_IDEACPI is not set
# CONFIG_IDE_TASK_IOCTL is not set
# IDE chipset support/bugfixes
CONFIG_IDE_GENERIC=y
CONFIG_BLK_DEV_IDEPNP=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
# CONFIG_IDEDMA_ONLYDISK is not set
# CONFIG_IDE_ARM is not set
CONFIG_IDE_CHIPSETS=y
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
# Old CD-ROM drivers (not SCSI, not IDE)
CONFIG_CD_NO_IDESCSI=y
CONFIG_IEEE1394_VIDEO1394=m
You may need to compile a kernel to setup for your hardware. You stated that the huge-smp was being used. As PV suggest, I would use the generic-smp. We really need to know what hardware you are using. Post the output of 'lspci -vv'.
 
Old 12-29-2007, 09:34 AM   #20
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
If you read below:
Quote:
Older, unsupported ioctls

Why does HDIO_SET_DMA fail? I want to use DMA!
Why does HDIO_SET_UNMASKINTR fail?

libata intentionally does not support all the HDIO_xxx ioctls that were supported by the older IDE driver. It is now preferred to use SG_IO as a generalized ATA command submission method, rather than creating a myriad of ioctls for each specific purpose.

The design decision was made only to support the HDIO_xxx ioctls that were heavily used by other programs. Generally the driver always programs the hardware to its maximum capability automatically, completely without user intervention. Therefore, for example, HDIO_SET_DMA is not needed for the vast majority of users because DMA is automatically enabled and used where available.

So not all IOctls, which were available for IDE drives are available for SATA ones.

Last edited by Alien_Hominid; 12-29-2007 at 09:37 AM.
 
Old 12-29-2007, 09:46 AM   #21
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 11,155
Blog Entries: 3

Rep: Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408
Hi,

I did read! And I stand by what I said. Maybe it's just a matter of semantics.
 
Old 12-29-2007, 09:58 AM   #22
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
I don't know, I'm not a native speaker, but this: The design decision was made only to support the HDIO_xxx ioctls that were heavily used by other programs. Generally the driver always programs the hardware to its maximum capability automatically, completely without user intervention (for me) means that only the most often used parameters can be adjusted by hdparm for SATA drives. Inappropriate ioctl for device error will follow in all other cases.

Last edited by Alien_Hominid; 12-29-2007 at 09:59 AM.
 
Old 12-29-2007, 12:11 PM   #23
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 172

Original Poster
Rep: Reputation: 19
lspci -vv for the SATA controller goes as follows

Quote:
00:12.0 SATA controller: ATI Technologies Inc SB600 Non-Raid-5 SATA (prog-if 01 [AHCI 1.0])
Subsystem: Giga-byte Technology Unknown device b005
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 32
Interrupt: pin A routed to IRQ 16
Region 0: I/O ports at ff00 [size=8]
Region 1: I/O ports at fe00 [size=4]
Region 2: I/O ports at fd00 [size=8]
Region 3: I/O ports at fc00 [size=4]
Region 4: I/O ports at fb00 [size=16]
Region 5: Memory at fe02f000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [60] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
 
Old 12-29-2007, 01:40 PM   #24
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
What kernel version are you using ? It could be a bug in this particular version of the kernel, maybe try a newer or the latest kernel.

Last edited by H_TeXMeX_H; 12-30-2007 at 06:24 AM. Reason: It not I, I am not a bug :)
 
Old 12-29-2007, 06:36 PM   #25
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 172

Original Poster
Rep: Reputation: 19
Huge-smp-2.6.21.5.
 
Old 12-30-2007, 09:00 AM   #26
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Did you try this: http://linux-ata.org/faq.html#combined ?
FastB2B (fast back to back) is not active so this could be a problem.
As well, try Slackware kernel from current.
 
Old 12-30-2007, 12:26 PM   #27
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 172

Original Poster
Rep: Reputation: 19
My board is a gigabyte board with an AMD/ATI chipset & an AMD processor. Is this the case with a non-intel board as well?

And besides, my BIOS mode already is set at AHCI

Last edited by rigelan; 12-30-2007 at 12:33 PM.
 
Old 12-30-2007, 03:04 PM   #28
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
I think it depends on the chipset, but not on the manufacturer of the motherboard.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I install Linux on Western Digital USB external hard drive? priyankadeven Linux - Newbie 6 11-24-2009 09:12 PM
Need help with Western Digital Hard Drive robogymnast General 2 12-30-2005 04:18 PM
maxtor or western digital? hedpe General 24 12-09-2005 12:44 AM
Western digital drivers Darthbudge Linux - Newbie 6 11-26-2005 07:21 PM
Western Digital USB harddrive. RoaCh Of DisCor Linux - Hardware 3 01-28-2005 05:26 PM


All times are GMT -5. The time now is 01:31 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration