Re: [PATCH] proc: do not show VmExe bigger than total executable virtual memory

2017-10-11 Thread Konstantin Khlebnikov
On 11.10.2017 01:25, Andrew Morton wrote: On Fri, 06 Oct 2017 14:32:34 +0300 Konstantin Khlebnikov wrote: If start_code / end_code pointers are screwed then "VmExe" could be bigger than total executable virtual memory and "VmLib" becomes negative: VmExe:294320 kB VmLib: 1844674407370932

[PATCH -mm -v2] mm, swap: Use page-cluster as max window of VMA based swap readahead

2017-10-11 Thread Huang, Ying
From: Huang Ying When the VMA based swap readahead was introduced, a new knob /sys/kernel/mm/swap/vma_ra_max_order was added as the max window of VMA swap readahead. This is to make it possible to use different max window for VMA based readahead and original physical readahead. But Minchan

Re: [RFC][PATCH] tracing/jump-labels: Add message when a trace event has no instances

2017-10-11 Thread Peter Zijlstra
On Tue, Oct 10, 2017 at 06:56:30PM -0400, Steven Rostedt wrote: > +/* Without jump labels we don't know how many instances, just assume one */ > +static inline int static_key_instances(struct static_key *key) > +{ > + return 1; > +} That's a tad dodgy.. it works for your current usage, but..

Re: BUG: KASAN: global-out-of-bounds in strscpy+0x807/0x970

2017-10-11 Thread Kees Cook
On Tue, Oct 10, 2017 at 9:37 PM, Tyler Hicks wrote: > On 10/10/2017 10:32 PM, Simon Brewer wrote: >> Hint start looking at this thread. https://lkml.org/lkml/2017/7/18/874 >> >> Summary: strscpy and KASAN are currently incompatible. strscpy does a >> 64 bit speculative fetch on a char pointer (fo

[PATCH V11 1/7] PM / Domains: Add support to select performance-state of domains

2017-10-11 Thread Viresh Kumar
Some platforms have the capability to configure the performance state of PM domains. This patch enhances the genpd core to support such platforms. The performance levels (within the genpd core) are identified by positive integer values, a lower value represents lower performance state. This patch

[GIT PULL] pin control fixes for v4.14

