Re: [PATCH RFC/RFT] sched/fair: Improve the behavior of sync flag

2017-08-26 Thread Mike Galbraith
On Sat, 2017-08-26 at 23:18 -0700, Joel Fernandes wrote: > > > Sync is not a contract, it's a hint.  If you really want sync behavior, > > you need to create a contract signed in blood to signal that you really > > really are passing the baton. > > Yes that is the usecase of binder, we are really

[PATCH 10/11] staging: typec: tcpm: Do not send PING msgs in TCPM

2017-08-26 Thread Badhri Jagan Sridharan
PING messages are used to monitor the connect/disconnect. However, when PD is carried over CC, so this is not required. Also, the spec does not clearly say if PD is possible when Type-c is connected to Type-A/B. So, removing sending PING messages altogether. Signed-off-by: Badhri Jagan Sridharan

[PATCH 11/11] staging: typec: tcpm: Switch to PORT_RESET instead of SNK_UNATTACHED

2017-08-26 Thread Badhri Jagan Sridharan
When VBUS is not discovered within PD_T_PS_SOURCE_ON although Rp is detected on CC, TCPM switches the port to SNK_UNATTACHED state. SNK_UNATTACHED, however does not force TYPEC_CC_OPEN which makes the partner(source) to think that it is connected. To overcome this issue, force the port into PORT_R

[PATCH 09/11] staging: typec: tcpm: typec: tcpm: Wait for CC debounce before PD excg

2017-08-26 Thread Badhri Jagan Sridharan
Once, Rp or Rd is switched, wait for PD_T_CC_DEBOUNCE. If not the PS_RDY message transmitted might result in failure. Also, Only wait for PD_T_SRCSWAPSTDBY while in PR_SWAP_SRC_SNK_TRANSITION_OFF. PD_T_PS_SOURCE_OFF is the overall time after which the initial sink would issue hard reset. Signed-of

[PATCH 08/11] staging: typec: tcpm: add cc change handling in src states

2017-08-26 Thread Badhri Jagan Sridharan
In the case that the lower layer driver reports a cc change directly from SINK state to SOURCE state, TCPM doesn't handle these cc change in SRC_SEND_CAPABILITIES, SRC_READY states. And with SRC_ATTACHED state, the change is not handled as the port is still considered connected. [49606.131672] sta

[PATCH] ASoC: davinci-mcasp: check memory allocation failure

2017-08-26 Thread Christophe JAILLET
Check memory allocation failures and return -ENOMEM in such cases, as already done above for another memory allocation. This avoids NULL pointers dereference. Signed-off-by: Christophe JAILLET --- sound/soc/davinci/davinci-mcasp.c | 4 1 file changed, 4 insertions(+) diff --git a/sound/so

[PATCH 06/11 v2] staging: typec: tcpm: Comply with TryWait.SNK State

2017-08-26 Thread Badhri Jagan Sridharan
According to the spec: "4.5.2.2.10.2 Exiting from TryWait.SNK State The port shall transition to Attached.SNK after tCCDebounce if or when VBUS is detected. Note the Source may initiate USB PD communications which will cause brief periods of the SNK.Open state on both the CC1 and CC2 pins, but this

[PATCH 05/11 v2] staging: typec: tcpm: Follow Try.SRC exit requirements

2017-08-26 Thread Badhri Jagan Sridharan
According to spec: " 4.5.2.2.9.2 Exiting from Try.SRC State: The port shall transition to Attached.SRC when the SRC.Rd state is detected on exactly one of the CC1 or CC2 pins for at least tPDDebounce. The port shall transition to TryWait.SNK after tDRPTry and the SRC.Rd state has not been detected.

[PATCH 04/11 v2] staging: usb: tcpm: usb: type-c: tcpm: Check for Rp for tPDDebounce

2017-08-26 Thread Badhri Jagan Sridharan
According the spec, the following is the conditions for exiting Try.SNK state: "The port shall wait for tDRPTry and only then begin monitoring the CC1 and CC2 pins for the SNK.Rp state. The port shall then transition to Attached.SNK when the SNK.Rp state is detected on exactly one of the CC1 or CC2

[PATCH 03/11 v2] staging: typec: tcpm: Prevent TCPM from looping in SRC_TRYWAIT

2017-08-26 Thread Badhri Jagan Sridharan
According to the spec the following is the condition for exiting TryWait.SRC: "The port shall transition to Attached.SRC when V BUS is at vSafe0V and the SRC.Rd state is detected on exactly one of the CC pins for at least tCCDebounce. The port shall transition to Unattached.SNK after tDRPTry if ne

[PATCH] igb: check memory allocation failure

2017-08-26 Thread Christophe JAILLET
Check memory allocation failures and return -ENOMEM in such cases, as already done for other memory allocations in this function. This avoids NULL pointers dereference. Signed-off-by: Christophe JAILLET --- drivers/net/ethernet/intel/igb/igb_main.c | 2 ++ 1 file changed, 2 insertions(+) diff

[PATCH 02/11 v2] staging: typec: tcpm: Check for port type for Try.SRC/Try.SNK

