Re: [PATCH 1/4] sched,numa: override part of migrate_degrades_locality when idle balancing

2017-06-23 Thread Ingo Molnar
* r...@redhat.com wrote: > From: Rik van Riel > > Several tests in the NAS benchmark seem to run a lot slower with > NUMA balancing enabled, than with NUMA balancing disabled. The > slower run time corresponds with increased idle time. > > Overriding the final test of migrate_degrades_localit

[tip:x86/urgent] x86/mshyperv: Remove excess #includes from mshyperv.h

2017-06-23 Thread tip-bot for Thomas Gleixner
Commit-ID: 26fcd952d5c977a94ac64bb44ed409e37607b2c9 Gitweb: http://git.kernel.org/tip/26fcd952d5c977a94ac64bb44ed409e37607b2c9 Author: Thomas Gleixner AuthorDate: Fri, 23 Jun 2017 10:50:38 +0200 Committer: Ingo Molnar CommitDate: Sat, 24 Jun 2017 08:48:51 +0200 x86/mshyperv: Remove exc

[tip:x86/mm] x86/mmap, ASLR: Do not treat unlimited-stack tasks as legacy mmap

2017-06-23 Thread tip-bot for Michal Hocko
Commit-ID: 4a06370bcb674af88679a4f2c5c87c3e40688935 Gitweb: http://git.kernel.org/tip/4a06370bcb674af88679a4f2c5c87c3e40688935 Author: Michal Hocko AuthorDate: Wed, 14 Jun 2017 10:22:18 +0200 Committer: Ingo Molnar CommitDate: Sat, 24 Jun 2017 08:39:16 +0200 x86/mmap, ASLR: Do not trea

Re: [PATCH] x86/mm/hotplug: fix BUG_ON() after hotremove by not freeing pud v2

2017-06-23 Thread Ingo Molnar
* Jerome Glisse wrote: > On Wed, Jun 07, 2017 at 09:17:06PM +0300, Kirill A. Shutemov wrote: > > On Wed, Jun 07, 2017 at 01:38:00PM -0400, Jerome Glisse wrote: > > > > On Wed, Jun 07, 2017 at 08:03:25PM +0300, Kirill A. Shutemov wrote: > > > > > On Wed, Jun 07, 2017 at 10:46:20AM -0400, jgli...@

Re: [PATCH 2/2] rt: Increase/decrease the nr of migratory tasks when enabling/disabling migration

2017-06-23 Thread Ingo Molnar
* Daniel Bristot de Oliveira wrote: > On 06/22/2017 09:49 PM, Ingo Molnar wrote: > > So AFAICS it's this block that is used twice: > > > +rq = task_rq_lock(p, &rf); > +p->nr_cpus_allowed = cpumask_weight(&p->cpus_mask); > +if (unlikely((p->sched_class == &

[PATCH v2 2/5] g_NCR5380: End PDMA transfer correctly on target disconnection

2017-06-23 Thread Finn Thain
From: Ondrej Zary When an IRQ arrives during PDMA transfer, pread() and pwrite() return without waiting for the 53C80 registers to be ready and this ends up messing up the chip state. This was observed with SONY CDU-55S which is slow enough to disconnect during 4096-byte reads. IRQ during PDMA i

[PATCH v2 0/5] g_NCR5380: PDMA fixes and cleanup

2017-06-23 Thread Finn Thain
Ondrej, would you please test this new series? Changed since v1: - PDMA transfer residual is calculated earlier. - End of DMA flag check is now polled (if there is any residual). Finn Thain (2): g_NCR5380: Limit sg_tablesize to avoid PDMA read overruns on DTC436 g_NCR5380: Cleanup comments a

[PATCH v2 5/5] g_NCR5380: Re-work PDMA loops

2017-06-23 Thread Finn Thain
From: Ondrej Zary The polling loops in pread() and pwrite() can easily become infinite loops and hang the machine. On DTC chips, IRQ can arrive late and we miss it because we only check once. Merge the IRQ check into host buffer wait and add polling limit. Also place a limit on polling for 53C8

[PATCH v2 1/5] g_NCR5380: Fix PDMA transfer size

2017-06-23 Thread Finn Thain
From: Ondrej Zary generic_NCR5380_dma_xfer_len() incorrectly uses cmd->transfersize which causes rescan-scsi-bus and CD-ROM access to hang the system. Use cmd->SCp.this_residual instead, like other NCR5380 drivers. Signed-off-by: Ondrej Zary Signed-off-by: Finn Thain --- drivers/scsi/g_NCR538

[PATCH v2 3/5] g_NCR5380: Limit sg_tablesize to avoid PDMA read overruns on DTC436

2017-06-23 Thread Finn Thain
Back-to-back DMA receive transfers can lose a byte due to a 5380 flaw. This makes scatter-receive difficult or impossible on affected hardware, so limit the scatter/gather tablesize to 1. Signed-off-by: Finn Thain --- drivers/scsi/g_NCR5380.c | 1 + 1 file changed, 1 insertion(+) diff --git a/d

[PATCH v2 4/5] g_NCR5380: Cleanup comments and whitespace

2017-06-23 Thread Finn Thain
Signed-off-by: Finn Thain --- drivers/scsi/g_NCR5380.c | 61 ++-- 1 file changed, 28 insertions(+), 33 deletions(-) diff --git a/drivers/scsi/g_NCR5380.c b/drivers/scsi/g_NCR5380.c index 7b3626fe120b..d51a2ba07a24 100644 --- a/drivers/scsi/g_NCR5380.c

[PATCH v13 02/14] ASoC: sun4i-codec: Add Mic Playback Volume.

2017-06-23 Thread Danny Milosavljevic
Add Mic Playback Volume for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index f703293..49b9cd1 100644 --- a/sound/soc/

[PATCH v13 03/14] ASoC: sun4i-codec: Add support for extra controls to struct sun4i_codec_quirks and use them.

2017-06-23 Thread Danny Milosavljevic
Some controls use different registers depending on which Allwinner chip it is. Provide a means of specifying and adding those controls. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 33 +++-- 1 file changed, 23 insertions(+), 10 deletions(-)

[PATCH v13 00/14] ASoC: sun4i-codec: Add Line-In, FM-In, Mic 2, Capture Source, Differential Line-In

2017-06-23 Thread Danny Milosavljevic
This patchset adds some mixer controls to sun4i-codec for the Allwinner A10 and the Allwinner A20. It also adds a mux for the capture source and the PGA for the MIC2 preamp. Where possible, it uses SOC_DAPM_DOUBLE in order to cut down on the number of distinct controls in alsamixer. v13 changes

[PATCH v13 06/14] ASoC: sun4i-codec: Add Mic1 Playback Switch, Mic2 Playback Switch.

2017-06-23 Thread Danny Milosavljevic
Add Mic1 Playback Switch and Mic2 Playback Switch for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 3718

[PATCH v13 04/14] ASoC: sun4i-codec: Add Mic1 Boost Volume, Mic2 Boost Volume.

2017-06-23 Thread Danny Milosavljevic
Add Mic1 Boost Volume and Mic2 Boost Volume for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 33 + 1 file changed, 33 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec

[PATCH v13 11/14] ASoC: sun4i-codec: Add Line Right, Line Left, Line Playback Switch.

2017-06-23 Thread Danny Milosavljevic
Add Line Right, Line Left, Line Playback Switch for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 9 + 1 file changed, 9 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 564df33..bcd6

[PATCH v13 10/14] ASoC: sun4i-codec: Add Line Boost Volume.

2017-06-23 Thread Danny Milosavljevic
Add Line Boost Volume for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index c47ffd5..564df33 100644 --- a/sound/soc/su

[PATCH v13 12/14] ASoC: sun4i-codec: Add Differential Line Source.

2017-06-23 Thread Danny Milosavljevic
Add Differential Line Source for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 24 1 file changed, 24 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index bcd665d..085a60

[PATCH v13 09/14] ASoC: sun4i-codec: Add Line Playback Volume.

2017-06-23 Thread Danny Milosavljevic
Add Line Playback Volume for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 8 1 file changed, 8 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 234ded2..c47ffd5 100644 --- a/sound/s

[PATCH v13 14/14] ASoC: sun4i-codec: Add Capture Volume.

2017-06-23 Thread Danny Milosavljevic
Add Capture Volume for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 5 + 1 file changed, 5 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 65a4685..a596249 100644 --- a/sound/soc/sunxi/

[PATCH v13 01/14] ASoC: sun4i-codec: Add MIC2 Pre-Amplifier, Mic2.

2017-06-23 Thread Danny Milosavljevic
Add MIC2 Pre-Amplifier and Mic2 for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 9 + 1 file changed, 9 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 1500699..f703293 100644 --- a

[PATCH v13 07/14] ASoC: sun4i-codec: Add FM Playback Volume.

2017-06-23 Thread Danny Milosavljevic
Add FM Playback Volume for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 55687f9..5b6f100 100644 --- a/sound/soc/s

[PATCH v13 08/14] ASoC: sun4i-codec: Add FM Left, FM Right, FM Playback Switch.

2017-06-23 Thread Danny Milosavljevic
Add FM Left, FM Right, FM Playback Switch for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 5b6f100..234ded2 1006

[PATCH v13 05/14] ASoC: sun4i-codec: Merge sun4i_codec_left_mixer_controls and sun4i_codec_right_mixer_controls into sun4i_codec_mixer_controls.

2017-06-23 Thread Danny Milosavljevic
Since it's now possible to have a DAPM mixer control with multiple channels, use it to cut down the total number of controls. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/sou

[PATCH v13 13/14] ASoC: sun4i-codec: Add Left Capture Select, Right Capture Select.

2017-06-23 Thread Danny Milosavljevic
Add Left Capture Select and Right Capture Select for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 50 +++ 1 file changed, 50 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/su

Re: [PATCH NET v3 1/2] net: phy: Add phy loopback support in net phy framework

2017-06-23 Thread Yunsheng Lin
On 2017/6/24 11:40, Yunsheng Lin wrote: > Hi, Andrew > > On 2017/6/24 11:12, Andrew Lunn wrote: >>> +int phy_loopback(struct phy_device *phydev, bool enable) >>> +{ >>> + struct phy_driver *phydrv = to_phy_driver(phydev->mdio.dev.driver); >>> + int ret = 0; >>> + >>> + if (enable && phydev

Re: [HMM 01/15] hmm: heterogeneous memory management documentation

2017-06-23 Thread John Hubbard
On 05/24/2017 10:20 AM, Jérôme Glisse wrote: This add documentation for HMM (Heterogeneous Memory Management). It presents the motivation behind it, the features necessary for it to be useful and and gives an overview of how this is implemented. Signed-off-by: Jérôme Glisse --- Documentation/

[PATCH v4] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-23 Thread Jonathan Liu
The documentation for drm_do_get_edid in drivers/gpu/drm/drm_edid.c states: "As in the general case the DDC bus is accessible by the kernel at the I2C level, drivers must make all reasonable efforts to expose it as an I2C adapter and use drm_get_edid() instead of abusing this function." Exposing t

Re: [PATCH v3] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-23 Thread Jonathan Liu
Hi Maxime, On 22 June 2017 at 07:26, Maxime Ripard wrote: > On Wed, Jun 21, 2017 at 07:42:47PM +1000, Jonathan Liu wrote: >> >> +static int wait_fifo_flag_unset(struct sun4i_hdmi *hdmi, u32 flag) >> >> +{ >> >> + /* 1 byte takes 9 clock cycles (8 bits + 1 ack) */ >> >> + unsigned long byt

Re: [PATCH] rtc: opal: Implement rtc_class_ops.alarm_irq_enable callback

2017-06-23 Thread Alexandre Belloni
On 31/05/2017 at 18:39:01 +0530, Vaibhav Jain wrote: > Provide an implementation of the callback > rtc_class_ops.alarm_irq_enable for rtc-opal driver. This callback is > called when the wake alarm is disabled via the command: > > 'echo 0 > /sys/class/rtc/rtc0/wakealarm' > > Without this the Timed

Linux 4.9.34

2017-06-23 Thread Greg KH
I'm announcing the release of the 4.9.34 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.9.34

2017-06-23 Thread Greg KH
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index a6fadef92d6d..86a6746f6833 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt @@ -3932,6 +3932,13 @@ bytes respectively. Such letter suffixes can also be entirely o

[PATCH 1/4] x86: do not use cpufreq_quick_get() for /proc/cpuinfo "cpu MHz"

2017-06-23 Thread Len Brown
From: Len Brown cpufreq_quick_get() allows cpufreq drivers to over-ride cpu_khz that is otherwise reported in x86 /proc/cpuinfo "cpu MHz". There are four problems with this scheme, any of them is sufficient justification to delete it. 1. Depending on which cpufreq driver is loaded, the behavior

[PATCH 3/4] intel_pstate: delete scheduler hook in HWP mode

2017-06-23 Thread Len Brown
From: Len Brown The cpufreq/scaling_cur_freq sysfs attribute is now provided by shared x86 cpufreq code on modern x86 systems, including all systems supported by the intel_pstate driver. In HWP mode, maintaining that value was the sole purpose of the scheduler hook, intel_pstate_update_util_hwp(

Linux 4.11.7

2017-06-23 Thread Greg KH
I'm announcing the release of the 4.11.7 kernel. All users of the 4.11 kernel series must upgrade. The updated 4.11.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.11.y and can be browsed at the normal kernel.org git web browser:

[PATCH 4/4] intel_pstate: skip scheduler hook when in "performance" mode.

2017-06-23 Thread Len Brown
From: Len Brown When the governor is set to "performance", intel_pstate does not need the scheduler hook for doing any calculations. Under these conditions, its only purpose is to continue to maintain cpufreq/scaling_cur_freq. The cpufreq/scaling_cur_freq sysfs attribute is now provided by shar

Re: Linux 4.11.7

2017-06-23 Thread Greg KH
diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index facc20a3f962..952319b73e61 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -3779,6 +3779,13 @@ spia_ped

[PATCH 0/4 v2] x86,cpufreq: unify APERF/MPERF computation

2017-06-23 Thread Len Brown
Hi Rafael, Thomas, Please see the updated 2nd patch in this series -- in response to tglx review. Patch 1,3,4 are unchanged. thanks, -Len This patch series has 3 goals: 1. Make "cpu MHz" in /proc/cpuinfo supportable. 2. Make /sys/.../cpufreq/scaling_cur_freq meaningful and consistent on mod

[PATCH 2/4 v2] x86: use common aperfmperf_khz_on_cpu() to calculate KHz using APERF/MPERF

2017-06-23 Thread Len Brown
From: Len Brown The goal of this change is to give users a uniform and meaningful result when they read /sys/...cpufreq/scaling_cur_freq on modern x86 hardware, as compared to what they get today. Modern x86 processors include the hardware needed to accurately calculate frequency over an interva

Re: [PATCH 2/4] x86: use common aperfmperf_khz_on_cpu() to calculate KHz using APERF/MPERF

2017-06-23 Thread Len Brown
On Tue, Jun 20, 2017 at 6:15 AM, Thomas Gleixner wrote: > On Fri, 16 Jun 2017, Len Brown wrote: >> +#include >> +#include >> +#include >> +#include >> + >> +struct aperfmperf_sample { >> + unsigned int khz; >> + unsigned long jiffies; >> + u64 aperf; >> + u64 mperf; > > Nit. Pl

Re: Stable/distro kernel testing in Plumbers 2017

2017-06-23 Thread gre...@linuxfoundation.org
On Fri, Jun 23, 2017 at 03:37:28AM +, Levin, Alexander (Sasha Levin) wrote: > Hi all, > > We were hoping to discuss the state of -stable/distro kernel testing > in the Testing & Fuzzing MC in Plumbers 2017. > > Mainly we want to understand what sort of testing is being done, how > bug repor

Re: seccomp ptrace selftest failures with 4.4-stable [Was: Re: LTS testing with latest kselftests - some failures]

2017-06-23 Thread Greg Kroah-Hartman
On Sat, Jun 24, 2017 at 02:34:07AM +0200, Luis R. Rodriguez wrote: > So taking the position that any kselftest script on linux-next or a future > kernel should never break stable implicate that *any* fix going upstream for > which there is a respective ksefltest test *must* have a stable upstream f

Re: seccomp ptrace selftest failures with 4.4-stable [Was: Re: LTS testing with latest kselftests - some failures]

2017-06-23 Thread Greg Kroah-Hartman
On Thu, Jun 22, 2017 at 07:40:49PM -0700, Andy Lutomirski wrote: > Greg, for context, the issue here is that we made what was arguably a > design error in seccomp's interaction with ptrace. After determining > that fixing it solved a bunch of problems and didn't break any user > programs, we fixed

Re: [HMM 09/15] mm/hmm/devmem: device memory hotplug using ZONE_DEVICE v5

2017-06-23 Thread John Hubbard
On 05/24/2017 10:20 AM, Jérôme Glisse wrote: [...] +/* + * hmm_devmem_fault_range() - migrate back a virtual range of memory + * + * @devmem: hmm_devmem struct use to track and manage the ZONE_DEVICE memory + * @vma: virtual memory area containing the range to be migrated + * @ops: migration call

Re: [PATCH NET v3 1/2] net: phy: Add phy loopback support in net phy framework

2017-06-23 Thread Yunsheng Lin
Hi, Andrew On 2017/6/24 11:12, Andrew Lunn wrote: >> +int phy_loopback(struct phy_device *phydev, bool enable) >> +{ >> +struct phy_driver *phydrv = to_phy_driver(phydev->mdio.dev.driver); >> +int ret = 0; >> + >> +if (enable && phydev->loopback_enabled) >> +return -EBUSY;

[PATCH v5] trace: ras: add ARM processor error information trace event

2017-06-23 Thread Xie XiuQi
Add a new trace event for ARM processor error information, so that the user will know what error occurred. With this information the user may take appropriate action. These trace events are consistent with the ARM processor error information table which defined in UEFI 2.6 spec section N.2.4.4.1.

Re: [PATCH 3/7] staging: ccree: add support for older HW revisions

2017-06-23 Thread kbuild test robot
Hi Gilad, [auto build test WARNING on staging/staging-testing] [also build test WARNING on next-20170623] [cannot apply to v4.12-rc6] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Gilad-Ben

Re: [PATCH] Staging: vc04_services: bcm2835-audio: bcm2835-ctl.c: Fixed alignment to match open parenthesis

2017-06-23 Thread srishti sharma
On Sat, Jun 24, 2017 at 8:11 AM, srishti sharma wrote: > On Fri, Jun 23, 2017 at 9:50 PM, Greg KH wrote: >> On Thu, Jun 15, 2017 at 01:04:55AM +0530, srishti sharma wrote: >>> Fixed alignment so that it matched open parenthesis. >>> >>> Signed-off-by: srishti sharma >>> --- >>> .../staging/vc04

[PATCH v2] Staging: vc04_services: bcm2835-audio: bcm2835-ctl.c: Fixed alignment to match open parenthesis.

2017-06-23 Thread srishti sharma
Fixed alignment so that it matched open parenthesis. Signed-off-by: srishti sharma --- Changes in v2: -Fix all checks of the type "alignment should match open parenthesis" for a file in the same patch. .../staging/vc04_services/bcm2835-audio/bcm2835-ctl.c | 18 +- 1 file chan

Re: [PATCH NET v3 2/2] net: hns: Use phy_driver to setup Phy loopback

2017-06-23 Thread Andrew Lunn
> static int hns_nic_config_phy_loopback(struct phy_device *phy_dev, u8 en) > { > -#define COPPER_CONTROL_REG 0 > -#define PHY_POWER_DOWN BIT(11) > -#define PHY_LOOP_BACK BIT(14) > - u16 val = 0; > + int err; > > if (phy_dev->is_c45) /* c45 branch adding for XGE PHY */ >

Re: [PATCH NET v3 1/2] net: phy: Add phy loopback support in net phy framework

2017-06-23 Thread Andrew Lunn
> +int phy_loopback(struct phy_device *phydev, bool enable) > +{ > + struct phy_driver *phydrv = to_phy_driver(phydev->mdio.dev.driver); > + int ret = 0; > + > + if (enable && phydev->loopback_enabled) > + return -EBUSY; > + > + if (!enable && !phydev->loopback_enabled)

[tip:irq/core 30/72] kernel/irq/debugfs.c:192:2-16: WARNING: NULL check before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider reor

2017-06-23 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/core head: 8d9d51b62e8558bbc11c6b978acad001f9ea7a42 commit: 087cdfb662ae50e3826e7cd2e54b6519d07b60f0 [30/72] genirq/debugfs: Add proper debugfs interface coccinelle warnings: (new ones prefixed by >>) >> kernel/irq/debugf

Re: [PATCH 0/4] g_NCR5380: PDMA fixes and cleanup

2017-06-23 Thread Finn Thain
On Fri, 23 Jun 2017, Ondrej Zary wrote: > On Friday 23 June 2017 13:01:53 Finn Thain wrote: > > On Fri, 23 Jun 2017, I wrote: > > > Does this patch help? It should be applied on top of this series of 4. > > > > Sorry, I sent the wrong diff. Please try this patch instead. > > Thanks, much better n

[PATCH v3 3/3] ARM: dts: sunxi: Add R_LRADC support for A83T

2017-06-23 Thread Ziping Chen
From: Ziping Chen Allwinner A83T SoC has a low res adc like the one in Allwinner A10 SoC. Now the driver has been modified to support it. Add support for it. Signed-off-by: Ziping Chen --- arch/arm/boot/dts/sun8i-a83t.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/bo

[PATCH v3 1/3] input: sun4i-a10-lradc-keys: Add support for A83T

2017-06-23 Thread Ziping Chen
From: Ziping Chen Allwinner A83T SoC has a low res adc like the one in Allwinner A10 SoC, however, the A10 SoC's vref of lradc internally is divided by 2/3 and the A83T SoC's vref of lradc internally is divided by 3/4, thus add a hardware variant for it to be compatible with various devices. Sig

[PATCH v3 0/3] Allwinner A83T R_LRADC support

2017-06-23 Thread Ziping Chen
From: Ziping Chen Hi, This is the remaining parts of my A83T R_LRADC support series Allwinner A83T SoC has a low res adc like the one in Allwinner A10 SoC. Add support for it. Changes for v3: - Fix some issuses raised by Maxime. - Added Rob's ACK. Changes for v2: - Add an A83T specific comp

[PATCH v3 2/3] dt-bindings: input: Add R_LRADC support for A83T

2017-06-23 Thread Ziping Chen
From: Ziping Chen Allwinner A83T SoC has a low res adc like the one in Allwinner A10 SoC. Add binding for it. Signed-off-by: Ziping Chen Acked-by: Rob Herring --- Documentation/devicetree/bindings/input/sun4i-lradc-keys.txt | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --

Re: [PATCH] Staging: vc04_services: bcm2835-audio: bcm2835-ctl.c: Fixed alignment to match open parenthesis

2017-06-23 Thread srishti sharma
On Fri, Jun 23, 2017 at 9:50 PM, Greg KH wrote: > On Thu, Jun 15, 2017 at 01:04:55AM +0530, srishti sharma wrote: >> Fixed alignment so that it matched open parenthesis. >> >> Signed-off-by: srishti sharma >> --- >> .../staging/vc04_services/bcm2835-audio/bcm2835-ctl.c | 18 >> +---

Re: [PATCH 05/11] net: stmmac: dwmac-rk: Add internal phy support

2017-06-23 Thread Andrew Lunn
On Fri, Jun 23, 2017 at 12:59:07PM +0800, David Wu wrote: > To make internal phy worked, need to configure the phy_clock, > phy cru_reset and related registers. > > Change-Id: I6971c0a769754b824b1b908b56080cbaf7867d13 > Signed-off-by: David Wu > --- > .../devicetree/bindings/net/rockchip-dwmac.t

Re: [PATCH 04/11] net: stmmac: dwmac-rk: Remove unwanted code for rk3328_set_to_rmii()

2017-06-23 Thread Andrew Lunn
On Fri, Jun 23, 2017 at 12:42:02PM +0800, David Wu wrote: > This is wrong setting for rk3328_set_to_rmii(), so remove it. > > Change-Id: I9953784ea44335d90710e5473960c95b3d68a5fd Hi David This is not a reconsigned tag for a patch. Andrew

Re: [PATCH 01/11] net: phy: Add rockchip phy driver support

2017-06-23 Thread Andrew Lunn
On Fri, Jun 23, 2017 at 12:41:59PM +0800, David Wu wrote: > Support internal ephy currently. > > Signed-off-by: David Wu > --- > drivers/net/phy/Kconfig| 4 ++ > drivers/net/phy/Makefile | 1 + > drivers/net/phy/rockchip.c | 94 > ++ > 3 files

[PATCH] net/icmp: restore source address if packet is NATed

2017-06-23 Thread Jason A. Donenfeld
The ICMP routines use the source address for two reasons: 1. Rate-limiting ICMP transmissions based on source address, so that one source address cannot provoke a flood of replies. If the source address is wrong, the rate limiting will be incorrectly applied. 2. Choos

[PATCH] alpha: support R_ALPHA_REFLONG relocations for module loading

2017-06-23 Thread Michael Cree
Since commit 71810db27c1c853b33 (modversions: treat symbol CRCs as 32 bit quantities) R_ALPHA_REFLONG relocations can be required to load modules. This implements it. Tested-by: Bob Tracy Signed-off-by: Michael Cree --- arch/alpha/kernel/module.c | 3 +++ 1 file changed, 3 insertions(+) diff -

Re: [PATCH v2 2/3] dt-bindings: input: Add DT bindings documentation for Allwinner A83T R_LRADC

2017-06-23 Thread Ziping Chen
Hi 2017-06-24 5:51 GMT+08:00 Rob Herring : > On Tue, Jun 20, 2017 at 09:44:44PM +0800, Ziping Chen wrote: >> From: Ziping Chen > > Your subject could be more concise. "DT bindings documentation" is > redundant. > >> >> Allwinner A83T SoC has a low res adc like the one >> in Allwinner A10 SoC. >>

Re: [PATCH 01/11] net: phy: Add rockchip phy driver support

2017-06-23 Thread Andrew Lunn
> + > +static int internal_config_init(struct phy_device *phydev) > +{ internal_ is a bit generic. The Marvell Ethernet switches have internal phy, etc. rockchip_ would be a better prefix. Andrew

pci: Add generic pcibios_{fixup_bus,align_resource}

2017-06-23 Thread Palmer Dabbelt
While upstreaming the RISC-V port, it was pointed out that multiple architectures have copied the mostly empty versions of at least one of these functions. This defines weakly bound versions of the common functions and removes the now obselete functions from other ports. This has been split out f

[PATCH 1/3] pci: Add a generic, weakly-linked pcibios_fixup_bus

2017-06-23 Thread Palmer Dabbelt
Multiple architectures define this as an empty function, and I'm adding another one as part of the RISC-V port. This adds a __weak version of pci_fixup_bios and deletes the now obselete ones in a handful of ports. The only functional change should be that microblaze used to export pcibios_fixup_b

Re: [PATCH 06/17] pci: Add generic pcibios_{fixup_bus,align_resource}

2017-06-23 Thread Palmer Dabbelt
On Thu, 08 Jun 2017 01:35:29 PDT (-0700), Arnd Bergmann wrote: > On Thu, Jun 8, 2017 at 10:12 AM, Christoph Hellwig wrote: >> On Wed, Jun 07, 2017 at 09:19:49AM +0200, Geert Uytterhoeven wrote: >>> CC pci folks >> >> Ok, replying with pci folks in Cc then :) >> >> Weak symbols have (rightly) gotte

Re: [PATCH 06/17] pci: Add generic pcibios_{fixup_bus,align_resource}

2017-06-23 Thread Palmer Dabbelt
On Wed, 07 Jun 2017 01:01:57 PDT (-0700), Arnd Bergmann wrote: > On Wed, Jun 7, 2017 at 9:19 AM, Geert Uytterhoeven > wrote: >> CC pci folks >> >> On Wed, Jun 7, 2017 at 12:59 AM, Palmer Dabbelt wrote: >>> While upstreaming the RISC-V port, it was pointed out that multiple >>> architectures (arc

[PATCH 3/3] arc: kernel/pcibios.c is empty, delete it

2017-06-23 Thread Palmer Dabbelt
Signed-off-by: Palmer Dabbelt --- arch/arc/kernel/Makefile | 1 - arch/arc/kernel/pcibios.c | 9 - 2 files changed, 10 deletions(-) delete mode 100644 arch/arc/kernel/pcibios.c diff --git a/arch/arc/kernel/Makefile b/arch/arc/kernel/Makefile index 8942c5c3b4c5..2dc5f4296d44 100644 ---

Re: [PATCH 13/17] RISC-V: Add include subdirectory

2017-06-23 Thread Palmer Dabbelt
On Wed, 07 Jun 2017 01:12:00 PDT (-0700), Arnd Bergmann wrote: > On Wed, Jun 7, 2017 at 1:00 AM, Palmer Dabbelt wrote: >> This patch adds the include files for the RISC-V port. These are mostly >> based on the score port, but there are a lot of arm64-based files as >> well. >> >> Signed-off-by: P

Re: [PATCH 09/17] clocksource/timer-riscv: New RISC-V Clocksource

2017-06-23 Thread Palmer Dabbelt
On Wed, 07 Jun 2017 02:43:09 PDT (-0700), marc.zyng...@arm.com wrote: > On 06/06/17 23:59, Palmer Dabbelt wrote: >> The RISC-V ISA defines a single RTC as well as an SBI oneshot timer. >> This timer is present on all RISC-V systems. >> >> Signed-off-by: Palmer Dabbelt >> --- >> drivers/clocksourc

[PATCH 2/3] pci: Add a generic, weakly-linked pcibios_align_resource

2017-06-23 Thread Palmer Dabbelt
Multiple architectures define this as trivial function, and I'm adding another one as part of the RISC-V port. This adds a __weak version of pcibios_align_resource and deletes the now obselete ones in a handful of ports. The only functional change should be that a handful of ports used to export

Re: [PATCH v4] trace: ras: add ARM processor error information trace event

2017-06-23 Thread Xie XiuQi
Hi Steve, Thanks for your comments. On 2017/6/23 21:42, Steven Rostedt wrote: > On Fri, 23 Jun 2017 19:13:43 +0800 > Xie XiuQi wrote: > >> Add a new trace event for ARM processor error information, so that >> the user will know what error occurred. With this information the >> user may take app

[PATCH] drm: exynos: dsi: release DSI_PORT_OUT node right after of_drm_find_bridge()

2017-06-23 Thread Shuah Khan
Fix to call of_node_put() right after of_drm_find_bridge() instead of holding on to it until exynos_dsi_remove(). Suggested-by: Inki Dae Signed-off-by: Shuah Khan --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/

Re: [PATCH v2] ACPI / sleep: EC-based wakeup from suspend-to-idle on recent systems

2017-06-23 Thread Rafael J. Wysocki
On Friday, June 23, 2017 03:37:36 PM mario.limoncie...@dell.com wrote: > > -Original Message- [cut] > > Index: linux-pm/drivers/acpi/sleep.c > > === > > --- linux-pm.orig/drivers/acpi/sleep.c > > +++ linux-pm/drivers/acpi/sle

Re: [PATCH v9 1/5] firmware: add extensible driver data params

2017-06-23 Thread Luis R. Rodriguez
On Fri, Jun 23, 2017 at 04:09:29PM -0700, Linus Torvalds wrote: > On Fri, Jun 23, 2017 at 3:43 PM, Luis R. Rodriguez wrote: > > > > Ah, yes! Here is what I believe seems to be the *crux* issue of these patch > > series and I'm happy we have finally landed on it. Yes, indeed the new API > > propose

Re: [PATCH v2 12/29] kselftest.rst: do some adjustments after ReST conversion

2017-06-23 Thread Shuah Khan
On 06/23/2017 03:32 PM, Mauro Carvalho Chehab wrote: > Em Fri, 23 Jun 2017 08:04:02 -0600 > Shuah Khan escreveu: > >> Hi Mauro, >> >> On 06/17/2017 09:26 AM, Mauro Carvalho Chehab wrote: >>> Do some minor adjustments after ReST conversion: >>> >>> - On most documents, we use prepend a "$ " before

Re: [PATCH 10/17] irqchip: New RISC-V PLIC Driver

2017-06-23 Thread Palmer Dabbelt
On Wed, 07 Jun 2017 00:55:28 PDT (-0700), Arnd Bergmann wrote: > On Wed, Jun 7, 2017 at 9:13 AM, Geert Uytterhoeven > wrote: >>> +struct plic_enable_context { >>> + atomic_t mask[32]; // 32-bit * 32-entry >>> +}; > > You use many '//' style comments in this file, please change them all to '

Re: [PATCH 12/17] tty: New RISC-V SBI Console Driver

2017-06-23 Thread Palmer Dabbelt
On Wed, 07 Jun 2017 00:58:04 PDT (-0700), Arnd Bergmann wrote: > On Wed, Jun 7, 2017 at 9:15 AM, Geert Uytterhoeven > wrote: >> CC (hypervisor) console folks >> >> On Wed, Jun 7, 2017 at 1:00 AM, Palmer Dabbelt wrote: >>> This patch adds a new driver for the console availiable via the RISC-V >>>

Re: seccomp ptrace selftest failures with 4.4-stable [Was: Re: LTS testing with latest kselftests - some failures]

2017-06-23 Thread Luis R. Rodriguez
On Thu, Jun 22, 2017 at 07:40:49PM -0700, Andy Lutomirski wrote: > On Thu, Jun 22, 2017 at 6:52 PM, Greg Kroah-Hartman > wrote: > > On Thu, Jun 22, 2017 at 10:50:43AM -0700, Kees Cook wrote: > >> On Thu, Jun 22, 2017 at 10:49 AM, Andy Lutomirski wrote: > >> > On Thu, Jun 22, 2017 at 10:09 AM, Shu

Re: [PATCH 1/7] platform/x86: fujitsu-laptop: do not use kfifo for storing hotkey scancodes

2017-06-23 Thread Rafael J. Wysocki
On Wednesday, June 21, 2017 11:15:43 AM Darren Hart wrote: > On Fri, Jun 16, 2017 at 06:40:52AM +0200, Michał Kępień wrote: > > All ACPI device notify callbacks are invoked using acpi_os_execute(), > > which causes the supplied callback to be queued to a static workqueue > > which always executes o

Re: [PATCH] ext4: Return EIO on read error in ext4_find_entry

2017-06-23 Thread Theodore Ts'o
On Fri, Jun 23, 2017 at 05:34:23PM -0600, Andreas Dilger wrote: > > Sure, but that is a problem independent of the readdir case I think? This is lookup case not the readdir case > Wouldn't it just make sense to mount the filesystem with "errors=remount-ro" > or "errors=panic" in your case, w

Re: linux-next: BUG: Bad page state in process ip6tables-save pfn:1499f4

2017-06-23 Thread Andrei Vagin
unt [ 337.342082] Modules linked in: [ 337.342089] CPU: 1 PID: 22242 Comm: criu Not tainted 4.12.0-rc6-next-20170623 #1 [ 337.342091] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 337.342094] Call Trace: [ 337.342106] dump_stack+0x85/0xc7

Re: [PATCH v5] fscrypt: Add support for AES-128-CBC

2017-06-23 Thread Theodore Ts'o
On Mon, Jun 19, 2017 at 09:27:58AM +0200, David Gstir wrote: > From: Daniel Walter > > fscrypt provides facilities to use different encryption algorithms which > are selectable by userspace when setting the encryption policy. Currently, > only AES-256-XTS for file contents and AES-256-CBC-CTS for

[PATCH v2 3/5] PCI / PM: Drop pme_interrupt flag from struct pci_dev

2017-06-23 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The pme_interrupt flag in struct pci_dev is set when PMEs generated by the device are going to be signaled via root port PME interrupts. Ironically enough, that information is only used by the code setting up device wakeup through ACPI which returns as soon as it sees the

[PATCH v2 5/5] PM / core: Drop run_wake flag from struct dev_pm_info

2017-06-23 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The run_wake flag in struct dev_pm_info is used to indicate whether or not the device is capable of generating remote wakeup signals at run time (or in the system working state), but the distinction between runtime remote wakeup and system wakeup signaling has always been

[PATCH v2 2/5] ACPI / PM: Consolidate device wakeup settings code

2017-06-23 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Currently, there are two separate ways of handling device wakeup settings in the ACPI core, depending on whether this is runtime wakeup or system wakeup (from sleep states). However, after the previous commit eliminating the run_wake ACPI device wakeup flag, there is no d

[PATCH v2 4/5] PCI / PM: Simplify device wakeup settings code

2017-06-23 Thread Rafael J. Wysocki
From: Rafael J. Wysocki After previous changes it is not necessary to distinguish between device wakeup for run time and device wakeup from system sleep states any more, so rework the PCI device wakeup settings code accordingly. Signed-off-by: Rafael J. Wysocki Reviewed-by: Mika Westerberg ---

[PATCH v2 1/5] ACPI / PM: Drop run_wake from struct acpi_device_wakeup_flags

2017-06-23 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The run_wake flag in struct acpi_device_wakeup_flags stores the information on whether or not the device can generate wakeup signals at run time, but in ACPI that really is equivalent to being able to generate wakeup signals at all. In fact, run_wake will always be set af

[PATCH v2 0/5] PM: Unify the handling of device wakeup settings

2017-06-23 Thread Rafael J. Wysocki
On Monday, June 19, 2017 11:31:58 PM Rafael J. Wysocki wrote: > Hi All, > > The handling of device wakeup settings, especially in the ACPI core and the > PCI > bus type, depends on whether it is about system wakeup from sleep states or > remote wakeup in the working state (runtime). However, tha

Re: [PATCH V5 Resend] PM / OPP: Use - instead of @ for DT entries

2017-06-23 Thread Rafael J. Wysocki
On Thursday, June 22, 2017 09:15:11 AM Viresh Kumar wrote: > Compiling the DT file with W=1, DTC warns like follows: > > Warning (unit_address_vs_reg): Node /opp_table0/opp@10 has a > unit name, but no reg property > > Fix this by replacing '@' with '-' as the OPP nodes will never have a

Re: [PATCH 0/3] Enable namespaced file capabilities

2017-06-23 Thread Casey Schaufler
On 6/23/2017 4:09 PM, Stefan Berger wrote: > On 06/23/2017 02:35 PM, Serge E. Hallyn wrote: >> Quoting Stefan Berger (stef...@linux.vnet.ibm.com): >>> On 06/23/2017 12:16 PM, Casey Schaufler wrote: On 6/23/2017 9:00 AM, Serge E. Hallyn wrote: > Quoting Amir Goldstein (amir7...@gmail.com):

Re: [PATCH 3/3] Enable security.selinux in user namespaces

2017-06-23 Thread Stefan Berger
On 06/23/2017 04:30 PM, Stephen Smalley wrote: On Thu, 2017-06-22 at 14:59 -0400, Stefan Berger wrote: Before the current modifications, SELinux extended attributes were visible inside the user namespace but changes in patch 1 hid them. This patch enables security.selinux in user namespaces and

[PATCH] firmware: wake all waiters

2017-06-23 Thread Jakub Kicinski
Multiple devices may be waiting for firmware with the same name. In that case we will make them all use the same struct firmware_buf. When wake up happens make sure it's propagated to all of them. Signed-off-by: Jakub Kicinski --- drivers/base/firmware_class.c | 2 +- 1 file changed, 1 insertion

Re: endian bitshift defects [ was: staging: fusb302: don't bitshift __le16 type ]

2017-06-23 Thread Julia Lawall
On Sat, 24 Jun 2017, Frans Klaver wrote: > Hm. For some reason the great mail filtering scheme decided to push > this past my inbox :-/ > > On Sat, Jun 17, 2017 at 12:44 AM, Joe Perches wrote: > > On Fri, 2017-06-16 at 19:45 +0200, Frans Klaver wrote: > >> The header field in struct pd_message

Re: [PATCH] ext4: Return EIO on read error in ext4_find_entry

2017-06-23 Thread Andreas Dilger
On Jun 23, 2017, at 5:26 PM, Theodore Ts'o wrote: > > On Fri, Jun 23, 2017 at 03:33:46PM -0700, Khazhismel Kumykov wrote: >> >> Giving up early or checking future blocks both work, critical thing >> here is not returning NULL after seeing a read error. >> Previously to this the behavior was to c

Re: [PATCH] ext4: Return EIO on read error in ext4_find_entry

2017-06-23 Thread Theodore Ts'o
On Fri, Jun 23, 2017 at 03:33:46PM -0700, Khazhismel Kumykov wrote: > > Giving up early or checking future blocks both work, critical thing > here is not returning NULL after seeing a read error. > Previously to this the behavior was to continue to check future blocks > after a read error, and it

Re: [PATCH 5/7] RISC-V: arch/riscv/lib

2017-06-23 Thread Palmer Dabbelt
On Wed, 07 Jun 2017 00:35:04 PDT (-0700), Arnd Bergmann wrote: > On Tue, Jun 6, 2017 at 10:53 PM, Palmer Dabbelt wrote: >> On Tue, 06 Jun 2017 02:31:02 PDT (-0700), Arnd Bergmann wrote: >>> On Tue, Jun 6, 2017 at 6:56 AM, Palmer Dabbelt wrote: On Fri, 26 May 2017 02:06:58 PDT (-0700), Arnd B

  1   2   3   4   5   6   7   8   >