diff --git a/sys/dev/ioat/ioat.c b/sys/dev/ioat/ioat.c index 1fadac6dc0e7..6253e03430f3 100644 --- a/sys/dev/ioat/ioat.c +++ b/sys/dev/ioat/ioat.c @@ -567,7 +567,7 @@ ioat_process_events(struct ioat_softc *ioat) comp_update = *ioat->comp_update; status = comp_update & IOAT_CHANSTS_COMPLETED_DESCRIPTOR_MASK; - ioat_log_message(3, "%s\n", __func__); + CTR0(KTR_IOAT, __func__); if (status == ioat->last_seen) goto out; @@ -575,7 +575,7 @@ ioat_process_events(struct ioat_softc *ioat) while (1) { desc = ioat_get_ring_entry(ioat, ioat->tail); dmadesc = &desc->bus_dmadesc; - ioat_log_message(3, "completing desc %d\n", ioat->tail); + CTR1(KTR_IOAT, "completing desc %d", ioat->tail); if (dmadesc->callback_fn) (*dmadesc->callback_fn)(dmadesc->callback_arg); @@ -629,7 +629,7 @@ ioat_acquire(bus_dmaengine_t dmaengine) ioat = to_ioat_softc(dmaengine); mtx_lock(&ioat->submit_lock); - ioat_log_message(3, "%s\n", __func__); + CTR0(KTR_IOAT, __func__); } void @@ -638,7 +638,7 @@ ioat_release(bus_dmaengine_t dmaengine) struct ioat_softc *ioat; ioat = to_ioat_softc(dmaengine); - ioat_log_message(3, "%s\n", __func__); + CTR0(KTR_IOAT, __func__); ioat_write_2(ioat, IOAT_DMACOUNT_OFFSET, (uint16_t)ioat->head); mtx_unlock(&ioat->submit_lock); } @@ -660,7 +660,7 @@ ioat_null(bus_dmaengine_t dmaengine, bus_dmaengine_callback_t callback_fn, if (ioat_reserve_space_and_lock(ioat, 1) != 0) return (NULL); - ioat_log_message(3, "%s\n", __func__); + CTR0(KTR_IOAT, __func__); desc = ioat_get_ring_entry(ioat, ioat->head); hw_desc = desc->u.dma; @@ -707,7 +707,7 @@ ioat_copy(bus_dmaengine_t dmaengine, bus_addr_t dst, if (ioat_reserve_space_and_lock(ioat, 1) != 0) return (NULL); - ioat_log_message(3, "%s\n", __func__); + CTR0(KTR_IOAT, __func__); desc = ioat_get_ring_entry(ioat, ioat->head); hw_desc = desc->u.dma; diff --git a/sys/dev/ioat/ioat_internal.h b/sys/dev/ioat/ioat_internal.h index 786c00a5dd3d..55c9a01a1b07 100644 --- a/sys/dev/ioat/ioat_internal.h +++ b/sys/dev/ioat/ioat_internal.h @@ -29,7 +29,8 @@ __FBSDID("$FreeBSD$"); #ifndef __IOAT_INTERNAL_H__ #define __IOAT_INTERNAL_H__ -#define DEVICE2SOFTC(dev) ((struct ioat_softc *) device_get_softc(dev)) +#define DEVICE2SOFTC(dev) ((struct ioat_softc *) device_get_softc(dev)) +#define KTR_IOAT KTR_SPARE3 #define ioat_read_chancnt(ioat) \ ioat_read_1((ioat), IOAT_CHANCNT_OFFSET) diff --git a/sys/sys/ktr_class.h b/sys/sys/ktr_class.h index 6635cdc8f1cc..4bfc895b71a5 100644 --- a/sys/sys/ktr_class.h +++ b/sys/sys/ktr_class.h @@ -55,7 +55,7 @@ #define KTR_PROC 0x00001000 /* Process scheduling */ #define KTR_SYSC 0x00002000 /* System call */ #define KTR_INIT 0x00004000 /* System initialization */ -#define KTR_SPARE3 0x00008000 /* cxgb, drm2, ntb */ +#define KTR_SPARE3 0x00008000 /* cxgb, drm2, ioat, ntb */ #define KTR_SPARE4 0x00010000 /* geom_sched */ #define KTR_EVH 0x00020000 /* Eventhandler */ #define KTR_VFS 0x00040000 /* VFS events */