Re: [PATCH 4/4] sched/fair: Use a recently used CPU as an idle candidate and the basis for SIS

2018-01-31 Thread Peter Zijlstra
On Wed, Jan 31, 2018 at 10:22:49AM +0100, Rafael J. Wysocki wrote: > On Tuesday, January 30, 2018 2:15:31 PM CET Peter Zijlstra wrote: > > IA32_HWP_REQUEST has "Minimum_Performance", "Maximum_Performance" and > > "Desired_Performance" fields which can be used to give explicit > > frequency hints.

[RFCv2 05/17] media: Document the media request API

2018-01-31 Thread Alexandre Courbot
From: Laurent Pinchart The media request API is made of a new ioctl to implement request management. Document it. Signed-off-by: Laurent Pinchart [acour...@chromium.org: adapt for newest API] Signed-off-by: Alexandre Courbot --- Documentation/media/uapi/mediactl/media-funcs.rst | 1 + .../

[RFCv2 00/17] Request API, take three

2018-01-31 Thread Alexandre Courbot
This is a quickly-put together revision that includes and uses Hans' work to use v4l2_ctrl_handler as the request state holder for V4L2 devices. Although minor fixes have also been applied, there are still a few comments from the previous revision that are left unaddressed. I wanted to give Hans so

[RFCv2 09/17] v4l2-ctrls: use ref in helper instead of ctrl

2018-01-31 Thread Alexandre Courbot
From: Hans Verkuil The next patch needs the reference to a control instead of the control itself, so change struct v4l2_ctrl_helper accordingly. Signed-off-by: Hans Verkuil Signed-off-by: Alexandre Courbot --- drivers/media/v4l2-core/v4l2-ctrls.c | 18 +- 1 file changed, 9 ins

[RFCv2 03/17] media: videobuf2: add support for requests

2018-01-31 Thread Alexandre Courbot
Make vb2 aware of requests. Drivers can specify whether a given queue can accept requests or not. Queues that accept requests will block on a buffer that is part of a request until that request is submitted. Signed-off-by: Alexandre Courbot --- drivers/media/v4l2-core/videobuf2-core.c | 133

[RFCv2 06/17] v4l2-ctrls: v4l2_ctrl_add_handler: add from_other_dev

2018-01-31 Thread Alexandre Courbot
From: Hans Verkuil Add a 'bool from_other_dev' argument: set to true if the two handlers refer to different devices (e.g. it is true when inheriting controls from a subdev into a main v4l2 bridge driver). This will be used later when implementing support for the request API since we need to skip

[RFCv2 11/17] v4l2-ctrls: add v4l2_ctrl_request_setup

2018-01-31 Thread Alexandre Courbot
From: Hans Verkuil Add a helper function that can set controls from a request. Signed-off-by: Hans Verkuil Signed-off-by: Alexandre Courbot --- drivers/media/v4l2-core/v4l2-ctrls.c | 71 include/media/v4l2-ctrls.h | 2 + 2 files changed, 73 inse

[RFCv2 07/17] v4l2-ctrls: prepare internal structs for request API

2018-01-31 Thread Alexandre Courbot
From: Hans Verkuil Add a refcount and is_request bool to struct v4l2_ctrl_handler: this is used to refcount a handler that represents a request. Add a p_req field to struct v4l2_ctrl_ref that will store the request value. Signed-off-by: Hans Verkuil Signed-off-by: Alexandre Courbot --- drive

[RFCv2 08/17] v4l2-ctrls: add core request API

2018-01-31 Thread Alexandre Courbot
From: Hans Verkuil Add the four core request functions: v4l2_ctrl_request_init() initializes a new (empty) request. v4l2_ctrl_request_clone() resets a request based on another request (or clears it if that request is NULL). v4l2_ctrl_request_get(): increase refcount v4l2_ctrl_request_put(): decr

[RFCv2 17/17] media: vim2m: add request support

2018-01-31 Thread Alexandre Courbot
Set the necessary ops for supporting requests in vim2m. Signed-off-by: Alexandre Courbot --- drivers/media/platform/vim2m.c | 55 ++ 1 file changed, 55 insertions(+) diff --git a/drivers/media/platform/vim2m.c b/drivers/media/platform/vim2m.c index a32e8a

[RFCv2 15/17] v4l2: document the request API interface

2018-01-31 Thread Alexandre Courbot
Document how the request API can be used along with the existing V4L2 interface. Signed-off-by: Alexandre Courbot --- Documentation/media/uapi/v4l/buffer.rst| 10 +- Documentation/media/uapi/v4l/common.rst| 1 + Documentation/media/uapi/v4l/request-api.rst | 236

[RFCv2 16/17] media: vim2m: add media device

2018-01-31 Thread Alexandre Courbot
Request API requires a media node. Add one to the vim2m driver so we can use requests with it. Signed-off-by: Alexandre Courbot --- drivers/media/platform/vim2m.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/media/platform/vim2m.c b/drivers/media/platform

[RFCv2 14/17] v4l2-ctrls: support requests in EXT_CTRLS ioctls

2018-01-31 Thread Alexandre Courbot
Read and use the request_fd field of struct v4l2_ext_controls to apply VIDIOC_G_EXT_CTRLS or VIDIOC_S_EXT_CTRLS to a request when asked by userspace. Signed-off-by: Alexandre Courbot --- drivers/media/v4l2-core/v4l2-ioctl.c | 36 1 file changed, 36 insertions

Re: [PATCH 20/24] objtool: Another static block fail

