12 Sep, 2016

1 commit

  • The ARM allmodconfig build broke with the addition of the SMD rpmsg
    driver that conflicts with the driver its replaces:

    WARNING: drivers/soc/qcom/smd: 'qcom_smd_register_edge' exported twice. Previous export was in drivers/rpmsg/qcom_smd.ko
    WARNING: drivers/soc/qcom/smd: 'qcom_smd_unregister_edge' exported twice. Previous export was in drivers/rpmsg/qcom_smd.ko

    There is already a dependency that is meant to avoid the broken
    configuration, but that only prevents the case where at least
    one of the two are built-in, but not if both are modules.

    This changes the dependency to "=n", to ensure that the new driver
    can only be enabled if the other one is completely disabled.

    Signed-off-by: Arnd Bergmann
    Fixes: 53e2822e56c7 ("rpmsg: Introduce Qualcomm SMD backend")
    Signed-off-by: Bjorn Andersson

    Arnd Bergmann
     

09 Sep, 2016

17 commits


13 Aug, 2016

5 commits

  • There are couple of print_hex_dump traces used in rpmsg code which
    prints the actual byte messages being transferred between host and
    the remote processors. These traces are quiet verbose and affects
    performance, if the appropriate trace level is enabled. These hex
    dumps are needed rather rarely, but are quite useful when debugging
    complex IPC corner cases. So, this patch switches these hex dump
    traces to use the dynamic_hex_dump() API.

    The hex dump traces are also enabled only when CONFIG_DYNAMIC_DEBUG
    is enabled. This switch allows flexibility of controlling these
    traces through dynamic debug, instead of removing them completely.

    Signed-off-by: Suman Anna
    Signed-off-by: Bjorn Andersson

    Anna, Suman
     
  • This patch fixes most of the existing alignment checkpatch check
    warnings of the type "Alignment should match open parenthesis"
    in the virtio rpmsg bus code. A couple of them have been left as
    is to not exceed the 80-char limit.

    Signed-off-by: Suman Anna
    Signed-off-by: Bjorn Andersson

    Anna, Suman
     
  • The dma_addr_t types can be printed properly using the %pad
    printk format-specifier, there is no need to resort to the
    unsigned long long type-casting to deal with different possible
    type sizes.

    Signed-off-by: Suman Anna
    Signed-off-by: Bjorn Andersson

    Anna, Suman
     
  • These types of error prints are superfluous. The system will
    pick up on OOM issues and let the user know. While at this,
    fix the usage of using a structure instead of the actual
    variable in one of the allocations.

    Signed-off-by: Suman Anna
    Signed-off-by: Bjorn Andersson

    Anna, Suman
     
  • It should never have been there in the first place.

    Signed-off-by: Lee Jones
    Signed-off-by: Bjorn Andersson

    Lee Jones
     

11 Aug, 2016

1 commit


07 May, 2016

1 commit


13 Jan, 2016

1 commit

  • checkpatch.pl wants arrays of strings declared as follows:

    static const char * const names[] = { "vq-1", "vq-2", "vq-3" };

    Currently the find_vqs() function takes a const char *names[] argument
    so passing checkpatch.pl's const char * const names[] results in a
    compiler error due to losing the second const.

    This patch adjusts the find_vqs() prototype and updates all virtio
    transports. This makes it possible for virtio_balloon.c, virtio_input.c,
    virtgpu_kms.c, and virtio_rpmsg_bus.c to use the checkpatch.pl-friendly
    type.

    Signed-off-by: Stefan Hajnoczi
    Signed-off-by: Michael S. Tsirkin
    Acked-by: Bjorn Andersson

    Stefan Hajnoczi
     

13 Mar, 2015

1 commit

  • virtio spec requires that all drivers set DRIVER_OK
    before using devices. While rpmsg isn't yet
    included in the virtio 1 spec, previous spec versions
    also required this.

    virtio rpmsg violates this rule: is calls kick
    before setting DRIVER_OK.

    The fix isn't trivial since simply calling virtio_device_ready earlier
    would mean we might get an interrupt in parallel with adding buffers.

    Instead, split kick out to prepare+notify calls. prepare before
    virtio_device_ready - when we know we won't get interrupts. notify right
    afterwards.

    Signed-off-by: Michael S. Tsirkin
    Acked-by: Ohad Ben-Cohen
    Signed-off-by: Rusty Russell

    Michael S. Tsirkin
     

27 Nov, 2014

