Skip to contentSkip to conversation

WARN_ON() in drivers/ata/libata-core.c:5211 ata_qc_issue

DISCUSSION Lennert Buytenhek 3 participants 3 messages Apr 20, 2010 – Apr 21, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

On mvsas, when I issue a SMART command (smartctl -a) while a dd from /dev/sda to /dev/null is in progress, I hit the following WARN_ON_ONCE in ata_qc_issue():

        if (ata_is_ncq(prot)) {
                WARN_ON_ONCE(link->sactive & (1 << qc->tag));

                if (!link->sactive)
                        ap->nr_active_links++;
                link->sactive |= 1 << qc->tag;
        } else {
                WARN_ON_ONCE(link->sactive);		<===============

                ap->nr_active_links++;
                link->active_tag = qc->tag;
        }

This is on 2.6.34-rc4 ish.

#1 lore raw
Quoted 17 lines · Lennert Buytenhek

On mvsas, when I issue a SMART command (smartctl -a) while a dd from /dev/sda to /dev/null is in progress, I hit the following WARN_ON_ONCE in ata_qc_issue():

         if (ata_is_ncq(prot)) {
                 WARN_ON_ONCE(link->sactive&  (1<<  qc->tag));

                 if (!link->sactive)
                         ap->nr_active_links++;
                 link->sactive |= 1<<  qc->tag;
         } else {
                 WARN_ON_ONCE(link->sactive);		<===============

                 ap->nr_active_links++;
                 link->active_tag = qc->tag;
         }
Quoted 1 line

This is on 2.6.34-rc4 ish.

That would indicate that for some reason, non-NCQ commands aren't being deferred while an NCQ command is in progress. Presumably something wrong in mvsas or libsas code in general..

#2 lore raw
Quoted 18 lines · Robert Hancock
Quoted 17 lines · Lennert Buytenhek

On mvsas, when I issue a SMART command (smartctl -a) while a dd from /dev/sda to /dev/null is in progress, I hit the following WARN_ON_ONCE in ata_qc_issue():

if (ata_is_ncq(prot)) {
WARN_ON_ONCE(link->sactive& (1<< qc->tag));

if (!link->sactive)
ap->nr_active_links++;
link->sactive |= 1<< qc->tag;
} else {
WARN_ON_ONCE(link->sactive); <===============

ap->nr_active_links++;
link->active_tag = qc->tag;
}

Quoted 5 lines
Quoted 1 line

This is on 2.6.34-rc4 ish.

That would indicate that for some reason, non-NCQ commands aren't being deferred while an NCQ command is in progress. Presumably something wrong in mvsas or libsas code in general..

Yep, definitely a problem in the mvsas (or libsas) area.

Jeff