1. 04 12月, 2014 4 次提交
    • D
      arm64: perf: Prevent wraparound during overflow · cbbf2e6e
      Daniel Thompson 提交于
      If the overflow threshold for a counter is set above or near the
      0xffffffff boundary then the kernel may lose track of the overflow
      causing only events that occur *after* the overflow to be recorded.
      Specifically the problem occurs when the value of the performance counter
      overtakes its original programmed value due to wrap around.
      
      Typical solutions to this problem are either to avoid programming in
      values likely to be overtaken or to treat the overflow bit as the 33rd
      bit of the counter.
      
      Its somewhat fiddly to refactor the code to correctly handle the 33rd bit
      during irqsave sections (context switches for example) so instead we take
      the simpler approach of avoiding values likely to be overtaken.
      
      We set the limit to half of max_period because this matches the limit
      imposed in __hw_perf_event_init(). This causes a doubling of the interrupt
      rate for large threshold values, however even with a very fast counter
      ticking at 4GHz the interrupt rate would only be ~1Hz.
      Signed-off-by: NDaniel Thompson <daniel.thompson@linaro.org>
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      cbbf2e6e
    • C
      arm64/include/asm: Fixed a warning about 'struct pt_regs' · af2c632e
      Chunyan Zhang 提交于
      If I include asm/irq.h on the top of my code, and set ARCH=arm64,
      I'll get a compile warning, details are below:
      warning: ‘struct pt_regs’
      declared inside parameter list [enabled by default]
      
      This patch is suggested by Arnd, see:
      http://lists.infradead.org/pipermail/linux-arm-kernel/2014-December/308270.htmlSigned-off-by: NChunyan Zhang <chunyan.zhang@spreadtrum.com>
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      af2c632e
    • F
      arm64: Provide a namespace to NCAPS · 06f9eb88
      Fabio Estevam 提交于
      Building arm64.allmodconfig leads to the following warning:
      
      usb/gadget/function/f_ncm.c:203:0: warning: "NCAPS" redefined
       #define NCAPS (USB_CDC_NCM_NCAP_ETH_FILTER | USB_CDC_NCM_NCAP_CRC_MODE)
       ^
      In file included from /home/build/work/batch/arch/arm64/include/asm/io.h:32:0,
                       from /home/build/work/batch/include/linux/clocksource.h:19,
                       from /home/build/work/batch/include/clocksource/arm_arch_timer.h:19,
                       from /home/build/work/batch/arch/arm64/include/asm/arch_timer.h:27,
                       from /home/build/work/batch/arch/arm64/include/asm/timex.h:19,
                       from /home/build/work/batch/include/linux/timex.h:65,
                       from /home/build/work/batch/include/linux/sched.h:19,
                       from /home/build/work/batch/arch/arm64/include/asm/compat.h:25,
                       from /home/build/work/batch/arch/arm64/include/asm/stat.h:23,
                       from /home/build/work/batch/include/linux/stat.h:5,
                       from /home/build/work/batch/include/linux/module.h:10,
                       from /home/build/work/batch/drivers/usb/gadget/function/f_ncm.c:19:
      arch/arm64/include/asm/cpufeature.h:27:0: note: this is the location of the previous definition
       #define NCAPS     2
      
      So add a ARM64 prefix to avoid such problem.
      Reported-by: NOlof's autobuilder <build@lixom.net>
      Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      06f9eb88
    • Z
      arm64: bpf: lift restriction on last instruction · 51c9fbb1
      Zi Shen Lim 提交于
      Earlier implementation assumed last instruction is BPF_EXIT.
      Since this is no longer a restriction in eBPF, we remove this
      limitation.
      
      Per Alexei Starovoitov [1]:
      > classic BPF has a restriction that last insn is always BPF_RET.
      > eBPF doesn't have BPF_RET instruction and this restriction.
      > It has BPF_EXIT insn which can appear anywhere in the program
      > one or more times and it doesn't have to be last insn.
      
      [1] https://lkml.org/lkml/2014/11/27/2
      
      Fixes: e54bcde3 ("arm64: eBPF JIT compiler")
      Acked-by: NAlexei Starovoitov <ast@plumgrid.com>
      Signed-off-by: NZi Shen Lim <zlim.lnx@gmail.com>
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      51c9fbb1
  2. 03 12月, 2014 1 次提交
  3. 01 12月, 2014 1 次提交
  4. 28 11月, 2014 6 次提交
  5. 27 11月, 2014 3 次提交
  6. 26 11月, 2014 2 次提交
  7. 25 11月, 2014 16 次提交
  8. 21 11月, 2014 7 次提交