Page 1 of 1

ata3: softreset failed (device not ready)

PostPosted: May 14th, '12, 15:40
by akolychkine
I have this error when booting:

Code: Select all
dmesg | grep ata
[    0.000000]  BIOS-e820: 000000007ffa0000 - 000000007ffae000 (ACPI data)
[    0.000000] Memory: 2043824k/2096736k available (4465k kernel code, 452k absent, 52460k reserved, 6415k data, 744k init)
[    0.341967] ACPI: EC: GPE = 0x11, I/O: command/status = 0x66, data = 0x62
[    1.971444] Write protecting the kernel read-only data: 10240k
[    2.080142] libata version 3.00 loaded.
[    2.081529] pata_atiixp 0000:00:14.1: setting latency timer to 64
[    2.082105] scsi0 : pata_atiixp
[    2.082294] scsi1 : pata_atiixp
[    2.083394] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xff00 irq 14
[    2.083398] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xff08 irq 15
[    2.253527] ata1.00: ATAPI: TSSTcorp CDDVDW SN-S082H, SB01, max UDMA/33
[    2.275461] ata1.00: configured for UDMA/33
[    2.289047] ata3: SATA max UDMA/133 abar m1024@0xfdeff800 port 0xfdeff900 irq 22
[    2.289052] ata4: SATA max UDMA/133 abar m1024@0xfdeff800 port 0xfdeff980 irq 22
[    2.289057] ata5: SATA max UDMA/133 abar m1024@0xfdeff800 port 0xfdeffa00 irq 22
[    2.289062] ata6: SATA max UDMA/133 abar m1024@0xfdeff800 port 0xfdeffa80 irq 22
[    2.594072] ata5: SATA link down (SStatus 0 SControl 300)
[    2.594133] ata4: SATA link down (SStatus 0 SControl 300)
[    2.594172] ata6: SATA link down (SStatus 0 SControl 300)
[    2.749053] ata3: softreset failed (device not ready)
[    2.749154] ata3: applying PMP SRST workaround and retrying
[    2.904063] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    2.905186] ata3.00: ATA-7: Hitachi HTS541612J9SA00, SBDOC70P, max UDMA/100
[    2.905191] ata3.00: 234441648 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[    2.905196] ata3.00: SB600 AHCI: limiting to 255 sectors per cmd
[    2.906484] ata3.00: SB600 AHCI: limiting to 255 sectors per cmd
[    2.906489] ata3.00: configured for UDMA/100
[    7.132839] REISERFS (device sda6): using ordered data mode
[    7.308223] REISERFS (device sda6): using ordered data mode
[   19.897927] EXT3-fs (sda8): mounted filesystem with ordered data mode
[   20.237613] EXT3-fs (sda7): mounted filesystem with ordered data mode
[   28.946540] ata3.00: SB600 AHCI: limiting to 255 sectors per cmd
[   28.948095] ata3.00: SB600 AHCI: limiting to 255 sectors per cmd
[   28.948103] ata3.00: configured for UDMA/100
[   28.948111] ata3: EH complete


It's not so annoying, unless I plug the power supply of laptop out. In this case the system freezes for a couple of minutes and can even loose the control of the drive after that. Below the hardware configuration:

Code: Select all
lspci
00:00.0 Host bridge: ATI Technologies Inc RS690 Host Bridge
00:02.0 PCI bridge: ATI Technologies Inc RS690 PCI to PCI Bridge (PCI Express Graphics Port 0)
00:04.0 PCI bridge: ATI Technologies Inc Device 7914
00:05.0 PCI bridge: ATI Technologies Inc RS690 PCI to PCI Bridge (PCI Express Port 1)
00:06.0 PCI bridge: ATI Technologies Inc RS690 PCI to PCI Bridge (PCI Express Port 2)
00:07.0 PCI bridge: ATI Technologies Inc RS690 PCI to PCI Bridge (PCI Express Port 3)
00:12.0 SATA controller: ATI Technologies Inc SB600 Non-Raid-5 SATA
00:13.0 USB controller: ATI Technologies Inc SB600 USB (OHCI0)
00:13.1 USB controller: ATI Technologies Inc SB600 USB (OHCI1)
00:13.2 USB controller: ATI Technologies Inc SB600 USB (OHCI2)
00:13.3 USB controller: ATI Technologies Inc SB600 USB (OHCI3)
00:13.4 USB controller: ATI Technologies Inc SB600 USB (OHCI4)
00:13.5 USB controller: ATI Technologies Inc SB600 USB Controller (EHCI)
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 14)
00:14.1 IDE interface: ATI Technologies Inc SB600 IDE
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
00:14.3 ISA bridge: ATI Technologies Inc SB600 PCI to LPC Bridge
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:00.0 VGA compatible controller: ATI Technologies Inc Mobility Radeon X2300
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
07:00.0 Ethernet controller: Atheros Communications Inc. AR242x / AR542x Wireless Network Adapter (PCI-Express) (rev 01)
08:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
08:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
08:01.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
08:01.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)


I've googled the error and found the solution: http://www.linuxquestions.org/questions ... dy-865155/
It looks to be due to my south bridge. So the question: are there going to be changes in the kernel or I should recompile the kernel by myself in order to eliminate the error?

Re: ata3: softreset failed (device not ready)

PostPosted: May 16th, '12, 11:26
by djennings
First if all I would suggest booting with a Mageia 2 RC Live CD to see if the problem is there too.

Re: ata3: softreset failed (device not ready)

PostPosted: May 16th, '12, 16:45
by akolychkine
I've downloaded Mageia-2-rc-LiveCD-GNOME-Europe2-x86_64-CD.iso. However I use KDE basicly. The error still exists, but on ata1.

[live@localhost ~]$ dmesg | grep ata
[ 0.000000] BIOS-e820: 000000007ffa0000 - 000000007ffae000 (ACPI data)
[ 0.000000] Memory: 2034244k/2096736k available (4499k kernel code, 452k absent, 62040k reserved, 6386k data, 748k init)
[ 2.604020] ACPI: EC: GPE = 0x11, I/O: command/status = 0x66, data = 0x62
[ 4.946730] Write protecting the kernel read-only data: 10240k
[ 5.093049] libata version 3.00 loaded.
[ 5.100040] ata1: SATA max UDMA/133 abar m1024@0xfdeff800 port 0xfdeff900 irq 22
[ 5.100045] ata2: SATA max UDMA/133 abar m1024@0xfdeff800 port 0xfdeff980 irq 22
[ 5.100050] ata3: SATA max UDMA/133 abar m1024@0xfdeff800 port 0xfdeffa00 irq 22
[ 5.100054] ata4: SATA max UDMA/133 abar m1024@0xfdeff800 port 0xfdeffa80 irq 22
[ 5.405066] ata2: SATA link down (SStatus 0 SControl 300)
[ 5.405110] ata4: SATA link down (SStatus 0 SControl 300)
[ 5.405149] ata3: SATA link down (SStatus 0 SControl 300)
[ 5.560054] ata1: softreset failed (device not ready)
[ 5.560154] ata1: applying PMP SRST workaround and retrying
[ 5.715074] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 5.716216] ata1.00: ATA-7: Hitachi HTS541612J9SA00, SBDOC70P, max UDMA/100
[ 5.716220] ata1.00: 234441648 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[ 5.716225] ata1.00: SB600 AHCI: limiting to 255 sectors per cmd
[ 5.717513] ata1.00: SB600 AHCI: limiting to 255 sectors per cmd
[ 5.717518] ata1.00: configured for UDMA/100
[ 7.749497] pata_atiixp 0000:00:14.1: setting latency timer to 64
[ 7.757209] scsi4 : pata_atiixp
[ 7.757381] scsi5 : pata_atiixp
[ 7.758394] ata5: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xff00 irq 14
[ 7.758399] ata6: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xff08 irq 15
[ 7.928696] ata5.00: ATAPI: TSSTcorp CDDVDW SN-S082H, SB01, max UDMA/33
[ 7.952479] ata5.00: configured for UDMA/33

