28 Aug, 2019

1 commit

  • Move ASPM definitions and function prototypes from include/linux/pci-aspm.h
    to include/linux/pci.h so users only need to include :

    PCIE_LINK_STATE_L0S
    PCIE_LINK_STATE_L1
    PCIE_LINK_STATE_CLKPM
    pci_disable_link_state()
    pci_disable_link_state_locked()
    pcie_no_aspm()

    No functional changes intended.

    Link: https://lore.kernel.org/r/20190827095620.11213-1-kw@linux.com
    Signed-off-by: Krzysztof Wilczynski
    Signed-off-by: Bjorn Helgaas

    Krzysztof Wilczynski
     

05 Jun, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the smems of the gnu general public license as published by
    the free software foundation version 2 of the license

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 5 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Armijn Hemel
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190531190111.946565886@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

21 May, 2019

1 commit


15 Mar, 2018

1 commit

  • Add the Altera PCI Vendor id to pci_ids.h and remove the private
    definitions from xillybus_pcie.c and altera-cvp.c.

    Signed-off-by: Johannes Thumshirn
    Cc: Bjorn Helgaas
    Cc: Eli Billauer
    Cc: Anatolij Gustschin
    Acked-by: Eli Billauer
    Acked-by: Bjorn Helgaas
    Reviewed-by: Andy Shevchenko
    Signed-off-by: Greg Kroah-Hartman

    Johannes Thumshirn
     

12 Feb, 2018

1 commit

  • This is the mindless scripted replacement of kernel use of POLL*
    variables as described by Al, done by this script:

    for V in IN OUT PRI ERR RDNORM RDBAND WRNORM WRBAND HUP RDHUP NVAL MSG; do
    L=`git grep -l -w POLL$V | grep -v '^t' | grep -v /um/ | grep -v '^sa' | grep -v '/poll.h$'|grep -v '^D'`
    for f in $L; do sed -i "-es/^\([^\"]*\)\(\\)/\\1E\\2/" $f; done
    done

    with de-mangling cleanups yet to come.

    NOTE! On almost all architectures, the EPOLL* constants have the same
    values as the POLL* constants do. But they keyword here is "almost".
    For various bad reasons they aren't the same, and epoll() doesn't
    actually work quite correctly in some cases due to this on Sparc et al.

    The next patch from Al will sort out the final differences, and we
    should be all done.

    Scripted-by: Al Viro
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     

02 Feb, 2018

1 commit

  • Pull char/misc driver updates from Greg KH:
    "Here is the big pull request for char/misc drivers for 4.16-rc1.

    There's a lot of stuff in here. Three new driver subsystems were added
    for various types of hardware busses:

    - siox
    - slimbus
    - soundwire

    as well as a new vboxguest subsystem for the VirtualBox hypervisor
    drivers.

    There's also big updates from the FPGA subsystem, lots of Android
    binder fixes, the usual handful of hyper-v updates, and lots of other
    smaller driver updates.

    All of these have been in linux-next for a long time, with no reported
    issues"

    * tag 'char-misc-4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (155 commits)
    char: lp: use true or false for boolean values
    android: binder: use VM_ALLOC to get vm area
    android: binder: Use true and false for boolean values
    lkdtm: fix handle_irq_event symbol for INT_HW_IRQ_EN
    EISA: Delete error message for a failed memory allocation in eisa_probe()
    EISA: Whitespace cleanup
    misc: remove AVR32 dependencies
    virt: vbox: Add error mapping for VERR_INVALID_NAME and VERR_NO_MORE_FILES
    soundwire: Fix a signedness bug
    uio_hv_generic: fix new type mismatch warnings
    uio_hv_generic: fix type mismatch warnings
    auxdisplay: img-ascii-lcd: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
    uio_hv_generic: add rescind support
    uio_hv_generic: check that host supports monitor page
    uio_hv_generic: create send and receive buffers
    uio: document uio_hv_generic regions
    doc: fix documentation about uio_hv_generic
    vmbus: add monitor_id and subchannel_id to sysfs per channel
    vmbus: fix ABI documentation
    uio_hv_generic: use ISR callback method
    ...

    Linus Torvalds
     

