[ofw][patch][MLX4_BUS] cleanup: rename a function and change debug print level for some MSIX related prints to decrease output

Leonid Keller leonid at mellanox.co.il
Wed Mar 25 07:07:07 PDT 2009


 
 
Index: hw/mlx4/kernel/bus/drv/drv.c
===================================================================
--- hw/mlx4/kernel/bus/drv/drv.c (revision 2055)
+++ hw/mlx4/kernel/bus/drv/drv.c (working copy)
@@ -572,13 +572,13 @@
      pdev->int_info = *desc;
     if (desc->Flags & CM_RESOURCE_INTERRUPT_MESSAGE) {
      pdev->n_msi_vectors_alloc =
(u8)(pdev->n_msi_vectors_alloc+desc_raw->u.MessageInterrupt.Raw.MessageC
ount);
-     MLX4_PRINT(TRACE_LEVEL_WARNING, MLX4_DBG_DRV,
+     MLX4_PRINT(TRACE_LEVEL_VERBOSE, MLX4_DBG_DRV,
       ("EvtPrepareHardware: Desc %d: MsiInterrupt: Share %d, Flags %#x,
Level %d, Vector %#x, Affinity %#x\n", 
       i, desc->ShareDisposition, desc->Flags,
       desc->u.MessageInterrupt.Translated.Level, 
       desc->u.MessageInterrupt.Translated.Vector, 
       (u32)desc->u.MessageInterrupt.Translated.Affinity ));
-     MLX4_PRINT(TRACE_LEVEL_WARNING, MLX4_DBG_DRV,
+     MLX4_PRINT(TRACE_LEVEL_VERBOSE, MLX4_DBG_DRV,
       ("EvtPrepareHardware: Desc %d: RawMsiInterrupt: Share %d, Flags
%#x, MessageCount %#hx, Vector %#x, Affinity %#x\n", 
       i, desc_raw->ShareDisposition, desc_raw->Flags,
       desc_raw->u.MessageInterrupt.Raw.MessageCount, 
@@ -586,7 +586,7 @@
       (u32)desc_raw->u.MessageInterrupt.Raw.Affinity ));
     }
     else { // line-based interrupt
-     MLX4_PRINT(TRACE_LEVEL_WARNING, MLX4_DBG_DRV,
+     MLX4_PRINT(TRACE_LEVEL_VERBOSE, MLX4_DBG_DRV,
       ("EvtPrepareHardware: Desc %d: LineInterrupt: Share %d, Flags
%#x, Level %d, Vector %#x, Affinity %#x\n", 
       i, desc->ShareDisposition, desc->Flags,
       desc->u.Interrupt.Level, desc->u.Interrupt.Vector, 
@@ -774,14 +774,14 @@
 }
 
 NTSTATUS
-EvtDeviceAdd(
+EvtDriverDeviceAdd(
  IN WDFDRIVER        Driver,
  IN PWDFDEVICE_INIT  DeviceInit
  )
 /*++
 Routine Description:
 
- EvtDeviceAdd is called by the framework in response to AddDevice
+ EvtDriverDeviceAdd is called by the framework in response to AddDevice
  call from the PnP manager. We create and initialize a device object to
  represent a new instance of mxe bus.
 
@@ -1191,7 +1191,7 @@
  //
 
  WDF_DRIVER_CONFIG_INIT(
-  &config, EvtDeviceAdd );
+  &config, EvtDriverDeviceAdd );
  config.EvtDriverUnload = EvtDriverUnload;
 
  //
Index: hw/mlx4/kernel/bus/drv/drv.h
===================================================================
--- hw/mlx4/kernel/bus/drv/drv.h (revision 2055)
+++ hw/mlx4/kernel/bus/drv/drv.h (working copy)
@@ -155,7 +155,7 @@
  );
  
 NTSTATUS
-EvtDeviceAdd(
+EvtDriverDeviceAdd(
  IN WDFDRIVER        Driver,
  IN PWDFDEVICE_INIT  DeviceInit
  );
Index: hw/mlx4/kernel/bus/drv/pci.c
===================================================================
--- hw/mlx4/kernel/bus/drv/pci.c (revision 2055)
+++ hw/mlx4/kernel/bus/drv/pci.c (working copy)
@@ -541,7 +541,7 @@
    p_vector = ka;
    /* print (allocated+2) vectors */
    for (i=0; i<pdev->n_msi_vectors_alloc+2; i++) {
-    MLX4_PRINT( TRACE_LEVEL_WARNING  ,MLX4_DBG_PNP  ,
+    MLX4_PRINT( TRACE_LEVEL_VERBOSE  ,MLX4_DBG_PNP  ,
      ("MSI-X Vectors: Id %d, Masked %d, Addr %#I64x, Data %#x\n",
      i, MSIX_VECTOR_MASKED(p_vector[i].Flags),
      p_vector[i].Addr, p_vector[i].Data ));

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20090325/eec1bab9/attachment.html>


More information about the ofw mailing list