1. 23 11月, 2018 4 次提交
  2. 28 6月, 2018 1 次提交
    • J
      gnss: add GNSS receiver subsystem · 2b6a4403
      Johan Hovold 提交于
      Add a new subsystem for GNSS (e.g. GPS) receivers.
      
      While GNSS receivers are typically accessed using a UART interface they
      often also support other I/O interfaces such as I2C, SPI and USB, while
      yet other devices use iomem or even some form of remote-processor
      messaging (rpmsg).
      
      The new GNSS subsystem abstracts the underlying interface and provides a
      new "gnss" class type, which exposes a character-device interface (e.g.
      /dev/gnss0) to user space. This allows GNSS receivers to have a
      representation in the Linux device model, something which is important
      not least for power management purposes.
      
      Note that the character-device interface provides raw access to whatever
      protocol the receiver is (currently) using, such as NMEA 0183, UBX or
      SiRF Binary. These protocols are expected to be continued to be handled
      by user space for the time being, even if some hybrid solutions are also
      conceivable (e.g. to have kernel drivers issue management commands).
      
      This will still allow for better platform integration by allowing GNSS
      devices and their resources (e.g. regulators and enable-gpios) to be
      described by firmware and managed by kernel drivers rather than
      platform-specific scripts and services.
      
      While the current interface is kept minimal, it could be extended using
      IOCTLs, sysfs or uevents as needs and proper abstraction levels are
      identified and determined (e.g. for device and feature identification).
      Signed-off-by: NJohan Hovold <johan@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      2b6a4403
  3. 29 3月, 2018 1 次提交
  4. 19 12月, 2017 3 次提交
  5. 08 12月, 2017 1 次提交
  6. 02 11月, 2017 1 次提交
    • G
      License cleanup: add SPDX GPL-2.0 license identifier to files with no license · b2441318
      Greg Kroah-Hartman 提交于
      Many source files in the tree are missing licensing information, which
      makes it harder for compliance tools to determine the correct license.
      
      By default all files without license information are under the default
      license of the kernel, which is GPL version 2.
      
      Update the files which contain no license information with the 'GPL-2.0'
      SPDX license identifier.  The SPDX identifier is a legally binding
      shorthand, which can be used instead of the full boiler plate text.
      
      This patch is based on work done by Thomas Gleixner and Kate Stewart and
      Philippe Ombredanne.
      
      How this work was done:
      
      Patches were generated and checked against linux-4.14-rc6 for a subset of
      the use cases:
       - file had no licensing information it it.
       - file was a */uapi/* one with no licensing information in it,
       - file was a */uapi/* one with existing licensing information,
      
      Further patches will be generated in subsequent months to fix up cases
      where non-standard license headers were used, and references to license
      had to be inferred by heuristics based on keywords.
      
      The analysis to determine which SPDX License Identifier to be applied to
      a file was done in a spreadsheet of side by side results from of the
      output of two independent scanners (ScanCode & Windriver) producing SPDX
      tag:value files created by Philippe Ombredanne.  Philippe prepared the
      base worksheet, and did an initial spot review of a few 1000 files.
      
      The 4.13 kernel was the starting point of the analysis with 60,537 files
      assessed.  Kate Stewart did a file by file comparison of the scanner
      results in the spreadsheet to determine which SPDX license identifier(s)
      to be applied to the file. She confirmed any determination that was not
      immediately clear with lawyers working with the Linux Foundation.
      
      Criteria used to select files for SPDX license identifier tagging was:
       - Files considered eligible had to be source code files.
       - Make and config files were included as candidates if they contained >5
         lines of source
       - File already had some variant of a license header in it (even if <5
         lines).
      
      All documentation files were explicitly excluded.
      
      The following heuristics were used to determine which SPDX license
      identifiers to apply.
      
       - when both scanners couldn't find any license traces, file was
         considered to have no license information in it, and the top level
         COPYING file license applied.
      
         For non */uapi/* files that summary was:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|-------
         GPL-2.0                                              11139
      
         and resulted in the first patch in this series.
      
         If that file was a */uapi/* path one, it was "GPL-2.0 WITH
         Linux-syscall-note" otherwise it was "GPL-2.0".  Results of that was:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|-------
         GPL-2.0 WITH Linux-syscall-note                        930
      
         and resulted in the second patch in this series.
      
       - if a file had some form of licensing information in it, and was one
         of the */uapi/* ones, it was denoted with the Linux-syscall-note if
         any GPL family license was found in the file or had no licensing in
         it (per prior point).  Results summary:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|------
         GPL-2.0 WITH Linux-syscall-note                       270
         GPL-2.0+ WITH Linux-syscall-note                      169
         ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause)    21
         ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)    17
         LGPL-2.1+ WITH Linux-syscall-note                      15
         GPL-1.0+ WITH Linux-syscall-note                       14
         ((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause)    5
         LGPL-2.0+ WITH Linux-syscall-note                       4
         LGPL-2.1 WITH Linux-syscall-note                        3
         ((GPL-2.0 WITH Linux-syscall-note) OR MIT)              3
         ((GPL-2.0 WITH Linux-syscall-note) AND MIT)             1
      
         and that resulted in the third patch in this series.
      
       - when the two scanners agreed on the detected license(s), that became
         the concluded license(s).
      
       - when there was disagreement between the two scanners (one detected a
         license but the other didn't, or they both detected different
         licenses) a manual inspection of the file occurred.
      
       - In most cases a manual inspection of the information in the file
         resulted in a clear resolution of the license that should apply (and
         which scanner probably needed to revisit its heuristics).
      
       - When it was not immediately clear, the license identifier was
         confirmed with lawyers working with the Linux Foundation.
      
       - If there was any question as to the appropriate license identifier,
         the file was flagged for further research and to be revisited later
         in time.
      
      In total, over 70 hours of logged manual review was done on the
      spreadsheet to determine the SPDX license identifiers to apply to the
      source files by Kate, Philippe, Thomas and, in some cases, confirmation
      by lawyers working with the Linux Foundation.
      
      Kate also obtained a third independent scan of the 4.13 code base from
      FOSSology, and compared selected files where the other two scanners
      disagreed against that SPDX file, to see if there was new insights.  The
      Windriver scanner is based on an older version of FOSSology in part, so
      they are related.
      
      Thomas did random spot checks in about 500 files from the spreadsheets
      for the uapi headers and agreed with SPDX license identifier in the
      files he inspected. For the non-uapi files Thomas did random spot checks
      in about 15000 files.
      
      In initial set of patches against 4.14-rc6, 3 files were found to have
      copy/paste license identifier errors, and have been fixed to reflect the
      correct identifier.
      
      Additionally Philippe spent 10 hours this week doing a detailed manual
      inspection and review of the 12,461 patched files from the initial patch
      version early this week with:
       - a full scancode scan run, collecting the matched texts, detected
         license ids and scores
       - reviewing anything where there was a license detected (about 500+
         files) to ensure that the applied SPDX license was correct
       - reviewing anything where there was no detection but the patch license
         was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
         SPDX license was correct
      
      This produced a worksheet with 20 files needing minor correction.  This
      worksheet was then exported into 3 different .csv files for the
      different types of files to be modified.
      
      These .csv files were then reviewed by Greg.  Thomas wrote a script to
      parse the csv files and add the proper SPDX tag to the file, in the
      format that the file expected.  This script was further refined by Greg
      based on the output to detect more types of files automatically and to
      distinguish between header and source .c files (which need different
      comment types.)  Finally Greg ran the script using the .csv files to
      generate the patches.
      Reviewed-by: NKate Stewart <kstewart@linuxfoundation.org>
      Reviewed-by: NPhilippe Ombredanne <pombredanne@nexb.com>
      Reviewed-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b2441318
  7. 03 10月, 2017 1 次提交
  8. 03 6月, 2017 1 次提交
    • P
      mux: minimal mux subsystem · a3b02a9c
      Peter Rosin 提交于
      Add a new minimalistic subsystem that handles multiplexer controllers.
      When multiplexers are used in various places in the kernel, and the
      same multiplexer controller can be used for several independent things,
      there should be one place to implement support for said multiplexer
      controller.
      
      A single multiplexer controller can also be used to control several
      parallel multiplexers, that are in turn used by different subsystems
      in the kernel, leading to a need to coordinate multiplexer accesses.
      The multiplexer subsystem handles this coordination.
      
      Thanks go out to Lars-Peter Clausen, Jonathan Cameron, Rob Herring,
      Wolfram Sang, Paul Gortmaker, Dan Carpenter, Colin Ian King, Greg
      Kroah-Hartman and last but certainly not least to Philipp Zabel for
      helpful comments, reviews, patches and general encouragement!
      Reviewed-by: NJonathan Cameron <jic23@kernel.org>
      Signed-off-by: NPeter Rosin <peda@axentia.se>
      Reviewed-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      Tested-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a3b02a9c
  9. 09 3月, 2017 1 次提交
    • J
      tee: generic TEE subsystem · 967c9cca
      Jens Wiklander 提交于
      Initial patch for generic TEE subsystem.
      This subsystem provides:
      * Registration/un-registration of TEE drivers.
      * Shared memory between normal world and secure world.
      * Ioctl interface for interaction with user space.
      * Sysfs implementation_id of TEE driver
      
      A TEE (Trusted Execution Environment) driver is a driver that interfaces
      with a trusted OS running in some secure environment, for example,
      TrustZone on ARM cpus, or a separate secure co-processor etc.
      
      The TEE subsystem can serve a TEE driver for a Global Platform compliant
      TEE, but it's not limited to only Global Platform TEEs.
      
      This patch builds on other similar implementations trying to solve
      the same problem:
      * "optee_linuxdriver" by among others
        Jean-michel DELORME<jean-michel.delorme@st.com> and
        Emmanuel MICHEL <emmanuel.michel@st.com>
      * "Generic TrustZone Driver" by Javier González <javier@javigon.com>
      Acked-by: NAndreas Dannenberg <dannenberg@ti.com>
      Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey)
      Tested-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> (RCAR H3)
      Tested-by: NScott Branden <scott.branden@broadcom.com>
      Reviewed-by: NJavier González <javier@javigon.com>
      Signed-off-by: NJens Wiklander <jens.wiklander@linaro.org>
      967c9cca
  10. 10 2月, 2017 1 次提交
  11. 21 5月, 2016 1 次提交
    • D
      /dev/dax, pmem: direct access to persistent memory · ab68f262
      Dan Williams 提交于
      Device DAX is the device-centric analogue of Filesystem DAX
      (CONFIG_FS_DAX).  It allows memory ranges to be allocated and mapped
      without need of an intervening file system.  Device DAX is strict,
      precise and predictable.  Specifically this interface:
      
      1/ Guarantees fault granularity with respect to a given page size (pte,
      pmd, or pud) set at configuration time.
      
      2/ Enforces deterministic behavior by being strict about what fault
      scenarios are supported.
      
      For example, by forcing MADV_DONTFORK semantics and omitting MAP_PRIVATE
      support device-dax guarantees that a mapping always behaves/performs the
      same once established.  It is the "what you see is what you get" access
      mechanism to differentiated memory vs filesystem DAX which has
      filesystem specific implementation semantics.
      
      Persistent memory is the first target, but the mechanism is also
      targeted for exclusive allocations of performance differentiated memory
      ranges.
      
      This commit is limited to the base device driver infrastructure to
      associate a dax device with pmem range.
      
      Cc: Jeff Moyer <jmoyer@redhat.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
      Reviewed-by: NJohannes Thumshirn <jthumshirn@suse.de>
      Signed-off-by: NDan Williams <dan.j.williams@intel.com>
      ab68f262
  12. 30 4月, 2016 1 次提交
  13. 29 10月, 2015 1 次提交
    • M
      lightnvm: Support for Open-Channel SSDs · cd9e9808
      Matias Bjørling 提交于
      Open-channel SSDs are devices that share responsibilities with the host
      in order to implement and maintain features that typical SSDs keep
      strictly in firmware. These include (i) the Flash Translation Layer
      (FTL), (ii) bad block management, and (iii) hardware units such as the
      flash controller, the interface controller, and large amounts of flash
      chips. In this way, Open-channels SSDs exposes direct access to their
      physical flash storage, while keeping a subset of the internal features
      of SSDs.
      
      LightNVM is a specification that gives support to Open-channel SSDs
      LightNVM allows the host to manage data placement, garbage collection,
      and parallelism. Device specific responsibilities such as bad block
      management, FTL extensions to support atomic IOs, or metadata
      persistence are still handled by the device.
      
      The implementation of LightNVM consists of two parts: core and
      (multiple) targets. The core implements functionality shared across
      targets. This is initialization, teardown and statistics. The targets
      implement the interface that exposes physical flash to user-space
      applications. Examples of such targets include key-value store,
      object-store, as well as traditional block devices, which can be
      application-specific.
      
      Contributions in this patch from:
      
        Javier Gonzalez <jg@lightnvm.io>
        Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
        Jesper Madsen <jmad@itu.dk>
      Signed-off-by: NMatias Bjørling <m@bjorling.me>
      Signed-off-by: NJens Axboe <axboe@fb.com>
      cd9e9808
  14. 10 10月, 2015 1 次提交
  15. 08 10月, 2015 1 次提交
    • A
      add FPGA manager core · 6a8c3be7
      Alan Tull 提交于
      API to support programming FPGA's.
      
      The following functions are exported as GPL:
      * fpga_mgr_buf_load
         Load fpga from image in buffer
      
      * fpga_mgr_firmware_load
         Request firmware and load it to the FPGA.
      
      * fpga_mgr_register
      * fpga_mgr_unregister
         FPGA device drivers can be added by calling
         fpga_mgr_register() to register a set of
         fpga_manager_ops to do device specific stuff.
      
      * of_fpga_mgr_get
      * fpga_mgr_put
         Get/put a reference to a fpga manager.
      
      The following sysfs files are created:
      * /sys/class/fpga_manager/<fpga>/name
        Name of low level driver.
      
      * /sys/class/fpga_manager/<fpga>/state
        State of fpga manager
      Signed-off-by: NAlan Tull <atull@opensource.altera.com>
      Acked-by: NMichal Simek <michal.simek@xilinx.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6a8c3be7
  16. 05 10月, 2015 2 次提交
    • A
      intel_th: Add driver infrastructure for Intel(R) Trace Hub devices · 39f40346
      Alexander Shishkin 提交于
      Intel(R) Trace Hub (TH) is a set of hardware blocks (subdevices) that
      produce, switch and output trace data from multiple hardware and
      software sources over several types of trace output ports encoded
      in System Trace Protocol (MIPI STPv2) and is intended to perform
      full system debugging.
      
      For these subdevices, we create a bus, where they can be discovered
      and configured by userspace software.
      
      This patch creates this bus infrastructure, three types of devices
      (source, output, switch), resource allocation, some callback mechanisms
      to facilitate communication between the subdevices' drivers and some
      common sysfs attributes.
      Signed-off-by: NAlexander Shishkin <alexander.shishkin@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      39f40346
    • A
      stm class: Introduce an abstraction for System Trace Module devices · 7bd1d409
      Alexander Shishkin 提交于
      A System Trace Module (STM) is a device exporting data in System Trace
      Protocol (STP) format as defined by MIPI STP standards. Examples of such
      devices are Intel(R) Trace Hub and Coresight STM.
      
      This abstraction provides a unified interface for software trace sources
      to send their data over an STM device to a debug host. In order to do
      that, such a trace source needs to be assigned a pair of master/channel
      identifiers that all the data from this source will be tagged with. The
      STP decoder on the debug host side will use these master/channel tags to
      distinguish different trace streams from one another inside one STP
      stream.
      
      This abstraction provides a configfs-based policy management mechanism
      for dynamic allocation of these master/channel pairs based on trace
      source-supplied string identifier. It has the flexibility of being
      defined at runtime and at the same time (provided that the policy
      definition is aligned with the decoding end) consistency.
      
      For userspace trace sources, this abstraction provides write()-based and
      mmap()-based (if the underlying stm device allows this) output mechanism.
      
      For kernel-side trace sources, we provide "stm_source" device class that
      can be connected to an stm device at run time.
      
      Cc: linux-api@vger.kernel.org
      Reviewed-by: NMathieu Poirier <mathieu.poirier@linaro.org>
      Signed-off-by: NAlexander Shishkin <alexander.shishkin@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7bd1d409
  17. 06 8月, 2015 1 次提交
  18. 31 7月, 2015 1 次提交
    • M
      arm: perf: factor arm_pmu core out to drivers · fa8ad788
      Mark Rutland 提交于
      To enable sharing of the arm_pmu code with arm64, this patch factors it
      out to drivers/perf/. A new drivers/perf directory is added for
      performance monitor drivers to live under.
      
      MAINTAINERS is updated accordingly. Files added previously without a
      corresponsing MAINTAINERS update (perf_regs.c, perf_callchain.c, and
      perf_event.h) are also added.
      
      Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Will Deacon <will.deacon@arm.com>
      Signed-off-by: NMark Rutland <mark.rutland@arm.com>
      [will: augmented Kconfig help slightly]
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      fa8ad788
  19. 25 6月, 2015 1 次提交
  20. 04 2月, 2015 1 次提交
    • A
      i2o: move to staging · 2cbf7fe2
      Alan Cox 提交于
      The I2O layer deals with a technology that to say the least didn't catch on
      in the market.
      
      The only relevant products are some of the AMI MegaRAID - which supported I2O
      and its native mode (The native mode is faster and runs on Linux), an
      obscure crypto ethernet card that's now so many years out of date nobody
      would use it, the old DPT controllers, which speak their own dialect and
      have their own driver - and ermm.. thats about it.
      
      We also know the code isn't in good shape as recently a patch was proposed
      and queried as buggy, which in turn showed the existing code was broken
      already by prior "clean up" and nobody had noticed that either.
      
      It's coding style robot code nothing more. Like some forgotten corridor
      cleaned relentlessly by a lost Roomba but where no user has trodden in years.
      
      Move it to staging and then to /dev/null.
      
      The headers remain as they are shared with dpt_i2o.
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      2cbf7fe2
  21. 25 1月, 2015 1 次提交
  22. 26 11月, 2014 1 次提交
  23. 20 10月, 2014 1 次提交
  24. 24 9月, 2014 1 次提交
    • S
      soc: ti: add Keystone Navigator QMSS driver · 41f93af9
      Sandeep Nair 提交于
      The QMSS (Queue Manager Sub System) found on Keystone SOCs is one of
      the main hardware sub system which forms the backbone of the Keystone
      Multi-core Navigator. QMSS consist of queue managers, packed-data structure
      processors(PDSP), linking RAM, descriptor pools and infrastructure
      Packet DMA.
      
      The Queue Manager is a hardware module that is responsible for accelerating
      management of the packet queues. Packets are queued/de-queued by writing or
      reading descriptor address to a particular memory mapped location. The PDSPs
      perform QMSS related functions like accumulation, QoS, or event management.
      Linking RAM registers are used to link the descriptors which are stored in
      descriptor RAM. Descriptor RAM is configurable as internal or external memory.
      
      The QMSS driver manages the PDSP setups, linking RAM regions,
      queue pool management (allocation, push, pop and notify) and descriptor
      pool management. The specifics on the device tree bindings for
      QMSS can be found in:
      	Documentation/devicetree/bindings/soc/keystone-navigator-qmss.txt
      
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Kumar Gala <galak@codeaurora.org>
      Cc: Olof Johansson <olof@lixom.net>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Grant Likely <grant.likely@linaro.org>
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Signed-off-by: NSandeep Nair <sandeep_n@ti.com>
      Signed-off-by: NSantosh Shilimkar <santosh.shilimkar@ti.com>
      41f93af9
  25. 24 6月, 2014 1 次提交
  26. 20 6月, 2014 1 次提交
    • A
      thunderbolt: Add initial cactus ridge NHI support · 16603153
      Andreas Noever 提交于
      Thunderbolt hotplug is supposed to be handled by the firmware. But Apple
      decided to implement thunderbolt at the operating system level. The
      firmare only initializes thunderbolt devices that are present at boot
      time. This driver enables hotplug of thunderbolt of non-chained
      thunderbolt devices on Apple systems with a cactus ridge controller.
      
      This first patch adds the Kconfig file as well the parts of the driver
      which talk directly to the hardware (that is pci device setup, interrupt
      handling and RX/TX ring management).
      Signed-off-by: NAndreas Noever <andreas.noever@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      16603153
  27. 24 5月, 2014 1 次提交
  28. 01 3月, 2014 1 次提交
  29. 16 2月, 2014 1 次提交
  30. 17 10月, 2013 1 次提交
  31. 28 9月, 2013 1 次提交
  32. 18 6月, 2013 1 次提交
  33. 12 6月, 2013 1 次提交
  34. 01 5月, 2013 1 次提交