Build regressions/improvements in v4.14-rc3

2017-10-02 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.14-rc3[1] compared to v4.13[2]. Summarized: - build errors: +8/-0 - build warnings: +1155/-6331 JFYI, when comparing v4.14-rc3[1] to v4.14-rc2[3], the summaries are: - build errors: +2/-0 - build warnings: +533/-404

Re: [PATCH] ASoC: codecs: msm8916-wcd-analog: fix micbias level

2017-10-02 Thread Srinivas Kandagatla
Thanks for the patch. On 29/09/17 21:19, Jean-François Têtu wrote: The macro used to set the microphone bias level causes the snd_soc_write() call to overwrite other fields in the CDC_A_MICB_1_VAL register. The macro also does not return the proper level value to use. This fixes this by preservi

Re: [PATCH v5 4/7] arm64: sysreg: Move SPE registers and PSB into common header files

2017-10-02 Thread Marc Zyngier
On 28/09/17 15:09, Will Deacon wrote: > SPE is part of the v8.2 architecture, so move its system register and > field definitions into sysreg.h and the new PSB barrier into barrier.h > > Finally, move KVM over to using the generic definitions so that it > doesn't have to open-code its own versions

[PATCH RFC] mm: implement write-behind policy for sequential file writes

2017-10-02 Thread Konstantin Khlebnikov
Traditional writeback tries to accumulate as much dirty data as possible. This is worth strategy for extremely short-living files and for batching writes for saving battery power. But for workloads where disk latency is important this policy generates periodic disk load spikes which increases laten

Re: Build regressions/improvements in v4.14-rc3

2017-10-02 Thread Geert Uytterhoeven
On Mon, Oct 2, 2017 at 11:49 AM, Geert Uytterhoeven wrote: > JFYI, when comparing v4.14-rc3[1] to v4.14-rc2[3], the summaries are: > - build errors: +2/-0 Just the eternal sh4/sh-randconfig noise. > [1] > http://kisskb.ellerman.id.au/kisskb/head/9e66317d3c92ddaab330c125dfe9d06eee268aff/ > (a

[PATCH 3/4] irqchip: imgpdc: Set sys wake polarities to active high

2017-10-02 Thread Ed Blake
Set all sys wake polarities to active high during initial setup. The default is active low, which currently causes the 'flow_type' passed into the set_type function to be effectively inverted. Signed-off-by: Ed Blake --- drivers/irqchip/irq-imgpdc.c | 10 -- 1 file changed, 8 insertions

[PATCH 1/4] irqchip: imgpdc: Avoid unbalanced irq wake disable

2017-10-02 Thread Ed Blake
To avoid 'unbalanced irq wake disable' kernel warnings, only pass on wake disables to the parent irq controller if the previous wake enable succeeded. Some platforms utilise the wake capability of the parent irq controller, so we must attempt to pass on wake enables to the parent. But in other pla

[PATCH 4/4] irqchip: imgpdc: Pass on peripheral mask/unmasks to the parent

2017-10-02 Thread Ed Blake
Pass on peripheral (RTC/IR/WD) irq masks and unmasks to the parent interrupt controller, as well as setting / clearing the relevant bits in the IRQ_ROUTE register. Clearing bits in the IRQ_ROUTE register will prevent future interrupts from being passed on to the parent, but won't mask an existing

[PATCH 2/4] irqchip: imgpdc: Avoid immediate wake event during set_wake

2017-10-02 Thread Ed Blake
When enabling sys wakes, an immediate power transition may occur if the wake input has been active in the past. Work around this by doing the following: 1) Set SYS_WAKE_CONFIG to the current value of SOC_POWER so that an immediate power transition has no effect 2) Enable and disable

[PATCH 0/4] irqchip: imgpdc: Fix various issues

2017-10-02 Thread Ed Blake
This patch set contains fixes for various issues in the irq-imgpdc driver. Ed Blake (4): irqchip: imgpdc: Avoid unbalanced irq wake disable irqchip: imgpdc: Avoid immediate wake event during set_wake irqchip: imgpdc: Set sys wake polarities to active high irqchip: imgpdc: Pass on periphera

Re: [PATCH v5 4/7] arm64: sysreg: Move SPE registers and PSB into common header files

2017-10-02 Thread Mark Rutland
On Thu, Sep 28, 2017 at 03:09:48PM +0100, Will Deacon wrote: > SPE is part of the v8.2 architecture, so move its system register and > field definitions into sysreg.h and the new PSB barrier into barrier.h > > Finally, move KVM over to using the generic definitions so that it > doesn't have to ope

Re: [PATCH v1 1/2] ASoC: codecs: msm8916-wcd-analog: move pm8916_wcd_setup_mbhc

2017-10-02 Thread Srinivas Kandagatla
Thanks for the patch, On 29/09/17 18:42, Damien Riegel wrote: In preparation of a fix for the initial detection of headset, pm8916_wcd_setup_mbhc is moved to be defined after pm8916_mbhc_configure_bias instead of before. Signed-off-by: Damien Riegel --- sound/soc/codecs/msm8916-wcd-analog.c

Re: [PATCH] livepatch: Small shadow variable documentation fixes

2017-10-02 Thread Jiri Kosina
On Mon, 25 Sep 2017, Petr Mladek wrote: > The description of the basic operations was a bit inconsistent > and based on older version of the patchset. > > Also the size of the spinlock structure should be allocated > instead of the pointer. > > Signed-off-by: Petr Mladek Applied, thanks. --

