Permalink
Commits on Jan 31, 2013
  1. mailbox: create dbx500 mailbox driver

    Add STEriccson DBX500 PRCM mailbox support.
    
    Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    ydrallap committed with Jan 31, 2013
  2. mailbox: add no_irq send message

    For debug purpose, mailbox must be available when
    interrupts are disabled to collect dump information.
    
    Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    ydrallap committed with Jan 31, 2013
  3. mailbox: add IRQF_NO_SUSPEND flag

    Coprocessor must be accessible during suspend transitions.
    
    Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    ydrallap committed with Jan 31, 2013
  4. mailbox: add shared memory mailbox type

    Some mailboxes are made up of cross interrupts
    and associated shared memory.
    Shared memory mapping is fixed and cross interrupt/shared
    memory relation make impossible the use of virtio.
    Mailbox framework must be enough opened to support
    any kind of mailbox.
    
    Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    ydrallap committed with Jan 31, 2013
  5. mailbox: change protection mechanisms

    TX: replace spin by mutex to release CPU
    during wait on mailbox resource.
    
    Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    ydrallap committed with Jan 31, 2013
  6. mailbox: change OMAP1&2 opened message adaptation

    This patch change internal OMAP1&2 mailbox drivers
    behavior to use pdata field of mailbox_msg structure
    instead of header one which could be confusing.
    
    Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    ydrallap committed with Jan 31, 2013
  7. mailbox: create opened message type

    Current message type is a u32 to fit HW fifo format.
    This should be extended to support any message exchanges
    and type of mailbox.
    
    Proposed structure owns the original u32 and an optional
    pointer on additional data.
    
    Adaptations made to remoteproc and tidspbridge drivers.
    
    Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
    Signed-off-by: Omar Ramirez Luna <omar.ramirez@copitl.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    ydrallap committed with Jan 31, 2013
  8. mailbox: rename omap_mbox in mailbox

    In order to create a generic mailbox framework, functions
    and structures should be renamed in mailbox.
    
    Taking care of remoteproc and tidspbridge while at it.
    
    Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
    Signed-off-by: Omar Ramirez Luna <omar.ramirez@copitl.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    ydrallap committed with Jan 31, 2013
  9. mailbox: split internal header from API header

    Now internal structures can remain hidden to the user and just API
    related functions and defines are made available.
    
    Signed-off-by: Omar Ramirez Luna <omar.luna@linaro.org>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Omar Ramirez Luna committed with Jan 31, 2013
  10. mailbox: OMAP: introduce mailbox framework

    Actually moving it from plat-omap, as this framework/driver code is
    supposed to be under drivers/ folder. The framework should work with
    the current supported OMAP processors (OMAP1+) that have mailbox and
    can be used as a method of interprocessor communication.
    
    The mailbox hardware (in OMAP) uses a queued mailbox-interrupt mechanism
    that provides a communication channel between processors through a set of
    registers and their associated interrupt signals by sending and receiving
    messages.
    
    As part of the migration from plat and mach code:
    - Kconfig symbols have been renamed to build OMAP1 or OMAP2+ drivers.
    - mailbox.h has been changed from plat to a dedicated drivers/ folder.
    - soc.h has been changed for plat/cpu.h, since there are dependencies in
      the cpu_is_XXXX() macro.
    
    Module names have changed too, instead of mailbox_mach:
    - OMAP1: mailbox-omap1.ko
    - OMAP2+: mailbox-omap2.ko
    
    Signed-off-by: Omar Ramirez Luna <omar.luna@linaro.org>
    Acked-by: Tony Lindgren <tony@atomide.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Omar Ramirez Luna committed with Jan 31, 2013
  11. ARM: OMAP2+: mbox: remove dependencies with soc.h

    The OMAP mailbox platform driver code has been cleaned up to
    remove the dependencies with soc.h in preparation for moving
    the mailbox code to drivers folder.
    
    The code relied on cpu_is_xxx/soc_is_xxx macros previously to
    pick the the right set of mailbox devices and register with the
    mailbox driver. This data is now represented in a concise format
    and moved to the respective omap_hwmod data files and published
    to the driver through the platform data.
    
    Signed-off-by: Suman Anna <s-anna@ti.com>
    committed Jan 28, 2013
