Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163254882
D30799.id91175.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
937 B
Referenced Files
None
Subscribers
None
D30799.id91175.diff
View Options
Index: sys/dev/aacraid/aacraid.c
===================================================================
--- sys/dev/aacraid/aacraid.c
+++ sys/dev/aacraid/aacraid.c
@@ -1287,6 +1287,8 @@
void
aacraid_map_command_sg(void *arg, bus_dma_segment_t *segs, int nseg, int error)
{
+ static struct timeval lastprint;
+ static const struct timeval printinterval = { 10, 0 };
struct aac_softc *sc;
struct aac_command *cm;
struct aac_fib *fib;
@@ -1298,6 +1300,15 @@
fwprintf(sc, HBA_FLAGS_DBG_FUNCTION_ENTRY_B, "nseg %d", nseg);
mtx_assert(&sc->aac_io_lock, MA_OWNED);
+ if (error != 0 && ratecheck(&lastprint, &printinterval))
+ device_printf(sc->aac_dev,
+ "ERROR: failed to load buffer to DMA area, error %d\n",
+ error);
+ /*
+ * Let the command run (and fail) to be able to clean up and
+ * wake up waiters in the interrupt handler.
+ */
+
if ((sc->flags & AAC_FLAGS_SYNC_MODE) && sc->aac_sync_cm)
return;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 11:34 AM (1 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35362731
Default Alt Text
D30799.id91175.diff (937 B)
Attached To
Mode
D30799: aacraid: log DMA failures
Attached
Detach File
Event Timeline
Log In to Comment