2017-10-11 Thread Linus Walleij
Hi Linus, here are some pin control fixes for v4.14 that stacked up. Two small things and a slightly larger thing in the Intel Cherryview. Please pull them in! Yours, Linus Walleij The following changes since commit 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e: Linux 4.14-rc1 (2017-09-16 15:47:5

[PATCH V11 3/7] OPP: Add dev_pm_opp_{un}register_get_pstate_helper()

2017-10-11 Thread Viresh Kumar
This adds the dev_pm_opp_{un}register_get_pstate_helper() helper routines which will be used to set the get_pstate() callback for a device. This callback will be later called internally by the OPP core to get performance state corresponding to an OPP. This is required temporarily until the time we

[PATCH V11 7/7] mmc: sdhci-msm: Adapt the driver to use OPPs to set clocks/performance state

2017-10-11 Thread Viresh Kumar
From: Rajendra Nayak NOT FOR MERGE. SDHCI driver needs to set a performance state along with scaling its clocks. Modify the driver to use the newly introducded powerdomain performance state based OPPs to scale clocks as well as set an appropriate powerdomain performance state. The patch also ad

[PATCH V11 5/7] soc: qcom: rpmpd: Add support for set performance state

2017-10-11 Thread Viresh Kumar
From: Rajendra Nayak NOT FOR MERGE. With genpd now expecting power domain drivers supporting performance state to support set performance state callbacks, add support for it in the rpmpd driver. Signed-off-by: Rajendra Nayak Signed-off-by: Viresh Kumar --- drivers/soc/qcom/rpmpd.c | 23 +

[PATCH V11 6/7] OPP: qcom: Add support to get performance states corresponding to OPPs

2017-10-11 Thread Viresh Kumar
NOT FOR MERGE. The OPP core needs to know the performance state for each OPP that the device supports, if we want to update performance states of the device's PM domain. Add support for Qualcomm's rpmpd for the same. Signed-off-by: Rajendra Nayak Signed-off-by: Viresh Kumar --- drivers/opp/Ma

[PATCH V11 0/7] PM / Domains: Performance state support

2017-10-11 Thread Viresh Kumar
Hi, This version contains the changes we discussed during Linaro Connect. Some platforms have the capability to configure the performance state of their power domains. The process of configuring the performance state is pretty much platform dependent and we may need to work with a wide range of c

[PATCH V11 4/7] soc: qcom: rpmpd: Add driver to model cx/mx power domains

2017-10-11 Thread Viresh Kumar
From: Rajendra Nayak NOT FOR MERGE. The cx/mx power domains just pass the performance state set by the consumers to the RPM (Remote Power manager) which then takes care of setting the appropriate voltage on the corresponding rails to meet the performance needs. Add data for all power domains on

[PATCH V11 2/7] OPP: Support updating performance state of device's power domain

2017-10-11 Thread Viresh Kumar
The genpd framework now provides an API to request device's power domain to update its performance state. Use that interface from the OPP core for devices whose power domains support performance states. Note that this commit doesn't add any mechanism by which performance states are made available

Re: [PATCH v5 2/4] phy: rcar-gen3-usb2: use enum phy_mode in the role_store()

2017-10-11 Thread Simon Horman
On Tue, Oct 10, 2017 at 06:41:28PM +0900, Yoshihiro Shimoda wrote: > This patch modifies the role_store() to use "enum phy_mode" instead > of the local "bool" for host/device mode selection. > > Signed-off-by: Yoshihiro Shimoda Thanks for the updates, this looks nice to me. Reviewed-by: Simon H

Re: [PATCH 1/1] sched/cputime: do not decrease steal time after live migration on xen

2017-10-11 Thread Dongli Zhang
Hi Stanislaw and Peter, On 10/10/2017 08:42 PM, Stanislaw Gruszka wrote: > On Tue, Oct 10, 2017 at 12:59:26PM +0200, Ingo Molnar wrote: >> >> (Cc:-ed more gents involved in kernel/sched/cputime.c work. Full patch >> quoted >> below.) >> >> * Dongli Zhang wrote: >> >>> After guest live migration

[PATCH v12 2/5] rockchip/rga: v4l2 m2m support

2017-10-11 Thread Jacob Chen
Rockchip RGA is a separate 2D raster graphic acceleration unit. It accelerates 2D graphics operations, such as point/line drawing, image scaling, rotation, BitBLT, alpha blending and image blur/sharpness The driver supports various operations from the rendering pipeline. - copy - fast solid colo

[PATCH v12 5/5] arm64: dts: rockchip: add RGA device node for RK3399

2017-10-11 Thread Jacob Chen
This patch add the RGA dt config of RK3399 SoC. Signed-off-by: Jacob Chen Signed-off-by: Yakir Yang --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi

[PATCH v12 1/5] dt-bindings: Document the Rockchip RGA bindings

2017-10-11 Thread Jacob Chen
Add DT bindings documentation for Rockchip RGA Signed-off-by: Jacob Chen Signed-off-by: Yakir Yang Acked-by: Rob Herring --- .../devicetree/bindings/media/rockchip-rga.txt | 33 ++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/me

[PATCH v12 0/5] Add Rockchip RGA V4l2 support

2017-10-11 Thread Jacob Chen
change in V12: - adding an entry to MAINTAINERS - fix checkpatch change in V11: - fix compile warning change in V10: - move to rockchip/rga - changes according to comments - some style changes change in V9: - remove protduff things - test with the latest v4l2-compliance change in V8: - remove

Re: [PATCH] USB: serial: garmin_gps: Convert timers to use timer_setup()

2017-10-11 Thread Johan Hovold
On Tue, Oct 10, 2017 at 11:25:22AM -0700, Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > Cc: Johan Hovold > Cc: Allen Pais > C

[PATCH v12 3/5] MAINTAINERS: add entry for Rockchip RGA driver

2017-10-11 Thread Jacob Chen
Signed-off-by: Jacob Chen --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6671f375f7fc..335497bbc3f3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11509,6 +11509,13 @@ F: drivers/hid/hid-roccat* F: include/linux/hid-roccat* F:

[GIT PULL] GPIO fixes for v4.14

2017-10-11 Thread Linus Walleij
Hi Linus, here are some smallish GPIO fixes for v4.14. Like with pin control: some build/Kconfig noise and one serious bug in a specific driver. Please pull it in! Yours, Linus Walleij The following changes since commit 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e: Linux 4.14-rc1 (2017-09-16 15:

[PATCH v12 4/5] ARM: dts: rockchip: add RGA device node for RK3288

2017-10-11 Thread Jacob Chen
This patch add the RGA dt config of rk3288 SoC. Signed-off-by: Jacob Chen Signed-off-by: Yakir Yang --- arch/arm/boot/dts/rk3288.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index a0a0b08bff74..8c6dfc0abc42 1

Re: [PATCH 4.13 077/160] usb: host: xhci-plat: allow sysdev to inherit from ACPI

2017-10-11 Thread Mathias Nyman
On 11.10.2017 07:19, Thang Q. Nguyen wrote: Hi, On Wed, Oct 11, 2017 at 2:50 AM, Greg Kroah-Hartman mailto:gre...@linuxfoundation.org>> wrote: 4.13-stable review patch. If anyone has any objections, please let me know. -- From: Adam Wallis mailto:awal...@codeauror

Re: [PATCH v3 12/12] ARM: dtsi: axp81x: set pinmux for GPIO0/1 when used as LDOs

2017-10-11 Thread Linus Walleij
On Wed, Oct 4, 2017 at 9:35 AM, Quentin Schulz wrote: > Just to be a little more precise, > - 0: drive low > - 1: drive high > - 2: input with interrupt triggering > - 3: LDO on > - 4: LDO off > - 5~7: floating (or ADC) > > for AXP813, and > - 0: drive low >

Re: [PATCH] ACPI / PM: Combine two identical device resume routines

2017-10-11 Thread Ulf Hansson
On 10 October 2017 at 18:49, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Notice that acpi_dev_runtime_resume() and acpi_dev_resume_early() are > actually literally identical after some more-or-less recent changes, > so rename acpi_dev_runtime_resume() to acpi_dev_resume(), use it > eve

Re: [PATCH] staging: greybus: mark expected switch fall-through in check_urb_status

2017-10-11 Thread Johan Hovold
On Tue, Oct 10, 2017 at 03:10:41PM -0500, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Signed-off-by: Gustavo A. R. Silva Acked-by: Johan Hovold Patch is fine, but next time make sure to run scri

Re: 4.14.0-rc3 iwlwifi: Hardware became unavailable during restart

2017-10-11 Thread Luca Coelho
On Tue, 2017-10-10 at 09:44 +0200, Seraphime Kirkovski wrote: > Hello, Hi Seraphime, > I've got this splat after a couple of suspend-resume cycles on my > HP-laptop. I haven't had the time to bisect or test other rcs for now. > Pasting some logs before the actual WARN_ON, as they may be relevant

Re: [PATCH 1/1] sched/cputime: do not decrease steal time after live migration on xen

2017-10-11 Thread Dongli Zhang
Hi Rik, On 10/10/2017 10:01 PM, Rik van Riel wrote: > On Tue, 2017-10-10 at 14:48 +0200, Peter Zijlstra wrote: >> On Tue, Oct 10, 2017 at 02:42:01PM +0200, Stanislaw Gruszka wrote: > + u64 steal, steal_time; > + s64 steal_delta; > + > + steal_time = > pa

Re: [PATCH v3] mac80211: aead api to reduce redundancy

2017-10-11 Thread Johannes Berg
On Tue, 2017-10-10 at 22:31 -0400, Xiang Gao wrote: > Currently, the aes_ccm.c and aes_gcm.c are almost line by line copy > of > each other. This patch reduce code redundancy by moving the code in > these > two files to crypto/aead_api.c to make it a higher level aead api. > The > file aes_ccm.c an

Re: [PATCH 1/5] blkcg: export blkcg_root_css

2017-10-11 Thread Jan Kara
On Tue 10-10-17 08:54:37, Tejun Heo wrote: > Export blkcg_root_css so that filesystem modules can use it. > > Signed-off-by: Tejun Heo Looks good. You can add: Reviewed-by: Jan Kara Honza > --- > block/blk-cgroup.c | 1 + > 1 f

Re: [PATCH] pinctrl: meson-gx: add TEST_N i2s pinmux

2017-10-11 Thread Linus Walleij
On Fri, Oct 6, 2017 at 10:31 AM, Jerome Brunet wrote: > Add TEST_N pinmux for channel 6 and 7 of the i2s output > > Signed-off-by: Jerome Brunet Patch applied with Kevin's reviewed-by. Yours, Linus Walleij

Re: [alsa-devel] [Patch v6 2/7] slimbus: Add messaging APIs to slimbus framework

2017-10-11 Thread Arnd Bergmann
On Wed, Oct 11, 2017 at 6:38 AM, Vinod Koul wrote: > On Fri, Oct 06, 2017 at 05:51:31PM +0200, srinivas.kandaga...@linaro.org > wrote: >> + ctrl->pending_wr = kcalloc((ctrl->tx.n - 1), >> +sizeof(struct slim_pending), >> +GFP_KER

RE: [PATCH v2 03/16] iommu: introduce iommu invalidate API function

2017-10-11 Thread Liu, Yi L
> On Tue, 10 Oct 2017 15:35:42 +0200 > Joerg Roedel wrote: > > > On Thu, Oct 05, 2017 at 04:03:31PM -0700, Jacob Pan wrote: > > > +int iommu_invalidate(struct iommu_domain *domain, > > > + struct device *dev, struct tlb_invalidate_info > > > *inv_info) > > > > This name is way too generi

Re: [PATCH] pinctrl: meson: remove unused pin_base

2017-10-11 Thread Linus Walleij
On Fri, Oct 6, 2017 at 10:54 AM, Jerome Brunet wrote: > While removing the need to have pin_base defined in meson pinctrl > drivers, I forgot to remove the corresponding field from the > pinctrl_data structure. > > Fixing this now. > > Fixes: 70e5ecb1b994 ("pinctrl: meson: get rid of pin_base") >

Re: [PATCH 3/5] buffer_head: separate out create_bh_bio() from submit_bh_wbc()

2017-10-11 Thread Jan Kara
On Tue 10-10-17 08:54:39, Tejun Heo wrote: > submit_bh_wbc() creates a bio matching the specific @bh and submits it > at the end. This patch separates out the bio creation part to its own > function, create_bh_bio(), and reimplement submit_bh[_wbc]() using the > function. > > As bio can now be ma

Re: [PATCH 4/5] cgroup, buffer_head: implement submit_bh_blkcg_css()

2017-10-11 Thread Jan Kara
On Tue 10-10-17 08:54:40, Tejun Heo wrote: > Implement submit_bh_blkcg_css() which will be used to override cgroup > membership on specific buffer_heads. > > v2: Reimplemented using create_bh_bio() as suggested by Jan. > > Signed-off-by: Tejun Heo > Cc: Jan Kara > Cc: Jens Axboe Looks good. Y

Re: [POC] Extend "movable_node" to "movable_node=nn@ss" and add the interface in /sys to show the value

2017-10-11 Thread Baoquan He
Hi Fan San, On 10/11/17 at 10:28am, Chao Fan wrote: > Hi all, > > Here is a problem: > Here is a machine with several NUMA nodes and some of them are hot-pluggable, > It's not good for kernel to be extracted in the memory region of movable node. > But in current code, I print the address choosen

Re: [PATCH -mm -v2] mm, swap: Use page-cluster as max window of VMA based swap readahead

2017-10-11 Thread Minchan Kim
On Wed, Oct 11, 2017 at 03:08:47PM +0800, Huang, Ying wrote: > From: Huang Ying > > When the VMA based swap readahead was introduced, a new knob > > /sys/kernel/mm/swap/vma_ra_max_order > > was added as the max window of VMA swap readahead. This is to make it > possible to use different max

Re: [PATCH v4 00/11] drm/sun4i: hdmi: Support HDMI controller on A31

2017-10-11 Thread Maxime Ripard
On Tue, Oct 10, 2017 at 03:19:57AM +, Chen-Yu Tsai wrote: > Hi everyone, > > This is v4 of my A31 HDMI support series. The DTS patches depend on > the patch "clk: sunxi-ng: sun6i: Export video PLLs" alreay merged. > The DRM patches depend on "regmap: add iopoll-like polling macro for > regmap_

[PATCH] of: Devices with pci_epf_bus_type require DMA configuration

2017-10-11 Thread Kishon Vijay Abraham I
pci-epc-core.c invokes of_dma_configure in order to configure the coherent_dma_mask/dma_mask of endpoint function device. This is required for dma_alloc_coherent to succeed in pci function driver (pci-epf-test.c). However after commit 723288836628bc1c08 ("of: restrict DMA configuration"), of_dma_co

Re: [PATCH] dt-bindings: pinctrl: Move mcp23s08 from gpio

2017-10-11 Thread Linus Walleij
On Thu, Oct 5, 2017 at 9:50 AM, Lars Poeschel wrote: > The mcp23s08 driver was moved from gpio to pinctrl. This moves it's > devicetree binding doc as well. So driver and binding doc are in sync > again. > > Signed-off-by: Lars Poeschel Patch applied with Sebastian's tag. Nothing controversial

Re: [PATCH] dt-bindings: pinctrl: mcp23s08 update binding doc

2017-10-11 Thread Linus Walleij
On Mon, Oct 9, 2017 at 2:03 PM, Lars Poeschel wrote: > The mcp23s08 driver moved to pinctrl recently. It accepts the > bias-pull-up pinctrl property since then. This updates the binding > doc to reflect that. > Thanks to Sebastian Reichel for the working example. > > Signed-off-by: Lars Poeschel

Re: [PATCH] spi-nor: intel-spi: Fix Kconfig dependency to LPC_ICH

2017-10-11 Thread Cyrille Pitchen
Le 25/08/2017 à 10:12, Bin Meng a écrit : > The Intel SPI-NOR driver is dependent on LPC_ICH to get the platform > data. Select it in the Kconfig. > > Signed-off-by: Bin Meng Applied to the spi-nor/next branch of l2-mtd Thanks! > --- > > drivers/mtd/spi-nor/Kconfig | 1 + > 1 file changed, 1

Re: [PATCH v4 00/11] drm/sun4i: hdmi: Support HDMI controller on A31

2017-10-11 Thread Chen-Yu Tsai
On Wed, Oct 11, 2017 at 4:00 PM, Maxime Ripard wrote: > On Tue, Oct 10, 2017 at 03:19:57AM +, Chen-Yu Tsai wrote: >> Hi everyone, >> >> This is v4 of my A31 HDMI support series. The DTS patches depend on >> the patch "clk: sunxi-ng: sun6i: Export video PLLs" alreay merged. >> The DRM patches d

Re: [PATCH 1/2] mm, memory_hotplug: do not fail offlining too early

2017-10-11 Thread Vlastimil Babka
On 10/11/2017 08:51 AM, Michal Hocko wrote: > On Wed 11-10-17 13:37:50, Michael Ellerman wrote: >> Michal Hocko writes: >> >>> On Tue 10-10-17 23:05:08, Michael Ellerman wrote: Michal Hocko writes: > From: Michal Hocko > > Memory offlining can fail just too eagerly under a

[PATCH 0/4] perf/ftrace: Sanitize perf function-trace interaction

2017-10-11 Thread Peter Zijlstra
less is more.. --- include/linux/ftrace.h | 83 +++- include/linux/perf_event.h | 2 +- include/linux/trace_events.h| 9 - kernel/events/core.c| 13 ++- kernel/trace/ftrace.c | 55 +++ ke

Re: [PATCH v2 2/2] watchdog: Add Spreadtrum watchdog driver

2017-10-11 Thread Eric Long
Hi, On Tue, Sep 12, 2017 at 07:40:09PM +0800, Eric Long wrote: > This patch adds the watchdog driver for Spreadtrum SC9860 platform. > > Signed-off-by: Eric Long > --- > Changes since v1: > - Use pretimeout instead of own implementation. > - Fix timeout loop when loading timeout values. > - u

[PATCH 1/4] perf/ftrace: Revert ("perf/ftrace: Fix double traces of perf on ftrace:function")

2017-10-11 Thread Peter Zijlstra
Revert commit: 75e8387685f6 ("perf/ftrace: Fix double traces of perf on ftrace:function") The reason I instantly stumbled on that patch is that it only addresses the ftrace situation and doesn't mention the other _5_ places that use this interface. It doesn't explain why those don't have the pr

[PATCH 4/4] ftrace: Kill FTRACE_OPS_FL_PER_CPU

2017-10-11 Thread Peter Zijlstra
The one and only user of FTRACE_OPS_FL_PER_CPU is gone, remove the lot. Signed-off-by: Peter Zijlstra (Intel) --- include/linux/ftrace.h | 83 - kernel/trace/ftrace.c | 55 +++- 2 files changed, 20 insertions(+), 11

[PATCH 2/4] perf/ftrace: Fix function trace events

2017-10-11 Thread Peter Zijlstra
The function-trace <-> perf interface is a tad messed up. Where all the other trace <-> perf interfaces use a single trace hook registration and use per-cpu RCU based hlist to iterate the events, function-trace actually needs multiple hook registrations in order to minimize function entry patching

[PATCH 3/4] perf/ftrace: Small cleanup

2017-10-11 Thread Peter Zijlstra
ops->flags _should_ be 0 at this point, so setting the flag using bitwise or is a bit daft. Requested-by: Steven Rostedt Signed-off-by: Peter Zijlstra (Intel) --- kernel/trace/trace_event_perf.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kernel/trace/trace_event_perf.c +++

[PATCH] ARM: dts: dra7-evm: Move pcie RC node to common file

2017-10-11 Thread Kishon Vijay Abraham I
From: Ravikumar Kattekola Move the pcie_rc node to common file so that it can be used by dra76-evm as well. Signed-off-by: Ravikumar Kattekola Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- arch/arm/boot/dts/dra7-evm-common.dtsi | 4 arch/arm/boot/dts/dra7-evm.dts

[PATCH] usb: cdc_acm: Add quirk for Elatec TWN3

2017-10-11 Thread Maksim Salau
Elatec TWN3 has the union descriptor on data interface. This results in failure to bind the device to the driver with the following log: usb 1-1.2: new full speed USB device using streamplug-ehci and address 4 usb 1-1.2: New USB device found, idVendor=09d8, idProduct=0320 usb 1-1.2: New USB d

Re: [PATCH -mm -v2] mm, swap: Use page-cluster as max window of VMA based swap readahead

2017-10-11 Thread Huang, Ying
Minchan Kim writes: > On Wed, Oct 11, 2017 at 03:08:47PM +0800, Huang, Ying wrote: >> From: Huang Ying >> >> When the VMA based swap readahead was introduced, a new knob >> >> /sys/kernel/mm/swap/vma_ra_max_order >> >> was added as the max window of VMA swap readahead. This is to make it >

Re: [PATCH v2 00/10] spi-nor: intel-spi: Various fixes and enhancements

2017-10-11 Thread Cyrille Pitchen
Le 11/09/2017 à 11:41, Bin Meng a écrit : > This series does several bug fixes and clean ups against the intel-spi > spi-nor driver, as well as enhancements to make the driver independent > on the underlying BIOS/bootloader. > > At present the driver uses the HW sequencer for the read/write/erase

Re: [PATCH 1/2] mm, memory_hotplug: do not fail offlining too early

2017-10-11 Thread Michal Hocko
On Wed 11-10-17 10:04:39, Vlastimil Babka wrote: > On 10/11/2017 08:51 AM, Michal Hocko wrote: [...] > > This is really strange! As you write in other email the page is > > reserved. That means that some of the earlier checks > > if (zone_idx(zone) == ZONE_MOVABLE) > > return false

Re: [PATCH v2 net-next 1/2] net: dsa: lan9303: Move tag setup to new lan9303_setup_tagging

2017-10-11 Thread Egil Hjelmeland
On 10. okt. 2017 17:51, woojung@microchip.com wrote: Specific reason to use val then using LAN9303_BM_EGRSS_PORT_TYPE_SPECIAL_TAG_PORT0 like previous line? Specific reason was to please a reviewer that did not like my indenting in first version. I did not agree with him, but since nobody

Re: [PATCH 2/2] arm64: dts: stratix10: enable gpio and leds

2017-10-11 Thread Dinh Nguyen
On 10/10/2017 04:25 PM, Alan Tull wrote: > Enable gpio and leds for socdk OOBE daughtercard. > > pushbutton PB_SW0 = gpio1.io4 > pushbutton PB_SW1 = gpio1.io5 > LED HPS_LED0 = gpio1.io20 > LED HPS_LED1 = gpio1.io19 > LED HPS_LED2 = gpio1.io21 > > Signed-off-by: Alan Tull > --- >

Re: [PATCH] gpiolib: drop irq_base field from gpio_chip struct

2017-10-11 Thread Linus Walleij
On Tue, Oct 10, 2017 at 12:16 AM, Grygorii Strashko wrote: > Hence, the last user of irq_base field was removed by commit b4c495f03ae3 > ("gpio: mockup: use irq_sim") it can be removed safely. > > Signed-off-by: Grygorii Strashko Patch applied. Let's see what the build servers say. Yours, Linu

Re: [POC] Extend "movable_node" to "movable_node=nn@ss" and add the interface in /sys to show the value

2017-10-11 Thread Chao Fan
On Wed, Oct 11, 2017 at 03:55:13PM +0800, Baoquan He wrote: >Hi Fan San, > >On 10/11/17 at 10:28am, Chao Fan wrote: >> Hi all, >> >> Here is a problem: >> Here is a machine with several NUMA nodes and some of them are hot-pluggable, >> It's not good for kernel to be extracted in the memory region

Re: [PATCH v5 03/10] kexec_file: factor out arch_kexec_kernel_*() from x86, powerpc

2017-10-11 Thread Julien Thierry
On 11/10/17 06:07, AKASHI Takahiro wrote: On Tue, Oct 10, 2017 at 12:02:01PM +0100, Julien Thierry wrote: [snip] --- a/kernel/kexec_file.c +++ b/kernel/kexec_file.c @@ -26,30 +26,79 @@ #include #include "kexec_internal.h" +const __weak struct kexec_file_ops * const kexec_file_loaders[]

Re: [PATCH V1] pinctrl: qcom: spmi-gpio: Update GPIO EN_CTL when setting pin config

2017-10-11 Thread Linus Walleij
On Tue, Sep 12, 2017 at 2:32 AM, wrote: > From: Fenglin Wu > > GPIO is expected to be disabled iff PIN_CONFIG_BIAS_HIGH_IMPEDANCE is > configured. Update is_enabled flag in config_set() so that it can > reflect GPIO status correctly. Also modify EN_CTL register based on > is_enabled flag in con

Re: PROBLEM: Kernel BUG in mfgpt_tick (cs5535-clockevt.c) on ALIX 2c3 - null call

2017-10-11 Thread Daniel Lezcano
On 10/10/2017 23:19, David Kozub wrote: > On Tue, 10 Oct 2017, Daniel Lezcano wrote: > >> On 09/10/2017 21:33, David Kozub wrote: >>> On Mon, 9 Oct 2017, Daniel Lezcano wrote: >>> On 07/10/2017 23:26, David Kozub wrote: > Hi all, > > booting up kernel 4.14-rc3 with CS5535_CLOCK_EV

Re: [PATCH] PCI: iproc: Allow allocation of multiple MSIs

2017-10-11 Thread Sandor Bodo-Merle
Hi Ray, we tested on a custom board based on BCM56260. SMP affinity was not tested as our board runs on a single core. br, Sandor ps - sorry for the duplicate, but by default gmail sent out html formatted mail :( On Tue, Oct 10, 2017 at 8:09 PM, Ray Jui wrote: > Hi Bodo, > > > On 10/7/2017 5:

Re: [PATCH] udf: Fix 64-bit sign extension issues affecting blocks > 0x7FFFFFFF

2017-10-11 Thread Jan Kara
On Tue 10-10-17 22:30:30, Steve Magnani wrote: > Jan - > > On 10/10/2017 02:33 AM, Jan Kara wrote: > >On Mon 09-10-17 10:04:52, Steve Magnani wrote: > > > >...the patch seems to be mixing two changes into one which I'd prefer to be > > separate patches: > > > >1) Changes so that physical block nu

Re: [PATCH v5 2/4] phy: rcar-gen3-usb2: use enum phy_mode in the role_store()

2017-10-11 Thread Kishon Vijay Abraham I
Hi, On Tuesday 10 October 2017 03:11 PM, Yoshihiro Shimoda wrote: > This patch modifies the role_store() to use "enum phy_mode" instead > of the local "bool" for host/device mode selection. looks good except for one minor comment.. > > Signed-off-by: Yoshihiro Shimoda > --- > drivers/phy/renes

[PATCH 07/11] Avoid cleaning the KASan shadow area's mapping table

2017-10-11 Thread Abbott Liu
From: Andrey Ryabinin Avoid cleaning the mapping table(page table) of KASAN shadow area. Cc: Andrey Ryabinin Signed-off-by: Abbott Liu --- arch/arm/mm/mmu.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index e46a6a4..f5aa1de

[PATCH 06/11] change memory_is_poisoned_16 for aligned error

2017-10-11 Thread Abbott Liu
Because arm instruction set don't support access the address which is not aligned, so must change memory_is_poisoned_16 for arm. Cc: Andrey Ryabinin Signed-off-by: Abbott Liu --- mm/kasan/kasan.c | 20 1 file changed, 20 insertions(+) diff --git a/mm/kasan/kasan.c b/mm/

[PATCH 0/7] Graceful snprintf truncation handling

2017-10-11 Thread Eric Sesterhenn
snprintf returns the number of bytes required to print the full string, even if the string is truncated. If this return value is used for calculations, the size parameter might underflow as shown e.g. in afdb05e9d61905220f09268535235288e6ba3a16 This causes a warning in the next snprintf iteration,

[PATCH 3/7] Fix snprintf calculation in filecheck

2017-10-11 Thread Eric Sesterhenn
snprintf can return a value bigger than remain if the string does not fit. Signed-off-by: Eric Sesterhenn --- fs/ocfs2/filecheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ocfs2/filecheck.c b/fs/ocfs2/filecheck.c index 2cabbcf2f28e..66d8aee30d0f 100644 --- a/fs/ocf

[PATCH 4/7] Prevent u32_format_array from returning a size too big

2017-10-11 Thread Eric Sesterhenn
snprintf can return a value bigger than the size of the buffer, in this case we return a size that is longer than the string. Signed-off-by: Eric Sesterhenn --- fs/debugfs/file.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c index 6dabc4a10396..2a5

[PATCH 1/7] Handle snprintf calculations in x_tables

2017-10-11 Thread Eric Sesterhenn
Handle the snprintf calculations more gracefully in case snprintf truncates the string. Signed-off-by: Eric Sesterhenn --- net/netfilter/x_tables.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c index c83a3b5e1c6c..327617acbf05 100644 -

[PATCH 5/7] Handle snprintf calulation more graceful in v9fs

2017-10-11 Thread Eric Sesterhenn
snprintf might return a value bigger than limit when the string gets truncated, which would cause the return value to become bogus. Signed-off-by: Eric Sesterhenn --- fs/9p/v9fs.c | 4 1 file changed, 4 insertions(+) diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c index 8fb89ddc6cc7..9e7cefc26ad

Re: [PATCH] wcn36xx: Remove unnecessary rcu_read_unlock in wcn36xx_bss_info_changed

2017-10-11 Thread Kalle Valo
Bjorn Andersson writes: > On Sun 08 Oct 06:06 PDT 2017, Jia-Ju Bai wrote: > >> No rcu_read_lock is called, but rcu_read_unlock is still called. >> Thus rcu_read_unlock should be removed. >> > > Thanks, not sure how I could miss that one. Kalle can you please include > this in a v4.14-rc pull req

[PATCH 7/7] Handle snprintf truncation more graceful in thunderx_edac

2017-10-11 Thread Eric Sesterhenn
When snprintf truncates the string, size might underflow causing a WARN_ON_ONCE in the snprintf in the next iteration. Signed-off-by: Eric Sesterhenn --- drivers/edac/thunderx_edac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/edac/thunderx_edac.c b/drivers/edac/thunderx_edac.

[PATCH 2/7] Handle snprintf calculation in stackglue

2017-10-11 Thread Eric Sesterhenn
snprintf can return a value bigger than remain if the string does not fit. Signed-off-by: Eric Sesterhenn --- fs/ocfs2/stackglue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ocfs2/stackglue.c b/fs/ocfs2/stackglue.c index d6c350ba25b9..b00d67b4cf43 100644 --- a/fs/ocf

[PATCH 08/11] Add support arm LPAE

2017-10-11 Thread Abbott Liu
On arm LPAE architecture, the mapping table of KASan shadow memory(if PAGE_OFFSET is 0xc000, the KASan shadow memory's virtual space is 0xb6e00~0xbf00) can't be filled in do_translation_fault function, because kasan instrumentation maybe cause do_translation_fault function accessing

Re: [PATCH] gpio: gpio-dwapb: add optional reset

2017-10-11 Thread Linus Walleij
On Tue, Oct 10, 2017 at 11:26 PM, Alan Tull wrote: > Some platforms require reset to be released to allow register > access. > > Signed-off-by: Alan Tull Fair enough. (...) > + rst = devm_reset_control_get_optional_exclusive(dev, NULL); > + if (IS_ERR(rst)) { > + if (

[PATCH 10/11] Change mapping of kasan_zero_page int readonly

2017-10-11 Thread Abbott Liu
Because the kasan_zero_page(which is used as the shadow region for some memory that KASan doesn't need to track.) won't be writen after kasan_init, so change the mapping of kasan_zero_page into readonly. Cc: Andrey Ryabinin --- arch/arm/mm/kasan_init.c | 12 1 file changed, 12 in

[PATCH 05/11] Disable kasan's instrumentation

2017-10-11 Thread Abbott Liu
From: Andrey Ryabinin To avoid some build and runtime errors, compiler's instrumentation must be disabled for code not linked with kernel image. Cc: Andrey Ryabinin Signed-off-by: Abbott Liu --- arch/arm/boot/compressed/Makefile | 1 + arch/arm/kernel/unwind.c | 3 ++- arch/arm/vds

[PATCH 09/11] Don't need to map the shadow of KASan's shadow memory

2017-10-11 Thread Abbott Liu
Because the KASan's shadow memory don't need to track,so remove the mapping code in kasan_init. Cc: Andrey Ryabinin --- arch/arm/mm/kasan_init.c | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/mm/kasan_init.c b/arch/arm/mm/kasan_init.c index 2bf0782..7cfdc39 100644 --- a/arch/a

[PATCH 11/11] Add KASan layout

2017-10-11 Thread Abbott Liu
Add KASan layout into virtual kernel memory layout. Cc: Andrey Ryabinin --- arch/arm/mm/init.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index ad80548..b490cf4 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -537,6 +537,9 @@ voi

Re: [Question]: try to fix contention between expire_timers and try_to_del_timer_sync

2017-10-11 Thread qiaozhou
Hi Will, On 2017年10月02日 22:14, Will Deacon wrote: Hi Qiao, On Mon, Sep 25, 2017 at 07:02:03PM +0800, qiaozhou wrote: Will this bodging patch be merged? It can solve the livelock issue on arm64 platforms(at least improve a lot). Whilst it seemed to help in some cases, I'm not keen to merge it

[PATCH 03/11] arm: Kconfig: enable KASan

2017-10-11 Thread Abbott Liu
From: Andrey Ryabinin This patch enable kernel address sanitizer for arm. Cc: Andrey Ryabinin Signed-off-by: Abbott Liu --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 7888c98..e9249fd 100644 --- a/arch/arm/Kconfig +++ b/arch/

[PATCH 00/11] KASan for arm

2017-10-11 Thread Abbott Liu
Hi,all: These patches add arch specific code for kernel address sanitizer (see Documentation/kasan.txt). 1/8 of kernel addresses reserved for shadow memory. There was no big enough hole for this, so virtual addresses for shadow were stolen from user space. At early boot stage the

Re: [PATCH 1/6] sched/wait: Add swq_has_sleepers()

2017-10-11 Thread Peter Zijlstra
On Tue, Sep 05, 2017 at 12:00:17PM -0700, Davidlohr Bueso wrote: > Which is the equivalent of what we have in regular waitqueues. > I'm not crazy about the name, but this also helps us get both > apis closer -- which iirc comes originally from the -net folks. I'm confused. I don't see anything lik

[PATCH 04/11] Define the virtual space of KASan's shadow region

2017-10-11 Thread Abbott Liu
Define KASAN_SHADOW_OFFSET,KASAN_SHADOW_START and KASAN_SHADOW_END for arm kernel address sanitizer. ++ 0x || || || ++ CONFIG_PAGE_OFFSET ||\ || |-> module virtual address space area. ||/ ++ MODULE_VADDR = KA

[PATCH 01/11] Initialize the mapping of KASan shadow memory

2017-10-11 Thread Abbott Liu
From: Andrey Ryabinin This patch initializes KASan shadow region's page table and memory. There are two stage for KASan initializing: 1. At early boot stage the whole shadow region is mapped to just one physical page (kasan_zero_page). It's finished by the function kasan_early_init which is

[PATCH 02/11] replace memory function

2017-10-11 Thread Abbott Liu
From: Andrey Ryabinin Functions like memset/memmove/memcpy do a lot of memory accesses. If bad pointer passed to one of these function it is important to catch this. Compiler's instrumentation cannot do this since these functions are written in assembly. KASan replaces memory functions with manu

[PATCH 6/7] Handle snprintf truncation in msm_perf more gracefully

2017-10-11 Thread Eric Sesterhenn
This prevents the snprintf to cause a WARN_ON_ONCE if rem gets negative. This can happen if an earlier snprintf truncates the string but returns the length it would require to print the full string. Signed-off-by: Eric Sesterhenn --- drivers/gpu/drm/msm/msm_perf.c | 12 +++- 1 file chan

Re: [PATCH v6 1/2] dt-bindings: gpio: uniphier: add UniPhier GPIO binding

2017-10-11 Thread Linus Walleij
On Wed, Sep 27, 2017 at 4:40 AM, Masahiro Yamada wrote: > This GPIO controller is used on UniPhier SoC family. > > The vendor specific property "socionext,interrupt-ranges" is for > specifying interrupt mapping to the parent interrupt controller > because the mapping is not contiguous. It works

Re: [PATCH v6 2/2] gpio: uniphier: add UniPhier GPIO controller driver

2017-10-11 Thread Linus Walleij
On Wed, Sep 27, 2017 at 4:40 AM, Masahiro Yamada wrote: > This GPIO controller is used on UniPhier SoC family. > > It also serves as an interrupt controller, but interrupt signals are > just delivered to the parent irqchip without any latching or OR'ing. > This type of hardware can be well descri

Re: [POC] Extend "movable_node" to "movable_node=nn@ss" and add the interface in /sys to show the value

2017-10-11 Thread Baoquan He
Hi dear Fan San, On 10/11/17 at 04:23pm, Chao Fan wrote: > On Wed, Oct 11, 2017 at 03:55:13PM +0800, Baoquan He wrote: > >Hi Fan San, > >> 1. Get and parse the srat table before kernel extracted, then mark the > >> memory > >>region in movable node which should be avoided in kaslr. > >>I

Re: [PATCH] rtl8xxxu: mark expected switch fall-throughs

2017-10-11 Thread Kalle Valo
Jes Sorensen writes: > On 10/10/2017 03:30 PM, Gustavo A. R. Silva wrote: >> In preparation to enabling -Wimplicit-fallthrough, mark switch cases >> where we are expecting to fall through. > > While this isn't harmful, to me this looks like pointless patch churn > for zero gain and it's just ugly

Re: [PATCH v6 1/2] dt-bindings: gpio: uniphier: add UniPhier GPIO binding

2017-10-11 Thread Linus Walleij
On Wed, Oct 11, 2017 at 10:35 AM, Linus Walleij wrote: > On Wed, Sep 27, 2017 at 4:40 AM, Masahiro Yamada > wrote: > >> This GPIO controller is used on UniPhier SoC family. >> >> The vendor specific property "socionext,interrupt-ranges" is for >> specifying interrupt mapping to the parent interru

[PATCH 0/3] pci_endpoint_test: Fix module removal/insertion cycle

2017-10-11 Thread Kishon Vijay Abraham I
This series fixes module removal/insertion cycle of pci_endpoint_test. Without this series, when trying to modprobe pci_endpoint_test after rmmod pci_endpoint_test results in the following errors. pci-endpoint-test :01:00.0: BAR 0: can't reserve [mem 0x20204600-0x202046ff] pci-endpoint-test 0

[PATCH 1/3] misc: pci_endpoint_test: Fix failure path return values in probe

2017-10-11 Thread Kishon Vijay Abraham I
Return value of pci_endpoint_test_probe is not set properly in a couple of failure cases. Fix it here. Signed-off-by: Kishon Vijay Abraham I --- drivers/misc/pci_endpoint_test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/misc/pci_endpoint_test.c b/drivers/misc/pci_endpoint_tes

[PATCH 2/3] misc: pci_endpoint_test: Fix pci_endpoint_test not releasing resources on remove

2017-10-11 Thread Kishon Vijay Abraham I
sscanf(misc_device->name, DRV_MODULE_NAME ".%d", &id) in pci_endpoint_test_remove returns '0' which results in pci_endpoint_test_remove returning early without releasing the resources. This is as a result of misc_device not having a valid name. Fix it here. Signed-off-by: Kishon Vijay Abraham I -

[PATCH 3/3] misc: pci_endpoint_test: Fix BUG_ON error during pci_disable_msi

2017-10-11 Thread Kishon Vijay Abraham I
pci_disable_msi throws a Kernel BUG if the driver has successfully requested an irq and not released it. Fix it here by freeing irqs before invoking pci_disable_msi. Signed-off-by: Kishon Vijay Abraham I --- drivers/misc/pci_endpoint_test.c | 8 1 file changed, 8 insertions(+) diff --g

  1   2   3   4   5   6   7   8   9   10   >