Commits on Jan 25, 2013
  1. Linux 3.8-rc5

    torvalds committed Jan 25, 2013
  2. Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/mason/linux-btrfs
    
    Pull btrfs fixes from Chris Mason:
     "It turns out that we had two crc bugs when running fsx-linux in a
      loop.  Many thanks to Josef, Miao Xie, and Dave Sterba for nailing it
      all down.  Miao also has a new OOM fix in this v2 pull as well.
    
      Ilya fixed a regression Liu Bo found in the balance ioctls for pausing
      and resuming a running balance across drives.
    
      Josef's orphan truncate patch fixes an obscure corruption we'd see
      during xfstests.
    
      Arne's patches address problems with subvolume quotas.  If the user
      destroys quota groups incorrectly the FS will refuse to mount.
    
      The rest are smaller fixes and plugs for memory leaks."
    
    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs: (30 commits)
      Btrfs: fix repeated delalloc work allocation
      Btrfs: fix wrong max device number for single profile
      Btrfs: fix missed transaction->aborted check
      Btrfs: Add ACCESS_ONCE() to transaction->abort accesses
      Btrfs: put csums on the right ordered extent
      Btrfs: use right range to find checksum for compressed extents
      Btrfs: fix panic when recovering tree log
      Btrfs: do not allow logged extents to be merged or removed
      Btrfs: fix a regression in balance usage filter
      Btrfs: prevent qgroup destroy when there are still relations
      Btrfs: ignore orphan qgroup relations
      Btrfs: reorder locks and sanity checks in btrfs_ioctl_defrag
      Btrfs: fix unlock order in btrfs_ioctl_rm_dev
      Btrfs: fix unlock order in btrfs_ioctl_resize
      Btrfs: fix "mutually exclusive op is running" error code
      Btrfs: bring back balance pause/resume logic
      btrfs: update timestamps on truncate()
      btrfs: fix btrfs_cont_expand() freeing IS_ERR em
      Btrfs: fix a bug when llseek for delalloc bytes behind prealloc extents
      Btrfs: fix off-by-one in lseek
      ...
    torvalds committed Jan 25, 2013
  3. Merge branch 'for-next' of git://git.samba.org/sfrench/cifs-2.6

    Pull cifs fixes from Steve French:
     "Two small cifs fixes"
    
    * 'for-next' of git://git.samba.org/sfrench/cifs-2.6:
      fs/cifs/cifs_dfs_ref.c: fix potential memory leakage
      cifs: fix srcip_matches() for ipv6
    torvalds committed Jan 25, 2013
  4. Merge git://git.kernel.org/pub/scm/virt/kvm/kvm

    Pull kvm fixlet from Marcelo Tosatti.
    
    * git://git.kernel.org/pub/scm/virt/kvm/kvm:
      KVM: PPC: Emulate dcbf
    torvalds committed Jan 25, 2013
