svn commit: r269793 - head/sys/contrib/dev/ath/ath_hal/ar9300

Adrian Chadd adrian at FreeBSD.org
Mon Aug 11 00:03:51 UTC 2014


Author: adrian
Date: Mon Aug 11 00:03:50 2014
New Revision: 269793
URL: http://svnweb.freebsd.org/changeset/base/269793

Log:
  Add some more OS_MARK() probes to the AR9300 HAL.

Modified:
  head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_power.c
  head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_recv.c

Modified: head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_power.c
==============================================================================
--- head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_power.c	Sun Aug 10 22:26:29 2014	(r269792)
+++ head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_power.c	Mon Aug 11 00:03:50 2014	(r269793)
@@ -666,6 +666,7 @@ ar9300_set_power_mode(struct ath_hal *ah
     HALDEBUG(ah, HAL_DEBUG_POWER_MGMT, "%s: %s -> %s (%s)\n", __func__,
         modes[ar9300_get_power_mode(ah)], modes[mode],
         set_chip ? "set chip " : "");
+    OS_MARK(ah, AH_MARK_CHIP_POWER, mode);
     
     switch (mode) {
     case HAL_PM_AWAKE:
@@ -719,8 +720,10 @@ ar9300_set_power_mode(struct ath_hal *ah
     default:
         HALDEBUG(ah, HAL_DEBUG_POWER_MGMT,
             "%s: unknown power mode %u\n", __func__, mode);
+        OS_MARK(ah, AH_MARK_CHIP_POWER_DONE, -1);
         return AH_FALSE;
     }
+    OS_MARK(ah, AH_MARK_CHIP_POWER_DONE, status);
     return status;
 }
 

Modified: head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_recv.c
==============================================================================
--- head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_recv.c	Sun Aug 10 22:26:29 2014	(r269792)
+++ head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_recv.c	Mon Aug 11 00:03:50 2014	(r269793)
@@ -113,6 +113,8 @@ ar9300_stop_dma_receive(struct ath_hal *
 #define AH_RX_STOP_DMA_TIMEOUT 10000   /* usec */
 #define AH_TIME_QUANTUM        100     /* usec */
 
+    OS_MARK(ah, AH_MARK_RX_CTL, AH_MARK_RX_CTL_DMA_STOP);
+
     if (timeout == 0) {
         timeout = AH_RX_STOP_DMA_TIMEOUT;
     }
@@ -157,6 +159,9 @@ ar9300_stop_dma_receive(struct ath_hal *
 
     OS_REG_WRITE(ah, AR_MACMISC, org_value);
 
+    OS_MARK(ah, AH_MARK_RX_CTL,
+        status ? AH_MARK_RX_CTL_DMA_STOP_OK : AH_MARK_RX_CTL_DMA_STOP_ERR);
+
     return status;
 #undef AH_RX_STOP_DMA_TIMEOUT
 #undef AH_TIME_QUANTUM


More information about the svn-src-all mailing list