10 Jan, 2018

1 commit


29 Nov, 2017

1 commit


31 Aug, 2016

1 commit


01 May, 2016

1 commit

  • If devm_add_action() fails we are explicitly calling dma_unmap_single(),
    pci_unmap_single() and kfree(). Lets use the helper
    devm_add_action_or_reset() and return directly in case of error, as we
    know that the cleanup function has been already called by the helper if
    there was any error. At that same time remove the variable rc which
    becomes unused now.

    Signed-off-by: Sudip Mukherjee
    Signed-off-by: Greg Kroah-Hartman

    Sudip Mukherjee
     

06 Mar, 2016

1 commit

  • A couple of fields in a data structure, which is used by the driver only,
    were not initialized properly during the driver's setup.

    The primary issue with this bug was that channel->wr_buf_size remained zero,
    so calls to dma_sync_single_for_cpu() took place with zero size, and
    consequently did nothing.

    This had a rather minimal practical impact, because

    (a) these calls are NOPs on Intel/AMD platforms, as well as other platforms
    with coherent cache, and
    (b) it's extremely rare that any cache line would survive between two reads
    from a given DMA buffer

    Hence no significant practical difference is expected with this patch.

    Signed-off-by: Eli Billauer
    Signed-off-by: Greg Kroah-Hartman

    Eli Billauer
     

06 Aug, 2015

1 commit

  • Until now, only 32-bit DMA addressing was allowed, following a report on
    some old Intel machine that dropped 64-bit PCIe packets, even though
    pci_set_dma_mask() was successful with DMA_BIT_MASK(64).

    But then came TI's Keystone II chip (ARM Cortex A15 + DSPs), which refuses
    32-bit DMA addressing (for good reasons). So 64-bit DMA is allowed as a
    fallback option.

    Signed-off-by: Eli Billauer
    Signed-off-by: Greg Kroah-Hartman

    Eli Billauer
     

25 May, 2015

1 commit

  • If NO_DMA=y:

    drivers/built-in.o: In function `xilly_of_unmap':
    xillybus_of.c:(.text+0xa860e): undefined reference to `dma_unmap_single'
    drivers/built-in.o: In function `xilly_map_single_of':
    xillybus_of.c:(.text+0xa8668): undefined reference to `dma_map_single'
    xillybus_of.c:(.text+0xa8676): undefined reference to `dma_mapping_error'
    xillybus_of.c:(.text+0xa86ca): undefined reference to `dma_unmap_single'
    drivers/built-in.o: In function `xilly_dma_sync_single_for_device_of':
    xillybus_of.c:(.text+0xa8700): undefined reference to `dma_sync_single_for_cpu'
    drivers/built-in.o: In function `xilly_dma_sync_single_for_cpu_of':
    xillybus_of.c:(.text+0xa8726): undefined reference to `dma_sync_single_for_cpu'

    Signed-off-by: Geert Uytterhoeven
    Acked-by: Eli Billauer
    --
    v2:
    - Add Acked-by, send to char and misc drivers maintainers.
    Signed-off-by: Greg Kroah-Hartman

    Geert Uytterhoeven
     

03 Apr, 2015

1 commit

  • The API allows the application to flush a host-to-FPGA stream by calling
    write() with the data count set to zero. Before this patch, copy_from_user()
    was called with a non-zero byte count, which possibly made it attempt to read
    from unmapped user memory. Such attempts caused the driver to return -EFAULT
    instead of 0, even though the desired operation went through fine.

    This patch ensures the driver returns 0 on a successful flush.

    Signed-off-by: Eli Billauer
    Signed-off-by: Greg Kroah-Hartman

    Eli Billauer
     

17 Mar, 2015

1 commit


20 Oct, 2014

1 commit


24 Sep, 2014

1 commit

  • This driver has been functional and stable throughout the year it has spent
    in the staging area. It has been patched for minor bugs, coding style issues
    and improvements during this period.

    This is the second submission of this move-out, after making several style
    improvements, as suggested by Dan Carpenter.

    Signed-off-by: Eli Billauer
    Signed-off-by: Greg Kroah-Hartman

    Eli Billauer