12 Jul, 2013

1 commit


01 Jul, 2013

2 commits

  • Use kmemdup instead of kmalloc + memcpy.

    Signed-off-by: Thomas Meyer
    Signed-off-by: Ohad Ben-Cohen

    Thomas Meyer
     
  • It is not preferable to have the allocated pages for carveout
    memories freed before they are unmapped. The code that deals
    with the cleanup of carveout memories is therefore moved after
    the corresponding mapping entries were cleaned up.

    This is mostly a no-op since the remote processors are already
    stopped when the cleanup function is called, but this will make
    the cleanup code follow the exact reverse path of allocation.

    Signed-off-by: Suman Anna
    Signed-off-by: Ohad Ben-Cohen

    Suman Anna
     

30 Jun, 2013

2 commits


12 Jun, 2013

1 commit

  • 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.

    The OMAP mailbox framework/driver code is moved to be under
    drivers/mailbox, in preparation for adapting to a common mailbox
    driver framework. This allows the build for OMAP mailbox to be
    enabled (it was disabled during the multi-platform support).

    As part of the migration from plat and mach code:
    - Kconfig symbols have been renamed to build OMAP1 or OMAP2+ drivers.
    - mailbox.h under plat-omap/plat/include has been split into a public
    and private header files. The public header has only the API related
    functions and types.
    - The module name mailbox.ko from plat-omap is changed to
    omap-mailbox.ko
    - The module name mailbox_mach.ko from mach-omapX is changed as
    mailbox_omap1.ko for OMAP1
    mailbox_omap2.ko for OMAP2+

    Cc: Tony Lindgren
    [gregkh@linuxfoundation.org: ack for staging part]
    Acked-by: Greg Kroah-Hartman
    Signed-off-by: Omar Ramirez Luna
    Signed-off-by: Suman Anna

    Suman Anna
     

08 May, 2013

1 commit

  • Pull remoteproc update from Ohad Ben-Cohen:

    - Some refactoring, cleanups and small improvements from Sjur
    Brændeland. The improvements are mainly about better supporting
    varios virtio properties (such as virtio's config space, status and
    features). I now see that I messed up while commiting one of Sjur's
    patches and erroneously put myself as the author, as well as letting
    a nasty typo sneak in. I will not fix this in order to avoid
    rebasing the patches. Sjur - sorry!

    - A new remoteproc driver for OMAP-L13x (technically a DaVinci
    platform) from Robert Tivy.

    - Extend OMAP support to OMAP5 as well, from Vincent Stehlé.

    - Fix Kconfig VIRTUALIZATION dependency, from Suman Anna (a
    non-critical fix which arrived late during the rc cycle).

    * tag 'remoteproc-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/ohad/remoteproc:
    remoteproc: fix kconfig dependencies for VIRTIO
    remoteproc/davinci: add a remoteproc driver for OMAP-L13x DSP
    remoteproc: support default firmware name in rproc_alloc()
    remoteproc/omap: support OMAP5 too
    remoteproc: set vring addresses in resource table
    remoteproc: support virtio config space.
    remoteproc: perserve resource table data
    remoteproc: calculate max_notifyid by counting vrings
    remoteproc: code cleanup of resource parsing
    remoteproc: parse STE-firmware and find resource table address
    remoteproc: add find_loaded_rsc_table firmware ops
    remoteproc: refactor rproc_elf_find_rsc_table()

    Linus Torvalds
     

01 May, 2013

1 commit

  • Pull trivial tree updates from Jiri Kosina:
    "Usual stuff, mostly comment fixes, typo fixes, printk fixes and small
    code cleanups"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (45 commits)
    mm: Convert print_symbol to %pSR
    gfs2: Convert print_symbol to %pSR
    m32r: Convert print_symbol to %pSR
    iostats.txt: add easy-to-find description for field 6
    x86 cmpxchg.h: fix wrong comment
    treewide: Fix typo in printk and comments
    doc: devicetree: Fix various typos
    docbook: fix 8250 naming in device-drivers
    pata_pdc2027x: Fix compiler warning
    treewide: Fix typo in printks
    mei: Fix comments in drivers/misc/mei
    treewide: Fix typos in kernel messages
    pm44xx: Fix comment for "CONFIG_CPU_IDLE"
    doc: Fix typo "CONFIG_CGROUP_CGROUP_MEMCG_SWAP"
    mmzone: correct "pags" to "pages" in comment.
    kernel-parameters: remove outdated 'noresidual' parameter
    Remove spurious _H suffixes from ifdef comments
    sound: Remove stray pluses from Kconfig file
    radio-shark: Fix printk "CONFIG_LED_CLASS"
    doc: put proper reference to CONFIG_MODULE_SIG_ENFORCE
    ...

    Linus Torvalds
     

