Page MenuHomeFreeBSD

D60323.1796280748.diff
No OneTemporary

Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None

D60323.1796280748.diff

Index: sys/dev/mpi3mr/mpi3mr.h
===================================================================
--- sys/dev/mpi3mr/mpi3mr.h
+++ sys/dev/mpi3mr/mpi3mr.h
@@ -938,6 +938,7 @@
mpi3mr_alloc_interrupts(struct mpi3mr_softc *sc, U16 setup_one);
void mpi3mr_cleanup_ioc(struct mpi3mr_softc *sc);
+void mpi3mr_flush_io(struct mpi3mr_softc *sc);
int mpi3mr_initialize_ioc(struct mpi3mr_softc *sc, U8 reason);
void mpi3mr_build_zero_len_sge(void *paddr);
int mpi3mr_issue_event_notification(struct mpi3mr_softc *sc);
Index: sys/dev/mpi3mr/mpi3mr.c
===================================================================
--- sys/dev/mpi3mr/mpi3mr.c
+++ sys/dev/mpi3mr/mpi3mr.c
@@ -81,7 +81,6 @@
static int mpi3mr_complete_admin_cmd(struct mpi3mr_softc *sc);
static void mpi3mr_port_enable_complete(struct mpi3mr_softc *sc,
struct mpi3mr_drvr_cmd *drvrcmd);
-static void mpi3mr_flush_io(struct mpi3mr_softc *sc);
static int mpi3mr_issue_reset(struct mpi3mr_softc *sc, U16 reset_type,
U16 reset_reason);
static void mpi3mr_dev_rmhs_send_tm(struct mpi3mr_softc *sc, U16 handle,
@@ -5851,6 +5850,11 @@
mpi3mr_flush_delayed_cmd_lists(sc);
if (sc->cmd_list) {
+ for (i = 1; i < sc->max_host_ios; i++) {
+ if (sc->cmd_list[i] && sc->cmd_list[i]->dmamap)
+ bus_dmamap_destroy(sc->buffer_dmat,
+ sc->cmd_list[i]->dmamap);
+ }
for (i = 0; i < sc->max_host_ios; i++) {
free(sc->cmd_list[i], M_MPI3MR);
}
@@ -5858,6 +5862,11 @@
sc->cmd_list = NULL;
}
+ if (sc->buffer_dmat != NULL) {
+ bus_dma_tag_destroy(sc->buffer_dmat);
+ sc->buffer_dmat = NULL;
+ }
+
if (sc->pel_seq_number && sc->pel_seq_number_dma) {
bus_dmamap_unload(sc->pel_seq_num_dmatag, sc->pel_seq_num_dmamap);
bus_dmamem_free(sc->pel_seq_num_dmatag, sc->pel_seq_number, sc->pel_seq_num_dmamap);
@@ -6250,7 +6259,7 @@
}
-static void mpi3mr_flush_io(struct mpi3mr_softc *sc)
+void mpi3mr_flush_io(struct mpi3mr_softc *sc)
{
int i;
struct mpi3mr_cmd *cmd = NULL;
Index: sys/dev/mpi3mr/mpi3mr_pci.c
===================================================================
--- sys/dev/mpi3mr/mpi3mr_pci.c
+++ sys/dev/mpi3mr/mpi3mr_pci.c
@@ -747,6 +747,7 @@
}
mpi3mr_cleanup_ioc(sc);
+ mpi3mr_flush_io(sc);
mpi3mr_cleanup_event_taskq(sc);
mpi3mr_app_detach(sc);
mpi3mr_cam_detach(sc);

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 3, 6:52 AM (20 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42174596
Default Alt Text
D60323.1796280748.diff (2 KB)

Event Timeline