Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Mar 2008 11:01:21 GMT
From:      "Randall R. Stewart" <rrs@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 136562 for review
Message-ID:  <200803011101.m21B1LR2003725@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=136562

Change 136562 by rrs@rrs-mips2-jnpr on 2008/03/01 11:00:30

	This commit makes it so we can get to m-user. I shrink
	       the fifo size to 32 (not 64). This gives us some room
	       for the conflicting putc's and transmits (I think).
	       I also have BUSY print.. at each 100,000 BUSY int's. We
	       do seem to get this message out 2-3 times during startup.

Affected files ...

.. //depot/projects/mips2-jnpr/src/sys/mips/mips32/octeon32/uart_dev_oct16550.c#13 edit

Differences ...

==== //depot/projects/mips2-jnpr/src/sys/mips/mips32/octeon32/uart_dev_oct16550.c#13 (text+ko) ====

@@ -616,6 +616,8 @@
 	return (error);
 }
 
+uint64_t uart_got_busy=0;
+
 static int
 oct16550_bus_ipend(struct uart_softc *sc)
 {
@@ -651,9 +653,15 @@
 			ipend |= SER_INT_SIGCHG;
 
 		} else if (iir == IIR_BUSY) {
+			uint8_t niir;
+			uart_got_busy++;
 		        ipend |= SER_INT_TXIDLE;
-			ipend |= SER_INT_RXREADY;
-			iir = uart_getreg(bas, OCT_REG_IIR) & IIR_IMASK;
+			niir = uart_getreg(bas, OCT_REG_IIR);
+			lsr = uart_getreg(bas, OCT_REG_LSR);
+			if(( uart_got_busy % 100000 ) == 0) {
+			  printf("Now gotten %lld busy's lsr:%x iir:%x niir:%x\n",
+				 uart_got_busy, iir, lsr, niir);
+			}
 		}
 	}
 	uart_unlock(sc->sc_hwmtx);
@@ -712,8 +720,8 @@
 		device_set_desc(sc->sc_dev, "Octeon-16550 channel 0");
 	}
 #ifdef ENABLE_OCTEON_FIFO
-	sc->sc_rxfifosz = 64;
-	sc->sc_txfifosz = 64;
+	sc->sc_rxfifosz = 32;
+	sc->sc_txfifosz = 32;
 #else
 	sc->sc_rxfifosz = 1;
 	sc->sc_txfifosz = 1;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803011101.m21B1LR2003725>