Re: [RFC PATCH] ext4: increase the protection of drop nlink and ext4 inode destroy

2017-01-12 Thread zhangyi (F)
on 2017/1/11 23:34, Theodore Ts'o wrote: > On Wed, Jan 11, 2017 at 05:07:29PM +0800, zhangyi (F) wrote: >> >> (1) The file we want to unlink have many hard links, but only one dcache >> entry in memory. >> (2) open this file, but it's inode->i_nlink read from disk was 1 (too low). >> (3) some one

Re: [PATCH 0/4 v3] Fixes and workarounds for dwc2 on HiKey board (rebased to synopsys-usb/next)

2017-01-12 Thread Felipe Balbi
Hi, John Youn writes: > On 1/11/2017 4:22 PM, John Stultz wrote: >> Just wanted to resend my patches for dwc2 controller on the >> HiKey board for consideration for the 4.11 merge window. >> >> This patchset is the same as v2, only rebased against >> John's synopsys-usb/next branch. >> >> This

Re: [PATCH] pinctrl: amd: avoid maybe-uninitalized warning

2017-01-12 Thread Shyam Sundar S K
Hi Linus, You have already added patch for the same "[PATCH] pinctrl: amd: fix compilation warning" and applied to one of your fixed branch. Do you feel this patch needs to be taken ? Thanks, Shyam On 1/12/2017 1:19 PM, Linus Walleij wrote: > On Wed, Jan 11, 2017 at 3:36 PM, Arnd Bergmann wro

Re: + mm-vmscan-add-mm_vmscan_inactive_list_is_low-tracepoint.patch added to -mm tree

2017-01-12 Thread Michal Hocko
On Thu 12-01-17 14:12:47, Minchan Kim wrote: > Hello, > > On Wed, Jan 11, 2017 at 04:52:39PM +0100, Michal Hocko wrote: > > On Wed 11-01-17 08:52:50, Minchan Kim wrote: > > [...] > > > > @@ -2055,8 +2055,8 @@ static bool inactive_list_is_low(struct > > > > if (!file && !total_swap_pages) >

Re: x86-64: Maintain 16-byte stack alignment

2017-01-12 Thread Ingo Molnar
* Herbert Xu wrote: > > But if we can't do this with automatic verification, then I'm not sure > > I want to do it at all. The asm is already more precarious than I'd > > like, and having a code path that is misaligned is asking for obscure > > bugs down the road. > > I understand the need for

Re: [PATCH v2 3/3] phy: rockchip-inno-usb2: Set EXTCON_USB when EXTCON_CHG_USB_SDP was set

2017-01-12 Thread Kishon Vijay Abraham I
Hi, On Thursday 12 January 2017 12:13 PM, Baolin Wang wrote: > On 3 January 2017 at 13:54, Baolin Wang wrote: >> Hi Kison and Heiko, >> >> On 21 December 2016 at 16:12, Baolin Wang wrote: >>> According to the documentation, we should set the EXTCON_USB when >>> one SDP charger connector was repo

Re: [PATCH] can: Fix kernel panic at security_sock_rcv_skb

2017-01-12 Thread Oliver Hartkopp
On 01/12/2017 07:33 AM, Liu ShuoX wrote: From: Zhang Yanmin The patch is for fix the below kernel panic: BUG: unable to handle kernel NULL pointer dereference at (null) IP: [] selinux_socket_sock_rcv_skb+0x65/0x2a0 Call Trace: [] security_sock_rcv_skb+0x4c/0x60 [] sk_filter+0x41/0x210 [

Re: [PATCH 0/4] ARM: dts: mt7623: Add initial Geek Force support

2017-01-12 Thread John Crispin
Hi Andreas, had a look last night why the ethernet dtsi was not added and it obviously was not added as we were waiting for the clk-mt2701 to be merged. the ethernet dtsi will have phandles pointing at the clk nodes which did not exist at the time. same is true for the PWM code. i sat down last n

Re: [GIT PULL 00/13] perf/core improvements and fixes

2017-01-12 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > Test results at the end of this message, as usual. > > * The following description will move to the end in the next pull requests * > > The first ones are container (docker) based builds of too

Re: [PATCH 2/2] drm/nouveau: Handle fbcon suspend/resume in seperate worker

2017-01-12 Thread Hans de Goede
Hi, Good catch (both the previous patch as well as this one). I've one small comment inline: On 12-01-17 03:25, Lyude wrote: Resuming from RPM can happen while already holding dev->mode_config.mutex. This means we can't actually handle fbcon in any RPM resume workers, since restoring fbcon requ

[tip:perf/core] perf machine: Add a kallsyms loading constructor

2017-01-12 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 7d132caaf9392853ad637c8e6e5cbeb99aa5 Gitweb: http://git.kernel.org/tip/7d132caaf9392853ad637c8e6e5cbeb99aa5 Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 5 Jan 2017 15:31:48 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jan 2017 16:48:00 -0300 per

[tip:perf/core] tools lib subcmd: Add missing linux/kernel.h include to subcmd.h

2017-01-12 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: d5f805c09620dadc1a7806fbd46189d183f6c395 Gitweb: http://git.kernel.org/tip/d5f805c09620dadc1a7806fbd46189d183f6c395 Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 5 Jan 2017 12:44:05 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jan 2017 16:48:00 -0300 too

[tip:perf/core] perf kallsyms: Introduce tool to look for extended symbol information on the running kernel

2017-01-12 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 355637717d575f14169954c3ed31536d45778f08 Gitweb: http://git.kernel.org/tip/355637717d575f14169954c3ed31536d45778f08 Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 5 Jan 2017 15:33:32 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jan 2017 16:48:01 -0300 per

Re: [PATCH] perf/x86: Fix 'may be used uninitialized' build warnings in core.c

2017-01-12 Thread Ingo Molnar
* Augusto Mecking Caringi wrote: > This patch fixes the following build warnings in core.c: > > linux/arch/x86/events/core.c: In function ‘init_hw_perf_events’: > linux/include/linux/printk.h:292:2: warning: ‘reg_fail’ may be used > uninitialized in this function [-Wmaybe-uninitialized] > print

[tip:perf/core] perf jvmti: Create libdir directory before installing libperf-jvmti.so

2017-01-12 Thread tip-bot for Laura Abbott
Commit-ID: cd7f355ac4067177e0a45e7331d11472bd7fd7ca Gitweb: http://git.kernel.org/tip/cd7f355ac4067177e0a45e7331d11472bd7fd7ca Author: Laura Abbott AuthorDate: Fri, 6 Jan 2017 14:18:08 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jan 2017 16:48:00 -0300 perf jvmti: Cre

Re: [PATCH] [net] net/mlx5e: fix another -Wmaybe-uninitialized warning

2017-01-12 Thread Or Gerlitz
On 1/11/2017 11:14 PM, Arnd Bergmann wrote: @@ -666,14 +666,15 @@ static int mlx5e_route_lookup_ipv4(struct mlx5e_priv *priv, struct rtable *rt; struct neighbour *n = NULL; int ttl; + int ret; + + if (!IS_ENABLED(CONFIG_INET)) + return -EOPNOTSUP

[tip:perf/core] perf trace: Allow specifying list of syscalls and events in -e/--expr/--event

2017-01-12 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 017037ff3d0b11842012878a546fe2df47822259 Gitweb: http://git.kernel.org/tip/017037ff3d0b11842012878a546fe2df47822259 Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 9 Jan 2017 17:26:26 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jan 2017 16:48:01 -0300 per

[tip:perf/core] perf tools: Add unit_number__scnprintf function

2017-01-12 Thread tip-bot for Jiri Olsa
Commit-ID: 9808143ba2e54818a3cf445d9b69b3f5f15451ee Gitweb: http://git.kernel.org/tip/9808143ba2e54818a3cf445d9b69b3f5f15451ee Author: Jiri Olsa AuthorDate: Mon, 9 Jan 2017 10:51:55 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jan 2017 16:48:01 -0300 perf tools: Add un

[tip:perf/core] perf evlist: Fix typo in perf_evlist__start_workload()

2017-01-12 Thread tip-bot for Soramichi Akiyama
Commit-ID: e978be9ea2990f1af60fe10eadd2312a6250e0b8 Gitweb: http://git.kernel.org/tip/e978be9ea2990f1af60fe10eadd2312a6250e0b8 Author: Soramichi Akiyama AuthorDate: Tue, 10 Jan 2017 10:41:00 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jan 2017 16:48:01 -0300 perf evli

[tip:perf/core] perf record: Add struct switch_output

2017-01-12 Thread tip-bot for Jiri Olsa
Commit-ID: 1b43b70484a9617de5fe2c12e64bea006010ac1c Gitweb: http://git.kernel.org/tip/1b43b70484a9617de5fe2c12e64bea006010ac1c Author: Jiri Olsa AuthorDate: Mon, 9 Jan 2017 10:51:56 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jan 2017 16:48:01 -0300 perf record: Add s

Re: [PATCH] power: supply: axp20x_usb_power: fix 64-bit build warning

2017-01-12 Thread Arnd Bergmann
On Thursday, January 12, 2017 3:58:24 AM CET Sebastian Reichel wrote: > Hi Arnd, > > On Wed, Jan 11, 2017 at 03:51:55PM +0100, Arnd Bergmann wrote: > > Casting a pointer to 'int' is not always valid: > > > > drivers/power/supply/axp20x_usb_power.c: In function > > 'axp20x_usb_power_probe': > > d

[tip:perf/core] perf record: Change switch-output option to take optional argument

2017-01-12 Thread tip-bot for Jiri Olsa
Commit-ID: cb4e1ebb6a398ff5b0067034b0d16566af4d78e8 Gitweb: http://git.kernel.org/tip/cb4e1ebb6a398ff5b0067034b0d16566af4d78e8 Author: Jiri Olsa AuthorDate: Mon, 9 Jan 2017 10:51:57 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jan 2017 16:48:01 -0300 perf record: Chang

[tip:perf/core] perf record: Add switch-output size warning

2017-01-12 Thread tip-bot for Jiri Olsa
Commit-ID: 0c5824498e8bd5b7d30dc03448cd89efaee4bead Gitweb: http://git.kernel.org/tip/0c5824498e8bd5b7d30dc03448cd89efaee4bead Author: Jiri Olsa AuthorDate: Mon, 9 Jan 2017 10:51:59 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jan 2017 16:48:02 -0300 perf record: Add s

[tip:perf/core] perf record: Add switch-output size option argument

2017-01-12 Thread tip-bot for Jiri Olsa
Commit-ID: dc0c6127c231d4d264570497a916fa19740c915b Gitweb: http://git.kernel.org/tip/dc0c6127c231d4d264570497a916fa19740c915b Author: Jiri Olsa AuthorDate: Mon, 9 Jan 2017 10:51:58 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jan 2017 16:48:02 -0300 perf record: Add s

[tip:perf/core] perf record: Add switch-output time option argument

2017-01-12 Thread tip-bot for Jiri Olsa
Commit-ID: bfacbe3bf2443c805aec4c04ecb558d03d0d3ebc Gitweb: http://git.kernel.org/tip/bfacbe3bf2443c805aec4c04ecb558d03d0d3ebc Author: Jiri Olsa AuthorDate: Mon, 9 Jan 2017 10:52:00 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jan 2017 16:48:02 -0300 perf record: Add s

[tip:perf/core] tools: Sync x86's vmx.h with the kernel

2017-01-12 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 675f52b23743f396c585fc9d135435be37f320d8 Gitweb: http://git.kernel.org/tip/675f52b23743f396c585fc9d135435be37f320d8 Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 10 Jan 2017 16:41:39 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jan 2017 16:48:02 -0300 to

Re: [PATCH] wext: handle NULL exta data in iwe_stream_add_point better

2017-01-12 Thread Johannes Berg
On Wed, 2017-01-11 at 21:39 +0100, Arnd Bergmann wrote: > On Wednesday, January 11, 2017 4:06:17 PM CET Johannes Berg wrote: > > > > Applied. Also fixed the typo in the subject :) > > Thanks! Unfortunately I now got another warning for the same > function, and though I would have expected the pat

Re: [PATCH v2 3/3] phy: rockchip-inno-usb2: Set EXTCON_USB when EXTCON_CHG_USB_SDP was set

2017-01-12 Thread Baolin Wang
Hi, On 12 January 2017 at 16:18, Kishon Vijay Abraham I wrote: > Hi, > > On Thursday 12 January 2017 12:13 PM, Baolin Wang wrote: >> On 3 January 2017 at 13:54, Baolin Wang wrote: >>> Hi Kison and Heiko, >>> >>> On 21 December 2016 at 16:12, Baolin Wang wrote: According to the documentatio

Re: [PATCH v5 4/6] usb: xhci: use bus->sysdev for DMA configuration

2017-01-12 Thread Roger Quadros
Mathias, On 11/01/17 17:08, Alan Stern wrote: > On Wed, 11 Jan 2017, Mathias Nyman wrote: > >> On 17.11.2016 13:43, Sriram Dash wrote: >>> From: Arnd Bergmann >>> >>> For xhci-hcd platform device, all the DMA parameters are not >>> configured properly, notably dma ops for dwc3 devices. So, set >

Re: [PATCH v2 1/1] x86/kernel: Update bug_at() head message

2017-01-12 Thread Ingo Molnar
* Andy Shevchenko wrote: > First of all, %*ph specifier allows to dump data in hex format using the > pointer to a buffer. This is suitable to use here. > > Besides that Thomas suggested to move it to critical level and replace > __FILE__ > by explicit mention of "jumplabel". > > Signed-off-b

Re: [PATCH 4.9 003/116] rtlwifi: Fix enter/exit power_save

2017-01-12 Thread Dmitry Osipenko
On 11.01.2017 04:53, Larry Finger wrote: > On 01/10/2017 11:40 AM, Dmitry Osipenko wrote: >> Hello, this patch causes a kernel panic with the rtl8192cu driver. >> > > The fix is being merged into mainline. The reference is > http://marc.info/?l=linux-wireless&m=148234081512703&w=2. That indeed

Re: [PATCH] pinctrl: core: Fix regression caused by delayed work for hogs

2017-01-12 Thread Geert Uytterhoeven
Hi Tony, On Wed, Jan 11, 2017 at 11:13 PM, Tony Lindgren wrote: > Commit df61b366af26 ("pinctrl: core: Use delayed work for hogs") caused a > regression at least with sh-pfc that is also a GPIO controller as > noted by Geert Uytterhoeven . > > As the original pinctrl_register() has issues calling

Re: [PATCH 4.9 003/116] rtlwifi: Fix enter/exit power_save

2017-01-12 Thread Dmitry Osipenko
On 12.01.2017 10:32, Greg Kroah-Hartman wrote: > On Tue, Jan 10, 2017 at 10:51:56PM +0100, Willy Tarreau wrote: >> On Tue, Jan 10, 2017 at 03:23:27PM -0600, l...@pengaru.com wrote: >>> On Tue, Jan 10, 2017 at 09:40:24PM +0100, Greg Kroah-Hartman wrote: On Tue, Jan 10, 2017 at 08:40:28PM +0300,

RE: [PATCH] clk: qcom: gdsc: Fix handling of hw control enable/disable

2017-01-12 Thread Sricharan
Hi Stan, >-Original Message- >From: Stanimir Varbanov [mailto:stanimir.varba...@linaro.org] >Sent: Wednesday, January 11, 2017 2:25 PM >To: Sricharan ; 'Stanimir Varbanov' >; 'Rajendra Nayak' >; sb...@codeaurora.org; mturque...@baylibre.com >Cc: linux-...@vger.kernel.org; linux-arm-...@vg

Re: [PATCH v3] staging: greybus: checkpatch: Change parameter type unsigned to unsigned int

2017-01-12 Thread Johan Hovold
On Thu, Jan 12, 2017 at 10:05:10AM +0300, Dan Carpenter wrote: > On Wed, Jan 11, 2017 at 04:00:35PM +0100, Roman Sommer wrote: > > Note that this patch does not fix all checkpatch warnings for the > > affected files. > > > > A lot of ways that display git commits put the changelog and the summary

Re: wl1251 & mac address & calibration data

2017-01-12 Thread Pavel Machek
Hi! > >> But overwriting that one file is not possible as it next update of > >> linux-firmware package will overwrite it back. It break any normal usage > >> of package management. > >> > >> Also it is ridiculously broken by design if some "boot" files needs to > >> be overwritten to initiali

Re: + mm-vmscan-add-mm_vmscan_inactive_list_is_low-tracepoint.patch added to -mm tree

2017-01-12 Thread Minchan Kim
On Thu, Jan 12, 2017 at 09:15:54AM +0100, Michal Hocko wrote: > On Thu 12-01-17 14:12:47, Minchan Kim wrote: > > Hello, > > > > On Wed, Jan 11, 2017 at 04:52:39PM +0100, Michal Hocko wrote: > > > On Wed 11-01-17 08:52:50, Minchan Kim wrote: > > > [...] > > > > > @@ -2055,8 +2055,8 @@ static bool i

Re: [PATCH RESEND] Staging: greybus: style fix, permissions as octal

2017-01-12 Thread Johan Hovold
On Thu, Jan 12, 2017 at 05:59:40PM +1300, Derek Robson wrote: > Changed permissions to be in octal style. > Found by checkpatch. > > Signed-off-by: Derek Robson > --- Acked-by: Johan Hovold Next time, please include a module prefix in your Subject (i.e. "staging: greybus: camera: ...") unless

Re: [PATCH 1/5] perf, tools: Add probing for xed

2017-01-12 Thread Jiri Olsa
On Wed, Jan 11, 2017 at 02:17:56PM -0800, Andi Kleen wrote: > > > diff --git a/tools/build/Makefile.feature b/tools/build/Makefile.feature > > > index e3fb5ecbdcb6..971a9ef87ca6 100644 > > > --- a/tools/build/Makefile.feature > > > +++ b/tools/build/Makefile.feature > > > @@ -63,7 +63,7 @@ FEATURE_

[v2 0/2] test capability for remote task

2017-01-12 Thread Jike Song
Sometimes vfio iommu type1 needs to pin memory for a remote task other than current, thereby needs to test the CAP_IPC_LOCK capability for that task. The proper routine for this purpose is has_capability(), but it is not yet exported for modules. None of currently exported capability- testing symb

[v2 2/2] vfio iommu type1: fix the testing of capability for remote task

2017-01-12 Thread Jike Song
Before the mdev enhancement type1 iommu used capable() to test the capability of current task; in the course of mdev development a new requirement, testing for another task other than current, was raised. ns_capable() was used for this purpose, however it still tests current, the only difference i

[PATCH 1/1] usb: xhci: set RWE only for remote wakeup capable devices

2017-01-12 Thread Lu Baolu
Xhci spec requires in section 4.23.5.1.1.1 that the RWE bit of USB2 PORTPMSC register should only set for remote wakeup capble devices. This was suggested by Mathias in the following discussion thread. http://marc.info/?l=linux-usb&m=148154757829677&w=2 Suggested-by: Mathias Nyman Signed-off-by:

[v2 1/2] capability: export has_capability

2017-01-12 Thread Jike Song
has_capability() is sometimes needed by modules to test capability for specified task other than current, so export it. Cc: Alex Williamson Cc: Kirti Wankhede Acked-by: Serge Hallyn Signed-off-by: Jike Song --- kernel/capability.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/cap

[PATCH v5 2/4] drm/dp: add helpers for capture of frame CRCs

2017-01-12 Thread Tomeu Vizoso
Adds helpers for starting and stopping capture of frame CRCs through the DPCD. When capture is on, a worker waits for vblanks and retrieves the frame CRC to put it in the queue on the CRTC that is using the eDP connector, so it's passed to userspace. v2: Reuse drm_crtc_wait_one_vblank Update l

[PATCH v5 1/4] drm/bridge: analogix_dp: set connector to drm_dp_aux

2017-01-12 Thread Tomeu Vizoso
Set the backpointer so that the DP helpers are able to access the connector that the drm_dp_aux is associated with. Signed-off-by: Tomeu Vizoso --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/

[PATCH v5 4/4] drm/rockchip: Implement CRC debugfs API

2017-01-12 Thread Tomeu Vizoso
Implement the .set_crc_source() callback and call the DP helpers accordingly to start and stop CRC capture. This is only done if this CRTC is currently using the eDP connector. v3: Remove superfluous check on rockchip_crtc_state->output_type Signed-off-by: Tomeu Vizoso --- drivers/gpu/drm/roc

[PATCH v5 3/4] drm/bridge: analogix_dp: add helpers for capture of frame CRCs

2017-01-12 Thread Tomeu Vizoso
Add two simple functions that just take the drm_dp_aux from our struct and calls the corresponding DP helpers with it. Signed-off-by: Tomeu Vizoso --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 16 include/drm/bridge/analogix_dp.h | 3 +++ 2 files c

[PATCH v5 0/4] drm/dp: Implement CRC debugfs API

2017-01-12 Thread Tomeu Vizoso
Hi, this series builds up on the API for exposing captured CRCs through debugfs. It adds new DP helpers for starting and stopping CRC capture and gets the Rockchip driver to use it. Also had to add a connector backpointer to the drm_dp_aux struct so we could wait for the right vblank and store t

Re: [PATCH v4 3/8] PCI: Don't block runtime PM for Thunderbolt host hotplug ports

2017-01-12 Thread Mika Westerberg
On Thu, Jan 12, 2017 at 02:47:07AM +0100, Lukas Wunner wrote: > On Wed, Jan 11, 2017 at 12:02:10PM +0200, Mika Westerberg wrote: > > On Sun, Jan 08, 2017 at 09:41:45AM +0100, Lukas Wunner wrote: > > > Hotplug ports generally block their parents from suspending to D3hot as > > > otherwise their inte

Re: [PATCH resend] swiotlb: ensure that page-sized mappings are page-aligned

2017-01-12 Thread Sagi Grimberg
Looks good, Reviewed-by: Sagi Grimberg

[PATCH] powerpc/mm: fix a hardcode on memory boundary checking

2017-01-12 Thread Rui Teng
The offset of hugepage block will not be 16G, if the expected page is more than one. Calculate the totol size instead of the hardcode value. Signed-off-by: Rui Teng --- arch/powerpc/mm/hash_utils_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/mm/hash_utils_

Re: + mm-vmscan-add-mm_vmscan_inactive_list_is_low-tracepoint.patch added to -mm tree

2017-01-12 Thread Michal Hocko
On Thu 12-01-17 17:48:13, Minchan Kim wrote: > On Thu, Jan 12, 2017 at 09:15:54AM +0100, Michal Hocko wrote: > > On Thu 12-01-17 14:12:47, Minchan Kim wrote: > > > Hello, > > > > > > On Wed, Jan 11, 2017 at 04:52:39PM +0100, Michal Hocko wrote: > > > > On Wed 11-01-17 08:52:50, Minchan Kim wrote:

Re: [PATCH] wext: handle NULL exta data in iwe_stream_add_point better

2017-01-12 Thread Johannes Berg
> Come to think of it, I'm thinking I should drop this patch and the > driver should just use iwe_stream_add_event() instead? It'll be > somewhat tricky to get the length correct though. No, turns out that's basically impossible with all the compat etc. stuff here. johannes

Re: [PATCH] wext: handle NULL exta data in iwe_stream_add_point better

2017-01-12 Thread Johannes Berg
On Wed, 2017-01-11 at 21:39 +0100, Arnd Bergmann wrote: > On Wednesday, January 11, 2017 4:06:17 PM CET Johannes Berg wrote: > > > > Applied. Also fixed the typo in the subject :) > > Thanks! Unfortunately I now got another warning for the same > function, and though I would have expected the pat

[PATCH 3/7] staging:r8188eu: remove unused EOR macro

2017-01-12 Thread Ivan Safonov
EOR macro is not unused, remove it. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_recv.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_recv.h b/drivers/staging/rtl8188eu/include/rtw_recv.h index 2a92162..e3ab511 100644 --- a/d

[PATCH 5/7] staging:r8188eu: remove unused struct wifidirect_info and all corresponding code

2017-01-12 Thread Ivan Safonov
wifidirect_info structure is unused. Big amount of another definitions used only for wifidirect_info definition. Remove all. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_mlme.h | 177 --- drivers/staging/rtl8188eu/include/wifi.h | 84

Re: [PATCH RESEND] splice: introduce FMODE_SPLICE_READ and FMODE_SPLICE_WRITE

2017-01-12 Thread Al Viro
On Wed, Jan 11, 2017 at 07:20:13AM -0500, Jeff Layton wrote: > On Wed, 2017-01-11 at 10:51 +0100, Johannes Thumshirn wrote: > > Introduce FMODE_SPLICE_READ and FMODE_SPLICE_WRITE. These modes check > > whether it is legal to read or write a file using splice. Both get > > automatically set on regul

[PATCH 6/7] staging:r8188eu: remove unnecessary trace output in rtw_recv_indicatepkt()

2017-01-12 Thread Ivan Safonov
Trace output for each received packet in rtw_recv_indicatepkt() is redudant. Remove it. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/os_dep/recv_linux.c | 15 --- 1 file changed, 15 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/recv_linux.c b/drivers/stagi

Re: [PATCH 2/3] perf/x86/amd/uncore: Dynamically allocate uncore counters

2017-01-12 Thread Peter Zijlstra
On Wed, Jan 11, 2017 at 10:02:17AM -0600, Janakarajan Natarajan wrote: > This patch updates the AMD uncore driver to support AMD Family17h > processors. In Family17h, there are two extra last level cache counters. > The counters are, therefore, allocated dynamically based on the family. > > The cp

Re: [PATCH 03/18] mtd-cfi_cmdset_0001: Add some spaces for better code readability

2017-01-12 Thread Dan Carpenter
On Wed, Jan 11, 2017 at 09:38:18PM +0100, SF Markus Elfring wrote: > - for (i=0; icfiq->NumEraseRegions; i++) > - for (j=0; jnumchips; j++) > - > kfree(mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap); > + for (i =

[PATCH 7/7] staging:r8188eu: remove unused rx_head member of struct recv_frame

2017-01-12 Thread Ivan Safonov
Value of rx_head member of struct recv_frame does not used. Remove it. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_recv.h | 1 - drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/r

[PATCH 4/7] staging:r8188eu: remove unused get_rxmem()

2017-01-12 Thread Ivan Safonov
get_rxmem() is not unused, remove it. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_recv.h | 8 1 file changed, 8 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_recv.h b/drivers/staging/rtl8188eu/include/rtw_recv.h index e3ab511..74e3a1c 100644

[PATCH 1/7] staging:r8188eu: remove unused (GET|PUT)U32 macros

2017-01-12 Thread Ivan Safonov
(GET|PUT)U32 macros are unused, remove it. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_security.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_security.h b/drivers/staging/rtl8188eu/include/rtw_security.h index 2663e60

Re: [Intel-gfx] GPU hang with kernel 4.10rc3

2017-01-12 Thread Chris Wilson
On Thu, Jan 12, 2017 at 07:03:25AM +0100, Juergen Gross wrote: > On 11/01/17 18:08, Chris Wilson wrote: > > On Wed, Jan 11, 2017 at 05:33:34PM +0100, Juergen Gross wrote: > >> With kernel 4.10rc3 running as Xen dm0 I get at each boot: > >> > >> [ 49.213697] [drm] GPU HANG: ecode 7:0:0x3d1d3d3d, i

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

2017-01-12 Thread Chris Packham
On 12/01/17 09:56, Sebastian Hesselbarth wrote: > On 01/11/2017 03:44 PM, Linus Walleij wrote: >> On Fri, Jan 6, 2017 at 5:15 AM, Chris Packham >> wrote: >> >>> From: Kalyan Kinthada >>> >>> This pinctrl driver supports the 98DX3236, 98DX3336 and 98DX4251 SoCs >>> from Marvell. >>> >>> Signed-off

Re: [PATCH v2 3/6] pinctrl: Add a possibility to configure pins from a gpiolib based drivers

2017-01-12 Thread Mika Westerberg
On Wed, Jan 11, 2017 at 03:33:04PM +0200, Mika Westerberg wrote: > > But let's first pause and discuss this, because I have some stuff on my > > mind here. > > > > First this kernel-internal ABI from : > > > > struct gpio_chip { > > (...) > > int (*set_debounce)(struct

[PATCH 2/7] staging:r8188eu: remove unused WPA_(GET|PUT)_(BE|LE)_xx macro

2017-01-12 Thread Ivan Safonov
WPA_(GET|PUT)_(BE|LE)_xx macros are unused, remove it. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_security.h | 29 1 file changed, 29 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_security.h b/drivers/staging/rtl8188eu/inclu

Re: [PATCH] afs: use random UUID

2017-01-12 Thread kbuild test robot
Hi Arnd, [auto build test ERROR on linus/master] [also build test ERROR on v4.10-rc3 next-20170111] [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/Arnd-Bergmann/afs-use-random-UUID/20170112

Re: [PATCH v2 00/11] add support for VBUS max current and min voltage limits AXP20X and AXP22X PMICs

2017-01-12 Thread Maxime Ripard
On Fri, Dec 09, 2016 at 12:04:08PM +0100, Quentin Schulz wrote: > The X-Powers AXP209 and AXP20X PMICs are able to set a limit for the > VBUS power supply for both max current and min voltage supplied. This > series of patch adds the possibility to set these limits from sysfs. > > Also, the AXP223

Re: Problem on SCTP

2017-01-12 Thread Sun Paul
HI Let me clear the understanding. below is the flow. 1. Client sends to Linux Router: 192.168.206.83 -> 192.168.206.56, 2. Linux router sends to SERVER where the source IP is unchanged: 192.168.206.83 -> 192.168.206.66 My question here is why SERVER cannot response this INIT chunk? On Wed, Jan

Re: [PATCH 18/18] mtd-cfi_cmdset_0020: Add some spaces for better code readability

2017-01-12 Thread Dan Carpenter
On Wed, Jan 11, 2017 at 09:55:20PM +0100, SF Markus Elfring wrote: > - timeo = jiffies + (HZ*2); > + timeo = jiffies + HZ * 2; You've done this a couple times already, but these parenthesis are there to make the code more readable don't delete them. regards, dan carpenter

Re: [PATCH 1/4] staging: android/ion: Fix line over 80 characters

2017-01-12 Thread Dan Carpenter
On Thu, Jan 12, 2017 at 09:54:16AM +0200, Bogdan Purcareata wrote: > Signed-off-by: Bogdan Purcareata All staging patches need a changelog, no matter how trivial. > --- > drivers/staging/android/ion/ion-ioctl.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/

Re: kvm: deadlock in kvm_vgic_map_resources

2017-01-12 Thread Marc Zyngier
Hi Dmitry, On 11/01/17 19:01, Dmitry Vyukov wrote: > Hello, > > While running syzkaller fuzzer I've got the following deadlock. > On commit 9c763584b7c8911106bb77af7e648bef09af9d80. > > > = > [ INFO: possible recursive locking detected ] > 4.9.0-rc6-x

[PATCH v2] backlight: gpio-backlight: Correct initial power state handling

2017-01-12 Thread Peter Ujfalusi
The default-on property - or the def_value via legacy pdata) should be handled as: if it is 1, the backlight must be enabled (kept enabled) if it is 0, the backlight must be disabled (kept disabled) This only works for the case when default-on is set. If it is not set then the brightness of the ba

Duplicate inode number when mount --bind some directories to same mountpoint. (from Fedora18 to 4.10-rc3)

2017-01-12 Thread Nakajima Akira
Bug: Duplicate inode number when mount --bind some directories to same mountpoint. (from Fedora18 to 4.10-rc3) Fedora17 and earlier works correctly. And, Above kernel ver 3.6 (Fedora18 including 4.10-rc3) creates many structs of mount than ver 3.3 (Fedora17). Is this a correct specificatio

Re: mm, vmscan: commit makes PAE kernel crash nightly (bisected)

2017-01-12 Thread Michal Hocko
On Wed 11-01-17 16:52:32, Trevor Cordes wrote: [...] > I'm not sure how I can tell if my bug is because of memcgs so here is > a full first oom example (attached). 4.7 kernel doesn't contain 71c799f4982d ("mm: add per-zone lru list stat") so the OOM report will not tell us whether the Normal zone

[PATCH] fix race caused by hyperthreads when online an offline cpu

2017-01-12 Thread Zhou Chengming
After online an offline cpu, cpu_hw_events.excl_thread_id will always be set to 1 in intel_pmu_cpu_starting() even when its sibling's excl_thread_id is also 1. Then the two siblings will use the same state in their shared hw_hw_events.excl_cntrs, it will cause race problem. The race senario is lik

Re: Robust futexes: lost wakeups and design flaws in the glibc/kernel synchronization scheme

2017-01-12 Thread Torvald Riegel
On Sat, 2016-12-24 at 17:01 +0100, Torvald Riegel wrote: > TLDR: > (1) The Linux kernel fails to wake futex waiters when a userspace thread > that releases a mutex is killed between modifying the futex word and the > subsequent FUTEX_WAKE syscall. > (2) POSIX makes certain requirements regarding wh

Re: [PATCH] i2c: piix4: Avoid race conditions with IMC

2017-01-12 Thread Jean Delvare
On Wed, 11 Jan 2017 03:49:21 +0200, Andy Shevchenko wrote: > On Tue, Jan 10, 2017 at 2:16 PM, Ricardo Ribalda Delgado > > --- a/drivers/i2c/busses/i2c-piix4.c > > +++ b/drivers/i2c/busses/i2c-piix4.c > > @@ -585,9 +585,28 @@ static s32 piix4_access_sb800(struct i2c_adapter > > *adap, u16 addr, > >

Re: [PATCH v5 1/5] powernv:idle: Add IDLE_STATE_ENTER_SEQ_NORET macro

2017-01-12 Thread Balbir Singh
On Tue, Jan 10, 2017 at 02:37:00PM +0530, Gautham R. Shenoy wrote: > From: "Gautham R. Shenoy" > > Currently all the low-power idle states are expected to wake up > at reset vector 0x100. Which is why the macro IDLE_STATE_ENTER_SEQ > that puts the CPU to an idle state and never returns. > > On I

[PATCH] PCI: dwc: Add COMPILE_TEST to all designware based drivers

2017-01-12 Thread Kishon Vijay Abraham I
Add COMPILE_TEST to all designware based drivers so that it is possible to perform compile test even when a particular architecture specific config symbol is not set. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/dwc/Kconfig | 16 1 file changed, 8 insertions(+), 8 del

[PATCH 1/4] efi/x86: make efi_memmap_reserve only insert into boot mem areas

2017-01-12 Thread Dave Young
There are memory ranges like below when I testing early efi_mem_reserve: efi: mem62: [Reserved | | | | | | | | | | | | ] range=[0x-0x] (0MB) efi: mem63: [Reserved | | | | | | | | | | | | ] range=[0x-0

[PATCH 2/4] efi/x86: move efi bgrt init code to early init code

2017-01-12 Thread Dave Young
Before invoking the arch specific handler, efi_mem_reserve() reserves the given memory region through memblock. efi_bgrt_init will call efi_mem_reserve after mm_init(), at that time memblock is dead and it should not be used any more. efi bgrt code depend on acpi intialization to get the bgrt acp

Re: [PATCH] wext: handle NULL exta data in iwe_stream_add_point better

2017-01-12 Thread Arnd Bergmann
On Thursday, January 12, 2017 10:16:00 AM CET Johannes Berg wrote: > And I realized only now that this was a different place ... Right, it was a few hundred randconfigs later after I had confirmed that the first patch fixed all the configurations that were broken at first. > I've just added the c

[PATCH 4/4] efi/x86: add debug code to print cooked memmap

2017-01-12 Thread Dave Young
It is not obvious if the reserved boot area are added correctly, add a efi_print_memmap to print the new memmap. Signed-off-by: Dave Young --- arch/x86/platform/efi/efi.c |5 + 1 file changed, 5 insertions(+) --- linux-x86.orig/arch/x86/platform/efi/efi.c +++ linux-x86/arch/x86/platform

[PATCH 3/4] efi/x86: move efi_print_memmap to drivers/firmware/efi/memmap.c

2017-01-12 Thread Dave Young
Signed-off-by: Dave Young --- arch/x86/platform/efi/efi.c | 16 drivers/firmware/efi/memmap.c | 16 2 files changed, 16 insertions(+), 16 deletions(-) --- linux-x86.orig/arch/x86/platform/efi/efi.c +++ linux-x86/arch/x86/platform/efi/efi.c @@ -210,22 +210,

[PATCH 0/4] efi/x86: move efi bgrt init code to early init

2017-01-12 Thread Dave Young
Hi, Here is a patchset to move efi_bgrt_init to early code so that we can still use memblock api. Appreciated for comments and review. Diffstat: arch/x86/kernel/acpi/boot.c | 12 +++ arch/x86/platform/efi/efi-bgrt.c | 42 +-- arch/x86/platf

Re: [PATCH 56/62] watchdog: tangox_wdt: Convert to use device managed functions

2017-01-12 Thread Marc Gonzalez
On 11/01/2017 18:51, Guenter Roeck wrote: > However, some other unrelated undefined behavior does not mean that this > specific behavior is undefined. True :-) Let me just give two additional examples of UB that /have/ bitten Linux kernel devs. int i; for (i = 1; i > 0; ++i) /* do_somet

RE: Problem on SCTP

2017-01-12 Thread David Laight
From: Sun Paul [mailto:paul...@gmail.com] > Sent: 12 January 2017 09:31 > Let me clear the understanding. below is the flow. > > 1. Client sends to Linux Router: 192.168.206.83 -> 192.168.206.56, > 2. Linux router sends to SERVER where the source IP is unchanged: > 192.168.206.83 -> 192.168.206.66

Re: [PATCH v6 23/25] usb: chipidea: Pullup D+ in device mode via phy APIs

2017-01-12 Thread Peter Chen
On Wed, Jan 11, 2017 at 04:19:53PM -0800, Stephen Boyd wrote: > Quoting Peter Chen (2017-01-02 22:53:19) > > On Wed, Dec 28, 2016 at 02:57:09PM -0800, Stephen Boyd wrote: > > > If the phy supports it, call phy_set_mode() to pull up D+ when > > > required by setting the mode to PHY_MODE_USB_DEVICE.

Re: [PATCH v6 11/25] usb: chipidea: vbus event may exist before starting gadget

2017-01-12 Thread Peter Chen
On Wed, Jan 11, 2017 at 04:32:34PM -0800, Stephen Boyd wrote: > Quoting Peter Chen (2017-01-03 00:00:31) > > On Wed, Dec 28, 2016 at 02:56:57PM -0800, Stephen Boyd wrote: > > > From: Peter Chen > > > > > > At some situations, the vbus may already be there before starting > > > gadget. So we need

Re: [PATCH v5 2/5] powernv:stop: Uniformly rename power9 to arch300

2017-01-12 Thread Balbir Singh
On Tue, Jan 10, 2017 at 02:37:01PM +0530, Gautham R. Shenoy wrote: > From: "Gautham R. Shenoy" > > Balbir pointed out that in idle_book3s.S and powernv/idle.c some > functions and variables had power9 in their names while some others > had arch300. > I would prefer power9 to arch300 Balbir Sing

Re: kvm: deadlock in kvm_vgic_map_resources

2017-01-12 Thread Andre Przywara
Hi, On 12/01/17 09:32, Marc Zyngier wrote: > Hi Dmitry, > > On 11/01/17 19:01, Dmitry Vyukov wrote: >> Hello, >> >> While running syzkaller fuzzer I've got the following deadlock. >> On commit 9c763584b7c8911106bb77af7e648bef09af9d80. >> >> >> = >> [ IN

Re: [PATCH 1/4] staging: android/ion: Fix line over 80 characters

2017-01-12 Thread Greg KH
On Thu, Jan 12, 2017 at 12:32:26PM +0300, Dan Carpenter wrote: > On Thu, Jan 12, 2017 at 09:54:16AM +0200, Bogdan Purcareata wrote: > > Signed-off-by: Bogdan Purcareata > > All staging patches need a changelog, no matter how trivial. s/staging//g :)

Re: [PATCH linux v2 0/6] drivers: hwmon: Add On-Chip Controller driver

2017-01-12 Thread Wolfram Sang
> This patchset adds a hwmon driver to support the OCC (On-Chip Controller) > on the IBM POWER8 and POWER9 processors, from a BMC (Baseboard Management > Controller). The OCC is an embedded processor that provides real time > power and thermal monitoring. Please don't cc the I2C list for I2C clie

Re: [PATCH 2/4] efi/x86: move efi bgrt init code to early init code

2017-01-12 Thread Dave Young
[snip] > --- linux-x86.orig/drivers/acpi/bgrt.c > +++ linux-x86/drivers/acpi/bgrt.c [snip] > > @@ -84,9 +85,17 @@ static int __init bgrt_init(void) > { > int ret; > > - if (!bgrt_image) > + if (!bgrt_tab.image_address) > return -ENODEV; > > + bgrt_image = mem

Re: [PATCH 56/62] watchdog: tangox_wdt: Convert to use device managed functions

2017-01-12 Thread Uwe Kleine-König
On Thu, Jan 12, 2017 at 10:44:07AM +0100, Marc Gonzalez wrote: > On 11/01/2017 18:51, Guenter Roeck wrote: > > > However, some other unrelated undefined behavior does not mean that this > > specific behavior is undefined. > > True :-) > > Let me just give two additional examples of UB that /have

Re: [PATCH v3 2/5] arm64: Work around Falkor erratum 1003

2017-01-12 Thread Catalin Marinas
On Wed, Jan 11, 2017 at 06:37:39PM +, Mark Rutland wrote: > On Wed, Jan 11, 2017 at 12:35:55PM -0600, Timur Tabi wrote: > > On 01/11/2017 12:33 PM, Mark Rutland wrote: > > >It'll need to affect all lines since the kconfig column needs to expand > > >by at least one character to fit QCOM_FALKOR_

Re: [patch] mm, memcg: do not retry precharge charges

2017-01-12 Thread Michal Hocko
On Wed 11-01-17 20:32:12, David Rientjes wrote: > When memory.move_charge_at_immigrate is enabled and precharges are > depleted during move, mem_cgroup_move_charge_pte_range() will attempt to > increase the size of the precharge. > > This livelocks if reclaim fails and if an oom killed process att

Re: [PATCH] i2c: piix4: Avoid race conditions with IMC

2017-01-12 Thread Wolfram Sang
> > > + unsigned short piix4_smba = adapdata->smba; > > > u8 smba_en_lo; > > > u8 port; > > > int retval; > > > + int timeout = 0; > > > + int smbslvcnt; > > > > Keep them just after your another added variable. > > FWIW, I don't think this makes sense a

<    1   2   3   4   5   6   7   8   9   10   >