18 Jul, 2014

1 commit

  • Because of the removal of the scsi_tgt kernel module, the kbuild variables
    CONFIG_SCSI_TGT, CONFIG_SCSI_SRP_TGT_ATTRS and CONFIG_SCSI_FC_TGT_ATTRS
    are obsolete. This patch removes these variables. This patch is the result
    of the following command:

    find -name '*defconfig' | while read f; do grep -vwE 'CONFIG_SCSI_TGT|CONFIG_SCSI_SRP_TGT_ATTRS|CONFIG_SCSI_FC_TGT_ATTRS|CONFIG_SRP' $f >/tmp/t && mv /tmp/t $f; done

    Signed-off-by: Bart Van Assche
    Signed-off-by: Christoph Hellwig
    Reviewed-by: Paolo Bonzini
    Reviewed-by: Hannes Reinecke

    Bart Van Assche
     

17 Jul, 2014

2 commits


15 Jul, 2014

1 commit

  • Pull networking fixes from David Miller:

    1) Bluetooth pairing fixes from Johan Hedberg.

    2) ieee80211_send_auth() doesn't allocate enough tail room for the SKB,
    from Max Stepanov.

    3) New iwlwifi chip IDs, from Oren Givon.

    4) bnx2x driver reads wrong PCI config space MSI register, from Yijing
    Wang.

    5) IPV6 MLD Query validation isn't strong enough, from Hangbin Liu.

    6) Fix double SKB free in openvswitch, from Andy Zhou.

    7) Fix sk_dst_set() being racey with UDP sockets, leading to strange
    crashes, from Eric Dumazet.

    8) Interpret the NAPI budget correctly in the new systemport driver,
    from Florian Fainelli.

    9) VLAN code frees percpu stats in the wrong place, leading to crashes
    in the get stats handler. From Eric Dumazet.

    10) TCP sockets doing a repair can crash with a divide by zero, because
    we invoke tcp_push() with an MSS value of zero. Just skip that part
    of the sendmsg paths in repair mode. From Christoph Paasch.

    11) IRQ affinity bug fixes in mlx4 driver from Amir Vadai.

    12) Don't ignore path MTU icmp messages with a zero mtu, machines out
    there still spit them out, and all of our per-protocol handlers for
    PMTU can cope with it just fine. From Edward Allcutt.

    13) Some NETDEV_CHANGE notifier invocations were not passing in the
    correct kind of cookie as the argument, from Loic Prylli.

    14) Fix crashes in long multicast/broadcast reassembly, from Jon Paul
    Maloy.

    15) ip_tunnel_lookup() doesn't interpret wildcard keys correctly, fix
    from Dmitry Popov.

    16) Fix skb->sk assigned without taking a reference to 'sk' in
    appletalk, from Andrey Utkin.

    17) Fix some info leaks in ULP event signalling to userspace in SCTP,
    from Daniel Borkmann.

    18) Fix deadlocks in HSO driver, from Olivier Sobrie.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (93 commits)
    hso: fix deadlock when receiving bursts of data
    hso: remove unused workqueue
    net: ppp: don't call sk_chk_filter twice
    mlx4: mark napi id for gro_skb
    bonding: fix ad_select module param check
    net: pppoe: use correct channel MTU when using Multilink PPP
    neigh: sysctl - simplify address calculation of gc_* variables
    net: sctp: fix information leaks in ulpevent layer
    MAINTAINERS: update r8169 maintainer
    net: bcmgenet: fix RGMII_MODE_EN bit
    tipc: clear 'next'-pointer of message fragments before reassembly
    r8152: fix r8152_csum_workaround function
    be2net: set EQ DB clear-intr bit in be_open()
    GRE: enable offloads for GRE
    farsync: fix invalid memory accesses in fst_add_one() and fst_init_card()
    igb: do a reset on SR-IOV re-init if device is down
    igb: Workaround for i210 Errata 25: Slow System Clock
    usbnet: smsc95xx: add reset_resume function with reset operation
    dp83640: Always decode received status frames
    r8169: disable L23
    ...

    Linus Torvalds
     

