Re: Warning - running *really* short on DMA buffers while doing file transfers

Justin T. Gibbs
2002-09-27T22:43:58Z

[-- Attachment #1: Type: text/plain, Size: 382 bytes --]

> I turned on the debug flags, there were a bunch of odd messages
> in there, but otherwise it seems to be working fine. My .config
> has the following AIC config options:

<sigh>
I always run with debugging turned on with the message flags enabled,
so I missed this in my testing. I just updated the tarfile. The
following patch is all you need to shut the driver up.

--
Justin

[-- Attachment #2: diff --]
[-- Type: text/plain, Size: 1375 bytes --]

Change 1419 by gibbs@bitkeeper-linux-2.5 on 2002/09/27 16:44:04

Add a missing pair of curly braces to a conditional debug
statement. This ensures that debug code doesn't trigger if
it isn't enabled. <blush>

Affected files ...

... //depot/aic7xxx/aic7xxx/aic7xxx.c#80 edit

Differences ...

==== //depot/aic7xxx/aic7xxx/aic7xxx.c#80 (ktext) ====

***************
*** 37,43 ****
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
! * $Id: //depot/aic7xxx/aic7xxx/aic7xxx.c#79 $
*
* $FreeBSD$
*/
--- 37,43 ----
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
! * $Id: //depot/aic7xxx/aic7xxx/aic7xxx.c#80 $
*
* $FreeBSD$
*/
***************
*** 2475,2483 ****
panic("HOST_MSG_LOOP interrupt with no active message");

#ifdef AHC_DEBUG
! if ((ahc_debug & AHC_SHOW_MESSAGES) != 0)
ahc_print_devinfo(ahc, &devinfo);
printf("INITIATOR_MSG_OUT");
#endif
phasemis = bus_phase != P_MESGOUT;
if (phasemis) {
--- 2475,2484 ----
panic("HOST_MSG_LOOP interrupt with no active message");

#ifdef AHC_DEBUG
! if ((ahc_debug & AHC_SHOW_MESSAGES) != 0) {
ahc_print_devinfo(ahc, &devinfo);
printf("INITIATOR_MSG_OUT");
+ }
#endif
phasemis = bus_phase != P_MESGOUT;
if (phasemis) {