2018-01-31 Thread Peter Zijlstra
On Wed, Jan 31, 2018 at 10:07:06AM +, David Woodhouse wrote: > On Wed, 2018-01-31 at 11:01 +0100, Peter Zijlstra wrote: > > On Tue, Jan 30, 2018 at 09:12:21PM -0600, Josh Poimboeuf wrote: > > >  > > > Or, maybe we should just forget the whole thing and just stick with the > > > dynamic IBRS che

[RFCv2 10/17] v4l2-ctrls: support g/s_ext_ctrls for requests

2018-01-31 Thread Alexandre Courbot
From: Hans Verkuil The v4l2_g/s_ext_ctrls functions now support control handlers that represent requests. Signed-off-by: Hans Verkuil Signed-off-by: Alexandre Courbot --- drivers/media/v4l2-core/v4l2-ctrls.c | 37 1 file changed, 33 insertions(+), 4 deleti

[RFCv2 13/17] videodev2.h: add request_fd field to v4l2_ext_controls

2018-01-31 Thread Alexandre Courbot
Allow to specify a request to be used with the S_EXT_CTRLS and G_EXT_CTRLS operations. Signed-off-by: Alexandre Courbot --- include/uapi/linux/videodev2.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 8

[RFCv2 12/17] v4l2: add request API support

2018-01-31 Thread Alexandre Courbot
Add a v4l2 request entity data structure that takes care of storing the request-related state of a V4L2 device ; in this case, its controls. Signed-off-by: Alexandre Courbot --- drivers/media/v4l2-core/Makefile | 2 +- drivers/media/v4l2-core/v4l2-request.c | 54 ++

[RFCv2 04/17] media: vb2: add support for requests in QBUF ioctl