Re: [PATCH 2/4] staging: ccree: simplify access to struct device

2017-10-02 Thread Joe Perches
On Mon, 2017-10-02 at 10:03 +0100, Gilad Ben-Yossef wrote: > Introduce a DEV macro to retrieve struct device from private > data structure in preparation to replacing custom logging > macros with proper dev_dbg and friends which require struct > device. [] > diff --git a/drivers/staging/ccree/ssi_d

Re: [PATCH v5 5/7] arm64: head: Init PMSCR_EL2.{PA,PCT} when entered at EL2 without VHE

2017-10-02 Thread Mark Rutland
On Thu, Sep 28, 2017 at 03:09:49PM +0100, Will Deacon wrote: > When booting at EL2, ensure that we permit the EL1 host to sample > physical addresses and physical counter values using SPE. > > Signed-off-by: Will Deacon > --- > arch/arm64/kernel/head.S | 17 - > 1 file changed, 1

Re: [PATCH v5 7/7] dt-bindings: Document devicetree binding for ARM SPE

2017-10-02 Thread Mark Rutland
On Thu, Sep 28, 2017 at 03:09:51PM +0100, Will Deacon wrote: > This patch documents the devicetree binding in use for ARM SPE. > > Cc: Mark Rutland > Cc: Rob Herring > Signed-off-by: Will Deacon > --- > Documentation/devicetree/bindings/arm/spe-pmu.txt | 20 > 1 file chang

Re: [PATCH RFC 2/4] pinctrl: Rename mux group to group_or_pin to prepare for pin support

2017-10-02 Thread Charles Keepax
On Fri, Sep 29, 2017 at 11:15:01AM +0100, Charles Keepax wrote: > From: Charles Keepax > > To prepare for adding support for muxing individual pins rename the > group member of the pinctrl_map_mux and pinctrl_setting_mux structs to > group_or_pin. > > Signed-off-by: Charles Keepax > --- > incl

Re: [Xen-devel] KVM PV (was: Re: [PATCH v2 2/2] x86/lguest: remove lguest support)

2017-10-02 Thread George Dunlap
On Fri, Sep 29, 2017 at 5:39 PM, Paolo Bonzini wrote: > On 29/09/2017 17:47, Lai Jiangshan wrote: >> Hello, all >> >> An interesting (at least to me) thinking came up to me when I found >> that the lguest was removed. But I don't have enough knowledge >> to find out the answer nor energy to implem

RE: [PATCH v3] PCIe AER: report uncorrectable errors only to the functions that logged the errors

2017-10-02 Thread Gabriele Paoloni
[...] > > > > Applied to pci/aer for v4.15, thanks! > > > > I rewrote some of the changelog to say "non-fatal" instead of > > "uncorrectable", since "uncorrectable" also includes fatal errors, > > and you're not changing those. Take a look and let me know if > > I broke anything. > > Here it is

Re: [PATCH] arm64: Expose ASIMD dot product instruction support

2017-10-02 Thread Will Deacon
On Wed, Sep 27, 2017 at 03:33:16PM +0100, Suzuki K Poulose wrote: > ARM v8-A adds two new optional instructions in architecture version v8.2 > and v8.3, for performing dot product of 8bit elements in each 32bit element > of two vectors and accumulating the result into a third vector. Expose the > f

Re: [PATCH v3] dma-debug: fix incorrect pfn calculation

2017-10-02 Thread Miles Chen
On Sun, 2017-10-01 at 10:04 +0200, Christoph Hellwig wrote: > On Wed, Sep 27, 2017 at 11:23:52AM +0100, Robin Murphy wrote: > > > I found that debug_dma_alloc_coherent() and debug_dma_free_coherent() > > > assume that dma_alloc_coherent() always returns a linear address. > > > However it's possible

[PATCH] fsl/fman: remove of_node

2017-10-02 Thread Madalin Bucur
The FMan MAC driver allocates a platform device for the Ethernet driver to probe on. Setting pdev->dev.of_node with the MAC node triggers the MAC driver probing of the new platform device. While this fails quickly and does not affect the functionality of the drivers, it is incorrect and must be rem

Re: [PATCH 03/18] media: use ARRAY_SIZE

2017-10-02 Thread Michael Ira Krufky
On Sun, Oct 1, 2017 at 3:30 PM, Jérémy Lefaure wrote: > Using the ARRAY_SIZE macro improves the readability of the code. Also, > it is not always useful to use a variable to store this constant > calculated at compile time. > > Found with Coccinelle with the following semantic patch: > @r depends

Re: [PATCH v3 1/3] iio: accel: mma8452: Rename structs holding event configuration registers to more appropriate names.

2017-10-02 Thread Jonathan Cameron
On Sun, 1 Oct 2017 20:10:49 +0200 Martin Kepplinger wrote: > On 2017-09-30 19:59, Jonathan Cameron wrote: > > On Wed, 27 Sep 2017 08:52:54 +0200 > > Martin Kepplinger wrote: > > > >> Am 25.09.2017 12:40 schrieb Harinath Nampally: > >>> Improves code readability, no impact on functionality.

Re: [Xen-devel] KVM PV (was: Re: [PATCH v2 2/2] x86/lguest: remove lguest support)

2017-10-02 Thread George Dunlap
On Sat, Sep 30, 2017 at 4:39 AM, Paolo Bonzini wrote: > > - Lai Jiangshan ha scritto: >> On Sat, Sep 30, 2017 at 12:39 AM, Paolo Bonzini wrote: >> > On 29/09/2017 17:47, Lai Jiangshan wrote: >> >> Hello, all >> >> >> >> An interesting (at least to me) thinking came up to me when I found >> >

Re: [PATCH v2 1/1] mm: only dispaly online cpus of the numa node

2017-10-02 Thread Will Deacon
[+akpm] Hi Thunder, On Fri, Sep 29, 2017 at 05:53:25PM +0800, Zhen Lei wrote: > When I executed numactl -H(which read /sys/devices/system/node/nodeX/cpumap > and display cpumask_of_node for each node), but I got different result on > X86 and arm64. For each numa node, the former only displayed on

[PATCH v3 18/19] net: Add support for networking over Thunderbolt cable

2017-10-02 Thread Mika Westerberg
From: Amir Levy ThunderboltIP is a protocol created by Apple to tunnel IP/ethernet traffic over a Thunderbolt cable. The protocol consists of configuration phase where each side sends ThunderboltIP login packets (the protocol is determined by UUID in the XDomain packet header) over the configurat

[PATCH v3 10/19] thunderbolt: Export ring handling functions to modules

2017-10-02 Thread Mika Westerberg
These are used by Thunderbolt services to send and receive frames over the high-speed DMA rings. We also put the functions to tb_ namespace to make sure we do not collide with others and add missing kernel-doc comments for the exported functions. Signed-off-by: Mika Westerberg Reviewed-by: Micha

[PATCH v3 07/19] thunderbolt: Add support for XDomain discovery protocol

2017-10-02 Thread Mika Westerberg
When two hosts are connected over a Thunderbolt cable, there is a protocol they can use to communicate capabilities supported by the host. The discovery protocol uses automatically configured control channel (ring 0) and is build on top of request/response transactions using special XDomain primiti

[PATCH v3 05/19] thunderbolt: Move thunderbolt domain structure to thunderbolt.h

2017-10-02 Thread Mika Westerberg
These are needed by Thunderbolt services so move them to thunderbolt.h to make sure they are available outside of drivers/thunderbolt. Signed-off-by: Mika Westerberg Reviewed-by: Michael Jamet Reviewed-by: Yehezkel Bernat Reviewed-by: Andy Shevchenko --- drivers/thunderbolt/tb.h| 42 -

[PATCH v3 06/19] thunderbolt: Move tb_switch_phy_port_from_link() to thunderbolt.h

2017-10-02 Thread Mika Westerberg
A Thunderbolt service might need to find the physical port from a link the cable is connected to. For instance networking driver uses this information to generate MAC address according the Apple ThunderboltIP protocol. Move this function to thunderbolt.h and rename it to tb_phy_port_from_link() to

[PATCH v3 11/19] thunderbolt: Move ring descriptor flags to thunderbolt.h

2017-10-02 Thread Mika Westerberg
A Thunderbolt service driver might need to check if there was an error with the descriptor when in frame mode. We also add two Rx specific error flags RING_DESC_CRC_ERROR and RING_DESC_BUFFER_OVERRUN. Signed-off-by: Mika Westerberg Reviewed-by: Michael Jamet Reviewed-by: Yehezkel Bernat Reviewe

[PATCH v3 17/19] MAINTAINERS: Add thunderbolt.h to the Thunderbolt driver entry

2017-10-02 Thread Mika Westerberg
The new API header (include/linux/thunderbolt.h) is maintained by the Thunderbolt driver maintainers. Signed-off-by: Mika Westerberg Reviewed-by: Michael Jamet Reviewed-by: Yehezkel Bernat --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 65b0c

[PATCH v3 03/19] thunderbolt: Add support for XDomain properties

2017-10-02 Thread Mika Westerberg
Thunderbolt XDomain discovery protocol uses directories which contain properties and other directories to exchange information about what capabilities the remote host supports. This also includes identification information like device ID and name. This adds support for parsing and formatting these

[PATCH v3 04/19] thunderbolt: Move enum tb_cfg_pkg_type to thunderbolt.h

2017-10-02 Thread Mika Westerberg
These will be needed by Thunderbolt services when sending and receiving XDomain control messages. While there change TB_CFG_PKG_PREPARE_TO_SLEEP value to be decimal in order to be consistent with other members. Signed-off-by: Mika Westerberg Reviewed-by: Michael Jamet Reviewed-by: Yehezkel Berna

[PATCH v3 16/19] thunderbolt: Allocate ring HopID automatically if requested

2017-10-02 Thread Mika Westerberg
Thunderbolt services should not care which HopID (ring) they use for sending and receiving packets over the high-speed DMA path, so make tb_ring_alloc_rx() and tb_ring_alloc_tx() accept negative HopID. This means that the NHI will allocate next available HopID for the caller automatically. These H

[PATCH v3 19/19] MAINTAINERS: Add entry for Thunderbolt network driver

2017-10-02 Thread Mika Westerberg
I will be maintaining the Thunderbolt network driver along with Michael and Yehezkel. Signed-off-by: Michael Jamet Signed-off-by: Yehezkel Bernat Signed-off-by: Mika Westerberg --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 34661b5ac

[PATCH v3 13/19] thunderbolt: Use spinlock in NHI serialization

2017-10-02 Thread Mika Westerberg
This is needed because ring polling functionality can be called from atomic contexts when networking and other high-speed traffic is transferred over a Thunderbolt cable. Signed-off-by: Mika Westerberg Reviewed-by: Michael Jamet Reviewed-by: Yehezkel Bernat Reviewed-by: Andy Shevchenko --- dr

[PATCH v3 14/19] thunderbolt: Add polling mode for rings

2017-10-02 Thread Mika Westerberg
In order to support things like networking over Thunderbolt cable, there needs to be a way to switch the ring to a mode where it can be polled with the interrupt masked. We implement such mode so that the caller can allocate a ring by passing pointer to a function that is then called when an interr

Re: [kernel-hardening] [RFC V2 2/6] lib: vsprintf: whitelist stack traces

2017-10-02 Thread Will Deacon
On Sun, Oct 01, 2017 at 11:06:46AM +1100, Tobin C. Harding wrote: > Use the %pP functionality to explicitly allow kernel > pointers to be logged for stack traces. > > Signed-off-by: Tobin C. Harding > --- > arch/arm64/kernel/traps.c | 4 ++-- > kernel/printk/printk.c| 2 +- > 2 files changed

[PATCH v3 15/19] thunderbolt: Add function to retrieve DMA device for the ring

2017-10-02 Thread Mika Westerberg
This is needed when Thunderbolt service drivers need to DMA map memory before it is passed down to the ring. Signed-off-by: Mika Westerberg Reviewed-by: Michael Jamet Reviewed-by: Yehezkel Bernat Reviewed-by: Andy Shevchenko --- include/linux/thunderbolt.h | 13 + 1 file changed,

[PATCH v3 09/19] thunderbolt: Add support for frame mode

2017-10-02 Thread Mika Westerberg
When high-speed DMA paths are used to transfer arbitrary data over a Thunderbolt link, DMA rings should be in frame mode instead of raw mode. The latter is used by the control channel (ring 0). In frame mode each data frame can hold up to 4kB payload. This patch modifies the DMA ring code to allow

[PATCH v3 01/19] byteorder: Move {cpu_to_be32,be32_to_cpu}_array() from Thunderbolt to core

2017-10-02 Thread Mika Westerberg
We will be using these when communicating XDomain discovery protocol over Thunderbolt link but they might be useful for other drivers as well. Make them available through byteorder/generic.h. Suggested-by: Andy Shevchenko Signed-off-by: Mika Westerberg Reviewed-by: Michael Jamet Reviewed-by: Y

[PATCH v3 08/19] thunderbolt: Configure interrupt throttling for all interrupts

2017-10-02 Thread Mika Westerberg
This will keep the interrupt delivery rate reasonable. The value used here (128 us) is a recommendation from the hardware people. This code is based on the work done by Amir Levy and Michael Jamet. Signed-off-by: Michael Jamet Signed-off-by: Mika Westerberg Reviewed-by: Yehezkel Bernat Reviewe

[PATCH v3 00/19] Thunderbolt networking

2017-10-02 Thread Mika Westerberg
Hi, In addition of tunneling PCIe, Display Port and USB traffic, Thunderbolt allows connecting two hosts (domains) over a Thunderbolt cable. It is possible to tunnel arbitrary data packets over such connection using high-speed DMA rings available in the Thunderbolt host controller. In order to di

Re: [PATCH v3] mmc: dt-bindings: Add reg/source_cg/latch-ck for Mediatek MMC bindings

2017-10-02 Thread Matthias Brugger
On 09/29/2017 01:50 PM, Chaotian Jing wrote: On Fri, 2017-09-29 at 13:11 +0200, Matthias Brugger wrote: On 09/22/2017 02:03 PM, Chaotian Jing wrote: Change the comptiable for support of multi-platform Add description for reg Add description for source_cg Add description for mediatek,latch-ck

[PATCH v3 02/19] thunderbolt: Remove __packed from ICM message structures

2017-10-02 Thread Mika Westerberg
These messages are all 32-byte aligned and they should be packed without the __packed attribute just fine. It also allows compiler to generate better code on some architectures. Signed-off-by: Mika Westerberg Reviewed-by: Michael Jamet Reviewed-by: Yehezkel Bernat --- drivers/thunderbolt/tb_ms

[PATCH v3 12/19] thunderbolt: Use spinlock in ring serialization

2017-10-02 Thread Mika Westerberg
This makes it possible to enqueue frames also from atomic context which is needed for example, when networking packets are sent over a Thunderbolt cable. Signed-off-by: Mika Westerberg Reviewed-by: Michael Jamet Reviewed-by: Yehezkel Bernat Reviewed-by: Andy Shevchenko --- drivers/thunderbolt

Re: [RFC] sched/fair: Use wake_q length as a hint for wake_wide

2017-10-02 Thread Brendan Jackman
Hi PeterZ, I just got this in my inbox and noticed I didn't adress it to anyone. I meant to address it to you. On Fri, Sep 29 2017 at 17:05, Brendan Jackman wrote: > There has been a bit of discussion on this RFC, but before I do any > more work I'd really like your input on the basic idea. > > D

Re: [PATCH 01/12] mmc: dt-bindings: update Mediatek MMC bindings

2017-10-02 Thread Yingjoe Chen
On Fri, 2017-09-29 at 09:56 +0800, Chaotian Jing wrote: > On Wed, 2017-09-27 at 09:18 +0800, Chaotian Jing wrote: > > On Wed, 2017-09-27 at 00:33 +0200, Ulf Hansson wrote: > > > On 14 September 2017 at 04:10, Chaotian Jing > > > wrote: > > > > On Wed, 2017-09-13 at 09:10 -0500, Rob Herring wrote:

[PATCH v2] drivers/ide/pci: Fix legacy IRQ assignment

2017-10-02 Thread Lorenzo Pieralisi
Through struct pci_host_bridge->{map/swizzle}_irq() hooks is now possible to define IRQ mapping functions on a per PCI host bridge basis. Actual IRQ allocation is carried out by the pci_assign_irq() function in pci_device_probe() - to make sure a device is assigned an IRQ only if it is probed (ie

[PATCH] kbuild: allow making undefined symbols fatal for external modules

2017-10-02 Thread Jonas Gorski
By passing appropriate values in KBUILD_EXTRA_SYMBOLS it is possible to make modpost be able to resolve all symbols for external modules, even between to other external modules. Because of this, it might be desirable to make unresolved symbols an error on external module builds as well, to catch m

v4.14-rc2/arm64 kernel BUG at net/core/skbuff.c:2626

2017-10-02 Thread Mark Rutland
/www.kernel.org/pub/linux/kernel/people/mark/bugs/20171002-skbuff-bug/ [2] https://lkml.kernel.org/r/20170920180413.26713-1-aarca...@redhat.com [ cut here ] kernel BUG at net/core/skbuff.c:2626! Internal error: Oops - BUG: 0 [#1] PREEMPT SMP Modules linked in: CPU: 3 PID: 0 Co

Re: [PATCH] hid: retrode: tell what a Retrode is and drop a blank line

2017-10-02 Thread Jiri Kosina
On Sat, 23 Sep 2017, Randy Dunlap wrote: > From: Randy Dunlap > > Add descriptive info to prompt string so that someone can know what > a Retrode is. Drop an unneeded blank line. Applied. -- Jiri Kosina SUSE Labs

[PATCH] iommu/iova: Don't try to copy anchor nodes

2017-10-02 Thread Robin Murphy
Anchor nodes are not reserved IOVAs in the way that copy_reserved_iova() cares about - while the failure from reserve_iova() is benign since the target domain will already have its own anchor, we still don't want to be triggering spurious warnings. Reported-by: kernel test robot Signed-off-by: Ro

Re: [PATCH 09/18] nfsd: use ARRAY_SIZE

2017-10-02 Thread Jeff Layton
On Sun, 2017-10-01 at 15:30 -0400, Jérémy Lefaure wrote: > Using the ARRAY_SIZE macro improves the readability of the code. > > Found with Coccinelle with the following semantic patch: > @r depends on (org || report)@ > type T; > T[] E; > position p; > @@ > ( > (sizeof(E)@p /sizeof(*E)) > > > >

Re: How to verify linux-next

2017-10-02 Thread valdis . kletnieks
On Mon, 02 Oct 2017 10:11:34 +0200, Kamil Konieczny said: > What about /usr/bin/ssh as init replacement ? Well, if you are OK with your system panicking right away. :) (Hint - the init process needs to be something that can run as a daemon). If you use /usr/sbin/sshd, that has a *slightly* bett

Re: [PATCH v2 1/3] livepatch: Add force sysfs attribute

2017-10-02 Thread Petr Mladek
On Mon 2017-08-28 16:58:40, Miroslav Benes wrote: > On Wed, 16 Aug 2017, Petr Mladek wrote: > > > On Thu 2017-08-10 12:48:13, Miroslav Benes wrote: > > > Add read-write force attribute to livepatch sysfs infrastructure. We can > > > use it later to force couple of events during a live patching pro

Re: [PATCH v2 2/2] cpufreq: schedutil: consolidate capacity margin calculation

2017-10-02 Thread Leo Yan
Hi Joel, On Sun, Oct 01, 2017 at 06:02:24PM -0700, Joel Fernandes wrote: > Hi Leo, > > On Sun, Oct 1, 2017 at 5:30 PM, Leo Yan wrote: > > Scheduler CFS class has variable 'capacity_margin' to calculate the > > s/calculate/represent/ ? > > > capacity margin, and schedutil governor also needs to

Re: [PATCH v2 0/3] livepatch: Introduce force sysfs attribute

2017-10-02 Thread Petr Mladek
On Wed 2017-08-30 14:51:16, Miroslav Benes wrote: > On Wed, 16 Aug 2017, Josh Poimboeuf wrote: > > > On Wed, Aug 16, 2017 at 04:50:07PM +0200, Petr Mladek wrote: > > > On Fri 2017-08-11 16:11:31, Josh Poimboeuf wrote: > > > > On Thu, Aug 10, 2017 at 12:48:12PM +0200, Miroslav Benes wrote: > > > >

Re: [PATCH] soc: mediatek: turn MTK_PMIC_WRAP into visible symbols

2017-10-02 Thread Arnd Bergmann
On Tue, Sep 26, 2017 at 8:00 AM, Jean Delvare wrote: > On Thu, 21 Sep 2017 17:01:05 +0800, sean.w...@mediatek.com wrote: >> From: Sean Wang >> >> MTK_PMIC_WRAP is the basic and required configuration for those various >> MediaTek PMICs, so turning MTK_PMIC_WRAP into visible symbols easily >> allo

Re: Fail to build Linux with O= in master

2017-10-02 Thread Julien Grall
Hello, On 30/09/17 01:37, Masahiro Yamada wrote: 2017-09-30 8:59 GMT+09:00 Julien Grall : Hello, I have tried to build the latest master and got the following error: 42sh> make O=~/works/linux-build/aarch64-4k -C ~/works/linux make: Entering directory '/home/julgra01/works/linux' Makefile:135

Re: [PATCH 0/2 v8] oom: capture unreclaimable slab info in oom message

2017-10-02 Thread Michal Hocko
On Thu 28-09-17 13:36:57, Tetsuo Handa wrote: > On 2017/09/28 6:46, Yang Shi wrote: > > Changelog v7 —> v8: > > * Adopted Michal’s suggestion to dump unreclaim slab info when > > unreclaimable slabs amount > total user memory. Not only in oom panic path. > > Holding slab_mutex inside dump_unrecla

Re: [PATCH RFC] mm: implement write-behind policy for sequential file writes

2017-10-02 Thread Florian Weimer
On 10/02/2017 11:54 AM, Konstantin Khlebnikov wrote: This patch implements write-behind policy which tracks sequential writes and starts background writeback when have enough dirty pages in a row. Does this apply to data for files which have never been written to disk before? I think one of

Re: [PATCH 3/5] dmaengine: Support for querying maximum trasnfer length (of an SG element)

2017-10-02 Thread Peter Ujfalusi
 Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 2017-09-26 19:54, Vinod Koul wrote: >>> >>> not another callback :) >>> >>> on a serious note, why shouldn't this be one more capability in >>> dma_slave_caps. loo

Re: [PATCH] kbuild: revert $(realpath ...) to $(shell cd ... && /bin/pwd)

2017-10-02 Thread Julien Grall
Hello, On 02/10/17 09:07, Masahiro Yamada wrote: I thought commit 8e9b46679923 ("kbuild: use $(abspath ...) instead of $(shell cd ... && /bin/pwd)") was a safe conversion, but it changed the behavior. $(abspath ...) / $(realpath ...) does not expand shell special characters, such as '~'. Here

Re: [PATCH] lightnvm: pblk: fix changing GC group list for a line

2017-10-02 Thread Javier González
> On 28 Sep 2017, at 16.40, Rakesh Pandit wrote: > > pblk_line_gc_list seems to had a bug since the introduction of pblk in > getting GC list for a line. In b20ba1bc7 while redesigning GC > algorithm it was not fixed correctly. The problem is that even if > valid sector count (vsc) is less that

Re: [PATCH 1/6] lightnvm: pblk: remove useless line

2017-10-02 Thread Javier González
> On 1 Oct 2017, at 15.23, Rakesh Pandit wrote: > > Signed-off-by: Rakesh Pandit > --- > drivers/lightnvm/pblk-core.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c > index 1f8aa94..4ffd1d6 100644 > --- a/drivers/lightnvm/pblk-

Re: [PATCH] x86/CPU/AMD, mm: Extend with mem_encrypt=sme option

2017-10-02 Thread Brijesh Singh
On 10/1/17 5:02 PM, Borislav Petkov wrote: > On Sun, Oct 01, 2017 at 02:45:09PM -0500, Brijesh Singh wrote: >>> So I want to be able to disable SEV and the whole code that comes with >>> it in the *host*. >> We can add a new variable 'sme_only'. By default this variable should be set >> to false.

Re: [PATCH 2/6] lightnvm: pblk: reduce arguments in __pblk_rb_update_l2p

2017-10-02 Thread Javier González
> On 1 Oct 2017, at 15.23, Rakesh Pandit wrote: > > We already pass the structure pointer so no need to pass the member. > > Signed-off-by: Rakesh Pandit > --- > drivers/lightnvm/pblk-rb.c | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/lightnvm/pbl

Re: [PATCH 3/6] lightnvm: remove unused argument from nvm_set_tgt_bb_tbl

2017-10-02 Thread Javier González
> On 1 Oct 2017, at 15.24, Rakesh Pandit wrote: > > vblk isn't being used anyway and if we ever have a usecase we can > introduce this again. This makes the logic easier and removes > unnecessary checks. > > Signed-off-by: Rakesh Pandit > --- > drivers/lightnvm/core.c | 29 ---

Re: [PATCH 4/6] lightnvm: remove stable extern and unused exported symbols

2017-10-02 Thread Javier González
> On 1 Oct 2017, at 15.25, Rakesh Pandit wrote: > > Not all exported symbols are being used outside core and there were > some stable entries in lightnvm.h > > Signed-off-by: Rakesh Pandit > --- > drivers/lightnvm/core.c | 129 +++ > include/linux/lig

[PATCH] staging: rts5208: use usleep_range instead of udelay

2017-10-02 Thread Keerthi Reddy
Since a its a slow device, allow a small range of 100 Signed-off-by: Keerthi Reddy --- drivers/staging/rts5208/rtsx_card.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rts5208/rtsx_card.c b/drivers/staging/rts5208/rtsx_card.c index a6b7bff..418e29d 100

Re: [PATCH] lightnvm: pblk: fix changing GC group list for a line

2017-10-02 Thread Rakesh Pandit
On Mon, Oct 02, 2017 at 01:27:42PM +0200, Javier González wrote: > > On 28 Sep 2017, at 16.40, Rakesh Pandit wrote: > > > > pblk_line_gc_list seems to had a bug since the introduction of pblk in > > getting GC list for a line. In b20ba1bc7 while redesigning GC > > algorithm it was not fixed corr

Re: [PATCH] lightnvm: pblk: fix changing GC group list for a line

2017-10-02 Thread Javier González
> On 2 Oct 2017, at 13.43, Rakesh Pandit wrote: > > On Mon, Oct 02, 2017 at 01:27:42PM +0200, Javier González wrote: >>> On 28 Sep 2017, at 16.40, Rakesh Pandit wrote: >>> >>> pblk_line_gc_list seems to had a bug since the introduction of pblk in >>> getting GC list for a line. In b20ba1bc7 wh

Re: [PATCH v2] xhci: Cleanup current_cmd in xhci_cleanup_command_queue()

2017-10-02 Thread Mathias Nyman
On 29.09.2017 14:07, Jeffy Chen wrote: KASAN reported use-after-free bug when xhci host controller died: [ 176.952537] BUG: KASAN: use-after-free in xhci_handle_command_timeout+0x68/0x224 [ 176.960846] Write of size 4 at addr ffc0cbb01608 by task kworker/3:3/1680 ... [ 177.180644] Freed b

Re: [PATCH v3 02/19] thunderbolt: Remove __packed from ICM message structures

2017-10-02 Thread Andy Shevchenko
On Mon, 2017-10-02 at 13:38 +0300, Mika Westerberg wrote: > These messages are all 32-byte aligned and they should be packed Obviously 32-bit. Other than that, Reviewed-by: Andy Shevchenko > without > the __packed attribute just fine. It also allows compiler to generate > better code on some

Re: [Outreachy kernel] [PATCH] staging: rts5208: use usleep_range instead of udelay

2017-10-02 Thread Julia Lawall
On Mon, 2 Oct 2017, Keerthi Reddy wrote: > Since a its a slow device, allow a small range of 100 How do you know that it is a slow device? Try to make the commit log message more self contained, not a continuation of the subject line, and use the imperative. julia > > Signed-off-by: Keerthi

usb/media/v4l2: use-after-free in video_unregister_device/device_del

2017-10-02 Thread Andrey Konovalov
Hi! I've got the following report while fuzzing the kernel with syzkaller. On commit 9e66317d3c92ddaab330c125dfe9d06eee268aff (4.14-rc3). usb 1-1: config 48 interface 0 altsetting 0 endpoint 0x4 has invalid maxpacket 1956, setting to 64 usb 1-1: New USB device found, idVendor=0573, idProduct=4d3

usb/media/uvc: BUG in uvc_mc_create_links/media_create_pad_link

2017-10-02 Thread Andrey Konovalov
Hi! I've got the following report while fuzzing the kernel with syzkaller. On commit 9e66317d3c92ddaab330c125dfe9d06eee268aff (4.14-rc3). uvcvideo: Found UVC 0.00 device a (2833:0201) uvcvideo 1-1:3.92: Entity type for entity Output 2 was not initialized! [ cut here ] ker

Re: [PATCH v3 1/6] perf header: Record first sample time and last sample time in perf file header

