Re: [PATCH V6 8/8] drm/mediatek: fix the rate of parent for hdmi phy in MT2701

2019-03-21 Thread CK Hu
Hi, Wangyan: On Thu, 2019-03-21 at 13:32 +0800, CK Hu wrote: > Hi, Wangyan: > > On Wed, 2019-03-06 at 18:13 +0800, CK Hu wrote: > > Hi, Wangyan: > > > > On Mon, 2019-02-25 at 10:09 +0800, wangyan wang wrote: > > > From: chunhui dai > > > > > > We should not change the rate of parent for hdmi p

[radeon-alex:amd-staging-drm-next 526/542] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:1237:34: error: 'struct dc' has no member named 'dml'

2019-03-21 Thread kbuild test robot
tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next head: c817263d2d6a371e51925e82d932cc2601553adc commit: e997e992bebac3dd1d8e2b1a148529ab0662759b [526/542] drm/amd/display: Fix multi-thread writing to 1 state config: ia64-allmodconfig (attached as .config) compiler: ia64

[PATCH] drm/panel: rm68200: no error msg if probe deferred

2019-03-21 Thread Yannick Fertré
Do not print an error message if the regulator framework returns EPROBE_DEFER. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/panel/panel-raydium-rm68200.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-raydium-rm68200.c b/drivers/gpu/drm/pa

[PATCH] drm/stm: dw_mipi_dsi-stm: add sleep power management

2019-03-21 Thread Yannick Fertré
Implements system sleep power management ops. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c index a672b59..1b

[PATCH] drm/stm: add sleep power management

2019-03-21 Thread Yannick Fertré
Implements system sleep power management ops. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/stm/drv.c | 35 +++ drivers/gpu/drm/stm/ltdc.c | 24 drivers/gpu/drm/stm/ltdc.h | 3 +++ 3 files changed, 62 insertions(+) diff --git a/driv

[PATCH] drm/panel: otm8009a: no error msg if probe deferred

2019-03-21 Thread Yannick Fertré
Do not print an error message if the regulator framework returns EPROBE_DEFER. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c b/drivers/gpu/

[PATCH] drm/panel: otm8009a: add delay at the end of initialization

2019-03-21 Thread Yannick Fertré
At the end of initialization, a delay is required by the panel. Without this delay, the panel could received a frame early & generate a crash of panel (black screen). Signed-off-by: Yannick Fertré --- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 3 +++ 1 file changed, 3 insertions(+) diff

Re: [PATCH v2] drm/exynos/mixer: fix MIXER shadow registry synchronisation code

2019-03-21 Thread Inki Dae
19. 3. 19. 오후 10:05에 Andrzej Hajda 이(가) 쓴 글: > MIXER on Exynos5 SoCs uses different synchronisation method than Exynos4 > to update internal state (shadow registers). > Apparently the driver implements it incorrectly. The rule should be > as follows: > - do not request updating registers until pr

Re: [RFC PATCH 06/20] lib: Add video format information library

2019-03-21 Thread Maxime Ripard
Hi Boris, On Wed, Mar 20, 2019 at 02:39:44PM +0100, Boris Brezillon wrote: > On Tue, 19 Mar 2019 22:57:11 +0100 > Maxime Ripard wrote: > > > Move the DRM formats API to turn this into a more generic image formats API > > to be able to leverage it into some other places of the kernel, such as > >

[PATCH v3 2/5] dt-bindings: display: armada: Rename the binding doc file

2019-03-21 Thread Lubomir Rintel
Use a more generic name, since it will document more compatible LCD controllers than just that of Dove. Also, there's no point putting it in a separate directory. Signed-off-by: Lubomir Rintel --- Changes since v1: - Choose a better name than armada/marvell-armada-drm.txt, since there will be

[PATCH v3 1/5] dt-bindings: reserved-memory: Add binding for Armada framebuffer

2019-03-21 Thread Lubomir Rintel
This is the binding for memory that is set aside for allocation of Marvell Armada framebuffer objects. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v2: - Collected the Reviewed-by tag Changes since v1: - Moved from bindings/display/armada/ - Removed the marvell,dove

[PATCH v13 01/20] uaccess: add untagged_addr definition for other arches

2019-03-21 Thread Andrey Konovalov
To allow arm64 syscalls to accept tagged pointers from userspace, we must untag them when they are passed to the kernel. Since untagging is done in generic parts of the kernel, the untagged_addr macro needs to be defined for all architectures. Define it as a noop for architectures other than arm64

[PATCH v5 3/5] ARM: dts: rockchip: rk3066a-mk808: enable vop0 and hdmi nodes

2019-03-21 Thread Johan Jonker
This patch enables the vop0 and hdmi nodes for a MK808 with rk3066 processor. Signed-off-by: Johan Jonker --- arch/arm/boot/dts/rk3066a-mk808.dts | 29 + 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/rk3066a-mk808.dts b/arch/arm/boot/dts/rk3066a-mk

[PATCH v13 00/20] arm64: untag user pointers passed to the kernel

