29 Jul, 2020

2 commits

  • [ Upstream commit 8614afd689df59d9ce019439389be20bd788a897 ]

    When putting the port in reset, driver must wait for the soft reset
    acknowledgment bit instead of the soft reset bit.

    Fixes: 47c1b19c160f (fpga: dfl: afu: add port ops support)
    Signed-off-by: Matthew Gerlach
    Signed-off-by: Xu Yilun
    Acked-by: Wu Hao
    Reviewed-by: Tom Rix
    Signed-off-by: Moritz Fischer
    Signed-off-by: Sasha Levin

    Matthew Gerlach
     
  • [ Upstream commit e19485dc7a0d210b428a249c0595769bd495fb71 ]

    This is to fix lkp cppcheck warnings:

    drivers/fpga/dfl-pci.c:230:6: warning: The scope of the variable 'ret' can be reduced. [variableScope]
    int ret = 0;
    ^

    drivers/fpga/dfl-pci.c:230:10: warning: Variable 'ret' is assigned a value that is never used. [unreadVariable]
    int ret = 0;
    ^

    Fixes: 3c2760b78f90 ("fpga: dfl: pci: fix return value of cci_pci_sriov_configure")
    Reported-by: kbuild test robot
    Signed-off-by: Xu Yilun
    Acked-by: Wu Hao
    Reviewed-by: Tom Rix
    Signed-off-by: Moritz Fischer
    Signed-off-by: Sasha Levin

    Xu Yilun
     

24 Jun, 2020

1 commit

  • [ Upstream commit c9d7e3da1f3c4cf5dddfc5d7ce4d76d013aba1cc ]

    Corrected error handling goto sequnece. Level put_pages should
    be called when pinned pages >= 0 && pinned != npages. Level
    free_pages should be called when pinned pages < 0.

    Fixes: fa8dda1edef9 ("fpga: dfl: afu: add DFL_FPGA_PORT_DMA_MAP/UNMAP ioctls support")
    Signed-off-by: Souptick Joarder
    Acked-by: Wu Hao
    Reviewed-by: Xu Yilun
    Link: https://lore.kernel.org/r/1589825991-3545-1-git-send-email-jrdr.linux@gmail.com
    Signed-off-by: Greg Kroah-Hartman
    Signed-off-by: Sasha Levin

    Souptick Joarder
     

29 Apr, 2020

1 commit

  • commit 3c2760b78f90db874401d97e3c17829e2e36f400 upstream.

    pci_driver.sriov_configure should return negative value on error and
    number of enabled VFs on success. But now the driver returns 0 on
    success. The sriov configure still works but will cause a warning
    message:

    XX VFs requested; only 0 enabled

    This patch changes the return value accordingly.

    Cc: stable@vger.kernel.org
    Signed-off-by: Xu Yilun
    Signed-off-by: Wu Hao
    Signed-off-by: Moritz Fischer
    Signed-off-by: Greg Kroah-Hartman

    Xu Yilun
     

19 Sep, 2019

1 commit

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

    As has been happening in previous releases, more and more individual
    driver subsystem trees are ending up in here. Now if that is good or
    bad I can't tell, but hopefully it makes your life easier as it's more
    of an aggregation of trees together to one merge point for you.

    Anyway, lots of stuff in here:
    - habanalabs driver updates
    - thunderbolt driver updates
    - misc driver updates
    - coresight and intel_th hwtracing driver updates
    - fpga driver updates
    - extcon driver updates
    - some dma driver updates
    - char driver updates
    - android binder driver updates
    - nvmem driver updates
    - phy driver updates
    - parport driver fixes
    - pcmcia driver fix
    - uio driver updates
    - w1 driver updates
    - configfs fixes
    - other assorted driver updates

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

    * tag 'char-misc-5.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (200 commits)
    misc: mic: Use PTR_ERR_OR_ZERO rather than its implementation
    habanalabs: correctly cast variable to __le32
    habanalabs: show correct id in error print
    habanalabs: stop using the acronym KMD
    habanalabs: display card name as sensors header
    habanalabs: add uapi to retrieve aggregate H/W events
    habanalabs: add uapi to retrieve device utilization
    habanalabs: Make the Coresight timestamp perpetual
    habanalabs: explicitly set the queue-id enumerated numbers
    habanalabs: print to kernel log when reset is finished
    habanalabs: replace __le32_to_cpu with le32_to_cpu
    habanalabs: replace __cpu_to_le32/64 with cpu_to_le32/64
    habanalabs: Handle HW_IP_INFO if device disabled or in reset
    habanalabs: Expose devices after initialization is done
    habanalabs: improve security in Debug IOCTL
    habanalabs: use default structure for user input in Debug IOCTL
    habanalabs: Add descriptive name to PSOC app status register
    habanalabs: Add descriptive names to PSOC scratch-pad registers
    habanalabs: create two char devices per ASIC
    habanalabs: change device_setup_cdev() to be more generic
    ...

    Linus Torvalds
     

