Skip to contentSkip to conversation

tpci test trigger RHEL6.4GA crash!

LTP Wanlong Gao 1 participant 2 messages Oct 29, 2013 – Oct 30, 2013 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1382949890.5455.40.camel@fedora19

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 37 lines · On 10/29/2013 04:53 PM, [email protected] wrote:

Hi!

Quoted 13 lines · Zeng Linggang

Hi,

When we execute the test of tpci in RHEL6.4GA, the system will crash:
- filesystem is broken
- network is off
Some logs are as follows:

[root@RHEL6U4GA-Intel64 ltp]# ata1.00: exception Emask 0x52 SAct 0x1 SErr 0xffffffff action 0xe frozen
ata1: SError: { RecovData RecovCommon UnrecovData Persist Proto HostInt PHYInt CommWake 10B8B Display Seq TrStaTrns UnrecFIS DevExch }
ata1.00: failed command: WRITE FPDMA QUEUED
ata1.00: cmd 61/08:00:c8:fb:f3/00:00:39:00:00/40 tag 0 ncq 4096 out

          res 40/00:18:48:eb:33/00:00:38:00:00/40 Emask 0x56 (ATA bus error)
Quoted 12 lines

ata1.00: stauts: { DRDY }
ata1.00 failed to resume link (SControl FFFFFFFF)
ata1.00 failed to resume link (SControl FFFFFFFF)
ata1.00 failed to resume link (SControl FFFFFFFF)
Buffer I/O error on device sda13, logical block 4752991
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
...
EXT4-fs error (device sda13): ext4_find_entry: reading directory #524297 offset 0 EXT4-fs error (device sda13): ext4_find_entry: reading directory #524297 offset 0
...

Could you please find out which particular test case does it? it can be done manually the following way:
insmod ltp_pci.ko

Get your ata bus and pci slot number, then write it to the file (the number is 16bit unsigned integer, the first 8 bits is a device number, the last is a bus number):

echo "number" > /sys/devices/ltp_tcpi/bus_slot

Quoted 7 lines

Then try test-cases one by one:
echo 1 > /sys/devices/ltp_tcpi/tcase
...
echo 17 > /sys/devices/ltp_tcpi/tcase

You can check the result of each test case by reading /sys/devices/ltp_tcpi/result file. 0 - PASS, 1 - FAIL.

PCI_RESOURCES, will cause kernel crash, could you please check it?

Thanks,
Wanlong Gao

Quoted 4 lines

Thanks,
Alexey

Quoted 11 lines

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#3 lore raw
Quoted 43 lines · Wanlong Gao
Quoted 42 lines · On 10/29/2013 04:53 PM, [email protected] wrote:

Hi!

Quoted 13 lines · Zeng Linggang

Hi,

When we execute the test of tpci in RHEL6.4GA, the system will crash:
- filesystem is broken
- network is off
Some logs are as follows:

[root@RHEL6U4GA-Intel64 ltp]# ata1.00: exception Emask 0x52 SAct 0x1 SErr 0xffffffff action 0xe frozen
ata1: SError: { RecovData RecovCommon UnrecovData Persist Proto HostInt PHYInt CommWake 10B8B Display Seq TrStaTrns UnrecFIS DevExch }
ata1.00: failed command: WRITE FPDMA QUEUED
ata1.00: cmd 61/08:00:c8:fb:f3/00:00:39:00:00/40 tag 0 ncq 4096 out

          res 40/00:18:48:eb:33/00:00:38:00:00/40 Emask 0x56 (ATA bus error)
Quoted 12 lines

ata1.00: stauts: { DRDY }
ata1.00 failed to resume link (SControl FFFFFFFF)
ata1.00 failed to resume link (SControl FFFFFFFF)
ata1.00 failed to resume link (SControl FFFFFFFF)
Buffer I/O error on device sda13, logical block 4752991
sd 0:0:0:0: rejecting I/O to offline device
sd 0:0:0:0: rejecting I/O to offline device
...
EXT4-fs error (device sda13): ext4_find_entry: reading directory #524297 offset 0 EXT4-fs error (device sda13): ext4_find_entry: reading directory #524297 offset 0
...

Could you please find out which particular test case does it? it can be done manually the following way:
insmod ltp_pci.ko

Get your ata bus and pci slot number, then write it to the file (the number is 16bit unsigned integer, the first 8 bits is a device number, the last is a bus number):

echo "number" > /sys/devices/ltp_tcpi/bus_slot

Then try test-cases one by one:
echo 1 > /sys/devices/ltp_tcpi/tcase
...
echo 17 > /sys/devices/ltp_tcpi/tcase

Quoted 5 lines
Quoted 2 lines

You can check the result of each test case by reading /sys/devices/ltp_tcpi/result file. 0 - PASS, 1 - FAIL.

PCI_RESOURCES, will cause kernel crash, could you please check it?

And PCI_EXP_CAP_CONFIG always FAIL here on RHEL or Fedora, the log is like:

[ 4668.373058] ltp_tpci: incorrect val read. PCIE driver/device not installed: '335609857'

Could you please investigate this?

Thanks,
Wanlong Gao

Quoted 21 lines

Thanks,
Wanlong Gao

Quoted 4 lines

Thanks,
Alexey

Quoted 11 lines

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Quoted 11 lines

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list