Skip to content
  1. Aug 01, 2013
  2. Jul 31, 2013
    • Wei Yongjun's avatar
      mlx5: fix error return code in mlx5_alloc_uuars() · a661b43f
      Wei Yongjun authored
      
      
      Fix to return -ENOMEM from the ioremap error handling
      case instead of 0, as done elsewhere in this function.
      
      Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a661b43f
    • Arnaud Patard's avatar
      mvneta: Try to fix mvneta when compiled as module · 5445eaf3
      Arnaud Patard authored
      
      
      When the mvneta driver is compiled as module, the clock is disabled before
      it's loading. This will reset the registers values and all configuration
      made by the bootloader.
      
      This patch sets the "sgmii serdes configuration" register to a magical value
      found in:
      https://github.com/yellowback/ubuntu-precise-armadaxp/blob/master/arch/arm/mach-armadaxp/armada_xp_family/ctrlEnv/mvCtrlEnvLib.c
      
      With this change, the interrupts are working/generated and ethernet is
      working.
      
      Signed-off-by: default avatarArnaud Patard <arnaud.patard@rtp-net.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5445eaf3
    • Arnaud Patard's avatar
      mvneta: Fix hang when loading the mvneta driver · aded0955
      Arnaud Patard authored
      
      
      When the mvneta driver is compiled, it'll be loaded with clocks disabled.
      This implies that the clocks should be enabled again before any register
      access or it'll hang.
      
      To fix it:
      - enable clock earlier
      - move timer callback after setting timer.data
      
      Signed-off-by: default avatarArnaud Patard <arnaud.patard@rtp-net.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      aded0955
    • Eric Dumazet's avatar
      atl1c: Fix misuse of netdev_alloc_skb in refilling rx ring · 7b701764
      Eric Dumazet authored
      
      
      On Mon, 2013-07-29 at 08:30 -0700, Eric Dumazet wrote:
      > On Mon, 2013-07-29 at 13:09 +0100, Luis Henriques wrote:
      >
      > >
      > > I confirm that I can't reproduce the issue using this patch.
      > >
      >
      > Thanks, I'll send a polished patch, as this one had an error if
      > build_skb() returns NULL (in case sk_buff allocation fails)
      
      Please try the following patch : It should use 2K frags instead of 4K
      for normal 1500 mtu
      
      Thanks !
      
      [PATCH] atl1c: use custom skb allocator
      
      We had reports ( https://bugzilla.kernel.org/show_bug.cgi?id=54021 )
      that using high order pages for skb allocations is problematic for atl1c
      
      We do not know exactly what the problem is, but we suspect that crossing
      4K pages is not well supported by this hardware.
      
      Use a custom allocator, using page allocator and 2K fragments for
      optimal stack behavior. We might make this allocator generic
      in future kernels.
      
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Cc: Luis Henriques <luis.henriques@canonical.com>
      Cc: Neil Horman <nhorman@tuxdriver.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      7b701764
    • Ben Widawsky's avatar
      drm/i915: fix missed hunk after GT access breakage · e1b4d303
      Ben Widawsky authored
      Upon some code refactoring, a hunk was missed. This was fixed for
      next, but missed the current trees, and hasn't yet been merged by Dave
      Airlie. It is fixed in:
      commit 907b28c5
      Author: Chris Wilson <chris@chris-wilson.co.uk>
      Date:   Fri Jul 19 20:36:52 2013 +0100
      
          drm/i915: Colocate all GT access routines in the same file
      
      It is introduced by:
      commit 181d1b9e
      
      
      Author: Daniel Vetter <daniel.vetter@ffwll.ch>
      Date:   Sun Jul 21 13:16:24 2013 +0200
      
          drm/i915: fix up gt init sequence fallout
      
      Reported-by: default avatarDave Jones <davej@redhat.com>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: default avatarBen Widawsky <ben@bwidawsk.net>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      e1b4d303
    • Pablo Neira's avatar
      genetlink: fix usage of NLM_F_EXCL or NLM_F_REPLACE · e1ee3673
      Pablo Neira authored
      Currently, it is not possible to use neither NLM_F_EXCL nor
      NLM_F_REPLACE from genetlink. This is due to this checking in
      genl_family_rcv_msg:
      
      	if (nlh->nlmsg_flags & NLM_F_DUMP)
      
      NLM_F_DUMP is NLM_F_MATCH|NLM_F_ROOT. Thus, if NLM_F_EXCL or
      NLM_F_REPLACE flag is set, genetlink believes that you're
      requesting a dump and it calls the .dumpit callback.
      
      The solution that I propose is to refine this checking to
      make it stricter:
      
      	if ((nlh->nlmsg_flags & NLM_F_DUMP) == NLM_F_DUMP)
      
      And given the combination NLM_F_REPLACE and NLM_F_EXCL does
      not make sense to me, it removes the ambiguity.
      
      There was a patch that tried to fix this some time ago (0ab03c2b
      
      
      netlink: test for all flags of the NLM_F_DUMP composite) but it
      tried to resolve this ambiguity in *all* existing netlink subsystems,
      not only genetlink. That patch was reverted since it broke iproute2,
      which is using NLM_F_ROOT to request the dump of the routing cache.
      
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e1ee3673