Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
linux-elphel
Commits
527402be
Commit
527402be
authored
Mar 04, 2016
by
Mikhail Karpenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: drop S/G list dumping
parent
baaa7805
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
libahci.c
src/drivers/ata/libahci.c
+2
-2
libahci_debug.c
src/drivers/ata/libahci_debug.c
+2
-0
libata-eh.c
src/drivers/ata/libata-eh.c
+2
-2
No files found.
src/drivers/ata/libahci.c
View file @
527402be
...
@@ -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
,
"
\t
fill S/G list for port %u: %u PRD(s) written"
,
qc
->
ap
->
port_no
,
si
);
len
=
snprintf
(
msg_str
,
LIBAHCI_DEBUG_BUFSZ
,
"
\t
fill 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
,
"
\t
read PIO Setup FIS; dump: "
);
libahci_debug_dump_region
(
qc
->
ap
,
(
const
u32
*
)(
rx_fis
+
RX_FIS_PIO_SETUP
),
5
,
"
\t
read 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
);
...
...
src/drivers/ata/libahci_debug.c
View file @
527402be
...
@@ -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
;
...
...
src/drivers/ata/libata-eh.c
View file @
527402be
...
@@ -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
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment