- 16 5月, 2018 2 次提交
-
-
由 Olof Johansson 提交于
Merge tag 'v4.17-next-dts64' of https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux into next/dt - add clock and pinctrl nodes for mt2712e - add High-Speed DMA and audio nodes for mt7622 * tag 'v4.17-next-dts64' of https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux: arm64: dts: mt7622: add audio related device nodes arm64: dts: mt7622: add High-Speed DMA device nodes arm64: dts: mt2712: add pintcrl device node. arm64: dts: mt2712: add pintcrl file arm64: dts: add clock device nodes of MT2712 Signed-off-by: NOlof Johansson <olof@lixom.net>
-
由 Olof Johansson 提交于
Merge tag 'v4.17-next-dts32' of https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux into next/dt convert to SPDX IDs mt7623: - add audio, bluetooth, highspees DMA and SPI-NOR nodes - fix invalid memory nodes by not using skeleton64.dtsi - fix memory size for bananapi-r2 - fix dtc warnings - refactor dts and dtsi to aviod code duplication - add mt7623n and mt7623a reference boards * tag 'v4.17-next-dts32' of https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux: arm: dts: mt7623: add MT7623N reference board with eMMC arm: dts: mt7623: add MT7623A reference boards arm: dts: mt7623: add MT7623A SoC level DTS arm: dts: mt7623: extend common file reused by all boards with MT7623 SoCs arm: dts: mt6323: move node mt6323 leds to mt6323.dtsi arm: dts: mt7623: add BTIF, HSDMA and SPI-NOR device nodes arm: dts: mt7623: fix all Warnings (unit_address_vs_reg) arm: dts: mt7623: fix available memory size on bananapi-r2 arm: dts: mt7623: fix invalid memory node being generated arm: dts: mediatek: converted to using SPDX identifiers arm: dts: mediatek: modify audio related nodes for both MT2701 and MT7623 Signed-off-by: NOlof Johansson <olof@lixom.net>
-
- 15 5月, 2018 5 次提交
-
-
由 Olof Johansson 提交于
Merge tag 'samsung-dt64-4.18' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux into next/dt Samsung DTS ARM64 changes for v4.18 1. Fix DTC warnings. 2. Add mem-2-mem Scaler devices. * tag 'samsung-dt64-4.18' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux: arm64: dts: exynos: Add mem-2-mem Scaler devices arm64: dts: exynos: Remove unneeded address space mapping for soc node arm64: dts: exynos: Move syscon poweroff and restart nodes under the PMU Signed-off-by: NOlof Johansson <olof@lixom.net>
-
由 Olof Johansson 提交于
Merge tag 'samsung-dt-4.18' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux into next/dt Samsung DTS ARM changes for v4.18 1. Add support for USB OTG port on Origen board. 2. Allow earlycon on Rinato board. 3. Cleanup from obsolete properties. 4. Fix DTC warnings. 5. Remove Exynos5440 entirely. 6. Add mem-2-mem Scaler devices. * tag 'samsung-dt-4.18' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux: ARM: dts: exynos: Update x and y properties for mms114 touchscreen ARM: dts: exynos: Add mem-2-mem Scaler devices ARM: dts: s3c64xx: Remove skeleton.dtsi and fix DTC warnings for /memory ARM: dts: s3c24xx: Fix unnecessary address/size cells DTC warnings ARM: dts: s3c24xx: Remove skeleton.dtsi and fix DTC warning for /memory ARM: dts: exynos/s3c: Remove leading 0x and 0s from bindings notation ARM: dts: exynos: Remove Exynos5440 ARM: dts: exynos: Remove unnecessary address/size properties in dp-controller of Exynos5 ARM: dts: exynos: Bring order in fixed-regulators naming in Midas boards ARM: dts: exynos: Remove regulators node container in Origen and N710x ARM: dts: exynos: Remove unnecessary address/size properties in Origen ARM: dts: exynos: Remove unnecessary address/size properties in Midas boards ARM: dts: exynos: Fix invalid node referenced by i2c20 alias in Peach Pit and Pi ARM: dts: exynos: Move syscon poweroff and restart nodes under the PMU ARM: dts: exynos: Remove obsolete clock properties from power domains ARM: dts: exynos: Add serial path for Rinato board to get earlycon support ARM: dts: exynos: Add support for USB OTG port on Origen board Signed-off-by: NOlof Johansson <olof@lixom.net>
-
由 Olof Johansson 提交于
Merge tag 'gemini-dts-arm-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik into next/dt DTS updates for the Gemini: - Set righ flashes on DNS-313 - Activate ATA1 on NAS4220B - Set right harddisk triggers on the D-Link devices - Fix all DTC warnings * tag 'gemini-dts-arm-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik: ARM: dts: Fix DTC warnings ARM: dts: Add second ATA to NAS4220B ARM: dts: Fix bootargs for Gemini D-Link devices ARM: dts: Fix the DNS-313 flash compatible ARM: dts: Set DNS-685 LEDs to use better triggers ARM: dtd: Set DNS-313 LEDs to use better triggers ARM: dts: gemini: Fix "debounce-interval" property misspelling Signed-off-by: NOlof Johansson <olof@lixom.net>
-
https://github.com/Broadcom/stblinux由 Olof Johansson 提交于
This pull request contains Broadcom ARM-based SoC Device Tree changes for 4.18, please pull the following: - Stefan provides updates to the BCM2835 RNG Device Tree binding and Device Tree node by adding its missing interrupt line. - Rafal switches the Luxul XWC-1000 and the D-Link DIR-885L to the new partitions syntax which allows specifying a partition parser - Rafal also updates a bunch of BCM5301X Device Tree source files to a more standard SPDX tag and dual GPL 2.0 and MIT. This is a follow-up to this discussion with Greg: https://lkml.org/lkml/2018/4/28/179 - Dan adds support for two Luxul devices: XAP-1610 (based on BCM47094) and XWR-3150 V1 (similar to XWR-3100) - Stefan provides a set of updates to the BCM283x Device Tree sources to support the Raspberry Pi 3 B+ for both the ARM and ARM64 kernels. He adds the required nodes for the LAN7515 USB Ethernet, Cypress CYW43455 BT/WiFi combo chip. Stefan also provides a few fixes for the PWM pin assignment for RPi 3B and Zero/Zero W. Finally, Stefan adds the missing GPIOs for controlling additional peripherals now that support for the RPi 3 GPIO expander has landed * tag 'arm-soc/for-4.18/devicetree' of https://github.com/Broadcom/stblinux: ARM: dts: BCM5301X: Switch D-Link DIR-885L to the new partitions syntax ARM: dts: BCM5301X: Relicense Asus RT-AC87U file to the GPL 2.0+ / MIT ARM: dts: BCM5301X: Add DT for Luxul XAP-1610 ARM: dts: BCM5301X: Add DT for Luxul XWR-3150 V1 ARM: dts: BCM5301X: Relicense Buffalo files to the GPL 2.0+ / MIT ARM: dts: BCM5301X: Relicense most DTS files to the GPL 2.0+ / MIT arm64: dts: broadcom: Add reference to Raspberry Pi 3 B+ ARM: dts: bcm2837: Add Raspberry Pi 3 B+ dt-bindings: bcm: Add Raspberry Pi 3 B+ ARM: dts: bcm2837: Add missing GPIOs of Expander ARM: dts: bcm283x: Fix PWM pin assignment ARM: dts: BCM5301X: Switch Luxul XWC-1000 to the new fixed partitions syntax ARM: bcm283x: Add missing interrupt for RNG block dt-binding: rng: Add interrupt property for BCM2835 Signed-off-by: NOlof Johansson <olof@lixom.net>
-
由 Olof Johansson 提交于
Merge tag 'omap-for-v4.18/dt-sdhci-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/dt Device tree changes for omap variants for SDHCI This series adds the devicetree configuration needed for pinctrl on dra7 variants to use the SDHCI SDIO driver instead of mmc-omap-hs driver. To use SDHCI, both the pins and the iodelay needs to be configured. This series is based on the related SDHCI drivers changes on a branch set up by Ulf. * tag 'omap-for-v4.18/dt-sdhci-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: (28 commits) Documentation: ARM: Add new MMC requirements for DRA7/K2G ARM: dts: dra7: Add high speed modes capability to MMC1/MMC2 dt node ARM: dts: dra7: Use sdhci-omap programming model ARM: dts: dra76-evm: Add wilink8 wlan support ARM: dts: dra7-evm: Add wilink8 wlan support ARM: dts: dra7-evm: Model EVM_3V6 regulator ARM: dts: dra72-evm-common: Add wilink8 wlan support ARM: dts: am57xx-beagle-x15/am57xx-idk: Fix pinctrl-names ARM: dts: am574x-idk: Add pinmux configuration for MMC ARM: dts: dra71-evm: Use pinctrl group from dra7-mmc-iodelay.dtsi to select pulldown ARM: dts: am57xx-idk: Use pinctrl group from dra7-mmc-iodelay.dtsi to select pulldown ARM: dts: dra7-mmc-iodelay: Add a new pinctrl group for clk line without pullup ARM: dts: dra71-evm: Add "vqmmc-supply" property for mmc2 ARM: dts: dra72-evm-common: Remove mmc specific pinmux mmc: sdhci-omap: Get IODelay values for 3.3v DDR mode dt-bindings: sdhci-omap: Add pinctrl bindings mmc: sdhci-omap: Add sdhci_omap specific ops for enable_sdio_irq mmc: sdhci-omap: Add support for MMC/SD controller in k2g SoC dt-bindings: sdhci-omap: Add K2G specific binding mmc: sdhci-omap: Workaround for Errata i834 ... Signed-off-by: NOlof Johansson <olof@lixom.net>
-
- 14 5月, 2018 9 次提交
-
-
由 Olof Johansson 提交于
Merge tag 'keystone_dts_for_4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/ssantosh/linux-keystone into next/dt ARM: DTS: Add DCAN support for Keystone K2G * tag 'keystone_dts_for_4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/ssantosh/linux-keystone: ARM: dts: k2g-evm: Add DCAN dt nodes Signed-off-by: NOlof Johansson <olof@lixom.net>
-
由 Olof Johansson 提交于
Merge tag 'omap-for-v4.18/dt-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/dt Device tree changes for omap variants for v4.18 merge window This series adds support for am335x-pockebeagle and also add missing pinctrl configuration for am335x evm and beagle bone variants. There are also changes to add missing omap3 oscillator clocks for audio, and fixes am437x tps65218 irq type used for various board specific files. There are also few minor fixes included that are not urgent. The fixes for n8x0 audio also depend on driver changes, and the hp t410 mmc card detect mux typo is harmless. * tag 'omap-for-v4.18/dt-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: ARM: dts: correct invalid I/O definition for MMC/SD card detect on T410 ARM: dts: omap2420-n810: Correct the audio codec (tlv320aic33) node ARM: dts: omap2420-n810: Enable McBSP2 for audio ARM: dts: am437x-sk-evm: Correct tps65218 irq type ARM: dts: am437x-epos-evm: Correct tps65218 irq type ARM: dts: am437x-cm-t43: Correct tps65218 irq type ARM: dts: am437x-gp-evm: Correct tps65218 irq type ARM: dts: Add am335x-pocketbeagle ARM: dts: am33xx: Add pinmux data for mmc1 in am335x-evm, evmsk and beaglebone ARM: dts: omap3-gta04: Add fixed 26MHz clock as fck for twl ARM: dts: omap3-pandora: Add fixed 26MHz clock as fck for twl ARM: dts: omap3-beagle-xm: Add fixed 26MHz clock as fck for twl ARM: dts: logicpd-som-lv: Enable Touchscreen controller Signed-off-by: NOlof Johansson <olof@lixom.net>
-
由 Olof Johansson 提交于
Merge tag 'stm32-dt-for-v4.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32 into next/dt STM32 DT updates for v4.18, round 1 Highlights: ----------- -MCU platforms updates: -Update pwm-cells for stm32h743 -Add I2C support on stm32f7xx-disco boards and on stm32h743i-eval board -Add new stm32f469 dtsi file -Add display support on stm32f469-disco (LTDC/DSI) + pannel orisetech (otm8009a) -MPU STM32MP157 platform updates: -Fix DTC (W=12) warnings -Fix IRQ type definition for usart -Add QSPI & NOR flash support on EV1 board -Add CEC support -Add USB host -Add USBPHYC support and enable it on EV1 board -Add LTDC and DSI support -Add I2C support and enable it on ED1 and EV1 boards -Add CRC support -Add RNG support -Add CRYP support -Add DAC support -Add LPTIMER support -Add VREFBUFF support -Add timers supports and enable timer trigger 6 on ED1 board -Add MDMA, DMA and DMAMUX support and enable it -Enable clock driver * tag 'stm32-dt-for-v4.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32: (42 commits) ARM: dts: stm32: update pwm-cells for LPTimer on stm32h743 ARM: dts: stm32: Add I2C1 support for stm32h743i-eval Board ARM: dts: stm32: Add I2C support for STM32H743 SoC ARM: dts: stm32: Add I2C1 support for stm32f746-disco Board ARM: dts: stm32: Add I2C1 support for stm32f769-disco Board ARM: dts: stm32: Append additional I2Cs for STM32F746 SoC ARM: dts: stm32: Add display support on stm32f469-disco ARM: dts: stm32: Add new stm32f469 dtsi file with mipi dsi ARM: dts: stm32: Use gpio bindings in stm32f469-disco ARM: dts: stm32: Fix IRQ_TYPE_NONE warnings on stm32mp157c ARM: dts: stm32: Fix DTC warnings for stm32mp157 ARM: dts: stm32: add flash nor support on stm32mp157c eval board ARM: dts: stm32: add qspi support for stm32mp157c ARM: dts: stm32: add cec support on stm32mp157c-ev1 ARM: dts: stm32: add cec pins to stm32mp157c ARM: dts: stm32: add cec support on stm32mp157c ARM: dts: stm32: add USB Host (USBH) support to stm32mp157c ARM: dts: stm32: enable USBPHYC on stm32mp157c-ev1 ARM: dts: stm32: add supplies to usbphyc ports on stm32mp157c-ed1 ARM: dts: stm32: add USBPHYC support to stm32mp157c ... Signed-off-by: NOlof Johansson <olof@lixom.net>
-
由 Olof Johansson 提交于
Merge tag 'ux500-dts-arm-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson into next/dt This: - Corrects the debounce interval on some nodes - Drops the U8540/U9540 device trees * tag 'ux500-dts-arm-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson: ARM: ux500: Drop the U8540 device trees ARM: dts: Ux500: Fix "debounce-interval" property misspelling Signed-off-by: NOlof Johansson <olof@lixom.net>
-
由 Linus Torvalds 提交于
-
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip由 Linus Torvalds 提交于
Pull x86/pti updates from Thomas Gleixner: "A mixed bag of fixes and updates for the ghosts which are hunting us. The scheduler fixes have been pulled into that branch to avoid conflicts. - A set of fixes to address a khread_parkme() race which caused lost wakeups and loss of state. - A deadlock fix for stop_machine() solved by moving the wakeups outside of the stopper_lock held region. - A set of Spectre V1 array access restrictions. The possible problematic spots were discuvered by Dan Carpenters new checks in smatch. - Removal of an unused file which was forgotten when the rest of that functionality was removed" * 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/vdso: Remove unused file perf/x86/cstate: Fix possible Spectre-v1 indexing for pkg_msr perf/x86/msr: Fix possible Spectre-v1 indexing in the MSR driver perf/x86: Fix possible Spectre-v1 indexing for x86_pmu::event_map() perf/x86: Fix possible Spectre-v1 indexing for hw_perf_event cache_* perf/core: Fix possible Spectre-v1 indexing for ->aux_pages[] sched/autogroup: Fix possible Spectre-v1 indexing for sched_prio_to_weight[] sched/core: Fix possible Spectre-v1 indexing for sched_prio_to_weight[] sched/core: Introduce set_special_state() kthread, sched/wait: Fix kthread_parkme() completion issue kthread, sched/wait: Fix kthread_parkme() wait-loop sched/fair: Fix the update of blocked load when newly idle stop_machine, sched: Fix migrate_swap() vs. active_balance() deadlock
-
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip由 Linus Torvalds 提交于
Pull scheduler fix from Thomas Gleixner: "Revert the new NUMA aware placement approach which turned out to create more problems than it solved" * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: Revert "sched/numa: Delay retrying placement for automatic NUMA balance after wake_affine()"
-
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip由 Linus Torvalds 提交于
Pull perf tooling fixes from Thomas Gleixner: "Another small set of perf tooling fixes and updates: - Revert "perf pmu: Fix pmu events parsing rule", as it broke Intel PT event description parsing (Arnaldo Carvalho de Melo) - Sync x86's cpufeatures.h and kvm UAPI headers with the kernel sources, suppressing the ABI drift warnings (Arnaldo Carvalho de Melo) - Remove duplicated entry for westmereep-dp in Intel's mapfile.csv (William Cohen) - Fix typo in 'perf bench numa' options description (Yisheng Xie)" * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: Revert "perf pmu: Fix pmu events parsing rule" tools headers kvm: Sync ARM UAPI headers with the kernel sources tools headers kvm: Sync uapi/linux/kvm.h with the kernel sources tools headers: Sync x86 cpufeatures.h with the kernel sources perf vendor events intel: Remove duplicated entry for westmereep-dp in mapfile.csv perf bench numa: Fix typo in options
-
git://git.infradead.org/users/hch/dma-mapping由 Linus Torvalds 提交于
Pull dma-mapping fix from Christoph Hellwig: "Just one little fix from Jean to avoid a harmless but very annoying warning, especially for the drm code" * tag 'dma-mapping-4.17-5' of git://git.infradead.org/users/hch/dma-mapping: swiotlb: silent unwanted warning "buffer is full"
-
- 13 5月, 2018 6 次提交
-
-
由 Andi Shyti 提交于
The mms114 binding [1] specifies that the 'x' and 'y' should be called respectively 'touchscreen-size-x' and 'touchscreen-size-y' in coherence with the touchscreen [2] binding. Update the mms114 node for trats2 and trats dts according to the binding. [1] Documentation/devicetree/bindings/input/touchscreen/mms114.txt [2] Documentation/devicetree/bindings/input/touchscreen/touchscreen.txt Signed-off-by: NAndi Shyti <andi.shyti@samsung.com> Signed-off-by: NKrzysztof Kozlowski <krzk@kernel.org>
-
由 Andrzej Pietrasiewicz 提交于
There are two Scaler devices in Exynos5433 SoCs. Add nodes for them and their SYSMMU controllers. Signed-off-by: NAndrzej Pietrasiewicz <andrzej.p@samsung.com> Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: NInki Dae <inki.dae@samsung.com> Signed-off-by: NKrzysztof Kozlowski <krzk@kernel.org>
-
由 Andrzej Pietrasiewicz 提交于
There are 3 scaler devices in Exynos5420 SoCs, all are a part of MSCL power domain. MSCL power domain and SYSMMU controllers (two per each scaler device) have been already added to exynos5420.dtsi earlier, so bind them to newly added devices. Signed-off-by: NAndrzej Pietrasiewicz <andrzej.p@samsung.com> Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: NInki Dae <inki.dae@samsung.com> Signed-off-by: NKrzysztof Kozlowski <krzk@kernel.org>
-
git://git.samba.org/sfrench/cifs-2.6由 Linus Torvalds 提交于
Pull cifs fixes from Steve French: "Some small SMB3 fixes for 4.17-rc5, some for stable" * tag '4.17-rc4-SMB3-Fixes' of git://git.samba.org/sfrench/cifs-2.6: smb3: directory sync should not return an error cifs: smb2ops: Fix listxattr() when there are no EAs cifs: smbd: Enable signing with smbdirect cifs: Allocate validate negotiation request through kmalloc
-
git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux由 Linus Torvalds 提交于
Pull thermal fixes from Zhang Rui: - fix NULL pointer dereference on module load/probe for int3403_thermal driver - fix an emergency shutdown issue on exynos thermal driver * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux: thermal: exynos: Propagate error value from tmu_read() thermal: exynos: Reading temperature makes sense only when TMU is turned on thermal: int3403_thermal: Fix NULL pointer deref on module load / probe
-
git://git.kernel.dk/linux-block由 Linus Torvalds 提交于
Pull block fixes from Jens Axboe: "Just a few NVMe fixes this round - one fixing a use-after-free, one fixes the return value after controller reset, and the last one fixes an issue where some drives will spuriously EIO. We should get these into 4.17" * tag 'for-linus-20180511' of git://git.kernel.dk/linux-block: nvme: add quirk to force medium priority for SQ creation nvme: Fix sync controller reset return nvme: fix use-after-free in nvme_free_ns_head
-
- 12 5月, 2018 18 次提交
-
-
由 Linus Walleij 提交于
The DTC was warning a lot about unit names etc, I think I fixed them all. Stopping to include skeleton.dtsi fixes the last one. Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
-
由 Linus Walleij 提交于
The NAS4220B has the second ATA interface up and running. Activate it in the device tree. Signed-off-by: NRoman Yeryomin <roman@advem.lv> Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
-
由 Linus Walleij 提交于
These machines need to be booted from very specific harddisk partitions (as the D-Link DNS-313 boots specifically from partition 4). Add the proper bootargs so that everything works smoothly. Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
-
由 Linus Walleij 提交于
The flash on the DNS-313 needs to be probed as JEDEC, it does not conform to the common CFI standard. Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
-
由 Linus Walleij 提交于
Using the blue LED for disk read and the orange LED for disk write gives a better user experience. Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
-
由 Linus Walleij 提交于
We just used one LED for "disk activity" but using the green LED for disk read and the red LED for disk write gives a way better user experience. Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
-
由 Geert Uytterhoeven 提交于
"debounce_interval" was never supported. Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be> Cc: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
-
由 Jean Delvare 提交于
If DMA_ATTR_NO_WARN is passed to swiotlb_alloc_buffer(), it should be passed further down to swiotlb_tbl_map_single(). Otherwise we escape half of the warnings but still log the other half. This is one of the multiple causes of spurious warnings reported at: https://bugs.freedesktop.org/show_bug.cgi?id=104082Signed-off-by: NJean Delvare <jdelvare@suse.de> Fixes: 0176adb0 ("swiotlb: refactor coherent buffer allocation") Cc: Christoph Hellwig <hch@lst.de> Cc: Christian König <christian.koenig@amd.com> Cc: Michel Dänzer <michel@daenzer.net> Cc: Takashi Iwai <tiwai@suse.de> Cc: stable@vger.kernel.org # v4.16
-
由 Mel Gorman 提交于
This reverts commit 7347fc87. Srikar Dronamra pointed out that while the commit in question did show a performance improvement on ppc64, it did so at the cost of disabling active CPU migration by automatic NUMA balancing which was not the intent. The issue was that a serious flaw in the logic failed to ever active balance if SD_WAKE_AFFINE was disabled on scheduler domains. Even when it's enabled, the logic is still bizarre and against the original intent. Investigation showed that fixing the patch in either the way he suggested, using the correct comparison for jiffies values or introducing a new numa_migrate_deferred variable in task_struct all perform similarly to a revert with a mix of gains and losses depending on the workload, machine and socket count. The original intent of the commit was to handle a problem whereby wake_affine, idle balancing and automatic NUMA balancing disagree on the appropriate placement for a task. This was particularly true for cases where a single task was a massive waker of tasks but where wake_wide logic did not apply. This was particularly noticeable when a futex (a barrier) woke all worker threads and tried pulling the wakees to the waker nodes. In that specific case, it could be handled by tuning MPI or openMP appropriately, but the behavior is not illogical and was worth attempting to fix. However, the approach was wrong. Given that we're at rc4 and a fix is not obvious, it's better to play safe, revert this commit and retry later. Signed-off-by: NMel Gorman <mgorman@techsingularity.net> Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: NSrikar Dronamraju <srikar@linux.vnet.ibm.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: efault@gmx.de Cc: ggherdovich@suse.cz Cc: hpa@zytor.com Cc: matt@codeblueprint.co.uk Cc: mpe@ellerman.id.au Link: http://lkml.kernel.org/r/20180509163115.6fnnyeg4vdm2ct4v@techsingularity.netSigned-off-by: NIngo Molnar <mingo@kernel.org>
-
由 Linus Torvalds 提交于
Merge misc fixes from Andrew Morton: "13 fixes" * emailed patches from Andrew Morton <akpm@linux-foundation.org>: rbtree: include rcu.h scripts/faddr2line: fix error when addr2line output contains discriminator ocfs2: take inode cluster lock before moving reflinked inode from orphan dir mm, oom: fix concurrent munlock and oom reaper unmap, v3 mm: migrate: fix double call of radix_tree_replace_slot() proc/kcore: don't bounds check against address 0 mm: don't show nr_indirectly_reclaimable in /proc/vmstat mm: sections are not offlined during memory hotremove z3fold: fix reclaim lock-ups init: fix false positives in W+X checking lib/find_bit_benchmark.c: avoid soft lockup in test_find_first_bit() KASAN: prohibit KASAN+STRUCTLEAK combination MAINTAINERS: update Shuah's email address
-
Since commit c1adf200 ("Introduce rb_replace_node_rcu()") rbtree_augmented.h uses RCU related data structures but does not include the header file. It works as long as it gets somehow included before that and fails otherwise. Link: http://lkml.kernel.org/r/20180504103159.19938-1-bigeasy@linutronix.deSigned-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de> Reviewed-by: NAndrew Morton <akpm@linux-foundation.org> Cc: David Howells <dhowells@redhat.com> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-
由 Changbin Du 提交于
When addr2line output contains discriminator, the current awk script cannot parse it. This patch fixes it by extracting key words using regex which is more reliable. $ scripts/faddr2line vmlinux tlb_flush_mmu_free+0x26 tlb_flush_mmu_free+0x26/0x50: tlb_flush_mmu_free at mm/memory.c:258 (discriminator 3) scripts/faddr2line: eval: line 173: unexpected EOF while looking for matching `)' Link: http://lkml.kernel.org/r/1525323379-25193-1-git-send-email-changbin.du@intel.com Fixes: 6870c016 ("scripts/faddr2line: show the code context") Signed-off-by: NChangbin Du <changbin.du@intel.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Philippe Ombredanne <pombredanne@nexb.com> Cc: NeilBrown <neilb@suse.com> Cc: Richard Weinberger <richard@nod.at> Cc: Kate Stewart <kstewart@linuxfoundation.org> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-
由 Ashish Samant 提交于
While reflinking an inode, we create a new inode in orphan directory, then take EX lock on it, reflink the original inode to orphan inode and release EX lock. Once the lock is released another node could request it in EX mode from ocfs2_recover_orphans() which causes downconvert of the lock, on this node, to NL mode. Later we attempt to initialize security acl for the orphan inode and move it to the reflink destination. However, while doing this we dont take EX lock on the inode. This could potentially cause problems because we could be starting transaction, accessing journal and modifying metadata of the inode while holding NL lock and with another node holding EX lock on the inode. Fix this by taking orphan inode cluster lock in EX mode before initializing security and moving orphan inode to reflink destination. Use the __tracker variant while taking inode lock to avoid recursive locking in the ocfs2_init_security_and_acl() call chain. Link: http://lkml.kernel.org/r/1523475107-7639-1-git-send-email-ashish.samant@oracle.comSigned-off-by: NAshish Samant <ashish.samant@oracle.com> Reviewed-by: NJoseph Qi <jiangqi903@gmail.com> Reviewed-by: NJunxiao Bi <junxiao.bi@oracle.com> Acked-by: NJun Piao <piaojun@huawei.com> Cc: Mark Fasheh <mark@fasheh.com> Cc: Joel Becker <jlbec@evilplan.org> Cc: Changwei Ge <ge.changwei@h3c.com> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-
由 David Rientjes 提交于
Since exit_mmap() is done without the protection of mm->mmap_sem, it is possible for the oom reaper to concurrently operate on an mm until MMF_OOM_SKIP is set. This allows munlock_vma_pages_all() to concurrently run while the oom reaper is operating on a vma. Since munlock_vma_pages_range() depends on clearing VM_LOCKED from vm_flags before actually doing the munlock to determine if any other vmas are locking the same memory, the check for VM_LOCKED in the oom reaper is racy. This is especially noticeable on architectures such as powerpc where clearing a huge pmd requires serialize_against_pte_lookup(). If the pmd is zapped by the oom reaper during follow_page_mask() after the check for pmd_none() is bypassed, this ends up deferencing a NULL ptl or a kernel oops. Fix this by manually freeing all possible memory from the mm before doing the munlock and then setting MMF_OOM_SKIP. The oom reaper can not run on the mm anymore so the munlock is safe to do in exit_mmap(). It also matches the logic that the oom reaper currently uses for determining when to set MMF_OOM_SKIP itself, so there's no new risk of excessive oom killing. This issue fixes CVE-2018-1000200. Link: http://lkml.kernel.org/r/alpine.DEB.2.21.1804241526320.238665@chino.kir.corp.google.com Fixes: 21292580 ("mm: oom: let oom_reap_task and exit_mmap run concurrently") Signed-off-by: NDavid Rientjes <rientjes@google.com> Suggested-by: NTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Acked-by: NMichal Hocko <mhocko@suse.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: <stable@vger.kernel.org> [4.14+] Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-
由 Naoya Horiguchi 提交于
radix_tree_replace_slot() is called twice for head page, it's obviously a bug. Let's fix it. Link: http://lkml.kernel.org/r/20180423072101.GA12157@hori1.linux.bs1.fc.nec.co.jp Fixes: e71769ae ("mm: enable thp migration for shmem thp") Signed-off-by: NNaoya Horiguchi <n-horiguchi@ah.jp.nec.com> Reported-by: NMatthew Wilcox <willy@infradead.org> Reviewed-by: NAndrew Morton <akpm@linux-foundation.org> Cc: Michal Hocko <mhocko@kernel.org> Cc: "Kirill A. Shutemov" <kirill@shutemov.name> Cc: Zi Yan <zi.yan@sent.com> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-
由 Laura Abbott 提交于
The existing kcore code checks for bad addresses against __va(0) with the assumption that this is the lowest address on the system. This may not hold true on some systems (e.g. arm64) and produce overflows and crashes. Switch to using other functions to validate the address range. It's currently only seen on arm64 and it's not clear if anyone wants to use that particular combination on a stable release. So this is not urgent for stable. Link: http://lkml.kernel.org/r/20180501201143.15121-1-labbott@redhat.comSigned-off-by: NLaura Abbott <labbott@redhat.com> Tested-by: NDave Anderson <anderson@redhat.com> Cc: Kees Cook <keescook@chromium.org> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Andi Kleen <andi@firstfloor.org> Cc: Alexey Dobriyan <adobriyan@gmail.com>a Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-
由 Roman Gushchin 提交于
Don't show nr_indirectly_reclaimable in /proc/vmstat, because there is no need to export this vm counter to userspace, and some changes are expected in reclaimable object accounting, which can alter this counter. Link: http://lkml.kernel.org/r/20180425191422.9159-1-guro@fb.comSigned-off-by: NRoman Gushchin <guro@fb.com> Acked-by: NVlastimil Babka <vbabka@suse.cz> Reviewed-by: NAndrew Morton <akpm@linux-foundation.org> Cc: Matthew Wilcox <willy@infradead.org> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Cc: Michal Hocko <mhocko@suse.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: David Rientjes <rientjes@google.com> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-
由 Pavel Tatashin 提交于
Memory hotplug and hotremove operate with per-block granularity. If the machine has a large amount of memory (more than 64G), the size of a memory block can span multiple sections. By mistake, during hotremove we set only the first section to offline state. The bug was discovered because kernel selftest started to fail: https://lkml.kernel.org/r/20180423011247.GK5563@yexl-desktop After commit, "mm/memory_hotplug: optimize probe routine". But, the bug is older than this commit. In this optimization we also added a check for sections to be in a proper state during hotplug operation. Link: http://lkml.kernel.org/r/20180427145257.15222-1-pasha.tatashin@oracle.com Fixes: 2d070eab ("mm: consider zone which is not fully populated to have holes") Signed-off-by: NPavel Tatashin <pasha.tatashin@oracle.com> Acked-by: NMichal Hocko <mhocko@suse.com> Reviewed-by: NAndrew Morton <akpm@linux-foundation.org> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: Steven Sistare <steven.sistare@oracle.com> Cc: Daniel Jordan <daniel.m.jordan@oracle.com> Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Cc: <stable@vger.kernel.org> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-