Re: [PATCH v6 3/3] phy: Add driver for mixel dphy found on imx8

2019-03-24 Thread kbuild test robot
Hi "Guido, Thank you for the patch! Yet something to improve: [auto build test ERROR on phy/next] [also build test ERROR on v5.1-rc2 next-20190325] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commit

[Bug 110199] [amdgpu] Screen flickering when using a 75Hz monitor paired with an RX 480 GPU

2019-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110199 --- Comment #2 from bmil...@gmail.com --- don't pay attention to what guy above said, he's a known troll. this is present in any kernel, including stable, mainline and drm-wip. this is a duplicate of https://bugs.freedesktop.org/show_bug.cgi?id

Re: [PATCH v2 RESEND 00/24] drm/exynos: add support for GSCALER planes on Exynos5433

2019-03-24 Thread Inki Dae
Hi Andrzej, Merge conflict. Could you rebase this patch series on top of exynos-drm-next? Thanks, Inki Dae 19. 3. 20. 오후 10:06에 Andrzej Hajda 이(가) 쓴 글: > Hi Inki, > > GSCALERs in Exynos SoCs support conversion between wide range of image > formats, > plus scaling and rotation. > Driver already

Re: [PATCH 1/2] dma-fence: Propagate errors to dma-fence-array container

2019-03-24 Thread kbuild test robot
Hi Chris, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.1-rc1 next-20190322] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/l

Re: [PATCH 1/2] drm/bridge/synopsys: dw-hdmi: Add an option to suppress loading CEC driver

2019-03-24 Thread Laurent Pinchart
Hi Jernej, Thank you for the patch. On Sun, Mar 24, 2019 at 10:21:42PM +0100, Jernej Skrabec wrote: > DW HDMI controller on some Allwinner SoCs has support for CEC, but due > to additional logic put between CEC controller and pins, it doesn't work > correctly, at least not with a lot of instrusiv

Re: [PATCH v2 4/5] drm/vc4: fix fb references in async update

2019-03-24 Thread Sasha Levin
Hi, [This is an automated email] This commit has been processed because it contains a "Fixes:" tag, fixing commit: 539c320bfa97 drm/vc4: update cursors asynchronously through atomic. The bot has tested the following trees: v5.0.3, v4.19.30. v5.0.3: Build OK! v4.19.30: Failed to apply! Possible

Re: [PATCH v3 4/5] drm/vc4: fix fb references in async update

2019-03-24 Thread Sasha Levin
Hi, [This is an automated email] This commit has been processed because it contains a "Fixes:" tag, fixing commit: 539c320bfa97 drm/vc4: update cursors asynchronously through atomic. The bot has tested the following trees: v5.0.3, v4.19.30. v5.0.3: Build OK! v4.19.30: Failed to apply! Possible

Re: [PATCH 5/8] fbdev: sm712fb: fix crashes during framebuffer writes by correctly mapping VRAM.

2019-03-24 Thread Sudip Mukherjee
Hi Teddy, On Sun, Mar 17, 2019 at 06:25:01AM +0800, Yifeng Li wrote: > On a Thinkpad s30 (Pentium III / i440MX, Lynx3DM), running fbtest or X > will crash the machine instantly, because the VRAM/framebuffer is not > mapped correctly. > > On SM712, the framebuffer starts at the beginning of addres

Re: [PATCH 7/7] x86: remove the x86_dma_fallback_dev hack

2019-03-24 Thread Thomas Gleixner
On Thu, 21 Mar 2019, Christoph Hellwig wrote: Please change the subject to: x86/dma: Remove the hack > Now that we removed support for the NULL device argument in the DMA API, > there is no need to cater for that in the x86 code. > Signed-off-by: Christoph Hellwig > --- > arch/x86/inclu

[PATCH v2 0/7] implement 2D acceleration, minor cleanups, doc updates.

2019-03-24 Thread Yifeng Li
v2: - Also implement 2D acceleration for SM720. - Remove writel_relaxed() and an explicit memory barrier, on MIPS, PowerPC and x86, relaxed writes do not have additional performance, and complicates the code. - Document additional issues in the driver. NOTE: - This patchset should be

Re: [RFC v4 16/17] of: unittest: split out a couple of test cases from unittest

2019-03-24 Thread Frank Rowand
On 2/14/19 1:37 PM, Brendan Higgins wrote: > Split out a couple of test cases that these features in base.c from the > unittest.c monolith. The intention is that we will eventually split out > all test cases and group them together based on what portion of device > tree they test. I still object t

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

2019-03-24 Thread Nicolas Dufresne
Le vendredi 22 mars 2019 à 20:44 +0200, Ville Syrjälä a écrit : > On Fri, Mar 22, 2019 at 02:24:29PM -0400, Nicolas Dufresne wrote: > > Le jeudi 21 mars 2019 à 23:44 +0200, Ville Syrjälä a écrit : > > > On Thu, Mar 21, 2019 at 03:14:06PM -0400, Nicolas Dufresne wrote: > > > > Le jeudi 21 mars 2019

