1. 18 12月, 2018 3 次提交
  2. 06 12月, 2018 1 次提交
  3. 05 12月, 2018 4 次提交
    • M
      xtensa: xtfpga.dtsi: fix dtc warnings about SPI · f37598be
      Max Filippov 提交于
      Rename SPI controller node in the XTFPGA DTS to spi@...
      This fixes the following build warnings:
      
      arch/xtensa/boot/dts/kc705_nommu.dtb: Warning (spi_bus_bridge):
       /soc/spi-master@0d0a0000: node name for SPI buses should be 'spi'
      arch/xtensa/boot/dts/kc705_nommu.dtb: Warning (spi_bus_reg):
       Failed prerequisite 'spi_bus_bridge'
      arch/xtensa/boot/dts/lx200mx.dtb: Warning (spi_bus_bridge):
       /soc/spi-master@0d0a0000: node name for SPI buses should be 'spi'
      arch/xtensa/boot/dts/lx200mx.dtb: Warning (spi_bus_reg):
       Failed prerequisite 'spi_bus_bridge'
      arch/xtensa/boot/dts/kc705.dtb: Warning (spi_bus_bridge):
       /soc/spi-master@0d0a0000: node name for SPI buses should be 'spi'
      arch/xtensa/boot/dts/kc705.dtb: Warning (spi_bus_reg):
       Failed prerequisite 'spi_bus_bridge'
      arch/xtensa/boot/dts/ml605.dtb: Warning (spi_bus_bridge):
       /soc/spi-master@0d0a0000: node name for SPI buses should be 'spi'
      arch/xtensa/boot/dts/ml605.dtb: Warning (spi_bus_reg):
       Failed prerequisite 'spi_bus_bridge'
      arch/xtensa/boot/dts/lx60.dtb: Warning (spi_bus_bridge):
       /soc/spi-master@0d0a0000: node name for SPI buses should be 'spi'
      arch/xtensa/boot/dts/lx60.dtb: Warning (spi_bus_reg):
       Failed prerequisite 'spi_bus_bridge'
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      f37598be
    • M
      xtensa: don't clear cpenable unconditionally on release · be38e4f2
      Max Filippov 提交于
      Clearing cpenable special register for a task without changing
      coprocessor owner for the coprocessors that were enabled will result in
      coprocessor context flush and immediate reload at the next attempt to
      access this coprocessor if it happens before the context switch.
      Avoid it by only clearing cpenable special register if
      coprocessor_release_all is called for the current task.
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      be38e4f2
    • M
      xtensa: simplify coprocessor.S · 5dacbbef
      Max Filippov 提交于
      Use addresses instead of offsets and drop unneeded offset -> address
      calculations. Don't generate any code for undefined coprocessors.
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      5dacbbef
    • M
      xtensa: clean up WSR*/RSR*/get_sr/set_sr · cad6fade
      Max Filippov 提交于
      WSR and RSR are too generic and collide with other macro definitions in
      the kernel causing warnings in allmodconfig builds. Drop WSR and RSR
      macros and WSR_* and RSR_* variants. Change get_sr and set_sr to
      xtensa_get_sr and xtensa_set_sr. Fix up users.
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      cad6fade
  4. 03 12月, 2018 13 次提交
    • M
      xtensa: drop unused declarations from elf.h · c066cc8a
      Max Filippov 提交于
      do_copy_regs, do_restore_regs, do_save_fpregs and do_restore_fpregs are
      not used or implemented by xtensa, drop these declarations from the
      arch/xtensa/include/asm/elf.h
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      c066cc8a
    • M
      xtensa: clean up syscall.h · 58b17c55
      Max Filippov 提交于
      Drop non-existent/unneeded function declarations, add header guard.
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      58b17c55
    • M
      xtensa: drop unused coprocessor helper functions · 3ffc2df9
      Max Filippov 提交于
      coprocessor_save, coprocessor_load and coprocessor_restore are neither
      used nor exported for use by modules. Drop them.
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      3ffc2df9
    • M
      xtensa: drop custom PTRACE_{PEEK,POKE}{TEXT,DATA} · 633f1ffb
      Max Filippov 提交于
      Custom implementations of these ptrace calls are the same as generic
      implementations. Drop custom code and use generic.
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      633f1ffb
    • M
      xtensa: drop unused field from the struct exc_table · 44ba57a2
      Max Filippov 提交于
      exc_table::syscall_save and corresponding macro EXC_TABLE_SYSCALL_SAVE
      have never been used by the xtensa code. Drop them.
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      44ba57a2
    • M
      xtensa: drop fast_syscall_kernel · 8ed3a542
      Max Filippov 提交于
      There must be no xtensa-specific syscalls from the kernel code: register
      spilling uses call+entry sequence and atomics have proper function
      implementations. Drop fast_syscall_xtensa.
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      8ed3a542
    • F
      xtensa: generate uapi header and syscall table header files · 5eacadb5
      Firoz Khan 提交于
      System call table generation script must be run to gener-
      ate unistd_32.h and syscall_table.h files. This patch will
      have changes which will invokes the script.
      
      This patch will generate unistd_32.h and syscall_table.h
      files by the syscall table generation script invoked by
      xtensa/Makefile and the generated files against the removed
      files must be identical.
      
      The generated uapi header file will be included in uapi/-
      asm/unistd.h and generated system call table header file
      will be included by kernel/syscall.c file.
      Signed-off-by: NFiroz Khan <firoz.khan@linaro.org>
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      5eacadb5
    • F
      xtensa: add system call table generation support · c7914ef6
      Firoz Khan 提交于
      The system call tables are in different format in all
      architecture and it will be difficult to manually add,
      modify or delete the syscall table entries in the res-
      pective files. To make it easy by keeping a script and
      which will generate the uapi header and syscall table
      file. This change will also help to unify the implemen-
      tation across all architectures.
      
      The system call table generation script is added in
      kernel/syscalls directory which contain the scripts to
      generate both uapi header file and system call table
      files. The syscall.tbl will be input for the scripts.
      
      syscall.tbl contains the list of available system calls
      along with system call number and corresponding entry
      point. Add a new system call in this architecture will
      be possible by adding new entry in the syscall.tbl file.
      
      Adding a new table entry consisting of:
        	- System call number.
      	- ABI.
      	- System call name.
      	- Entry point name.
      
      syscallhdr.sh and syscalltbl.sh will generate uapi header
      unistd_32.h and syscall_table.h files respectively. Both
      .sh files will parse the content syscall.tbl to generate
      the header and table files. unistd_32.h will be included
      by uapi/asm/unistd.h and syscall_table.h is included by
      kernel/syscall.c - the real system call table.
      
      ARM, s390 and x86 architecuture does have similar support.
      I leverage their implementation to come up with a generic
      solution.
      Signed-off-by: NFiroz Khan <firoz.khan@linaro.org>
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      c7914ef6
    • F
      xtensa: add __NR_syscalls along with __NR_syscall_count · a86067f5
      Firoz Khan 提交于
      __NR_syscall_count macro holds the number of system call
      exist in xtensa architecture. We have to change the value
      of __NR_syscall_count, if we add or delete a system call.
      
      One of the patch in this patch series has a script which
      will generate a uapi header based on syscall.tbl file.
      The syscall.tbl file contains the total number of system
      calls information. So we have two option to update __NR-
      _syscall_count value.
      
      1. Update __NR_syscall_count in asm/unistd.h manually by
         counting the no.of system calls. No need to update __NR-
         _syscall_count until we either add a new system call or
         delete existing system call.
      
      2. We can keep this feature it above mentioned script,
         that will count the number of syscalls and keep it in
         a generated file. In this case we don't need to expli-
         citly update __NR_syscall_count in asm/unistd.h file.
      
      The 2nd option will be the recommended one. For that, I
      added the __NR_syscalls macro in uapi/asm/unistd.h.
      The macro __NR_syscalls also added for making the name
      convention same across all architecture. While __NR_syscalls
      isn't strictly part of the uapi, having it as part of the
      generated header to simplifies the implementation. We also
      need to enclose this macro with #ifdef __KERNEL__ to avoid
      side effects.
      Signed-off-by: NFiroz Khan <firoz.khan@linaro.org>
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      [Max: Drop __NR_syscall_count completely, use __NR_syscalls instead]
      a86067f5
    • L
      Linux 4.20-rc5 · 25956467
      Linus Torvalds 提交于
      25956467
    • L
      Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · 6a512726
      Linus Torvalds 提交于
      Pull ARM SoC fixes from Olof Johansson:
       "Volume is a little higher than usual due to a set of gpio fixes for
        Davinci platforms that's been around a while, still seemed appropriate
        to not hold off until next merge window.
      
        Besides that it's the usual mix of minor fixes, mostly corrections of
        small stuff in device trees.
      
        Major stability-related one is the removal of a regulator from DT on
        Rock960, since DVFS caused undervoltage. I expect it'll be restored
        once they figure out the underlying issue"
      
      * tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (28 commits)
        MAINTAINERS: Remove unused Qualcomm SoC mailing list
        ARM: davinci: dm644x: set the GPIO base to 0
        ARM: davinci: da830: set the GPIO base to 0
        ARM: davinci: dm355: set the GPIO base to 0
        ARM: davinci: dm646x: set the GPIO base to 0
        ARM: davinci: dm365: set the GPIO base to 0
        ARM: davinci: da850: set the GPIO base to 0
        gpio: davinci: restore a way to manually specify the GPIO base
        ARM: davinci: dm644x: define gpio interrupts as separate resources
        ARM: davinci: dm355: define gpio interrupts as separate resources
        ARM: davinci: dm646x: define gpio interrupts as separate resources
        ARM: davinci: dm365: define gpio interrupts as separate resources
        ARM: davinci: da8xx: define gpio interrupts as separate resources
        ARM: dts: at91: sama5d2: use the divided clock for SMC
        ARM: dts: imx51-zii-rdu1: Remove EEPROM node
        ARM: dts: rockchip: Remove @0 from the veyron memory node
        arm64: dts: rockchip: Fix PCIe reset polarity for rk3399-puma-haikou.
        arm64: dts: qcom: msm8998: Reserve gpio ranges on MTP
        arm64: dts: sdm845-mtp: Reserve reserved gpios
        arm64: dts: ti: k3-am654: Fix wakeup_uart reg address
        ...
      6a512726
    • L
      Merge tag 'for-linus-4.20a-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 292974c5
      Linus Torvalds 提交于
      Pull xen fixes from Juergen Gross:
      
       - A revert of a previous commit as it is no longer necessary and has
         shown to cause problems in some memory hotplug cases.
      
       - Some small fixes and a minor cleanup.
      
       - A patch for adding better diagnostic data in a very rare failure
         case.
      
      * tag 'for-linus-4.20a-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        pvcalls-front: fixes incorrect error handling
        Revert "xen/balloon: Mark unallocated host memory as UNUSABLE"
        xen: xlate_mmu: add missing header to fix 'W=1' warning
        xen/x86: add diagnostic printout to xen_mc_flush() in case of error
        x86/xen: cleanup includes in arch/x86/xen/spinlock.c
      292974c5
    • L
      Merge tag 'dmaengine-fix-4.20-rc5' of git://git.infradead.org/users/vkoul/slave-dma · a234c737
      Linus Torvalds 提交于
      Pull dmaengine fixes from Vinod Koul:
       "This contains two fixes to at_hdmac which fixes long standing bus
        reported recently on serial transfers causing memory leak. These fixes
        were done by Richard Genoud"
      
      * tag 'dmaengine-fix-4.20-rc5' of git://git.infradead.org/users/vkoul/slave-dma:
        dmaengine: at_hdmac: fix module unloading
        dmaengine: at_hdmac: fix memory leak in at_dma_xlate()
      a234c737
  5. 02 12月, 2018 3 次提交
    • L
      Merge branch 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 4b783176
      Linus Torvalds 提交于
      Pull STIBP fallout fixes from Thomas Gleixner:
       "The performance destruction department finally got it's act together
        and came up with a cure for the STIPB regression:
      
         - Provide a command line option to control the spectre v2 user space
           mitigations. Default is either seccomp or prctl (if seccomp is
           disabled in Kconfig). prctl allows mitigation opt-in, seccomp
           enables the migitation for sandboxed processes.
      
         - Rework the code to handle the conditional STIBP/IBPB control and
           remove the now unused ptrace_may_access_sched() optimization
           attempt
      
         - Disable STIBP automatically when SMT is disabled
      
         - Optimize the switch_to() logic to avoid MSR writes and invocations
           of __switch_to_xtra().
      
         - Make the asynchronous speculation TIF updates synchronous to
           prevent stale mitigation state.
      
        As a general cleanup this also makes retpoline directly depend on
        compiler support and removes the 'minimal retpoline' option which just
        pretended to provide some form of security while providing none"
      
      * 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (31 commits)
        x86/speculation: Provide IBPB always command line options
        x86/speculation: Add seccomp Spectre v2 user space protection mode
        x86/speculation: Enable prctl mode for spectre_v2_user
        x86/speculation: Add prctl() control for indirect branch speculation
        x86/speculation: Prepare arch_smt_update() for PRCTL mode
        x86/speculation: Prevent stale SPEC_CTRL msr content
        x86/speculation: Split out TIF update
        ptrace: Remove unused ptrace_may_access_sched() and MODE_IBRS
        x86/speculation: Prepare for conditional IBPB in switch_mm()
        x86/speculation: Avoid __switch_to_xtra() calls
        x86/process: Consolidate and simplify switch_to_xtra() code
        x86/speculation: Prepare for per task indirect branch speculation control
        x86/speculation: Add command line control for indirect branch speculation
        x86/speculation: Unify conditional spectre v2 print functions
        x86/speculataion: Mark command line parser data __initdata
        x86/speculation: Mark string arrays const correctly
        x86/speculation: Reorder the spec_v2 code
        x86/l1tf: Show actual SMT state
        x86/speculation: Rework SMT state change
        sched/smt: Expose sched_smt_present static key
        ...
      4b783176
    • L
      Merge tag 'for-linus-20181201' of git://git.kernel.dk/linux-block · 88058417
      Linus Torvalds 提交于
      Pull block layer fixes from Jens Axboe:
      
       - Single range elevator discard merge fix, that caused crashes (Ming)
      
       - Fix for a regression in O_DIRECT, where we could potentially lose the
         error value (Maximilian Heyne)
      
       - NVMe pull request from Christoph, with little fixes all over the map
         for NVMe.
      
      * tag 'for-linus-20181201' of git://git.kernel.dk/linux-block:
        block: fix single range discard merge
        nvme-rdma: fix double freeing of async event data
        nvme: flush namespace scanning work just before removing namespaces
        nvme: warn when finding multi-port subsystems without multipathing enabled
        fs: fix lost error code in dio_complete
        nvme-pci: fix surprise removal
        nvme-fc: initialize nvme_req(rq)->ctrl after calling __nvme_fc_init_request()
        nvme: Free ctrl device name on init failure
      88058417
    • L
      Merge tag 'pci-v4.20-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci · c734b425
      Linus Torvalds 提交于
      Pull PCI fixes from Bjorn Helgaas:
      
       - Fix a link speed checking interface that broke PCIe gen3 cards in
         gen1 slots (Mikulas Patocka)
      
       - Fix an imx6 link training error (Trent Piepho)
      
       - Fix a layerscape outbound window accessor calling error (Hou
         Zhiqiang)
      
       - Fix a DesignWare endpoint MSI-X address calculation error (Gustavo
         Pimentel)
      
      * tag 'pci-v4.20-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
        PCI: Fix incorrect value returned from pcie_get_speed_cap()
        PCI: dwc: Fix MSI-X EP framework address calculation bug
        PCI: layerscape: Fix wrong invocation of outbound window disable accessor
        PCI: imx6: Fix link training status detection in link up check
      c734b425
  6. 01 12月, 2018 16 次提交