1. 30 May, 2013 36 commits
  2. 13 May, 2013 4 commits
    • Ben Hutchings's avatar
      Linux 3.2.45 · 88fd5f3b
      Ben Hutchings authored
      88fd5f3b
    • jerry.hoemann@hp.com's avatar
      x86/mm: account for PGDIR_SIZE alignment · 6af66ec5
      jerry.hoemann@hp.com authored
      Patch for 3.0-stable.  Function find_early_table_space removed upstream.
      
      Fixes panic in alloc_low_page due to pgt_buf overflow during
      init_memory_mapping.
      
      find_early_table_space sizes pgt_buf based upon the size of the
      memory being mapped, but it does not take into account the alignment
      of the memory.  When the region being mapped spans a 512GB (PGDIR_SIZE)
      alignment, a panic from alloc_low_pages occurs.
      
      kernel_physical_mapping_init takes into account PGDIR_SIZE alignment.
      This causes an extra call to alloc_low_page to be made.  This extra call
      isn't accounted for by find_early_table_space and causes a kernel panic.
      
      Change is to take into account PGDIR_SIZE alignment in find_early_table_space.
      Signed-off-by: default avatarJerry Hoemann <jerry.hoemann@hp.com>
      Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
      6af66ec5
    • françois romieu's avatar
      r8169: fix vlan tag read ordering. · 88933df6
      françois romieu authored
      commit ce11ff5e upstream.
      
      Control of receive descriptor must not be returned to ethernet chipset
      before vlan tag processing is done.
      
      VLAN tag receive word is now reset both in normal and error path.
      Signed-off-by: default avatarFrancois Romieu <romieu@fr.zoreil.com>
      Spotted-by: default avatarTimo Teras <timo.teras@iki.fi>
      Cc: Hayes Wang <hayeswang@realtek.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
      88933df6
    • Vaidyanathan Srinivasan's avatar
      powerpc: fix numa distance for form0 device tree · 3abcaf2c
      Vaidyanathan Srinivasan authored
      commit 7122beee upstream.
      
      The following commit breaks numa distance setup for old powerpc
      systems that use form0 encoding in device tree.
      
      commit 41eab6f8
      powerpc/numa: Use form 1 affinity to setup node distance
      
      Device tree node /rtas/ibm,associativity-reference-points would
      index into /cpus/PowerPCxxxx/ibm,associativity based on form0 or
      form1 encoding detected by ibm,architecture-vec-5 property.
      
      All modern systems use form1 and current kernel code is correct.
      However, on older systems with form0 encoding, the numa distance
      will get hard coded as LOCAL_DISTANCE for all nodes.  This causes
      task scheduling anomaly since scheduler will skip building numa
      level domain (topmost domain with all cpus) if all numa distances
      are same.  (value of 'level' in sched_init_numa() will remain 0)
      
      Prior to the above commit:
      ((from) == (to) ? LOCAL_DISTANCE : REMOTE_DISTANCE)
      
      Restoring compatible behavior with this patch for old powerpc systems
      with device tree where numa distance are encoded as form0.
      Signed-off-by: default avatarVaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
      Signed-off-by: default avatarMichael Ellerman <michael@ellerman.id.au>
      Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
      3abcaf2c