1. 02 6月, 2015 1 次提交
  2. 01 6月, 2015 1 次提交
  3. 31 5月, 2015 3 次提交
  4. 28 5月, 2015 2 次提交
    • R
      cpumask_set_cpu_local_first => cpumask_local_spread, lament · f36963c9
      Rusty Russell 提交于
      da91309e (cpumask: Utility function to set n'th cpu...) created a
      genuinely weird function.  I never saw it before, it went through DaveM.
      (He only does this to make us other maintainers feel better about our own
      mistakes.)
      
      cpumask_set_cpu_local_first's purpose is say "I need to spread things
      across N online cpus, choose the ones on this numa node first"; you call
      it in a loop.
      
      It can fail.  One of the two callers ignores this, the other aborts and
      fails the device open.
      
      It can fail in two ways: allocating the off-stack cpumask, or through a
      convoluted codepath which AFAICT can only occur if cpu_online_mask
      changes.  Which shouldn't happen, because if cpu_online_mask can change
      while you call this, it could return a now-offline cpu anyway.
      
      It contains a nonsensical test "!cpumask_of_node(numa_node)".  This was
      drawn to my attention by Geert, who said this causes a warning on Sparc.
      It sets a single bit in a cpumask instead of returning a cpu number,
      because that's what the callers want.
      
      It could be made more efficient by passing the previous cpu rather than
      an index, but that would be more invasive to the callers.
      
      Fixes: da91309e
      Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (then rebased)
      Tested-by: NAmir Vadai <amirv@mellanox.com>
      Acked-by: NAmir Vadai <amirv@mellanox.com>
      Acked-by: NDavid S. Miller <davem@davemloft.net>
      f36963c9
    • B
      mlx4_core: Fix fallback from MSI-X to INTx · f4ecf29f
      Benjamin Poirier 提交于
      The test in mlx4_load_one() to remove MLX4_FLAG_MSI_X expects mlx4_NOP() to
      fail with -EBUSY. It is also necessary to avoid the reset since the device
      is not fully reinitialized before calling mlx4_start_hca() a second time.
      
      Note that this will also affect mlx4_test_interrupts(), the only other user
      of MLX4_CMD_NOP.
      
      Fixes: f5aef5aa ("net/mlx4_core: Activate reset flow upon fatal command cases")
      Signed-off-by: NBenjamin Poirier <bpoirier@suse.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f4ecf29f
  5. 27 5月, 2015 1 次提交
  6. 26 5月, 2015 2 次提交
  7. 23 5月, 2015 1 次提交
  8. 16 5月, 2015 2 次提交
  9. 15 5月, 2015 1 次提交
    • B
      net/mlx4: Avoid 'may be used uninitialized' warnings · c1c52db1
      Bjorn Helgaas 提交于
      With a cross-compiler based on gcc-4.9, I see warnings like the following:
      
        drivers/net/ethernet/mellanox/mlx4/resource_tracker.c: In function 'mlx4_SW2HW_CQ_wrapper':
        drivers/net/ethernet/mellanox/mlx4/resource_tracker.c:3048:10: error: 'cq' may be used uninitialized in this function [-Werror=maybe-uninitialized]
          cq->mtt = mtt;
      
      I think the warning is spurious because we only use cq when
      cq_res_start_move_to() returns zero, and it always initializes *cq in that
      case.  The srq case is similar.  But maybe gcc isn't smart enough to figure
      that out.
      
      Initialize cq and srq explicitly to avoid the warnings.
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c1c52db1
  10. 13 5月, 2015 2 次提交
  11. 11 5月, 2015 2 次提交
  12. 10 5月, 2015 4 次提交
  13. 07 5月, 2015 2 次提交
  14. 06 5月, 2015 2 次提交
  15. 05 5月, 2015 3 次提交
  16. 04 5月, 2015 4 次提交
  17. 01 5月, 2015 5 次提交
  18. 30 4月, 2015 2 次提交
    • H
      cxgb4: Fix MC1 memory offset calculation · 7f0b8a56
      Hariprasad Shenai 提交于
      Commit 6559a7e8 ("cxgb4: Cleanup macros so they follow the same
      style and look consistent") introduced a regression where reading MC1
      memory in adapters where MC0 isn't present or MC0 size is not equal to MC1
      size caused the adapter to crash due to incorrect computation of memoffset.
      Fix is to read the size of MC0 instead of MC1 for offset calculation
      Signed-off-by: NSteve Wise <swise@opengridcomputing.com>
      Signed-off-by: NHariprasad Shenai <hariprasad@chelsio.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7f0b8a56
    • Y
      bnx2x: Delay during kdump load · 12a8541d
      Yuval Mintz 提交于
      In a kdump environment interfaces might be re-loaded without a proper
      unload sequence in the previous running kernel.
      bnx2x management FW and driver maintains a `pulse' that notifies the FW
      that the driver is still up and running.
      
      Driver load on the kdump kernel should be performed only after the pulse
      has been out-of-sync long enough for the management FW to identify that
      the driver has crashed, on which point it will perform some necessary
      cleanup of the HW.
      
      In today's distros kdump loading is quite fast, sometimes too fast for our
      FW to get out-of-sync. This patch delays the bnx2x's probe during kdump
      to allow a proper re-load on the kdump kernel.
      Signed-off-by: NYuval Mintz <Yuval.Mintz@qlogic.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      12a8541d