2019-03-21 Thread Andrey Konovalov
=== Overview arm64 has a feature called Top Byte Ignore, which allows to embed pointer tags into the top byte of each pointer. Userspace programs (such as HWASan, a memory debugging tool [1]) might use this feature and pass tagged user pointers to the kernel through syscalls or other interfaces.

[PATCH v5 1/5] drm: rockchip: introduce rk3066 hdmi

2019-03-21 Thread Johan Jonker
From: Zheng Yang The RK3066 HDMI TX serves as interface between a LCD Controller and a HDMI bus. A HDMI TX consists of one HDMI transmitter controller and one HDMI transmitter PHY. The interface has three (3) 8-bit data channels which can be configured for a number of bus widths (8/10/12/16/20/24

[PATCH] ARM: imx_v6_v7_defconfig: Enable CONFIG_PWM_IMX27

2019-03-21 Thread Leonard Crestez
Commit d80f8206905c ("pwm: imx: Split into two drivers") also adds a new CONFIG_PWM_IMX27 for the PWM block on recent IMX chips and we should enable it by default for imx. Restoring the PWM driver fixes an infinite probe loop in 5.1-rc1 on various imx6qdl-sabresd boards. Signed-off-by: Leonard Cr

[PATCH v13 14/20] drm/amdgpu, arm64: untag user pointers in amdgpu_ttm_tt_get_user_pages

2019-03-21 Thread Andrey Konovalov
This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments. amdgpu_ttm_tt_get_user_pages() uses provided user pointers for vma lookups, which can only by done with untagged poin

[PATCH v13 15/20] drm/radeon, arm64: untag user pointers in radeon_ttm_tt_pin_userptr

2019-03-21 Thread Andrey Konovalov
This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments. radeon_ttm_tt_pin_userptr() uses provided user pointers for vma lookups, which can only by done with untagged pointer

[PATCH v13 05/20] mm, arm64: untag user pointers in mm/gup.c

2019-03-21 Thread Andrey Konovalov
This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments. mm/gup.c provides a kernel interface that accepts user addresses and manipulates user pages directly (for example get

[PATCH v5 5/5] drm: rockchip: add fixed screen size DVI-D support for rk3066 hdmi

2019-03-21 Thread Johan Jonker
Add fixed screen size DVI-D support for rk3066 hdmi with an extra patch. Signed-off-by: Johan Jonker --- drivers/gpu/drm/rockchip/rk3066_hdmi.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/rk3066_hdmi.c b/drivers/gpu/drm/

[PATCH v3 5/5] dt-bindings: display: armada: Document bus-width property

2019-03-21 Thread Lubomir Rintel
This makes it possible to choose a different pixel format for the endpoint. Modelled after what other LCD controllers use, including marvell,pxa2xx-lcdc and atmel,hlcdc-display-controller and perhaps more. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v2: - Collected

Re: [PATCH] drm/meson: fix TMDS clock filtering for DMT monitors

2019-03-21 Thread Maxime Jourdan
Hi Neil, On Wed, Mar 20, 2019 at 9:11 AM Neil Armstrong wrote: > > DMT monitors does not necessarely report a maximum TMDS clock > in a VSDB EDID extension. > > In this case, all modes are wrongly rejected, including > the DRM fallback EDID. > > This patch only rejects modes whith clock > max_tmds

[PATCH v13 09/20] net, arm64: untag user pointers in tcp_zerocopy_receive

2019-03-21 Thread Andrey Konovalov
This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments. tcp_zerocopy_receive() uses provided user pointers for vma lookups, which can only by done with untagged pointers. U

[PATCH v5 2/5] ARM: dts: rockchip: add rk3066 hdmi nodes

2019-03-21 Thread Johan Jonker
From: Zheng Yang This patch adds the hdmi nodes to rk3066. Signed-off-by: Zheng Yang Signed-off-by: Johan Jonker --- arch/arm/boot/dts/rk3066a.dtsi | 52 ++ 1 file changed, 52 insertions(+) diff --git a/arch/arm/boot/dts/rk3066a.dtsi b/arch/arm/boot/dt

[PATCH v13 02/20] arm64: untag user pointers in access_ok and __uaccess_mask_ptr

2019-03-21 Thread Andrey Konovalov
This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments. copy_from_user (and a few other similar functions) are used to copy data from user memory into the kernel memory or v

[PATCH v13 19/20] vfio/type1, arm64: untag user pointers in vaddr_get_pfn

2019-03-21 Thread Andrey Konovalov
This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments. vaddr_get_pfn() uses provided user pointers for vma lookups, which can only by done with untagged pointers. Untag us

[PATCH -next] drm/ttm: remove set but not used variable 'rdev'

2019-03-21 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/radeon/radeon_ttm.c: In function 'radeon_move_vram_ram': drivers/gpu/drm/radeon/radeon_ttm.c:254:24: warning: variable 'rdev' set but not used [-Wunused-but-set-variable] drivers/gpu/drm/radeon/radeon_ttm.c: In function 'radeon_move_

Re: Clang warning in drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

2019-03-21 Thread Stephen Hines
Why are there 2 different enums for this same thing at all? By casting, you are reducing type safety in the kernel, which can cause bugs later (should the two enums diverge in encoding). In my opinion, the proper solution is to remove one of the enums or provide an explicit helper that does the con

[PATCH v5 0/5] Enable rk3066 VOP and HDMI for MK808

2019-03-21 Thread Johan Jonker
For testing only. Version: V5 Title: Enable rk3066 VOP and HDMI for MK808. This patch serie only works in combination with a MK808 TV stick and a rk3066 processor. Other boxes and tablets with a rk3066 need extra software for power management and lcd's. What does it do: With these kernel patch

[PATCH v3 4/5] dt-bindings: display: armada: Add more compatible strings

2019-03-21 Thread Lubomir Rintel
There's a generic compatible string and the driver will work on a MMP2 as well, using the same binding. Signed-off-by: Lubomir Rintel --- Changes since v2: - Order marvell,armada-lcdc after the model-specific strings. Changes since v1: - Added marvell,armada-lcdc compatible string. .../device

[PATCH v13 03/20] lib, arm64: untag user pointers in strn*_user

2019-03-21 Thread Andrey Konovalov
This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments. strncpy_from_user and strnlen_user accept user addresses as arguments, and do not go through the same path as copy_fr

[PATCH v13 20/20] selftests, arm64: add a selftest for passing tagged pointers to kernel

2019-03-21 Thread Andrey Konovalov
This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments. This patch adds a simple test, that calls the uname syscall with a tagged user pointer as an argument. Without the ke

[PATCH v13 13/20] bpf, arm64: untag user pointers in stack_map_get_build_id_offset

2019-03-21 Thread Andrey Konovalov
This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments. stack_map_get_build_id_offset() uses provided user pointers for vma lookups, which can only by done with untagged poi

[PATCH v13 10/20] kernel, arm64: untag user pointers in prctl_set_mm*

2019-03-21 Thread Andrey Konovalov
This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments. prctl_set_mm() and prctl_set_mm_map() use provided user pointers for vma lookups and do some pointer comparisons to p

[PATCH v3 0/5] dt-bindings: improve the Armada DRM bindings

2019-03-21 Thread Lubomir Rintel
Hi, this is the third spin of a patch set that aims to complete the Armada DRM binding documentation. Apart from collecting the Review-by tags, the only change is the order of the compatible strings for the LCDC node. What is documented corresponds to the armada-devel branch of git://git.armlinux

Re: [RFC PATCH 18/20] lib: image-formats: Add v4l2 formats support

2019-03-21 Thread Nicolas Dufresne
Le mercredi 20 mars 2019 à 16:27 +0200, Ville Syrjälä a écrit : > On Tue, Mar 19, 2019 at 07:29:18PM -0400, Nicolas Dufresne wrote: > > Le mardi 19 mars 2019 à 22:57 +0100, Maxime Ripard a écrit : > > > V4L2 uses different fourcc's than DRM, and has a different set of formats. > > > For now, let's

Re: [PATCH] drm/amd/powerplay: Zero initialize num_of_levels in vega20_set_single_dpm_table

2019-03-21 Thread Nick Desaulniers
On Tue, Mar 19, 2019 at 6:00 PM Nathan Chancellor wrote: > > When building with -Wsometimes-uninitialized, Clang warns: > > drivers/gpu/drm/amd/amdgpu/../powerplay/vega20_ppt.c:456:2: warning: > variable 'num_of_levels' is used uninitialized whenever '?:' condition > is false [-Wsometimes-uninitia

Re: Clang warning in drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

2019-03-21 Thread Nathan Chancellor
On Wed, Mar 20, 2019 at 07:58:09AM -0700, Stephen Hines wrote: > Why are there 2 different enums for this same thing at all? By casting, you > are reducing type safety in the kernel, which can cause bugs later (should > the two enums diverge in encoding). In my opinion, the proper solution is > to

Re: [RFC PATCH 18/20] lib: image-formats: Add v4l2 formats support

2019-03-21 Thread Nicolas Dufresne
Le mercredi 20 mars 2019 à 18:09 +0200, Ville Syrjälä a écrit : > On Wed, Mar 20, 2019 at 11:51:58AM -0400, Nicolas Dufresne wrote: > > Le mercredi 20 mars 2019 à 16:27 +0200, Ville Syrjälä a écrit : > > > On Tue, Mar 19, 2019 at 07:29:18PM -0400, Nicolas Dufresne wrote: > > > > Le mardi 19 mars 20

[PATCH v13 08/20] fs, arm64: untag user pointers in fs/userfaultfd.c

2019-03-21 Thread Andrey Konovalov
This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments. userfaultfd_register() and userfaultfd_unregister() use provided user pointers for vma lookups, which can only by don

[PATCH v13 12/20] uprobes, arm64: untag user pointers in find_active_uprobe

2019-03-21 Thread Andrey Konovalov
This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments. find_active_uprobe() uses user pointers (obtained via instruction_pointer(regs)) for vma lookups, which can only by d

Re: [21/21] drm/bridge: tc358767: implement naive HPD handling

2019-03-21 Thread Andrey Smirnov
On Wed, Mar 20, 2019 at 6:03 AM Tomi Valkeinen wrote: > > On 20/03/2019 08:57, Tomi Valkeinen wrote: > > On 19/03/2019 20:18, Andrey Smirnov wrote: > > > >> TC358767 has two GPIO pins that can be used for HPD signal. I think > >> instead of hardcoding GPIO0 here it would be more flexible to expose

[PATCH v13 18/20] tee/optee, arm64: untag user pointers in check_mem_type

2019-03-21 Thread Andrey Konovalov
This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments. check_mem_type() uses provided user pointers for vma lookups (via __check_mem_type()), which can only by done with un

[PATCH v5 4/5] dt-bindings: display: rockchip: add document for rk3066 hdmi

2019-03-21 Thread Johan Jonker
This patch adds a binding that describes the HDMI controller for rk3066. Signed-off-by: Johan Jonker Reviewed-by: Rob Herring --- .../display/rockchip/rockchip,rk3066-hdmi.txt | 72 ++ 1 file changed, 72 insertions(+) create mode 100644 Documentation/devicetree/bindin

Re: linux-next: Tree for Mar 20 (drivers/gpu/drm/i915/)

2019-03-21 Thread Randy Dunlap
On 3/19/19 8:18 PM, Stephen Rothwell wrote: > Hi all, > > Changes since 20190319: > using: gcc (SUSE Linux) 4.8.5 beginning yesterday (20190319), I am seeing problems in i915_reg.h on x86_64: (multiple instances of one macro in the header file) ../drivers/gpu/drm/i915/i915_reg.h:167:27: error

[PATCH v3 3/5] dt-bindings: display: armada: Improve the LCDC documentation

2019-03-21 Thread Lubomir Rintel
The port is a child, not a property. And should be accompanied by an example. Plus a pair of cosmetic changes that don't seem to deserve a separate commit. Signed-off-by: Lubomir Rintel --- Changes since v2: - Collected the Reviewed-by tag Changes since v1: - Minor adjustments to the commit mes

Re: WARNING in dma_buf_vunmap

2019-03-21 Thread syzbot
syzbot has bisected this bug to: commit d5e73f7be850323ae3adbbe84ed37a38b0c31476 Author: Mahesh Bandewar Date: Wed Mar 8 18:55:51 2017 + bonding: restructure arp-monitor bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=15e679f720 start commit: d5e73f7b bonding: rest

[PATCH v13 04/20] mm, arm64: untag user pointers passed to memory syscalls

2019-03-21 Thread Andrey Konovalov
This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments. This patch allows tagged pointers to be passed to the following memory syscalls: madvise, mbind, get_mempolicy, minco

Re: Clang warning in drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

2019-03-21 Thread Nick Desaulniers
On Wed, Mar 20, 2019 at 2:37 AM Koenig, Christian wrote: > > Am 20.03.19 um 05:34 schrieb Nathan Chancellor: > > On Wed, Mar 20, 2019 at 01:31:27AM +, Pan, Xinhui wrote: > >> these two enumerated types are same for now. both of them might change in > >> the future. Please consider if the YAG

Re: [PATCH 1/2] dt-bindings: drm/panel: simple: add lg,acx467akm-7 panel

2019-03-21 Thread Brian Masney
Hi Linus, On Tue, Mar 05, 2019 at 11:42:15PM +0100, Linus Walleij wrote: > On Sat, Nov 24, 2018 at 9:06 PM Brian Masney wrote: > > > Add binding for the LG ACX467AKM-7 4.95" 1080×1920 LCD panel that is > > found on the LG Nexus 5 (hammerhead) phone. This appears to be a JDI > > panel based on so

[PATCH v13 16/20] IB/mlx4, arm64: untag user pointers in mlx4_get_umem_mr

2019-03-21 Thread Andrey Konovalov
This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments. mlx4_get_umem_mr() uses provided user pointers for vma lookups, which can only by done with untagged pointers. Untag

[PATCH v13 11/20] tracing, arm64: untag user pointers in seq_print_user_ip

2019-03-21 Thread Andrey Konovalov
This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments. seq_print_user_ip() uses provided user pointers for vma lookups, which can only by done with untagged pointers. Unta

[PATCH v13 07/20] fs, arm64: untag user pointers in copy_mount_options

2019-03-21 Thread Andrey Konovalov
This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments. In copy_mount_options a user address is being subtracted from TASK_SIZE. If the address is lower than TASK_SIZE, the

Re: [RFC v4 00/17] kunit: introduce KUnit, the Linux kernel unit testing framework

2019-03-21 Thread Knut Omang
Hi Logan, On Wed, 2019-03-20 at 19:07 -0600, Logan Gunthorpe wrote: > Hi, > > On 2019-02-14 2:37 p.m., Brendan Higgins wrote: > > This patch set proposes KUnit, a lightweight unit testing and mocking > > framework for the Linux kernel. > > I haven't followed the entire conversation but I saw the

[PATCH v13 06/20] mm, arm64: untag user pointers in get_vaddr_frames

2019-03-21 Thread Andrey Konovalov
This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments. get_vaddr_frames uses provided user pointers for vma lookups, which can only by done with untagged pointers. Instead

[PATCH v13 17/20] media/v4l2-core, arm64: untag user pointers in videobuf_dma_contig_user_get

2019-03-21 Thread Andrey Konovalov
This patch is a part of a series that extends arm64 kernel ABI to allow to pass tagged user pointers (with the top byte set to something else other than 0x00) as syscall arguments. videobuf_dma_contig_user_get() uses provided user pointers for vma lookups, which can only by done with untagged poin

Re: [RFC v4 00/17] kunit: introduce KUnit, the Linux kernel unit testing framework

2019-03-21 Thread Logan Gunthorpe
Hi, On 2019-02-14 2:37 p.m., Brendan Higgins wrote: > This patch set proposes KUnit, a lightweight unit testing and mocking > framework for the Linux kernel. I haven't followed the entire conversation but I saw the KUnit write-up on LWN and ended up, as an exercise, giving it a try. I really lik

Re: Clang warning in drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

2019-03-21 Thread Stephen Hines
Resending as plain-text to rest of list. Steve On Wed, Mar 20, 2019 at 7:58 AM Stephen Hines wrote: > > Why are there 2 different enums for this same thing at all? By casting, you > are reducing type safety in the kernel, which can cause bugs later (should > the two enums diverge in encoding).

Re: [PATCH 5/5] media: tvp5150: add support to limit tv norms on connector

2019-03-21 Thread Marco Felsch
Hi Mauro, On 19-03-20 11:18, Mauro Carvalho Chehab wrote: > Em Sat, 2 Feb 2019 13:10:04 +0100 > Marco Felsch escreveu: > > > The tvp5150 accepts NTSC(M,J,4.43), PAL (B,D,G,H,I,M,N) and SECAM video > > data and is able to auto-detect the input signal. > > Hmm... I'm afraid of this change. As f

Re: [PATCH v2] drm/exynos/mixer: fix MIXER shadow registry synchronisation code

2019-03-21 Thread Marek Szyprowski
Hi Inki, On 2019-03-21 09:20, Inki Dae wrote: > 19. 3. 19. 오후 10:05에 Andrzej Hajda 이(가) 쓴 글: >> MIXER on Exynos5 SoCs uses different synchronisation method than Exynos4 >> to update internal state (shadow registers). >> Apparently the driver implements it incorrectly. The rule should be >> as foll

Re: [RFC PATCH 06/20] lib: Add video format information library

2019-03-21 Thread Boris Brezillon
On Thu, 21 Mar 2019 09:20:41 +0100 Maxime Ripard wrote: > Hi Boris, > > On Wed, Mar 20, 2019 at 02:39:44PM +0100, Boris Brezillon wrote: > > On Tue, 19 Mar 2019 22:57:11 +0100 > > Maxime Ripard wrote: > > > > > Move the DRM formats API to turn this into a more generic image formats > > > API

[PATCH] drm/panel: otm8009a: set clock to 29.70 Mhz

2019-03-21 Thread Yannick Fertré
The panel does not support clock frequency over 30.74 Mhz. The clock rate has been reduced to 29.70 Mhz & new timings have been computed to get a framerate of 50fps. Signed-off-by: Yannick Fertré --- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 14 +++--- 1 file changed, 7 insertio

Re: [PATCH] ARM: dts: exynos: Increase minimal value of the Exynos4 mem buses to 160MHz

2019-03-21 Thread Krzysztof Kozlowski
On Wed, 20 Mar 2019 at 14:51, Marek Szyprowski wrote: > > On Exynos 4, the 'DMC' and 'leftbus' buses feed the internal buses of the > TV display subsystem and the Exynos Mixer hardware modules. When those > buses are set below 160MHz, Exynos Mixer is not able to properly handle > two XRGB display

Re: [PATCH] drm/fourcc: Fix conflicting Y41x definitions

2019-03-21 Thread Maarten Lankhorst
Op 20-03-2019 om 19:22 schreef Sean Paul: > On Tue, Mar 19, 2019 at 01:17:02PM +0100, Maarten Lankhorst wrote: >> There has unfortunately been a conflict with the following 3 commits: >> >> commit e9961ab95af81b8d29054361cd5f0c575102cf87 >> Author: Ayan Kumar Halder >> Date: Fri Nov 9 17:21:12 2

[Bug 110214] amdgpu: xterm scrollback buffer disappears while paging up/down

2019-03-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110214 Michel Dänzer changed: What|Removed |Added Product|DRI |Mesa Component|DRM/AMDgpu

Re: [PATCH 1/4] drm/amd/display: Prevent vblank irq disable while VRR is active. (v2)

2019-03-21 Thread Mario Kleiner
On Wed, Mar 20, 2019 at 2:11 PM Kazlauskas, Nicholas wrote: > > On 3/20/19 4:12 AM, Mario Kleiner wrote: > > During VRR mode we can not allow vblank irq dis-/enable > > transitions, as an enable after a disable can happen at > > an arbitrary time during the video refresh cycle, e.g., > > with a hi

Re: [PATCH 3/4] drm/amd/display: In VRR mode, do DRM core vblank handling at end of vblank.

2019-03-21 Thread Mario Kleiner
On Wed, Mar 20, 2019 at 1:53 PM Kazlauskas, Nicholas wrote: > > On 3/20/19 3:51 AM, Mario Kleiner wrote: > > Ok, fixed all the style issues and ran checkpatch over the patches. Thanks. > > > > On Tue, Mar 19, 2019 at 2:32 PM Kazlauskas, Nicholas > > wrote: > >> > >> On 3/19/19 9:23 AM, Kazlauskas

Re: [PATCH v2] drm/exynos/mixer: fix MIXER shadow registry synchronisation code

2019-03-21 Thread Inki Dae
Hi Marek, 19. 3. 21. 오후 5:32에 Marek Szyprowski 이(가) 쓴 글: > Hi Inki, > > On 2019-03-21 09:20, Inki Dae wrote: >> 19. 3. 19. 오후 10:05에 Andrzej Hajda 이(가) 쓴 글: >>> MIXER on Exynos5 SoCs uses different synchronisation method than Exynos4 >>> to update internal state (shadow registers). >>> Apparently

Re: [PATCH] ARM: imx_v6_v7_defconfig: Enable CONFIG_PWM_IMX27

2019-03-21 Thread Uwe Kleine-König
Hello, On Wed, Mar 20, 2019 at 01:01:26PM +, Leonard Crestez wrote: > Commit d80f8206905c ("pwm: imx: Split into two drivers") also adds a new > CONFIG_PWM_IMX27 for the PWM block on recent IMX chips and we should > enable it by default for imx. > > Restoring the PWM driver fixes an infinite

[GIT PULL] exynos-drm-fixes

2019-03-21 Thread Inki Dae
Hi Dave, Just one fixup to resolve page fault issue at Mixer device. Please kindly let me know if there is any problem. Thanks, Inki Dae The following changes since commit 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b: Linux 5.1-rc1 (2019-03-17 14:22:26 -0700) are available in the git repo

Re: [RFC PATCH 03/20] drm/fourcc: Pass the format_info pointer to drm_format_plane_cpp

2019-03-21 Thread Maxime Ripard
On Wed, Mar 20, 2019 at 03:24:26PM +0100, Paul Kocialkowski wrote: > Hi, > > Le mardi 19 mars 2019 à 22:57 +0100, Maxime Ripard a écrit : > > So far, the drm_format_plane_cpp function was operating on the format's > > fourcc and was doing a lookup to retrieve the drm_format_info structure and > > r

Re: [PATCH] xen, fbfront: mark expected switch fall-through

2019-03-21 Thread Bartlomiej Zolnierkiewicz
Hi, On 03/20/2019 09:08 PM, Gustavo A. R. Silva wrote: > Hi all, > > Friendly ping: > > Who can take this? I'll take this for v5.2. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics > Thanks > -- > Gustavo > > On 2/28/19 5:51 AM, Oleksandr Andrushch

Re: [v6 03/13] drm: Parse Colorimetry data block from EDID

2019-03-21 Thread Brian Starkey
Hi Uma, On Wed, Mar 20, 2019 at 04:18:16PM +0530, Uma Shankar wrote: > CEA 861.3 spec adds colorimetry data block for HDMI. > Parsing the block to get the colorimetry data from > panel. > While code which parses these parts (patches 2 and 3) out of EDID could be useful - it doesn't seem to actua

[git pull] vmwgfx-fixes-5.1

2019-03-21 Thread Thomas Hellstrom
Dave and Daniel, Two fixes CC'd stable. One fix for a long-standing a bit hard-to-trigger fbdev modesetting bug and one out-of-bo-id fix. The following changes since commit 1c163f4c7b3f621efff9b28a47abb36f7378d783: Linux 5.0 (2019-03-03 15:21:29 -0800) are available in the Git repository at:

Re: [PATCH 1/9] dma-buf: add new dma_fence_chain container v6

2019-03-21 Thread Christian König
Hi David, For the cmpxchg() case I of hand don't know either. Looks like so far nobody has used cmpxchg() with rcu protected structures. The other cases should be replaced by RCU_INIT_POINTER() or rcu_dereference_protected(.., true); Regards, Christian. Am 21.03.19 um 07:34 schrieb zhoucm1

Re: [v6 01/13] drm: Add HDR source metadata property

2019-03-21 Thread Brian Starkey
Hi Uma, On Wed, Mar 20, 2019 at 04:18:14PM +0530, Uma Shankar wrote: > This patch adds a blob property to get HDR metadata > information from userspace. This will be send as part > of AVI Infoframe to panel. > > v2: Rebase and modified the metadata structure elements > as per Ville's POC changes.

Re: [v6 06/13] drm: Enable HDR infoframe support

2019-03-21 Thread Brian Starkey
On Wed, Mar 20, 2019 at 04:18:19PM +0530, Uma Shankar wrote: > Enable Dynamic Range and Mastering Infoframe for HDR > content, which is defined in CEA 861.3 spec. > > The metadata will be computed based on blending > policy in userspace compositors and passed as a connector > property blob to driv

Re: [v6 05/13] drm: Implement HDR output metadata set and get property handling

2019-03-21 Thread Brian Starkey
Hi, On Wed, Mar 20, 2019 at 04:18:18PM +0530, Uma Shankar wrote: > This patch implements get() and set() functions for HDR output > metadata property.The blob data is received from userspace and > saved in connector state, the same is returned as blob in get > property call to userspace. > > v2:

Re: [v6 13/13] video/hdmi: Add const variants for drm infoframe

2019-03-21 Thread Brian Starkey
Hi, On Wed, Mar 20, 2019 at 04:18:26PM +0530, Uma Shankar wrote: > Added the const version of infoframe for DRM metadata > for HDR. > > Signed-off-by: Uma Shankar Unless there's a strong reason not to, I think this can be squashed into patch 6. > --- > drivers/video/hdmi.c | 63 > +++

Re: [21/21] drm/bridge: tc358767: implement naive HPD handling

2019-03-21 Thread Tomi Valkeinen
On 21/03/2019 00:58, Andrey Smirnov wrote: > Regardless of how it's going to be implemented in the end, there'd > have to be a way to specify which HPD input is being used. Which means True. > a either a new DT binding or re-using already existing to be agreed on > by DT folks. It just seems to

[RFC PATCH RESEND 0/3] mm modifications / helpers for emulated GPU coherent memory

2019-03-21 Thread Thomas Hellstrom
Cc: Andrew Morton Cc: Matthew Wilcox Cc: Will Deacon Cc: Peter Zijlstra Cc: Rik van Riel Cc: Minchan Kim Cc: Michal Hocko Cc: Huang Ying Cc: Souptick Joarder Cc: "Jérôme Glisse" Cc: linux...@kvack.org Cc: linux-ker...@vger.kernel.org Resending since last series was sent through a mis-con

[RFC PATCH RESEND 1/3] mm: Allow the [page|pfn]_mkwrite callbacks to drop the mmap_sem

2019-03-21 Thread Thomas Hellstrom
Driver fault callbacks are allowed to drop the mmap_sem when expecting long hardware waits to avoid blocking other mm users. Allow the mkwrite callbacks to do the same by returning early on VM_FAULT_RETRY. In particular we want to be able to drop the mmap_sem when waiting for a reservation object

[RFC PATCH RESEND 2/3] mm: Add an apply_to_pfn_range interface

2019-03-21 Thread Thomas Hellstrom
This is basically apply_to_page_range with added functionality: Allocating missing parts of the page table becomes optional, which means that the function can be guaranteed not to error if allocation is disabled. Also passing of the closure struct and callback function becomes different and more in

[RFC PATCH RESEND 3/3] mm: Add write-protect and clean utilities for address space ranges

2019-03-21 Thread Thomas Hellstrom
Add two utilities to a) write-protect and b) clean all ptes pointing into a range of an address space The utilities are intended to aid in tracking dirty pages (either driver-allocated system memory or pci device memory). The write-protect utility should be used in conjunction with page_mkwrite() a

Re: [RFC PATCH RESEND 0/3] mm modifications / helpers for emulated GPU coherent memory

2019-03-21 Thread Jerome Glisse
On Thu, Mar 21, 2019 at 01:22:22PM +, Thomas Hellstrom wrote: > Resending since last series was sent through a mis-configured SMTP server. > > Hi, > This is an early RFC to make sure I don't go too far in the wrong direction. > > Non-coherent GPUs that can't directly see contents in CPU-visib

Re: [RFC PATCH RESEND 2/3] mm: Add an apply_to_pfn_range interface

2019-03-21 Thread Jerome Glisse
On Thu, Mar 21, 2019 at 01:22:35PM +, Thomas Hellstrom wrote: > This is basically apply_to_page_range with added functionality: > Allocating missing parts of the page table becomes optional, which > means that the function can be guaranteed not to error if allocation > is disabled. Also passing

Re: [PATCH][next] drm/amd/powerplay: fix spelling mistake "unknow" -> "unknown"

2019-03-21 Thread Alex Deucher
On Wed, Mar 20, 2019 at 1:29 PM Colin King wrote: > > From: Colin Ian King > > There is a spelling mistake in pr_warn message; fix it. > > Signed-off-by: Colin Ian King Applied. thanks! Alex > --- > drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 2 +- > 1 file changed, 1 insertion(+), 1 deleti

Re: [PATCH] drm/amd/powerplay: Zero initialize num_of_levels in vega20_set_single_dpm_table

2019-03-21 Thread Alex Deucher
On Wed, Mar 20, 2019 at 4:33 AM Nathan Chancellor wrote: > > When building with -Wsometimes-uninitialized, Clang warns: > > drivers/gpu/drm/amd/amdgpu/../powerplay/vega20_ppt.c:456:2: warning: > variable 'num_of_levels' is used uninitialized whenever '?:' condition > is false [-Wsometimes-uninitia

[PATCH v2 3/4] dt-bindings: display: Add Novatek NT35596 panel documentation

2019-03-21 Thread Jagan Teki
Novatek NT35596 is a single-chip IC solution for small or medium-sized LTPS TFT LCD panels. NT35596 provides several system interfaces like MIPI/SPI/I2C. Microtech MTF050FHDI-03 is 1080x1920, 4-lane MIPI DSI LCD panel which has inbuilt NT35596 IC chip. NT35596 support several regulators on the c

[PATCH v2 1/4] dt-bindings: Add vendor prefix for novatek

2019-03-21 Thread Jagan Teki
Add vendor prefix for novatek. Novatek Microelectronics Corp. is a leading fabless chip design company specializing in the design, development and sales of a wide range of display driver ICs & SoC solutions. Signed-off-by: Jagan Teki --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1

Re: [PATCH -next] drm/ttm: remove set but not used variable 'rdev'

2019-03-21 Thread Alex Deucher
On Wed, Mar 20, 2019 at 9:25 AM YueHaibing wrote: > > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/gpu/drm/radeon/radeon_ttm.c: In function 'radeon_move_vram_ram': > drivers/gpu/drm/radeon/radeon_ttm.c:254:24: warning: > variable 'rdev' set but not used [-Wunused-but-set-variable] >

[PATCH v2 0/4] drm/panel: Add Novatek NT35596 panel

2019-03-21 Thread Jagan Teki
This is v2 series for Novatek NT35596 panel driver. here is previous series set[2] Since there is no proper programming guide for NT35596 IC, the driver init sequence is referenced from [1] but analyzed based on datasheet. NT35596 support several regulators on the chip, among those ony 4 regulat

[PATCH v2 4/4] drm/panel: Add Novatek NT35596 panel driver

2019-03-21 Thread Jagan Teki
Novatek NT35596 is a single-chip IC solution for small or medium-sized LTPS TFT LCD panels. NT35596 provides several system interfaces like MIPI/SPI/I2C. Currently added support for Microtech MTF050FHDI-03 is 1080x1920, 4-lane MIPI DSI LCD panel which has inbuilt NT35596 IC chip. NT35596 support

[PATCH v2 2/4] dt-bindings: Add vendor prefix for microtech

2019-03-21 Thread Jagan Teki
Add vendor prefix for microtech, known as Microtech Technology Company Limited. a known producer for Liquid Crytal Display modules and Touch Panels. Signed-off-by: Jagan Teki --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentati

Re: [PATCH v8 02/15] drm/sun4i: tcon: Compute DCLK dividers based on format, lanes

2019-03-21 Thread Jagan Teki
On Tue, Mar 19, 2019 at 4:23 PM Maxime Ripard wrote: > > On Mon, Mar 11, 2019 at 09:36:27PM +0530, Jagan Teki wrote: > > On Mon, Mar 11, 2019 at 9:08 PM Maxime Ripard > > wrote: > > > > > > On Mon, Mar 11, 2019 at 07:06:24PM +0530, Jagan Teki wrote: > > > > pll-video => pll-mipi => tcon0 => tcon

Re: [PATCH v8 02/15] drm/sun4i: tcon: Compute DCLK dividers based on format, lanes

2019-03-21 Thread Jagan Teki
Hi Sergey, On Tue, Mar 19, 2019 at 5:47 PM Sergey Suloev wrote: > > Hi, guys, > > On 3/19/19 1:53 PM, Maxime Ripard wrote: > > On Mon, Mar 11, 2019 at 09:36:27PM +0530, Jagan Teki wrote: > > On Mon, Mar 11, 2019 at 9:08 PM Maxime Ripard > wrote: > > On Mon, Mar 11, 2019 at 07:06:24PM +0530, Jag

Re: [RFC PATCH RESEND 3/3] mm: Add write-protect and clean utilities for address space ranges

2019-03-21 Thread Jerome Glisse
On Thu, Mar 21, 2019 at 01:22:41PM +, Thomas Hellstrom wrote: > Add two utilities to a) write-protect and b) clean all ptes pointing into > a range of an address space > The utilities are intended to aid in tracking dirty pages (either > driver-allocated system memory or pci device memory). > T