1 commit

  • Adjust the number of rpmsg buffers to rely on the size of the
    vring, instead of using the hard coded value of 512 (256 per
    direction).

    This is needed when small vrings are being used, where 256
    buffers are too much to fit in a vring.

    While considering the vring size, keep using the 512 hard coded
    value as an upper limit to avoid wacky resource tables consuming
    unreasonable amount of memory.

    NOTE: The number of buffers is already assumed to be symmetrical
    in each direction, and that logic is unchanged.

    Signed-off-by: Suman Anna
    [edit commit message, small code and comment simplification]
    Signed-off-by: Ohad Ben-Cohen

    Suman Anna
     

08 May, 2013

1 commit

  • Pull rpmsg changes from Ohad Ben-Cohen:
    "A small pull request consisting of:

    - Make rpmsg process all pending messages instead of just one, from
    Robert Tivy

    - Fix Kconfig dependency on VIRTUALIZATION, from Suman.

    Note: this was submitted late during the 3.9 rc cycle and it seemed
    appropriate to wait with it for the merge window.

    - Belated addition of an rpmsg entry to the MAINTAINERS file. People
    seem to look for this"

    * tag 'rpmsg-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/ohad/rpmsg:
    rpmsg: fix kconfig dependencies for VIRTIO
    MAINTAINERS: add rpmsg entry
    rpmsg: process _all_ pending messages in rpmsg_recv_done

    Linus Torvalds
     

03 May, 2013

1 commit

  • Pull virtio & lguest updates from Rusty Russell:
    "Lots of virtio work which wasn't quite ready for last merge window.

    Plus I dived into lguest again, reworking the pagetable code so we can
    move the switcher page: our fixmaps sometimes take more than 2MB now..."

    Ugh. Annoying conflicts with the tcm_vhost -> vhost_scsi rename.
    Hopefully correctly resolved.

    * tag 'virtio-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux: (57 commits)
    caif_virtio: Remove bouncing email addresses
    lguest: improve code readability in lg_cpu_start.
    virtio-net: fill only rx queues which are being used
    lguest: map Switcher below fixmap.
    lguest: cache last cpu we ran on.
    lguest: map Switcher text whenever we allocate a new pagetable.
    lguest: don't share Switcher PTE pages between guests.
    lguest: expost switcher_pages array (as lg_switcher_pages).
    lguest: extract shadow PTE walking / allocating.
    lguest: make check_gpte et. al return bool.
    lguest: assume Switcher text is a single page.
    lguest: rename switcher_page to switcher_pages.
    lguest: remove RESERVE_MEM constant.
    lguest: check vaddr not pgd for Switcher protection.
    lguest: prepare to make SWITCHER_ADDR a variable.
    virtio: console: replace EMFILE with EBUSY for already-open port
    virtio-scsi: reset virtqueue affinity when doing cpu hotplug
    virtio-scsi: introduce multiqueue support
    virtio-scsi: push vq lock/unlock into virtscsi_vq_done
    virtio-scsi: pass struct virtio_scsi to virtqueue completion function
    ...

    Linus Torvalds
     

30 Apr, 2013

1 commit


21 Apr, 2013

1 commit


15 Apr, 2013

1 commit


20 Mar, 2013

1 commit


28 Feb, 2013

2 commits


22 Feb, 2013

1 commit

  • Pull trivial tree from Jiri Kosina:
    "Assorted tiny fixes queued in trivial tree"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (22 commits)
    DocBook: update EXPORT_SYMBOL entry to point at export.h
    Documentation: update top level 00-INDEX file with new additions
    ARM: at91/ide: remove unsused at91-ide Kconfig entry
    percpu_counter.h: comment code for better readability
    x86, efi: fix comment typo in head_32.S
    IB: cxgb3: delay freeing mem untill entirely done with it
    net: mvneta: remove unneeded version.h include
    time: x86: report_lost_ticks doesn't exist any more
    pcmcia: avoid static analysis complaint about use-after-free
    fs/jfs: Fix typo in comment : 'how may' -> 'how many'
    of: add missing documentation for of_platform_populate()
    btrfs: remove unnecessary cur_trans set before goto loop in join_transaction
    sound: soc: Fix typo in sound/codecs
    treewide: Fix typo in various drivers
    btrfs: fix comment typos
    Update ibmvscsi module name in Kconfig.
    powerpc: fix typo (utilties -> utilities)
    of: fix spelling mistake in comment
    h8300: Fix home page URL in h8300/README
    xtensa: Fix home page URL in Kconfig
    ...

    Linus Torvalds
     

29 Jan, 2013

1 commit


12 Jan, 2013

1 commit

  • The CONFIG_EXPERIMENTAL config item has not carried much meaning for a
    while now and is almost always enabled by default. As agreed during the
    Linux kernel summit, remove it from any "depends on" lines in Kconfigs.

    CC: Ohad Ben-Cohen
    CC: Rusty Russell
    Signed-off-by: Kees Cook
    Acked-by: Rusty Russell

    Kees Cook
     

09 Jan, 2013

1 commit