<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2>Appied in 2064.</FONT></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> ofw-bounces@lists.openfabrics.org
[mailto:ofw-bounces@lists.openfabrics.org] <B>On Behalf Of </B>Leonid
Keller<BR><B>Sent:</B> Wednesday, March 25, 2009 4:07 PM<BR><B>To:</B>
ofw@lists.openfabrics.org<BR><B>Subject:</B> [ofw][patch][MLX4_BUS] cleanup:
rename a function and change debugprint level for some MSIX related prints to
decrease output<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Index:
hw/mlx4/kernel/bus/drv/drv.c<BR>===================================================================<BR>---
hw/mlx4/kernel/bus/drv/drv.c (revision 2055)<BR>+++
hw/mlx4/kernel/bus/drv/drv.c (working copy)<BR>@@ -572,13 +572,13
@@<BR> pdev->int_info =
*desc;<BR> if (desc->Flags &
CM_RESOURCE_INTERRUPT_MESSAGE)
{<BR> pdev->n_msi_vectors_alloc =
(u8)(pdev->n_msi_vectors_alloc+desc_raw->u.MessageInterrupt.Raw.MessageCount);<BR>- MLX4_PRINT(TRACE_LEVEL_WARNING,
MLX4_DBG_DRV,<BR>+ MLX4_PRINT(TRACE_LEVEL_VERBOSE,
MLX4_DBG_DRV,<BR> ("EvtPrepareHardware:
Desc %d: MsiInterrupt: Share %d, Flags %#x, Level %d, Vector %#x, Affinity
%#x\n", <BR> i,
desc->ShareDisposition,
desc->Flags,<BR> desc->u.MessageInterrupt.Translated.Level,
<BR> desc->u.MessageInterrupt.Translated.Vector,
<BR> (u32)desc->u.MessageInterrupt.Translated.Affinity
));<BR>- MLX4_PRINT(TRACE_LEVEL_WARNING,
MLX4_DBG_DRV,<BR>+ MLX4_PRINT(TRACE_LEVEL_VERBOSE,
MLX4_DBG_DRV,<BR> ("EvtPrepareHardware:
Desc %d: RawMsiInterrupt: Share %d, Flags %#x, MessageCount %#hx, Vector %#x,
Affinity %#x\n", <BR> i,
desc_raw->ShareDisposition,
desc_raw->Flags,<BR> desc_raw->u.MessageInterrupt.Raw.MessageCount,
<BR>@@ -586,7 +586,7
@@<BR> (u32)desc_raw->u.MessageInterrupt.Raw.Affinity
));<BR> }<BR> else {
// line-based
interrupt<BR>- MLX4_PRINT(TRACE_LEVEL_WARNING,
MLX4_DBG_DRV,<BR>+ MLX4_PRINT(TRACE_LEVEL_VERBOSE,
MLX4_DBG_DRV,<BR> ("EvtPrepareHardware:
Desc %d: LineInterrupt: Share %d, Flags %#x, Level %d, Vector %#x, Affinity
%#x\n", <BR> i,
desc->ShareDisposition,
desc->Flags,<BR> desc->u.Interrupt.Level,
desc->u.Interrupt.Vector, <BR>@@ -774,14 +774,14
@@<BR> }<BR> <BR> NTSTATUS<BR>-EvtDeviceAdd(<BR>+EvtDriverDeviceAdd(<BR> IN
WDFDRIVER Driver,<BR> IN
PWDFDEVICE_INIT
DeviceInit<BR> )<BR> /*++<BR> Routine
Description:<BR> <BR>- EvtDeviceAdd is called by the framework in
response to AddDevice<BR>+ EvtDriverDeviceAdd is called by the framework
in response to AddDevice<BR> call from the PnP manager. We create
and initialize a device object to<BR> represent a new instance of
mxe bus.<BR> <BR>@@ -1191,7 +1191,7
@@<BR> //<BR> <BR> WDF_DRIVER_CONFIG_INIT(<BR>- &config,
EvtDeviceAdd );<BR>+ &config, EvtDriverDeviceAdd
);<BR> config.EvtDriverUnload =
EvtDriverUnload;<BR> <BR> //<BR>Index:
hw/mlx4/kernel/bus/drv/drv.h<BR>===================================================================<BR>---
hw/mlx4/kernel/bus/drv/drv.h (revision 2055)<BR>+++
hw/mlx4/kernel/bus/drv/drv.h (working copy)<BR>@@ -155,7 +155,7
@@<BR> );<BR> <BR> NTSTATUS<BR>-EvtDeviceAdd(<BR>+EvtDriverDeviceAdd(<BR> IN
WDFDRIVER Driver,<BR> IN
PWDFDEVICE_INIT DeviceInit<BR> );<BR>Index:
hw/mlx4/kernel/bus/drv/pci.c<BR>===================================================================<BR>---
hw/mlx4/kernel/bus/drv/pci.c (revision 2055)<BR>+++
hw/mlx4/kernel/bus/drv/pci.c (working copy)<BR>@@ -541,7 +541,7
@@<BR> p_vector = ka;<BR> /*
print (allocated+2) vectors */<BR> for (i=0;
i<pdev->n_msi_vectors_alloc+2; i++)
{<BR>- MLX4_PRINT( TRACE_LEVEL_WARNING
,MLX4_DBG_PNP ,<BR>+ MLX4_PRINT(
TRACE_LEVEL_VERBOSE ,MLX4_DBG_PNP
,<BR> ("MSI-X Vectors: Id %d, Masked %d,
Addr %#I64x, Data %#x\n",<BR> i,
MSIX_VECTOR_MASKED(p_vector[i].Flags),<BR> p_vector[i].Addr,
p_vector[i].Data ));<BR></FONT></DIV></BLOCKQUOTE></BODY></HTML>