24 Apr, 2013

1 commit


21 Apr, 2013

1 commit


15 Apr, 2013

1 commit


07 Apr, 2013

7 commits


05 Apr, 2013

7 commits


28 Feb, 2013

2 commits


27 Feb, 2013

1 commit

  • Pull virtio updates from Rusty Russell:
    "All trivial, thanks to the stuff which didn't quite make it time"

    * tag 'virtio-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux:
    virtio_console: Initialize guest_connected=true for rproc_serial
    virtio: use module_virtio_driver.
    virtio: Add module driver macro for virtio drivers.
    virtio_console: Use virtio device index to generate port name
    virtio: make pci_device_id const
    virtio: make config_ops const
    virtio-mmio: fix wrong comment about register offset
    virtio_console: Let unconnected rproc device receive data.

    Linus Torvalds
     

22 Feb, 2013

1 commit

  • Pull ARM SoC multiplatform support from Arnd Bergmann:
    "Converting more ARM platforms to multiplatform support. This time,
    OMAP gets converted, which is a major step since this is by far the
    largest platform in terms of code size. The same thing happens to the
    vt8500 platform."

    * tag 'multiplatform' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
    net: cwdavinci_cpdma: export symbols for cpsw
    remoteproc: omap: depend on OMAP_MBOX_FWK
    [media] davinci: do not include mach/hardware.h
    ARM: OMAP2+: Make sure files with omap initcalls include soc.h
    ARM: OMAP2+: Include soc.h to drm.c to fix compiling
    ARM: OMAP2+: Fix warning for hwspinlock omap_postcore_initcall
    ARM: multi_v7_defconfig: add ARCH_ZYNQ
    ARM: multi_v7_defconfig: remove unnecessary CONFIG_GPIOLIB
    arm: vt8500: Remove remaining mach includes
    arm: vt8500: Convert debug-macro.S to be multiplatform friendly
    arm: vt8500: Remove single platform Kconfig options
    ARM: OMAP2+: Remove now obsolete uncompress.h and debug-macro.S
    ARM: OMAP2+: Add minimal support for booting vexpress
    ARM: OMAP2+: Enable ARCH_MULTIPLATFORM support
    ARM: OMAP2+: Disable code that currently does not work with multiplaform
    ARM: OMAP2+: Add multiplatform debug_ll support
    ARM: OMAP: Fix dmaengine init for multiplatform
    ARM: OMAP: Fix i2c cmdline initcall for multiplatform
    ARM: OMAP2+: Use omap initcalls
    ARM: OMAP2+: Limit omap initcalls to omap only on multiplatform kernels

    Linus Torvalds
     

15 Feb, 2013

1 commit

  • Patch a62a6e98 "ARM: OMAP2+: Disable code that currently does not work
    with multiplaform" makes the OMAP_MBOX_FWK option depend on !MULTIPLATFORM,
    which means we cannot simply select that symbol from OMAP_REMOTEPROC.

    Turning the 'select' into 'depends on' ensures that all dependencies
    are correct until OMAP_MBOX_FWK loses its dependency.

    Without this patch, building allmodconfig results in:

    drivers/remoteproc/omap_remoteproc.c:31:26: fatal error: plat/mailbox.h: No such file or directory

    Signed-off-by: Arnd Bergmann
    Acked-by: Tony Lindgren
    Acked-by: Ohad Ben-Cohen

    Arnd Bergmann
     

11 Feb, 2013

1 commit


22 Jan, 2013

1 commit


04 Jan, 2013

1 commit

  • CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
    markings need to be removed.

    This change removes the use of __devinit, __devexit_p, __devinitdata,
    __devinitconst, and __devexit from these drivers.

    Based on patches originally written by Bill Pemberton, but redone by me
    in order to handle some of the coding style issues better, by hand.

    Cc: Bill Pemberton
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

14 Dec, 2012

1 commit

  • Pull trivial branch from Jiri Kosina:
    "Usual stuff -- comment/printk typo fixes, documentation updates, dead
    code elimination."

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (39 commits)
    HOWTO: fix double words typo
    x86 mtrr: fix comment typo in mtrr_bp_init
    propagate name change to comments in kernel source
    doc: Update the name of profiling based on sysfs
    treewide: Fix typos in various drivers
    treewide: Fix typos in various Kconfig
    wireless: mwifiex: Fix typo in wireless/mwifiex driver
    messages: i2o: Fix typo in messages/i2o
    scripts/kernel-doc: check that non-void fcts describe their return value
    Kernel-doc: Convention: Use a "Return" section to describe return values
    radeon: Fix typo and copy/paste error in comments
    doc: Remove unnecessary declarations from Documentation/accounting/getdelays.c
    various: Fix spelling of "asynchronous" in comments.
    Fix misspellings of "whether" in comments.
    eisa: Fix spelling of "asynchronous".
    various: Fix spelling of "registered" in comments.
    doc: fix quite a few typos within Documentation
    target: iscsi: fix comment typos in target/iscsi drivers
    treewide: fix typo of "suport" in various comments and Kconfig
    treewide: fix typo of "suppport" in various comments
    ...

    Linus Torvalds
     