18 Sep, 2019

1 commit

  • …anaszewski/linux-leds

    Pull LED updates from Jacek Anaszewski:
    "In this cycle we've finally managed to contribute the patch set
    sorting out LED naming issues. Besides that there are many changes
    scattered among various LED class drivers and triggers.

    LED naming related improvements:

    - add new 'function' and 'color' fwnode properties and deprecate
    'label' property which has been frequently abused for conveying
    vendor specific names that have been available in sysfs anyway

    - introduce a set of standard LED_FUNCTION* definitions

    - introduce a set of standard LED_COLOR_ID* definitions

    - add a new {devm_}led_classdev_register_ext() API with the
    capability of automatic LED name composition basing on the
    properties available in the passed fwnode; the function is
    backwards compatible in a sense that it uses 'label' data, if
    present in the fwnode, for creating LED name

    - add tools/leds/get_led_device_info.sh script for retrieving LED
    vendor, product and bus names, if applicable; it also performs
    basic validation of an LED name

    - update following drivers and their DT bindings to use the new LED
    registration API:

    - leds-an30259a, leds-gpio, leds-as3645a, leds-aat1290, leds-cr0014114,
    leds-lm3601x, leds-lm3692x, leds-lp8860, leds-lt3593, leds-sc27xx-blt

    Other LED class improvements:

    - replace {devm_}led_classdev_register() macros with inlines

    - allow to call led_classdev_unregister() unconditionally

    - switch to use fwnode instead of be stuck with OF one

    LED triggers improvements:

    - led-triggers:
    - fix dereferencing of null pointer
    - fix a memory leak bug

    - ledtrig-gpio:
    - GPIO 0 is valid

    Drop superseeded apu2/3 support from leds-apu since for apu2+ a newer,
    more complete driver exists, based on a generic driver for the AMD
    SOCs gpio-controller, supporting LEDs as well other devices:

    - drop profile field from priv data

    - drop iosize field from priv data

    - drop enum_apu_led_platform_types

    - drop superseeded apu2/3 led support

    - add pr_fmt prefix for better log output

    - fix error message on probing failure

    Other misc fixes and improvements to existing LED class drivers:

    - leds-ns2, leds-max77650:
    - add of_node_put() before return

    - leds-pwm, leds-is31fl32xx:
    - use struct_size() helper

    - leds-lm3697, leds-lm36274, leds-lm3532:
    - switch to use fwnode_property_count_uXX()

    - leds-lm3532:
    - fix brightness control for i2c mode
    - change the define for the fs current register
    - fixes for the driver for stability
    - add full scale current configuration
    - dt: Add property for full scale current.
    - avoid potentially unpaired regulator calls
    - move static keyword to the front of declarations
    - fix optional led-max-microamp prop error handling

    - leds-max77650:
    - add of_node_put() before return
    - add MODULE_ALIAS()
    - Switch to fwnode property API

    - leds-as3645a:
    - fix misuse of strlcpy

    - leds-netxbig:
    - add of_node_put() in netxbig_leds_get_of_pdata()
    - remove legacy board-file support

    - leds-is31fl319x:
    - simplify getting the adapter of a client

    - leds-ti-lmu-common:
    - fix coccinelle issue
    - move static keyword to the front of declaration

    - leds-syscon:
    - use resource managed variant of device register

    - leds-ktd2692:
    - fix a typo in the name of a constant

    - leds-lp5562:
    - allow firmware files up to the maximum length

    - leds-an30259a:
    - fix typo

    - leds-pca953x:
    - include the right header"

    * tag 'leds-for-5.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds: (72 commits)
    leds: lm3532: Fix optional led-max-microamp prop error handling
    led: triggers: Fix dereferencing of null pointer
    leds: ti-lmu-common: Move static keyword to the front of declaration
    leds: lm3532: Move static keyword to the front of declarations
    leds: trigger: gpio: GPIO 0 is valid
    leds: pwm: Use struct_size() helper
    leds: is31fl32xx: Use struct_size() helper
    leds: ti-lmu-common: Fix coccinelle issue in TI LMU
    leds: lm3532: Avoid potentially unpaired regulator calls
    leds: syscon: Use resource managed variant of device register
    leds: Replace {devm_}led_classdev_register() macros with inlines
    leds: Allow to call led_classdev_unregister() unconditionally
    leds: lm3532: Add full scale current configuration
    dt: lm3532: Add property for full scale current.
    leds: lm3532: Fixes for the driver for stability
    leds: lm3532: Change the define for the fs current register
    leds: lm3532: Fix brightness control for i2c mode
    leds: Switch to use fwnode instead of be stuck with OF one
    leds: max77650: Switch to fwnode property API
    led: triggers: Fix a memory leak bug
    ...

    Linus Torvalds
     