14 Jul, 2014

4 commits

  • Pull ARM SoC fixes from Olof Johansson:
    "This week's arm-soc fixes:

    - Another set of OMAP fixes
    * Clock fixes
    * Restart handling
    * PHY regulators
    * SATA hwmod data for DRA7
    + Some trivial fixes and removal of a bit of dead code
    - Exynos fixes
    * A bunch of clock fixes
    * Some SMP fixes
    * Exynos multi-core timer: register as clocksource and fix ftrace.
    + a few other minor fixes

    There's also a couple more patches, and at91 fix for USB caused by
    common clock conversion, and more MAINTAINERS entries for shmobile.

    We're definitely switching to only regression fixes from here on out,
    we've been a little less strict than usual up until now"

    * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (26 commits)
    ARM: at91: at91sam9x5: add clocks for usb device
    ARM: EXYNOS: Register cpuidle device only on exynos4210 and 5250
    ARM: dts: Add clock property for mfc_pd in exynos5420
    clk: exynos5420: Add IDs for clocks used in PD mfc
    ARM: EXYNOS: Add support for clock handling in power domain
    ARM: OMAP2+: Remove non working OMAP HDMI audio initialization
    ARM: imx: fix shared gate clock
    ARM: dts: Update the parent for Audss clocks in Exynos5420
    ARM: EXYNOS: Update secondary boot addr for secure mode
    ARM: dts: Fix TI CPSW Phy mode selection on IGEP COM AQUILA.
    ARM: dts: am335x-evmsk: Enable the McASP FIFO for audio
    ARM: dts: am335x-evm: Enable the McASP FIFO for audio
    ARM: OMAP2+: Make GPMC skip disabled devices
    ARM: OMAP2+: create dsp device only on OMAP3 SoCs
    ARM: dts: dra7-evm: Make VDDA_1V8_PHY supply always on
    ARM: DRA7/AM43XX: fix header definition for omap44xx_restart
    ARM: OMAP2+: clock/dpll: fix _dpll_test_fint arithmetics overflow
    ARM: DRA7: hwmod: Add SYSCONFIG for usb_otg_ss
    ARM: DRA7: hwmod: Fixup SATA hwmod
    ARM: OMAP3: PRM/CM: Add back macros used by TI DSP/Bridge driver
    ...

    Linus Torvalds
     
  • Pull ARM fixes from Russell King:
    "Another round of fixes for ARM:
    - a set of kprobes fixes from Jon Medhurst
    - fix the revision checking for the L2 cache which wasn't noticed to
    have been broken"

    * 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm:
    ARM: l2c: fix revision checking
    ARM: kprobes: Fix test code compilation errors for ARMv4 targets
    ARM: kprobes: Disallow instructions with PC and register specified shift
    ARM: kprobes: Prevent known test failures stopping other tests running

    Linus Torvalds
     
  • Pull m68k fixes from Geert Uytterhoeven:
    "Summary:
    - Fix for a boot regression introduced in v3.16-rc1,
    - Fix for a build issue in -next"

    Christoph Hellwig questioned why mach_random_get_entropy should be
    exported to modules, and Geert explains that random_get_entropy() is
    called by at least the crypto layer and ends up using it on m68k. On
    most other architectures it just uses get_cycles() (which is typically
    inlined and doesn't need exporting),

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k:
    m68k: Export mach_random_get_entropy to modules
    m68k: Fix boot regression on machines with RAM at non-zero

    Linus Torvalds
     
  • Pull parisc fixes from Helge Deller:
    "The major patch in here is one which fixes the fanotify_mark() syscall
    in the compat layer of the 64bit parisc kernel. It went unnoticed so
    long, because the calling syntax when using a 64bit parameter in a
    32bit syscall is quite complex and even worse, it may be even
    different if you call syscall() or the glibc wrapper. This patch
    makes the kernel accept the calling convention when called by the
    glibc wrapper.

    The other two patches are trivial and remove unused headers, #includes
    and adds the serial ports of the fastest C8000 workstation to the
    parisc-kernel internal hardware database"

    * 'parisc-3.16-5' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
    parisc: drop unused defines and header includes
    parisc: fix fanotify_mark() syscall on 32bit compat kernel
    parisc: add serial ports of C8000/1GHz machine to hardware database

    Linus Torvalds
     

13 Jul, 2014

5 commits

  • Signed-off-by: Helge Deller
    Cc: stable@vger.kernel.org # 3.13+

    Helge Deller
     
  • On parisc we can not use the existing compat implementation for fanotify_mark()
    because for the 64bit mask parameter the higher and lower 32bits are ordered
    differently than what the compat function expects from big endian
    architectures.

    Specifically:
    It finally turned out, that on hppa we end up with different assignments
    of parameters to kernel arguments depending on if we call the glibc
    wrapper function
    int fanotify_mark (int __fanotify_fd, unsigned int __flags,
    uint64_t __mask, int __dfd, const char *__pathname);
    or directly calling the syscall manually
    syscall(__NR_fanotify_mark, ...)

    Reason is, that the syscall() function is implemented as C-function and
    because we now have the sysno as first parameter in front of the other
    parameters the compiler will unexpectedly add an empty paramenter in
    front of the u64 value to ensure the correct calling alignment for 64bit
    values.
    This means, on hppa you can't simply use syscall() to call the kernel
    fanotify_mark() function directly, but you have to use the glibc
    function instead.

    This patch fixes the kernel in the hppa-arch specifc coding to adjust
    the parameters in a way as if userspace calls the glibc wrapper function
    fanotify_mark().

    Signed-off-by: Helge Deller
    Cc: stable@vger.kernel.org # 3.13+

    Helge Deller
     
  • Signed-off-by: Helge Deller
    Cc: stable@vger.kernel.org # 3.13+

    Helge Deller
     
  • …ne/linux-samsung into fixes

    Merge "Samsung fixes-3 for 3.16" from Kukjin Kim:

    Samsung fixes-3 for v3.16
    - update the parent for Auudss clock because kernel will be hang
    during late boot if the parent clock is disabled in bootloader.
    - enable clk handing in power domain because while power domain
    on/off, its regarding clock source will be reset and it causes
    a problem so need to handle it.
    - add mux clocks to be used by power domain for exynos5420-mfc
    during power domain on/off and property in device tree also.
    - register cpuidle only for exynos4210 and exynos5250 because a
    system failure will be happened on other exynos SoCs.

    * tag 'samsung-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung:
    ARM: EXYNOS: Register cpuidle device only on exynos4210 and 5250
    ARM: dts: Add clock property for mfc_pd in exynos5420
    clk: exynos5420: Add IDs for clocks used in PD mfc
    ARM: EXYNOS: Add support for clock handling in power domain
    ARM: dts: Update the parent for Audss clocks in Exynos5420

    Signed-off-by: Olof Johansson <olof@lixom.net>

    Olof Johansson
     
  • Add clocks for usb device, or else switch to CCF, the gadget
    won't work.

    Reported-by: Jiri Prchal
    Signed-off-by: Bo Shen
    Acked-by: Alexandre Belloni
    Tested-by: Jiri Prchal
    Signed-off-by: Nicolas Ferre
    Signed-off-by: Olof Johansson

    Bo Shen
     

12 Jul, 2014

4 commits


11 Jul, 2014

16 commits

  • When a module calls random_get_entropy():

    ERROR: "mach_random_get_entropy" [crypto/drbg.ko] undefined!
    make[1]: *** [__modpost] Error 1

    Signed-off-by: Geert Uytterhoeven

    Geert Uytterhoeven
     
  • We are seeing a lot of PMU warnings on POWER8:

    Can't find PMC that caused IRQ

    Looking closer, the active PMC is 0 at this point and we took a PMU
    exception on the transition from negative to 0. Some versions of POWER8
    have an issue where they edge detect and not level detect PMC overflows.

    A number of places program the PMC with (0x80000000 - period_left),
    where period_left can be negative. We can either fix all of these or
    just ensure that period_left is always >= 1.

    This patch takes the second option.

    Cc:
    Signed-off-by: Anton Blanchard
    Signed-off-by: Benjamin Herrenschmidt

    Anton Blanchard
     
  • powerpc:allmodconfig has been failing for some time with the following
    error.

    arch/powerpc/kernel/exceptions-64s.S: Assembler messages:
    arch/powerpc/kernel/exceptions-64s.S:1312: Error: attempt to move .org backwards
    make[1]: *** [arch/powerpc/kernel/head_64.o] Error 1

    A number of attempts to fix the problem by moving around code have been
    unsuccessful and resulted in failed builds for some configurations and
    the discovery of toolchain bugs.

    Fix the problem by disabling RELOCATABLE for COMPILE_TEST builds instead.
    While this is less than perfect, it avoids substantial code changes
    which would otherwise be necessary just to make COMPILE_TEST builds
    happy and might have undesired side effects.

    Signed-off-by: Guenter Roeck
    Signed-off-by: Benjamin Herrenschmidt

    Guenter Roeck
     
  • On POWER8 when switching to a KVM guest we set bits in MMCR2 to freeze
    the PMU counters. Aside from on boot they are then never reset,
    resulting in stuck perf counters for any user in the guest or host.

    We now set MMCR2 to 0 whenever enabling the PMU, which provides a sane
    state for perf to use the PMU counters under either the guest or the
    host.

    This was manifesting as a bug with ppc64_cpu --frequency:

    $ sudo ppc64_cpu --frequency
    WARNING: couldn't run on cpu 0
    WARNING: couldn't run on cpu 8
    ...
    WARNING: couldn't run on cpu 144
    WARNING: couldn't run on cpu 152
    min: 18446744073.710 GHz (cpu -1)
    max: 0.000 GHz (cpu -1)
    avg: 0.000 GHz

    The command uses a perf counter to measure CPU cycles over a fixed
    amount of time, in order to approximate the frequency of the machine.
    The counters were returning zero once a guest was started, regardless of
    weather it was still running or had been shut down.

    By dumping the value of MMCR2, it was observed that once a guest is
    running MMCR2 is set to 1s - which stops counters from running:

    $ sudo sh -c 'echo p > /proc/sysrq-trigger'
    CPU: 0 PMU registers, ppmu = POWER8 n_counters = 6
    PMC1: 5b635e38 PMC2: 00000000 PMC3: 00000000 PMC4: 00000000
    PMC5: 1bf5a646 PMC6: 5793d378 PMC7: deadbeef PMC8: deadbeef
    MMCR0: 0000000080000000 MMCR1: 000000001e000000 MMCRA: 0000040000000000
    MMCR2: fffffffffffffc00 EBBHR: 0000000000000000
    EBBRR: 0000000000000000 BESCR: 0000000000000000
    SIAR: 00000000000a51cc SDAR: c00000000fc40000 SIER: 0000000001000000

    This is done unconditionally in book3s_hv_interrupts.S upon entering the
    guest, and the original value is only save/restored if the host has
    indicated it was using the PMU. This is okay, however the user of the
    PMU needs to ensure that it is in a defined state when it starts using
    it.

    Fixes: e05b9b9e5c10 ("powerpc/perf: Power8 PMU support")
    Cc: stable@vger.kernel.org
    Signed-off-by: Joel Stanley
    Acked-by: Michael Ellerman
    Signed-off-by: Benjamin Herrenschmidt

    Joel Stanley
     
  • Instead of separate bits for every POWER8 PMU feature, have a single one
    for v2.07 of the architecture.

    This saves us adding a MMCR2 define for a future patch.

    Cc: stable@vger.kernel.org
    Signed-off-by: Joel Stanley
    Acked-by: Michael Ellerman
    Signed-off-by: Benjamin Herrenschmidt

    Joel Stanley
     
  • These two registers are already saved in the block above. Aside from
    being unnecessary, by the time we get down to the second save location
    r8 no longer contains MMCR2, so we are clobbering the saved value with
    PMC5.

    MMCR2 primarily consists of counter freeze bits. So restoring the value
    of PMC5 into MMCR2 will most likely have the effect of freezing
    counters.

    Fixes: 72cde5a88d37 ("KVM: PPC: Book3S HV: Save/restore host PMU registers that are new in POWER8")
    Cc: stable@vger.kernel.org
    Signed-off-by: Joel Stanley
    Acked-by: Michael Ellerman
    Acked-by: Paul Mackerras
    Reviewed-by: Alexander Graf
    Signed-off-by: Benjamin Herrenschmidt

    Joel Stanley
     
  • Commit 8d6f7c5a: "powerpc/powernv: Make it possible to skip the IRQHAPPENED
    check in power7_nap()" added code that prevents cpus from checking for
    pending interrupts just before entering sleep state, which is wrong. These
    interrupts are delivered during the soft irq disabled state of the cpu.

    A cpu cannot enter any idle state with pending interrupts because they will
    never be serviced until the next time the cpu is woken up by some other
    interrupt. Its only then that the pending interrupts are replayed. This can result
    in device timeouts or warnings about this cpu being stuck.

    This patch fixes ths issue by ensuring that cpus check for pending interrupts
    just before entering any idle state as long as they are not in the path of split
    core operations.

    Signed-off-by: Preeti U Murthy
    Acked-by: Michael Ellerman
    Signed-off-by: Benjamin Herrenschmidt

    Preeti U Murthy
     
  • In fb5a515704d7 "powerpc: Remove platforms/wsp and associated pieces",
    we removed the last user of MMU_FTRS_A2. So remove it.

    MMU_FTRS_A2 was the last user of MMU_FTR_TYPE_3E, so remove it also.
    This leaves some unreachable code in mmu_context_nohash.c, so remove
    that also.

    Signed-off-by: Michael Ellerman
    Signed-off-by: Benjamin Herrenschmidt

    Michael Ellerman
     
  • Commit 046d662f4818 "coredump: make core dump functionality optional"
    made the coredump optional, but didn't update the spufs code that
    depends on it. That leads to build errors such as:

    arch/powerpc/platforms/built-in.o: In function `.spufs_arch_write_note':
    coredump.c:(.text+0x22cd4): undefined reference to `.dump_emit'
    coredump.c:(.text+0x22cf4): undefined reference to `.dump_emit'
    coredump.c:(.text+0x22d0c): undefined reference to `.dump_align'
    coredump.c:(.text+0x22d48): undefined reference to `.dump_emit'
    coredump.c:(.text+0x22e7c): undefined reference to `.dump_skip'

    Fix it by adding some ifdefs in the cell code.

    Signed-off-by: Michael Ellerman
    Signed-off-by: Benjamin Herrenschmidt

    Michael Ellerman
     
  • Currently, the exynos cpuidle driver works correctly only on exynos4210
    and 5250. Trying to use it with just one CPU online on any other exynos
    SoCs will lead to system failure, due to unsupported AFTR mode on other
    SoCs. This patch fixes the problem by registering the driver only on
    supported SoCs and letting others simply use default WFI mode until
    support for them is added.

    Signed-off-by: Tomasz Figa
    Signed-off-by: Kukjin Kim

    Tomasz Figa
     
  • Relying on static functions used just once to get inlined (and
    subsequently have dead code paths eliminated) is wrong: Compilers are
    free to decide whether they do this, regardless of optimization level.
    With this not happening for vdso_addr() (observed with gcc 4.1.x), an
    unresolved reference to align_vdso_addr() causes the build to fail.

    [ hpa: vdso_addr() is never actually used on x86-32, as calculate_addr
    in map_vdso() is always false. It ought to be possible to clean
    this up further, but this fixes the immediate problem. ]

    Signed-off-by: Jan Beulich
    Link: http://lkml.kernel.org/r/53B5863B02000078000204D5@mail.emea.novell.com
    Acked-by: Andy Lutomirski
    Tested-by: Boris Ostrovsky
    Tested-by: Andrew Morton
    Signed-off-by: H. Peter Anvin

    Jan Beulich
     
  • Adding the optional clock property for the mfc_pd for
    handling the re-parenting while pd on/off.

    Signed-off-by: Arun Kumar K
    Signed-off-by: Shaik Ameer Basha
    Reviewed-by: Tomasz Figa
    Signed-off-by: Kukjin Kim

    Arun Kumar K
     
  • While powering on/off a local powerdomain in exynos5 chipsets, the
    input clocks to each device gets modified. This behaviour is based
    on the SYSCLK_SYS_PWR_REG registers.
    E.g. SYSCLK_MFC_SYS_PWR_REG = 0x0, the parent of input clock to MFC
    (aclk333) gets modified to oscclk
    = 0x1, no change in clocks.
    The recommended value of SYSCLK_SYS_PWR_REG before power gating any
    domain is 0x0. So we must also restore the clocks while powering on
    a domain everytime.

    This patch adds the framework for getting the required mux and parent
    clocks through a power domain device node. With this patch, while
    powering off a domain, parent is set to oscclk and while powering back
    on, its re-set to the correct parent which is as per the recommended
    pd on/off sequence.

    Signed-off-by: Prathyush K
    Signed-off-by: Andrew Bresticker
    Signed-off-by: Arun Kumar K
    Signed-off-by: Shaik Ameer Basha
    Reviewed-by: Tomasz Figa
    Signed-off-by: Kukjin Kim

    Prathyush K
     
  • Certain ld versions (observed with 2.20.0) put an empty .rela.dyn
    section into shared object files, breaking the assumption on the number
    of sections to be copied to the final output. Simply discard any empty
    SHT_REL and SHT_RELA sections to address this.

    Signed-off-by: Jan Beulich
    Link: http://lkml.kernel.org/r/53B5861E02000078000204D1@mail.emea.novell.com
    Acked-by: Andy Lutomirski
    Tested-by: Boris Ostrovsky
    Tested-by: Andrew Morton
    Signed-off-by: H. Peter Anvin

    Jan Beulich
     
  • …l/git/tmlind/linux-omap into fixes

    Merge "omap fixes against v3.16-rc4" from Tony Lindgren:

    Fixes for omaps for the -rc series. It's mostly fixes for clock rates,
    restart handling and phy regulators and SATA interconnect data.

    Also few build fixes related to the DSP driver in staging, and trivial
    stuff like removal of broken and soon to be unused platform data init
    for HDMI audio that would be good to get into the -rc series if not
    too late.

    * tag 'omap-for-v3.16/fixes-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
    ARM: OMAP2+: Remove non working OMAP HDMI audio initialization
    ARM: dts: Fix TI CPSW Phy mode selection on IGEP COM AQUILA.
    ARM: dts: am335x-evmsk: Enable the McASP FIFO for audio
    ARM: dts: am335x-evm: Enable the McASP FIFO for audio
    ARM: OMAP2+: Make GPMC skip disabled devices
    ARM: OMAP2+: create dsp device only on OMAP3 SoCs
    ARM: dts: dra7-evm: Make VDDA_1V8_PHY supply always on
    ARM: DRA7/AM43XX: fix header definition for omap44xx_restart
    ARM: OMAP2+: clock/dpll: fix _dpll_test_fint arithmetics overflow
    ARM: DRA7: hwmod: Add SYSCONFIG for usb_otg_ss
    ARM: DRA7: hwmod: Fixup SATA hwmod
    ARM: OMAP3: PRM/CM: Add back macros used by TI DSP/Bridge driver
    ARM: dts: dra7xx-clocks: Fix the l3 and l4 clock rates

    Signed-off-by: Olof Johansson <olof@lixom.net>

    Olof Johansson
     
  • Pull crypto fixes from Herbert Xu:
    "This push fixes an error in sha512_ssse3 that leads to incorrect
    output as well as a memory leak in caam_jr when the module is
    unloaded"

    * git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
    crypto: caam - fix memleak in caam_jr module
    crypto: sha512_ssse3 - fix byte count to bit count conversion

    Linus Torvalds
     

10 Jul, 2014

1 commit

  • My enhancement to store the initial mapping size for later reuse in commit
    486df8bc4627bdfc032d11bedcd056cc5343ee62 ("m68k: Increase initial mapping
    to 8 or 16 MiB if possible") broke booting on machines where RAM doesn't
    start at address zero.

    Use pc-relative addressing to fix this.

    Reported-by: Andreas Schwab
    Signed-off-by: Geert Uytterhoeven
    Tested-by: Andreas Schwab

    Geert Uytterhoeven
     

09 Jul, 2014

2 commits

  • include/linux/sched.h implements TASK_SIZE_OF as TASK_SIZE if it
    is not set by the architecture headers. TASK_SIZE uses the
    current task to determine the size of the virtual address space.
    On a 64-bit kernel this will cause reading /proc/pid/pagemap of a
    64-bit process from a 32-bit process to return EOF when it reads
    past 0xffffffff.

    Implement TASK_SIZE_OF exactly the same as TASK_SIZE with
    test_tsk_thread_flag instead of test_thread_flag.

    Cc: stable@vger.kernel.org
    Signed-off-by: Colin Cross
    Acked-by: Will Deacon
    Signed-off-by: Catalin Marinas

    Colin Cross
     
  • The __cpu_clear_user_page() and __cpu_copy_user_page() functions
    are not currently exported. This prevents modules from using
    clear_user_page() and copy_user_page().

    Signed-off-by: Mark Salter
    Signed-off-by: Catalin Marinas

    Mark Salter
     

08 Jul, 2014

4 commits

  • This code is not working currently and it can be removed. There is a
    conflict in sharing resources with the actual HDMI driver and with
    the ASoC HDMI audio DAI driver.

    Signed-off-by: Jyri Sarha
    Signed-off-by: Tony Lindgren

    Jyri Sarha
     
  • …el/git/pjw/omap-pending into omap-for-v3.16/fixes

    Some miscellaneous fixes for OMAP clock code, DRA7xx device data, and
    PRCM code (when DSPBridge is used) for v3.16-rc.

    Basic build, boot, and PM test logs are available here:

    http://www.pwsan.com/omap/testlogs/prcm-a-v3.16-rc/20140706174258/

    Tony Lindgren
     
  • Let's say clock A and B are two gate clocks that share the same register
    bit in hardware. Therefore they are registered as shared gate clocks
    with imx_clk_gate2_shared().

    In a scenario that only clock A is enabled by clk_enable(A) while B is
    not used, the shared gate will be unexpectedly disabled in hardware.
    It happens because clk_enable(A) increments the share_count from 0 to 1,
    while clock B is unused to clock core, and therefore the core function
    will just disable B by calling clk->ops->disable() directly. The
    consequence of that call is share_count is decremented to 0 and the gate
    is disabled in hardware, even though clock A is still in use.

    The patch fixes the issue by initializing the share_count per hardware
    state and returns enable state per share_count from .is_enabled() hook,
    in case it's a shared gate.

    While at it, add a check in clk_gate2_disable() to ensure it's never
    called with a zero share_count.

    Reported-by: Fabio Estevam
    Fixes: f9f28cdf2167 ("ARM: imx: add shared gate clock support")
    Signed-off-by: Shawn Guo
    Tested-by: Fabio Estevam
    Signed-off-by: Olof Johansson

    Shawn Guo
     
  • …ne/linux-samsung into fixes

    Merge "Samsung fixes-2 for v3.16" from Kukjin Kim:

    - fix the check for SMP configuration with using CONFIG_SMP
    not just SMP
    - fix the number of pwm-cells for exynos4 pwm
    - fix ftrace for exynos_mct
    - register exynos_mct for stable udely
    - fix secondary boot addr for secure mode for exynos SoCs

    * tag 'samsung-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung:
    ARM: EXYNOS: Update secondary boot addr for secure mode
    clocksource: exynos_mct: Register the timer for stable udelay
    clocksource: exynos_mct: Fix ftrace
    ARM: dts: fix pwm-cells in pwm node for exynos4
    ARM: EXYNOS: Fix the check for non-smp configuration

    Signed-off-by: Olof Johansson <olof@lixom.net>

    Olof Johansson