RE: [PATCH v4 1/4] PM / devfreq: Fix the wrong description for userspace governor

2017-01-23 Thread MyungJoo Ham
> This patch fixes the wrong description of governor_userspace.c > and removes the unneeded blank line. > > Signed-off-by: Chanwoo Choi > --- Applied in for-next

RE: [PATCH v4 2/4] PM / devfreq: exynos-ppmu: Show the registred device for ppmu device

2017-01-23 Thread MyungJoo Ham
> This patch just adds the simple log to show the PPMU device's registration > during the kernel booting. > > Signed-off-by: Chanwoo Choi > --- > drivers/devfreq/event/exynos-ppmu.c | 3 +++ > 1 file changed, 3 insertions(+) > Applied in for-next

[linux-next] [PATCH] Doc: f2fs: Fix typo in Documentation/filesystems/f2fs.txt

2017-01-23 Thread Masanari Iida
This patch fix a typo in f2fs.txt Signed-off-by: Masanari Iida --- Documentation/filesystems/f2fs.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/filesystems/f2fs.txt b/Documentation/filesystems/f2fs.txt index d99faced79cb..0ab33d4c8406 100644 --- a/Documen

RE: [PATCH 1/3] PM / devfreq: Fix available_governor sysfs

2017-01-23 Thread MyungJoo Ham
> The devfreq using passive governor is not able to change the governor. > So, the user can not change the governor through 'available_governor' sysfs > entry. Also, the devfreq which don't use the passive governor is not able to > change to 'passive' governor on the fly. Another thoughts on the c

[PATCH 3/3] Bluetooth: hidp: fix possible might sleep error in hidp_session_thread

2017-01-23 Thread Jeffy Chen
It looks like hidp_session_thread has same pattern as the issue reported in old rfcomm: while (1) { set_current_state(TASK_INTERRUPTIBLE); if (condition) break; // may call might_sleep here schedule();

[PATCH 1/3] Bluetooth: bnep: fix possible might sleep error in bnep_session

2017-01-23 Thread Jeffy Chen
It looks like bnep_session has same pattern as the issue reported in old rfcomm: while (1) { set_current_state(TASK_INTERRUPTIBLE); if (condition) break; // may call might_sleep here schedule();

[PATCH 2/3] Bluetooth: cmtp: fix possible might sleep error in cmtp_session

2017-01-23 Thread Jeffy Chen
It looks like cmtp_session has same pattern as the issue reported in old rfcomm: while (1) { set_current_state(TASK_INTERRUPTIBLE); if (condition) break; // may call might_sleep here schedule();

Re: [PATCH] f2fs: introduce nid cache

2017-01-23 Thread Jaegeuk Kim
Hi Chao, On 01/22, Chao Yu wrote: > In scenario of intensively node allocation, free nids will be ran out > soon, then it needs to stop to load free nids by traversing NAT blocks, > in worse case, if NAT blocks does not be cached in memory, it generates > IOs which slows down our foreground operat

Re: [linux-next] [PATCH] Doc: f2fs: Fix typo in Documentation/filesystems/f2fs.txt

2017-01-23 Thread Jaegeuk Kim
Hello, Applied to f2fs.git. Thanks, On 01/24, Masanari Iida wrote: > This patch fix a typo in f2fs.txt > > Signed-off-by: Masanari Iida > --- > Documentation/filesystems/f2fs.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/filesystems/f2fs.txt > b/

[PATCH v3] drm/mediatek: Support UYVY and YUYV format for overlay

2017-01-23 Thread Bibby Hsieh
MT8173 overlay can support UYVY and YUYV format, we add the format in DRM driver. Signed-off-by: Bibby Hsieh Reviewed-by: Daniel Kurtz --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 7 +++ drivers/gpu/drm/mediatek/mtk_drm_plane.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/driver

Re: [PATCH v5 1/4] usb: dbc: early driver for xhci debug capability

2017-01-23 Thread Lu Baolu
Hi Ingo, On 01/22/2017 05:04 PM, Ingo Molnar wrote: > * Lu Baolu wrote: > +static void xdbc_runtime_delay(unsigned long count) +{ + udelay(count); +} +static void (*xdbc_delay)(unsigned long) = xdbc_early_delay; >>> Is this udelay() complication really necessary? udelay(

linux-next: manual merge of the kselftest tree with the net-next tree

2017-01-23 Thread Stephen Rothwell
Hi Shuah, Today's linux-next merge of the kselftest tree got a conflict in: tools/testing/selftests/bpf/Makefile between commit: 4d3381f5a322 ("bpf: Add tests for the lpm trie map") from the net-next tree and commit: 88baa78d1f31 ("selftests: remove duplicated all and clean target") fr

Re: [PATCH v6 1/4] usb: dbc: early driver for xhci debug capability

2017-01-23 Thread Lu Baolu
Hi Ingo, On 01/22/2017 05:31 PM, Ingo Molnar wrote: > * Lu Baolu wrote: > >> xHCI debug capability (DbC) is an optional but standalone >> functionality provided by an xHCI host controller. Software >> learns this capability by walking through the extended >> capability list of the host. xHCI spec

[PATCH] drm/mediatek: hdmi: Filter interlaced resolutions

2017-01-23 Thread Bibby Hsieh
Current Mediatek DRM driver does not support interlaced mode, and will hang if such resolution is used: Filter those to prevent kernel hangs, until the DRM driver is fixed properly. Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 2 ++ 1 file changed, 2 insertions(+) diff -

Re: [PATCH v20 00/17] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2017-01-23 Thread Fu Wei
Hi Mark On 24 January 2017 at 02:54, Mark Rutland wrote: > Hi, > > On Wed, Jan 18, 2017 at 09:25:24PM +0800, fu@linaro.org wrote: >> From: Fu Wei >> >> This patchset: >> (1)Preparation for adding GTDT support in arm_arch_timer: >> 1. Clean up printk() usage >> 2. Rename t

Re: [tip:x86/urgent] x86/fpu: Set the xcomp_bv when we fake up a XSAVES area

2017-01-23 Thread Kevin Hao
On Mon, Jan 23, 2017 at 06:38:42PM -0800, Dave Hansen wrote: > On 01/23/2017 06:09 PM, Kevin Hao wrote: > > On Mon, Jan 23, 2017 at 06:01:10PM -0800, Dave Hansen wrote: > >> On 01/23/2017 05:50 PM, Kevin Hao wrote: > >>> According to the ISA manual, XSAVES also set the XCOMP_BV[62:0]. My code > >>

Re: [PATCH 2/3] ath10k: use dma_zalloc_coherent()

2017-01-23 Thread Valo, Kalle
Joe Perches writes: > On Mon, 2017-01-23 at 15:04 +, Srinivas Kandagatla wrote: >> use dma_zalloc_coherent() instead of dma_alloc_coherent and memset(). > [] >> diff --git a/drivers/net/wireless/ath/ath10k/pci.c >> b/drivers/net/wireless/ath/ath10k/pci.c > [] >> @@ -896,7 +896,7 @@ static in

status of "tty: Fix ldisc crash on reopened tty"

2017-01-23 Thread Sergey Senozhatsky
Hello Peter, Mikulas just came across this patch https://lkml.org/lkml/2016/5/17/440 Peter, are you still planning to merge it? or is there something that made you change your mind? -ss

Re: [PATCH 2/3] ath10k: use dma_zalloc_coherent()

2017-01-23 Thread Joe Perches
On Tue, 2017-01-24 at 05:18 +, Valo, Kalle wrote: > Joe Perches writes: > > > On Mon, 2017-01-23 at 15:04 +, Srinivas Kandagatla wrote: > > > use dma_zalloc_coherent() instead of dma_alloc_coherent and memset(). > > > > [] > > > diff --git a/drivers/net/wireless/ath/ath10k/pci.c > > > b

[PATCH v3] ALSA: ymfpci: Handle return NULL error from ioremap_nocache

2017-01-23 Thread Arvind Yadav
Here, If ioremap_nocache will fail. It will return NULL. Kernel can run into a NULL-pointer dereference. This error check will avoid NULL pointer dereference. Signed-off-by: Arvind Yadav --- sound/pci/ymfpci/ymfpci_main.c | 4 1 file changed, 4 insertions(+) diff --git a/sound/pci/ymfpci/y

Re: [patch 4/5] PTP: add PTP_SYS_OFFSET emulation via cross timestamps infrastructure

2017-01-23 Thread Richard Cochran
On Mon, Jan 23, 2017 at 09:06:20PM -0200, Marcelo Tosatti wrote: > Can you please describe what problem exists with this scheme? This new kernel code exists just because chrony doesn't implement the PRECISE ioctl. Instead of adding new "fake" modes, just teach chrony about the better method. I p

Re: [PATCH v12 11/12] drm/mediatek: update DSI sub driver flow for sending commands to panel

2017-01-23 Thread CK Hu
Hi, YT: On Mon, 2017-01-23 at 19:05 +0800, YT Shen wrote: > This patch update enable/disable flow of DSI module. > Original flow works on there is a bridge chip: DSI -> bridge -> panel. > In this case: DSI -> panel, the DSI sub driver flow should be updated. > We need to initialize DSI first so th

Re: Asɪᴀɴ-.Bᴇᴀᴜᴛɪᴇs-FᴏʀLᴏᴠᴇAɴᴅMᴏʀᴇ

2017-01-23 Thread Romeo Mutizwa
Give me a link to hoke up with u On 1/23/17, mutizwaro...@gmail.com wrote: > Asian_Girls_Looking_for_Serious_Dating > > > GO_HERE > > > > > > > > > > > > > > > > > '-unsub-' [image]

[PATCH 0/2] Add session handling to tpm spaces

2017-01-23 Thread James Bottomley
These two patches are easily separated. The first does session handling. This incarnation uses TPM_RC_REFERENCE_H0 errors from context save or load to signal when a session has been flushed (so it no longer does tracking or flush emulation). The second patch does management for session exhaustio

[PATCH 1/2] tpm2: add session handle context saving and restoring to the space code

2017-01-23 Thread James Bottomley
sessions are different from transient objects in that their handles may not be virtualized (because they're used for some hmac calculations). Additionally when a session is context saved, a vestigial memory remains in the TPM and if it is also flushed, that will be lost and the session context wil

[PATCH v2] initramfs: finish fput() before accessing any binary from initramfs

2017-01-23 Thread Lokesh Vutla
commit 4a9d4b024a31 ("switch fput to task_work_add") implements a schedule_work() for completing fput(), but did not guarantee calling __fput() after unpacking initramfs. Because of this, there is a possibility that during boot a driver can see ETXTBSY when it tries to load a binary from initramfs

[PATCH 2/2] tpm2-space: add handling for global session exhaustion

2017-01-23 Thread James Bottomley
In a TPM2, sessions can be globally exhausted once there are TPM_PT_ACTIVE_SESSION_MAX of them (even if they're all context saved). The Strategy for handling this is to keep a global count of all the sessions along with their creation time. Then if we see the TPM run out of sessions (via the TPM_R

Re: [PATCH v3] drm/mediatek: Support UYVY and YUYV format for overlay

2017-01-23 Thread CK Hu
Hi, Bibby: On Tue, 2017-01-24 at 12:40 +0800, Bibby Hsieh wrote: > MT8173 overlay can support UYVY and YUYV format, > we add the format in DRM driver. > > Signed-off-by: Bibby Hsieh > Reviewed-by: Daniel Kurtz Acked-by: CK Hu > --- > drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 7 +++ > d

Re: [patch 4/5] PTP: add PTP_SYS_OFFSET emulation via cross timestamps infrastructure

2017-01-23 Thread Richard Cochran
On Mon, Jan 23, 2017 at 08:44:53PM +0100, Paolo Bonzini wrote: > If you just implement getclock64 the PTP_SYS_OFFSET output: > > device clock | |sample2| |sample4| |sample6| ... > - > realtime clock |sample1| |sa

linux-next: Tree for Jan 24

2017-01-23 Thread Stephen Rothwell
Hi all, Changes since 20170123: The net-next tree gained a conflict against the net tree. The drm tree gained a build failure so I used the version from next-20170123. The mfd tree gained a conflict against the arm-soc tree. The kselftest tree gained a conflict against the net-next tree. Non

Re: [PATCH] drm/mediatek: hdmi: Filter interlaced resolutions

2017-01-23 Thread CK Hu
Hi, Bibby: On Tue, 2017-01-24 at 13:10 +0800, Bibby Hsieh wrote: > Current Mediatek DRM driver does not support interlaced mode, and > will hang if such resolution is used: Filter those to prevent > kernel hangs, until the DRM driver is fixed properly. > > Signed-off-by: Bibby Hsieh Acked-by: C

Re: [linux-sunxi] [PATCH 00/11] clk: sunxi-ng: Add support for A80 CCUs

2017-01-23 Thread Priit Laes
On Tue, 2017-01-24 at 10:32 +0800, Chen-Yu Tsai wrote: > Hi everyone, Hi! Thanks for working on that! You might want to bump the copyright year starting from patch 5. [...] Päikest, Priit Laes

[PATCH v2 2/2] gpio: aspeed: Add banks Y, Z, AA, AB and AC

2017-01-23 Thread Andrew Jeffery
This is less straight-forward than one would hope, as some banks only have 4 pins rather than 8, others are output only, yet more (W and X, already supported) are input-only, and in the case of the g4 SoC bank AC doesn't exist. Add some structs to describe the varying properties of different banks

[PATCH v2 1/2] gpio: aspeed: Make bank names strings

2017-01-23 Thread Andrew Jeffery
From: Joel Stanley The Aspeed SoCs have more GPIOs than can be represented with A-Z. The documentation uses two letter names such as AA and AB, so make the names a three-character array in the bank struct to accommodate this. Signed-off-by: Joel Stanley Signed-off-by: Andrew Jeffery --- drive

[PATCH v2 0/2] gpio: aspeed: Implement banks Y, Z, AA, AB and AC

2017-01-23 Thread Andrew Jeffery
Hi Linus, v2 simply fixes an issue identified by the kbuild test robot. v1 is available at: https://lkml.org/lkml/2017/1/23/12 This short series resolves a TODO comment in the Aspeed GPIO driver regarding banks Y, Z, AA, AB and AC by implementing their support. It's a little involved given some o

Re: [PATCH] drm: bridge: dw-hdmi: fix building without CONFIG_OF

2017-01-23 Thread Archit Taneja
On 01/23/2017 05:50 PM, Arnd Bergmann wrote: The of_node member in struct drm_bridge is hidden when CONFIG_OF is disabled, causing a build error: drivers/gpu/drm/bridge/dw-hdmi.c: In function '__dw_hdmi_probe': drivers/gpu/drm/bridge/dw-hdmi.c:2063:14: error: 'struct drm_bridge' has no member

Re: [PATCH 1/3] PM / devfreq: Fix available_governor sysfs

2017-01-23 Thread Chanwoo Choi
On 2017년 01월 24일 12:51, MyungJoo Ham wrote: >> The devfreq using passive governor is not able to change the governor. >> So, the user can not change the governor through 'available_governor' sysfs >> entry. Also, the devfreq which don't use the passive governor is not able to >> change to 'passive'

[PATCH V6 2/5] PCI: Adapt pci_register_io_range() for indirect-IO and PCI I/O translation

2017-01-23 Thread zhichang.yuan
After indirect-IO is introduced, system must can assigned indirect-IO devices with logical I/O ranges which are different from those for PCI I/O devices. Otherwise, I/O accessors can't identify whether the I/O port is for memory mapped I/O or indirect-IO. As current helper, pci_register_io_range(),

[PATCH V6 4/5] LPC: Support the device-tree LPC host on Hip06/Hip07

2017-01-23 Thread zhichang.yuan
The low-pin-count(LPC) interface of Hip06/Hip07 accesses the peripherals in I/O port addresses. This patch implements the LPC host controller driver which perform the I/O operations on the underlying hardware. We don't want to touch those existing peripherals' driver, such as ipmi-bt. So this drive

[PATCH V5 5/5] LPC: Add the ACPI LPC support

2017-01-23 Thread zhichang.yuan
The patch update the _CRS of LPC children with the system logical I/O resource after the translation from LPC-local I/O. Then the ACPI platform device enumeration for LPC can apply the right I/O resource to request the system I/O space. Signed-off-by: zhichang.yuan --- drivers/bus/hisi_lpc.c |

[PATCH V6 0/5] LPC: legacy ISA I/O support

2017-01-23 Thread zhichang.yuan
This patch supports the IPMI-bt device attached to the Low-Pin-Count interface implemented on Hisilicon Hip06/Hip07 SoC. --- | LPC host| | | --- |

[PATCH V6 3/5] OF: Add missing I/O range exception for indirect-IO devices

2017-01-23 Thread zhichang.yuan
There are some special ISA/LPC devices that work on a specific I/O range where it is not correct to specify a 'ranges' property in DTS parent node as cpu addresses translated from DTS node are only for memory space on some architectures, such as Arm64. Without the parent 'ranges' property, current

[PATCH V6 1/5] LIB: Indirect ISA/LPC port IO introduced

2017-01-23 Thread zhichang.yuan
Low-pin-count interface is integrated into some SoCs. The accesses to those peripherals under LPC make use of I/O ports rather than the memory mapped I/O. To drive these devices, this patch introduces a method named indirect-IO. In this method the in/out() accessor in include/asm-generic/io.h will

Re: [GIT PULL] Immutable branch between MFD, ARM, IIO and PWM due for the v4.10 merge window

2017-01-23 Thread Olof Johansson
Hi Lee, On Mon, Jan 23, 2017 at 4:12 AM, Lee Jones wrote: > Arm, IIO and PWM Maintainers, > > Enjoy! > > The following changes since commit 7ce7d89f48834cefece7804d38fc5d85382edf77: > > Linux 4.10-rc1 (2016-12-25 16:13:08 -0800) > > are available in the git repository at: > > git://git.kernel

Re: [PATCH v3 1/3] of: Support parsing phandle argument lists through a nexus node

2017-01-23 Thread Frank Rowand
Hi Stephen, Sorry I did not get to v1 and v2 in a timely manner. On 01/23/17 12:48, Stephen Boyd wrote: > Platforms like 96boards have a standardized connector/expansion > slot that exposes signals like GPIOs to expansion boards in an > SoC agnostic way. We'd like the DT overlays for the expansi

Re: [patch] samples/bpf: silence shift wrapping warning

2017-01-23 Thread Alexei Starovoitov
On Mon, Jan 23, 2017 at 5:27 AM, Arnaldo Carvalho de Melo wrote: > Em Sun, Jan 22, 2017 at 02:51:25PM -0800, Alexei Starovoitov escreveu: >> On Sat, Jan 21, 2017 at 07:51:43AM +0300, Dan Carpenter wrote: >> > max_key is a value in the 0-63 range, so on 32 bit systems the shift >> > could wrap. >>

[PATCH] Drivers: hv: vmbus: finally fix hv_need_to_signal_on_read()

2017-01-23 Thread Dexuan Cui
Commit a389fcfd2cb5 ("Drivers: hv: vmbus: Fix signaling logic in hv_need_to_signal_on_read()") added the proper mb(), but removed the test "prev_write_sz < pending_sz" when making the signal decision. As a result, the guest can signal the host unnecessarily, and then the host can throttle the gu

Re: [PATCH v5 0/2] perf probe: add sdt probes arguments into the uprobe cmd string

2017-01-23 Thread Ravi Bangoria
On Wednesday 14 December 2016 01:06 PM, Ingo Molnar wrote: > * Alexis Berlemont wrote: > >> Hi Masami, >> >> Many thanks for your mail. >> >> Here is another patch set which tries to fix the points you mentioned: >> >> * Skip the arguments containing a constant ($123); >> * Review the code in c

Re: [PATCH] kernel-doc: Handle returning pointers to pointers

2017-01-23 Thread Markus Heiser
Am 23.01.2017 um 16:24 schrieb Jonathan Corbet : > On Mon, 23 Jan 2017 15:14:51 + > Matthew Wilcox wrote: > >>> I maintain my own stack of "linuxdoc" with a python version >>> of the kernel-doc script (hosted on github). It uses the same >>> regexes as the perl version (using a python rewri

Re: v4.10-rc4 to v4.10-rc5: battery regression on Nokia N900

2017-01-23 Thread Zhang Rui
On Mon, Jan 23, 2017 at 03:49:12PM -0800, Guenter Roeck wrote: > On Tue, Jan 24, 2017 at 12:26:54AM +0100, Pavel Machek wrote: > > Hi! > > > > > > >I'll try to revert it on the top of v4.10-rc5 now... and yes, it fixes > > > > >the issue. > > > > > > > > > >Any idea what went wrong and how to fix

Re: [PATCH] Bluetooth: hidp: might sleep error in hidp_session_thread

2017-01-23 Thread jeffy
Hi brian, On 01/24/2017 10:31 AM, Brian Norris wrote: Hi Jeffy, On Fri, Jan 20, 2017 at 09:52:08PM +0800, Jeffy Chen wrote: [ 39.044329] do not call blocking ops when !TASK_RUNNING; state=1 set at [] hidp_session_thread+0x110/0x568 [hidp] ... [ 40.159664] Call trace: [ 40.162122] [] __mi

Re: [PATCH] mmc: s3cmci: include linux/interrupt.h for tasklet_struct

2017-01-23 Thread Ulf Hansson
On 20 January 2017 at 21:08, Arnd Bergmann wrote: > I got this new build error on today's linux-next > > drivers/mmc/host/s3cmci.h:69:24: error: field 'pio_tasklet' has incomplete > type > struct tasklet_struct pio_tasklet; > drivers/mmc/host/s3cmci.c: In function 's3cmci_enable_irq': > drivers

Re: [PATCH 6/9] power_supply: wm97xx_battery: use power_supply_get_drvdata

2017-01-23 Thread Robert Jarzmik
Kevin Hilman writes: > Hello, > > On Wed, Oct 26, 2016 at 12:41 PM, Robert Jarzmik > wrote: >> As the power supply framework provides a way to store and retrieve >> private supply data, use it. >> >> In the process, change the platform data for wm97xx_battery from a >> container of a single str

Re: [PATCH] USB: Add quirk for WORLDE easykey.25 MIDI keyboard

2017-01-23 Thread Oliver Neukum
Am Montag, den 23.01.2017, 19:36 +0100 schrieb Lukáš Lalinský: > On Sat, Jan 21, 2017 at 10:08 AM, Greg Kroah-Hartman > wrote: > > > > Always use scripts/get_maintainer.pl to determine who to send > > patches > > to, and what mailing list.  You forgot linux-usb@vger, which I've > > now > > added.

Re: v4.10-rc4 to v4.10-rc5: battery regression on Nokia N900

2017-01-23 Thread Pavel Machek
Hi! > > > > >I'll try to revert it on the top of v4.10-rc5 now... and yes, it fixes > > > > >the issue. > > > > > > > > > >Any idea what went wrong and how to fix that? > > > > > > > > > >Anyway as we are at -rc5 and this is warning fix that caused a > > > > >regression on different hardware... it

Re: v4.10-rc4 to v4.10-rc5: battery regression on Nokia N900

2017-01-23 Thread Pavel Machek
On Tue 2017-01-24 15:06:39, Zhang Rui wrote: > On Mon, Jan 23, 2017 at 03:49:12PM -0800, Guenter Roeck wrote: > > On Tue, Jan 24, 2017 at 12:26:54AM +0100, Pavel Machek wrote: > > > Hi! > > > > > > > > >I'll try to revert it on the top of v4.10-rc5 now... and yes, it > > > > > >fixes > > > > > >t

Re: [PATCH] USB: Add quirk for WORLDE easykey.25 MIDI keyboard

2017-01-23 Thread Lukáš Lalinský
On Tue, Jan 24, 2017 at 8:32 AM, Oliver Neukum wrote: > Am Montag, den 23.01.2017, 19:36 +0100 schrieb Lukáš Lalinský: >> I have uploaded both captures here - >> https://gist.github.com/lalinsky/83148a827d5cd43e79e377d8e1b5ed0d > > Indeed it is does not set a configuration. Either the capture > is

[PATCH RFC 0/3] optimize kswapd when it does reclaim for hugepage

2017-01-23 Thread Jia He
If there is a server with uneven numa memory layout: available: 7 nodes (0-6) node 0 cpus: 0 1 2 3 4 5 6 7 node 0 size: 6603 MB node 0 free: 91 MB node 1 cpus: node 1 size: 12527 MB node 1 free: 157 MB node 2 cpus: node 2 size: 15087 MB node 2 free: 189 MB node 3 cpus: node 3 size: 16111 MB node 3

[PATCH RFC 3/3] mm, vmscan: correct prepare_kswapd_sleep return value

2017-01-23 Thread Jia He
When there is no reclaimable pages in the zone, even the zone is not balanced, we let kswapd go sleeping. That is prepare_kswapd_sleep will return true in this case. Signed-off-by: Jia He --- mm/vmscan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/vmscan.c b/mm/vmsca

[PATCH RFC 2/3] mm, vmscan: limit kswapd loop if no progress is made

2017-01-23 Thread Jia He
Currently there is no hard limitation for kswapd retry times if no progress is made. Then kswapd will take 100% for a long time. In my test, I tried to allocate 4000 hugepages by: echo 4000 > /proc/sys/vm/nr_hugepages Then,kswapd will take 100% cpu for a long time. The numa layout is: available:

[PATCH RFC 1/3] mm/hugetlb: split alloc_fresh_huge_page_node into fast and slow path

2017-01-23 Thread Jia He
This patch split alloc_fresh_huge_page_node into 2 parts: - fast path without __GFP_REPEAT flag - slow path with __GFP_REPEAT flag Thus, if there is a server with uneven numa memory layout: available: 7 nodes (0-6) node 0 cpus: 0 1 2 3 4 5 6 7 node 0 size: 6603 MB node 0 free: 91 MB node 1 cpus: n

[PATCH] netfilter: nf_ct_helper: warn when not applying default helper assignment (was Re: [RFC PATCH 0/2] restore original default of nf_conntrack_helper sysctl)

2017-01-23 Thread Jiri Kosina
On Mon, 23 Jan 2017, Linus Torvalds wrote: > For all I know, there may be some security reason why we really don't > want the automatic helpers, even if they can be convenient. > > Also, you can just enable them with a kernel command line or a sysctl, > so it's not like you can't get the old beha

Re: [PATCH] i2c: Fix error print when address is invalid

2017-01-23 Thread Wolfram Sang
On Mon, Jan 23, 2017 at 06:24:24PM -0800, Stephen Boyd wrote: > When the address is invalid, we print out the address that's > in info.addr, but that member of info hasn't been assigned yet. > It's assigned in the line after we check the address. This causes > the print to show something like > >

[PATCH 4.4 13/42] x86/PCI: Ignore _CRS on Supermicro X8DTH-i/6/iF/6F

2017-01-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Helgaas commit 89e9f7bcd8744ea25fcf0ac671b8d72c10d7d790 upstream. Martin reported that the Supermicro X8DTH-i/6/iF/6F advertises incorrect host bridge windows via _CRS: pci_root PNP0A0

[PATCH 4.4 11/42] ARM: dts: imx31: fix AVIC base address

2017-01-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Vladimir Zapolskiy commit af92305e567b7f4c9cf48b9e46c1f48ec9ffb1fb upstream. On i.MX31 AVIC interrupt controller base address is at 0x6800. The problem was shadowed by the AVIC driver, whi

[PATCH 4.4 17/42] HID: corsair: fix DMA buffers on stack

2017-01-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 6d104af38b570d37aa32a5803b04c354f8ed513d upstream. Not all platforms support DMA to the stack, and specifically since v4.9 this is no longer supported on x86 with VMAP_STACK

[PATCH 4.4 12/42] tmpfs: clear S_ISGID when setting posix ACLs

2017-01-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Gu Zheng commit 497de07d89c1410d76a15bec2bb41f24a2a89f31 upstream. This change was missed the tmpfs modification in In CVE-2016-7097 commit 073931017b49 ("posix_acl: Clear SGID bit when setting

[PATCH 4.4 01/42] ftrace/x86: Set ftrace_stub to weak to prevent gcc from using short jumps to it

2017-01-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Steven Rostedt commit 8329e818f14926a6040df86b2668568bde342ebf upstream. Matt Fleming reported seeing crashes when enabling and disabling function profiling which uses function graph tracer. La

[PATCH 4.4 18/42] HID: corsair: fix control-transfer error handling

2017-01-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 7a546af50eb78ab99840903083231eb635c8a566 upstream. Make sure to check for short control transfers in order to avoid parsing uninitialised buffer data and leaking it to user

[PATCH 4.4 20/42] ieee802154: atusb: do not use the stack for buffers to make them DMA able

2017-01-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Stefan Schmidt commit 05a974efa4bdf6e2a150e3f27dc6fcf0a9ad5655 upstream. >From 4.9 we should really avoid using the stack here as this will not be DMA able on various platforms. This changes th

[PATCH 4.4 26/42] svcrdma: avoid duplicate dma unmapping during error recovery

2017-01-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Sriharsha Basavapatna commit ce1ca7d2d140a1f4aaffd297ac487f246963dd2f upstream. In rdma_read_chunk_frmr() when ib_post_send() fails, the error code path invokes ib_dma_unmap_sg() to unmap the s

[PATCH 4.4 30/42] arm64/ptrace: Preserve previous registers for short regset write

2017-01-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dave Martin commit 9a17b876b573441bfb3387ad55d98bf7184daf9d upstream. Ensure that if userspace supplies insufficient data to PTRACE_SETREGSET to fill all the registers, the thread's old registe

[PATCH 4.4 07/42] IB/IPoIB: Remove cant use GFP_NOIO warning

2017-01-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Kamal Heib commit 0b59970e7d96edcb3c7f651d9d48e1a59af3c3b0 upstream. Remove the warning print of "can't use of GFP_NOIO" to avoid prints in each QP creation when devices aren't supporting IB_QP

[PATCH 4.4 06/42] IB/mlx4: When no DMFS for IPoIB, dont allow NET_IF QPs

2017-01-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Eran Ben Elisha commit 1f22e454df2eb99ba6b7ace3f594f6805cdf5cbc upstream. According to the firmware spec, FLOW_STEERING_IB_UC_QP_RANGE command is supported only if dmfs_ipoib bit is set. If it

[PATCH 4.4 04/42] IB/mlx4: Fix out-of-range array index in destroy qp flow

2017-01-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Jack Morgenstein commit c482af646d0809a8d5e1b7f4398cce3592589b98 upstream. For non-special QPs, the port value becomes non-zero only at the RESET-to-INIT transition. If the QP has not undergone

[PATCH 4.4 39/42] [media] ite-cir: initialize use_demodulator before using it

2017-01-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Nicolas Iooss commit 7ec03e60ef81c19b5d3a46dd070ee966774b860f upstream. Function ite_set_carrier_params() uses variable use_demodulator after having initialized it to false in some if branches,

[PATCH 4.9 017/130] perf trace: Check if MAP_32BIT is defined (again)

2017-01-23 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jiri Olsa commit 2bd42f3aaa53ebe78b9be6f898b7945dd61f9773 upstream. There might be systems where MAP_32BIT is not defined, like some some RHEL7 powerpc versions. Signed-off-by: Jiri Olsa Cc:

[PATCH 4.9 012/130] IB/mlx4: When no DMFS for IPoIB, dont allow NET_IF QPs

2017-01-23 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eran Ben Elisha commit 1f22e454df2eb99ba6b7ace3f594f6805cdf5cbc upstream. According to the firmware spec, FLOW_STEERING_IB_UC_QP_RANGE command is supported only if dmfs_ipoib bit is set. If it

[PATCH 4.9 011/130] IB/mlx4: Fix port query for 56Gb Ethernet links

2017-01-23 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Saeed Mahameed commit 6fa26208206c406fa529cd73f7ae6bf4181e270b upstream. Report the correct speed in the port attributes when using a 56Gbps ethernet link. Without this change the field is inc

[PATCH 4.4 33/42] arm64/ptrace: Avoid uninitialised struct padding in fpr_set()

2017-01-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dave Martin commit aeb1f39d814b2e21e5e5706a48834bfd553d0059 upstream. This patch adds an explicit __reserved[] field to user_fpsimd_state to replace what was previously unnamed padding. This e

[PATCH 4.9 010/130] IB/mlx4: Handle well-known-gid in mad_demux processing

2017-01-23 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jack Morgenstein commit befcabcd530e4ffb6f016638f693b7d94986d2ba upstream. If OpenSM runs over a ConnectX-3, and there are ConnectX-4 or Connect-IB VFs active on the network, the OpenSM will re

[PATCH 4.4 41/42] selftest/powerpc: Wrong PMC initialized in pmc56_overflow test

2017-01-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Madhavan Srinivasan commit df21d2fa733035e4d414379960f94b2516b41296 upstream. Test uses PMC2 to count the event. But PMC1 is being initialized. Patch to fix it. Fixes: 3752e453f6ba ('selftests

[PATCH 4.4 36/42] ARM: ux500: fix prcmu_is_cpu_in_wfi() calculation

2017-01-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit f0e8faa7a5e894b0fc99d24be1b18685a92ea466 upstream. This function clearly never worked and always returns true, as pointed out by gcc-7: arch/arm/mach-ux500/pm.c: In functi

[PATCH 4.9 001/130] IB/core: Release allocated memory in cache setup failure

2017-01-23 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Leon Romanovsky commit aa6aae38f7fb2c030f326a6dd10b58fff1851dfa upstream. The failure in ib_cache_setup_one function during ib_register_device will leave leaked allocated memory. Fixes: 03db3a

[PATCH 4.9 015/130] perf trace: Use the syscall raw_syscalls:sys_enter timestamp

2017-01-23 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnaldo Carvalho de Melo commit ecf1e2253ea79c6204f4d6a5e756e8fb4aed5a7e upstream. Instead of the one when another syscall takes place while another is being processed (in another CPU, but we s

[PATCH] x86/mce: Keep quiet in case of broadcasted mce after system panic

2017-01-23 Thread Xunlei Pang
We met an issue for kdump: after kdump kernel boots up, and there comes a broadcasted mce in first kernel, the other cpus remaining in first kernel will enter the old mce handler of first kernel, then timeout and panic due to MCE synchronization, finally reset the kdump cpus. This patch lets cpus

Re: [PATCH -next] drm/atomic: make release_crtc_commit() static

2017-01-23 Thread Daniel Vetter
On Mon, Jan 16, 2017 at 07:36:27PM -0200, Gustavo Padovan wrote: > Hi Wei, > > 2017-01-12 Wei Yongjun : > > > From: Wei Yongjun > > > > Fixes the following sparse warning: > > > > drivers/gpu/drm/drm_atomic_helper.c:1360:6: warning: > > symbol 'release_crtc_commit' was not declared. Should it

Re: [PATCH 0/4] HID: wacom: fixes for next

2017-01-23 Thread Benjamin Tissoires
On Jan 20 2017 or thereabouts, Jason Gerecke wrote: > Patches 1/3 look reasonable to me, though I've not run into the bugs > they aim to fix. For those: > > Acked-by: Jason Gerecke > > As for patch 4, I have some additional reservations about hiding the > message... We can discuss that further i

[tip:x86/debug] x86/crash: Update the stale comment in reserve_crashkernel()

2017-01-23 Thread tip-bot for Xunlei Pang
Commit-ID: a8d4c8246b290ce97f88752d833804843041ac84 Gitweb: http://git.kernel.org/tip/a8d4c8246b290ce97f88752d833804843041ac84 Author: Xunlei Pang AuthorDate: Mon, 23 Jan 2017 14:48:23 +0800 Committer: Ingo Molnar CommitDate: Mon, 23 Jan 2017 08:57:55 +0100 x86/crash: Update the stale

Re: [PATCH 0/3] ata: add m68k/Atari Falcon PATA support

2017-01-23 Thread Michael Schmitz
Hi Finn, Am 21.01.2017 um 20:37 schrieb Finn Thain: >> The MFP interrupt in question is the same as the one used by IDE >> (wired-OR of IDE, FDC and SCSI), so we would still have to figure out >> where the interrupt originated. > > I thought you said the driver you're testing does not use any

Re: [PATCH] regulator: axp20x: AXP806: Fix dcdcb being set instead of dcdce

2017-01-23 Thread Chen-Yu Tsai
On Sun, Jan 22, 2017 at 12:11 AM, Rask Ingemann Lambertsen wrote: > A typo or copy-paste bug means that the register access intended for > regulator dcdce goes to dcdcb instead. This patch corrects it. > > Signed-off-by: Rask Ingemann Lambertsen > Fixes: 2ca342d391e3 (regulator: axp20x: Support A

Re: [PATCH v6 2/3] dmaeninge: xilinx_dma: Fix bug in multiple frame stores scenario in vdma

2017-01-23 Thread Mike Looijmans
On 14-01-17 06:35, Kedareswara rao Appana wrote: When VDMA is configured for more than one frame in the h/w. For example h/w is configured for n number of frames, user Submits n number of frames and triggered the DMA using issue_pending API. In the current driver flow we are submitting one fram

Re: [PATCH 1/2] random: use chacha20 for get_random_int/long

2017-01-23 Thread Greg Kroah-Hartman
On Sun, Jan 22, 2017 at 05:28:42PM -0500, Theodore Ts'o wrote: > On Sun, Jan 22, 2017 at 04:20:04PM +0100, Greg Kroah-Hartman wrote: > > > The core stuff is not in the networking tree. This is nothing to do > > > with the networking tree in any way at all. There might be some > > > confusion becaus

Re: [PATCH tip/core/rcu 2/3] srcu: Force full grace-period ordering

2017-01-23 Thread Michael Ellerman
"Paul E. McKenney" writes: > On Sat, Jan 14, 2017 at 11:54:17AM -0800, Paul E. McKenney wrote: >> On Sat, Jan 14, 2017 at 10:35:50AM +0100, Ingo Molnar wrote: >> > * Paul E. McKenney wrote: > > [ . . . ] > >> > > + */ >> > > +#ifdef CONFIG_PPC >> > > +#define smp_mb__after_unlock_lock() smp_

Re: [git pull] drm fixes for 4.10-rc6 (just missed rc5 tagging :-)

2017-01-23 Thread Daniel Vetter
On Mon, Jan 23, 2017 at 09:38:48AM +1000, Dave Airlie wrote: > Hi Linus, > > Okay holidays and LCA kinda caught up with me, I thought I'd get some > of this dequeued last week, but Hobart was > sunny and warm and not all gloomy and rainy as usual. > > This is a bit large, but not too much conside

RE: [PATCH v2] net: broadcom: bnx2x: use new api ethtool_{get|set}_link_ksettings

2017-01-23 Thread Mintz, Yuval
> The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > As I don't have the hardware, I'd be very pleased if someone may test this > patch. > > Signed-off-by: Philippe Reynes >From the little testing I've did, things look fine. Thanks.

Re: [PATCHv4 3/5] pinctrl: mvebu: pinctrl driver for 98DX3236 SoC

2017-01-23 Thread Chris Packham
On 20/01/17 10:10, Chris Packham wrote: > On 19/01/17 23:03, Russell King - ARM Linux wrote: >> On Fri, Jan 13, 2017 at 10:12:18PM +1300, Chris Packham wrote: >>> +static struct mvebu_mpp_ctrl mv98dx3236_mpp_controls[] = { >>> + MPP_FUNC_CTRL(0, 32, NULL, armada_xp_mpp_ctrl), >>> +}; >> >> As Lin

[PATCH] kernel-doc: Handle returning pointers to pointers

2017-01-23 Thread Matthew Wilcox
Clearly nobody ever tried to build the documentation for the radix tree before: include/linux/radix-tree.h:400: warning: cannot understand function prototype: 'void ** radix_tree_iter_init(struct radix_tree_iter *iter, unsigned long start) ' Indeed, the regexes only handled a single '*', not one-

Re: [PATCH] KVM: s390: Move two error code assignments in kvm_vm_ioctl_get_dirty_log()

2017-01-23 Thread Christian Borntraeger
On 01/21/2017 05:03 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 21 Jan 2017 16:52:23 +0100 > > A local variable was set to an error code in two cases before a concrete > error situation was detected. Thus move the corresponding assignments into > if branches to indicate a sof

Re: [PATCH v2] drm: Clean up the 1366x768 fixup codes

2017-01-23 Thread Daniel Vetter
On Fri, Jan 20, 2017 at 09:46:17PM +0200, Ville Syrjälä wrote: > On Tue, Jan 17, 2017 at 05:43:29PM +0100, Takashi Iwai wrote: > > This is just a cleanup, no functional change. > > > > The fixup code for 1366x768 in drm_mode_create_from_cmdline_mode() is > > basically a copy of the existing code i

<    1   2   3   4   5   6   7   8   9   >