Re:[PATCH 1/9] dma-buf: add new dma_fence_chain container v6

2019-03-21 Thread Zhou, David(ChunMing)
cmpxchg be replaced by some simple c sentance? otherwise we have to remove __rcu of chian->prev. -David Original Message Subject: Re: [PATCH 1/9] dma-buf: add new dma_fence_chain container v6 From: Christian König To: "Zhou, David(ChunMing)" ,kbuild test robot ,"Zhou, David(Chun

Re: [PATCH v8 01/15] drm/sun4i: dsi: Fix video start delay computation

2019-03-21 Thread Jagan Teki
On Tue, Mar 19, 2019 at 3:55 PM Maxime Ripard wrote: > > On Mon, Mar 11, 2019 at 09:31:11PM +0530, Jagan Teki wrote: > > On Mon, Mar 11, 2019 at 9:07 PM Maxime Ripard > > wrote: > > > > > > On Mon, Mar 11, 2019 at 07:06:23PM +0530, Jagan Teki wrote: > > > > Vertical video start delay is computed

Re: [PATCH 1/9] dma-buf: add new dma_fence_chain container v6

2019-03-21 Thread Christian König
No, atomic cmpxchg is a hardware operation. If you want to replace that you need a lock again. Maybe just add a comment and use an explicit cast to void* ? Not sure if that silences the warning. Christian. Am 21.03.19 um 15:13 schrieb Zhou, David(ChunMing): cmpxchg be replaced by some simpl

  1   2   >