Re: [PATCH v2] gpu/drm: mediatek: call mtk_dsi_stop() after mtk_drm_crtc_atomic_disable()

2019-03-24 Thread Hsin-Yi Wang
On Thu, Mar 21, 2019 at 9:46 AM CK Hu wrote: > > Hi, Hsin-yi: > > On Thu, 2019-03-21 at 09:28 +0800, CK Hu wrote: > > Hi, Hsin-yi: > > > > On Wed, 2019-03-20 at 15:18 +0800, Hsin-Yi Wang wrote: > > > mtk_dsi_stop() should be called after mtk_drm_crtc_atomic_disable(), > > > which needs > > > ovl

[PATCH v2 02/15] drm/bridge: tc358767: Simplify polling in tc_main_link_setup()

2019-03-24 Thread Andrey Smirnov
Replace explicit polling loop with equivalent call to tc_poll_timeout() for brevity. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Tomi Valkeinen Cc: Andrey Gusakov Cc: Philipp Zabel Cc: Chris Healy Cc: Lucas Stach

[RFC v2 2/3] dma-buf: add DMA_BUF_{GET,SET}_NAME ioctls

2019-03-24 Thread Chenbo Feng
From: Greg Hackmann This patch adds complimentary DMA_BUF_SET_NAME and DMA_BUF_GET_NAME ioctls, which lets userspace processes attach a free-form name to each buffer. This information can be extremely helpful for tracking and accounting shared buffers. For example, on Android, we know what each

Re: [PATCH v2 08/15] drm/bridge: tc358767: Increase AUX transfer length limit

2019-03-24 Thread Andrey Smirnov
On Fri, Mar 22, 2019 at 6:14 AM Tomi Valkeinen wrote: > > On 22/03/2019 05:28, Andrey Smirnov wrote: > > According to the datasheet tc358767 can transfer up to 16 bytes via > > its AUX channel, so the artificial limit of 8 apperas to be too > > low. However only up to 15-bytes seem to be actually

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