Commits on Jan 24, 2013
  1. Merge branch 'fixes' of git://git.linaro.org/people/rmk/linux-arm

    Pull ARM fixes from Russell King:
     "A number of fixes:
    
      Patrik found a problem with preempt counting in the VFP assembly
      functions which can cause the preempt count to be upset.
    
      Nicolas fixed a problem with the parsing of the DT when it straddles a
      1MB boundary.
    
      Subhash Jadavani reported a problem with sparsemem and our highmem
      support for cache maintanence for DMA areas, and TI found a bug in
      their strongly ordered memory mapping type.
    
      Also, three fixes by way of Will Deacon's tree from Dave Martin for
      instruction compatibility and Marc Zyngier to fix hypervisor boot mode
      issues."
    
    * 'fixes' of git://git.linaro.org/people/rmk/linux-arm:
      ARM: 7629/1: mm: Fix missing XN flag for for MT_MEMORY_SO
      ARM: DMA: Fix struct page iterator in dma_cache_maint() to work with sparsemem
      ARM: 7628/1: head.S: map one extra section for the ATAG/DTB area
      ARM: 7627/1: Predicate preempt logic on PREEMP_COUNT not PREEMPT alone
      ARM: virt: simplify __hyp_stub_install epilog
      ARM: virt: boot secondary CPUs through the right entry point
      ARM: virt: Avoid bx instruction for compatibility with <=ARMv4
    torvalds committed Jan 24, 2013
  2. Merge tag 'fixes-for-linus2' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/arm/arm-soc
    
    Pull ARM SoC fixes from Olof Johansson:
     "Here's a long-pending fixes pull request for arm-soc (I didn't send
      one in the -rc4 cycle).
    
      The larger deltas are from:
    
       - A fixup of error paths in the mvsdio driver
    
       - Header file move for a driver that hadn't been properly converted
         to multiplatform on i.MX, which was causing build failures when
         included
    
       - Device tree updates for at91 dealing mostly with their new pinctrl
         setup merged in 3.8 and mistakes in those initial configs
    
      The rest are the normal mix of small fixes all over the place; sunxi,
      omap, imx, mvebu, etc, etc."
    
    * tag 'fixes-for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (40 commits)
      mfd: vexpress-sysreg: Don't skip initialization on probe
      ARM: vexpress: Enable A7 cores in V2P-CA15_A7's Device Tree
      ARM: vexpress: extend the MPIDR range used for pen release check
      ARM: at91/dts: correct comment in at91sam9x5.dtsi for mii
      ARM: at91/at91_dt_defconfig: add at91sam9n12 SoC to DT defconfig
      ARM: at91/at91_dt_defconfig: remove memory specification to cmdline
      ARM: at91/dts: add macb mii pinctrl config for kizbox
      ARM: at91: rm9200: remake the BGA as default version
      ARM: at91: fix gpios on i2c-gpio for RM9200 DT
      ARM: at91/at91sam9x5 DTS: add SCK USART pins
      ARM: at91/at91sam9x5 DTS: correct wrong PIO BANK values on u(s)arts
      ARM: at91/at91-pinctrl documentation: fix typo and add some details
      ARM: kirkwood: fix missing #interrupt-cells property
      mmc: mvsdio: use devm_ API to simplify/correct error paths.
      clk: mvebu/clk-cpu.c: fix memory leakage
      ARM: OMAP2+: omap4-panda: add UART2 muxing for WiLink shared transport
      ARM: OMAP2+: DT node Timer iteration fix
      ARM: OMAP2+: Fix section warning for omap_init_ocp2scp()
      ARM: OMAP2+: fix build break for omapdrm
      ARM: OMAP2: Fix missing omap2xxx_clkt_vps_late_init function calls
      ...
    torvalds committed Jan 24, 2013
  3. Merge tag 'pm+acpi-for-3.8-rc5' of git://git.kernel.org/pub/scm/linux…

    …/kernel/git/rafael/linux-pm
    
    Pull ACPI and power management fixes from Rafael Wysocki:
    
     - Two cpuidle initialization fixes from Konrad Rzeszutek Wilk.
    
     - cpufreq regression fixes for AMD processors from Borislav Petkov,
       Stefan Bader, and Matthew Garrett.
    
     - ACPI cpufreq fix from Thomas Schlichter.
    
     - cpufreq and devfreq fixes related to incorrect usage of operating
       performance points (OPP) framework and RCU from Nishanth Menon.
    
     - APEI workaround for incorrect BIOS information from Lans Zhang.
    
    * tag 'pm+acpi-for-3.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
      cpufreq: Add module aliases for acpi-cpufreq
      ACPI: Check MSR valid bit before using P-state frequencies
      PM / devfreq: exynos4_bus: honor RCU lock usage
      PM / devfreq: add locking documentation for recommended_opp
      cpufreq: cpufreq-cpu0: use RCU locks around usage of OPP
      cpufreq: OMAP: use RCU locks around usage of OPP
      ACPI, APEI: Fixup incorrect 64-bit access width firmware bug
      ACPI / processor: Get power info before updating the C-states
      powernow-k8: Add a kconfig dependency on acpi-cpufreq
      ACPI / cpuidle: Fix NULL pointer issues when cpuidle is disabled
      intel_idle: Don't register CPU notifier if we are not running.
    torvalds committed Jan 24, 2013
  4. Merge tag 'regmap-fix-3.8-rc4' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/broonie/regmap
    
    Pull regmap fixes from Mark Brown:
     "One more oversight in the debugfs code was reported and fixed, plus a
      documentation fix."
    
    * tag 'regmap-fix-3.8-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
      regmap: fix small typo in regmap_bulk_write comment
      regmap: debugfs: Fix seeking from the cache
    torvalds committed Jan 24, 2013
  5. Merge branch 'fixes' of git://git.infradead.org/users/vkoul/slave-dma

    Pull slave-dmaengine fixes from Vinod Koul:
     "A few fixes on slave dmanengine.  There are trivial fixes in imx-dma,
      tegra-dma & ioat driver"
    
    * 'fixes' of git://git.infradead.org/users/vkoul/slave-dma:
      dma: tegra: implement flags parameters for cyclic transfer
      dmaengine: imx-dma: Disable use of hw_chain to fix sg_dma transfers.
      ioat: Fix DMA memory sync direction correct flag
    torvalds committed Jan 24, 2013
  6. Merge branch 'i2c-embedded/for-current' of git://git.pengutronix.de/g…

    …it/wsa/linux
    
    Pill i2c fixes from Wolfram Sang:
     "Here are a few, typical driver fixes for the I2C subsystem"
    
    * 'i2c-embedded/for-current' of git://git.pengutronix.de/git/wsa/linux:
      i2c-designware: add missing MODULE_LICENSE
      i2c: omap: fix draining irq handling
      i2c: omap: errata i462: fix incorrect ack for arbitration lost interrupt
      i2c: muxes: fix wrong use of sizeof(ptr)
      i2c: sirf: register i2c_client from dt child-nodes in probe entry
      i2c: mxs: Fix type of error code
      i2c: mxs: Fix misuse init_completion
    torvalds committed Jan 24, 2013
  7. Btrfs: fix repeated delalloc work allocation

    btrfs_start_delalloc_inodes() locks the delalloc_inodes list, fetches the
    first inode, unlocks the list, triggers btrfs_alloc_delalloc_work/
    btrfs_queue_worker for this inode, and then it locks the list, checks the
    head of the list again. But because we don't delete the first inode that it
    deals with before, it will fetch the same inode. As a result, this function
    allocates a huge amount of btrfs_delalloc_work structures, and OOM happens.
    
    Fix this problem by splice this delalloc list.
    
    Reported-by: Alex Lyakas <alex.btrfs@zadarastorage.com>
    Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
    Signed-off-by: Josef Bacik <jbacik@fusionio.com>
    Miao Xie committed with Josef Bacik Jan 22, 2013
  8. Btrfs: fix wrong max device number for single profile

    The max device number of single profile is 1, not 0 (0 means 'as many as
    possible'). Fix it.
    
    Cc: Liu Bo <bo.li.liu@oracle.com>
    Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
    Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
    Signed-off-by: Josef Bacik <jbacik@fusionio.com>
    Miao Xie committed with Josef Bacik Jan 16, 2013
  9. Btrfs: fix missed transaction->aborted check

    First, though the current transaction->aborted check can stop the commit early
    and avoid unnecessary operations, it is too early, and some transaction handles
    don't end, those handles may set transaction->aborted after the check.
    
    Second, when we commit the transaction, we will wake up some worker threads to
    flush the space cache and inode cache. Those threads also allocate some transaction
    handles and may set transaction->aborted if some serious error happens.
    
    So we need more check for ->aborted when committing the transaction. Fix it.
    
    Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
    Signed-off-by: Josef Bacik <jbacik@fusionio.com>
    Miao Xie committed with Josef Bacik Jan 15, 2013
  10. Btrfs: Add ACCESS_ONCE() to transaction->abort accesses

    We may access and update transaction->aborted on the different CPUs without
    lock, so we need ACCESS_ONCE() wrapper to prevent the compiler from creating
    unsolicited accesses and make sure we can get the right value.
    
    Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
    Signed-off-by: Josef Bacik <jbacik@fusionio.com>
    Miao Xie committed with Josef Bacik Jan 15, 2013
  11. Btrfs: put csums on the right ordered extent

    I noticed a WARN_ON going off when adding csums because we were going over
    the amount of csum bytes that should have been allowed for an ordered
    extent.  This is a leftover from when we used to hold the csums privately
    for direct io, but now we use the normal ordered sum stuff so we need to
    make sure and check if we've moved on to another extent so that the csums
    are added to the right extent.  Without this we could end up with csums for
    bytenrs that don't have extents to cover them yet.  Thanks,
    
    Signed-off-by: Josef Bacik <jbacik@fusionio.com>
    Josef Bacik committed Jan 22, 2013
  12. Btrfs: use right range to find checksum for compressed extents

    For compressed extents, the range of checksum is covered by disk length,
    and the disk length is different with ram length, so we need to use disk
    length instead to get us the right checksum.
    
    Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
    Signed-off-by: Josef Bacik <jbacik@fusionio.com>
    Liu Bo committed with Josef Bacik Jan 6, 2013
  13. Btrfs: fix panic when recovering tree log

    A user reported a BUG_ON(ret) that occured during tree log replay.  Ret was
    -EAGAIN, so what I think happened is that we removed an extent that covered
    a bitmap entry and an extent entry.  We remove the part from the bitmap and
    return -EAGAIN and then search for the next piece we want to remove, which
    happens to be an entire extent entry, so we just free the sucker and return.
    The problem is ret is still set to -EAGAIN so we trip the BUG_ON().  The
    user used btrfs-zero-log so I'm not 100% sure this is what happened so I've
    added a WARN_ON() to catch the other possibility.  Thanks,
    
    Reported-by: Jan Steffens <jan.steffens@gmail.com>
    Signed-off-by: Josef Bacik <jbacik@fusionio.com>
    Josef Bacik committed Dec 18, 2012
  14. Btrfs: do not allow logged extents to be merged or removed

    We drop the extent map tree lock while we're logging extents, so somebody
    could come in and merge another extent into this one and screw up our
    logging, or they could even remove us from the list which would keep us from
    logging the extent or freeing our ref on it, so we need to make sure to not
    clear LOGGING until after the extent is logged, and then we can merge it to
    adjacent extents.  Thanks,
    
    Signed-off-by: Josef Bacik <jbacik@fusionio.com>
    Josef Bacik committed Jan 24, 2013
  15. Merge branch 'vexpress/fixes' of git://git.linaro.org/people/pawelmol…

    …l/linux into fixes
    
    From Pawel Moll:
    - makes the V2P-CA15_A7 (a.k.a. TC2) work with 3.8 kernels
    - improves vexpress-sysreg.c behaviour on arm64 platforms
    
    * 'vexpress/fixes' of git://git.linaro.org/people/pawelmoll/linux:
      mfd: vexpress-sysreg: Don't skip initialization on probe
      ARM: vexpress: Enable A7 cores in V2P-CA15_A7's Device Tree
      ARM: vexpress: extend the MPIDR range used for pen release check
    olofj committed Jan 24, 2013
  16. Merge tag 'at91-fixes' of git://github.com/at91linux/linux-at91 into …

    …fixes
    
    From Nicolas Ferre:
    Here are fixes for AT91 that are mainly related to device tree.
    One RM9200 setup option is the only C code change.
    Some documentation changes can clarify the pinctrl use.
    Then, some defconfig modifications are allowing the affected platforms
    to boot.
    
    * tag 'at91-fixes' of git://github.com/at91linux/linux-at91:
      ARM: at91/dts: correct comment in at91sam9x5.dtsi for mii
      ARM: at91/at91_dt_defconfig: add at91sam9n12 SoC to DT defconfig
      ARM: at91/at91_dt_defconfig: remove memory specification to cmdline
      ARM: at91/dts: add macb mii pinctrl config for kizbox
      ARM: at91: rm9200: remake the BGA as default version
      ARM: at91: fix gpios on i2c-gpio for RM9200 DT
      ARM: at91/at91sam9x5 DTS: add SCK USART pins
      ARM: at91/at91sam9x5 DTS: correct wrong PIO BANK values on u(s)arts
      ARM: at91/at91-pinctrl documentation: fix typo and add some details
    olofj committed Jan 24, 2013
  17. mfd: vexpress-sysreg: Don't skip initialization on probe

    The vexpress-sysreg driver does not have to be initialized
    early, when the platform doesn't require this. Unfortunately
    in such case it wasn't initialized correctly - master site
    lookup and config bridge registration were missing. Fixed now.
    
    Signed-off-by: Pawel Moll <pawel.moll@arm.com>
    pawelmoll committed Nov 27, 2012
  18. ARM: vexpress: Enable A7 cores in V2P-CA15_A7's Device Tree

    As the kernel is able to cope with multiple clusters,
    uncomment the A7 cores in the Device Tree for V2P-CA15_A7
    tile, making all 5 cores available to the user.
    
    Signed-off-by: Pawel Moll <pawel.moll@arm.com>
    pawelmoll committed Jan 24, 2013
  19. ARM: vexpress: extend the MPIDR range used for pen release check

    In ARM multi-cluster systems the MPIDR affinity level 0 cannot be used as a
    single cpu identifier, affinity levels 1 and 2 must be taken into account as
    well.
    This patch extends the MPIDR usage to affinity levels 1 and 2 in versatile
    secondary cores start up code in order to compare the passed pen_release
    value with the full-blown affinity mask.
    
    Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
    Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
    Acked-by: Nicolas Pitre <nico@linaro.org>
    Signed-off-by: Pawel Moll <pawel.moll@arm.com>
    Lorenzo Pieralisi committed with pawelmoll Jan 22, 2013