1. 29 9月, 2018 20 次提交
    • R
      microblaze: get cpu node with of_get_cpu_node · 4c29e593
      Rob Herring 提交于
      "device_type" use is deprecated for FDT though it has continued to be used
      for nodes like cpu nodes. Use of_get_cpu_node() instead which works using
      node names by default. This will allow the eventually removal of cpu
      device_type properties.
      
      Also, fix a leaked reference by adding a missing of_node_put.
      
      Cc: Michal Simek <monstr@monstr.eu>
      Signed-off-by: NRob Herring <robh@kernel.org>
      4c29e593
    • R
      fbdev: fsl-diu: get cpu node with of_get_cpu_node · a691240e
      Rob Herring 提交于
      "device_type" use is deprecated for FDT though it has continued to be used
      for nodes like cpu nodes. Use of_get_cpu_node() instead which works using
      node names by default. This will allow the eventually removal of cpu
      device_type properties.
      Acked-by: NTimur Tabi <timur@kernel.org>
      Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
      Cc: linux-fbdev@vger.kernel.org
      Cc: dri-devel@lists.freedesktop.org
      Signed-off-by: NRob Herring <robh@kernel.org>
      a691240e
    • R
      of: use for_each_of_cpu_node iterator · 651d44f9
      Rob Herring 提交于
      Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This
      has the side effect of defaulting to iterating using "cpu" node names in
      preference to the deprecated (for FDT) device_type == "cpu".
      
      Cc: Frank Rowand <frowand.list@gmail.com>
      Cc: devicetree@vger.kernel.org
      Reviewed-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: NRob Herring <robh@kernel.org>
      651d44f9
    • R
      iommu: fsl_pamu: use for_each_of_cpu_node iterator · a9a455e8
      Rob Herring 提交于
      Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This
      has the side effect of defaulting to iterating using "cpu" node names in
      preference to the deprecated (for FDT) device_type == "cpu".
      
      Cc: Joerg Roedel <joro@8bytes.org>
      Cc: iommu@lists.linux-foundation.org
      Signed-off-by: NRob Herring <robh@kernel.org>
      a9a455e8
    • R
      edac: cpc925: use for_each_of_cpu_node iterator · 37dc218b
      Rob Herring 提交于
      Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This
      has the side effect of defaulting to iterating using "cpu" node names in
      preference to the deprecated (for FDT) device_type == "cpu".
      
      The error messages are removed in the process as it's not the driver's
      job to be checking cpu nodes. Any problems with cpu nodes should be
      noticed by the architecture code.
      
      Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
      Cc: linux-edac@vger.kernel.org
      Acked-by: NBorislav Petkov <bp@suse.de>
      Signed-off-by: NRob Herring <robh@kernel.org>
      37dc218b
    • R
      clk: mvebu: use for_each_of_cpu_node iterator · 76ec23b1
      Rob Herring 提交于
      Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This
      has the side effect of defaulting to iterating using "cpu" node names in
      preference to the deprecated (for FDT) device_type == "cpu".
      
      Cc: Michael Turquette <mturquette@baylibre.com>
      Cc: linux-clk@vger.kernel.org
      Acked-by: NStephen Boyd <sboyd@kernel.org>
      Signed-off-by: NRob Herring <robh@kernel.org>
      76ec23b1
    • R
      x86: DT: use for_each_of_cpu_node iterator · 7de8f4aa
      Rob Herring 提交于
      Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This
      has the side effect of defaulting to iterating using "cpu" node names in
      preference to the deprecated (for FDT) device_type == "cpu".
      
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: x86@kernel.org
      Reviewed-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NRob Herring <robh@kernel.org>
      7de8f4aa
    • R
      SH: use for_each_of_cpu_node iterator · 8cabf5bc
      Rob Herring 提交于
      Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This
      has the side effect of defaulting to iterating using "cpu" node names in
      preference to the deprecated (for FDT) device_type == "cpu".
      
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Cc: Rich Felker <dalias@libc.org>
      Cc: linux-sh@vger.kernel.org
      Signed-off-by: NRob Herring <robh@kernel.org>
      8cabf5bc
    • R
      powerpc: 8xx: get cpu node with of_get_cpu_node · 38959a09
      Rob Herring 提交于
      "device_type" use is deprecated for FDT though it has continued to be used
      for nodes like cpu nodes. Use of_get_cpu_node() instead which works using
      node names by default. This will allow the eventually removal of cpu
      device_type properties.
      
      Also, fix a leaked reference and add a missing of_node_put.
      
      Cc: Vitaly Bordug <vitb@kernel.crashing.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: linuxppc-dev@lists.ozlabs.org
      Signed-off-by: NRob Herring <robh@kernel.org>
      38959a09
    • R
      powerpc: 4xx: get cpu node with of_get_cpu_node · 84dbc69a
      Rob Herring 提交于
      "device_type" use is deprecated for FDT though it has continued to be used
      for nodes like cpu nodes. Use of_get_cpu_node() instead which works using
      node names by default. This will allow the eventually removal of cpu
      device_type properties.
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: linuxppc-dev@lists.ozlabs.org
      Signed-off-by: NRob Herring <robh@kernel.org>
      84dbc69a
    • R
      powerpc: use for_each_of_cpu_node iterator · a94fe366
      Rob Herring 提交于
      Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This
      has the side effect of defaulting to iterating using "cpu" node names in
      preference to the deprecated (for FDT) device_type == "cpu".
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: linuxppc-dev@lists.ozlabs.org
      Signed-off-by: NRob Herring <robh@kernel.org>
      a94fe366
    • R
      openrisc: use for_each_of_cpu_node iterator · 5e5abae8
      Rob Herring 提交于
      Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This
      has the side effect of defaulting to iterating using "cpu" node names in
      preference to the deprecated (for FDT) device_type == "cpu".
      
      This also fixes a leaked reference for cpus node.
      
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
      Cc: openrisc@lists.librecores.org
      Acked-by: NStafford Horne <shorne@gmail.com>
      Signed-off-by: NRob Herring <robh@kernel.org>
      5e5abae8
    • R
      nios2: get cpu node with of_get_cpu_node · 1f0fe1f6
      Rob Herring 提交于
      "device_type" use is deprecated for FDT though it has continued to be used
      for nodes like cpu nodes. Use of_get_cpu_node() instead which works using
      node names by default. This will allow the eventually removal of cpu
      device_type properties.
      
      Also, fix a leaked reference by adding a missing of_node_put.
      
      Cc: Ley Foon Tan <lftan@altera.com>
      Cc: nios2-dev@lists.rocketboards.org
      Signed-off-by: NRob Herring <robh@kernel.org>
      1f0fe1f6
    • R
      c6x: use for_each_of_cpu_node iterator · 5a931a3c
      Rob Herring 提交于
      Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This
      has the side effect of defaulting to iterating using "cpu" node names
      in preference to the deprecated (for FDT) device_type == "cpu".
      
      Cc: Mark Salter <msalter@redhat.com>
      Cc: Aurelien Jacquiot <jacquiot.aurelien@gmail.com>
      Cc: linux-c6x-dev@linux-c6x.org
      Signed-off-by: NRob Herring <robh@kernel.org>
      5a931a3c
    • R
      arm64: use for_each_of_cpu_node iterator · de76e70a
      Rob Herring 提交于
      Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This
      has the side effect of defaulting to iterating using "cpu" node names in
      preference to the deprecated (for FDT) device_type == "cpu".
      
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Acked-by: NWill Deacon <will.deacon@arm.com>
      Signed-off-by: NRob Herring <robh@kernel.org>
      de76e70a
    • R
      ARM: shmobile: use for_each_of_cpu_node iterator · 5af5d40c
      Rob Herring 提交于
      Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This
      has the side effect of defaulting to iterating using "cpu" node names in
      preference to the deprecated (for FDT) device_type == "cpu".
      
      Cc: Magnus Damm <magnus.damm@gmail.com>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-renesas-soc@vger.kernel.org
      Reviewed-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Reviewed-by: NSimon Horman <horms+renesas@verge.net.au>
      Signed-off-by: NRob Herring <robh@kernel.org>
      5af5d40c
    • R
      ARM: topology: remove unneeded check for /cpus node · 07d44f1f
      Rob Herring 提交于
      Checking for "/cpus" node is not necessary as of_get_cpu_node() will fail
      later on anyways. The call to of_find_node_by_path() also leaks a
      reference. So just remove the check.
      
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: linux-arm-kernel@lists.infradead.org
      Signed-off-by: NRob Herring <robh@kernel.org>
      07d44f1f
    • R
      ARM: use for_each_of_cpu_node iterator · d4866f75
      Rob Herring 提交于
      Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This
      has the side effect of defaulting to iterating using "cpu" node names in
      preference to the deprecated (for FDT) device_type == "cpu".
      
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: linux-arm-kernel@lists.infradead.org
      Signed-off-by: NRob Herring <robh@kernel.org>
      d4866f75
    • R
      of: Support matching cpu nodes with no 'reg' property · 6487c15f
      Rob Herring 提交于
      For some single core ARM systems, the DTs can have a single cpu node
      without a reg property and #address-cells == 0. This case is valid and
      should match on cpu #0.
      
      Cc: Frank Rowand <frowand.list@gmail.com>
      Signed-off-by: NRob Herring <robh@kernel.org>
      6487c15f
    • R
      of: Add cpu node iterator for_each_of_cpu_node() · f1f207e4
      Rob Herring 提交于
      Iterating thru cpu nodes is a common pattern. Create a common iterator
      which can find child nodes either by node name or device_type == cpu.
      Using the former will allow for eventually dropping device_type
      properties which are deprecated for FDT.
      
      Cc: Frank Rowand <frowand.list@gmail.com>
      Reviewed-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: NRob Herring <robh@kernel.org>
      f1f207e4
  2. 08 9月, 2018 3 次提交
  3. 04 9月, 2018 2 次提交
  4. 03 9月, 2018 6 次提交
    • L
      Linux 4.19-rc2 · 57361846
      Linus Torvalds 提交于
      57361846
    • L
      Merge tag 'devicetree-fixes-for-4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · fd6868d8
      Linus Torvalds 提交于
      Pull devicetree updates from Rob Herring:
       "A couple of new helper functions in preparation for some tree wide
        clean-ups.
      
        I'm sending these new helpers now for rc2 in order to simplify the
        dependencies on subsequent cleanups across the tree in 4.20"
      
      * tag 'devicetree-fixes-for-4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
        of: Add device_type access helper functions
        of: add node name compare helper functions
        of: add helper to lookup compatible child node
      fd6868d8
    • L
      Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · a3ea9911
      Linus Torvalds 提交于
      Pull ARM SoC fixes from Olof Johansson:
       "First batch of fixes post-merge window:
      
         - A handful of devicetree changes for i.MX2{3,8} to change over to
           new panel bindings. The platforms were moved from legacy
           framebuffers to DRM and some development board panels hadn't yet
           been converted.
      
         - OMAP fixes related to ti-sysc driver conversion fallout, fixing
           some register offsets, no_console_suspend fixes, etc.
      
         - Droid4 changes to fix flaky eMMC probing and vibrator DTS mismerge.
      
         - Fixed 0755->0644 permissions on a newly added file.
      
         - Defconfig changes to make ARM Versatile more useful with QEMU
           (helps testing).
      
         - Enable defconfig options for new TI SoC platform that was merged
           this window (AM6)"
      
      * tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
        arm64: defconfig: Enable TI's AM6 SoC platform
        ARM: defconfig: Update the ARM Versatile defconfig
        ARM: dts: omap4-droid4: Fix emmc errors seen on some devices
        ARM: dts: Fix file permission for am335x-osd3358-sm-red.dts
        ARM: imx_v6_v7_defconfig: Select CONFIG_DRM_PANEL_SEIKO_43WVF1G
        ARM: mxs_defconfig: Select CONFIG_DRM_PANEL_SEIKO_43WVF1G
        ARM: dts: imx23-evk: Convert to the new display bindings
        ARM: dts: imx23-evk: Move regulators outside simple-bus
        ARM: dts: imx28-evk: Convert to the new display bindings
        ARM: dts: imx28-evk: Move regulators outside simple-bus
        Revert "ARM: dts: imx7d: Invert legacy PCI irq mapping"
        arm: dts: am4372: setup rtc as system-power-controller
        ARM: dts: omap4-droid4: fix vibrations on Droid 4
        bus: ti-sysc: Fix no_console_suspend handling
        bus: ti-sysc: Fix module register ioremap for larger offsets
        ARM: OMAP2+: Fix module address for modules using mpu_rt_idx
        ARM: OMAP2+: Fix null hwmod for ti-sysc debug
      a3ea9911
    • L
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 899ba795
      Linus Torvalds 提交于
      Pull x86 fixes from Thomas Gleixner:
       "Speculation:
      
         - Make the microcode check more robust
      
         - Make the L1TF memory limit depend on the internal cache physical
           address space and not on the CPUID advertised physical address
           space, which might be significantly smaller. This avoids disabling
           L1TF on machines which utilize the full physical address space.
      
         - Fix the GDT mapping for EFI calls on 32bit PTI
      
         - Fix the MCE nospec implementation to prevent #GP
      
        Fixes and robustness:
      
         - Use the proper operand order for LSL in the VDSO
      
         - Prevent NMI uaccess race against CR3 switching
      
         - Add a lockdep check to verify that text_mutex is held in
           text_poke() functions
      
         - Repair the fallout of giving native_restore_fl() a prototype
      
         - Prevent kernel memory dumps based on usermode RIP
      
         - Wipe KASAN shadow stack before rewinding the stack to prevent false
           positives
      
         - Move the AMS GOTO enforcement to the actual build stage to allow
           user API header extraction without a compiler
      
         - Fix a section mismatch introduced by the on demand VDSO mapping
           change
      
        Miscellaneous:
      
         - Trivial typo, GCC quirk removal and CC_SET/OUT() cleanups"
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/pti: Fix section mismatch warning/error
        x86/vdso: Fix lsl operand order
        x86/mce: Fix set_mce_nospec() to avoid #GP fault
        x86/efi: Load fixmap GDT in efi_call_phys_epilog()
        x86/nmi: Fix NMI uaccess race against CR3 switching
        x86: Allow generating user-space headers without a compiler
        x86/dumpstack: Don't dump kernel memory based on usermode RIP
        x86/asm: Use CC_SET()/CC_OUT() in __gen_sigismember()
        x86/alternatives: Lockdep-enforce text_mutex in text_poke*()
        x86/entry/64: Wipe KASAN stack shadow before rewind_stack_do_exit()
        x86/irqflags: Mark native_restore_fl extern inline
        x86/build: Remove jump label quirk for GCC older than 4.5.2
        x86/Kconfig: Fix trivial typo
        x86/speculation/l1tf: Increase l1tf memory limit for Nehalem+
        x86/spectre: Add missing family 6 check to microcode check
      899ba795
    • L
      Merge branch 'smp-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 1395d109
      Linus Torvalds 提交于
      Pull CPU hotplug fix from Thomas Gleixner:
       "Remove the stale skip_onerr member from the hotplug states"
      
      * 'smp-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        cpu/hotplug: Remove skip_onerr field from cpuhp_step structure
      1395d109
    • L
      Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 501dacbc
      Linus Torvalds 提交于
      Pull core fixes from Thomas Gleixner:
       "A small set of updates for core code:
      
         - Prevent tracing in functions which are called from trace patching
           via stop_machine() to prevent executing half patched function trace
           entries.
      
         - Remove old GCC workarounds
      
         - Remove pointless includes of notifier.h"
      
      * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        objtool: Remove workaround for unreachable warnings from old GCC
        notifier: Remove notifier header file wherever not used
        watchdog: Mark watchdog touch functions as notrace
      501dacbc
  5. 02 9月, 2018 5 次提交
  6. 01 9月, 2018 2 次提交
  7. 31 8月, 2018 2 次提交
    • J
      x86/efi: Load fixmap GDT in efi_call_phys_epilog() · eeb89e2b
      Joerg Roedel 提交于
      When PTI is enabled on x86-32 the kernel uses the GDT mapped in the fixmap
      for the simple reason that this address is also mapped for user-space.
      
      The efi_call_phys_prolog()/efi_call_phys_epilog() wrappers change the GDT
      to call EFI runtime services and switch back to the kernel GDT when they
      return. But the switch-back uses the writable GDT, not the fixmap GDT.
      
      When that happened and and the CPU returns to user-space it switches to the
      user %cr3 and tries to restore user segment registers. This fails because
      the writable GDT is not mapped in the user page-table, and without a GDT
      the fault handlers also can't be launched. The result is a triple fault and
      reboot of the machine.
      
      Fix that by restoring the GDT back to the fixmap GDT which is also mapped
      in the user page-table.
      
      Fixes: 7757d607 x86/pti: ('Allow CONFIG_PAGE_TABLE_ISOLATION for x86_32')
      Reported-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NJoerg Roedel <jroedel@suse.de>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Tested-by: NGuenter Roeck <linux@roeck-us.net>
      Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
      Cc: Michal Hocko <mhocko@suse.com>
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Dave Hansen <dave.hansen@intel.com>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: hpa@zytor.com
      Cc: linux-efi@vger.kernel.org
      Link: https://lkml.kernel.org/r/1535702738-10971-1-git-send-email-joro@8bytes.org
      eeb89e2b
    • L
      Merge tag 'for-linus-4.19b-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 4290d5b9
      Linus Torvalds 提交于
      Pull xen fixes from Juergen Gross:
      
       - minor cleanup avoiding a warning when building with new gcc
      
       - a patch to add a new sysfs node for Xen frontend/backend drivers to
         make it easier to obtain the state of a pv device
      
       - two fixes for 32-bit pv-guests to avoid intermediate L1TF vulnerable
         PTEs
      
      * tag 'for-linus-4.19b-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        x86/xen: remove redundant variable save_pud
        xen: export device state to sysfs
        x86/pae: use 64 bit atomic xchg function in native_ptep_get_and_clear
        x86/xen: don't write ptes directly in 32-bit PV guests
      4290d5b9