1. 03 Jul, 2018 26 commits
  2. 28 Jun, 2018 8 commits
    • Johan Hovold's avatar
      gnss: add receiver type support · 10f14663
      Johan Hovold authored
      Add a "type" device attribute and a "GNSS_TYPE" uevent variable which
      can be used to determine the type of a GNSS receiver. The currently
      identified types reflect the protocol(s) supported by a receiver:
      
      	"NMEA"	NMEA 0183
      	"SiRF"	SiRF Binary
      	"UBX"	UBX
      
      Note that both SiRF and UBX type receivers typically support a subset of
      NMEA 0183 with vendor extensions (e.g. to allow switching to the vendor
      protocol).
      Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      10f14663
    • Johan Hovold's avatar
      gnss: add driver for sirfstar-based receivers · d2efbbd1
      Johan Hovold authored
      Add driver for serial-connected SiRFstar-based GNSS receivers.
      
      These devices typically boot into hibernate mode from which they can be
      woken using a pulse on the ON_OFF input pin. Once active, a pulse on the
      same ON_OFF pin is used to put the device back into hibernate mode. The
      current state can be determined by sampling the WAKEUP output.
      
      Hardware configurations where WAKEUP has been connected to ON_OFF (and
      where an initial WAKEUP pulse during boot is sufficient to have the
      device boot into active mode) are also supported. In this case, device
      power is managed using the main-supply regulator only.
      
      Note that configurations where WAKEUP is left not connected, so that the
      device power state can only indirectly be determined using the I/O
      interface, is currently not supported. It should be fairly
      straight-forward to extend the current implementation with such support
      however (and this this is the main reason for not using the generic
      serial implementation for this driver).
      
      Note that timepulse-support is left unimplemented.
      Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d2efbbd1
    • Johan Hovold's avatar
      dt-bindings: gnss: add sirfstar binding · 176193b7
      Johan Hovold authored
      Add binding for SiRFstar-based GNSS receivers.
      
      Note that while four compatible-strings are initially added representing
      devices which differ in which I/O interfaces they support, they
      otherwise essentially share the same feature set.
      
      Pin and supply names vary slightly, as do some recommended timings.
      
      Note that the wakeup gpio is not intended to be used as a wakeup source,
      but rather to detect the current power state of the device (active or
      hibernate).
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      176193b7
    • Johan Hovold's avatar
      gnss: add driver for u-blox receivers · 1ad69f10
      Johan Hovold authored
      Add driver for serial-connected u-blox GNSS receivers.
      
      Note that the driver uses the generic GNSS serial implementation and
      therefore essentially only manages power abstracted into three power
      states: ACTIVE, STANDBY, and OFF.
      
      For u-blox receivers with a main supply and no enable-gpios, this simply
      means that the main supply is disabled in STANDBY and OFF (the optional
      backup supply is kept enabled while the driver is bound).
      
      Note that timepulse-support is not yet implemented.
      Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      1ad69f10
    • Johan Hovold's avatar
      dt-bindings: gnss: add u-blox binding · cf408372
      Johan Hovold authored
      Add binding for u-blox GNSS receivers.
      
      Note that the u-blox product names encodes form factor (e.g. "neo"),
      chipset (e.g. "8") and variant (e.g. "q"), but that only formfactor and
      chipset is used for the compatible strings (for now).
      Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      cf408372
    • Johan Hovold's avatar
      gnss: add generic serial driver · 37768b05
      Johan Hovold authored
      Add a generic serial GNSS driver (library) which provides a common
      implementation for the gnss interface and power management (runtime and
      system suspend). This allows GNSS drivers for specific chip to be
      implemented by simply providing a set_power() callback to handle three
      states: ACTIVE, STANDBY and OFF.
      Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      37768b05
    • Johan Hovold's avatar
      dt-bindings: add generic gnss binding · 98ddec80
      Johan Hovold authored
      Describe generic properties for GNSS receivers.
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      98ddec80
    • Johan Hovold's avatar
      gnss: add GNSS receiver subsystem · 2b6a4403
      Johan Hovold authored
      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: default avatarJohan Hovold <johan@kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      2b6a4403
  3. 24 Jun, 2018 6 commits
    • Linus Torvalds's avatar
      Linux 4.18-rc2 · 7daf201d
      Linus Torvalds authored
      7daf201d
    • Linus Torvalds's avatar
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · c81b995f
      Linus Torvalds authored
      Pull perf fixes from Thomas Gleixner:
       "A pile of perf updates:
      
        Kernel side:
      
         - Remove an incorrect warning in uprobe_init_insn() when
           insn_get_length() fails. The error return code is handled at the
           call site.
      
         - Move the inline keyword to the right place in the perf ringbuffer
           code to address a W=1 build warning.
      
        Tooling:
      
        perf stat:
      
         - Fix metric column header display alignment
      
         - Improve error messages for default attributes, providing better
           output for error in command line.
      
         - Add --interval-clear option, to provide a 'watch' like printing
      
        perf script:
      
         - Show hw-cache events too
      
        perf c2c:
      
         - Fix data dependency problem in layout of 'struct c2c_hist_entry'
      
        Core:
      
         - Do not blindly assume that 'struct perf_evsel' can be obtained via
           a straight forward container_of() as there are call sites which
           hand in a plain 'struct hist' which is not part of a container.
      
         - Fix error index in the PMU event parser, so that error messages can
           point to the problematic token"
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/core: Move the inline keyword at the beginning of the function declaration
        uprobes/x86: Remove incorrect WARN_ON() in uprobe_init_insn()
        perf script: Show hw-cache events
        perf c2c: Keep struct hist_entry at the end of struct c2c_hist_entry
        perf stat: Add event parsing error handling to add_default_attributes
        perf stat: Allow to specify specific metric column len
        perf stat: Fix metric column header display alignment
        perf stat: Use only color_fprintf call in print_metric_only
        perf stat: Add --interval-clear option
        perf tools: Fix error index for pmu event parser
        perf hists: Reimplement hists__has_callchains()
        perf hists browser gtk: Use hist_entry__has_callchains()
        perf hists: Make hist_entry__has_callchains() work with 'perf c2c'
        perf hists: Save the callchain_size in struct hist_entry
      c81b995f
    • Linus Torvalds's avatar
      Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 2ce413ec
      Linus Torvalds authored
      Pull rseq fixes from Thomas Gleixer:
       "A pile of rseq related fixups:
      
         - Prevent infinite recursion when delivering SIGSEGV
      
         - Remove the abort of rseq critical section on fork() as syscalls
           inside rseq critical sections are explicitely forbidden. So no
           point in doing the abort on the child.
      
         - Align the rseq structure on 32 bytes in the ARM selftest code.
      
         - Fix file permissions of the test script"
      
      * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        rseq: Avoid infinite recursion when delivering SIGSEGV
        rseq/cleanup: Do not abort rseq c.s. in child on fork()
        rseq/selftests/arm: Align 'struct rseq_cs' on 32 bytes
        rseq/selftests: Make run_param_test.sh executable
      2ce413ec
    • Linus Torvalds's avatar
      Merge branch 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 64dd7655
      Linus Torvalds authored
      Pull EFI fixes from Thomas Gleixner:
       "Two fixlets for the EFI maze:
      
         - Properly zero variables to prevent an early boot hang on EFI mixed
           mode systems
      
         - Fix the fallout of merging the 32bit and 64bit variants of EFI PCI
           related code which ended up chosing the 32bit variant of the actual
           EFi call invocation which leads to failures on 64bit"
      
      * 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        efi/x86: Fix incorrect invocation of PciIo->Attributes()
        efi/libstub/tpm: Initialize efi_physical_addr_t vars to zero for mixed mode
      64dd7655
    • Linus Torvalds's avatar
      Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · d3a6749c
      Linus Torvalds authored
      Pull core fixes from Thomas Gleixner:
       "Two tiny fixes:
      
         - Add the missing machine_real_restart() to objtools noreturn list so
           it stops complaining
      
         - Fix a trivial comment typo"
      
      * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        kernel.h: Fix a typo in comment
        objtool: Add machine_real_restart() to the noreturn list
      d3a6749c
    • Linus Torvalds's avatar
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · d4e860ea
      Linus Torvalds authored
      Pull x86 fixes from Thomas Gleixner:
       "A set of fixes for x86:
      
         - Make Xen PV guest deal with speculative store bypass correctly
      
         - Address more fallout from the 5-Level pagetable handling. Undo an
           __initdata annotation to avoid section mismatch and malfunction
           when post init code would touch the freed variable.
      
         - Handle exception fixup in math_error() before calling notify_die().
           The reverse call order incorrectly triggers notify_die() listeners
           for soemthing which is handled correctly at the site which issues
           the floating point instruction.
      
         - Fix an off by one in the LLC topology calculation on AMD
      
         - Handle non standard memory block sizes gracefully un UV platforms
      
         - Plug a memory leak in the microcode loader
      
         - Sanitize the purgatory build magic
      
         - Add the x86 specific device tree bindings directory to the x86
           MAINTAINER file patterns"
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/mm: Fix 'no5lvl' handling
        Revert "x86/mm: Mark __pgtable_l5_enabled __initdata"
        x86/CPU/AMD: Fix LLC ID bit-shift calculation
        MAINTAINERS: Add file patterns for x86 device tree bindings
        x86/microcode/intel: Fix memleak in save_microcode_patch()
        x86/platform/UV: Add kernel parameter to set memory block size
        x86/platform/UV: Use new set memory block size function
        x86/platform/UV: Add adjustable set memory block size function
        x86/build: Remove unnecessary preparation for purgatory
        Revert "kexec/purgatory: Add clean-up for purgatory directory"
        x86/xen: Add call of speculative_store_bypass_ht_init() to PV paths
        x86: Call fixup_exception() before notify_die() in math_error()
      d4e860ea