2017-08-26 Thread Badhri Jagan Sridharan
Enable Try.SRC or Try.SNK only when port_type is DRP. Try.SRC or Try.SNK state machines are not valid for SRC only or SNK only ports. Signed-off-by: Badhri Jagan Sridharan --- Changelog since v1: - Corrected tag drivers/staging/typec/tcpm.c | 6 -- 1 file changed, 4 insertions(+), 2 deleti

Re: [PATCH RFC/RFT] sched/fair: Improve the behavior of sync flag

2017-08-26 Thread Joel Fernandes
Hi Mike, On Sat, Aug 26, 2017 at 11:08 PM, Mike Galbraith wrote: > On Sun, 2017-08-27 at 07:44 +0200, Mike Galbraith wrote: >> On Sat, 2017-08-26 at 18:02 -0700, Joel Fernandes wrote: >> > Binder (Android's IPC mechanism) which uses sync wake ups during >> > synchronous >> > transactions to the

[PATCH 01/11 v2] staging: typec: tcpm: set port type callback

2017-08-26 Thread Badhri Jagan Sridharan
The port type callback call enquires the tcpc_dev if the requested port type is supported. If supported, then performs a tcpm reset if required after setting the tcpm internal port_type variable. Check against the tcpm port_type instead of checking against caps.type as port_type reflects the curre

[PATCH] virtio_mmio: Use PTR_ERROR_OR_ZERO

2017-08-26 Thread Himanshu Jha
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Signed-off-by: Himanshu Jha --- drivers/virtio/virtio_mmio.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c index 74dc717..fea209d 100644 --- a/drivers/v

[PATCH 07/11] staging: typec: tcpm: Consider port_type while determining unattached_state

2017-08-26 Thread Badhri Jagan Sridharan
While performing PORT_RESET, upon receiving the cc disconnect signal from the underlaying tcpc device, TCPM transitions into unattached state. Consider, the current type of port while determining the unattached state. In the below logs, although the port_type was set to sink, TCPM transitioned int

[PATCH] tty: serial: 8250_mtk: Use PTR_ERR_OR_ZERO

2017-08-26 Thread Himanshu Jha
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Signed-off-by: Himanshu Jha --- drivers/tty/serial/8250/8250_mtk.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/tty/serial/8250/8250_mtk.c b/drivers/tty/serial/8250/8250_mtk.c index ce0cc47..fb45770 100

[PATCH] libnvdimm, btt: check memory allocation failure

2017-08-26 Thread Christophe JAILLET
Check memory allocation failures and return -ENOMEM in such cases, as already done few lines below for another memory allocation. This avoids NULL pointers dereference. Fixes: 14e494542636 ("libnvdimm, btt: BTT updates for UEFI 2.7 format") Signed-off-by: Christophe JAILLET --- drivers/nvdimm/b

[PATCH] crypto: Use PTR_ERR_ZERO

2017-08-26 Thread Himanshu Jha
Use PTR_ERROR_ZERO rather than if(IS_ERR(...)) + PTR_ERR. Build successfully. Signed-off-by: Himanshu Jha --- drivers/crypto/marvell/tdma.c | 5 + drivers/crypto/mv_cesa.c| 5 + drivers/crypto/qce/ablkcipher.c | 5 + 3 files changed, 3 insertions(+), 12 deletions(-) diff -

Re: [PATCH RFC/RFT] sched/fair: Improve the behavior of sync flag

2017-08-26 Thread Joel Fernandes
(Sorry my last reply was incorrectly formatted, resending..) Hi Mike, On Sat, Aug 26, 2017 at 10:44 PM, Mike Galbraith wrote: > On Sat, 2017-08-26 at 18:02 -0700, Joel Fernandes wrote: >> Binder (Android's IPC mechanism) which uses sync wake ups during synchronous >> transactions to the schedule

Re: [PATCH RFC/RFT] sched/fair: Improve the behavior of sync flag

2017-08-26 Thread Mike Galbraith
On Sun, 2017-08-27 at 07:44 +0200, Mike Galbraith wrote: > On Sat, 2017-08-26 at 18:02 -0700, Joel Fernandes wrote: > > Binder (Android's IPC mechanism) which uses sync wake ups during synchronous > > transactions to the scheduler to indicate that the waker is about to sleep > > soon. The current w

[PATCH] staging: lustre: constify cl_lock_operations

2017-08-26 Thread Arvind Yadav
cl_lock_operations are not supposed to change at runtime. cl_lock_slice_add is working with const cl_lock_operations. So mark the non-const cl_lock_operations structs as const. Signed-off-by: Arvind Yadav --- drivers/staging/lustre/lustre/obdecho/echo_client.c | 2 +- 1 file changed, 1 insertion

Re: I/O hangs after resuming from suspend-to-ram

2017-08-26 Thread Ming Lei
On Sat, Aug 26, 2017 at 12:48:01PM +0200, Oleksandr Natalenko wrote: > Quick update: reproduced on both v4.12.7 and v4.13.0-rc6. BTW, given it hangs during resume, it isn't easy to collect debug info, and there should have been lots useful info there. You mentioned that you can reproduce it on QE

[PATCH] staging: atomisp: constify v4l2_subdev_sensor_ops

2017-08-26 Thread Arvind Yadav
v4l2_subdev_sensor_ops are not supposed to change at runtime. v4l2_subdev_sensor_ops are working with const 'sensor' field of sturct v4l2_subdev_ops. So mark the non-const v4l2_subdev_sensor_ops structs as const. Signed-off-by: Arvind Yadav --- drivers/staging/media/atomisp/i2c/mt9m114.c | 2 +-

[stable 4.4 0/2 V2] missing mei device ids

2017-08-26 Thread Tomas Winkler
Device ids that are missing in 4.4 stable Tomas Winkler (2): mei: me: add broxton pci device ids mei: me: add lewisburg device ids drivers/misc/mei/hw-me-regs.h | 8 drivers/misc/mei/pci-me.c | 4 2 files changed, 12 insertions(+) -- 2.9.5

[stable 4.4 1/2 V2] mei: me: add broxton pci device ids

2017-08-26 Thread Tomas Winkler
commit dd16f6cdeb4e02a728863d3cf99aaab352f0d761 upstream Add device ids for Broxton SoC based devices. Cc: sta...@kernel.com #4.4.x Signed-off-by: Tomas Winkler Signed-off-by: Greg Kroah-Hartman --- Add upstream commit id drivers/misc/mei/hw-me-regs.h | 3 +++ drivers/misc/mei/pci-me.c | 3

[stable 4.4 2/2 V2] mei: me: add lewisburg device ids

2017-08-26 Thread Tomas Winkler
commit 9ff2007bea1f1bfc53ac0bc7ccf8200bb275fd52 upstream Add MEI Lewisburg PCH IDs for Purley based workstations. Cc: # 4.4.x Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler Signed-off-by: Greg Kroah-Hartman --- Add upstream commit id drivers/misc/mei/hw-me-regs.h | 5 + dr

Re: [PATCH RFC/RFT] sched/fair: Improve the behavior of sync flag

2017-08-26 Thread Mike Galbraith
On Sat, 2017-08-26 at 18:02 -0700, Joel Fernandes wrote: > Binder (Android's IPC mechanism) which uses sync wake ups during synchronous > transactions to the scheduler to indicate that the waker is about to sleep > soon. The current wake up path can improved when the sync flag is passed > resulting

★lingwangbrass--“JEC world 2018 世界复合材料展览及会议”将于“3月06-08日”在“法国巴黎”举行 (地右P1-L-Me)

2017-08-26 Thread linux-kernel-owner
尊敬的 lingwangbr...@hotmail.com 企业领导/公司负责人/业界专家,您好:       新材料为21世纪三大共性关键技术之一,已成为全球经济迅速增长的源动力和提升核心竞争力的战略焦点。材料作为制造业的基础,特别是新材料研究和产业发展的水平与规模,已经成为衡量一个国家科技进步和综合实力的重要标志。在新材料发展与应用中,复合材料占有相当重要的地位,特别广泛的应用在汽车、交通、风能、航空、航天、兵器、船舶、国防、机械、电子、化工、建筑、农业、渔业、纺织、运动器材等领域,一直是世界各国优先发展和竞争激烈的重要行业。      “JEC世界复合材料展览及会议”(JEC worl

[PATCH 6/6] staging: usb: tcpm: Comply with TryWait.SNK State

2017-08-26 Thread Badhri Jagan Sridharan
According to the spec: "4.5.2.2.10.2 Exiting from TryWait.SNK State The port shall transition to Attached.SNK after tCCDebounce if or when VBUS is detected. Note the Source may initiate USB PD communications which will cause brief periods of the SNK.Open state on both the CC1 and CC2 pins, but this

[PATCH 4/6] staging: usb: tcpm: usb: type-c: tcpm: Check for Rp for tPDDebounce

2017-08-26 Thread Badhri Jagan Sridharan
According the spec, the following is the conditions for exiting Try.SNK state: "The port shall wait for tDRPTry and only then begin monitoring the CC1 and CC2 pins for the SNK.Rp state. The port shall then transition to Attached.SNK when the SNK.Rp state is detected on exactly one of the CC1 or CC2

[PATCH 5/6] staging: usb: tcpm: usb: typec: tcpm: Follow Try.SRC exit requirements

2017-08-26 Thread Badhri Jagan Sridharan
According to spec: " 4.5.2.2.9.2 Exiting from Try.SRC State: The port shall transition to Attached.SRC when the SRC.Rd state is detected on exactly one of the CC1 or CC2 pins for at least tPDDebounce. The port shall transition to TryWait.SNK after tDRPTry and the SRC.Rd state has not been detected.

[PATCH 3/6] staging: usb: tcpm: usb: typec: tcpm: Prevent TCPM from looping in SRC_TRYWAIT

2017-08-26 Thread Badhri Jagan Sridharan
According to the spec the following is the condition for exiting TryWait.SRC: "The port shall transition to Attached.SRC when V BUS is at vSafe0V and the SRC.Rd state is detected on exactly one of the CC pins for at least tCCDebounce. The port shall transition to Unattached.SNK after tDRPTry if ne

[PATCH 1/6] staging: usb: typec: tcpm set port type callback

2017-08-26 Thread Badhri Jagan Sridharan
The port type callback call enquires the tcpc_dev if the requested port type is supported. If supported, then performs a tcpm reset if required after setting the tcpm internal port_type variable. Check against the tcpm port_type instead of checking against caps.type as port_type reflects the curre

[PATCH 2/6] staging: usb: typec: Check for port type for Try.SRC/Try.SNK

2017-08-26 Thread Badhri Jagan Sridharan
Enable Try.SRC or Try.SNK only when port_type is DRP. Try.SRC or Try.SNK state machines are not valid for SRC only or SNK only ports. Signed-off-by: Badhri Jagan Sridharan --- drivers/staging/typec/tcpm.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/t

[GIT PULL] NTB bug fixes for v4.13

2017-08-26 Thread Jon Mason
Hello Linus, Here are a few NTB bug fixes for 4.13. Please consider pulling them. Thanks, Jon The following changes since commit 5771a8c08880cdca3bfb4a3fc6d309d6bba20877: Linux v4.13-rc1 (2017-07-15 15:22:10 -0700) are available in the git repository at: git://github.com/jonmason/ntb ta

[PATCH] alpha: Fix section mismatches

2017-08-26 Thread Matt Turner
Signed-off-by: Matt Turner --- arch/alpha/kernel/core_marvel.c | 4 ++-- arch/alpha/kernel/smp.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/alpha/kernel/core_marvel.c b/arch/alpha/kernel/core_marvel.c index db72356714c1..03ff832b1cb4 100644 --- a/arch/alph

[PATCH] alpha: Fix build error without CONFIG_VGA_HOSE.

2017-08-26 Thread Matt Turner
pci_vga_hose is #defined to 0 in include/asm/vga.h if CONFIG_VGA_HOSE is not set. Signed-off-by: Matt Turner --- arch/alpha/kernel/core_marvel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/alpha/kernel/core_marvel.c b/arch/alpha/kernel/core_marvel.c index d5f0580746a5..db72356714c

Re: [RESEND PATCH 1/1] arm64: dts: Add Variscite DART-SD410 Evaluation board dts

2017-08-26 Thread Andy Gross
On Fri, Aug 25, 2017 at 01:44:18PM +0300, Baruch Siach wrote: > Hi Leonid, > > On Wed, Aug 23, 2017 at 08:44:56PM +0300, Leonid Segal wrote: > > Thank you very much for the tips. > > I have updated the documentation and schematics of our web site. > > I also tried to implement all other fixes, but

Re: [PATCH v2 2/3] rtc: Add Realtek RTD1295

2017-08-26 Thread Andrew Lunn
On Sun, Aug 27, 2017 at 04:30:08AM +0200, Andreas Färber wrote: > Am 27.08.2017 um 04:05 schrieb Andrew Lunn: > > n Sun, Aug 27, 2017 at 02:33:27AM +0200, Andreas Färber wrote: > >> +struct rtd119x_rtc { > >> + void __iomem *base; > >> + struct clk *clk; > >> + struct rtc_device *rtcdev; > >> +

Re: [PATCH v2 2/3] rtc: Add Realtek RTD1295

2017-08-26 Thread Andreas Färber
Am 27.08.2017 um 04:05 schrieb Andrew Lunn: > n Sun, Aug 27, 2017 at 02:33:27AM +0200, Andreas Färber wrote: >> +struct rtd119x_rtc { >> +void __iomem *base; >> +struct clk *clk; >> +struct rtc_device *rtcdev; >> +unsigned base_year; >> +spinlock_t lock; > > Where is this lock

[PATCH] hugetlbfs: change put_page/unlock_page order in hugetlbfs_fallocate()

2017-08-26 Thread Nadav Amit
hugetlfs_fallocate() currently performs put_page() before unlock_page(). This scenario opens a small time window, from the time the page is added to the page cache, until it is unlocked, in which the page might be removed from the page-cache by another core. If the page is removed during this time

Re: [PATCH v2 2/3] rtc: Add Realtek RTD1295

2017-08-26 Thread Andrew Lunn
n Sun, Aug 27, 2017 at 02:33:27AM +0200, Andreas Färber wrote: > Based on QNAP's arch/arm/mach-rtk119x/driver/rtk_rtc_drv.c code and > mach-rtk119x/driver/dc2vo/fpga/include/mis_reg.h register definitions. > > The base year 2014 was observed on all of Zidoo X9S, ProBox2 Ava and > Beelink Lake I. >

Re: [PATCH v2] sched/deadline: make it configurable

2017-08-26 Thread Nicolas Pitre
Ping. On Thu, 17 Aug 2017, Nicolas Pitre wrote: > Ping. > > On Thu, 3 Aug 2017, Nicolas Pitre wrote: > > > On most small systems, the deadline scheduler class is a luxury that > > rarely gets used if at all. It is preferable to have the ability to > > configure it out to reduce the kernel size

Re: [PATCH 1/2] crypto: n2 - remove null check before kfree

2017-08-26 Thread David Miller
From: Himanshu Jha Date: Sun, 27 Aug 2017 02:45:29 +0530 > kfree on NULL pointer is a no-op and therefore checking it is redundant. > > Signed-off-by: Himanshu Jha Acked-by: David S. Miller

Loan

2017-08-26 Thread CAPITAL FINANCE IN
UNSECURED BUSINESS/PERSONAL LOAN BY LOAN CAPITAL FINANCE - NO COLLATERAL - MINIMUM DOCUMENTATION - BUSINESS LOAN UP TO FIVE(5) MILLION US DOLLARS CONTACT US TODAY VIA EMAIL: finance.incapi...@hotmail.com

[PATCH RFC/RFT] sched/fair: Improve the behavior of sync flag

2017-08-26 Thread Joel Fernandes
Binder (Android's IPC mechanism) which uses sync wake ups during synchronous transactions to the scheduler to indicate that the waker is about to sleep soon. The current wake up path can improved when the sync flag is passed resulting in higher binder performance. In this patch we more strongly wak

[PATCH v2 2/3] rtc: Add Realtek RTD1295

2017-08-26 Thread Andreas Färber
Based on QNAP's arch/arm/mach-rtk119x/driver/rtk_rtc_drv.c code and mach-rtk119x/driver/dc2vo/fpga/include/mis_reg.h register definitions. The base year 2014 was observed on all of Zidoo X9S, ProBox2 Ava and Beelink Lake I. Signed-off-by: Andreas Färber --- v1 -> v2: * Dropped open/release in

[PATCH v2 0/3] arm64: Realtek RTD1295 RTC

2017-08-26 Thread Andreas Färber
Hello, This series adds the RTC for the Realtek RTD1295 SoC. Based on my RTD1295 clk series. There being no public source code for RTD1295, the implementation is based on register offsets seen in the vendor DT, as well as older mach-rtk119x code published by QNAP. The base year is still hardcode

[PATCH v2 1/3] dt-bindings: rtc: Add Realtek RTD1295

2017-08-26 Thread Andreas Färber
Add a binding for the RTC on the Realtek RTD119x/RTD129x SoC families. Acked-by: Rob Herring Signed-off-by: Andreas Färber --- v1 -> v2: Unchanged .../devicetree/bindings/rtc/realtek,rtd119x.txt | 16 1 file changed, 16 insertions(+) create mode 100644 Documentatio

[PATCH v2 3/3] arm64: dts: realtek: Add RTD1295 RTC node

2017-08-26 Thread Andreas Färber
Add RTC node to the Realtek RTD1295 Device Tree. Signed-off-by: Andreas Färber --- v1 -> v2: Unchanged Depends on the pending clock bindings. arch/arm64/boot/dts/realtek/rtd1295.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/

Re: [PATCH v2 14/20] mm: Provide speculative fault infrastructure

2017-08-26 Thread Kirill A. Shutemov
On Fri, Aug 18, 2017 at 12:05:13AM +0200, Laurent Dufour wrote: > +/* > + * vm_normal_page() adds some processing which should be done while > + * hodling the mmap_sem. > + */ > +int handle_speculative_fault(struct mm_struct *mm, unsigned long address, > + unsigned int flag

Re: [PATCH v6 3/5] mm: introduce mmap3 for safely defining new mmap flags

2017-08-26 Thread Kirill A. Shutemov
On Sat, Aug 26, 2017 at 03:46:22PM -0700, Dan Williams wrote: > On Sat, Aug 26, 2017 at 12:50 PM, Helge Deller wrote: > > On 26.08.2017 17:15, Dan Williams wrote: > [..] > >> I have not seen any patches for parisc pmem+dax enabling so it seems > >> too early to worry about these "last mile" enabli

Re: [PATCH] Input: synaptics - fix device info appearing different on reconnect

2017-08-26 Thread Anthony Martin
Any comments on this patch? Thanks, Anthony

Re: [PATCH v6 3/5] mm: introduce mmap3 for safely defining new mmap flags

2017-08-26 Thread Dan Williams
On Sat, Aug 26, 2017 at 12:50 PM, Helge Deller wrote: > On 26.08.2017 17:15, Dan Williams wrote: [..] >> I have not seen any patches for parisc pmem+dax enabling so it seems >> too early to worry about these "last mile" enabling features of >> MAP_DIRECT and MAP_SYNC. In particular parisc doesn't

Re: [PATCH] swap: Remove obsolete sentence

2017-08-26 Thread Jonathan Corbet
On Fri, 25 Aug 2017 14:29:00 +0300 Nikolay Borisov wrote: > Currently there are no ->swap_{in,out} method in address_space_operations > sructure definition, so the statement that anything is going to be proxied > through them is wrong. > > Signed-off-by: Nikolay Borisov > --- > Documentation/f

Re: [PATCH 0/4] Fix problems on building documentation with Sphinx 1.6

2017-08-26 Thread Jonathan Corbet
On Sat, 26 Aug 2017 06:28:24 -0300 Mauro Carvalho Chehab wrote: > IMHO, the best is if I apply patch 2 on my trees. Please apply > patches 1 and 3 on your tree. > > Patch 4 can only be applied after patch 2 gets merged, but it > is just a cleanup patch that can be applied any time later. OK, I

Loan Offer

2017-08-26 Thread test
Do you need a loan @ 3% interest rates? If yes reply now by contacting us via: thomasmarklo...@gmail.com

Re: [PATCH v4 4/5] net: stmmac: dwmac-sun8i: choose internal PHY via phy-is-integrated

2017-08-26 Thread Andrew Lunn
Hi Corentin I think we have now all agreed this is an mdio-mux, plus it is also an MII mux. We should represent that in device tree. This patchset does this. However, as it is now, the mux structure in DT is ignored. All it does is search for the phy-is-integrated flags and goes on that. I made t

[PATCH 1/2] crypto: n2 - remove null check before kfree

2017-08-26 Thread Himanshu Jha
kfree on NULL pointer is a no-op and therefore checking it is redundant. Signed-off-by: Himanshu Jha --- drivers/crypto/n2_core.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/crypto/n2_core.c b/drivers/crypto/n2_core.c index a9fd8b9..48de52c 100644 ---

[PATCH 2/2] crypto: inside-secure - remove null check before kfree

2017-08-26 Thread Himanshu Jha
Kfree on NULL pointer is a no-op and therefore checking is redundant. Signed-off-by: Himanshu Jha --- drivers/crypto/inside-secure/safexcel_hash.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/inside-secure/safexcel_hash.c b/drivers/crypto/inside-secur

[PATCH 0/2] remove NULL check before kfree

2017-08-26 Thread Himanshu Jha
*** BLURB HERE *** Himanshu Jha (2): crypto: n2 - remove null check before kfree crypto: inside-secure - remove null check before kfree drivers/crypto/inside-secure/safexcel_hash.c | 6 ++ drivers/crypto/n2_core.c | 12 2 files changed, 6 insertions(+),

Re: + mm-madvise-fix-freeing-of-locked-page-with-madv_free.patch added to -mm tree

2017-08-26 Thread Eric Biggers
On Fri, Aug 25, 2017 at 04:41:36PM -0700, Mike Kravetz wrote: > > > > If madvise(..., MADV_FREE) split a transparent hugepage, it called > > put_page() before unlock_page(). This was wrong because put_page() can > > free the page, e.g. if a concurrent madvise(..., MADV_DONTNEED) h

[PATCH 3/3] [media] usbvision: Improve a size determination in usbvision_alloc()

2017-08-26 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 26 Aug 2017 22:22:13 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was det

[PATCH] [media] atomisp2: Remove null check before kfree

2017-08-26 Thread Himanshu Jha
Kfree on NULL pointer is a no-op and therefore checking is redundant. Signed-off-by: Himanshu Jha --- .../staging/media/atomisp/pci/atomisp2/css2400/sh_css_firmware.c| 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/

[PATCH 2/3] [media] usbvision: Adjust eight checks for null pointers

2017-08-26 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 26 Aug 2017 22:16:52 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written !… Thus fix the affected source code pl

[PATCH 1/3] [media] usbvision: Delete an error message for a failed memory allocation in usbvision_probe()

2017-08-26 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 26 Aug 2017 22:06:05 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/usbvision/usbvision-video.c | 1 - 1 file changed, 1

[PATCH 0/3] [media] usbvision: Adjustments for six function implementations

2017-08-26 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 26 Aug 2017 22:36:54 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation in usbvision_probe() Adjust eight checks for null pointers Improve a size

Re: [PATCHv3] uapi libc compat: add fallback for unsupported libcs

2017-08-26 Thread Hauke Mehrtens
On 07/29/2017 04:02 PM, Felix Janda wrote: > libc-compat.h aims to prevent symbol collisions between uapi and libc > headers for each supported libc. This requires continuous coordination > between them. > > The goal of this commit is to improve the situation for libcs (such as > musl) which are n

[PATCH] net: ethernet: broadcom: Remove null check before kfree

2017-08-26 Thread Himanshu Jha
Kfree on NULL pointer is a no-op and therefore checking is redundant. Signed-off-by: Himanshu Jha --- drivers/net/ethernet/broadcom/sb1250-mac.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/broadcom/sb1250-mac.c b/drivers/net/ethernet/bro

Re: [PATCH v6 3/5] mm: introduce mmap3 for safely defining new mmap flags

2017-08-26 Thread Helge Deller
On 26.08.2017 17:15, Dan Williams wrote: > On Sat, Aug 26, 2017 at 12:40 AM, Helge Deller wrote: >> * Dan Williams : >>> On Fri, Aug 25, 2017 at 9:19 AM, Helge Deller wrote: On 25.08.2017 18:16, Kirill A. Shutemov wrote: > On Fri, Aug 25, 2017 at 09:02:36AM -0700, Christoph Hellwig wrote

Re: [PATCH v3 36/59] KVM: arm: Select ARM_GIC_V3 and ARM_GIC_V3_ITS

2017-08-26 Thread Christoffer Dall
On Mon, Jul 31, 2017 at 06:26:14PM +0100, Marc Zyngier wrote: > The GICv4 support introduces a hard dependency between the KVM > core and the ITS infrastructure. arm64 already selects it at > the architecture level, but 32bit doesn't. In order to avoid > littering the kernel with #ifdefs, let's jus

Re: [PATCH v3 39/59] KVM: arm/arm64: GICv4: Add property field and per-VM predicate

2017-08-26 Thread Christoffer Dall
On Mon, Jul 31, 2017 at 06:26:17PM +0100, Marc Zyngier wrote: > Add a new has_gicv4 field in the global VGIC state that indicates > whether the HW is GICv4 capable, as a per-VM predicate indicating > if there is a possibility for a VM to support direct injection > (the above being true and the VM h

Re: [PATCH v3 41/59] KVM: arm/arm64: GICv4: Wire mapping/unmapping of VLPIs in VFIO irq bypass

2017-08-26 Thread Christoffer Dall
On Mon, Jul 31, 2017 at 06:26:19PM +0100, Marc Zyngier wrote: > Let's use the irq bypass mechanism introduced for platform device > interrupts to intercept the virtual PCIe endpoint configuration > and establish our LPI->VLPI mapping. > > Signed-off-by: Marc Zyngier > --- > include/kvm/arm_vgic.

Re: [PATCH v3 38/59] KVM: arm/arm64: vITS: Add MSI translation helpers

2017-08-26 Thread Christoffer Dall
On Mon, Jul 31, 2017 at 06:26:16PM +0100, Marc Zyngier wrote: > The whole MSI injection process is fairly monolithic. An MSI write > gets turned into an injected LPI in one swift go. But this is actually > a more fine-grained process: > > - First, a virtual ITS gets selected using the doorbell add

Re: [PATCH v3 40/59] KVM: arm/arm64: GICv4: Add init/teardown of the per-VM vPE irq domain

2017-08-26 Thread Christoffer Dall
On Mon, Jul 31, 2017 at 06:26:18PM +0100, Marc Zyngier wrote: > In order to control the GICv4 view of virtual CPUs, we rely > on an irqdomain allocated for that purpose. Let's add a couple > of helpers to that effect. > > At the same time, the vgic data structures gain new fields to > track all th

Re: [PATCH v3 37/59] KVM: arm/arm64: vgic: Move kvm_vgic_destroy call around

2017-08-26 Thread Christoffer Dall
On Mon, Jul 31, 2017 at 06:26:15PM +0100, Marc Zyngier wrote: > The way we call kvm_vgic_destroy is a bit bizarre. We call it > *after* having freed the vcpus, which sort of defeats the point > of cleaning up things before that point. > > Let's move kvm_vgic_destroy towards the beginning of kvm_ar

Re: I/O hangs after resuming from suspend-to-ram

2017-08-26 Thread Martin Steigerwald
Wols Lists - 26.08.17, 18:17: > On 26/08/17 12:19, Martin Steigerwald wrote: > > Also… when a hang happened the mouse pointer was frozen, Ctrl-Alt-F1 > > didn´t > > work and so on… so it may easily be a completely different issue. > > > > I did not see much point in reporting it so far… as I have

[PATCH] sbus: Delete an error message for a failed memory allocation in uctrl_probe()

2017-08-26 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 26 Aug 2017 21:21:33 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/sbus/char/uctrl.c | 4 +--- 1 file changed, 1 insertion(+), 3

[git pull] Input updates for v4.13-rc6

2017-08-26 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem. You will get: - a tweak to IBM Trackpoint driver that helps recognizing trackpoints on never Lenovo Carbons; - a fix to ALPS driver solving s

Re: [PATCH] iommu/mediatek: Fix a build fail of m4u_type

2017-08-26 Thread Matthias Brugger
On 08/26/2017 09:33 PM, Matthias Brugger wrote: On 08/24/2017 08:24 AM, Yong Wu wrote: The commit ("iommu/mediatek: Enlarge the validate PA range for 4GB mode") introduce the following build error: drivers/iommu/mtk_iommu.c: In function 'mtk_iommu_hw_init': drivers/iommu/mtk_iommu.c:53

Re: [PATCH] iommu/mediatek: Fix a build fail of m4u_type

2017-08-26 Thread Matthias Brugger
On 08/24/2017 08:24 AM, Yong Wu wrote: The commit ("iommu/mediatek: Enlarge the validate PA range for 4GB mode") introduce the following build error: drivers/iommu/mtk_iommu.c: In function 'mtk_iommu_hw_init': drivers/iommu/mtk_iommu.c:536:30: error: 'const struct mtk_iommu_data' has n

[PATCH] pinctrl: Delete an error message for a failed memory allocation in two functions

2017-08-26 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 26 Aug 2017 20:30:04 +0200 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/pinctrl/devicetree.c | 5 + 1 file changed, 1 insertion(

[PATCH] pinctrl: core: Delete an error message for a failed memory allocation in pinctrl_register_map()

2017-08-26 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 26 Aug 2017 20:15:21 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/pinctrl/core.c | 1 - 1 file changed, 1 deletion(-) diff --gi

Re: [PATCH 2/2 v2] sched/wait: Introduce lock breaker in wake_up_page_bit

2017-08-26 Thread Linus Torvalds
On Fri, Aug 25, 2017 at 7:54 PM, Linus Torvalds wrote: > > Simplify, simplify, simplify. I've now tried three different approaches (I stopped sending broken patches after deciding the first one was unfixable), and they all suck. I was hoping for something lockless to avoid the whole issue with l

Re: [PATCH 3/3] mm: Count list_lru_one::nr_items lockless

2017-08-26 Thread Vladimir Davydov
On Wed, Aug 23, 2017 at 03:26:12PM +0300, Kirill Tkhai wrote: > On 23.08.2017 11:27, Vladimir Davydov wrote: > > On Wed, Aug 23, 2017 at 11:00:56AM +0300, Kirill Tkhai wrote: > >> On 22.08.2017 22:47, Vladimir Davydov wrote: > >>> On Tue, Aug 22, 2017 at 03:29:35PM +0300, Kirill Tkhai wrote: >

[PATCH] mm/zswap: constify struct kernel_param_ops uses

2017-08-26 Thread Arvind Yadav
kernel_param_ops are not supposed to change at runtime. All functions working with kernel_param_ops provided by work with const kernel_param_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- mm/zswap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH] power: supply: core: Delete two error messages for a failed memory allocation in power_supply_check_supplies()

2017-08-26 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 26 Aug 2017 19:22:32 +0200 Omit extra messages for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/power/supply/power_supply_core.c | 8 ++-- 1 file changed, 2

Re: I/O hangs after resuming from suspend-to-ram

2017-08-26 Thread Wols Lists
On 26/08/17 12:19, Martin Steigerwald wrote: > Also… when a hang happened the mouse pointer was frozen, Ctrl-Alt-F1 didn´t > work and so on… so it may easily be a completely different issue. > > I did not see much point in reporting it so far… as I have no idea on how to > reliably pin-point the

[PATCH] staging: netlogic: Delete an error message for a failed memory allocation in xlr_config_spill()

2017-08-26 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 26 Aug 2017 18:44:12 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/staging/netlogic/xlr_net.c | 4 +--- 1 file changed, 1 inserti

[PATCH] staging: fsl-mc: Delete an error message for a failed memory allocation in fsl_mc_resource_pool_add_device()

2017-08-26 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 26 Aug 2017 18:23:52 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/staging/fsl-mc/bus/fsl-mc-allocator.c | 2 -- 1 file changed,

Linux 3.2.92

2017-08-26 Thread Ben Hutchings
I'm announcing the release of the 3.2.92 kernel. All users of the 3.2 kernel series should upgrade. The updated 3.2.y git tree can be found at: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.2.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH v2] [media] usb: make video_device const

2017-08-26 Thread isely
Acked-by: Mike Isely -Mike On Sat, 26 Aug 2017, Bhumika Goyal wrote: > Make these const as they are only used during a copy operation. > > Signed-off-by: Bhumika Goyal > --- > Changes in v2: > * Combine the patch series sent for drivers/media/usb/ into a > single patch. > > drivers/medi

Re: [PATCH] Staging rtlwifi efuse fix up a warning kzalloc

2017-08-26 Thread Joe Perches
On Sat, 2017-08-26 at 09:48 -0500, Larry Finger wrote: > I will NACK every > patch that tries to force code that I maintain to use kcalloc over kzalloc. Your choice. The concept behind the kzalloc with multiply vs kcalloc is protection against multiplication overflow. It's unlikely to solve any

[PATCH] video: fbdev: make fb_videomode const

2017-08-26 Thread Bhumika Goyal
Make these const as they are only passed to a const argument of the function fb_find_mode. Done using Coccinelle. @match disable optional_qualifier@ identifier s; @@ static struct fb_videomode s = {...}; @ref@ position p; identifier match.s; @@ s@p @good1@ identifier match.s; expression list[5]

[PATCH v5] mtd: nand: Use standard large page OOB layout when using NAND_ECC_NONE

2017-08-26 Thread Miquel Raynal
Use the core's large page OOB layout functions when not reserving any space for ECC bytes in the OOB layout. Fix ->nand_ooblayout_ecc_lp() to return -ERANGE instead of a zero length in this case. Signed-off-by: Miquel Raynal --- drivers/mtd/nand/nand_base.c | 15 ++- 1 file changed,

Re: [PATCH v6 3/5] mm: introduce mmap3 for safely defining new mmap flags

2017-08-26 Thread Dan Williams
On Sat, Aug 26, 2017 at 12:40 AM, Helge Deller wrote: > * Dan Williams : >> On Fri, Aug 25, 2017 at 9:19 AM, Helge Deller wrote: >> > On 25.08.2017 18:16, Kirill A. Shutemov wrote: >> >> On Fri, Aug 25, 2017 at 09:02:36AM -0700, Christoph Hellwig wrote: >> >>> On Fri, Aug 25, 2017 at 06:58:03PM +

Re: [PATCH v2] ASoC: Add a sanity check before using dai driver name

2017-08-26 Thread Donglin Peng
> help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Jeffy-Chen/ASoC-Add-a-sanity-check-before-using-dai-driver-name/20170826-195851 > base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git > for-next > config: x86_64-randc

Re: [patch V2 35/44] x86/idt: Switch early trap init to IDT tables

2017-08-26 Thread Boris Ostrovsky
On 08/26/2017 09:05 AM, Thomas Gleixner wrote: What occured to me right now, is that the patch removes: load_idt(&idt_descr); from the original function without adding it to the new one. Right, that's exactly what was broken for Xen. So that needs to be fixed, but not in the XEN

[tip:WIP.x86/apic 37/46] arch/x86/kernel/traps.c:892:1: error: 'xo' undeclared

2017-08-26 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/apic head: 6acaab8814cf6c7f77c1ee2e1ed266509573d5b4 commit: 8f1d566bc1f0f6e055a46728bfd906dd74a3f74c [37/46] x86/idt: Switch early trap init to IDT tables config: x86_64-allmodconfig (attached as .config) compiler: gcc-6

  1   2   3   >