[PATCH v2 13/43] drm/bridge: analogix_dp: Move enable video into config_video()

2018-01-26 Thread Thierry Escande
From: Lin Huang We need to enable video before analogix_dp_is_video_stream_on(), so we can get the right video stream status. Cc: 征增 王 Cc: Stéphane Marchesin Signed-off-by: Lin Huang Signed-off-by: Sean Paul Signed-off-by: Thierry Escande Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/bri

[PATCH v2 21/43] drm/bridge: analogix_dp: Fix incorrect usage of enhanced mode

2018-01-26 Thread Thierry Escande
From: zain wang Enhanced mode is required by the eDP 1.2 specification, and not doing it early could result in a period of time where we have a link transmitting idle packets without it. Since there is no reason to disable it, we just enable it at the beginning of link training and then keep it o

[PATCH v2 19/43] drm/bridge: analogix_dp: Ensure edp is disabled when shutting down the panel

2018-01-26 Thread Thierry Escande
From: Lin Huang When panel is shut down, we should make sure edp can be disabled to avoid undefined behavior. Cc: Stéphane Marchesin Signed-off-by: Lin Huang Signed-off-by: zain wang Signed-off-by: Sean Paul Signed-off-by: Thierry Escande Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/bri

[PATCH v2 18/43] drm/bridge: analogix_dp: Set PD_INC_BG first when powering up edp phy

2018-01-26 Thread Thierry Escande
From: zain wang Following the correct power up sequence: dp_pd=ff => dp_pd=7f => wait 10us => dp_pd=00 Cc: Stéphane Marchesin Signed-off-by: zain wang Signed-off-by: Sean Paul Signed-off-by: Thierry Escande --- drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c | 10 -- drivers/gpu/d

[PATCH v2 14/43] drm/bridge: analogix_dp: Check AUX_EN status when doing AUX transfer

2018-01-26 Thread Thierry Escande
From: Lin Huang We should check AUX_EN bit to confirm the AUX CH operation is completed. Cc: Stéphane Marchesin Signed-off-by: Lin Huang Signed-off-by: zain wang Signed-off-by: Sean Paul Signed-off-by: Thierry Escande --- drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c | 25 +

[PATCH v2 17/43] drm/bridge: analogix_dp: Wait for HPD signal before configuring link

2018-01-26 Thread Thierry Escande
From: zain wang According to DP spec v1.3 chap 3.5.1.2 Link Training, Link Policy Maker must first detect that the HPD signal is asserted high by the Downstream Device before establishing a link with it. Cc: Stéphane Marchesin Signed-off-by: zain wang Signed-off-by: Sean Paul Signed-off-by: T

[PATCH v2 16/43] drm/bridge: analogix_dp: Retry bridge enable when it failed

2018-01-26 Thread Thierry Escande
From: zain wang When we enable bridge failed, we have to retry it, otherwise we would get the abnormal display. Cc: Stéphane Marchesin Signed-off-by: zain wang Signed-off-by: Sean Paul Signed-off-by: Thierry Escande Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/bridge/analogix/analogix_dp

Re: [PATCH 3/4] x86/retpoline: Simplify vmexit_fill_RSB()