04 Sep, 2019

9 commits

  • This patch adds support for global error reporting for FPGA
    Management Engine (FME), it introduces sysfs interfaces to
    report different error detected by the hardware, and allow
    user to clear errors or inject error for testing purpose.

    Signed-off-by: Luwei Kang
    Signed-off-by: Ananda Ravuri
    Signed-off-by: Xu Yilun
    Signed-off-by: Wu Hao
    Acked-by: Alan Tull
    Signed-off-by: Moritz Fischer

    Wu Hao
     
  • STP (SignalTap) is one of the private features under the port for
    debugging. This patch adds private feature driver support for it
    to allow userspace applications to mmap related mmio region and
    provide STP service.

    Signed-off-by: Xu Yilun
    Signed-off-by: Wu Hao
    Acked-by: Moritz Fischer
    Acked-by: Alan Tull
    Signed-off-by: Moritz Fischer

    Wu Hao
     
  • Error reporting is one important private feature, it reports error
    detected on port and accelerated function unit (AFU). It introduces
    several sysfs interfaces to allow userspace to check and clear
    errors detected by hardware.

    Signed-off-by: Xu Yilun
    Signed-off-by: Wu Hao
    Acked-by: Alan Tull
    Signed-off-by: Moritz Fischer

    Wu Hao
     
  • As these two functions are used by other private features within the
    same driver module but different driver files. e.g. in error reporting
    private feature, it requires to clear errors when port is in reset.

    Signed-off-by: Xu Yilun
    Signed-off-by: Wu Hao
    Acked-by: Moritz Fischer
    Acked-by: Alan Tull
    Signed-off-by: Moritz Fischer

    Wu Hao
     
  • This patch introduces userclock sysfs interfaces for AFU, user
    could use these interfaces for clock setting to AFU.

    Please note that, this is only working for port header feature
    with revision 0, for later revisions, userclock setting is moved
    to a separated private feature, so one revision sysfs interface
    is exposed to userspace application for this purpose too.

    Signed-off-by: Ananda Ravuri
    Signed-off-by: Russ Weight
    Signed-off-by: Xu Yilun
    Signed-off-by: Wu Hao
    Acked-by: Alan Tull
    Signed-off-by: Moritz Fischer

    Wu Hao
     
  • This patch takes advantage of driver core which helps to create
    and remove sysfs attribute files, so there is no need to register
    sysfs entries manually in dfl-afu platform river code.

    Signed-off-by: Wu Hao
    Acked-by: Moritz Fischer
    Signed-off-by: Moritz Fischer

    Wu Hao
     
  • This patch takes advantage of driver core which helps to create
    and remove sysfs attribute files, so there is no need to register
    sysfs entries manually in dfl-fme platform river code.

    Signed-off-by: Wu Hao
    Acked-by: Moritz Fischer
    Signed-off-by: Moritz Fischer

    Wu Hao
     
  • This patch makes init callback of sub features optional. With
    this change, people don't need to prepare any empty init callback.

    Signed-off-by: Wu Hao
    Acked-by: Moritz Fischer
    Signed-off-by: Moritz Fischer

    Wu Hao
     
  • …regkh/char-misc into fpga-dfl-for-5.4

    Moritz Fischer
     