2017-10-02 Thread Jiri Olsa
On Thu, Sep 28, 2017 at 08:45:16PM +0800, Jin Yao wrote: SNIP > + return ret; > + > + return do_write(ff, &evlist->last_sample_time, > + sizeof(evlist->last_sample_time)); > +} > + > static void print_hostname(struct feat_fd *ff, FILE *fp) > { > fprintf

Re: [Part2 PATCH v4 01/29] Documentation/virtual/kvm: Add AMD Secure Encrypted Virtualization (SEV)

2017-10-02 Thread Brijesh Singh
On 9/29/17 1:54 AM, Borislav Petkov wrote: --- >> Documentation/virtual/kvm/00-INDEX | 3 + >> .../virtual/kvm/amd-memory-encryption.txt | 210 >> + >> 2 files changed, 213 insertions(+) >> create mode 100644 Documentation/virtual/kvm/amd-memory-e

Re: [PATCH v3 5/6] perf report: support time percent and multiple time ranges

2017-10-02 Thread Jiri Olsa
On Thu, Sep 28, 2017 at 08:45:20PM +0800, Jin Yao wrote: > perf report has a --time option to limit the time range of output. > It only supports absolute time. > > Now this option is extended to support multiple time ranges and > support the percent of time. > > For example: > > 1. Select the fi

Re: keyboard backlight max_brightness bug on Dell Latitude E6410

2017-10-02 Thread Pali Rohár
On Friday 29 September 2017 18:19:59 Andy Shevchenko wrote: > >> FYI, latest update and info relating to > >> https://bugzilla.kernel.org/show_bug.cgi?id=196913 > > Quick solution is to apply DMI to that. It is only the Dell Latitude E6410 affected? Mario, do you have any information about that

Re: [PATCH RFC] mm: implement write-behind policy for sequential file writes

2017-10-02 Thread Konstantin Khlebnikov
On 02.10.2017 14:23, Florian Weimer wrote: On 10/02/2017 11:54 AM, Konstantin Khlebnikov wrote: This patch implements write-behind policy which tracks sequential writes and starts background writeback when have enough dirty pages in a row. Does this apply to data for files which have never bee

Re: [v8 0/4] cgroup-aware OOM killer

2017-10-02 Thread Tetsuo Handa
Shakeel Butt wrote: > I think Tim has given very clear explanation why comparing A & D makes > perfect sense. However I think the above example, a single user system > where a user has designed and created the whole hierarchy and then > attaches different jobs/applications to different nodes in thi

v4.14-rc2/arm64 misaligned atomic in ip_expire() / skb_clone()

2017-10-02 Thread Mark Rutland
ce that this is related, but as I've not seen any other issues I suspect that's unlikely. Thanks, Mark. [1] https://www.kernel.org/pub/linux/kernel/people/mark/bugs/20171002-skb_clone-misaligned-atomic [2] https://lkml.kernel.org/r/20170920180413.26713-1-aarca...@redhat.com Unable to han

Re: [PATCH v3 6/6] perf script: support time percent and multiple time ranges

2017-10-02 Thread Jiri Olsa
On Thu, Sep 28, 2017 at 08:45:21PM +0800, Jin Yao wrote: SNIP > diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c > index 9092de0..7fd3063 100644 > --- a/tools/perf/builtin-script.c > +++ b/tools/perf/builtin-script.c > @@ -1357,6 +1357,8 @@ static void print_sample_synth(str

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

2017-10-02 Thread Johannes Berg
Please use "v2" tag or so in the subject line, having the same patch again is really not helpful. The next should be v3, obviously. > +++ b/net/mac80211/aead_api.c > @@ -1,7 +1,4 @@ > -/* > - * Copyright 2014-2015, Qualcomm Atheros, Inc. > - * > - * This program is free software; you can redistri

Re: 4.14-rc2 on thinkpad x220: out of memory when inserting mmc card

2017-10-02 Thread Linus Walleij
On Mon, Oct 2, 2017 at 10:41 AM, Pavel Machek wrote: >> Bounce buffers are being removed from v4.15 As Adrian states, this would make any last bugs go away. I would even consider putting this patch this into fixes if it solves the problem. > although you may experience >> performance regression

Re: [PATCH 5/6] lightnvm: pblk: free up mempool allocation for erases correctly

2017-10-02 Thread Javier González
> On 1 Oct 2017, at 15.25, Rakesh Pandit wrote: > > While separating read and erase mempools in 22da65a1b pblk_g_rq_cache > was used two times to set aside memory both for erase and read > requests. Because same kmem cache is used repeatedly a single call to > kmem_cache_destroy wouldn't dealloc

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-10-02 Thread Mimi Zohar
On Mon, 2017-10-02 at 15:35 +1100, Dave Chinner wrote: > On Sun, Oct 01, 2017 at 07:42:42PM -0400, Mimi Zohar wrote: > > On Mon, 2017-10-02 at 09:34 +1100, Dave Chinner wrote: > > > On Sun, Oct 01, 2017 at 11:41:48AM -0700, Linus Torvalds wrote: > > > > On Sun, Oct 1, 2017 at 5:08 AM, Mimi Zohar

[PATCH v3 08/12] ARM: dts: sun8i: bananapi-m3: include axp81x dtsi

2017-10-02 Thread Quentin Schulz
This board has an AXP813 PMIC so let's include its dtsi. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts index 2bafd7e

[PATCH v3 02/12] pinctrl: axp209: add pinctrl features

2017-10-02 Thread Quentin Schulz
The X-Powers AXP209 has 3 GPIOs. GPIO0/1 can each act either as a GPIO, an ADC or a LDO regulator. GPIO2 can only act as a GPIO. This adds the pinctrl features to the driver so GPIO0/1 can be used as ADC or LDO regulator. Signed-off-by: Quentin Schulz --- .../devicetree/bindings/pinctrl/pinctrl

[PATCH v3 00/12] add pinmuxing support for pins in AXP209 and AXP813 PMICs

2017-10-02 Thread Quentin Schulz
The AXP209 and AXP813 PMICs have several pins (respectively 3 and 2) that can be used either as GPIOs or for other purposes (ADC or LDO here). We already have a GPIO driver for the GPIO use of those pins on the AXP209. Let's "upgrade" this driver to support all the functions these pins can have.

[PATCH v3 01/12] pinctrl: move gpio-axp209 to pinctrl

2017-10-02 Thread Quentin Schulz
To prepare the driver for the upcoming pinctrl features, move the GPIO driver AXP209 from GPIO to pinctrl subsystem. Signed-off-by: Quentin Schulz --- .../bindings/{gpio/gpio-axp209.txt => pinctrl/pinctrl-axp209.txt} | 0 drivers/gpio/Kconfig| 6

[PATCH v3 10/12] ARM: dts: sun8i: cubietruck-plus: include axp81x dtsi

2017-10-02 Thread Quentin Schulz
This board has an AXP818 PMIC so let's include its dtsi. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts b/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts i

[PATCH v3 11/12] ARM: dtsi: axp81x: add GPIO DT node

2017-10-02 Thread Quentin Schulz
This adds DT node for the GPIO/pinctrl part present in AXP813/AXP818. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/axp81x.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm/boot/dts/axp81x.dtsi index 73b761f850c5..f90f257130d5 100644 --

[PATCH v3 09/12] ARM: dts: sun8i: h8homlet-v2: include axp81x dtsi

2017-10-02 Thread Quentin Schulz
This board has an AXP818 PMIC so let's include its dtsi. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts b/arch/arm/boot/dts/sun8i-a83t-allwinner

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

2017-10-02 Thread Quentin Schulz
On AXP813/818, GPIO0 and GPIO1 can be used as LDO as (respectively) ldo_io0 and ldo_io1. Let's add the pinctrl properties to the said regulators. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/axp81x.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts

<    1   2   3   4   5   6   7   8   >