03 Dec, 2012

1 commit


29 Nov, 2012

1 commit


07 Oct, 2012

1 commit

  • Pull virtio changes from Rusty Russell:
    "New workflow: same git trees pulled by linux-next get sent straight to
    Linus. Git is awkward at shuffling patches compared with quilt or mq,
    but that doesn't happen often once things get into my -next branch."

    * 'virtio-next' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux: (24 commits)
    lguest: fix occasional crash in example launcher.
    virtio-blk: Disable callback in virtblk_done()
    virtio_mmio: Don't attempt to create empty virtqueues
    virtio_mmio: fix off by one error allocating queue
    drivers/virtio/virtio_pci.c: fix error return code
    virtio: don't crash when device is buggy
    virtio: remove CONFIG_VIRTIO_RING
    virtio: add help to CONFIG_VIRTIO option.
    virtio: support reserved vqs
    virtio: introduce an API to set affinity for a virtqueue
    virtio-ring: move queue_index to vring_virtqueue
    virtio_balloon: not EXPERIMENTAL any more.
    virtio-balloon: dependency fix
    virtio-blk: fix NULL checking in virtblk_alloc_req()
    virtio-blk: Add REQ_FLUSH and REQ_FUA support to bio path
    virtio-blk: Add bio-based IO path for virtio-blk
    virtio: console: fix error handling in init() function
    tools: Fix pthread flag for Makefile of trace-agent used by virtio-trace
    tools: Add guest trace agent as a user tool
    virtio/console: Allocate scatterlist according to the current pipe size
    ...

    Linus Torvalds
     

05 Oct, 2012

1 commit

  • Pull remoteproc update from Ohad Ben-Cohen:

    - Remoteproc Recovery - by Fernando Guzman Lugo

    When a remote processor crash is detected, this mechanism will remove
    all virtio children devices, wait until their drivers let go, hard
    reset the remote processor and reload the firmware (resulting in the
    relevant virtio children devices re-added). Essentially the entire
    software stack is reset, together with the relevant hardware, so
    users don't have to reset the entire phone.

    - STE Modem driver is added - by Sjur Brændeland

    - OMAP DSP boot address support is added - by Juan Gutierrez

    - A handful of fixes/cleanups - Sjur Brændeland, Dan Carpenter, Emil
    Goode

    * tag 'remoteproc-for-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/ohad/remoteproc:
    remoteproc: Fix use of format specifyer
    remoteproc: fix a potential NULL-dereference on cleanup
    remoteproc: select VIRTIO to avoid build breakage
    remoteproc: return -EFAULT on copy_from_user failure
    remoteproc: snprintf() can return more than was printed
    remoteproc: Add STE modem driver
    remtoteproc: maintain max notifyid
    remoteproc: create a 'recovery' debugfs entry
    remoteproc: add actual recovery implementation
    remoteproc: add rproc_report_crash function to notify rproc crashes
    remoteproc: Add dependency to HAS_DMA
    remoteproc/omap: set bootaddr support

    Linus Torvalds
     

02 Oct, 2012

2 commits

  • The dma_addr_t type can be either u32 or u64 depending on
    the configuration. We should use a format specifyer for the
    larger type and explicitly cast to it.

    Sparse warnings:
    drivers/remoteproc/remoteproc_core.c:234:2: warning:
    format ‘%x’ expects argument of type ‘unsigned int’,
    but argument 6 has type ‘dma_addr_t’ [-Wformat]

    drivers/remoteproc/remoteproc_core.c:596:2: warning:
    format ‘%x’ expects argument of type ‘unsigned int’,
    but argument 5 has type ‘dma_addr_t’ [-Wformat]

    drivers/remoteproc/remoteproc_core.c:634:3:
    warning: format ‘%x’ expects argument of type ‘unsigned int’,
    but argument 5 has type ‘dma_addr_t’ [-Wformat]

    Signed-off-by: Emil Goode
    [fix commit log typos]
    Signed-off-by: Ohad Ben-Cohen

    Emil Goode
     
  • We only need to allocate mapping if there is an IOMMU domain.

    Otherwise, when the mappings are released, the assumption that
    an IOMMU domain is there will crash and burn.

    CC: stable@vger.kernel.org
    Signed-off-by: Dan Carpenter
    [ohad: revise commit log]
    Signed-off-by: Ohad Ben-Cohen

    Dan Carpenter