03 Sep, 2019

1 commit


29 Aug, 2019

1 commit


25 Aug, 2019

3 commits

  • Add Stratix10 specific functions that use a credit mechanism
    to throttle data to the CvP FIFOs. Add a private structure
    with function pointers for V1 vs V2 functions.

    Signed-off-by: Thor Thayer
    Signed-off-by: Moritz Fischer

    Thor Thayer
     
  • In preparation for adding newer V2 parts that use a FIFO,
    reorganize altera_cvp_chk_error() and change the write
    function to block based.
    V2 parts have a block size matching the FIFO while older
    V1 parts write a 32 bit word at a time.

    Signed-off-by: Thor Thayer
    Signed-off-by: Moritz Fischer

    Thor Thayer
     
  • Newer Intel FPGAs have different Vendor Specific offsets than
    legacy parts. Use PCI discovery to find the CvP registers.
    Since the register positions remain the same, change the hard
    coded address to a more flexible way of indexing registers
    from the offset.
    Adding new PCI read and write abstraction functions to
    handle the offset (altera_read_config_dword() and
    altera_write_config_dword()).

    Signed-off-by: Thor Thayer
    Signed-off-by: Moritz Fischer

    Thor Thayer
     

19 Aug, 2019

1 commit

  • Currently the driver does not handle EPROBE_DEFER for the confd gpio.
    Use devm_gpiod_get_optional() instead of devm_gpiod_get() and return
    error codes from altera_ps_probe().

    Fixes: 5692fae0742d ("fpga manager: Add altera-ps-spi driver for Altera FPGAs")
    Signed-off-by: Phil Reid
    Signed-off-by: Moritz Fischer

    Phil Reid
     

09 Aug, 2019

1 commit

  • …nux-fpga into char-misc-next

    Moritz writes:

    FPGA Manager changes for 5.4-rc1

    Here is the first set of changes for the 5.4-rc1 merge window.

    They're all more or less cleanup patches:

    - Carlos' patch addresses a checkpatch warning
    - My first patch changes the return type of a function to align it with
    the fact that nothing checks the return value and it uncoditionally
    returned 0 anyways
    - My second patch somehow fell through the cracks before and cleans up
    the FPGA bridge bindings by consolidating them instead of repeating
    the same paragraph over and over again.

    All of these patches have been in the last few linux-next releases
    without issues.

    Signed-off-by: Moritz Fischer <mdf@kernel.org>

    * tag 'fpga-for-5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/mdf/linux-fpga:
    dt-bindings: fpga: Consolidate bridge properties
    fpga: altera-pr-ip: Make alt_pr_unregister function void
    fpga: altera-cvp: Fix function definition argument

    Greg Kroah-Hartman
     

06 Aug, 2019

3 commits

  • This patch adds 3 read-only sysfs interfaces for FPGA Management Engine
    (FME) block for capabilities including cache_size, fabric_version and
    socket_id.

    Signed-off-by: Luwei Kang
    Signed-off-by: Xu Yilun
    Signed-off-by: Wu Hao
    Acked-by: Alan Tull
    Signed-off-by: Moritz Fischer
    Link: https://lore.kernel.org/r/1564914022-3710-11-git-send-email-hao.wu@intel.com
    Signed-off-by: Greg Kroah-Hartman

    Wu Hao
     
  • This patch makes uinit callback of sub features optional. With
    this change, people don't need to prepare any empty uinit callback.

    Signed-off-by: Wu Hao
    Link: https://lore.kernel.org/r/1564914022-3710-9-git-send-email-hao.wu@intel.com
    Signed-off-by: Greg Kroah-Hartman

    Wu Hao
     
  • This patch adds id_table for each dfl private feature driver,
    it allows to reuse same private feature driver to match and support
    multiple dfl private features.

    Signed-off-by: Xu Yilun
    Signed-off-by: Wu Hao
    Acked-by: Moritz Fischer
    Acked-by: Alan Tull
    Signed-off-by: Moritz Fischer
    Link: https://lore.kernel.org/r/1564914022-3710-6-git-send-email-hao.wu@intel.com
    Signed-off-by: Greg Kroah-Hartman

    Wu Hao
     

