Commit 527402be authored by Mikhail Karpenko's avatar Mikhail Karpenko

WIP: drop S/G list dumping

parent baaa7805
...@@ -1926,7 +1926,7 @@ static unsigned int ahci_fill_sg(struct ata_queued_cmd *qc, void *cmd_tbl) ...@@ -1926,7 +1926,7 @@ static unsigned int ahci_fill_sg(struct ata_queued_cmd *qc, void *cmd_tbl)
if (msg_str != NULL) { if (msg_str != NULL) {
len = snprintf(msg_str, LIBAHCI_DEBUG_BUFSZ, "\tfill S/G list for port %u: %u PRD(s) written", qc->ap->port_no, si); len = snprintf(msg_str, LIBAHCI_DEBUG_BUFSZ, "\tfill S/G list for port %u: %u PRD(s) written", qc->ap->port_no, si);
libahci_debug_event(qc->ap, msg_str, len); libahci_debug_event(qc->ap, msg_str, len);
libahci_debug_dump_sg(qc, "reading data pointed by S/G list; dump: "); //libahci_debug_dump_sg(qc, "reading data pointed by S/G list; dump: ");
kfree(msg_str); kfree(msg_str);
} }
...@@ -2517,7 +2517,7 @@ static bool ahci_qc_fill_rtf(struct ata_queued_cmd *qc) ...@@ -2517,7 +2517,7 @@ static bool ahci_qc_fill_rtf(struct ata_queued_cmd *qc)
qc->result_tf.command = (rx_fis + RX_FIS_PIO_SETUP)[15]; qc->result_tf.command = (rx_fis + RX_FIS_PIO_SETUP)[15];
libahci_debug_dump_region(qc->ap, (const u32 *)(rx_fis + RX_FIS_PIO_SETUP), 5, "\tread PIO Setup FIS; dump: "); libahci_debug_dump_region(qc->ap, (const u32 *)(rx_fis + RX_FIS_PIO_SETUP), 5, "\tread PIO Setup FIS; dump: ");
libahci_debug_dump_sg(qc, "reading data pointed by S/G list; dump: "); //libahci_debug_dump_sg(qc, "reading data pointed by S/G list; dump: ");
} else { } else {
ata_tf_from_fis(rx_fis + RX_FIS_D2H_REG, &qc->result_tf); ata_tf_from_fis(rx_fis + RX_FIS_D2H_REG, &qc->result_tf);
......
...@@ -810,6 +810,8 @@ unsigned int libahci_debug_saxigp1_save(struct ata_port *ap, size_t dump_size) ...@@ -810,6 +810,8 @@ unsigned int libahci_debug_saxigp1_save(struct ata_port *ap, size_t dump_size)
bytes_copied += dump_size; bytes_copied += dump_size;
} else { } else {
page_cntr = 0; page_cntr = 0;
//bytes_copied = 0;
//dev_info(dev, "memory pool has ended, writing from beginning");
} }
return page_cntr; return page_cntr;
......
...@@ -2557,8 +2557,8 @@ static void ata_eh_link_report(struct ata_link *link) ...@@ -2557,8 +2557,8 @@ static void ata_eh_link_report(struct ata_link *link)
qc->err_mask & AC_ERR_NCQ ? " <F>" : ""); qc->err_mask & AC_ERR_NCQ ? " <F>" : "");
// elphel test: crash driver here to stop its execution and preserve memory state // elphel test: crash driver here to stop its execution and preserve memory state
//u32 *tmp_str = NULL; u32 *tmp_str = NULL;
//ata_dev_err(qc->dev, "test: %u", *tmp_str); ata_dev_err(qc->dev, "test: %u", *tmp_str);
#ifdef CONFIG_ATA_VERBOSE_ERROR #ifdef CONFIG_ATA_VERBOSE_ERROR
if (res->command & (ATA_BUSY | ATA_DRDY | ATA_DF | ATA_DRQ | if (res->command & (ATA_BUSY | ATA_DRDY | ATA_DF | ATA_DRQ |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment