[PATCH] ipmi: Stop timers before cleaning up the module

2017-11-14 Thread Masamitsu Yamazaki
System may crash after unloading ipmi_si.ko module because a timer may remain and fire after the module cleaned up resources. cleanup_one_si() contains the following processing. /* * Make sure that interrupts, the timer and the thread are * stopped and will not run again

[PATCH] refcount_t: documentation for memory ordering differences

2017-11-14 Thread Elena Reshetova
Some functions from refcount_t API provide different memory ordering guarantees that their atomic counterparts. This adds a document outlining these differences. Signed-off-by: Elena Reshetova --- Documentation/refcount-vs-atomic.txt | 124 +++ 1 file changed, 124

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

2017-11-14 Thread Eric Long
Hi, Thanks for Guenter's review and detail comments. Please help to apply this patch if there is no any other comments. Best regards, Eric Long On Fri, Nov 10, 2017 at 01:00:32PM -0800, Guenter Roeck wrote: > On Mon, Nov 06, 2017 at 10:46:28AM +0800, Eric Long wrote: > > This patch adds the watc

[PATCH v2] refcount_t vs. atomic_t ordering differences

2017-11-14 Thread Elena Reshetova
Changes in v2: - typos and english are fixed based on Randy Dunlap's proof reading - structure of document improved: * definitions now in the beginning * confusing examples removed * less redundancy overall and more up-to-the-point text - definitions try to follow LKMM define

Re: [PATCH] x86: use cpufreq_quick_get() for /proc/cpuinfo "cpu MHz" again

2017-11-14 Thread Greg Kroah-Hartman
On Wed, Nov 15, 2017 at 08:43:58AM +0100, Ingo Molnar wrote: > > * Rafael J. Wysocki wrote: > > > On Wednesday, November 15, 2017 1:06:12 AM CET Linus Torvalds wrote: > > > On Tue, Nov 14, 2017 at 4:04 PM, Linus Torvalds > > > wrote: > > > > On Tue, Nov 14, 2017 at 3:53 PM, Thomas Gleixner >

Re: [PATCH 02/10] dmaengine: virt-dma: Support for race free transfer termination

2017-11-14 Thread Linus Walleij
On Tue, Nov 14, 2017 at 3:32 PM, Peter Ujfalusi wrote: > Even with the introduced vchan_synchronize() we can face race when > terminating a cyclic transfer. > > If the terminate_all is called after the interrupt handler called > vchan_cyclic_callback(), but before the vchan_complete tasklet is ca

Re: [GIT PULL] x86 updates for v4.15

2017-11-14 Thread Ingo Molnar
* Linus Torvalds wrote: > On Tue, Nov 14, 2017 at 1:48 AM, Borislav Petkov wrote: > > > > Just did 2 suspend cycles (once to RAM and once to disk) on my x230 > > with your tree from right now and it looks ok so far. So it could be > > machine- and config-specific... > > .. and it's not repeata

Re: [PATCH 07/10] dmaengine: amba-pl08x: Use vchan_terminate_vdesc() instead of desc_free

2017-11-14 Thread Linus Walleij
On Tue, Nov 14, 2017 at 3:32 PM, Peter Ujfalusi wrote: > To avoid race with vchan_complete, use the race free way to terminate > running transfer. > > Implement the device_synchronize callback to make sure that the terminated > descriptor is freed. > > CC: Linus Walleij > Signed-off-by: Peter Uj

Re: [PATCH 01/10] dmaengine: virt-dma: Add helper to free/reuse a descriptor

2017-11-14 Thread Linus Walleij
On Tue, Nov 14, 2017 at 3:32 PM, Peter Ujfalusi wrote: > The vchan_vdesc_fini() can be used to free or reuse a given descriptor > after it has been marked as completed. > > Signed-off-by: Peter Ujfalusi Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [f2fs-dev] [PATCH] f2fs: expose quota information in debugfs

2017-11-14 Thread Chao Yu
Hi Jaegeuk, On 2017/11/14 13:12, Jaegeuk Kim wrote: > This patch shows # of dirty pages and # of hidden quota files. > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/debug.c | 11 +++ > fs/f2fs/f2fs.h | 10 -- > 2 files changed, 19 insertions(+), 2 deletions(-) > > diff --git a/

Re: [PATCH] samples: replace FSF address with web source in license notices

2017-11-14 Thread Martin Kepplinger
Am 15.11.2017 07:29 schrieb Greg KH: On Tue, Nov 14, 2017 at 10:50:37AM +0100, Martin Kepplinger wrote: A few years ago the FSF moved and "59 Temple Place" is wrong. Having this still in our source files feels old and unmaintained. Let's take the license statement serious and not confuse users

Re: [RFC PATCH v3 for 4.15 08/24] Provide cpu_opv system call

2017-11-14 Thread Michael Kerrisk (man-pages)
Hi Matthieu On 14 November 2017 at 21:03, Mathieu Desnoyers wrote: > This new cpu_opv system call executes a vector of operations on behalf > of user-space on a specific CPU with preemption disabled. It is inspired > from readv() and writev() system calls which take a "struct iovec" array > as ar

Re: [PATCH] x86: use cpufreq_quick_get() for /proc/cpuinfo "cpu MHz" again

2017-11-14 Thread Ingo Molnar
* Rafael J. Wysocki wrote: > On Wednesday, November 15, 2017 1:06:12 AM CET Linus Torvalds wrote: > > On Tue, Nov 14, 2017 at 4:04 PM, Linus Torvalds > > wrote: > > > On Tue, Nov 14, 2017 at 3:53 PM, Thomas Gleixner > > > wrote: > > >> Current head + Raphaels patch: > > >> > > >> real0m0.

Re: [PATCH] gpio: always include linux/gpio/consumer.h in linux/gpio.h

2017-11-14 Thread Linus Walleij
On Tue, Nov 14, 2017 at 12:39 PM, Arnd Bergmann wrote: > linux/gpio/consumer.h is a bit odd, it contains definitions for a number > of the advanced gpio interfaces, in variants for both gpiolib-based > platforms and those not using gpiolib. > > The file gets included implicitly by linux/gpio.h, b

Re: [PATCH v3 4/6] PM / core: Add helpers for subsystem callback selection

2017-11-14 Thread Ulf Hansson
On 12 November 2017 at 01:42, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Add helper routines to find and return a suitable subsystem callback > during the "noirq" phases of system suspend/resume (or analogous) > transitions as well as during the "late" phase of system suspend and > th

[PATCH v2] arm64: perf: remove unsupported events for Cortex-A73

2017-11-14 Thread Xu YiPing
bus access read/write events are not supported in A73, based on the Cortex-A73 TRM r0p2, section 11.9 Events (pages 11-457 to 11-460). Fixes: 5561b6c5e981 "arm64: perf: add support for Cortex-A73" Signed-off-by: Xu YiPing --- arch/arm64/kernel/perf_event.c | 6 -- 1 file changed, 6 deletions

Re: [PATCH v3 1/3] leds: core: Introduce generic pattern interface

2017-11-14 Thread Greg KH
On Tue, Nov 14, 2017 at 11:13:43PM -0800, Bjorn Andersson wrote: > Some LED controllers have support for autonomously controlling > brightness over time, according to some preprogrammed pattern or > function. > > This adds a new optional operator that LED class drivers can implement > if they supp

Re: [PATCH 1/2] bpf: add a bpf_override_function helper

2017-11-14 Thread Ingo Molnar
* Josef Bacik wrote: > > > Then 'not crashing kernel' requirement will be preserved. > > > btrfs or whatever else we will be testing with override_return > > > will be functioning in 'stress test' mode and if bpf program > > > is not careful and returns error all the time then one particular > >

Re: [GIT PULL] sound updates for 4.15-rc1

2017-11-14 Thread Takashi Iwai
[Adding more people and alsa-devel to Cc] On Wed, 15 Nov 2017 03:40:09 +0100, Linus Torvalds wrote: > > On Tue, Nov 14, 2017 at 6:51 AM, Takashi Iwai wrote: > > > > please pull sound updates for v4.15-rc1 from: > > Hmm. Making "oldconfig" on my laptop with this, my > SND_SOC_INTEL_SKYLAKE went

[RFC PATCH 5/5] ARM: dts: rockchip: add isp node for rk3288

2017-11-14 Thread Jacob Chen
From: Jacob Chen rk3288 have a Embedded 13M ISP and MIPI-CSI2 interface. Signed-off-by: Jacob Chen --- arch/arm/boot/dts/rk3288.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 60658c5c9a48..f

[RFC PATCH 4/5] arm64: dts: rockchip: add isp0 node for rk3399

2017-11-14 Thread Jacob Chen
From: Shunqian Zheng rk3399 have two ISP, but we havn't test isp1, so just add isp0 at present. Signed-off-by: Shunqian Zheng Signed-off-by: Jacob Chen --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/

[RFC PATCH 2/5] media: rkisp1: Add user space ABI definitions

2017-11-14 Thread Jacob Chen
From: Jeffy Chen Add the header for userspace Signed-off-by: Jeffy Chen Signed-off-by: Jacob Chen --- include/uapi/linux/rkisp1-config.h | 554 + 1 file changed, 554 insertions(+) create mode 100644 include/uapi/linux/rkisp1-config.h diff --git a/include/

[RFC PATCH 1/5] media: videodev2.h, v4l2-ioctl: add rkisp1 meta buffer format

2017-11-14 Thread Jacob Chen
From: Shunqian Zheng Add the Rockchip ISP1 specific processing parameter format V4L2_META_FMT_RK_ISP1_PARAMS and metadata format V4L2_META_FMT_RK_ISP1_STAT_3A for 3A. Signed-off-by: Shunqian Zheng Signed-off-by: Jacob Chen --- drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++ include/uapi/linux/vi

[PATCH] rtc: Add tracepoints for RTC system

2017-11-14 Thread Baolin Wang
It will be more helpful to add some tracepoints to track RTC actions when debugging RTC driver. Below sample is that we set/read the RTC time, then set 2 alarms, so we can see the trace logs: set/read RTC time: kworker/1:1-586 [001] 21.826112: rtc_set_time: 2017-11-10 08:13:00 UTC (1510301

[RFC PATCH 0/5] Rockchip ISP1 Driver

2017-11-14 Thread Jacob Chen
This patch series add a ISP(Camera) v4l2 driver for rockchip rk3288/rk3399 SoC. TODO: - Thomas is rewriting the binding code between isp, phy, sensors, i hope we could get suggestions. https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/768633/2 rules:

[RFC PATCH 1/5] media: videodev2.h, v4l2-ioctl: add rkisp1 meta buffer format

2017-11-14 Thread Jacob Chen
From: Shunqian Zheng Add the Rockchip ISP1 specific processing parameter format V4L2_META_FMT_RK_ISP1_PARAMS and metadata format V4L2_META_FMT_RK_ISP1_STAT_3A for 3A. Signed-off-by: Shunqian Zheng Signed-off-by: Jacob Chen --- drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++ include/uapi/linux/vi

Re: [PATCH v3 2/3] usb: xhci: Add DbC support in xHCI driver

2017-11-14 Thread Lu Baolu
Hi, On 11/14/2017 03:28 PM, Felipe Balbi wrote: > Hi, > > Mathias Nyman writes: >>> +static int dbc_buf_alloc(struct dbc_buf *db, unsigned int size) >>> +{ >>> + db->buf_buf = kzalloc(size, GFP_KERNEL); >>> + if (!db->buf_buf) >>> + return -ENOMEM; >>> + >>> + db->buf_size = size;

Re: [PATCH] remoteproc: qcom: Fix error handling paths in order to avoid memory leaks

2017-11-14 Thread Bjorn Andersson
On Tue 14 Nov 22:58 PST 2017, Christophe JAILLET wrote: > In case of error returned by 'q6v5_xfer_mem_ownership', we must free > some resources before returning. > > In 'q6v5_mpss_init_image()', add a new label to undo a previous > 'dma_alloc_attrs()'. > In 'q6v5_mpss_load()', re-use the already

Re: [PATCH] PM / runtime: Drop children check from __pm_runtime_set_status()

2017-11-14 Thread Ulf Hansson
[...] >> >> When pm_runtime_set_suspended(dev) is called, dev's child device may >> still be runtime PM enabled and active. >> I was suggesting to add a check for this scenario, to see if dev's >> child device is runtime PM is enabled, as and additional constraint >> before deciding to return an e

[PATCH v3 0/3] Qualcomm Light Pulse Generator

2017-11-14 Thread Bjorn Andersson
This series introduces a generic pattern interface in the LED class and a driver for the Qualcomm Light Pulse Generator. Bjorn Andersson (3): leds: core: Introduce generic pattern interface leds: Add driver for Qualcomm LPG DT: leds: Add Qualcomm Light Pulse Generator binding Documentation

[PATCH v3 3/3] DT: leds: Add Qualcomm Light Pulse Generator binding

2017-11-14 Thread Bjorn Andersson
This adds the binding document describing the three hardware blocks related to the Light Pulse Generator found in a wide range of Qualcomm PMICs. Signed-off-by: Bjorn Andersson --- Changes since v2: - Squashed all things into one node - Removed quirks from the binding, compatible implies number

[PATCH v3 2/3] leds: Add driver for Qualcomm LPG

2017-11-14 Thread Bjorn Andersson
The Light Pulse Generator (LPG) is a PWM-block found in a wide range of PMICs from Qualcomm. It can operate on fixed parameters or based on a lookup-table, altering the duty cycle over time - which provides the means for e.g. hardware assisted transitions of LED brightness. Signed-off-by: Bjorn An

[PATCH v3 1/3] leds: core: Introduce generic pattern interface

2017-11-14 Thread Bjorn Andersson
Some LED controllers have support for autonomously controlling brightness over time, according to some preprogrammed pattern or function. This adds a new optional operator that LED class drivers can implement if they support such functionality as well as a new device attribute to configure the pat

Re: [PATCH v6 03/11] mm, x86: Add support for eXclusive Page Frame Ownership (XPFO)

2017-11-14 Thread Dave Hansen
On 11/14/2017 07:44 PM, Matthew Wilcox wrote: > On Mon, Nov 13, 2017 at 02:46:25PM -0800, Dave Hansen wrote: >> On 11/13/2017 02:20 PM, Dave Hansen wrote: >>> On 11/09/2017 05:09 PM, Tycho Andersen wrote: which I guess is from the additional flags in grow_dev_page() somewhere down t

[PATCH] remoteproc: qcom: Fix error handling paths in order to avoid memory leaks

2017-11-14 Thread Christophe JAILLET
In case of error returned by 'q6v5_xfer_mem_ownership', we must free some resources before returning. In 'q6v5_mpss_init_image()', add a new label to undo a previous 'dma_alloc_attrs()'. In 'q6v5_mpss_load()', re-use the already existing error handling code to undo a previous 'request_firmware()',

Re: [PATCH 2/3] X86/kdump: crashkernel=X try to reserve below 896M first then below 4G and MAXMEM

2017-11-14 Thread Dave Young
On 11/15/17 at 01:47pm, Baoquan He wrote: > Hi Dave, > > Thanks for your effort to push this into upstream. While I have one > concern, please see the inline comments. > > On 10/24/17 at 01:31pm, Dave Young wrote: > > Now crashkernel=X will fail if there's not enough memory at low region > > (bel

Re: [PATCH 1/2] x86,kvm: move qemu/guest FPU switching out to vcpu_run

2017-11-14 Thread quan.x...@gmail.com
On 2017/11/15 05:54, r...@redhat.com wrote: From: Rik van Riel Currently, every time a VCPU is scheduled out, the host kernel will first save the guest FPU/xstate context, then load the qemu userspace FPU context, only to then immediately save the qemu userspace FPU context back to memory. Wh

Re: Adding rseq tree to -next

2017-11-14 Thread Mathieu Desnoyers
- On Nov 14, 2017, at 11:38 PM, Stephen Rothwell s...@canb.auug.org.au wrote: > Hi Mathieu, > > On Wed, 15 Nov 2017 01:22:04 + (UTC) Mathieu Desnoyers > wrote: >> >> - On Nov 14, 2017, at 7:15 PM, Stephen Rothwell s...@canb.auug.org.au >> wrote: >> >> > On Tue, 14 Nov 2017 23:54:0

Re: [PATCH 00/24] staging: ccree: more cleanup patches

2017-11-14 Thread Gilad Ben-Yossef
On Tue, Nov 14, 2017 at 11:48 AM, Dan Carpenter wrote: > On Tue, Nov 14, 2017 at 11:33:20AM +0200, Gilad Ben-Yossef wrote: >> On Mon, Nov 13, 2017 at 8:33 PM, Dan Carpenter >> wrote: >> > These cleanups look nice. Thanks. >> > >> > I hope you do a mass remove of likely/unlikely in a patch soon.

[PATCH] Input: ALPS - fix DualPoint flag for 74 03 28 devices

2017-11-14 Thread Aaron Ma
There is a regression of commit 4a646580f793 ("Input: ALPS - fix two-finger scroll breakage"), ALPS device fails with log: psmouse serio1: alps: Rejected trackstick packet from non DualPoint device ALPS device with id "74 03 28" report OTP[0] data 0xCE after commit 4a646580f793, after restore the

Re: [RFC PATCH for 4.15 00/24] Restartable sequences and CPU op vector v11

2017-11-14 Thread Mathieu Desnoyers
- On Nov 14, 2017, at 11:12 PM, Andy Lutomirski l...@amacapital.net wrote: >> On Nov 14, 2017, at 1:32 PM, Mathieu Desnoyers >> >> wrote: >> >> - On Nov 14, 2017, at 4:15 PM, Andy Lutomirski l...@amacapital.net wrote: >> >> >> One thing I kept however that diverge from your recommendatio

Re: [PATCH] samples: replace FSF address with web source in license notices

2017-11-14 Thread Greg KH
On Tue, Nov 14, 2017 at 10:50:37AM +0100, Martin Kepplinger wrote: > A few years ago the FSF moved and "59 Temple Place" is wrong. Having this > still in our source files feels old and unmaintained. > > Let's take the license statement serious and not confuse users. > > As https://www.gnu.org/lic

Re: [PATCH 1/2] mm,vmscan: Kill global shrinker lock.

2017-11-14 Thread Shakeel Butt
On Tue, Nov 14, 2017 at 4:56 PM, Minchan Kim wrote: > On Tue, Nov 14, 2017 at 06:37:42AM +0900, Tetsuo Handa wrote: >> When shrinker_rwsem was introduced, it was assumed that >> register_shrinker()/unregister_shrinker() are really unlikely paths >> which are called during initialization and tear d

Re: [PATCH] net: Convert net_mutex into rw_semaphore and down read it on net->init/->exit

2017-11-14 Thread Eric W. Biederman
Kirill Tkhai writes: > Curently mutex is used to protect pernet operations list. It makes > cleanup_net() to execute ->exit methods of the same operations set, > which was used on the time of ->init, even after net namespace is > unlinked from net_namespace_list. > > But the problem is it's need

[PATCH] usb: dwc3: Enable the USB snooping

2017-11-14 Thread Ran Wang
Add support for USB3 snooping by asserting bits in register DWC3_GSBUSCFG0 for data and descriptor. Signed-off-by: Changming Huang Signed-off-by: Rajesh Bhagat Signed-off-by: Ran Wang --- drivers/usb/dwc3/core.c | 24 drivers/usb/dwc3/core.h | 10 ++ 2 files ch

Re: Coccinelle: badzero.cocci failure

2017-11-14 Thread Julia Lawall
On Tue, 14 Nov 2017, Masahiro Yamada wrote: > Hi Julia, > > > 2017-11-14 18:07 GMT+09:00 Julia Lawall : > >> coccicheck failed > >> $ cat cocci-debug.txt > >> /home/masahiro/bin/spatch -D report --no-show-diff --very-quiet > >> --cocci-file scripts/coccinelle/null/badzero.cocci --dir . -I > >> .

Re: 4.14 kernel and acpi INT3400:00: Unsupported event [0x86]

2017-11-14 Thread Zhang Rui
Hi, Brian, thanks for your quick fix, as it is in merge window right now, I will queue it for for next -rc2. thanks, rui On Tue, 2017-11-14 at 10:50 -0700, Brian Bian wrote: > I have submitted a patch to suppress such messages. The INT3400 > driver > currently handles 0x83 thermal-relationship-t

Re: rpmsg: qcom_glink_native: no module license, taints kernel

2017-11-14 Thread Bjorn Andersson
On Sun 12 Nov 09:17 PST 2017, Randy Dunlap wrote: > [44098.635339] qcom_glink_native: module license 'unspecified' taints kernel. Thanks for reporting this. Regards, Bjorn

Re: [PATCH] lost path_put in perf_fill_ns_link_info

2017-11-14 Thread Vasily Averin
On 2017-11-08 16:04, Vasily Averin wrote: > On 2017-11-08 15:09, Alexander Shishkin wrote: >> On Mon, Nov 06, 2017 at 09:22:18AM +0300, Vasily Averin wrote: >>> Fixes: commit e422267322cd ("perf: Add PERF_RECORD_NAMESPACES to include >>> namespaces related info") >>> Signed-off-by: Vasily Averin

Re: [PATCH 2/3] X86/kdump: crashkernel=X try to reserve below 896M first then below 4G and MAXMEM

2017-11-14 Thread Baoquan He
Hi Dave, Thanks for your effort to push this into upstream. While I have one concern, please see the inline comments. On 10/24/17 at 01:31pm, Dave Young wrote: > Now crashkernel=X will fail if there's not enough memory at low region > (below 896M) when trying to reserve large memory size. One ca

linux-next: Tree for Nov 15

2017-11-14 Thread Stephen Rothwell
Hi all, Please do not add any v4.16 material to your linux-next included trees until v4.15-rc1 has been released. Changes since 20171114: New tree: rseq Removed tree: vfs-jk at maintainers request The rseq tree gained conflicts against Linus' and the powerpc trees. Non-merge co

[PATCH] memory leaks triggered by perf --namespace

2017-11-14 Thread Vasily Averin
perf with --namespace key leaks various memory objects including namespaces # uname -r 4.14.0+ # perf record -q --namespace unshare -n -U -p --fork true # grep namespace /proc/slabinfo pid_namespace 1 12 2568 128 user_namespace 1 39824 398 net_namesp

Re: [PATCH] sparc64: convert mdesc_handle.refcnt from atomic_t to refcount_t

2017-11-14 Thread David Miller
From: Elena Reshetova Date: Fri, 20 Oct 2017 10:57:57 +0300 > atomic_t variables are currently used to implement reference > counters with the following properties: > - counter is initialized to 1 using atomic_set() > - a resource is freed upon counter reaching zero > - once counter reaches ze

Re: [PATCH] sparc/led: Convert timers to use timer_setup()

2017-11-14 Thread David Miller
From: Kees Cook Date: Tue, 10 Oct 2017 15:07:27 -0700 > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. Adds a static variable to hold timeout > value.

Re: [PATCH v4 2/3] powerpc/modules: Don't try to restore r2 after a sibling call

2017-11-14 Thread Kamalesh Babulal
On Tuesday 14 November 2017 09:23 PM, Josh Poimboeuf wrote: On Tue, Nov 14, 2017 at 03:59:21PM +0530, Naveen N. Rao wrote: Kamalesh Babulal wrote: From: Josh Poimboeuf When attempting to load a livepatch module, I got the following error: module_64: patch_module: Expect noop after relocate

Re: [PATCH v4 0/5] sparc64: Optimize fls and __fls

2017-11-14 Thread David Miller
From: Vijay Kumar Date: Wed, 11 Oct 2017 12:50:01 -0600 > SPARC provides lzcnt instruction (with VIS3) which can be used to > optimize fls, __fls and fls64 functions. For the systems that supports > lzcnt instruction, we now do boot time patching to use sparc > optimized fls, __fls and fls64 func

Re: [PATCH] openvswitch: meter: fix NULL pointer dereference in ovs_meter_cmd_reply_start

2017-11-14 Thread David Miller
From: "Gustavo A. R. Silva" Date: Tue, 14 Nov 2017 14:26:16 -0600 > It seems that the intention of the code is to null check the value > returned by function genlmsg_put. But the current code is null > checking the address of the pointer that holds the value returned > by genlmsg_put. > > Fix th

linux-next: build warning after merge of the net-next tree

2017-11-14 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (powerpc allyesconfig) produced this warning: In file included from drivers/net/ethernet/ibm/ibmvnic.c:52:0: drivers/net/ethernet/ibm/ibmvnic.c: In function 'ibmvnic_open': include/linux/dma-mapping.h:571:2: warning: 'dma_addr' may

Re: Adding rseq tree to -next

2017-11-14 Thread Stephen Rothwell
Hi Mathieu, On Wed, 15 Nov 2017 01:22:04 + (UTC) Mathieu Desnoyers wrote: > > - On Nov 14, 2017, at 7:15 PM, Stephen Rothwell s...@canb.auug.org.au > wrote: > > > On Tue, 14 Nov 2017 23:54:06 + (UTC) Mathieu Desnoyers > > wrote: > >> > >> Would it be possible to add the "rseq" t

linux-next: manual merge of the rseq tree with Linus' tree

2017-11-14 Thread Stephen Rothwell
Hi Mathieu, Today's linux-next merge of the rseq tree got a conflict in: kernel/sched/core.c between commit: 7863406143d8 ("sched/isolation: Move housekeeping related code to its own file") from Linus' tree and commit: 533bd7403b04 ("x86: Introduce sync_core_before_usermode (v2)") fro

linux-next: manual merge of the rseq tree with the powerpc tree

2017-11-14 Thread Stephen Rothwell
Hi Mathieu, Today's linux-next merge of the rseq tree got a conflict in: arch/powerpc/Kconfig between commit: 32ce3862af3c ("powerpc/lib: Implement PMEM API") from the powerpc tree and commit: ba4b152f3f2f ("membarrier: powerpc: Skip memory barrier in switch_mm() (v7)") from the rseq t

linux-next: manual merge of the rseq tree with Linus' tree

2017-11-14 Thread Stephen Rothwell
Hi Mathieu, [I may regret adding the rseq tree ...] Today's linux-next merge of the rseq tree got a conflict in: arch/x86/entry/entry_64.S between commits: 9da78ba6b47b ("x86/entry/64: Remove the restore_c_regs_and_iret label") 26c4ef9c49d8 ("x86/entry/64: Split the IRET-to-user and IRET

Re: [PATCH 1/2] x86,kvm: move qemu/guest FPU switching out to vcpu_run

2017-11-14 Thread Wanpeng Li
2017-11-15 11:03 GMT+08:00 Rik van Riel : > On Wed, 2017-11-15 at 08:47 +0800, Wanpeng Li wrote: >> 2017-11-15 5:54 GMT+08:00 : >> > From: Rik van Riel >> > >> > Currently, every time a VCPU is scheduled out, the host kernel will >> > first save the guest FPU/xstate context, then load the qemu >>

Re: Linux 3.10.108 (EOL)

2017-11-14 Thread Willy Tarreau
On Tue, Nov 14, 2017 at 11:40:31PM +0100, Sebastian Gottschall wrote: > > And anyway the end of life has been indicated on kernel.org for 18 months > > and in every announce in 2017, so it cannot be a surprize anymore :-) At > > least nobody seemed to complain for all this time! > > itsn no surpri

[URGENT PATCH] arm64: dts: uniphier: route on-board device IRQ to GPIO controller for PXs3

2017-11-14 Thread Masahiro Yamada
Commit 429f203eb712 ("arm64: dts: uniphier: route on-board device IRQ to GPIO controller") missed to update this DTS. It becames a real problem when arm and arm64 trees are merged together. Signed-off-by: Masahiro Yamada --- Arnd, Olof, I think you are sending pull-requests for v4.15-rc1 short

Re: [RFC PATCH for 4.15 00/24] Restartable sequences and CPU op vector v11

2017-11-14 Thread Andy Lutomirski
> On Nov 14, 2017, at 1:32 PM, Mathieu Desnoyers > wrote: > > - On Nov 14, 2017, at 4:15 PM, Andy Lutomirski l...@amacapital.net wrote: > > > One thing I kept however that diverge from your recommendation is the > "sign" parameter to the rseq syscall. I prefer this flexible > approach to a ha

Re: Allocation failure of ring buffer for trace

2017-11-14 Thread YASUAKI ISHIMATSU
Hi Mel, Your patch works good. Here are the results of your patch. - boot up without trace_buf_size boot option When system boots up without trace_buf_size boot option, deferred_init_memmap() runs after booting SMP configuration. There no change of boot sequence between 4.14.0 and 4.14.0 with y

Re: [PATCH 09/10] dmaengine: k3dma: Use vchan_terminate_vdesc() instead of desc_free

2017-11-14 Thread zhangfei
On 2017年11月14日 22:32, Peter Ujfalusi wrote: To avoid race with vchan_complete, use the race free way to terminate running transfer. Implement the device_synchronize callback to make sure that the terminated descriptor is freed. CC: Zhangfei Gao Signed-off-by: Peter Ujfalusi Thanks Peter.

RE: [PATCH 4.4 05/56] ARM: dts: imx53-qsb-common: fix FEC pinmux config

2017-11-14 Thread Patrick Brünn
>From: Ben Hutchings [mailto:ben.hutchi...@codethink.co.uk] >Sent: Dienstag, 14. November 2017 16:45 >> 4.4-stable review patch. If anyone has any objections, please let me know. >> >> -- >> >> From: Patrick Bruenn >> >> >> [ Upstream commit 8b649e426336d7d4800ff9c82858328f4215ba0

Re: [PATCH v8 2/6] time: sync read_boot_clock64() with persistent clock

2017-11-14 Thread Pavel Tatashin
> IMO, using the extern keyword on function prototypes in *.h files > is superfluous, but, It doesn't matter for functionality. *extern* > is default keywords. > > AFAIK, it's a code style problem. In x86 arch, we prefer to > keep *extern* explicitly, so, let's keep it like before for > code consis

Re: [PATCH v8 6/6] x86/tsc: use tsc early

2017-11-14 Thread Dou Liyang
Hi Pavel, At 11/15/2017 05:46 AM, Pavel Tatashin wrote: Hi Dou, Great comments, my replies below: static inline unsigned long long paravirt_sched_clock(void) { - return PVOP_CALL0(unsigned long long, pv_time_ops.sched_clock); + return PVOP_CALL0(unsigned long long, pv_time_ops.a

Re: [PATCH v17 6/6] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ

2017-11-14 Thread Wei Wang
On 11/15/2017 05:21 AM, Michael S. Tsirkin wrote: On Tue, Nov 14, 2017 at 08:02:03PM +0800, Wei Wang wrote: On 11/14/2017 01:32 AM, Michael S. Tsirkin wrote: - guest2host_cmd: written by the guest to ACK to the host about the commands that have been received. The host will clear the correspondi

Re: [PATCH v6 03/11] mm, x86: Add support for eXclusive Page Frame Ownership (XPFO)

2017-11-14 Thread Matthew Wilcox
On Mon, Nov 13, 2017 at 02:46:25PM -0800, Dave Hansen wrote: > On 11/13/2017 02:20 PM, Dave Hansen wrote: > > On 11/09/2017 05:09 PM, Tycho Andersen wrote: > >> which I guess is from the additional flags in grow_dev_page() somewhere > >> down > >> the stack. Anyway... it seems this is a kernel all

Re: [PATCH 2/3] arm64: dts: hisilicon: add pinctrl nodes for hi3798cv200-poplar board

2017-11-14 Thread Shawn Guo
On Wed, Oct 18, 2017 at 07:22:07AM -0400, Jiancheng Xue wrote: > From: Younian Wang > > Add pinctrl nodes for hi3798cv200-poplar board > > Signed-off-by: Younian Wang > Signed-off-by: Jiancheng Xue > --- > .../boot/dts/hisilicon/hi3798cv200-poplar.dts | 1 + > arch/arm64/boot/dts/hisil

Re: [PATCH] net: Convert net_mutex into rw_semaphore and down read it on net->init/->exit

2017-11-14 Thread Eric W. Biederman
Kirill Tkhai writes: > On 14.11.2017 21:39, Cong Wang wrote: >> On Tue, Nov 14, 2017 at 5:53 AM, Kirill Tkhai wrote: >>> @@ -406,7 +406,7 @@ struct net *copy_net_ns(unsigned long flags, >>> >>> get_user_ns(user_ns); >>> >>> - rv = mutex_lock_killable(&net_mutex); >>> + rv = d

[PATCH v2] ksm : use checksum and memcmp for rb_tree

2017-11-14 Thread Kyeongdon Kim
The current ksm is using memcmp to insert and search 'rb_tree'. It does cause very expensive computation cost. In order to reduce the time of this operation, we have added a checksum to traverse. Nearly all 'rb_node' in stable_tree_insert() function can be inserted as a checksum, most of it is pos

Re: [PATCH RFC v3 4/6] Documentation: Add three sysctls for smart idle poll

2017-11-14 Thread quan.x...@gmail.com
On 2017年11月14日 15:44, Ingo Molnar wrote: * Quan Xu wrote: On 2017/11/13 23:08, Ingo Molnar wrote: * Quan Xu wrote: From: Quan Xu To reduce the cost of poll, we introduce three sysctl to control the poll time when running as a virtual machine with paravirt. Signed-off-by: Yang Zhang

Re: [PATCH v3 0/9] memfd: add sealing to hugetlb-backed memory

2017-11-14 Thread Mike Kravetz
+Cc: Andrew, Michal, David Are there any other comments on this patch series from Marc-André? Is anything else needed to move forward? I have reviewed the patches in the series. David Herrmann (the original memfd_create/file sealing author) has also taken a look at the patches. One outstanding

[PATCH v3 2/4] MIPS: Loongson64: lemote-2f move ec_kb3310b.h to include dir and clean up

2017-11-14 Thread Jiaxun Yang
To operate EC from platform driver, this head file need able to be include from anywhere. This patch just move ec_kb3310b.h to include dir and clean up ec_kb3310b.h. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/ec_kb3310b.h | 170 +++ arch/mips/loongson64/

[PATCH v3 4/4] MIPS: Loongson64: Load platform device during boot

2017-11-14 Thread Jiaxun Yang
This patch just add pdev during boot to load the platform driver Signed-off-by: Jiaxun Yang --- arch/mips/loongson64/lemote-2f/Makefile | 2 +- arch/mips/loongson64/lemote-2f/platform.c | 27 +++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 arch

[PATCH v3 3/4] MIPS: Loongson64: Yeeloong add platform driver

2017-11-14 Thread Jiaxun Yang
Yeeloong is a laptop with a MIPS Loongson 2F processor, AMD CS5536 chipset, and KB3310B controller. This yeeloong_laptop module enables access to sensors, battery, video camera switch, external video connector event, and some additional buttons. This driver was orginally from linux-loongson-commu

[PATCH v3 1/4] MIPS: Lonngson64: Copy kernel command line from arcs_cmdline

2017-11-14 Thread Jiaxun Yang
Since lemote-2f/marchtype.c need to get cmdline from loongson.h this patch simply copy kernel command line from arcs_cmdline to fix that issue. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/loongson.h | 6 ++ arch/mips/loongson64/common/cmdline.c| 7 +++

[PATCH AUTOSEL for 4.9 07/56] clk: sunxi-ng: A31: Fix spdif clock register

2017-11-14 Thread alexander . levin
From: Marcus Cooper [ Upstream commit 70421257c068b91476e70cade15fca68045d0693 ] As the SPDIF was rarely documented on the earlier Allwinner SoCs it was assumed that it had a similar clock register to the one described in the H3 User Manual. However this is not the case and it looks to shares t

[PATCH AUTOSEL for 4.9 09/56] dmaengine: zx: set DMA_CYCLIC cap_mask bit

2017-11-14 Thread alexander . levin
From: Shawn Guo [ Upstream commit fc318d64f3d91e15babac00e08354b1beb650b57 ] The zx_dma driver supports cyclic transfer mode. Let's set DMA_CYCLIC cap_mask bit to make that clear, and avoid unnecessary failure when clients request channel via dma_request_chan_by_mask() with DMA_CYCLIC bit set i

[PATCH AUTOSEL for 4.9 11/56] fscrypt: use ENOTDIR when setting encryption policy on nondirectory

2017-11-14 Thread alexander . levin
From: Eric Biggers [ Upstream commit dffd0cfa06d4ed83bb3ae8eb067989ceec5d18e1 ] As part of an effort to clean up fscrypt-related error codes, make FS_IOC_SET_ENCRYPTION_POLICY fail with ENOTDIR when the file descriptor does not refer to a directory. This is more descriptive than EINVAL, which w

[PATCH AUTOSEL for 4.9 13/56] net: 3com: typhoon: typhoon_init_one: make return values more specific

2017-11-14 Thread alexander . levin
From: Thomas Preisner [ Upstream commit 6b6bbb5922a4b1d4b58125a572da91010295fba3 ] In some cases the return value of a failing function is not being used and the function typhoon_init_one() returns another negative error code instead. Signed-off-by: Thomas Preisner Signed-off-by: Milan Stephan

[PATCH AUTOSEL for 4.9 16/56] rt2800: set minimum MPDU and PSDU lengths to sane values

2017-11-14 Thread alexander . levin
From: Stanislaw Gruszka [ Upstream commit a51b89698ccc93c7e274eb71377fae49c4593ab2 ] Signed-off-by: Stanislaw Gruszka Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin --- drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH AUTOSEL for 4.9 14/56] net: 3com: typhoon: typhoon_init_one: fix incorrect return values

2017-11-14 Thread alexander . levin
From: Thomas Preisner [ Upstream commit 107fded7bf616ad6f46823d98b8ed6405d7adf2d ] In a few cases the err-variable is not set to a negative error code if a function call in typhoon_init_one() fails and thus 0 is returned instead. It may be better to set err to the appropriate negative error code

[PATCH AUTOSEL for 4.9 15/56] drm/armada: Fix compile fail

2017-11-14 Thread alexander . levin
From: Daniel Vetter [ Upstream commit 7357f89954b6d005df6ab8929759e78d7d9a80f9 ] I reported the include issue for tracepoints a while ago, but nothing seems to have happened. Now it bit us, since the drm_mm_print conversion was broken for armada. Fix it, so I can re-enable armada in the drm-misc

[PATCH AUTOSEL for 4.9 12/56] net: Allow IP_MULTICAST_IF to set index to L3 slave

2017-11-14 Thread alexander . levin
From: David Ahern [ Upstream commit 7bb387c5ab12aeac3d5eea28686489ff46b53ca9 ] IP_MULTICAST_IF fails if sk_bound_dev_if is already set and the new index does not match it. e.g., ntpd[15381]: setsockopt IP_MULTICAST_IF 192.168.1.23 fails: Invalid argument Relax the check in setsockopt to al

[PATCH AUTOSEL for 4.9 18/56] mwifiex: sdio: fix use after free issue for save_adapter

2017-11-14 Thread alexander . levin
From: Amitkumar Karwar [ Upstream commit 74c8719b8ee0922593a5cbec0bd6127d86d8a2f4 ] If we have sdio work requests received when sdio card reset is happening, we may end up accessing older save_adapter pointer later which is already freed during card reset. This patch solves the problem by cancel

[PATCH AUTOSEL for 4.9 17/56] adm80211: return an error if adm8211_alloc_rings() fails

2017-11-14 Thread alexander . levin
From: Dan Carpenter [ Upstream commit c705a6b3aa7804d7bc6660183f51e510c61dc807 ] We accidentally return success when adm8211_alloc_rings() fails but we should preserve the error code. Fixes: cc0b88cf5ecf ("[PATCH] Add adm8211 802.11b wireless driver") Signed-off-by: Dan Carpenter Signed-off-by

[PATCH AUTOSEL for 4.9 02/56] RDS: make message size limit compliant with spec

2017-11-14 Thread alexander . levin
From: Avinash Repaka [ Upstream commit f9fb69adb6c7acca60977a4db5a5f95b8e66c041 ] RDS support max message size as 1M but the code doesn't check this in all cases. Patch fixes it for RDMA & non-RDMA and RDS MR size and its enforced irrespective of underlying transport. Signed-off-by: Avinash Rep

[PATCH AUTOSEL for 4.9 19/56] ath10k: fix incorrect txpower set by P2P_DEVICE interface

2017-11-14 Thread alexander . levin
From: Ryan Hsu [ Upstream commit 88407beb1b1462f706a1950a355fd086e1c450b6 ] Ath10k reports the phy capability that supports P2P_DEVICE interface. When we use the P2P supported wpa_supplicant to start connection, it'll create two interfaces, one is wlan0 (vdev_id=0) and one is P2P_DEVICE p2p-dev

[PATCH AUTOSEL for 4.9 21/56] ath10k: fix potential memory leak in ath10k_wmi_tlv_op_pull_fw_stats()

2017-11-14 Thread alexander . levin
From: Christian Lamparter [ Upstream commit 097e46d2ae90265d1afe141ba6208ba598b79e01 ] ath10k_wmi_tlv_op_pull_fw_stats() uses tb = ath10k_wmi_tlv_parse_alloc(...) function, which allocates memory. If any of the three error-paths are taken, this tb needs to be freed. Signed-off-by: Christian Lam

[PATCH AUTOSEL for 4.9 20/56] ath10k: ignore configuring the incorrect board_id

2017-11-14 Thread alexander . levin
From: Ryan Hsu [ Upstream commit d2e202c06ca42d353d95df12437740921a6d05b5 ] With command to get board_id from otp, in the case of following boot get otp board id result 0x board_id 0 chip_id 0 boot using board name 'bus=pci,bmi-chip-id=0,bmi-board-id=0" ... failed to fetch board

RE: [PATCH v6 3/3] ACPI / PMIC: Add TI PMIC TPS68470 operation region driver

2017-11-14 Thread Mani, Rajmohan
Hi Rafael, > -Original Message- > From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] > Sent: Tuesday, October 03, 2017 4:44 AM > To: Sakari Ailus > Cc: Mani, Rajmohan ; linux- > ker...@vger.kernel.org; linux-g...@vger.kernel.org; linux- > a...@vger.kernel.org; Lee Jones ; Linus Walleij >

[PATCH AUTOSEL for 4.9 40/56] drm/i915: Assert no external observers when unwind a failed request alloc

2017-11-14 Thread alexander . levin
From: Chris Wilson [ Upstream commit 1618bdb89b5d8b47edf42d9c6ea96ecf001ad625 ] Before we return the request back to the kmem_cache after a failed i915_gem_request_alloc(), we should assert that it has not been added to any global state tracking. Signed-off-by: Chris Wilson Reviewed-by: Joonas

Re: [PATCH v4 1/1] xdp: Sample xdp program implementing ip forward

2017-11-14 Thread Christina Jacob
On Thu, Nov 9, 2017 at 7:08 AM, Jesper Dangaard Brouer wrote: > On Wed, 08 Nov 2017 10:40:24 +0900 (KST) > David Miller wrote: > >> From: Christina Jacob >> Date: Sun, 5 Nov 2017 08:52:30 +0530 >> >> > From: Christina Jacob >> > >> > Implements port to port forwarding with route table and arp

[PATCH AUTOSEL for 4.9 34/56] mac80211: Suppress NEW_PEER_CANDIDATE event if no room

2017-11-14 Thread alexander . levin
From: Masashi Honma [ Upstream commit 11197d006bcfabf0173a7820a163fcaac420d10e ] Previously, kernel sends NEW_PEER_CANDIDATE event to user land even if the found peer does not have any room to accept other peer. This causes continuous connection trials. Signed-off-by: Masashi Honma Signed-off-

  1   2   3   4   5   6   7   8   9   10   >