05 Aug, 2019

3 commits

  • This patch introduces more sysfs interfaces for Accelerated
    Function Unit (AFU). These interfaces allow users to read
    current AFU Power State (APx), read / clear AFU Power (APx)
    events which are sticky to identify transient APx state,
    and manage AFU's LTR (latency tolerance reporting).

    Signed-off-by: Ananda Ravuri
    Signed-off-by: Xu Yilun
    Signed-off-by: Wu Hao
    Acked-by: Alan Tull
    Signed-off-by: Moritz Fischer
    Link: https://lore.kernel.org/r/1564914022-3710-4-git-send-email-hao.wu@intel.com
    Signed-off-by: Greg Kroah-Hartman

    Wu Hao
     
  • This patch enables the standard sriov support. It allows user to
    enable SRIOV (and VFs), then user could pass through accelerators
    (VFs) into virtual machine or use VFs directly in host.

    Signed-off-by: Zhang Yi Z
    Signed-off-by: Xu Yilun
    Signed-off-by: Wu Hao
    Acked-by: Alan Tull
    Acked-by: Moritz Fischer
    Signed-off-by: Moritz Fischer
    Link: https://lore.kernel.org/r/1564914022-3710-3-git-send-email-hao.wu@intel.com
    Signed-off-by: Greg Kroah-Hartman

    Wu Hao
     
  • In order to support virtualization usage via PCIe SRIOV, this patch
    adds two ioctls under FPGA Management Engine (FME) to release and
    assign back the port device. In order to safely turn Port from PF
    into VF and enable PCIe SRIOV, it requires user to invoke this
    PORT_RELEASE ioctl to release port firstly to remove userspace
    interfaces, and then configure the PF/VF access register in FME.
    After disable SRIOV, it requires user to invoke this PORT_ASSIGN
    ioctl to attach the port back to PF.

    Ioctl interfaces:
    * DFL_FPGA_FME_PORT_RELEASE
    Release platform device of given port, it deletes port platform
    device to remove related userspace interfaces on PF. After this
    function, then it's safe to configure PF/VF access mode to VF,
    and enable VFs via SRIOV.

    * DFL_FPGA_FME_PORT_ASSIGN
    Assign platform device of given port back to PF. After configure
    PF/VF access mode to PF, this ioctl adds port platform device
    back to re-enable related userspace interfaces on PF.

    Signed-off-by: Zhang Yi Z
    Signed-off-by: Xu Yilun
    Signed-off-by: Wu Hao
    Acked-by: Alan Tull
    Acked-by: Moritz Fischer
    Signed-off-by: Moritz Fischer
    Link: https://lore.kernel.org/r/1564914022-3710-2-git-send-email-hao.wu@intel.com
    Signed-off-by: Greg Kroah-Hartman

    Wu Hao
     

30 Jul, 2019

1 commit

  • Introduce wrappers for {bus/driver/class}_find_device() to
    locate devices by its of_node.

    Cc: Maarten Lankhorst
    Cc: Maxime Ripard
    Cc: dri-devel@lists.freedesktop.org
    Cc: David Airlie
    Cc: Daniel Vetter
    Cc: devicetree@vger.kernel.org
    Cc: Florian Fainelli
    Cc: Frank Rowand
    Cc: Heiko Stuebner
    Cc: Liam Girdwood
    Cc: linux-i2c@vger.kernel.org
    Cc: linux-rockchip@lists.infradead.org
    Cc: linux-spi@vger.kernel.org
    Cc: Mathieu Poirier
    Cc: Rob Herring
    Cc: Srinivas Kandagatla
    Cc: Takashi Iwai
    Cc: Alan Tull
    Cc: linux-fpga@vger.kernel.org
    Cc: Peter Rosin
    Cc: Florian Fainelli
    Cc: Heiner Kallweit
    Cc: "David S. Miller"
    Cc: Andrew Lunn
    Cc: Liam Girdwood
    Cc: "Rafael J. Wysocki"
    Cc: Thor Thayer
    Cc: Jiri Slaby
    Cc: Andrew Lunn
    Cc: Peter Rosin
    Signed-off-by: Suzuki K Poulose
    Acked-by: Lee Jones
    Acked-by: Wolfram Sang # I2C part
    Acked-by: Moritz Fischer # For FPGA part
    Acked-by: Mark Brown
    Link: https://lore.kernel.org/r/20190723221838.12024-3-suzuki.poulose@arm.com
    Signed-off-by: Greg Kroah-Hartman

    Suzuki K Poulose
     