Re: ata3: softreset failed (device not ready)

PostPosted: May 20th, '12, 11:51
by akolychkine
I've recompiled the kernel with CONFIG_SATA_PMP=n. No error anymore. But some questions about compiling the kernel:

1. In my case make xconfig didn't work:
make xconfig
CHECK qt
make[1]: *** No rule to make target `scripts/kconfig/qconf', needed by `xconfig'. Stop.
make: *** [xconfig] Error 2


I have lib64qt4-devel installed. This package contains the required headers, but probably the kernel configuring requires qt3 itself. I don't know. But maybe you have ideas, how to make it work.

2. initrd.img, I got, is 27 Mb in size. Is it normal? initrd.img compiled by Mageia teem is four times smaller.

I used kernel sources kernel-source-3.3.6-2.mga2, took .config and Makefile from kernel-desktop-devel-3.3.6-2.mga2. I only changed CONFIG_SATA_PMP parameter in .config file and expected to get a result quite close to official package kernel. What have I done wrong?

Re: ata3: softreset failed (device not ready)

PostPosted: May 20th, '12, 20:09
by doktor5000
Which steps did you do exactly?

BTW: As an alternative to xconfig, there is still menuconfig, which is ncurses based. You'd need qt3-devel, which is not available for Mageia anymore as QT3 is unsupported. It would be only needed for the configuration frontend, for nothing more.

Re: ata3: softreset failed (device not ready)

PostPosted: May 21st, '12, 07:30
by akolychkine
I have installed headers and sources by installing packages kernel-desktop-devel-3.3.6-2.mga2 and kernel-source-3.3.6-2.mga2. I have copied .config and Makefile from the folder with the headers to the folder with the sources. In .config file I have manually changed the parameter CONFIG_SATA_PMP=n. After that:
make
make modules_install
make install


make menuconfig does work. But for me it was always more convenient to use make xconfig. Anyway I'll be able to live that.

Re: ata3: softreset failed (device not ready)

PostPosted: Aug 22nd, '12, 05:38
by msjarrell
I am also interested in building a custom kernel for my laptop and would like to use "make xconifg". I have the qt3 packages installed, including qt3-common-3.3.8b-30.mga2, libqt3support4-4.8.2-1.3.mga2, qt4-designer-plugin-qt3support-4.8.2-1.3.mga2 and libqt3-3.3.8b-30.mga2. However, I also receive the error
Code: Select all
make xconfig
make[1]: *** No rule to make target `scripts/kconfig/qconf', needed by `xconfig'.  Stop.
make: *** [xconfig] Error 2
 

I wonder if there has been any progress on this issue (I also prefer xconfig over menuconfig, which I fund cumbersome)?

thank you

Re: ata3: softreset failed (device not ready)

PostPosted: Aug 15th, '16, 21:29
by shelandy
this problem persistently exists in AMD chipset 700, 800 serial and likely 900.
https://en.wikipedia.org/wiki/AMD_700_chipset_series
There seems no easy way to add kernel loading option in grub to disable SATA_PMP. Am I right? If we have to recompile the kernel, for the current mga5/next mga6, could someone show us the default parameters for compiling the Mageia officially released kernels so we can just use the same options but disable the CONFIG_SATA_PMP.

Re: ata3: softreset failed (device not ready)

PostPosted: Aug 16th, '16, 10:36
by plspls
did you try rebooting? sometime this error disappear with reboot

if not try reinstall

Re: ata3: softreset failed (device not ready)

PostPosted: Aug 17th, '16, 07:53
by shelandy
I do watch my boot log recently, it does come up very time I reboot.
when you say "reinstall", you meant the whole mageia 5 system, or just the kernel?

Re: ata3: softreset failed (device not ready)

PostPosted: Aug 17th, '16, 08:37
by maat
Nope reinstall will not help.

You need to:
- install the correct kernel sources.
- install all needed tools to compile it
- get the config file from /boot/configxxx (i think the file is there)
- preconfigure the kernel with it
- change your option to personalize
- make the kernel
- install it
- reboot on it