1. 08 9月, 2012 1 次提交
  2. 25 8月, 2012 1 次提交
  3. 11 8月, 2012 3 次提交
    • W
      ARM: 7488/1: mm: use 5 bits for swapfile type encoding · f5f2025e
      Will Deacon 提交于
      Page migration encodes the pfn in the offset field of a swp_entry_t.
      For LPAE, we support physical addresses of up to 36 bits (due to
      sparsemem limitations with the size of page flags), requiring 24 bits
      to represent a pfn. A further 3 bits are used to encode a swp_entry into
      a pte, leaving 5 bits for the type field. Furthermore, the core code
      defines MAX_SWAPFILES_SHIFT as 5, so the additional type bit does not
      get used.
      
      This patch reduces the width of the type field to 5 bits, allowing us
      to create up to 31 swapfiles of 64GB each.
      
      Cc: <stable@vger.kernel.org>
      Reviewed-by: NCatalin Marinas <catalin.marinas@arm.com>
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      f5f2025e
    • W
      ARM: 7487/1: mm: avoid setting nG bit for user mappings that aren't present · 47f12043
      Will Deacon 提交于
      Swap entries are encoding in ptes such that !pte_present(pte) and
      pte_file(pte). The remaining bits of the descriptor are used to identify
      the swapfile and offset within it to the swap entry.
      
      When writing such a pte for a user virtual address, set_pte_at
      unconditionally sets the nG bit, which (in the case of LPAE) will
      corrupt the swapfile offset and lead to a BUG:
      
      [  140.494067] swap_free: Unused swap offset entry 000763b4
      [  140.509989] BUG: Bad page map in process rs:main Q:Reg  pte:0ec76800 pmd:8f92e003
      
      This patch fixes the problem by only setting the nG bit for user
      mappings that are actually present.
      
      Cc: <stable@vger.kernel.org>
      Reviewed-by: NCatalin Marinas <catalin.marinas@arm.com>
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      47f12043
    • C
      ARM: 7486/1: sched_clock: update epoch_cyc on resume · 237ec6f2
      Colin Cross 提交于
      Many clocks that are used to provide sched_clock will reset during
      suspend.  If read_sched_clock returns 0 after suspend, sched_clock will
      appear to jump forward.  This patch resets cd.epoch_cyc to the current
      value of read_sched_clock during resume, which causes sched_clock() just
      after suspend to return the same value as sched_clock() just before
      suspend.
      
      In addition, during the window where epoch_ns has been updated before
      suspend, but epoch_cyc has not been updated after suspend, it is unknown
      whether the clock has reset or not, and sched_clock() could return a
      bogus value.  Add a suspended flag, and return the pre-suspend epoch_ns
      value during this period.
      
      The new behavior is triggered by calling setup_sched_clock_needs_suspend
      instead of setup_sched_clock.
      Signed-off-by: NColin Cross <ccross@android.com>
      Reviewed-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      237ec6f2
  4. 31 7月, 2012 3 次提交
  5. 30 7月, 2012 4 次提交
  6. 28 7月, 2012 2 次提交
  7. 24 7月, 2012 1 次提交
  8. 10 7月, 2012 8 次提交
  9. 05 7月, 2012 3 次提交
    • R
      ARM: fix warnings about atomic64_read · b89d607b
      Russell King 提交于
      Fix:
      net/netfilter/xt_connbytes.c: In function 'connbytes_mt':
      net/netfilter/xt_connbytes.c:43: warning: passing argument 1 of 'atomic64_read' discards qualifiers from pointer target type
      ...
      
      by adding the missing const.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      b89d607b
    • W
      ARM: 7443/1: Revert "new way of handling ERESTART_RESTARTBLOCK" · 433e2f30
      Will Deacon 提交于
      This reverts commit 6b5c8045.
      
      Conflicts:
      
      	arch/arm/kernel/ptrace.c
      
      The new syscall restarting code can lead to problems if we take an
      interrupt in userspace just before restarting the svc instruction. If
      a signal is delivered when returning from the interrupt, the
      TIF_SYSCALL_RESTARTSYS will remain set and cause any syscalls executed
      from the signal handler to be treated as a restart of the previously
      interrupted system call. This includes the final sigreturn call, meaning
      that we may fail to exit from the signal context. Furthermore, if a
      system call made from the signal handler requires a restart via the
      restart_block, it is possible to clear the thread flag and fail to
      restart the originally interrupted system call.
      
      The right solution to this problem is to perform the restarting in the
      kernel, avoiding the possibility of handling a further signal before the
      restart is complete. Since we're almost at -rc6, let's revert the new
      method for now and aim for in-kernel restarting at a later date.
      Acked-by: NCatalin Marinas <catalin.marinas@arm.com>
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      433e2f30
    • R
      ARM: fix set_domain() macro · 82401bf1
      Russell King 提交于
      Avoid polluting drivers with a set_domain() macro, which interferes with
      structure member names:
      
      drivers/net/wireless/ath/ath9k/dfs_pattern_detector.c:294:33: error: macro "set_domain" passed 2 arguments, but takes just 1
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      82401bf1
  10. 01 7月, 2012 1 次提交
    • S
      ARM: fiq: change FIQ_START to a variable · bc89663a
      Shawn Guo 提交于
      The commit a2be01b1 (ARM: only include mach/irqs.h for !SPARSE_IRQ)
      makes mach/irqs.h only be included for !SPARSE_IRQ build.  There are
      a nubmer of platforms have FIQ_START defined in mach/irqs.h for FIQ
      support.
      
        arch/arm/mach-rpc/include/mach/irqs.h:#define FIQ_START         64
        arch/arm/mach-s3c24xx/include/mach/irqs.h:#define FIQ_START             IRQ_EINT0
        arch/arm/plat-mxc/include/mach/irqs.h:#define FIQ_START 0
      
      If SPARSE_IRQ is enabled for any of these platforms, the following
      compile error will be seen.
      
        arch/arm/kernel/fiq.c: In function ‘enable_fiq’:
        arch/arm/kernel/fiq.c:127:19: error: ‘FIQ_START’ undeclared (first use in this function)
        arch/arm/kernel/fiq.c:127:19: note: each undeclared identifier is reported only once for each function it appears in
        arch/arm/kernel/fiq.c: In function ‘disable_fiq’:
        arch/arm/kernel/fiq.c:132:20: error: ‘FIQ_START’ undeclared (first use in this function)
      
      The patch changes fiq code to have init_FIQ take FIQ_START from
      platforms as a parameter and assign it to variable fiq_start which
      is to replace FIQ_START uses in enable_fiq/disable_fiq.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Cc: Kukjin Kim <kgene.kim@samsung.com>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: Rob Herring <rob.herring@calxeda.com>
      Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      bc89663a
  11. 29 6月, 2012 1 次提交
  12. 21 6月, 2012 1 次提交
  13. 16 6月, 2012 1 次提交
  14. 31 5月, 2012 1 次提交
  15. 25 5月, 2012 1 次提交
  16. 22 5月, 2012 3 次提交
  17. 21 5月, 2012 5 次提交