29 Jul, 2019

1 commit


25 Jul, 2019

3 commits


24 Jul, 2019

1 commit

  • If BITREVERSE is m and FPGA_MGR_ALTERA_PS_SPI is y,
    build fails:

    drivers/fpga/altera-ps-spi.o: In function `altera_ps_write':
    altera-ps-spi.c:(.text+0x4ec): undefined reference to `byte_rev_table'

    Select BITREVERSE to fix this.

    Reported-by: Hulk Robot
    Fixes: fcfe18f885f6 ("fpga-manager: altera-ps-spi: use bitrev8x4")
    Signed-off-by: YueHaibing
    Cc: stable
    Acked-by: Moritz Fischer
    Link: https://lore.kernel.org/r/20190708071356.50928-1-yuehaibing@huawei.com
    Signed-off-by: Greg Kroah-Hartman

    YueHaibing
     

17 Jul, 2019

1 commit

  • locked_vm accounting is done roughly the same way in five places, so
    unify them in a helper.

    Include the helper's caller in the debug print to distinguish between
    callsites.

    Error codes stay the same, so user-visible behavior does too. The one
    exception is that the -EPERM case in tce_account_locked_vm is removed
    because Alexey has never seen it triggered.

    [daniel.m.jordan@oracle.com: v3]
    Link: http://lkml.kernel.org/r/20190529205019.20927-1-daniel.m.jordan@oracle.com
    [sfr@canb.auug.org.au: fix mm/util.c]
    Link: http://lkml.kernel.org/r/20190524175045.26897-1-daniel.m.jordan@oracle.com
    Signed-off-by: Daniel Jordan
    Signed-off-by: Stephen Rothwell
    Tested-by: Alexey Kardashevskiy
    Acked-by: Alex Williamson
    Cc: Alan Tull
    Cc: Alex Williamson
    Cc: Benjamin Herrenschmidt
    Cc: Christoph Lameter
    Cc: Christophe Leroy
    Cc: Davidlohr Bueso
    Cc: Jason Gunthorpe
    Cc: Mark Rutland
    Cc: Michael Ellerman
    Cc: Moritz Fischer
    Cc: Paul Mackerras
    Cc: Steve Sistare
    Cc: Wu Hao
    Cc: Ira Weiny
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Daniel Jordan
     

13 Jul, 2019

1 commit

  • Pull driver core and debugfs updates from Greg KH:
    "Here is the "big" driver core and debugfs changes for 5.3-rc1

    It's a lot of different patches, all across the tree due to some api
    changes and lots of debugfs cleanups.

    Other than the debugfs cleanups, in this set of changes we have:

    - bus iteration function cleanups

    - scripts/get_abi.pl tool to display and parse Documentation/ABI
    entries in a simple way

    - cleanups to Documenatation/ABI/ entries to make them parse easier
    due to typos and other minor things

    - default_attrs use for some ktype users

    - driver model documentation file conversions to .rst

    - compressed firmware file loading

    - deferred probe fixes

    All of these have been in linux-next for a while, with a bunch of
    merge issues that Stephen has been patient with me for"

    * tag 'driver-core-5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (102 commits)
    debugfs: make error message a bit more verbose
    orangefs: fix build warning from debugfs cleanup patch
    ubifs: fix build warning after debugfs cleanup patch
    driver: core: Allow subsystems to continue deferring probe
    drivers: base: cacheinfo: Ensure cpu hotplug work is done before Intel RDT
    arch_topology: Remove error messages on out-of-memory conditions
    lib: notifier-error-inject: no need to check return value of debugfs_create functions
    swiotlb: no need to check return value of debugfs_create functions
    ceph: no need to check return value of debugfs_create functions
    sunrpc: no need to check return value of debugfs_create functions
    ubifs: no need to check return value of debugfs_create functions
    orangefs: no need to check return value of debugfs_create functions
    nfsd: no need to check return value of debugfs_create functions
    lib: 842: no need to check return value of debugfs_create functions
    debugfs: provide pr_fmt() macro
    debugfs: log errors when something goes wrong
    drivers: s390/cio: Fix compilation warning about const qualifiers
    drivers: Add generic helper to match by of_node
    driver_find_device: Unify the match function with class_find_device()
    bus_find_device: Unify the match callback with class_find_device
    ...

    Linus Torvalds
     