2018-01-26 Thread Borislav Petkov
On Fri, Jan 26, 2018 at 12:33:31PM +, David Woodhouse wrote: > On Fri, 2018-01-26 at 13:11 +0100, Borislav Petkov wrote: > > > > +ENTRY(__fill_rsb_clobber_ax) > > +   ___FILL_RETURN_BUFFER %_ASM_AX, RSB_CLEAR_LOOPS, %_ASM_SP > > +END(__fill_rsb_clobber_ax) > > +EXPORT_SYMBOL_GPL(__fill_rsb

[PATCH v2 07/43] drm/bridge: analogix_dp: detect Sink PSR state after configuring the PSR

2018-01-26 Thread Thierry Escande
From: Yakir Yang Make sure the request PSR state takes effect in analogix_dp_send_psr_spd() function, or print the sink PSR error state if we failed to apply the requested PSR setting. Cc: 征增 王 Cc: Stéphane Marchesin Signed-off-by: Yakir Yang [seanpaul changed timeout loop to a readx poll] Si

[PATCH v2 11/43] drm/bridge: analogix_dp: add fast link train for eDP

2018-01-26 Thread Thierry Escande
From: zain wang We would meet a short black screen when exit PSR with the full link training, In this case, we should use fast link train instead of full link training. Signed-off-by: zain wang Signed-off-by: Sean Paul Signed-off-by: Thierry Escande --- drivers/gpu/drm/bridge/analogix/analog

[PATCH v2 12/43] drm/rockchip: Only wait for panel ACK on PSR entry

2018-01-26 Thread Thierry Escande
From: zain wang We currently wait for the panel to mirror our intended PSR state before continuing on both PSR enter and PSR exit. This is really only important to do when we're entering PSR, since we want to be sure the last frame we pushed is being served from the panel's internal fb before shu

[PATCH v2 10/43] drm/rockchip: add mutex vop lock

2018-01-26 Thread Thierry Escande
From: zain wang Add a lock to vop to avoid disabling the crtc while waiting for a line flag while enabling psr. If we disable in the middle of waiting for the line flag, we'll end up timing out or worse. Signed-off-by: zain wang Signed-off-by: Sean Paul Signed-off-by: Thierry Escande --- dri

Re: [PATCH 4/8] thermal/drivers/Kconfig: Convert the CPU cooling device to a choice

2018-01-26 Thread Daniel Lezcano
On 26/01/2018 13:16, Daniel Thompson wrote: > On Thu, Jan 25, 2018 at 02:36:12PM +0100, Daniel Lezcano wrote: >> On 25/01/2018 11:57, Daniel Thompson wrote: >>> On Wed, Jan 24, 2018 at 05:59:09PM +0100, Daniel Lezcano wrote: On 24/01/2018 17:34, Daniel Thompson wrote: However, we are talk

[PATCH v2 09/43] drm/bridge: analogix_dp: Don't change psr while bridge is disabled

2018-01-26 Thread Thierry Escande
From: zain wang There is a race between AUX CH bring-up and enabling bridge which will cause link training to fail. To avoid hitting it, don't change psr state while enabling the bridge. Cc: Tomeu Vizoso Cc: Sean Paul Signed-off-by: zain wang Signed-off-by: Caesar Wang [seanpaul fixed up the

[PATCH v2 05/43] drm/bridge: analogix_dp: Don't power bridge in analogix_dp_bind

2018-01-26 Thread Thierry Escande
From: zain wang The bridge does not need to be powered in analogix_dp_bind(), so remove the calls to pm_runtime_get()/phy_power_on()/analogix_dp_init_dp() as well as their power-off counterparts. Cc: Stéphane Marchesin Signed-off-by: zain wang Signed-off-by: Caesar Wang [the patch originally

[PATCH v2 01/43] drm/rockchip: Get rid of unnecessary struct fields

2018-01-26 Thread Thierry Escande
From: Tomasz Figa This patch removes unused fields from vop structure. Signed-off-by: Tomasz Figa Signed-off-by: Sean Paul Signed-off-by: Thierry Escande --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_

[PATCH v2 08/43] drm/rockchip: Remove analogix psr worker

2018-01-26 Thread Thierry Escande
From: Sean Paul Now that the spinlocks and timers are gone, we can remove the psr worker located in rockchip's analogix driver and do the enable/disable directly. This should simplify the code and remove races on disable. Cc: 征增 王 Cc: Stéphane Marchesin Signed-off-by: Sean Paul Signed-off-by:

[PATCH v2 00/43] DRM Rockchip rk3399 (Kevin)

2018-01-26 Thread Thierry Escande
Hi, This patchset includes cleanups, improvements, and bug fixes for Rockchip DRM driver and PSR support. this patchset depends and needs to be applied on top of Rockchip rk3399 eDP support [1]. [1] https://lkml.org/lkml/2018/1/10/682 Regards, Thierry Changes in v2: - A few patches have been r

[PATCH v2 04/43] drm/bridge: analogix_dp: set psr activate/deactivate when enable/disable bridge

2018-01-26 Thread Thierry Escande
From: zain wang There's a race between when bridge_disable and when vop_crtc_disable are called. If the flush timer triggers a new psr work between these, we will operate eDP without power shutdowned by bridge_disable. In this case, moving activate/deactivate to enable/disable bridge to avoid it.

[PATCH v2 06/43] drm/rockchip: Don't use atomic constructs for psr

2018-01-26 Thread Thierry Escande
From: Sean Paul Instead of using timer and spinlocks, use delayed_work and mutexes for rockchip psr. This allows us to make blocking calls when enabling/disabling psr (which is sort of important given we're talking over dpcd to the display). Cc: Caesar Wang Cc: 征增 王 Cc: Stéphane Marchesin Sig

[PATCH v2 03/43] drm/rockchip: Respect page offset for PRIME mmap calls

2018-01-26 Thread Thierry Escande
From: Ørjan Eide When mapping external DMA-bufs through the PRIME mmap call, we might be given an offset which has to be respected. However for the internal DRM GEM mmap path, we have to ignore the fake mmap offset used to identify the buffer only. Currently the code always zeroes out vma->vm_pgo

[PATCH v2 02/43] drm/rockchip: support prime import sg table

2018-01-26 Thread Thierry Escande
From: Haixia Shi The prime fd to handle ioctl was not used with rockchip before. Support was added in order to pass graphics_Gbm and to support potential uses within Chrome OS (e.g. zero-copy video decode, camera). Signed-off-by: Haixia Shi Signed-off-by: Sean Paul Signed-off-by: Thierry Escan

Re: [RFC 1/2] arm: cacheflush syscall: process only pages that are in the memory

2018-01-26 Thread Marek Szyprowski
Hi Russell, On 2018-01-26 12:32, Russell King - ARM Linux wrote: On Fri, Jan 26, 2018 at 12:14:40PM +0100, Marek Szyprowski wrote: glibc in calls cacheflush syscall on the whole textrels section of the relocated binaries. However, relocation usually doesn't touch all pages of that section, so n

Re: [virtio-dev] Re: [PATCH v25 2/2] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT

2018-01-26 Thread Tetsuo Handa
On 2018/01/26 12:31, Wei Wang wrote: > On 01/26/2018 10:42 AM, Michael S. Tsirkin wrote: >> On Fri, Jan 26, 2018 at 09:40:44AM +0800, Wei Wang wrote: >>> On 01/25/2018 09:49 PM, Michael S. Tsirkin wrote: On Thu, Jan 25, 2018 at 05:14:06PM +0800, Wei Wang wrote: > >>> The controversy is t

Re: [PATCH 4/4] x86/bugs: Drop one "mitigation" from dmesg

2018-01-26 Thread Greg KH
On Fri, Jan 26, 2018 at 01:11:39PM +0100, Borislav Petkov wrote: > From: Borislav Petkov > > Make > > [0.031118] Spectre V2 mitigation: Mitigation: Full generic retpoline > > into > > [0.031118] Spectre V2: Mitigation: Full generic retpoline > > to reduce the mitigation mitigations st

Re: [PATCH v1 0/2] Kconfig changes to enable Graphics Support for S390

2018-01-26 Thread Geert Uytterhoeven
Hi Farhan, On Thu, Jan 25, 2018 at 4:47 PM, Farhan Ali wrote: > This series of patches are in preparation for enabling an additional > tty and console for a S390 KVM guest using a virtio-gpu device[1]. > One of the steps to do this would be to enable CONFIG_VT for S390, > and this would also requ

Re: [PATCH net-next 03/12] ptr_ring: READ/WRITE_ONCE for __ptr_ring_empty

2018-01-26 Thread Michael S. Tsirkin
On Fri, Jan 26, 2018 at 11:19:58AM +0800, Jason Wang wrote: > > > On 2018年01月26日 10:44, Michael S. Tsirkin wrote: > > On Fri, Jan 26, 2018 at 10:37:58AM +0800, Jason Wang wrote: > > > > > > On 2018年01月26日 07:36, Michael S. Tsirkin wrote: > > > > Lockless __ptr_ring_empty requires that consumer h

Re: [PATCH net-next 12/12] tools/virtio: fix smp_mb on x86

2018-01-26 Thread Michael S. Tsirkin
On Fri, Jan 26, 2018 at 11:56:14AM +0800, Jason Wang wrote: > > > On 2018年01月26日 07:36, Michael S. Tsirkin wrote: > > Offset 128 overlaps the last word of the redzone. > > Use 132 which is always beyond that. > > > > Signed-off-by: Michael S. Tsirkin > > --- > > tools/virtio/ringtest/main.h |

[PATCH 0/2] Input: omap4-keypad: Adjustments for omap4_keypad_probe()

2018-01-26 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 26 Jan 2018 14:45:54 +0100 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete two error messages for a failed memory allocation Improve a size determination drivers/input/keyboard/omap4-keypad.c | 7 ++

[PATCH v7 04/11] ARM: dts: r7s72100: Add Capture Engine Unit (CEU)

2018-01-26 Thread Jacopo Mondi
Add Capture Engine Unit (CEU) node to device tree. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchart Acked-by: Hans Verkuil --- arch/arm/boot/dts/r7s72100.dtsi | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/arch/arm

[PATCH v7 02/11] include: media: Add Renesas CEU driver interface

2018-01-26 Thread Jacopo Mondi
Add renesas-ceu header file. Do not remove the existing sh_mobile_ceu.h one as long as the original driver does not go away. Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart Acked-by: Hans Verkuil --- include/media/drv-intf/renesas-ceu.h | 26 ++ 1 file change

[PATCH v7 03/11] media: platform: Add Renesas CEU driver

2018-01-26 Thread Jacopo Mondi
Add driver for Renesas Capture Engine Unit (CEU). The CEU interface supports capturing 'data' (YUV422) and 'images' (NV[12|21|16|61]). This driver aims to replace the soc_camera-based sh_mobile_ceu one. Tested with ov7670 camera sensor, providing YUYV_2X8 data on Renesas RZ platform GR-Peach. T

[PATCH v7 05/11] media: i2c: Copy ov772x soc_camera sensor driver

2018-01-26 Thread Jacopo Mondi
Copy the soc_camera based driver in v4l2 sensor driver directory. This commit just copies the original file without modifying it. No modification to KConfig and Makefile as soc_camera framework dependencies need to be removed first in next commit. Signed-off-by: Jacopo Mondi Acked-by: Laurent Pin

[PATCH v7 00/11] Renesas Capture Engine Unit (CEU) V4L2 driver

2018-01-26 Thread Jacopo Mondi
Hello, 7th round for CEU driver&friends. This series includes 2 new patches compared to v6 and it is now based on top of Hans' series: [PATCHv2 0/9] media: replace g/s_parm by g/s_frame_interval and makes use of newly introduced v4l2_g/s_parm_cap() functions from v4l2-common in CEU's g/s_parm()

[PATCH 1/2] Input: omap4-keypad: Delete two error messages for a failed memory allocation in omap4_keypad_probe()

2018-01-26 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 26 Jan 2018 14:24:35 +0100 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/input/keyboard/omap4-keypad.c | 5 + 1 file changed, 1 inser

[PATCH v7 06/11] media: i2c: ov772x: Remove soc_camera dependencies

2018-01-26 Thread Jacopo Mondi
Remove soc_camera framework dependencies from ov772x sensor driver. - Handle clock and gpios - Register async subdevice - Remove soc_camera specific g/s_mbus_config operations - Change image format colorspace from JPEG to SRGB as the two use the same colorspace information but JPEG makes assumpti

[PATCH v7 7/9] v4l: i2c: Copy tw9910 soc_camera sensor driver

2018-01-26 Thread Jacopo Mondi
Copy the soc_camera based driver in v4l2 sensor driver directory. This commit just copies the original file without modifying it. No modification to KConfig and Makefile as soc_camera framework dependencies need to be removed first in next commit. Signed-off-by: Jacopo Mondi Acked-by: Laurent Pin

[PATCH v7 08/11] media: i2c: Copy tw9910 soc_camera sensor driver

2018-01-26 Thread Jacopo Mondi
Copy the soc_camera based driver in v4l2 sensor driver directory. This commit just copies the original file without modifying it. No modification to KConfig and Makefile as soc_camera framework dependencies need to be removed first in next commit. Signed-off-by: Jacopo Mondi Acked-by: Laurent Pin

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

2018-01-26 Thread Jacopo Mondi
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. Signed-off-by: Jacopo Mondi --- drivers/media/i2c/ov772x.c | 315 -

[PATCH v7 09/11] media: i2c: tw9910: Remove soc_camera dependencies

2018-01-26 Thread Jacopo Mondi
Remove soc_camera framework dependencies from tw9910 sensor driver. - Handle clock and gpios - Register async subdevice - Remove soc_camera specific g/s_mbus_config operations - Add kernel doc to driver interface header file - Adjust build system This commit does not remove the original soc_camera

[PATCH v7 8/9] media: i2c: tw9910: Remove soc_camera dependencies

2018-01-26 Thread Jacopo Mondi
Remove soc_camera framework dependencies from tw9910 sensor driver. - Handle clock and gpios - Register async subdevice - Remove soc_camera specific g/s_mbus_config operations - Add kernel doc to driver interface header file - Adjust build system This commit does not remove the original soc_camera

[PATCH v7 10/11] arch: sh: migor: Use new renesas-ceu camera driver

2018-01-26 Thread Jacopo Mondi
Migo-R platform uses sh_mobile_ceu camera driver, which is now being replaced by a proper V4L2 camera driver named 'renesas-ceu'. Move Migo-R platform to use the v4l2 renesas-ceu camera driver interface and get rid of soc_camera defined components used to register sensor drivers and of platform sp

Re: [PATCH net-next] ptr_ring: fix integer overflow

2018-01-26 Thread Michael S. Tsirkin
On Fri, Jan 26, 2018 at 11:44:22AM +0800, Jason Wang wrote: > > > On 2018年01月26日 01:31, Michael S. Tsirkin wrote: > > On Thu, Jan 25, 2018 at 10:17:38PM +0800, Jason Wang wrote: > > > > > > On 2018年01月25日 21:45, Michael S. Tsirkin wrote: > > > > On Thu, Jan 25, 2018 at 03:31:42PM +0800, Jason Wa

Re: [PATCH 11/16] arm64: errata: Clean up midr range helpers

2018-01-26 Thread Dave Martin
On Tue, Jan 23, 2018 at 12:28:04PM +, Suzuki K Poulose wrote: > We are about to introduce generic MIDR range helpers. Clean > up the existing helpers in errat handling, preparing them errata/erratum > to use generic version. > > Signed-off-by: Suzuki K Poulose > --- > arch/arm64/kernel/cpu

[PATCH v7 9/9] arch: sh: migor: Use new renesas-ceu camera driver

2018-01-26 Thread Jacopo Mondi
Migo-R platform uses sh_mobile_ceu camera driver, which is now being replaced by a proper V4L2 camera driver named 'renesas-ceu'. Move Migo-R platform to use the v4l2 renesas-ceu camera driver interface and get rid of soc_camera defined components used to register sensor drivers and of platform sp

[PATCH 2/2] Input: omap4-keypad: Improve a size determination in omap4_keypad_probe()

2018-01-26 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 26 Jan 2018 14:28:07 +0100 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

Re: [PATCH] x86/microcode/intel: print previous microcode revision during early update

2018-01-26 Thread Petr Oros
Borislav Petkov píše v Pá 26. 01. 2018 v 12:58 +0100: > On Fri, Jan 26, 2018 at 12:45:35PM +0100, Petr Oros wrote: > > During time of facing the Spectre vulnerability and the requirement of > > handling > > different microcode updates, it has shown, that it would be useful to have > > additional i

[PATCH] staging: rtlwifi: remove redundant initialization of 'cfg_cmd'

2018-01-26 Thread Colin King
From: Colin Ian King The initialization of cfg_cmd is redundant as the value is never read and it is being re-assigned to cfg_cmd = pwrcfgcmd[ary_idx] inside a loop, hence it can be removed. Cleans up clang warning: drivers/staging/rtlwifi/core.c:1819:22: warning: Value stored to 'cfg_cmd' durin

[PATCH v7 5/9] v4l: i2c: Copy ov772x soc_camera sensor driver

2018-01-26 Thread Jacopo Mondi
Copy the soc_camera based driver in v4l2 sensor driver directory. This commit just copies the original file without modifying it. No modification to KConfig and Makefile as soc_camera framework dependencies need to be removed first in next commit. Signed-off-by: Jacopo Mondi Acked-by: Laurent Pin

[PATCH v7 3/9] v4l: platform: Add Renesas CEU driver

2018-01-26 Thread Jacopo Mondi
Add driver for Renesas Capture Engine Unit (CEU). The CEU interface supports capturing 'data' (YUV422) and 'images' (NV[12|21|16|61]). This driver aims to replace the soc_camera-based sh_mobile_ceu one. Tested with ov7670 camera sensor, providing YUYV_2X8 data on Renesas RZ platform GR-Peach. T

Re: [PATCH v7 00/11] Renesas Capture Engine Unit (CEU) V4L2 driver

2018-01-26 Thread jacopo mondi
UUUPS please ignore this submission as it contains patches from a previous version (you may have noticed some patches in the series reports [xx/09] in the subject). I will resend. Sorry for the noise On Fri, Jan 26, 2018 at 02:48:32PM +0100, Jacopo Mondi wrote: > Hello, > 7th round for CEU dr

[PATCH] hrtimer: Reset hrtimer cpu base proper on CPU hotplug

2018-01-26 Thread Thomas Gleixner
The hrtimer interrupt code contains a hang detection and mitigation mechanism, which prevents that a long delayed hrtimer interrupt causes a continous retriggering of interrupts which prevent the system from making progress. If a hang is detected then the timer hardware is programmed with a certain

[PATCH v7 01/11] dt-bindings: media: Add Renesas CEU bindings

2018-01-26 Thread Jacopo Mondi
Add bindings documentation for Renesas Capture Engine Unit (CEU). Signed-off-by: Jacopo Mondi Reviewed-by: Rob Herring Reviewed-by: Laurent Pinchart Acked-by: Hans Verkuil --- .../devicetree/bindings/media/renesas,ceu.txt | 81 ++ 1 file changed, 81 insertions(+) cre

[PATCH v7 01/11] dt-bindings: media: Add Renesas CEU bindings

2018-01-26 Thread Jacopo Mondi
Add bindings documentation for Renesas Capture Engine Unit (CEU). Signed-off-by: Jacopo Mondi Reviewed-by: Rob Herring Reviewed-by: Laurent Pinchart Acked-by: Hans Verkuil --- .../devicetree/bindings/media/renesas,ceu.txt | 81 ++ 1 file changed, 81 insertions(+) cre

[PATCH v7 00/11] Renesas Capture Engine Unit (CEU) V4L2 driver

2018-01-26 Thread Jacopo Mondi
Hello, 7th round for CEU driver&friends. This series includes 2 new patches compared to v6 and it is now based on top of Hans' series: [PATCHv2 0/9] media: replace g/s_parm by g/s_frame_interval and makes use of newly introduced v4l2_g/s_parm_cap() functions from v4l2-common in CEU's g/s_parm()

[PATCH v7 11/11] media: i2c: ov7670: Fully set mbus frame fmt

2018-01-26 Thread Jacopo Mondi
The sensor driver sets mbus format colorspace information and sizes, but not ycbcr encoding, quantization and xfer function. When supplied with an badly initialized mbus frame format structure, those fields need to be set explicitly not to leave them uninitialized. This is tested by v4l2-compliance

[PATCH v7 04/11] ARM: dts: r7s72100: Add Capture Engine Unit (CEU)

2018-01-26 Thread Jacopo Mondi
Add Capture Engine Unit (CEU) node to device tree. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchart Acked-by: Hans Verkuil --- arch/arm/boot/dts/r7s72100.dtsi | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/arch/arm

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

2018-01-26 Thread Jacopo Mondi
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. Signed-off-by: Jacopo Mondi --- drivers/media/i2c/ov772x.c | 315 -

[PATCH v7 02/11] include: media: Add Renesas CEU driver interface

2018-01-26 Thread Jacopo Mondi
Add renesas-ceu header file. Do not remove the existing sh_mobile_ceu.h one as long as the original driver does not go away. Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart Acked-by: Hans Verkuil --- include/media/drv-intf/renesas-ceu.h | 26 ++ 1 file change

[PATCH v7 05/11] media: i2c: Copy ov772x soc_camera sensor driver

2018-01-26 Thread Jacopo Mondi
Copy the soc_camera based driver in v4l2 sensor driver directory. This commit just copies the original file without modifying it. No modification to KConfig and Makefile as soc_camera framework dependencies need to be removed first in next commit. Signed-off-by: Jacopo Mondi Acked-by: Laurent Pin

[PATCH v7 10/11] arch: sh: migor: Use new renesas-ceu camera driver

2018-01-26 Thread Jacopo Mondi
Migo-R platform uses sh_mobile_ceu camera driver, which is now being replaced by a proper V4L2 camera driver named 'renesas-ceu'. Move Migo-R platform to use the v4l2 renesas-ceu camera driver interface and get rid of soc_camera defined components used to register sensor drivers and of platform sp

Re: [PATCH] atm: firestream: Replace GFP_ATOMIC with GFP_KERNEL in fs_send

2018-01-26 Thread Jia-Ju Bai
On 2018/1/26 20:05, Al Viro wrote: On Fri, Jan 26, 2018 at 04:00:27PM +0800, Jia-Ju Bai wrote: After checking all possible call chains to fs_send() here, my tool finds that fs_send() is never called in atomic context. And this function is assigned to a function pointer "dev->ops->send", which

[PATCH v7 09/11] media: i2c: tw9910: Remove soc_camera dependencies

2018-01-26 Thread Jacopo Mondi
Remove soc_camera framework dependencies from tw9910 sensor driver. - Handle clock and gpios - Register async subdevice - Remove soc_camera specific g/s_mbus_config operations - Add kernel doc to driver interface header file - Adjust build system This commit does not remove the original soc_camera

[PATCH v7 08/11] media: i2c: Copy tw9910 soc_camera sensor driver

2018-01-26 Thread Jacopo Mondi
Copy the soc_camera based driver in v4l2 sensor driver directory. This commit just copies the original file without modifying it. No modification to KConfig and Makefile as soc_camera framework dependencies need to be removed first in next commit. Signed-off-by: Jacopo Mondi Acked-by: Laurent Pin

Re: [PATCH v7 00/11] Renesas Capture Engine Unit (CEU) V4L2 driver

2018-01-26 Thread Geert Uytterhoeven
Hi Jacopo, On Fri, Jan 26, 2018 at 2:54 PM, jacopo mondi wrote: > UUUPS > > please ignore this submission as it contains patches from a previous > version (you may have noticed some patches in the series reports > [xx/09] in the subject). > > I will resend. Good. So there's still time to fix e.g

[PATCH v3 0/2] drm/virtio: Add window server support

2018-01-26 Thread Tomeu Vizoso
Hi, this work is based on the virtio_wl driver in the ChromeOS kernel by Zach Reizner, currently at: https://chromium.googlesource.com/chromiumos/third_party/kernel/+/chromeos-4.4/drivers/virtio/virtio_wl.c There's one feature missing currently, which is letting clients write directly to the hos

[PATCH v3 2/2] drm/virtio: Handle buffers from the compositor

2018-01-26 Thread Tomeu Vizoso
When retrieving queued messages from the compositor in the host for clients in the guest, handle buffers that may be passed. These buffers should have been mapped to the guest's address space, for example via the KVM_SET_USER_MEMORY_REGION ioctl. Signed-off-by: Tomeu Vizoso --- drivers/gpu/drm

[PATCH v3 1/2] drm/virtio: Add window server support

2018-01-26 Thread Tomeu Vizoso
This is to allow clients running within VMs to be able to communicate with a compositor in the host. Clients will use the communication protocol that the compositor supports, and virtio-gpu will assist with making buffers available in both sides, and copying content as needed. It is expected that

[PATCH v7 03/11] media: platform: Add Renesas CEU driver

2018-01-26 Thread Jacopo Mondi
Add driver for Renesas Capture Engine Unit (CEU). The CEU interface supports capturing 'data' (YUV422) and 'images' (NV[12|21|16|61]). This driver aims to replace the soc_camera-based sh_mobile_ceu one. Tested with ov7670 camera sensor, providing YUYV_2X8 data on Renesas RZ platform GR-Peach. T

[PATCH v7 06/11] media: i2c: ov772x: Remove soc_camera dependencies

2018-01-26 Thread Jacopo Mondi
Remove soc_camera framework dependencies from ov772x sensor driver. - Handle clock and gpios - Register async subdevice - Remove soc_camera specific g/s_mbus_config operations - Change image format colorspace from JPEG to SRGB as the two use the same colorspace information but JPEG makes assumpti

Re: [PATCH] kdb: use ktime_get_seconds() instead of ktime_get_ts()

2018-01-26 Thread Daniel Thompson
On Fri, Jan 26, 2018 at 10:21:58AM +0100, Arnd Bergmann wrote: > On Fri, Jan 26, 2018 at 4:03 AM, Baolin Wang wrote: > > The kdb code will print the monotonic time by ktime_get_ts(), but > > the ktime_get_ts() will be protected by a sequence lock, that will > > introduce one deadlock risk if the l

Re: [PATCH v5 1/2] staging: fsl-mc: Move core bus out of staging

2018-01-26 Thread Greg KH
On Fri, Jan 26, 2018 at 06:51:26AM -0600, Bogdan Purcareata wrote: > Move the source files out of staging into their final locations: > -mc.h include file in drivers/staging/fsl-mc/include go to include/linux/fsl > -source files in drivers/staging/fsl-mc/bus go to drivers/bus/fsl-mc > -overvi

Re: [PATCH 12/16] arm64: Add helpers for checking CPU MIDR against a range

2018-01-26 Thread Dave Martin
On Tue, Jan 23, 2018 at 12:28:05PM +, Suzuki K Poulose wrote: > Add helpers for checking if the given CPU midr falls in a range > of variants/revisions for a given model. This doesn't describe what the patch does: instead, helpers are being added for checking whether an MIDR falls in one of mu

Re: mfd: Patch management?

2018-01-26 Thread Lee Jones
On Fri, 26 Jan 2018, SF Markus Elfring wrote: Any more private messages from now on will be ignored. > >> I got other preferences for time ranges around patch distribution. > > > > Not sure what this means. I'm guessing you're saying that you are not > > willing to collect your patches and you

Re: [PATCH 13/16] arm64: Add support for checking errata based on a list of MIDRS

2018-01-26 Thread Dave Martin
On Tue, Jan 23, 2018 at 12:28:06PM +, Suzuki K Poulose wrote: > Add helpers for detecting an errata on list of midr ranges > of affected CPUs. This doesn't describe what the patch does: instead, helpers are being added for checking whether an MIDR falls in one of multiple affected model(s) and

Re: dvb usb issues since kernel 4.9

2018-01-26 Thread Mauro Carvalho Chehab
Hi Alan, Em Mon, 8 Jan 2018 14:15:35 -0500 (EST) Alan Stern escreveu: > On Mon, 8 Jan 2018, Linus Torvalds wrote: > > > Can somebody tell which softirq it is that dvb/usb cares about? > > I don't know about the DVB part. The USB part is a little difficult to > analyze, mostly because the bu

Re: [PATCH] atm: firestream: Replace GFP_ATOMIC with GFP_KERNEL in fs_send

2018-01-26 Thread Jia-Ju Bai
On 2018/1/26 21:56, Jia-Ju Bai wrote: On 2018/1/26 20:05, Al Viro wrote: On Fri, Jan 26, 2018 at 04:00:27PM +0800, Jia-Ju Bai wrote: After checking all possible call chains to fs_send() here, my tool finds that fs_send() is never called in atomic context. And this function is assigned to a

[PATCH] ARM: dts: ls1021a: add quadspi node

2018-01-26 Thread Rasmus Villemoes
Add a node to device tree repesenting the QuadSPI controller present on LS1021a. Driver support has been present since e8c034b2fbe5 (mtd: spi-nor: fsl-quadspi: add support for ls1021a). Signed-off-by: Rasmus Villemoes --- arch/arm/boot/dts/ls1021a.dtsi | 14 ++ 1 file changed, 14 ins

Re: [PATCH] kdb: use ktime_get_seconds() instead of ktime_get_ts()

2018-01-26 Thread Baolin Wang
On 26 January 2018 at 22:00, Daniel Thompson wrote: > On Fri, Jan 26, 2018 at 10:21:58AM +0100, Arnd Bergmann wrote: >> On Fri, Jan 26, 2018 at 4:03 AM, Baolin Wang wrote: >> > The kdb code will print the monotonic time by ktime_get_ts(), but >> > the ktime_get_ts() will be protected by a sequenc

Re: [PATCH] x86/retpoline/entry: Disable the entire SYSCALL64 fast path with retpolines on

2018-01-26 Thread Alan Cox
> NetBSD (and the other BSD?) defines a structure for the arguments to > each syscall. Goes back to v7 or so but they put the syscall arguments into the uarea so that no pointers were needed (uarea being a per process mapping at a fixed address) in order to also reduce pointer dereferencing costs

RE: [PATCH v5 1/2] staging: fsl-mc: Move core bus out of staging

2018-01-26 Thread Bogdan Purcareata
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Friday, January 26, 2018 4:06 PM > To: Bogdan Purcareata > Cc: Laurentiu Tudor ; Ruxandra Ioana Ciocoi Radulescu > ; stuyo...@gmail.com; a...@arndb.de; > r...@kernel.org; Ioana Ciornei ; Nipun Gupta > ; Roy Pl

[PATCH 04/14] arm/arm64: KVM: Add PSCI_VERSION helper

2018-01-26 Thread Marc Zyngier
As we're about to trigger a PSCI version explosion, it doesn't hurt to introduce a PSCI_VERSION helper that is going to be used everywhere. Signed-off-by: Marc Zyngier --- include/kvm/arm_psci.h | 5 +++-- virt/kvm/arm/psci.c| 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --gi

[PATCH 09/14] arm/arm64: KVM: Turn kvm_psci_version into a static inline

2018-01-26 Thread Marc Zyngier
We're about to need kvm_psci_version in HYP too. So let's turn it into a static inline, and pass the kvm structure as a second parameter (so that HYP can do a kern_hyp_va on it). Signed-off-by: Marc Zyngier --- arch/arm64/kvm/hyp/switch.c | 20 include/kvm/arm_psci.h |

[PATCH 13/14] firmware/psci: Expose SMCCC version through psci_ops

2018-01-26 Thread Marc Zyngier
Since PSCI 1.0 allows the SMCCC version to be (indirectly) probed, let's do that at boot time, and expose the version of the calling convention as part of the psci_ops structure. Signed-off-by: Marc Zyngier --- drivers/firmware/psci.c | 22 ++ include/linux/psci.h| 6 +++

[PATCH 14/14] arm64: Add ARM_SMCCC_ARCH_WORKAROUND_1 BP hardening support

2018-01-26 Thread Marc Zyngier
Add the detection and runtime code for ARM_SMCCC_ARCH_WORKAROUND_1. It is lovely. Really. Signed-off-by: Marc Zyngier --- arch/arm64/kernel/bpi.S| 20 arch/arm64/kernel/cpu_errata.c | 71 +- 2 files changed, 90 insertions(+), 1 deletio

[PATCH 11/14] arm64: KVM: Add SMCCC_ARCH_WORKAROUND_1 fast handling

2018-01-26 Thread Marc Zyngier
We want SMCCC_ARCH_WORKAROUND_1 to be fast. As fast as possible. So let's intercept it as early as we can by testing for the function call number as soon as we've identified a HVC call coming from the guest. Signed-off-by: Marc Zyngier --- arch/arm64/kvm/hyp/hyp-entry.S | 20 ++--

[PATCH 12/14] firmware/psci: Expose PSCI conduit

2018-01-26 Thread Marc Zyngier
In order to call into the firmware to apply workarounds, it is useful to find out whether we're using HVC or SMC. Let's expose this through the psci_ops. Signed-off-by: Marc Zyngier --- drivers/firmware/psci.c | 26 +- include/linux/psci.h| 7 +++ 2 files changed

[PATCH 10/14] arm64: KVM: Report SMCCC_ARCH_WORKAROUND_1 BP hardening support

2018-01-26 Thread Marc Zyngier
A new feature of SMCCC 1.1 is that it offers firmware-based CPU workarounds. In particular, SMCCC_ARCH_WORKAROUND_1 provides BP hardening for CVE-2017-5715. If the host has some mitigation for this issue, report that we deal with it using SMCCC_ARCH_WORKAROUND_1, as we apply the host workaround on

[PATCH 08/14] arm/arm64: KVM: Advertise SMCCC v1.1

2018-01-26 Thread Marc Zyngier
The new SMC Calling Convention (v1.1) allows for a reduced overhead when calling into the firmware, and provides a new feature discovery mechanism. Make it visible to KVM guests. Signed-off-by: Marc Zyngier --- Documentation/virtual/kvm/arm/psci.txt | 12 +++- arch/arm/kvm/handle_exit.c

[PATCH 06/14] arm/arm64: KVM: Implement PSCI 1.0 support

2018-01-26 Thread Marc Zyngier
PSCI 1.0 can be trivially implemented by having PSCI 0.2 and the FEATURES call. Of, and returning 1.0 as the PSCI version. We happily ignore everything else, as it is optional. Signed-off-by: Marc Zyngier --- include/kvm/arm_psci.h | 1 + virt/kvm/arm/psci.c| 43 +++

Re: [PATCH v11 0/6] Add support for Qualcomm A53 CPU clock

2018-01-26 Thread Georgi Djakov
On 12/05/2017 05:46 PM, Georgi Djakov wrote: > This patchset adds support for the A53 CPU clock on MSM8916 platforms > and allows scaling of the CPU frequency on msm8916 based platforms. > > Changes since v10 (https://lkml.org/lkml/2017/12/1/577) > * Addressed Bjorn's comments on APCS clock driver

[PATCH 07/14] arm/arm64: KVM: Add PSCI version selection API

2018-01-26 Thread Marc Zyngier
Although we've implemented PSCI 1.0 and 1.1, nothing can select them Since all the new PSCI versions are backward compatible, we decide to default to the latest version of the PSCI implementation. This is no different from doing a firmware upgrade on KVM. But in order to give a chance to hypotheti

[PATCH 05/14] arm/arm64: KVM: Add smccc accessors to PSCI code

2018-01-26 Thread Marc Zyngier
Instead of open coding the accesses to the various registers, let's add explicit SMCCC accessors. Signed-off-by: Marc Zyngier --- virt/kvm/arm/psci.c | 52 ++-- 1 file changed, 42 insertions(+), 10 deletions(-) diff --git a/virt/kvm/arm/psci.c b/v

[PATCH 03/14] arm/arm64: KVM: Consolidate the PSCI include files

2018-01-26 Thread Marc Zyngier
As we're about to update the PSCI support, and because I'm lazy, let's move the PSCI include file to include/kvm so that both ARM architectures can find it. Signed-off-by: Marc Zyngier --- arch/arm/include/asm/psci.h| 25 -- arch/arm/kvm/handle_exit.c

[PATCH 01/14] arm64: KVM: Fix SMCCC handling of unimplemented SMC/HVC calls

2018-01-26 Thread Marc Zyngier
KVM doesn't follow the SMCCC when it comes to unimplemented calls, and inject an UNDEF instead of returning an error. Since firmware calls are now used for security mitigation, they are becoming more common, and the undef is counter productive. Instead, let's follow the SMCCC which states that -1

[PATCH 02/14] arm: KVM: Fix SMCCC handling of unimplemented SMC/HVC calls

2018-01-26 Thread Marc Zyngier
KVM doesn't follow the SMCCC when it comes to unimplemented calls, and inject an UNDEF instead of returning an error. Since firmware calls are now used for security mitigation, they are becoming more common, and the undef is counter productive. Instead, let's follow the SMCCC which states that -1

Re: [PATCH v1 2/2] fbdev: Kconfig: Add HAS_IOMEM dependency for FB_OPENCORES

2018-01-26 Thread Farhan Ali
On 01/26/2018 07:38 AM, Tomi Valkeinen wrote: On 26/01/18 14:33, Thomas Huth wrote: On 25.01.2018 16:47, Farhan Ali wrote: The Opencores framebuffer device uses I/O memory and with CONFIG_HAS_IOMEM disabled will lead to build errors: ERROR: "devm_ioremap_resource" [drivers/video/fbdev/ocfb.k

[PATCH 00/14] arm64: Add SMCCC v1.1 support and CVE-2017-5715

2018-01-26 Thread Marc Zyngier
ARM has recently published a SMC Calling Convention (SMCCC) specification update[1] that provides an optimised calling convention and optional, discoverable support for mitigating CVE-2017-5715. ARM Trusted Firmware (ATF) has already gained such an implementation[2]. This series addresses a few th

[PATCH v2 0/5] selinux:Significant reduce of preempt_disable holds

2018-01-26 Thread peter.enderborg
Holding the preempt_disable is very bad for low latency tasks as audio and therefore we need to break out the rule-set dependent part from this disable. By using a RCU instead of rwlock we have an efficient locking and less preemption interference. Selinux uses a lot of read_locks. This patch repl

[PATCH v2 3/5] selinux: Move sidtab to pointer structure

2018-01-26 Thread peter.enderborg
From: Peter Enderborg To be able to use rcu locks we need access the sidtab trough a pointer. This moves the sittab to a dynamic allocated struture. Signed-off-by: Peter Enderborg --- security/selinux/ss/services.c | 140 ++--- 1 file changed, 74 insertions(

<    1   2   3   4   5   6   7   8   >