1. 07 9月, 2013 11 次提交
    • R
      um: Add irq chip um/mask handlers · 81bab4c3
      Richard Weinberger 提交于
      These handlers are not optional and need in our case
      dummy implementions to avoid NULL pointer bugs within
      the irq core code.
      Reported-and-tested-by: NToralf Foester <toralf.foerster@gmx.de>
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      81bab4c3
    • R
      um: prctl: Do not include linux/ptrace.h · b5c04da0
      Richard Weinberger 提交于
      On recent toolchains we hit:
      In file included from arch/x86/um/os-Linux/prctl.c:7:0:
      /usr/include/linux/ptrace.h:58:8: error: redefinition of ‘struct
      ptrace_peeksiginfo_args’ struct ptrace_peeksiginfo_args {
              ^
      In file included from arch/x86/um/os-Linux/prctl.c:6:0:
      /usr/include/sys/ptrace.h:191:8: note: originally defined here
       struct ptrace_peeksiginfo_args
              ^
      make[2]: *** [arch/x86/um/os-Linux/prctl.o] Error 1
      make[1]: *** [arch/x86/um/os-Linux] Error 2
      make: *** [arch/x86/um] Error 2
      
      The solution is not to include linux/ptrace.h and obtain
      the arch specific ptrace command from asm/ptrace.h.
      Reported-and-tested-by: NDavid Oberhollenzer <david.oberhollenzer@tele2.at>
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      b5c04da0
    • R
      um: Run UML in it's own session. · 25012721
      Richard Weinberger 提交于
      If UML is not run by a shell it can happen that UML
      will kill unrelated proceses upon a fatal exit because
      it issues a kill(0, ...).
      To prevent such oddities we create a new session in main().
      Reported-and-tested-by: NRichard W.M. Jones <rjones@redhat.com>
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      25012721
    • R
      um: Cleanup SIGTERM handling · 91d44ff8
      Richard Weinberger 提交于
      Richard reported that some UML processes survive if the UML
      main process receives a SIGTERM.
      This issue was caused by a wrongly placed signal(SIGTERM, SIG_DFL)
      in init_new_thread_signals().
      It disabled the UML exit handler accidently for some processes.
      The correct solution is to disable the fatal handler for all
      UML helper threads/processes.
      Such that last_ditch_exit() does not get called multiple times
      and all processes can exit due to SIGTERM.
      Reported-and-tested-by: NRichard W.M. Jones <rjones@redhat.com>
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      91d44ff8
    • R
      um: ubd: Introduce submit_request() · bc1d72e7
      Richard Weinberger 提交于
      Just a clean-up patch to remove the open coded
      variants and to ensure that all requests are submitted the
      same way.
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      bc1d72e7
    • R
      um: ubd: Add REQ_FLUSH suppport · 805f11a0
      Richard Weinberger 提交于
      UML's block device driver does not support write barriers,
      to support this this patch adds REQ_FLUSH suppport.
      Every time the block layer sends a REQ_FLUSH we fsync() now
      our backing file to guarantee data consistency.
      Reported-and-tested-by: NRichard W.M. Jones <rjones@redhat.com>
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      805f11a0
    • R
      um: Implement probe_kernel_read() · f75b1b1b
      Richard Weinberger 提交于
      UML needs it's own probe_kernel_read() to handle kernel
      mode faults correctly.
      The implementation uses mincore() on the host side to detect
      whether a page is owned by the UML kernel process.
      
      This fixes also a possible crash when sysrq-t is used.
      Starting with 3.10 sysrq-t calls probe_kernel_read() to
      read details from the kernel workers. As kernel worker are
      completely async pointers may turn NULL while reading them.
      
      Cc: <stian@nixia.no>
      Cc: <tj@kernel.org>
      Cc: <stable@vger.kernel.org> # 3.10.x
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      f75b1b1b
    • H
      Reinstate "crypto: crct10dif - Wrap crc_t10dif function all to use crypto transform framework" · 68411521
      Herbert Xu 提交于
      This patch reinstates commits
      	67822649
      	39761214
      	0b95a7f8
      	31d93962
      	2d31e518
      
      Now that module softdeps are in the kernel we can use that to resolve
      the boot issue which cause the revert.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      68411521
    • T
      ARM: dts: exynos4: Specify PWM clocks in PWM node · ec06dbe7
      Tomasz Figa 提交于
      Since pwm-samsung bindings require at least one clock to be specified,
      this patch adds the missing clocks and clock-names properties to specify
      clocks used by PWM block on Exynos4 SoCs.
      Signed-off-by: NTomasz Figa <t.figa@samsung.com>
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      Reviewed-by: NSylwester Nawrocki <s.nawrocki@samsung.com>
      Signed-off-by: NMike Turquette <mturquette@linaro.org>
      ec06dbe7
    • C
      tile: refresh tile defconfig files · 06da6629
      Chris Metcalf 提交于
      These are based on the current shipping versions of the config files
      from Tilera, as synced up to the tip, so are a better starting point
      for folks who want a default configuration.
      Signed-off-by: NChris Metcalf <cmetcalf@tilera.com>
      06da6629
    • C
      tile: rework <asm/cmpxchg.h> · 6dc9658f
      Chris Metcalf 提交于
      The macrology in cmpxchg.h was designed to allow arbitrary pointer
      and integer values to be passed through the routines.  To support
      cmpxchg() on 64-bit values on the 32-bit tilepro architecture, we
      used the idiom "(typeof(val))(typeof(val-val))".  This way, in the
      "size 8" branch of the switch, when the underlying cmpxchg routine
      returns a 64-bit quantity, we cast it first to a typeof(val-val)
      quantity (i.e. size_t if "val" is a pointer) with no warnings about
      casting between pointers and integers of different sizes, then cast
      onwards to typeof(val), again with no warnings.  If val is not a
      pointer type, the additional cast is a no-op.  We can't replace the
      typeof(val-val) cast with (for example) unsigned long, since then if
      "val" is really a 64-bit type, we cast away the high bits.
      
      HOWEVER, this fails with current gcc (through 4.7 at least) if "val"
      is a pointer to an incomplete type.  Unfortunately gcc isn't smart
      enough to realize that "val - val" will always be a size_t type
      even if it's an incomplete type pointer.
      
      Accordingly, I've reworked the way we handle the casting.  We have
      given up the ability to use cmpxchg() on 64-bit values on tilepro,
      which is OK in the kernel since we should use cmpxchg64() explicitly
      on such values anyway.  As a result, I can just use simple "unsigned
      long" casts internally.
      
      As I reworked it, I realized it would be cleaner to move the
      architecture-specific conditionals for cmpxchg and xchg out of the
      atomic.h headers and into cmpxchg, and then use the cmpxchg() and
      xchg() primitives directly in atomic.h and elsewhere.  This allowed
      the cmpxchg.h header to stand on its own without relying on the
      implicit include of it that is performed by <asm/atomic.h>.
      It also allowed collapsing the atomic_xchg/atomic_cmpxchg routines
      from atomic_{32,64}.h into atomic.h.
      
      I improved the tests that guard the allowed size of the arguments
      to the routines to use a __compiletime_error() test.  (By avoiding
      the use of BUILD_BUG, I could include cmpxchg.h into bitops.h as
      well and use the macros there, which is otherwise impossible due
      to include order dependency issues.)
      
      The tilepro _atomic_xxx internal methods were previously set up to
      take atomic_t and atomic64_t arguments, which isn't as convenient
      with the new model, so I modified them to take int or u64 arguments,
      which is consistent with how they used the arguments internally
      anyway, so provided some nice simplification there too.
      Signed-off-by: NChris Metcalf <cmetcalf@tilera.com>
      6dc9658f
  2. 06 9月, 2013 3 次提交
  3. 05 9月, 2013 10 次提交
  4. 04 9月, 2013 16 次提交