04 Jul, 2019

3 commits

  • Current driver checks if input bitstream file size is aligned or
    not per PR data width (default 32bits). It requires one additional
    step for end user when they generate the bitstream file, padding
    extra zeros to bitstream file to align its size per PR data width,
    but they don't have to as hardware will drop extra padding bytes
    automatically.

    In order to simplify the user steps, this patch aligns PR buffer
    size per PR data width in driver, to allow user to pass unaligned
    size bitstream files to driver.

    Signed-off-by: Xu Yilun
    Signed-off-by: Wu Hao
    Acked-by: Alan Tull
    Acked-by: Moritz Fischer
    Signed-off-by: Moritz Fischer
    Link: https://lore.kernel.org/r/20190628004951.6202-4-mdf@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Wu Hao
     
  • This patch removes copy_to_user() code in partial reconfiguration
    ioctl, as it's useless as user never needs to read the data
    structure after ioctl.

    Signed-off-by: Xu Yilun
    Signed-off-by: Wu Hao
    Acked-by: Moritz Fischer
    Acked-by: Alan Tull
    Signed-off-by: Moritz Fischer
    Link: https://lore.kernel.org/r/20190628004951.6202-3-mdf@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Wu Hao
     
  • FME_PR_INTFC_ID is used as compat_id for fpga manager and region,
    but high 64 bits and low 64 bits of the compat_id are swapped by
    mistake. This patch fixes this problem by fixing register address.

    Signed-off-by: Wu Hao
    Acked-by: Alan Tull
    Acked-by: Moritz Fischer
    Signed-off-by: Moritz Fischer
    Link: https://lore.kernel.org/r/20190628004951.6202-2-mdf@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Wu Hao
     

24 Jun, 2019

1 commit

  • Add a helper to match device by the of_node. This will be later used
    to provide wrappers to the device iterators for {bus/class/driver}_find_device().
    Convert other users to reuse this new helper.

    Cc: Alan Tull
    Cc: Andrew Lunn
    Cc: Daniel Vetter
    Cc: David Airlie
    Cc: "David S. Miller"
    Cc: devicetree@vger.kernel.org
    Cc: dri-devel@lists.freedesktop.org
    Cc: Florian Fainelli
    Cc: Frank Rowand
    Cc: Greg Kroah-Hartman
    Cc: Heiner Kallweit
    Cc: Jiri Slaby
    Cc: Jonathan Hunter
    Cc: Lee Jones
    Cc: Liam Girdwood
    Cc: linux-fpga@vger.kernel.org
    Cc: linux-i2c@vger.kernel.org
    Cc: linux-spi@vger.kernel.org
    Cc: Maarten Lankhorst
    Cc: Mark Brown
    Cc: Mathieu Poirier
    Cc: Maxime Ripard
    Cc: Moritz Fischer
    Cc: Peter Rosin
    Cc: Rob Herring
    Cc: Srinivas Kandagatla
    Cc: Thierry Reding
    Cc: Thor Thayer
    Cc: Wolfram Sang
    Cc: "Rafael J. Wysocki"
    Cc: Greg Kroah-Hartman
    Cc: Ulf Hansson
    Cc: Joe Perches
    Signed-off-by: Suzuki K Poulose
    Signed-off-by: Greg Kroah-Hartman

    Suzuki K Poulose