Bug 441707 - ADMA problems with sata_nv
ADMA problems with sata_nv
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel (Show other bugs)
4.6
All Linux
medium Severity medium
: rc
: ---
Assigned To: David Milburn
Martin Jenner
:
Depends On:
Blocks: RHEL4u8_relnotes 461304
  Show dependency treegraph
 
Reported: 2008-04-09 12:14 EDT by Bryn M. Reeves
Modified: 2010-10-22 19:53 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, the Automatic Direct Memory Access (ADMA) mode was enabled by default in the sata_nv driver. Consequently, device errors and timeouts may have been encountered with some devices that utilize the sata_nv driver. With this update, ADMA mode is now disabled by default, which resolves this issue.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-05-18 15:29:10 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
Disable ADMA for sata_nv (952 bytes, patch)
2008-04-09 12:14 EDT, Bryn M. Reeves
no flags Details | Diff

  None (edit)
Description Bryn M. Reeves 2008-04-09 12:14:01 EDT
Description of problem:
Current RHEL4 sata_nv code enables ADMA mode:

    drivers/ata/sata_nv.c:
    MODULE_DEVICE_TABLE(pci, nv_pci_tbl);
    MODULE_VERSION(DRV_VERSION);

    static int adma_enabled = 1;

This has been reverted upstream in the libata-devel tree in commit
80734d899a4337a1a12164dc22edec5ee45bfb73:

    Continues to have open issues, and engineering support is extremely 
    difficult to come by, according to fellow NVIDIA engineers.

    Signed-off-by: Jeff Garzik <jgarzik@redhat.com>

There are reports of problems including spurious NMIs when using the driver in
ADMA mode.

Version-Release number of selected component (if applicable):
2.6.9-67.0.7.EL

How reproducible:
Sometimes - hardware & use dependent

Steps to Reproduce:
In some cases just reading a drive via:

dd if=/dev/sdX of=/dev/null bs=1M
  
Actual results:
ata4: CPB flags CMD err, flags=0x11
ata4: EH in ADMA mode, notifier 0x0 notifier_error 0x0 gen_ctl 0x1501000 status
0x400
<snip>
ata4: CPB 29: ctl_flags 0x1f, resp_flags 0x1
ata4: CPB 30: ctl_flags 0x1f, resp_flags 0x1
ata4: Resetting port
ata4.00: exception Emask 0x0 SAct 0x3 SErr 0x0 action 0x2 frozen
ata4.00: cmd 60/00:00:00:87:8d/01:00:04:00:00/40 tag 0 cdb 0x0 data 131072 in
        res 41/00:00:00:87:8d/00:00:00:00:00/40 Emask 0x1 (device error)
ata4.00: cmd 61/08:08:4f:00:d0/00:00:1b:00:00/40 tag 1 cdb 0x0 data 4096 out
        res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
SCSI device sdb: 976773168 512-byte hdwr sectors (500108 MB)
SCSI device sdb: drive cache: write back
ata4: CPB flags CMD err, flags=0x11
ata4: EH in ADMA mode, notifier 0x0 notifier_error 0x0 gen_ctl 0x1501000 status
0x400
ata4: CPB 0: ctl_flags 0x1f, resp_flags 0x2
ata4: CPB 1: ctl_flags 0x1f, resp_flags 0x11
<snip>
ata4: CPB 30: ctl_flags 0x1e, resp_flags 0x1
ata4: Resetting port
ata4.00: exception Emask 0x0 SAct 0x3 SErr 0x0 action 0x2 frozen
ata4.00: cmd 61/10:00:cf:33:00/00:00:00:00:00/40 tag 0 cdb 0x0 data 8192 out
        res 40/00:00:00:87:8d/00:00:00:00:00/40 Emask 0x4 (timeout)
ata4.00: cmd 60/00:08:00:87:8d/01:00:04:00:00/40 tag 1 cdb 0x0 data 131072 in
        res 41/00:00:cf:33:00/00:00:00:00:00/40 Emask 0x1 (device error)
SCSI device sdb: 976773168 512-byte hdwr sectors (500108 MB)
SCSI device sdb: drive cache: write back
ata4: CPB flags CMD err, flags=0x11
Uhhuh. NMI received. Dazed and confused, but trying to continue
You probably have a hardware problem with your RAM chips 

Expected results:
dd completes without error
Comment 1 Bryn M. Reeves 2008-04-09 12:14:01 EDT
Created attachment 301838 [details]
Disable ADMA for sata_nv
Comment 3 Bryn M. Reeves 2008-04-09 12:33:15 EDT
Problem can also be worked around via adma=0 in modprobe.conf
Comment 4 Bryn M. Reeves 2008-04-17 12:00:37 EDT
*** Bug 442906 has been marked as a duplicate of this bug. ***
Comment 6 RHEL Product and Program Management 2008-09-03 09:15:26 EDT
Updating PM score.
Comment 7 RHEL Product and Program Management 2008-09-22 17:44:52 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.
Comment 9 Vivek Goyal 2008-11-05 08:56:42 EST
Committed in 78.17.EL . RPMS are available at http://people.redhat.com/vgoyal/rhel4/
Comment 12 David Milburn 2009-01-27 17:57:26 EST
Release note added. If any revisions are required, please set the 
"requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly.
All revisions will be proofread by the Engineering Content Services team.

New Contents:
Cause: ADMA mode is enabled by default in sata_nv
driver.

Consequence: Possible device errors and timeouts
when ADMA mode is enabled in sata_nv driver.

Fix: Disable ADMA mode by default.

Result: sata_nv driver functions properly with
various types of drives.
Comment 15 Ryan Lerch 2009-02-23 20:54:20 EST
Release note updated. If any revisions are required, please set the 
"requires_release_notes"  flag to "?" and edit the "Release Notes" field accordingly.
All revisions will be proofread by the Engineering Content Services team.

Diffed Contents:
@@ -1,10 +1 @@
-Cause: ADMA mode is enabled by default in sata_nv
+Previously, the Automatic Direct Memory Access (ADMA) mode was enabled by default in the sata_nv driver. Consequently, device errors and timeouts may have been encountered some devices that utilize the sata_nv driver. With this update, ADMA mode is now disabled by default, which resolves this issue.-driver.
-
-Consequence: Possible device errors and timeouts
-when ADMA mode is enabled in sata_nv driver.
-
-Fix: Disable ADMA mode by default.
-
-Result: sata_nv driver functions properly with
-various types of drives.
Comment 17 David Milburn 2009-02-24 09:23:29 EST
Release note updated. If any revisions are required, please set the 
"requires_release_notes"  flag to "?" and edit the "Release Notes" field accordingly.
All revisions will be proofread by the Engineering Content Services team.

Diffed Contents:
@@ -1 +1 @@
-Previously, the Automatic Direct Memory Access (ADMA) mode was enabled by default in the sata_nv driver. Consequently, device errors and timeouts may have been encountered some devices that utilize the sata_nv driver. With this update, ADMA mode is now disabled by default, which resolves this issue.+Previously, the Automatic Direct Memory Access (ADMA) mode was enabled by default in the sata_nv driver. Consequently, device errors and timeouts may have been encountered with some devices that utilize the sata_nv driver. With this update, ADMA mode is now disabled by default, which resolves this issue.
Comment 20 Chris Ward 2009-05-05 09:55:57 EDT
Any updates here? Has this issue been resolved in the RHEL 4.8 Beta? later kernel?
Comment 22 errata-xmlrpc 2009-05-18 15:29:10 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2009-1024.html

Note You need to log in before you can comment on or make changes to this bug.