2019-03-24 Thread Knut Omang
On Thu, 2019-03-21 at 09:55 -0700, Brendan Higgins wrote: > On Thu, Mar 21, 2019 at 8:56 AM Logan Gunthorpe wrote: > > > > > > On 2019-03-20 11:23 p.m., Knut Omang wrote: > > > Testing drivers, hardware and firmware within production kernels was the > > > use > > > case that inspired KTF (Kernel

Re: [RFC v3 18/19] of: unittest: split out a couple of test cases from unittest

2019-03-24 Thread Frank Rowand
On 3/21/19 5:22 PM, Frank Rowand wrote: > On 2/27/19 7:52 PM, Brendan Higgins wrote: < snip > >> Now I know that, hermeticity especially, but other features as well >> (test suite summary, error on unused test case function, etc) are not >> actually in KUnit as it is under consideration here. May

[PATCH 2/2] drm/meson: Uninstall IRQ handler

2019-03-24 Thread Jean-Philippe Brucker
meson_drv_unbind() doesn't unregister the IRQ handler, which can lead to use-after-free if the IRQ fires after unbind: [ 64.656876] Unable to handle kernel paging request at virtual address 11706dbc ... [ 64.662001] pc : meson_irq+0x18/0x30 [meson_drm] I'm assuming that a similar pro

Re: [RFC v2 dma-buf 0/3] Improve the dma-buf tracking

2019-03-24 Thread Joel Fernandes
On Thu, Mar 21, 2019 at 07:51:32PM -0700, Chenbo Feng wrote: > Currently, all dma-bufs share the same anonymous inode. While we can count > how many dma-buf fds or mappings a process has, we can't get the size of > the backing buffers or tell if two entries point to the same dma-buf. And > in debug

[PATCH 1/2] drm/udl: Fix off-by-one error in udl_get_edid()

2019-03-24 Thread Reza Arbab
The loop which reads EDID extension blocks is off by one. Fix it. Fixes: 75c65ee20ade ("drm/udl: Reading all edid blocks in DRM/UDL driver") Signed-off-by: Reza Arbab --- drivers/gpu/drm/udl/udl_connector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/udl/u

[PATCH v2 4/7] fbdev: sm712fb: add 32-bit color modes, drops some other modes.

2019-03-24 Thread Yifeng Li
The modesetting in sm712fb is an ugly hack. First, all the registers are programmed by hardcoded register arrays, which makes it difficult to support different variations of color depths, refresh rates, CRT/LCD panel, etc of the same resolution. Second, it means the standard fb_find_mode() cannot b

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

2019-03-24 Thread Nicolas Dufresne
Le jeudi 21 mars 2019 à 23:44 +0200, Ville Syrjälä a écrit : > On Thu, Mar 21, 2019 at 03:14:06PM -0400, Nicolas Dufresne wrote: > > Le jeudi 21 mars 2019 à 18:35 +0200, Ville Syrjälä a écrit : > > > > I'm not sure what it's worth, but there is a "pixel format guide" > > > > project that is all abo

[PATCH v2 10/15] drm/bridge: tc358767: Add support for address-only I2C transfers

2019-03-24 Thread Andrey Smirnov
Transfer size of zero means a request to do an address-only transfer. Since the HW support this, we probably shouldn't be just ignoring such requests. While at it allow DP_AUX_I2C_MOT flag to pass through, since it is supported by the HW as well. Signed-off-by: Andrey Smirnov Cc: Archit Taneja C

Re: [RFC v2 1/3] dma-buf: give each buffer a full-fledged inode

2019-03-24 Thread Joel Fernandes
Hi Sandeep, On Sun, Mar 24, 2019 at 10:56:33AM -0700, Sandeep Patil wrote: > On Fri, Mar 22, 2019 at 11:02:55AM -0400, Joel Fernandes wrote: > > On Thu, Mar 21, 2019 at 07:51:33PM -0700, Chenbo Feng wrote: > > > From: Greg Hackmann > > > > > > By traversing /proc/*/fd and /proc/*/map_files, proc

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

2019-03-24 Thread Catalin Marinas
On Wed, Mar 20, 2019 at 03:51:24PM +0100, Andrey Konovalov wrote: > @@ -2120,13 +2135,14 @@ static int prctl_set_mm(int opt, unsigned long addr, > if (opt == PR_SET_MM_AUXV) > return prctl_set_auxv(mm, addr, arg4); > > - if (addr >= TASK_SIZE || addr < mmap_min_addr) > +

Re: [RFC v2 1/3] dma-buf: give each buffer a full-fledged inode

2019-03-24 Thread Joel Fernandes
On Thu, Mar 21, 2019 at 07:51:33PM -0700, Chenbo Feng wrote: > From: Greg Hackmann > > By traversing /proc/*/fd and /proc/*/map_files, processes with CAP_ADMIN > can get a lot of fine-grained data about how shmem buffers are shared > among processes. stat(2) on each entry gives the caller a uniq

[PATCH -next] drm/vmwgfx: Remove set but not used variable 'fb_offset, fb_depth'

2019-03-24 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/vmwgfx/vmwgfx_fb.c: In function 'vmw_fb_init': drivers/gpu/drm/vmwgfx/vmwgfx_fb.c:645:29: warning: variable 'fb_offset' set but not used [-Wunused-but-set-variable] drivers/gpu/drm/vmwgfx/vmwgfx_fb.c:645:19: warning: variable 'fb_de

[PATCH v2] drm: vkms: check status of alloc_ordered_workqueue

2019-03-24 Thread Kangjie Lu
alloc_ordered_workqueue may fail and return NULL. The fix cleans up drm plans and returns ENOMEM when it fails to avoid potential NULL pointer dereference. Signed-off-by: Kangjie Lu --- V2: clean up resources --- drivers/gpu/drm/vkms/vkms_crtc.c | 11 +++ 1 file changed, 11 insertions(+)

Re: INFO: task hung in process_measurement

2019-03-24 Thread syzbot
syzbot has bisected this bug to: commit 8fe5616b20e5742bb5fee0e77dffe2fc76ac92a0 Author: Jyri Sarha Date: Tue Jun 14 08:43:30 2016 + drm/tilcdc: Restore old dpms state in pm_resume() bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=10daff1b20 start commit: 291d0e5d

Re: [PATCH v4 1/7] dt-bindings: interconnect: Add a dma interconnect name

2019-03-24 Thread Georgi Djakov
On 3/14/19 22:26, Maxime Ripard wrote: > The current DT bindings assume that the DMA will be performed by the > devices through their parent DT node, and rely on that assumption for the > address translation using dma-ranges. > > However, some SoCs have devices that will perform DMA through anothe

Re: [PATCH v2 00/15] tc358767 driver improvements

2019-03-24 Thread Andrey Smirnov
On Fri, Mar 22, 2019 at 1:06 AM Tomi Valkeinen wrote: > > Hi, > > On 22/03/2019 05:28, Andrey Smirnov wrote: > > Everyone: > > > > This series contains various improvements (at least in my mind) and > > fixes that I made to tc358767 while working with the code of the > > driver. Hopefuly each patc

Re: [PATCH v2 07/15] drm/bridge: tc358767: Simplify AUX data write

2019-03-24 Thread Andrey Smirnov
On Fri, Mar 22, 2019 at 3:51 AM Tomi Valkeinen wrote: > > On 22/03/2019 05:28, Andrey Smirnov wrote: > > Simplify AUX data write by dropping index arithmetic and shifting and > > replacing it with a call to a helper function that does three things: > > > > 1. Copies user-provided data into a w

[PATCH v2 04/15] drm/bridge: tc358767: Simplify tc_set_video_mode()

2019-03-24 Thread Andrey Smirnov
Simplify tc_set_video_mode() by replacing repreated calls to tc_write()/regmap_write() with a single call to regmap_multi_reg_write(). While at it, simplify explicit shifting by using macros from . No functional change intended. Signed-off-by: Andrey Smirnov Cc: Archit Taneja Cc: Andrzej Hajda

[PATCH 0/2] drm: udl fixes

2019-03-24 Thread Reza Arbab
These fixes were needed to bring my udl devices to life on v5.1-rc1. Reza Arbab (2): drm/udl: Fix off-by-one error in udl_get_edid() drm/fb-helper: Do not scale depth down to 0 drivers/gpu/drm/drm_fb_helper.c | 6 +- drivers/gpu/drm/udl/udl_connector.c | 2 +- 2 files changed, 6 inse

Re: [RFC v4 08/17] kunit: test: add support for test abort

2019-03-24 Thread Knut Omang
On Thu, 2019-03-21 at 18:41 -0700, Brendan Higgins wrote: > On Thu, Mar 21, 2019 at 6:10 PM Frank Rowand wrote: > > On 2/27/19 11:42 PM, Brendan Higgins wrote: > > > On Tue, Feb 19, 2019 at 10:44 PM Frank Rowand > > > wrote: > > > > On 2/19/19 7:39 PM, Brendan Higgins wrote: > > > > > On Mon, Feb

[PATCH libdrm] tests/util: Add armada-drm driver

2019-03-24 Thread Lubomir Rintel
This makes the test utilities work with the Armada driver without the necessity of using the -M argument. Signed-off-by: Lubomir Rintel --- tests/util/kms.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/util/kms.c b/tests/util/kms.c index 5af8bf20..dd1bbee3 100644 --- a/tests/util/km

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

2019-03-24 Thread Frank Rowand
On 3/21/19 4:33 PM, Brendan Higgins wrote: > On Thu, Mar 21, 2019 at 3:27 PM Logan Gunthorpe wrote: >> >> >> >> On 2019-03-21 4:07 p.m., Brendan Higgins wrote: >>> A couple of points, as for needing CONFIG_PCI; my plan to deal with >>> that type of thing has been that we would add support for a KU

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

2019-03-24 Thread Catalin Marinas
On Wed, Mar 20, 2019 at 03:51:18PM +0100, Andrey Konovalov wrote: > 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 p

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

2019-03-24 Thread Catalin Marinas
On Wed, Mar 20, 2019 at 03:51:28PM +0100, Andrey Konovalov wrote: > 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 provi

[PATCH v2 01/15] drm/bridge: tc358767: Simplify tc_poll_timeout()

2019-03-24 Thread Andrey Smirnov
Implementation of tc_poll_timeout() is almost a 100% copy-and-paste of the code for regmap_read_poll_timeout(). Replace copied code with a call to the original. While at it change tc_poll_timeout to accept "struct tc_data *" instead of "struct regmap *" for brevity. No functional change intended.

[RFC v2 dma-buf 0/3] Improve the dma-buf tracking

2019-03-24 Thread Chenbo Feng
Currently, all dma-bufs share the same anonymous inode. While we can count how many dma-buf fds or mappings a process has, we can't get the size of the backing buffers or tell if two entries point to the same dma-buf. And in debugfs, we can get a per-buffer breakdown of size and reference count, bu

[RFC v2 3/3] dma-buf: add show_fdinfo handler

2019-03-24 Thread Chenbo Feng
From: Greg Hackmann The show_fdinfo handler exports the same information available through debugfs on a per-buffer basis. Signed-off-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/dma-buf/

Re: [PATCH] [v6, 2/2] drm/panel: Add Boe Himax8279d MIPI-DSI LCD panel

2019-03-24 Thread dbasehore .
On Mon, Mar 11, 2019 at 3:04 AM Jerry Han wrote: > > Support Boe Himax8279d 8.0" 1200x1920 TFT LCD panel, it is a MIPI DSI > panel. > > V6: > - Add the information of the reviewer (Sam) > - Delete unnecessary header files #include (Sam) > - The config DRM_PANEL_BOE_HIMAX8279D appears twice. Drop

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

2019-03-24 Thread Catalin Marinas
On Wed, Mar 20, 2019 at 03:51:26PM +0100, Andrey Konovalov wrote: > 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 (

[PATCH v2 12/15] drm/bridge: tc358767: Introduce tc_pllupdate_pllen()

2019-03-24 Thread Andrey Smirnov
tc_wait_pll_lock() is always called as a follow-up for updating PLLUPDATE and PLLEN bit of a given PLL control register. To simplify things, merge the two operation into a single helper function tc_pllupdate_pllen() and convert the rest of the code to use it. No functional change intended. Signed-

[PATCH v2 1/7] fbdev: sm712fb: use type "u8" for 8-bit I/O.

2019-03-24 Thread Yifeng Li
This commit converts "unsigned int" and "int" in I/O wrappers to "u8". It improves readability since it's consistent with the prototypes of readb() and writeb(). More importantly, it reduces readers' confusion, since the upcoming 2D acceleration code will use a different wordsize. Signed-off-by: Y

Re: [PATCH] drm/sun4i: hdmi: add support for ddc-i2c-bus property

2019-03-24 Thread Måns Rullgård
Maxime Ripard writes: > On Tue, Mar 19, 2019 at 12:48:19PM +, Måns Rullgård wrote: >> Maxime Ripard writes: >> >> > On Mon, Mar 18, 2019 at 04:23:56PM +, Måns Rullgård wrote: >> >> Maxime Ripard writes: >> >> >> >> > On Thu, Mar 14, 2019 at 04:09:13PM +, Måns Rullgård wrote: >> >> >

Re: [PATCH v2 05/15] drm/bridge: tc358767: Drop custom tc_write()/tc_read() accessors

2019-03-24 Thread Andrey Smirnov
On Fri, Mar 22, 2019 at 3:29 AM Tomi Valkeinen wrote: > > On 22/03/2019 05:28, Andrey Smirnov wrote: > > A very unfortunate aspect of tc_write()/tc_read() macro helpers is > > that they capture quite a bit of context around them and thus require > > the caller to have magic variables 'ret' and 'tc

Re: [RFC v4 08/17] kunit: test: add support for test abort

2019-03-24 Thread Frank Rowand
On 2/27/19 11:42 PM, Brendan Higgins wrote: > On Tue, Feb 19, 2019 at 10:44 PM Frank Rowand wrote: >> >> On 2/19/19 7:39 PM, Brendan Higgins wrote: >>> On Mon, Feb 18, 2019 at 11:52 AM Frank Rowand >>> wrote: On 2/14/19 1:37 PM, Brendan Higgins wrote: > Add support for aborting/bai

[PATCH v2 6/7] fbdev: sm712fb: Kconfig: add information about docs.

2019-03-24 Thread Yifeng Li
This commits update the Kconfig description of sm712fb, and inform the user about the existence of documentation. Signed-off-by: Yifeng Li --- Documentation/fb/sm712fb.txt | 44 drivers/video/fbdev/Kconfig | 4 2 files changed, 29 insertions(+), 19 del

[PATCH] gpu: radeon: fix a potential NULL-pointer dereference

2019-03-24 Thread Kangjie Lu
In case alloc_workqueue fails, the fix frees memory and returns to avoid potential NULL pointer dereference. Signed-off-by: Kangjie Lu --- drivers/gpu/drm/radeon/radeon_display.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/r

[PATCH 1/2] drm/meson: Fix invalid pointer in meson_drv_unbind()

2019-03-24 Thread Jean-Philippe Brucker
meson_drv_bind() registers a meson_drm struct as the device's privdata, but meson_drv_unbind() tries to retrieve a drm_device. This may cause a segfault on shutdown: [ 5194.593429] Unable to handle kernel NULL pointer dereference at virtual address 0197 ... [ 5194.788850] Call trace:

Re: [PATCH] drm: vkms: check status of alloc_ordered_workqueue

2019-03-24 Thread Mukesh Ojha
On 3/9/2019 10:06 AM, Kangjie Lu wrote: alloc_ordered_workqueue may fail and return NULL. The fix returns ENOMEM when it fails to avoid potential NULL pointer dereference. Signed-off-by: Kangjie Lu --- drivers/gpu/drm/vkms/vkms_crtc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dr

Re: [RFC v3 18/19] of: unittest: split out a couple of test cases from unittest

2019-03-24 Thread Frank Rowand
On 2/27/19 7:52 PM, Brendan Higgins wrote: > On Wed, Feb 20, 2019 at 12:45 PM Frank Rowand wrote: >> >> On 2/18/19 2:25 PM, Frank Rowand wrote: >>> On 2/15/19 2:56 AM, Brendan Higgins wrote: On Thu, Feb 14, 2019 at 6:05 PM Frank Rowand wrote: > > On 2/14/19 4:56 PM, Brendan Hig

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

2019-03-24 Thread Kevin Brodsky
On 20/03/2019 14:51, Andrey Konovalov wrote: 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 v

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

2019-03-24 Thread Logan Gunthorpe
On 2019-03-21 4:07 p.m., Brendan Higgins wrote: > A couple of points, as for needing CONFIG_PCI; my plan to deal with > that type of thing has been that we would add support for a KUnit/UML > version that is just for KUnit. It would mock out the necessary bits > to provide a fake hardware impleme

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

2019-03-24 Thread Catalin Marinas
On Wed, Mar 20, 2019 at 03:51:23PM +0100, Andrey Konovalov wrote: > 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

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

2019-03-24 Thread Nicolas Dufresne
Le vendredi 22 mars 2019 à 16:42 +0200, Ville Syrjälä a écrit : > On Thu, Mar 21, 2019 at 03:14:06PM -0400, Nicolas Dufresne wrote: > > Le jeudi 21 mars 2019 à 18:35 +0200, Ville Syrjälä a écrit : > > > > I'm not sure what it's worth, but there is a "pixel format guide" > > > > project that is all

Re: [RFC v4 17/17] of: unittest: split up some super large test cases

2019-03-24 Thread Frank Rowand
On 2/14/19 1:37 PM, Brendan Higgins wrote: > Split up the super large test cases of_unittest_find_node_by_name and > of_unittest_dynamic into properly sized and defined test cases. I also still object to this patch. -Frank > > Signed-off-by: Brendan Higgins > --- > drivers/of/base-test.c | 2

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

2019-03-24 Thread Knut Omang
On Thu, 2019-03-21 at 13:29 -0600, Logan Gunthorpe wrote: > > On 2019-03-21 1:13 p.m., Knut Omang wrote: > > > Nevertheless, I don't really see KTF as a real unit testing framework > > > for a number of different reasons; you pointed out some below, but I > > > think the main one being that it req

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

2019-03-24 Thread Catalin Marinas
On Wed, Mar 20, 2019 at 03:51:27PM +0100, Andrey Konovalov wrote: > 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 prov

[PATCH v2 08/15] drm/bridge: tc358767: Increase AUX transfer length limit

2019-03-24 Thread Andrey Smirnov
According to the datasheet tc358767 can transfer up to 16 bytes via its AUX channel, so the artificial limit of 8 apperas to be too low. However only up to 15-bytes seem to be actually supported and trying to use 16-byte transfers results in transfers failing sporadically (with bogus status in case

Re: [PATCH] ARM: imx_v6_v7_defconfig: Enable CONFIG_PWM_IMX27

2019-03-24 Thread Leonard Crestez
On 3/21/2019 11:49 AM, Uwe Kleine-König wrote: > 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. >> >

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

2019-03-24 Thread Catalin Marinas
On Wed, Mar 20, 2019 at 03:51:29PM +0100, Andrey Konovalov wrote: > 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

[PATCH v2 3/7] fbdev: sm712fb: support 2D acceleration on SM712 w/ Little-Endian CPU.

2019-03-24 Thread Yifeng Li
Previously, in staging/sm7xxfb (now fbdev/sm712fb), 2D acceleration was implemented, but after its submission, a critical bug that causes total system hang was discovered, as a stopgap measure, 2D ops was completele removed in commit 3af805735a25 ("staging: sm7xx: remove the buggy 2D acceleration s

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

2019-03-24 Thread Catalin Marinas
On Wed, Mar 20, 2019 at 03:51:31PM +0100, Andrey Konovalov wrote: > 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 provi

[PATCH -next] drm/amd/display: Remove useless set memory to zero use memset()

2019-03-24 Thread Yue Haibing
From: YueHaibing The memory return by kzalloc() has already be set to zero, so remove useless memset(0). Signed-off-by: YueHaibing --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.

Re: [PATCH v2 04/15] drm/bridge: tc358767: Simplify tc_set_video_mode()

2019-03-24 Thread Andrey Smirnov
On Fri, Mar 22, 2019 at 3:19 AM Tomi Valkeinen wrote: > > On 22/03/2019 05:28, Andrey Smirnov wrote: > > Simplify tc_set_video_mode() by replacing repreated calls to > > tc_write()/regmap_write() with a single call to > > regmap_multi_reg_write(). While at it, simplify explicit shifting by > > usi

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

2019-03-24 Thread Nicolas Dufresne
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 add the v4l2 fourcc's for the already existing formats. Hopefully I get the fixup right this time, see inline. > > Signed-off-by: Maxime Ripa

[PATCH v2 06/15] drm/bridge: tc358767: Simplify AUX data read

2019-03-24 Thread Andrey Smirnov
Simplify AUX data read by removing index arithmetic and shifting with a helper functions that does three things: 1. Fetch data from up to 4 32-bit registers from the chip 2. Optionally fix data endianness (not needed on LE hosts) 3. Copy read data into user provided array. Signed-off-

[PATCH v2 13/15] drm/bridge: tc358767: Simplify tc_aux_wait_busy()

2019-03-24 Thread Andrey Smirnov
We never pass anything but 100 as timeout_ms to tc_aux_wait_busy(), so we may as well hardcode that value and simplify function's signature. Signed-off-by: Andrey Smirnov Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Tomi Valkeinen Cc: Andrey Gusakov Cc: Philipp Zabel Cc: Chr

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

2019-03-24 Thread Frank Rowand
On 3/4/19 3:01 PM, Brendan Higgins wrote: > On Thu, Feb 14, 2019 at 1:38 PM Brendan Higgins > wrote: >> >> This patch set proposes KUnit, a lightweight unit testing and mocking >> framework for the Linux kernel. >> > > > >> ## More information on KUnit >> >> There is a bunch of documentation ne

[PATCH v2 09/15] drm/bridge: tc358767: Use reported AUX transfer size

2019-03-24 Thread Andrey Smirnov
Don't assume that requested data transfer size is the same as amount of data that was transferred. Change the code to get that information from DP0_AUXSTATUS instead. Since the check for AUX_BUSY in tc_aux_get_status() is pointless (it will always called after tc_aux_wait_busy()) and there's only

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

2019-03-24 Thread Marco Felsch
Hi Mauro, On 19-03-20 14:29, Mauro Carvalho Chehab wrote: > Em Wed, 20 Mar 2019 17:36:50 +0100 > Marco Felsch escreveu: > > > 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 acc

Re: [PATCH] [v6, 2/2] drm/panel: Add Boe Himax8279d MIPI-DSI LCD panel

2019-03-24 Thread dbasehore .
On Thu, Mar 21, 2019 at 11:28 PM Jerry Han wrote: > > Hi Derek Basehore: > Thank you for your valuable advice.I'll make the changes as you suggest. > > I have a question to ask you , > > +static const struct panel_desc boe_himax8279d8p_panel_desc = { > > + .display_mode = &boe_himax8279d8p_d

[PATCH v2 11/15] drm/bridge: tc358767: Introduce tc_set_syspllparam()

2019-03-24 Thread Andrey Smirnov
Move common code converting clock rate to an appropriate constant and configuring SYS_PLLPARAM register into a separate routine and convert the rest of the code to use it. No functional change intended. Signed-off-by: Andrey Smirnov Reviewed-by: Laurent Pinchart Cc: Archit Taneja Cc: Andrzej Ha

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

2019-03-24 Thread Marian Mihailescu
This patch works on my odroid xu4 too, on 5.0.3 kernel. Thanks! -Marian > On 19 Mar 2019, at 11:35 pm, Andrzej Hajda wrote: > > MIXER on Exynos5 SoCs uses different synchronisation method than Exynos4 > to update internal state (shadow registers). > Apparently the driver implements it incorrect

[PATCH v2 15/15] drm/bridge: tc358767: Replace magic number in tc_main_link_enable()

2019-03-24 Thread Andrey Smirnov
We don't need 8 byte array, DP_LINK_STATUS_SIZE (6) should be enough. This also gets rid of a magic number as a bonus. Signed-off-by: Andrey Smirnov Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Tomi Valkeinen Cc: Andrey Gusakov Cc: Philipp Zabel Cc: Chris Healy Cc: Lucas St

[PATCH v2 7/7] MAINTAINERS: sm712fb: list myself as one maintainer.

2019-03-24 Thread Yifeng Li
I have working on the sm712fb driver for a while and have some familiarity with this hardware, I'll be helping working on and testing problems of this driver, so add myself to the MAINTAINERS file. Signed-off-by: Yifeng Li --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINT

[PATCH 2/2] drm/fb-helper: Do not scale depth down to 0

2019-03-24 Thread Reza Arbab
If the scaling loop in drm_fb_helper_single_fb_probe() only finds supported depths greater than what it's looking for, it will set sizes.surface_depth = 0. This broke my udl device: [drm] test CRTC 0 primary plane udl 3-9.1:1.0: drm_fb_helper_single_fb_probe: test CRTC 0 format 0, depth=24 udl 3-9

Re: [PATCH v2] gpu/drm: mediatek: call mtk_dsi_stop() after mtk_drm_crtc_atomic_disable()

2019-03-24 Thread Hsin-Yi Wang
On Fri, Mar 22, 2019 at 9:21 AM CK Hu wrote: > > Hi, Hsin-yi: > > On Thu, 2019-03-21 at 22:09 +0800, Hsin-Yi Wang wrote: > > On Thu, Mar 21, 2019 at 9:46 AM CK Hu wrote: > > > > > > Hi, Hsin-yi: > > > > > > On Thu, 2019-03-21 at 09:28 +0800, CK Hu wrote: > > > > Hi, Hsin-yi: > > > > > > > > On We

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

2019-03-24 Thread Logan Gunthorpe
On 2019-03-20 11:23 p.m., Knut Omang wrote: > Testing drivers, hardware and firmware within production kernels was the use > case that inspired KTF (Kernel Test Framework). Currently KTF is available as > a > standalone git repository. That's been the most efficient form for us so far, > as we

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

2019-03-24 Thread Catalin Marinas
On Wed, Mar 20, 2019 at 03:51:32PM +0100, Andrey Konovalov wrote: > 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 point

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

2019-03-24 Thread Catalin Marinas
On Wed, Mar 20, 2019 at 03:51:25PM +0100, Andrey Konovalov wrote: > 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 po

[PATCH v2 5/7] Documentation: fb: sm712fb: add information mainly about 2D.

2019-03-24 Thread Yifeng Li
This commits add information about 32-bit color, 2D acceleration, as well as adding additional, general information about the hardware and many existing problems of the sm712fb driver. Signed-off-by: Yifeng Li --- Documentation/fb/sm712fb.txt | 123 +++ 1 file cha

[PATCH -next] drm/amd/powerplay: Remove useless set memory to zero use memset()

2019-03-24 Thread Yue Haibing
From: YueHaibing The memory return by kzalloc() has already be set to zero, so remove useless memset(0). Signed-off-by: YueHaibing --- drivers/gpu/drm/amd/powerplay/vega20_ppt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/vega20_ppt.c b/drivers/gpu/drm/amd

[PATCH v2 03/15] drm/bridge: tc358767: Simplify polling in tc_link_training()

2019-03-24 Thread Andrey Smirnov
Replace explicit polling in tc_link_training() with equivalent call to tc_poll_timeout() for simplicity. No functional change intended (not including slightly altered debug output). Signed-off-by: Andrey Smirnov Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Tomi Valkeinen Cc: A

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

2019-03-24 Thread Frank Rowand
On 12/5/18 3:10 PM, Brendan Higgins wrote: > On Tue, Dec 4, 2018 at 5:49 AM Rob Herring wrote: >> >> On Tue, Dec 4, 2018 at 5:40 AM Frank Rowand wrote: >>> >>> Hi Brendan, Rob, >>> >>> Pulling a comment from way back in the v1 patch thread: >>> >>> On 10/17/18 3:22 PM, Brendan Higgins wrote:

Re: [RFC v2 1/3] dma-buf: give each buffer a full-fledged inode

2019-03-24 Thread Sandeep Patil
On Fri, Mar 22, 2019 at 11:02:55AM -0400, Joel Fernandes wrote: > On Thu, Mar 21, 2019 at 07:51:33PM -0700, Chenbo Feng wrote: > > From: Greg Hackmann > > > > By traversing /proc/*/fd and /proc/*/map_files, processes with CAP_ADMIN > > can get a lot of fine-grained data about how shmem buffers ar

Re: [PATCH] drm: vkms: check status of alloc_ordered_workqueue

2019-03-24 Thread Kangjie Lu
> On Mar 8, 2019, at 10:36 PM, Kangjie Lu wrote: > > alloc_ordered_workqueue may fail and return NULL. > The fix returns ENOMEM when it fails to avoid potential NULL > pointer dereference. > > Signed-off-by: Kangjie Lu > --- > drivers/gpu/drm/vkms/vkms_crtc.c | 2 ++ > 1 file changed, 2 insert

[PATCH v2 07/15] drm/bridge: tc358767: Simplify AUX data write

2019-03-24 Thread Andrey Smirnov
Simplify AUX data write by dropping index arithmetic and shifting and replacing it with a call to a helper function that does three things: 1. Copies user-provided data into a write buffer 2. Optionally fixes the endianness of the write buffer (not needed on LE hosts) 3. Transfe

[PATCH v2 05/15] drm/bridge: tc358767: Drop custom tc_write()/tc_read() accessors

2019-03-24 Thread Andrey Smirnov
A very unfortunate aspect of tc_write()/tc_read() macro helpers is that they capture quite a bit of context around them and thus require the caller to have magic variables 'ret' and 'tc' as well as label 'err'. That makes a number of code paths rather counterintuitive and somewhat clunky, for examp

[PATCH v2 00/15] tc358767 driver improvements

2019-03-24 Thread Andrey Smirnov
Everyone: This series contains various improvements (at least in my mind) and fixes that I made to tc358767 while working with the code of the driver. Hopefuly each patch is self explanatory. Feedback is welcome! Thanks, Andrey Smirnov Changes since [v1]: - Patchset rebased on top of

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

2019-03-24 Thread Nicolas Dufresne
Le jeudi 21 mars 2019 à 18:35 +0200, Ville Syrjälä a écrit : > > I'm not sure what it's worth, but there is a "pixel format guide" > > project that is all about matching formats from one API to another: > > https://afrantzis.com/pixel-format-guide/ (and it has an associated > > tool too). > > > >

Re: [RFC v3 18/19] of: unittest: split out a couple of test cases from unittest

2019-03-24 Thread Frank Rowand
On 3/21/19 6:30 PM, Brendan Higgins wrote: > On Thu, Mar 21, 2019 at 5:22 PM Frank Rowand wrote: >> >> On 2/27/19 7:52 PM, Brendan Higgins wrote: < snip > but thanks for the comments in the snipped section. >> >> Thanks for leaving 18/19 and 19/19 off in v4. > > Sure, no problem. It was prett

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

2019-03-24 Thread Logan Gunthorpe
On 2019-03-21 1:13 p.m., Knut Omang wrote: >> Nevertheless, I don't really see KTF as a real unit testing framework >> for a number of different reasons; you pointed out some below, but I >> think the main one being that it requires booting a real kernel on >> actual hardware; > > That depends

[PATCH v2 14/15] drm/bridge: tc358767: Drop unnecessary 8 byte buffer

2019-03-24 Thread Andrey Smirnov
tc_get_display_props() never reads more than a byte via AUX, so there's no need to reserve 8 for that purpose. No function change intended. Signed-off-by: Andrey Smirnov Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Tomi Valkeinen Cc: Andrey Gusakov Cc: Philipp Zabel Cc: Chri

[PATCH v2 2/7] fbdev: sm712fb: add 2D-related I/O headers and functions.

2019-03-24 Thread Yifeng Li
This commit adds I/O macros and functions related to 2D opeartions. A hunk of hardware register definitions are taken verbatim from OpenBSD. In addition, a utility function pad_to_dword() is added to help padding data for the 2D engine. It accepts 3, 2, or 1 byte(s) of data, and pads it to a 32-b

[RFC v2 1/3] dma-buf: give each buffer a full-fledged inode

2019-03-24 Thread Chenbo Feng
From: Greg Hackmann By traversing /proc/*/fd and /proc/*/map_files, processes with CAP_ADMIN can get a lot of fine-grained data about how shmem buffers are shared among processes. stat(2) on each entry gives the caller a unique ID (st_ino), the buffer's size (st_size), and even the number of pag

  1   2   >