2018-01-31 Thread Alexandre Courbot
Support the request argument of the QBUF ioctl. Signed-off-by: Alexandre Courbot --- drivers/media/v4l2-core/v4l2-ioctl.c | 83 +++- 1 file changed, 82 insertions(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-

[RFCv2 01/17] media: add request API core and UAPI

2018-01-31 Thread Alexandre Courbot
The request API provides a way to group buffers and device parameters into units of work to be queued and executed. This patch introduces the UAPI and core framework. This patch is based on the previous work by Laurent Pinchart. The core has changed considerably, but the UAPI is mostly untouched.

[RFCv2 02/17] videodev2.h: Add request_fd field to v4l2_buffer

2018-01-31 Thread Alexandre Courbot
From: Hans Verkuil When queuing buffers allow for passing the request that should be associated with this buffer. Signed-off-by: Hans Verkuil [acour...@chromium.org: make request ID 32-bit] Signed-off-by: Alexandre Courbot --- drivers/media/usb/cpia2/cpia2_v4l.c | 2 +- drivers/medi

Re: [PATCH] mmc: MMC_SDHI_{SYS,INTERNAL}_DMAC should depend on HAS_DMA

2018-01-31 Thread Ulf Hansson
On 30 January 2018 at 14:24, Geert Uytterhoeven wrote: > If NO_DMA=y: > > ERROR: "bad_dma_ops" [drivers/mmc/host/renesas_sdhi_sys_dmac.ko] > undefined! > ERROR: "bad_dma_ops" [drivers/mmc/host/renesas_sdhi_internal_dmac.ko] > undefined! > > Add dependencies on HAS_DMA to fix this. > > Fi

Re: [PATCH v2] clk: qcom: Add Global Clock controller (GCC) driver for SDM845

2018-01-31 Thread Nischal, Amit
On 1/27/2018 5:26 AM, Stephen Boyd wrote: On 01/22, Amit Nischal wrote: Add support for the global clock controller found on SDM845 based devices. This should allow most non-multimedia device drivers to probe and control their clocks. Signed-off-by: Taniya Das Is Taniya the author? Should b

Re: [PATCH v8 07/11] media: i2c: ov772x: Support frame interval handling

2018-01-31 Thread Laurent Pinchart
Hi Jacopo, Thank you for the patch. On Tuesday, 30 January 2018 11:58:18 EET Jacopo Mondi wrote: > Add support to ov772x driver for frame intervals handling and enumeration. > Tested with 10MHz and 24MHz input clock at VGA and QVGA resolutions for > 10, 15 and 30 frame per second rates. > > Sign

Re: [PATCH 05/10] Staging: rtl8192e: kconfig: Remove empty help text

2018-01-31 Thread Dan Carpenter
On Wed, Jan 31, 2018 at 10:52:08AM +0100, Ulf Magnusson wrote: > On Wed, Jan 31, 2018 at 9:46 AM, Dan Carpenter > wrote: > > On Wed, Jan 31, 2018 at 09:41:24AM +0100, Ulf Magnusson wrote: > >> On Wed, Jan 31, 2018 at 9:06 AM, Dan Carpenter > >> wrote: > >> > On Tue, Jan 30, 2018 at 08:05:27PM +

Applied "ASoC: mt8173-rt5650: fix child-node lookup" to the asoc tree

2018-01-31 Thread Mark Brown
The patch ASoC: mt8173-rt5650: fix child-node lookup has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Li

Re: [PATCH 4/4] rtc: isl1208: add support for isl1219 with hwmon for tamper detection

2018-01-31 Thread Alexandre Belloni
On 30/01/2018 at 06:15:18 -0800, Guenter Roeck wrote: > On 01/30/2018 03:40 AM, Denis OSTERLAND wrote: > > Am Dienstag, den 30.01.2018, 11:27 +0100 schrieb Alexandre Belloni: > > > On 29/01/2018 at 13:59:19 -0800, Guenter Roeck wrote: > > > > > > > > On Wed, Jan 24, 2018 at 10:03:33AM +0100, Micha

[PATCH 1/4] clk: qcom: Clear hardware clock control bit of RCG

2018-01-31 Thread Amit Nischal
For upcoming targets like sdm845, POR value of the hardware clock control bit is set for most of root clocks which needs to be cleared for software to be able to control. For older targets like MSM8996, this bit is reserved bit and having POR value as 0 so this patch will work for the older targets

[PATCH 3/4] clk: qcom: Add support for controlling Fabia PLL

2018-01-31 Thread Amit Nischal
Fabia PLL is a Digital Frequency Locked Loop (DFLL) clock generator which has a wide range of frequency output. It supports dynamic updating of the output frequency ("frequency slewing") without need to turn off the PLL before configuration. Add support for initial configuration and programming seq

Re: [PATCH v2] iio: accel: bmc150: Check for a second ACPI device for BOSC0200

2018-01-31 Thread Jonathan Cameron
On Tue, 30 Jan 2018 23:20:28 +0200 Andy Shevchenko wrote: > On Tue, Jan 30, 2018 at 10:12 PM, Andy Shevchenko > wrote: > > On Tue, Jan 30, 2018 at 9:27 PM, Steven Presser > > wrote: > >> On 01/30/2018 02:05 PM, Andy Shevchenko wrote: > >>> On Tue, Jan 30, 2018 at 8:34 PM, Steven Presser >

[PATCH 4/4] clk: qcom: Add Global Clock controller (GCC) driver for SDM845

2018-01-31 Thread Amit Nischal
From: Taniya Das Add support for the global clock controller found on SDM845 based devices. This should allow most non-multimedia device drivers to probe and control their clocks. Signed-off-by: Taniya Das Signed-off-by: Amit Nischal --- .../devicetree/bindings/clock/qcom,gcc.txt |

[PATCH 0/4] Misc patches to support clocks for SDM845

2018-01-31 Thread Amit Nischal
This patch series does the miscellaneous changes to support clock nodes for SDM845. Below are the major changes for which the existing code does not have support. 1. Clear hardware clock control bit of RCGs where HW clock control bit is set by default so that software can control those root

[PATCH 2/4] clk: qcom: Configure the RCGs to a safe source as needed

2018-01-31 Thread Amit Nischal
For some root clock generators, there could be child branches which are controlled by an entity other than application processor subsystem. For such RCGs, as per application processor subsystem clock driver, all of its downstream clocks are disabled and RCG is in disabled state but in actual downst

Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure

2018-01-31 Thread Dr. David Alan Gilbert
* Thomas Gleixner (t...@linutronix.de) wrote: > On Wed, 31 Jan 2018, Christophe de Dinechin wrote: > > > On 30 Jan 2018, at 21:46, Alan Cox wrote: > > > > > >> If you are ever going to migrate to Skylake, I think you should just > > >> always tell the guests that you're running on Skylake. That w

Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure

2018-01-31 Thread Christophe de Dinechin
> On 31 Jan 2018, at 11:15, Thomas Gleixner wrote: > > On Wed, 31 Jan 2018, Christophe de Dinechin wrote: >>> On 30 Jan 2018, at 21:46, Alan Cox wrote: >>> If you are ever going to migrate to Skylake, I think you should just always tell the guests that you're running on Skylake. Tha

Re: [PATCH 1/5] backlight: lp8788: document sysfs attributes

2018-01-31 Thread Daniel Thompson
On Fri, Jan 26, 2018 at 08:20:08PM +0530, Aishwarya Pant wrote: > Add documentation for sysfs interfaces of lp8788 backlight driver by > looking through the code and the git commit history. > > Signed-off-by: Aishwarya Pant > --- > Documentation/ABI/testing/sysfs-class-backlight-lp8788 | 10

Re: [PATCH] virtio_balloon: use non-blocking allocation

2018-01-31 Thread Tetsuo Handa
Michael S. Tsirkin wrote: > On Tue, Jan 02, 2018 at 11:50:21PM +0900, Tetsuo Handa wrote: > > Commit c7cdff0e864713a0 ("virtio_balloon: fix deadlock on OOM") tried to > > avoid OOM lockup by moving memory allocations to outside of balloon_lock. > > > > Now, Wei is trying to allocate far more pages

Re: [PATCH] arch/arm/Kconfig: enable ARM_MODULE_PLTS when LOCKDEP=y

2018-01-31 Thread kbuild test robot
/linux/commits/Anders-Roxell/arch-arm-Kconfig-enable-ARM_MODULE_PLTS-when-LOCKDEP-y/20180131-115917 config: arm-moxart_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin

Re: [RFC PATCH 1/2] hv_netvsc: Split netvsc_revoke_buf() and netvsc_teardown_gpadl()

2018-01-31 Thread Mohammed Gamal
On Tue, 2018-01-30 at 11:29 -0800, Stephen Hemminger wrote: > On Tue, 23 Jan 2018 10:34:04 +0100 > Mohammed Gamal wrote: > > > Split each of the functions into two for each of send/recv buffers > > > > Signed-off-by: Mohammed Gamal > > Splitting these functions is not necessary How so? We nee

Re: 4.15: WARNING: CPU: 3 PID: 258 at kernel/irq/chip.c:244 __irq_startup+0x80/0x100

2018-01-31 Thread Meelis Roos
> > I'll do a proper fix and queue it so your museum is kept alive. Thank you. > Museum, space heater and ventilation system all in one? :-) Actually, I do have a computer museum that is open for groups in Tartu, Estonia, at University of Tartu, Institute of Computer Science. But this museum d

Re: [PATCH] arch/arm/Kconfig: enable ARM_MODULE_PLTS when LOCKDEP=y

2018-01-31 Thread Arnd Bergmann
On Tue, Jan 30, 2018 at 12:57 AM, Russell King - ARM Linux wrote: > On Tue, Jan 30, 2018 at 12:49:00AM +0100, Anders Roxell wrote: >> While testing multi_v7_defconfig with LOCKDEP enabled, the kernel >> fails to load simple modules, as reported by kselftest: >> >> [ 34.107620] test_printf: secti

Re: [PATCH] staging: android: ion: minor cleanup for ion_page_pool

2018-01-31 Thread Greg KH
On Wed, Jan 31, 2018 at 05:50:52PM +0800, Yisheng Xie wrote: > ion_page_pool.c now is used to apply pool APIs for system heap, which do > not need do any initial at device_initcall. > > Meanwhile, this patch also remove some useless include files. Please only do one thing per patch, otherwise if

Re: [PATCH 3/5] backlight: lm3639: document sysfs attributes

2018-01-31 Thread Daniel Thompson
On Fri, Jan 26, 2018 at 08:23:57PM +0530, Aishwarya Pant wrote: > Add documentation for sysfs interfaces of Texas Instruments lm3639 > backlight + flash led driver chip by looking through git commits and > reading code. > > Signed-off-by: Aishwarya Pant > --- > Documentation/ABI/testing/sysfs-cl

Re: [PATCH] samples/bpf: Add program for CPU state statistics

2018-01-31 Thread Leo Yan
Hi Jesper, On Wed, Jan 31, 2018 at 10:14:27AM +0100, Jesper Dangaard Brouer wrote: > On Wed, 31 Jan 2018 02:29:59 +0800 > Leo Yan wrote: > > > CPU 0 > > State: Duration(ms) Distribution > > cstate 0 : 47555|* | > > cstate 1 : 0|

Re: [PATCH v2] iio: accel: bmc150: Check for a second ACPI device for BOSC0200

2018-01-31 Thread Hans de Goede
H5, On 01/30/2018 06:38 PM, Andy Shevchenko wrote: On Tue, Jan 30, 2018 at 7:25 PM, Steve Presser wrote: Andy, Where did the assertion the second device is a magnetometer come from? Just the data sheet? Yep. See chapter 8.2. Isn't enough proof? Or you believe in two accelerometers with off-

Re: [PATCH] arch/arm/Kconfig: enable ARM_MODULE_PLTS when LOCKDEP=y

2018-01-31 Thread Russell King - ARM Linux
On Wed, Jan 31, 2018 at 12:25:33PM +0100, Arnd Bergmann wrote: > On Tue, Jan 30, 2018 at 12:57 AM, Russell King - ARM Linux > wrote: > > On Tue, Jan 30, 2018 at 12:49:00AM +0100, Anders Roxell wrote: > >> While testing multi_v7_defconfig with LOCKDEP enabled, the kernel > >> fails to load simple m

Re: [PATCH 1/5] backlight: lp8788: document sysfs attributes

2018-01-31 Thread Jani Nikula
On Wed, 31 Jan 2018, Daniel Thompson wrote: > On Fri, Jan 26, 2018 at 08:20:08PM +0530, Aishwarya Pant wrote: >> Add documentation for sysfs interfaces of lp8788 backlight driver by >> looking through the code and the git commit history. >> >> Signed-off-by: Aishwarya Pant >> --- >> Documentati

Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure

2018-01-31 Thread Borislav Petkov
On Wed, Jan 31, 2018 at 11:04:07AM +, Dr. David Alan Gilbert wrote: > That half is the easy bit, we've already got that (thanks to Eduardo), > QEMU has -IBRS variants of CPU types, so if you start a VM with > -cpu Broadwell-IBRS Eww, a CPU model with a specific feature bit. I hope you guys don

Re: [PATCH 4/4] sched/fair: Use a recently used CPU as an idle candidate and the basis for SIS

2018-01-31 Thread Mel Gorman
On Wed, Jan 31, 2018 at 11:17:10AM +0100, Peter Zijlstra wrote: > On Wed, Jan 31, 2018 at 10:22:49AM +0100, Rafael J. Wysocki wrote: > > On Tuesday, January 30, 2018 2:15:31 PM CET Peter Zijlstra wrote: > > > > IA32_HWP_REQUEST has "Minimum_Performance", "Maximum_Performance" and > > > "Desired_Pe

Re: [PATCH v3] Fix loading of module radeonfb on PowerMac

2018-01-31 Thread Bartlomiej Zolnierkiewicz
On Tuesday, January 30, 2018 02:14:10 PM Mathieu Malaterre wrote: > Bartlomiej, > > On Wed, Jan 3, 2018 at 3:47 PM, Bartlomiej Zolnierkiewicz > wrote: > > > > On Thursday, December 21, 2017 11:07:56 PM Mathieu Malaterre wrote: > >> When the linux kernel is build with (typical kernel ship with Deb

Re: 4.15: WARNING: CPU: 3 PID: 258 at kernel/irq/chip.c:244 __irq_startup+0x80/0x100

2018-01-31 Thread Ingo Molnar
* Meelis Roos wrote: > > > I'll do a proper fix and queue it so your museum is kept alive. > > Thank you. > > > Museum, space heater and ventilation system all in one? :-) > > Actually, I do have a computer museum that is open for groups in Tartu, > Estonia, at University of Tartu, Institute

Re: [PATCH v2 1/2] Add notrace to lib/ucmpdi2.c

2018-01-31 Thread Matt Redfearn
Hi On 30/01/18 22:42, Antony Pavlov wrote: From: Palmer Dabbelt As part of the MIPS conversion to use the generic GCC library routines, Matt Redfearn discovered that I'd missed a notrace on __ucmpdi2(). This patch rectifies the problem. CC: Matt Redfearn CC: Antony Pavlov Signed-off-by: Pa

Re: [PATCH v2 2/2] MIPS: use generic GCC library routines from lib/

2018-01-31 Thread Matt Redfearn
Hi, On 30/01/18 22:42, Antony Pavlov wrote: The commit b35cd9884fa5 ("lib: Add shared copies of some GCC library routines") makes it possible to share generic GCC library routines by several architectures. This commit removes several generic GCC library routines from arch/mips/lib/ in favour of

Re: [PATCH v6 5/6] iommu/arm-smmu: Add support for qcom,smmu-v2 variant

2018-01-31 Thread Vivek Gautam
On 1/30/2018 1:12 AM, Rob Herring wrote: On Fri, Jan 19, 2018 at 05:13:42PM +0530, Vivek Gautam wrote: qcom,smmu-v2 is an arm,smmu-v2 implementation with specific clock and power requirements. This smmu core is used with multiple masters on msm8996, viz. mdss, video, etc. Add bindings for the

Re: kernel BUG at drivers/android/binder_alloc.c:LINE!

2018-01-31 Thread Dmitry Vyukov
On Wed, Jan 31, 2018 at 9:08 AM, Dan Carpenter wrote: > On Tue, Jan 30, 2018 at 11:59:47PM -0800, Eric Biggers wrote: >> On Fri, Dec 01, 2017 at 04:22:00PM -0800, syzbot wrote: >> > syzkaller has found reproducer for the following crash on >> > 3c1c4ddffb58b9e10b3365764fe59546130b3f32 >> > git://g

Re: [PATCH v2] i2c: i801: Register optional lis3lv02d i2c device on Dell machines

2018-01-31 Thread Pali Rohár
On Sunday 28 January 2018 17:00:35 Andy Shevchenko wrote: > On Sun, Jan 28, 2018 at 4:45 PM, Pali Rohár wrote: > > On Sunday 28 January 2018 16:39:25 Andy Shevchenko wrote: > >> On Sat, Jan 27, 2018 at 3:32 PM, Pali Rohár wrote: > >> > +static bool is_dell_system_with_lis3lv02d(void) > >> > +{ >

[PATCH v3] staging: android: ion: Add implementation of dma_buf_vmap and dma_buf_vunmap

2018-01-31 Thread Alexey Skidanov
Any driver may access shared buffers, created by ion, using dma_buf_vmap and dma_buf_vunmap dma-buf API that maps/unmaps previosuly allocated buffers into the kernel virtual address space. The implementation of these API is missing in the current ion implementation. Signed-off-by: Alexey Skidanov

Re: [PATCH] clk: sunxi-ng: ccu-sun4i-a10: Fix mali changing dclk frequency

2018-01-31 Thread Giulio Benetti
Hi, Il 31/01/2018 09:43, Maxime Ripard ha scritto: Hi, On Wed, Jan 31, 2018 at 12:23:59AM +0100, Giulio Benetti wrote: When mali.ko is inserted, it set default clocks and call all parent clocks to stay into range, causing pll-video0 to change and subsequently to change dclk to wrong frequencie

RE: [PATCH 1/2] acpi: arm64: add iort support for PMCG

2018-01-31 Thread Shameerali Kolothum Thodi
Hi Lorenzo, > -Original Message- > From: Lorenzo Pieralisi [mailto:lorenzo.pieral...@arm.com] > Sent: Tuesday, January 30, 2018 6:00 PM > To: Shameerali Kolothum Thodi > Cc: Neil Leeder ; Mark Langsdorf > ; Jon Masters ; Timur Tabi > ; linux-kernel@vger.kernel.org; Mark Brown > ; Mark Sal

Re: [PATCH] arch/arm/Kconfig: enable ARM_MODULE_PLTS when LOCKDEP=y

2018-01-31 Thread kbuild test robot
/commits/Anders-Roxell/arch-arm-Kconfig-enable-ARM_MODULE_PLTS-when-LOCKDEP-y/20180131-115917 config: arm-moxart_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O

Re: [RFC PATCH 3/8] media: videobuf2: add support for requests

2018-01-31 Thread Sakari Ailus
Hi Alexandre, On Fri, Jan 26, 2018 at 03:02:11PM +0900, Alexandre Courbot wrote: > Make vb2 aware of requests. Drivers can specify whether a given queue > can accept requests or not. Queues that accept requests will block on a > buffer that is part of a request until that request is submitted. >

[PATCH] locking/qspinlock: Ensure node is initialised before updating prev->next

2018-01-31 Thread Will Deacon
When a locker ends up queuing on the qspinlock locking slowpath, we initialise the relevant mcs node and publish it indirectly by updating the tail portion of the lock word using xchg_tail. If we find that there was a pre-existing locker in the queue, we subsequently update their ->next field to po

Re: [PATCH v6 2/6] iommu/arm-smmu: Add pm_runtime/sleep ops

2018-01-31 Thread Robin Murphy
On 19/01/18 11:43, Vivek Gautam wrote: From: Sricharan R The smmu needs to be functional only when the respective master's using it are active. The device_link feature helps to track such functional dependencies, so that the iommu gets powered when the master device enables itself using pm_runt

Re: [PATCH] libceph: use 64-bit arithmetic instead of 32-bit

2018-01-31 Thread Gustavo A. R. Silva
Hello Ilya, Quoting Ilya Dryomov : On Wed, Jan 31, 2018 at 6:29 AM, Gustavo A. R. Silva wrote: Cast objsetno to u64 in order to give the compiler complete information about the proper arithmetic to use. Notice that this variable is used in a context that expects an expression of type u64 (64

Re: [PATCH v2] iio: accel: bmc150: Check for a second ACPI device for BOSC0200

2018-01-31 Thread Andy Shevchenko
On Wed, Jan 31, 2018 at 1:43 PM, Hans de Goede wrote: > On 01/30/2018 06:38 PM, Andy Shevchenko wrote: >> On Tue, Jan 30, 2018 at 7:25 PM, Steve Presser >> wrote: >> Yep. See chapter 8.2. Isn't enough proof? Or you believe in two >> accelerometers with off-by-one conflicting address on a cheap l

Re: [PATCH v2] i2c: i801: Register optional lis3lv02d i2c device on Dell machines

2018-01-31 Thread Andy Shevchenko
On Wed, Jan 31, 2018 at 2:03 PM, Pali Rohár wrote: > On Sunday 28 January 2018 17:00:35 Andy Shevchenko wrote: >> On Sun, Jan 28, 2018 at 4:45 PM, Pali Rohár wrote: >> > ACPI device name is SMO8800, SMO8810, ... Will that acpi_dev_present >> > function match only prefix and not exact string? >>

Re: [PATCH v2] iversion: make inode_cmp_iversion{+raw} return bool instead of s64

2018-01-31 Thread Jeff Layton
On Tue, 2018-01-30 at 12:53 -0800, Linus Torvalds wrote: > Ack. Should I expect this in a future pull request, or take it directly? > > There's no hurry about this, since none of the existing users of that > function actually do anything but test the return value against zero, > and nobody saves i

Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure

2018-01-31 Thread Dr. David Alan Gilbert
* Borislav Petkov (b...@suse.de) wrote: > On Wed, Jan 31, 2018 at 11:04:07AM +, Dr. David Alan Gilbert wrote: > > That half is the easy bit, we've already got that (thanks to Eduardo), > > QEMU has -IBRS variants of CPU types, so if you start a VM with > > -cpu Broadwell-IBRS > > Eww, a CPU mo

Re: [PATCH 1/2] acpi: arm64: add iort support for PMCG

2018-01-31 Thread Lorenzo Pieralisi
On Wed, Jan 31, 2018 at 12:10:47PM +, Shameerali Kolothum Thodi wrote: [...] > > I went back and re-read the patches, I think the point here is that the > > perf driver (ie PATCH 2 that, by the way, is not maiinline) uses > > devm_ioremap_resource() to map the counters and that's what is caus

Re: [PATCH] locking/qspinlock: Ensure node is initialised before updating prev->next

2018-01-31 Thread Peter Zijlstra
On Wed, Jan 31, 2018 at 12:20:46PM +, Will Deacon wrote: > diff --git a/kernel/locking/qspinlock.c b/kernel/locking/qspinlock.c > index 294294c71ba4..1ebbc366a31d 100644 > --- a/kernel/locking/qspinlock.c > +++ b/kernel/locking/qspinlock.c > @@ -408,16 +408,15 @@ void queued_spin_lock_slowpath(

Re: [PATCH V2] print kdump kernel loaded status in stack dump

2018-01-31 Thread Simon Horman
On Sat, Jan 27, 2018 at 12:11:29PM +0800, Dave Young wrote: > It is useful to print kdump kernel loaded status in dump_stack() > especially when panic happens so that we can differenciate > kdump kernel early hang and a normal panic in a bug report. > > Signed-off-by: Dave Young Reviewed-by: S

Re: [PATCH v8 07/11] media: i2c: ov772x: Support frame interval handling

2018-01-31 Thread jacopo mondi
Hi Laurent, thanks for review Resuming here the brief conversation on #v4l with you and Hans... On Wed, Jan 31, 2018 at 12:34:59PM +0200, Laurent Pinchart wrote: > Hi Jacopo, > > Thank you for the patch. > > On Tuesday, 30 January 2018 11:58:18 EET Jacopo Mondi wrote: > > Add support to ov772

Re: [PATCH] drivers: regulator: fan53555: fixed a coding style issue

2018-01-31 Thread Andy Shevchenko
On Wed, Jan 31, 2018 at 2:14 AM, Erik Mansson wrote: > Fixed a couple of badly formatted comments. > + /* > +* Cache the sleep voltage setting. > +* Might not be the real voltage which is rounded > +*/ Isn't a right time to add a period at the end of sentence? --

Re: [PATCH v3 33/43] drm/panel: simple: Change mode for Sharp lq123p1jx31

2018-01-31 Thread Lucas Stach
Am Dienstag, den 30.01.2018, 21:29 +0100 schrieb Thierry Escande: > From: Sean Paul > > Change the mode for Sharp lq123p1jx31 panel to something more > rockchip-friendly such that we can use the fixed PLLs to > generate the pixel clock This should really switch to a display timing instead of exp

Re: [PATCH] ocxl: fix signed comparison with less than zero

2018-01-31 Thread Frederic Barrat
Le 30/01/2018 à 16:11, Colin King a écrit : From: Colin Ian King Currently the comparison of used < 0 is always false because uses is a size_t. Fix this by making used a ssize_t type. Detected by Coccinelle: drivers/misc/ocxl/file.c:320:6-10: WARNING: Unsigned expression compared with zero:

Re: [PATCH] wireless: zd1211rw: remove redundant assignment of pointer 'q'

2018-01-31 Thread Andy Shevchenko
On Tue, Jan 30, 2018 at 8:25 PM, Colin King wrote: > From: Colin Ian King > > Pointer q is initialized and then almost immediately afterwards being > re-assigned the same value. Remove the second redundant assignment. > Don't you see strange that in the same context of the patch two users of q a

Re: [PATCH v3] staging: android: ion: Add implementation of dma_buf_vmap and dma_buf_vunmap

2018-01-31 Thread Greg KH
On Wed, Jan 31, 2018 at 02:03:42PM +0200, Alexey Skidanov wrote: > Any driver may access shared buffers, created by ion, using dma_buf_vmap and > dma_buf_vunmap dma-buf API that maps/unmaps previosuly allocated buffers into > the kernel virtual address space. The implementation of these API is miss

asm-generic: Disallow no-op mb() for SMP systems

2018-01-31 Thread Peter Zijlstra
While looking through the qspinlock users, I stumbled upon openrisc and being curious, I wanted to have a look at its memory model. To my surprise it doesn't have asm/barrier.h. It does however support SMP. This lead me to wonder why it would compile, turns out we provide a no-op mb() if the arch

Re: [PATCH] mm: Remove PG_highmem description

2018-01-31 Thread Michal Hocko
On Wed 31-01-18 17:33:32, miles.c...@mediatek.com wrote: > From: Miles Chen > > The commit cbe37d093707 ("[PATCH] mm: remove PG_highmem") has removed > PG_highmem to save a page flag. So the description of PG_highmem > is no longer needed, remove it. > > Signed-off-by: Miles Chen Acked-by: Mic

Re: [PATCH v6 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2018-01-31 Thread Robin Murphy
On 19/01/18 11:43, Vivek Gautam wrote: From: Sricharan R The smmu device probe/remove and add/remove master device callbacks gets called when the smmu is not linked to its master, that is without the context of the master device. So calling runtime apis in those places separately. Signed-off-b

Re: [PATCH v6 4/6] iommu/arm-smmu: Add the device_link between masters and smmu

2018-01-31 Thread Robin Murphy
On 19/01/18 11:43, Vivek Gautam wrote: From: Sricharan R Finally add the device link between the master device and smmu, so that the smmu gets runtime enabled/disabled only when the master needs it. This is done from add_device callback which gets called once when the master is added to the smm

[PATCH v4 5/5] KVM: SVM: Allow direct access to MSR_IA32_SPEC_CTRL

2018-01-31 Thread KarimAllah Ahmed
[ Based on a patch from Paolo Bonzini ] ... basically doing exactly what we do for VMX: - Passthrough SPEC_CTRL to guests (if enabled in guest CPUID) - Save and restore SPEC_CTRL around VMExit and VMEntry only if the guest actually used it. Cc: Asit Mallick Cc: Arjan Van De Ven Cc: Dave Han

[PATCH v4 4/5] KVM: VMX: Allow direct access to MSR_IA32_SPEC_CTRL

2018-01-31 Thread KarimAllah Ahmed
[ Based on a patch from Ashok Raj ] Add direct access to MSR_IA32_SPEC_CTRL for guests. This is needed for guests that will only mitigate Spectre V2 through IBRS+IBPB and will not be using a retpoline+IBPB based approach. To avoid the overhead of atomically saving and restoring the MSR_IA32_SPEC

[PATCH v4 1/5] KVM: x86: Update the reverse_cpuid list to include CPUID_7_EDX

2018-01-31 Thread KarimAllah Ahmed
[dwmw2: Stop using KF() for bits in it, too] Cc: Paolo Bonzini Cc: Radim Krčmář Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H. Peter Anvin Cc: x...@kernel.org Cc: k...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Reviewed-by: Paolo Bonzini Signed-off-by: KarimAllah Ahmed Signed-off-by: David

[PATCH v4 3/5] KVM: VMX: Emulate MSR_IA32_ARCH_CAPABILITIES

2018-01-31 Thread KarimAllah Ahmed
Future intel processors will use MSR_IA32_ARCH_CAPABILITIES MSR to indicate RDCL_NO (bit 0) and IBRS_ALL (bit 1). This is a read-only MSR. By default the contents will come directly from the hardware, but user-space can still override it. [dwmw2: The bit in kvm_cpuid_7_0_edx_x86_features can be un

[PATCH v4 0/5] KVM: Expose speculation control feature to guests

2018-01-31 Thread KarimAllah Ahmed
Add direct access to speculation control MSRs for KVM guests. This allows the guest to protect itself against Spectre V2 using IBRS+IBPB instead of a retpoline+IBPB based approach. It also exposes the ARCH_CAPABILITIES MSR which is going to be used by future Intel processors to indicate RDCL_NO an

[PATCH v4 2/5] KVM: x86: Add IBPB support

2018-01-31 Thread KarimAllah Ahmed
From: Ashok Raj Add MSR passthrough for MSR_IA32_PRED_CMD and place branch predictor barriers on switching between VMs to avoid inter VM Spectre-v2 attacks. [peterz: rebase and changelog rewrite] [karahmed: - rebase - vmx: expose PRED_CMD if guest has it in CPUID - svm: onl

Re: [PATCH V3 0/5] bugs fix for large PEBS mmap read and rdpmc read

2018-01-31 Thread Jiri Olsa
On Wed, Jan 31, 2018 at 10:15:39AM +0100, Jiri Olsa wrote: > On Tue, Jan 30, 2018 at 07:59:41PM -0800, Andi Kleen wrote: > > > Still, the part I am missing here, is why asking for > > > PERF_SAMPLE_PERIOD voids large PEBS. > > > > I think it was disabled together with frequency mode > > (which we

Re: asm-generic: Disallow no-op mb() for SMP systems

2018-01-31 Thread Will Deacon
On Wed, Jan 31, 2018 at 02:00:34PM +0100, Peter Zijlstra wrote: > > While looking through the qspinlock users, I stumbled upon openrisc and > being curious, I wanted to have a look at its memory model. > > To my surprise it doesn't have asm/barrier.h. It does however support > SMP. This lead me t

Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure

2018-01-31 Thread Borislav Petkov
On Wed, Jan 31, 2018 at 12:30:36PM +, Dr. David Alan Gilbert wrote: > Indeed, it's only for this weird case where you suddenly need to change > it. No, there's more: .name = "Broadwell-noTSX", .name = "Haswell-noTSX", -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix

Re: ppc elf_map breakage with MAP_FIXED_NOREPLACE

2018-01-31 Thread Michal Hocko
On Wed 31-01-18 10:35:38, Anshuman Khandual wrote: > On 01/30/2018 03:12 PM, Michal Hocko wrote: [...] > > Anshuman, could you try to run > > sed 's@^@@' /proc/self/smaps > > on a system with MAP_FIXED_NOREPLACE reverted? > > > > After reverting the following commits from mmotm-2018-01-25-16-20 t

Re: [PATCH v6 4/6] media: i2c: Add TDA1997x HDMI receiver driver

2018-01-31 Thread Hans Verkuil
On 01/31/18 08:38, Hans Verkuil wrote: > On 01/31/2018 05:51 AM, Tim Harvey wrote: >> On Mon, Jan 29, 2018 at 4:00 AM, Hans Verkuil wrote: >>> On 01/25/2018 05:15 PM, Tim Harvey wrote: >> > > Hmm. This receiver supports multiple output formats, but you advertise > only one. > Tha

Re: [tip:x86/pti] x86/speculation: Use Indirect Branch Prediction Barrier in context switch

2018-01-31 Thread Josh Poimboeuf
On Wed, Jan 31, 2018 at 08:03:00AM +0100, Dominik Brodowski wrote: > On Tue, Jan 30, 2018 at 02:39:45PM -0800, tip-bot for Tim Chen wrote: > > Commit-ID: 18bf3c3ea8ece8f03b6fc58508f2dfd23c7711c7 > > Gitweb: > > https://git.kernel.org/tip/18bf3c3ea8ece8f03b6fc58508f2dfd23c7711c7 > > Author:

Re: [PATCH v2] mm/swap.c: make functions and their kernel-doc agree

2018-01-31 Thread Michal Hocko
On Tue 30-01-18 23:58:48, Matthew Wilcox wrote: > On Tue, Jan 30, 2018 at 01:34:00PM +0100, Michal Hocko wrote: > > On Mon 29-01-18 16:43:55, Randy Dunlap wrote: > > > - for function pagevec_lookup_entries(), change the function parameter > > > name from nr_pages to nr_entries since that is more

Re: asm-generic: Disallow no-op mb() for SMP systems

2018-01-31 Thread Peter Zijlstra
On Wed, Jan 31, 2018 at 01:17:37PM +, Will Deacon wrote: > On Wed, Jan 31, 2018 at 02:00:34PM +0100, Peter Zijlstra wrote: > > > > While looking through the qspinlock users, I stumbled upon openrisc and > > being curious, I wanted to have a look at its memory model. > > > > To my surprise it

Re: [PATCH v2] ACPI / tables: Add IORT to injectable table list

2018-01-31 Thread Hanjun Guo
Hi Shunyong, On 2018/1/30 9:44, Yang, Shunyong wrote: > Hi, Rafael > > Could you please help to review this patch? This is a small change to > add ACPI_SIG_IORT to table_sigs[].  > Loading IORT table from initrd is very useful to debug SMMU node/device > probe, MSI allocation, stream id translati

Re: [PATCH v11 3/3] mm, x86: display pkey in smaps only if arch supports pkeys

2018-01-31 Thread Michal Hocko
On Tue 30-01-18 11:44:12, Ram Pai wrote: > Currently the architecture specific code is expected to > display the protection keys in smap for a given vma. > This can lead to redundant code and possibly to divergent > formats in which the key gets displayed. > > This patch changes the imp

[RFC PATCH v2 1/5] dt-bindings: add bindings for USB physical connector

2018-01-31 Thread Andrzej Hajda
These bindings allow to describe most known standard USB connectors and it should be possible to extend it if necessary. USB connectors, beside USB can be used to route other protocols, for example UART, Audio, MHL. In such case every device passing data through the connector should have appropriat

[RFC PATCH v2 2/5] arm64: dts: exynos: add micro-USB connector node to TM2 platforms

2018-01-31 Thread Andrzej Hajda
Since USB connector bindings are available we can describe it on TM2(e). Signed-off-by: Andrzej Hajda --- arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi b/arch/arm64/boot/dts/e

[RFC PATCH v2 0/5] dt-bindings: add bindings for USB physical connector

2018-01-31 Thread Andrzej Hajda
Hi, This patchset introduces USB physical connector bindings, together with working example. I have added comments in relevant patches to describe possible issues. In v2 I have addressed comments by Rob and Laurent, thanks Changes are described in patches. Regards Andrzej Andrzej Hajda (4):

[RFC PATCH v2 4/5] extcon: add possibility to get extcon device by OF node

2018-01-31 Thread Andrzej Hajda
Since extcon property is not allowed in DT, extcon subsystem requires another way to get extcon device. Lets try the simplest approach - get edev by of_node. Signed-off-by: Andrzej Hajda Acked-by: Chanwoo Choi --- v2: changed label to follow local convention (Chanwoo) --- drivers/extcon/extcon.

<    1   2   3   4   5   6   7   8   >