[PATCH 2/2] drm/bochs: fix framebuffer setup.

2019-06-25 Thread Gerd Hoffmann
If bo->width doesn't match fb->width the driver fails to configure the display correctly, resulting in a scrambled display. Fix it. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/bochs/bochs.h | 2 +- drivers/gpu/drm/bochs/bochs_hw.c | 13 + drivers/gpu/drm/bochs/bochs_kms.c

[PATCH 1/2] drm/vram: store dumb bo dimensions.

2019-06-25 Thread Gerd Hoffmann
Store width and height of the bo. Needed in case userspace sets up a framebuffer with fb->width != bo->width.. Signed-off-by: Gerd Hoffmann --- include/drm/drm_gem_vram_helper.h | 1 + drivers/gpu/drm/drm_gem_vram_helper.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/drm/d

[PATCH 0/2] drm/bochs: fix framebuffer setup.

2019-06-25 Thread Gerd Hoffmann
If bo->width doesn't match fb->width the driver fails to configure the display correctly, resulting in a scrambled display. This little series has a patch for vram, to store bo->width (1/2), and the actual bugfix (2/2). The other drivers using the vram helpers are probably affected too. Reproduc

Re: [PATCH v4 2/2] drm/exynos: trigger build of all modules

2019-06-25 Thread Inki Dae
Hi Sam, On 19. 6. 25. 오후 1:59, Sam Ravnborg wrote: > Hi Inki. > >>> Alpha often needs one to pull in vmalloc.h - where all other >>> architectures get it indirect via other headers. >>> I have never bothered to find out why alpa needs more headers files, >>> but I always make sure to test things

Re: [PATCH 1/1] drm/ttm: return -EBUSY if waiting for busy BO fails

2019-06-25 Thread Koenig, Christian
Am 26.06.19 um 08:40 schrieb Kuehling, Felix: > Returning -EAGAIN prevents ttm_bo_mem_space from trying alternate > placements and can lead to live-locks in amdgpu_cs, retrying > indefinitely and never succeeding. > > Fixes: cfcc52e477e4 ("drm/ttm: fix busy memory to fail other user v10") > CC: Chr

Re: [PATCH 0/2] Associate ddc adapters with connectors

2019-06-25 Thread Andrzej Pietrasiewicz
W dniu 25.06.2019 o 16:20, Daniel Vetter pisze: On Tue, Jun 25, 2019 at 03:10:32PM +0100, Russell King - ARM Linux admin wrote: On Tue, Jun 25, 2019 at 04:07:55PM +0200, Daniel Vetter wrote: Otherwise I like this. Biggest problem I'm seeing here is rolling this out everywhere, this is a lot of

[Bug 110984] Vulkan shows stuttering issues on Vega 10 w/ gnome-shell on Wayland

2019-06-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110984 --- Comment #3 from Olivier Fourdan --- , I can reproduce on intel(In reply to Olivier Fourdan from comment #2) > Xwayland being hardware agnostic, if Xwayland was the problem, I'd expect > the issue to occur with any hardware., and yet I don't

RE: [PATCH] i915: intel_dp_aux_backlight: Fix max backlight calculations

2019-06-25 Thread Lee, Shawn C
On Tue, 25 Jun 2019, Jani Nikula wrote: >On Mon, 17 Jun 2019, Furquan Shaikh wrote: >> Max backlight value for the panel was being calculated using byte >> count i.e. 0x if 2 bytes are supported for backlight brightness >> and 0xff if 1 byte is supported. However, EDP_PWMGEN_BIT_COUNT >> d

[Bug 110984] Vulkan shows stuttering issues on Vega 10 w/ gnome-shell on Wayland

2019-06-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110984 --- Comment #2 from Olivier Fourdan --- (In reply to Michel Dänzer from comment #1) > This is an Xwayland issue, due to it only using a single buffer for sending > contents to the Wayland server. Xwayland being hardware agnostic, if Xwayland wa

Re: [PATCH v5 01/18] kunit: test: add KUnit test runner core

2019-06-25 Thread Brendan Higgins
On Tue, Jun 25, 2019 at 4:02 PM Luis Chamberlain wrote: > > On Tue, Jun 25, 2019 at 03:14:45PM -0700, Brendan Higgins wrote: > > On Tue, Jun 25, 2019 at 2:44 PM Luis Chamberlain wrote: > > > Since its a new architecture and since you seem to imply most tests > > > don't require locking or even IR

[PATCH 1/1] drm/ttm: return -EBUSY if waiting for busy BO fails

2019-06-25 Thread Kuehling, Felix
Returning -EAGAIN prevents ttm_bo_mem_space from trying alternate placements and can lead to live-locks in amdgpu_cs, retrying indefinitely and never succeeding. Fixes: cfcc52e477e4 ("drm/ttm: fix busy memory to fail other user v10") CC: Christian Koenig Signed-off-by: Felix Kuehling --- driver

Re: [PATCH 06/10] drm/ttm: fix busy memory to fail other user v10

2019-06-25 Thread Kuehling, Felix
I believe I found a live-lock due to this patch when running our KFD eviction test in a loop. I pretty reliably hangs on the second loop iteration. If I revert this patch, the problem disappears. With some added instrumentation, I see that amdgpu_cs_list_validate in amdgpu_cs_parser_bos returns

Re: [PATCH 05/22] mm: export alloc_pages_vma

2019-06-25 Thread Michal Hocko
On Tue 25-06-19 12:52:18, Dan Williams wrote: [...] > > Documentation/process/stable-api-nonsense.rst > > That document has failed to preclude symbol export fights in the past > and there is a reasonable argument to try not to retract functionality > that had been previously exported regardless of

Re: [PATCH 18/22] mm: mark DEVICE_PUBLIC as broken

2019-06-25 Thread Michal Hocko
On Tue 25-06-19 20:15:28, John Hubbard wrote: > On 6/19/19 12:27 PM, Jason Gunthorpe wrote: > > On Thu, Jun 13, 2019 at 06:23:04PM -0700, John Hubbard wrote: > >> On 6/13/19 5:43 PM, Ira Weiny wrote: > >>> On Thu, Jun 13, 2019 at 07:58:29PM +, Jason Gunthorpe wrote: > On Thu, Jun 13, 2019

[PATCH AUTOSEL 4.9 05/11] drm/mediatek: fix unbind functions

2019-06-25 Thread Sasha Levin
From: Hsin-Yi Wang [ Upstream commit 8fd7a37b191f93737f6280a9b5de65f98acc12c9 ] detatch panel in mtk_dsi_destroy_conn_enc(), since .bind will try to attach it again. Fixes: 2e54c14e310f ("drm/mediatek: Add DSI sub driver") Signed-off-by: Hsin-Yi Wang Signed-off-by: CK Hu Signed-off-by: Sasha

[PATCH AUTOSEL 4.14 08/21] drm/mediatek: call mtk_dsi_stop() after mtk_drm_crtc_atomic_disable()

2019-06-25 Thread Sasha Levin
From: Hsin-Yi Wang [ Upstream commit 2458d9d6d94be982b917e93c61a89b4426f32e31 ] mtk_dsi_stop() should be called after mtk_drm_crtc_atomic_disable(), which needs ovl irq for drm_crtc_wait_one_vblank(), since after mtk_dsi_stop() is called, ovl irq will be disabled. If drm_crtc_wait_one_vblank() i

[PATCH AUTOSEL 4.14 07/21] drm/mediatek: call drm_atomic_helper_shutdown() when unbinding driver

2019-06-25 Thread Sasha Levin
From: Hsin-Yi Wang [ Upstream commit cf49b24ffa62766f8f04cd1c4cf17b75d29b240a ] shutdown all CRTC when unbinding drm driver. Fixes: 119f5173628a ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.") Signed-off-by: Hsin-Yi Wang Signed-off-by: CK Hu Signed-off-by: Sasha Levin --- drivers/

[PATCH AUTOSEL 4.14 06/21] drm/mediatek: fix unbind functions

2019-06-25 Thread Sasha Levin
From: Hsin-Yi Wang [ Upstream commit 8fd7a37b191f93737f6280a9b5de65f98acc12c9 ] detatch panel in mtk_dsi_destroy_conn_enc(), since .bind will try to attach it again. Fixes: 2e54c14e310f ("drm/mediatek: Add DSI sub driver") Signed-off-by: Hsin-Yi Wang Signed-off-by: CK Hu Signed-off-by: Sasha

[PATCH AUTOSEL 4.19 23/34] drm: panel-orientation-quirks: Add quirk for GPD MicroPC

2019-06-25 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 652b8b086538c8a10de5aa5cbdaef79333b46358 ] GPD has done it again, make a nice device (good), use way too generic DMI strings (bad) and use a portrait screen rotated 90 degrees (ugly). Because of the too generic DMI strings this entry is also doing bios-date

[PATCH AUTOSEL 4.19 11/34] drm/mediatek: clear num_pipes when unbind driver

2019-06-25 Thread Sasha Levin
From: Hsin-Yi Wang [ Upstream commit a4cd1d2b016d5d043ab2c4b9c4ec50a5805f5396 ] num_pipes is used for mutex created in mtk_drm_crtc_create(). If we don't clear num_pipes count, when rebinding driver, the count will be accumulated. From mtk_disp_mutex_get(), there can only be at most 10 mutex id.

[PATCH AUTOSEL 4.19 12/34] drm/mediatek: call mtk_dsi_stop() after mtk_drm_crtc_atomic_disable()

2019-06-25 Thread Sasha Levin
From: Hsin-Yi Wang [ Upstream commit 2458d9d6d94be982b917e93c61a89b4426f32e31 ] mtk_dsi_stop() should be called after mtk_drm_crtc_atomic_disable(), which needs ovl irq for drm_crtc_wait_one_vblank(), since after mtk_dsi_stop() is called, ovl irq will be disabled. If drm_crtc_wait_one_vblank() i

[PATCH AUTOSEL 4.19 22/34] drm: panel-orientation-quirks: Add quirk for GPD pocket2

2019-06-25 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 15abc7110a77555d3bf72aaef46d1557db0a4ac5 ] GPD has done it again, make a nice device (good), use way too generic DMI strings (bad) and use a portrait screen rotated 90 degrees (ugly). Because of the too generic DMI strings this entry is also doing bios-date

[PATCH AUTOSEL 4.19 09/34] drm/mediatek: unbind components in mtk_drm_unbind()

2019-06-25 Thread Sasha Levin
From: Hsin-Yi Wang [ Upstream commit f0fd848342802bc0f74620d387eead53e8905804 ] Unbinding components (i.e. mtk_dsi and mtk_disp_ovl/rdma/color) will trigger master(mtk_drm)'s .unbind(), and currently mtk_drm's unbind won't actually unbind components. During the next bind, mtk_drm_kms_init() is c

[PATCH AUTOSEL 4.19 08/34] drm/mediatek: fix unbind functions

2019-06-25 Thread Sasha Levin
From: Hsin-Yi Wang [ Upstream commit 8fd7a37b191f93737f6280a9b5de65f98acc12c9 ] detatch panel in mtk_dsi_destroy_conn_enc(), since .bind will try to attach it again. Fixes: 2e54c14e310f ("drm/mediatek: Add DSI sub driver") Signed-off-by: Hsin-Yi Wang Signed-off-by: CK Hu Signed-off-by: Sasha

[PATCH AUTOSEL 4.19 10/34] drm/mediatek: call drm_atomic_helper_shutdown() when unbinding driver

2019-06-25 Thread Sasha Levin
From: Hsin-Yi Wang [ Upstream commit cf49b24ffa62766f8f04cd1c4cf17b75d29b240a ] shutdown all CRTC when unbinding drm driver. Fixes: 119f5173628a ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.") Signed-off-by: Hsin-Yi Wang Signed-off-by: CK Hu Signed-off-by: Sasha Levin --- drivers/

[PATCH AUTOSEL 5.1 36/51] drm: panel-orientation-quirks: Add quirk for GPD pocket2

2019-06-25 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 15abc7110a77555d3bf72aaef46d1557db0a4ac5 ] GPD has done it again, make a nice device (good), use way too generic DMI strings (bad) and use a portrait screen rotated 90 degrees (ugly). Because of the too generic DMI strings this entry is also doing bios-date

[PATCH AUTOSEL 5.1 37/51] drm: panel-orientation-quirks: Add quirk for GPD MicroPC

2019-06-25 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 652b8b086538c8a10de5aa5cbdaef79333b46358 ] GPD has done it again, make a nice device (good), use way too generic DMI strings (bad) and use a portrait screen rotated 90 degrees (ugly). Because of the too generic DMI strings this entry is also doing bios-date

[PATCH AUTOSEL 5.1 19/51] drm/mediatek: call mtk_dsi_stop() after mtk_drm_crtc_atomic_disable()

2019-06-25 Thread Sasha Levin
From: Hsin-Yi Wang [ Upstream commit 2458d9d6d94be982b917e93c61a89b4426f32e31 ] mtk_dsi_stop() should be called after mtk_drm_crtc_atomic_disable(), which needs ovl irq for drm_crtc_wait_one_vblank(), since after mtk_dsi_stop() is called, ovl irq will be disabled. If drm_crtc_wait_one_vblank() i

[PATCH AUTOSEL 5.1 15/51] drm/mediatek: fix unbind functions

2019-06-25 Thread Sasha Levin
From: Hsin-Yi Wang [ Upstream commit 8fd7a37b191f93737f6280a9b5de65f98acc12c9 ] detatch panel in mtk_dsi_destroy_conn_enc(), since .bind will try to attach it again. Fixes: 2e54c14e310f ("drm/mediatek: Add DSI sub driver") Signed-off-by: Hsin-Yi Wang Signed-off-by: CK Hu Signed-off-by: Sasha

[PATCH AUTOSEL 5.1 17/51] drm/mediatek: call drm_atomic_helper_shutdown() when unbinding driver

2019-06-25 Thread Sasha Levin
From: Hsin-Yi Wang [ Upstream commit cf49b24ffa62766f8f04cd1c4cf17b75d29b240a ] shutdown all CRTC when unbinding drm driver. Fixes: 119f5173628a ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.") Signed-off-by: Hsin-Yi Wang Signed-off-by: CK Hu Signed-off-by: Sasha Levin --- drivers/

[PATCH AUTOSEL 5.1 18/51] drm/mediatek: clear num_pipes when unbind driver

2019-06-25 Thread Sasha Levin
From: Hsin-Yi Wang [ Upstream commit a4cd1d2b016d5d043ab2c4b9c4ec50a5805f5396 ] num_pipes is used for mutex created in mtk_drm_crtc_create(). If we don't clear num_pipes count, when rebinding driver, the count will be accumulated. From mtk_disp_mutex_get(), there can only be at most 10 mutex id.

[PATCH AUTOSEL 5.1 16/51] drm/mediatek: unbind components in mtk_drm_unbind()

2019-06-25 Thread Sasha Levin
From: Hsin-Yi Wang [ Upstream commit f0fd848342802bc0f74620d387eead53e8905804 ] Unbinding components (i.e. mtk_dsi and mtk_disp_ovl/rdma/color) will trigger master(mtk_drm)'s .unbind(), and currently mtk_drm's unbind won't actually unbind components. During the next bind, mtk_drm_kms_init() is c

Re: [PATCH v5 01/18] kunit: test: add KUnit test runner core

2019-06-25 Thread Stephen Boyd
Quoting Brendan Higgins (2019-06-25 13:28:25) > On Wed, Jun 19, 2019 at 5:15 PM Stephen Boyd wrote: > > > > Quoting Brendan Higgins (2019-06-17 01:25:56) > > > diff --git a/kunit/test.c b/kunit/test.c > > > new file mode 100644 > > > index 0..d05d254f1521f > > > --- /dev/null > > > +++

Re: [PATCH v5 01/18] kunit: test: add KUnit test runner core

2019-06-25 Thread Luis Chamberlain
On Tue, Jun 25, 2019 at 05:07:32PM -0700, Brendan Higgins wrote: > On Tue, Jun 25, 2019 at 3:33 PM Luis Chamberlain wrote: > > > > On Mon, Jun 17, 2019 at 01:25:56AM -0700, Brendan Higgins wrote: > > > +/** > > > + * module_test() - used to register a &struct kunit_module with KUnit. > > > + * @mo

Re: [v2 2/2] drm/panel: support for BOE tv101wum-nl6 wuxga dsi video mode panel

2019-06-25 Thread Hsin-Yi Wang
On Mon, Jun 24, 2019 at 6:03 AM Jitao Shi wrote: There are some error when unbinding this driver, `` echo 14014000.dsi.0 > /sys/bus/mipi-dsi/drivers/panel-boe-tv101wum-nl6/unbind `` [ 40.404393] WARNING: CPU: 1 PID: 2612 at /mnt/host/source/src/third_party/kernel/v4.19/drivers/regulator/core.c

[v3 4/4] drm/panel: support for auo,kd101n80-45na wuxga dsi video mode panel

2019-06-25 Thread Jitao Shi
Auo,kd101n80-45na's connector is same as boe,tv101wum-nl6. The most codes can be reuse. So auo,kd101n80-45na and boe,tv101wum-nl6 use one driver file. Add the different parts in driver data. Signed-off-by: Jitao Shi --- .../gpu/drm/panel/panel-boe-tv101wum-nl6.c| 39 +++ 1 fi

[v3 2/4] drm/panel: support for BOE tv101wum-nl6 wuxga dsi video mode panel

2019-06-25 Thread Jitao Shi
Add driver for BOE tv101wum-nl6 panel is a 10.1" 1200x1920 panel. Signed-off-by: Jitao Shi --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile| 1 + .../gpu/drm/panel/panel-boe-tv101wum-nl6.c| 714 ++ 3 files changed, 72

[v3 1/4] dt-bindngs: display: panel: Add BOE tv101wum-n16 panel bindings

2019-06-25 Thread Jitao Shi
Add documentation for boe tv101wum-n16 panel. Signed-off-by: Jitao Shi --- .../display/panel/boe,tv101wum-nl6.txt| 34 +++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/boe,tv101wum-nl6.txt diff --git a/Documentati

[v3 0/4] Add drivers for auo, kd101n80-45na and boe, tv101wum-nl6 panels

2019-06-25 Thread Jitao Shi
Changes since v2: - correct the panel size - remove blank line in Kconfig - move auo,kd101n80-45na panel driver in this series. Changes since v1: - update typo nl6 -> n16. - update new panel config and makefile are added in alphabetically order. - add the panel mode and panel info in driver

[v3 3/4] dt-bindings: display: panel: add auo kd101n80-45na panel bindings

2019-06-25 Thread Jitao Shi
Add documentation for auo kd101n80-45na panel. Signed-off-by: Jitao Shi Reviewed-by: Sam Ravnborg --- .../display/panel/auo,kd101n80-45na.txt | 34 +++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/auo,kd101n80-45na.t

Re: [PATCH v5 00/18] kunit: introduce KUnit, the Linux kernel unit testing framework

2019-06-25 Thread Luis Chamberlain
On Wed, Jun 19, 2019 at 06:17:51PM -0700, Frank Rowand wrote: > It does not matter whether KUnit provides additional things, relative > to kselftest. The point I was making is that there appears to be > _some_ overlap between kselftest and KUnit, and if there is overlap > then it is worth consider

[PATCH v3 2/6] dt-bindings: display: msm: gmu: add optional ocmem property

2019-06-25 Thread Brian Masney
Some A3xx and A4xx Adreno GPUs do not have GMEM inside the GPU core and must use the On Chip MEMory (OCMEM) in order to be functional. Add the optional ocmem property to the Adreno Graphics Management Unit bindings. Signed-off-by: Brian Masney --- Changes since v2: - Add a3xx example with OCMEM

[PATCH v3 1/6] dt-bindings: soc: qcom: add On Chip MEMory (OCMEM) bindings

2019-06-25 Thread Brian Masney
Add device tree bindings for the On Chip Memory (OCMEM) that is present on some Qualcomm Snapdragon SoCs. Signed-off-by: Brian Masney --- Changes since v2: - Add *-sram node and gmu-sram to example. Changes since v1: - Rename qcom,ocmem-msm8974 to qcom,msm8974-ocmem - Renamed reg-names to ctrl a

[PATCH v3 4/6] firmware: qcom: scm: add support to restore secure config to qcm_scm-32

2019-06-25 Thread Brian Masney
From: Rob Clark Add support to restore the secure configuration for qcm_scm-32.c. This is needed by the On Chip MEMory (OCMEM) that is present on some Snapdragon devices. Signed-off-by: Rob Clark [masn...@onstation.org: ported to latest kernel; set ctx_bank_num to spare parameter.] Signed-off-

[PATCH v3 6/6] drm/msm/gpu: add ocmem init/cleanup functions

2019-06-25 Thread Brian Masney
The files a3xx_gpu.c and a4xx_gpu.c have ifdefs for the OCMEM support that was missing upstream. Add two new functions (adreno_gpu_ocmem_init and adreno_gpu_ocmem_cleanup) that removes some duplicated code. Signed-off-by: Brian Masney --- Changes since v2: - Check for -ENODEV error of_get_ocmem()

[PATCH v3 0/6] qcom: add OCMEM support

2019-06-25 Thread Brian Masney
This patch series adds support for Qualcomm's On Chip MEMory (OCMEM) that is needed in order to support some a3xx and a4xx-based GPUs upstream. This is based on Rob Clark's patch series that he submitted in October 2015 and I am resubmitting updated patches with his permission. See the individual p

[PATCH v3 3/6] firmware: qcom: scm: add OCMEM lock/unlock interface

2019-06-25 Thread Brian Masney
From: Rob Clark Add support for the OCMEM lock/unlock interface that is needed by the On Chip MEMory (OCMEM) that is present on some Snapdragon devices. Signed-off-by: Rob Clark [masn...@onstation.org: ported to latest kernel; minor reformatting.] Signed-off-by: Brian Masney Reviewed-by: Bjorn

[PATCH v3 5/6] soc: qcom: add OCMEM driver

2019-06-25 Thread Brian Masney
The OCMEM driver handles allocation and configuration of the On Chip MEMory that is present on some Snapdragon SoCs. Devices which have OCMEM do not have GMEM inside the GPU core, so the GPU must instead use OCMEM to be functional. Since the GPU is currently the only OCMEM user with an upstream dri

Re: [PATCH v5 18/18] MAINTAINERS: add proc sysctl KUnit test to PROC SYSCTL section

2019-06-25 Thread Luis Chamberlain
On Mon, Jun 17, 2019 at 01:26:13AM -0700, Brendan Higgins wrote: > Add entry for the new proc sysctl KUnit test to the PROC SYSCTL section. > > Signed-off-by: Brendan Higgins > Reviewed-by: Greg Kroah-Hartman > Reviewed-by: Logan Gunthorpe Acked-by: Luis Chamberlain Luis __

Re: [PATCH v5 17/18] kernel/sysctl-test: Add null pointer test for sysctl.c:proc_dointvec()

2019-06-25 Thread Luis Chamberlain
On Mon, Jun 17, 2019 at 01:26:12AM -0700, Brendan Higgins wrote: > From: Iurii Zaikin > > KUnit tests for initialized data behavior of proc_dointvec that is > explicitly checked in the code. Includes basic parsing tests including > int min/max overflow. First, thanks for this work! My review bel

Re: [PATCH V4] drm/drm_vblank: Change EINVAL by the correct errno

2019-06-25 Thread Rodrigo Siqueira
On 06/19, Daniel Vetter wrote: > On Wed, Jun 19, 2019 at 09:48:56AM +0200, Daniel Vetter wrote: > > On Tue, Jun 18, 2019 at 11:07:50PM -0300, Rodrigo Siqueira wrote: > > > For historical reason, the function drm_wait_vblank_ioctl always return > > > -EINVAL if something gets wrong. This scenario li

Re: [PATCH 00/10] drm/vkms: rework crc worker

2019-06-25 Thread Rodrigo Siqueira
On 06/19, Daniel Vetter wrote: > On Tue, Jun 18, 2019 at 11:54 PM Rodrigo Siqueira > wrote: > > > > On Tue, Jun 18, 2019 at 5:56 AM Daniel Vetter wrote: > > > > > > On Mon, Jun 17, 2019 at 11:49:04PM -0300, Rodrigo Siqueira wrote: > > > > On 06/12, Daniel Vetter wrote: > > > > > On Wed, Jun 12, 2

[Bug 110795] Unable to install on latest Ubuntu (19.04)

2019-06-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110795 --- Comment #27 from Felipe Marschall --- I just saw Andrew's script.. much easier! -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing list dri-devel@lists

[Bug 110795] Unable to install on latest Ubuntu (19.04)

2019-06-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110795 Felipe Marschall changed: What|Removed |Added Resolution|INVALID |WORKSFORME Status|RESOLV

[PATCH V3 5/5] drm/vkms: Add support for writeback

2019-06-25 Thread Rodrigo Siqueira
This patch implements the necessary functions to add writeback support for vkms. This feature is useful for testing compositors if you don't have hardware with writeback support. Change in V3 (Daniel): - If writeback is enabled, compose everything into the writeback buffer instead of CRC private b

[PATCH V3 4/5] drm/vkms: Compute CRC without change input data

2019-06-25 Thread Rodrigo Siqueira
The compute_crc() function is responsible for calculating the framebuffer CRC value; due to the XRGB format, this function has to ignore the alpha channel during the CRC computation. Therefore, compute_crc() set zero to the alpha channel directly in the input framebuffer, which is not a problem sin

[PATCH V3 3/5] drm/vkms: Decouple crc operations from composer

2019-06-25 Thread Rodrigo Siqueira
In the vkms_composer.c, some of the functions related to CRC and compose have interdependence between each other. This patch reworks some functions inside vkms_composer to make crc and composer computation decoupled. This patch is preparation work for making vkms able to support new features. Sig

[PATCH V3 2/5] drm/vkms: Rename vkms_crc.c into vkms_composer.c

2019-06-25 Thread Rodrigo Siqueira
As a preparation work for introducing writeback to vkms, this patch renames the file vkms_crc.c into vkms_composer.c. Accordingly, it also adjusts the functions and data structures to match the changes. No functional change. Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/vkms/Makefile

[PATCH V3 1/5] drm/vkms: Avoid assigning 0 for possible_crtc

2019-06-25 Thread Rodrigo Siqueira
When vkms invoke drm_universal_plane_init(), it sets 0 for possible_crtcs parameter which means that planes can't be attached to any CRTC. It currently works due to some safeguard in the drm_crtc file; however, it is possible to identify the problem by trying to append a second connector. This patc

[PATCH V3 0/5] drm/vkms: Introduces writeback support

2019-06-25 Thread Rodrigo Siqueira
This is the V3 version of a series that introduces the writeback support to vkms. As a result of the previous review, this patchset can be seen in three parts: make vkms able to support multiple connector, pre-work for vkms, and the vkms implementation. Follows the details: * First part: The first

Re: [RFC] Exposing plane type mask and handling 'all' planes

2019-06-25 Thread Matt Roper
On Wed, Jun 19, 2019 at 09:24:56PM +0300, Ville Syrjälä wrote: > On Wed, Jun 19, 2019 at 06:49:11PM +0100, Emil Velikov wrote: > > On Wed, 19 Jun 2019 at 17:33, Ville Syrjälä > > wrote: > > > > > > On Wed, Jun 19, 2019 at 05:03:53PM +0100, Emil Velikov wrote: > > > > Hi all, > > > > > > > > Recent

Re: [PATCH v5 01/18] kunit: test: add KUnit test runner core

2019-06-25 Thread Brendan Higgins
On Tue, Jun 25, 2019 at 3:33 PM Luis Chamberlain wrote: > > On Mon, Jun 17, 2019 at 01:25:56AM -0700, Brendan Higgins wrote: > > +/** > > + * module_test() - used to register a &struct kunit_module with KUnit. > > + * @module: a statically allocated &struct kunit_module. > > + * > > + * Registers

Re: [PATCH 1/7] drm/fb-helper: use gem_bo.resv, not dma_buf.resv in prepare_fb

2019-06-25 Thread Eric Anholt
Daniel Vetter writes: > With > > commit 5f6ed9879a414636405a2bd77f122881695959e4 > Author: Daniel Vetter > Date: Fri Jun 14 22:35:57 2019 +0200 > > drm/prime: automatically set gem_obj->resv on import > > we consistently set drm_gem_bo.resv for imported buffers. Which means > we don't need

Re: [PATCH v5 13/18] kunit: tool: add Python wrappers for running KUnit tests

2019-06-25 Thread Luis Chamberlain
On Mon, Jun 17, 2019 at 01:26:08AM -0700, Brendan Higgins wrote: > create mode 100644 > tools/testing/kunit/test_data/test_is_test_passed-all_passed.log > create mode 100644 > tools/testing/kunit/test_data/test_is_test_passed-crash.log > create mode 100644 > tools/testing/kunit/test_data/test

Re: Sleeping while atomic in virtio-gpu edid handling

2019-06-25 Thread Gerd Hoffmann
On Tue, Jun 25, 2019 at 05:15:41PM +0200, Cornelia Huck wrote: > Hi Gerd, > > flipping the virtio-gpu edid support in QEMU to default enabled exposed > the following backtrace in my guest (from my bisect run down to the > initial commit in Linux): > > [drm] virgl 3d acceleration not supported by

[PATCH] drm/connector: Allow max possible encoders to attach to a connector

2019-06-25 Thread Dhinakaran Pandiyan
Currently we restrict the number of encoders that can be linked to a connector to 3, increase it to match the maximum number of encoders that can be initialized - 32. The current limitation looks artificial. Increasing the limit to 32 does however increases the size of the static u32 array keeping

Re: [PATCH v5 07/18] kunit: test: add initial tests

2019-06-25 Thread Luis Chamberlain
On Mon, Jun 17, 2019 at 01:26:02AM -0700, Brendan Higgins wrote: > diff --git a/kunit/example-test.c b/kunit/example-test.c > new file mode 100644 > index 0..f44b8ece488bb > --- /dev/null > +++ b/kunit/example-test.c <-- snip --> > +/* > + * This defines a suite or grouping of tests.

Re: [PATCH v2] drm: return -EFAULT if copy_to_user() fails

2019-06-25 Thread Al Viro
On Tue, Jun 18, 2019 at 01:16:29PM -0400, Sean Paul wrote: > On Tue, Jun 18, 2019 at 04:18:43PM +0300, Dan Carpenter wrote: > > The copy_from_user() function returns the number of bytes remaining > > to be copied but we want to return a negative error code. Otherwise > > the callers treat it as a

Re: [PATCH v5 06/18] kbuild: enable building KUnit

2019-06-25 Thread Luis Chamberlain
On Tue, Jun 25, 2019 at 03:41:29PM -0700, Brendan Higgins wrote: > On Tue, Jun 25, 2019 at 3:13 PM Luis Chamberlain wrote: > > > > On Mon, Jun 17, 2019 at 01:26:01AM -0700, Brendan Higgins wrote: > > > diff --git a/Kconfig b/Kconfig > > > index 48a80beab6853..10428501edb78 100644 > > > --- a/Kconf

Re: [PATCH v5 01/18] kunit: test: add KUnit test runner core

2019-06-25 Thread Luis Chamberlain
On Tue, Jun 25, 2019 at 03:14:45PM -0700, Brendan Higgins wrote: > On Tue, Jun 25, 2019 at 2:44 PM Luis Chamberlain wrote: > > Since its a new architecture and since you seem to imply most tests > > don't require locking or even IRQs disabled, I think its worth to > > consider the impact of adding

Re: [PATCH v4 4/7] lib/hexdump.c: Replace ascii bool in hex_dump_to_buffer with flags

2019-06-25 Thread kbuild test robot
Hi Alastair, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.2-rc6 next-20190625] [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

Re: [PATCH v5 06/18] kbuild: enable building KUnit

2019-06-25 Thread Brendan Higgins
On Tue, Jun 25, 2019 at 3:13 PM Luis Chamberlain wrote: > > On Mon, Jun 17, 2019 at 01:26:01AM -0700, Brendan Higgins wrote: > > diff --git a/Kconfig b/Kconfig > > index 48a80beab6853..10428501edb78 100644 > > --- a/Kconfig > > +++ b/Kconfig > > @@ -30,3 +30,5 @@ source "crypto/Kconfig" > > sourc

[pull] drm/msm: msm-next for 5.3

2019-06-25 Thread Rob Clark
Hi Dave, This time around: + usual progress on cleanups + dsi vs EPROBE_DEFER fixes + msm8998 (snapdragon 835 support) + a540 gpu support (mesa support already landed) + dsi, dsi-phy support + mdp5 and dpu interconnect (bus/memory scaling) support + initial prep work for per-context pa

Re: [PATCH v5 01/18] kunit: test: add KUnit test runner core

2019-06-25 Thread Luis Chamberlain
On Mon, Jun 17, 2019 at 01:25:56AM -0700, Brendan Higgins wrote: > +/** > + * module_test() - used to register a &struct kunit_module with KUnit. > + * @module: a statically allocated &struct kunit_module. > + * > + * Registers @module with the test framework. See &struct kunit_module for > more >

Re: [PATCH v5 01/18] kunit: test: add KUnit test runner core

2019-06-25 Thread Brendan Higgins
On Tue, Jun 25, 2019 at 2:44 PM Luis Chamberlain wrote: > > On Tue, Jun 25, 2019 at 01:28:25PM -0700, Brendan Higgins wrote: > > On Wed, Jun 19, 2019 at 5:15 PM Stephen Boyd wrote: > > > > > > Quoting Brendan Higgins (2019-06-17 01:25:56) > > > > diff --git a/kunit/test.c b/kunit/test.c > > > > n

Re: [PATCH v5 06/18] kbuild: enable building KUnit

2019-06-25 Thread Luis Chamberlain
On Mon, Jun 17, 2019 at 01:26:01AM -0700, Brendan Higgins wrote: > diff --git a/Kconfig b/Kconfig > index 48a80beab6853..10428501edb78 100644 > --- a/Kconfig > +++ b/Kconfig > @@ -30,3 +30,5 @@ source "crypto/Kconfig" > source "lib/Kconfig" > > source "lib/Kconfig.debug" > + > +source "kunit/Kc

Re: [PATCH v2 10/15] dt-bindings: display: Convert tpo,tpg110 panel to DT schema

2019-06-25 Thread Linus Walleij
On Tue, Jun 25, 2019 at 4:26 PM Rob Herring wrote: > On Tue, Jun 25, 2019 at 2:26 AM Linus Walleij > wrote: > > Can I simply just merge the panel-common patch as well and we > > are all happy? > > I have drm-misc commit rights too, so I'll apply the whole lot when it's > ready. > > > I can als

Re: [PATCH v5 01/18] kunit: test: add KUnit test runner core

2019-06-25 Thread Luis Chamberlain
On Tue, Jun 25, 2019 at 01:28:25PM -0700, Brendan Higgins wrote: > On Wed, Jun 19, 2019 at 5:15 PM Stephen Boyd wrote: > > > > Quoting Brendan Higgins (2019-06-17 01:25:56) > > > diff --git a/kunit/test.c b/kunit/test.c > > > new file mode 100644 > > > index 0..d05d254f1521f > > > ---

Re: drm/msm/dpu: Correct dpu encoder spinlock initialization

2019-06-25 Thread Jeykumar Sankaran
On 2019-06-24 22:44, d...@codeaurora.org wrote: On 2019-06-25 03:56, Jeykumar Sankaran wrote: On 2019-06-23 23:27, Shubhashree Dhar wrote: dpu encoder spinlock should be initialized during dpu encoder init instead of dpu encoder setup which is part of commit. There are chances that vblank contr

Re: [PATCH 2/4] drm/panel: jh057n0090: Don't use magic constant

2019-06-25 Thread Sam Ravnborg
On Tue, Jun 25, 2019 at 07:05:17PM +0200, Guido Günther wrote: > 0xBF isn't in any ST7703 data sheet so mark it as unknown. This avoids > confusion on whether there is a missing command in that > dsi_generic_write_seq() call. > > Signed-off-by: Guido Günther Reviewed-by: Sam Ravnborg > --- > dr

Re: [PATCH 4/4] drm/panel: jh057n0090: Add regulator support

2019-06-25 Thread Sam Ravnborg
On Tue, Jun 25, 2019 at 07:05:19PM +0200, Guido Günther wrote: > Allow to specify regulators for vcc and iovcc. According to the data > sheet the panel wants vcc (2.8V) and iovcc (1.8V) and there's no startup > dependency between the two. s/jh057n0090/jh057n00900 > > Signed-off-by: Guido Günther

Re: [PATCH 3/4] dt-bindings: display/panel: jh057n0090: Document power supply properties

2019-06-25 Thread Sam Ravnborg
On Tue, Jun 25, 2019 at 07:05:18PM +0200, Guido Günther wrote: > Document the vcc-supply and iovcc-supply propertes of the Rocktech > jh057n0090 panel. s/propertes/properties s/jh057n0090/jh057n00900 With these fixed: Reviewed-by: Sam Ravnborg > > Signed-off-by: Guido Günther > --- > .../bindi

Re: [PATCH 2/7] drm/msm: Use drm_gem_fb_prepare_fb

2019-06-25 Thread Rob Clark
On Tue, Jun 25, 2019 at 1:42 PM Daniel Vetter wrote: > > msm has switched over to drm_fb->obj[] a while ago already, so we can > just use the helper. > > v2: Make it compile ... oops. > > Cc: Eric Anholt > Cc: Emil Velikov > Signed-off-by: Daniel Vetter > Cc: Rob Clark > Cc: Sean Paul > Cc: J

Re: [PATCH 4/7] drm/radeon: Fill out gem_object->resv

2019-06-25 Thread Sam Ravnborg
On Tue, Jun 25, 2019 at 10:42:05PM +0200, Daniel Vetter wrote: > That way we can ditch our gem_prime_res_obj implementation. Since ttm > absolutely needs the right reservation object all the boilerplate is > already there and we just have to wire it up correctly. > > Note that gem/prime doesn't ca

Re: [PATCH 1/7] drm/fb-helper: use gem_bo.resv, not dma_buf.resv in prepare_fb

2019-06-25 Thread Sam Ravnborg
On Tue, Jun 25, 2019 at 10:42:02PM +0200, Daniel Vetter wrote: > With > > commit 5f6ed9879a414636405a2bd77f122881695959e4 > Author: Daniel Vetter > Date: Fri Jun 14 22:35:57 2019 +0200 > > drm/prime: automatically set gem_obj->resv on import > > we consistently set drm_gem_bo.resv for imp

Re: [PATCH] drm/doc: Document kapi doc expectations

2019-06-25 Thread Sam Ravnborg
On Tue, Jun 25, 2019 at 10:36:44PM +0200, Daniel Vetter wrote: > We've had this already for anything new. With my drm_prime.c cleanup I > also think documentations for everything already existing is complete, s/documentations/documentation? > and we can bake this in as a requirements subsystem wid

Re: [PATCH v3 0/5] drm/panel-simple: Add panel parameters for ortustech-com37h3m05dtc/99dtc and sharp-lq070y3dg3b

2019-06-25 Thread Sam Ravnborg
Hi Nikolaus > > V3: > > * add bindings documentation (suggested by s...@ravnborg.org) > > > > V2 2019-06-05 07:07:05: > > * fix typo in 99dtc panel compatible string (reported by > > imir...@alum.mit.edu) > > > > V1 2019-06-04 14:53:00: > > > > Since v5.2-rc1 OMAP is no longer using a special

Re: [PATCH] drm/doc: Document kapi doc expectations

2019-06-25 Thread Sean Paul
On Tue, Jun 25, 2019 at 10:36:44PM +0200, Daniel Vetter wrote: > We've had this already for anything new. With my drm_prime.c cleanup I > also think documentations for everything already existing is complete, > and we can bake this in as a requirements subsystem wide. > > Acked-by: Jani Nikula >

[PATCH 7/7] drm/prime: Ditch gem_prime_res_obj hook

2019-06-25 Thread Daniel Vetter
Everyone is just using gem_object->resv now. Reviewed-by: Emil Velikov Signed-off-by: Daniel Vetter Cc: David Airlie Cc: Daniel Vetter Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul --- Documentation/gpu/todo.rst | 9 - drivers/gpu/drm/drm_prime.c | 3 --- include/drm/drm

[PATCH 5/7] drm/nouveau: Fill out gem_object->resv

2019-06-25 Thread Daniel Vetter
That way we can ditch our gem_prime_res_obj implementation. Since ttm absolutely needs the right reservation object all the boilerplate is already there and we just have to wire it up correctly. Note that gem/prime doesn't care when we do this, as long as we do it before the bo is registered and s

[PATCH 1/7] drm/fb-helper: use gem_bo.resv, not dma_buf.resv in prepare_fb

2019-06-25 Thread Daniel Vetter
With commit 5f6ed9879a414636405a2bd77f122881695959e4 Author: Daniel Vetter Date: Fri Jun 14 22:35:57 2019 +0200 drm/prime: automatically set gem_obj->resv on import we consistently set drm_gem_bo.resv for imported buffers. Which means we don't need to check to check the dma-buf in the pre

[PATCH 4/7] drm/radeon: Fill out gem_object->resv

2019-06-25 Thread Daniel Vetter
That way we can ditch our gem_prime_res_obj implementation. Since ttm absolutely needs the right reservation object all the boilerplate is already there and we just have to wire it up correctly. Note that gem/prime doesn't care when we do this, as long as we do it before the bo is registered and s

[PATCH 6/7] drm/amdgpu: Fill out gem_object->resv

2019-06-25 Thread Daniel Vetter
That way we can ditch our gem_prime_res_obj implementation. Since ttm absolutely needs the right reservation object all the boilerplate is already there and we just have to wire it up correctly. Note that gem/prime doesn't care when we do this, as long as we do it before the bo is registered and s

[PATCH 0/7] gem_bo.resv prime unification, leftovers

2019-06-25 Thread Daniel Vetter
Hi all, Here's the unmerged leftovers from my big prime cleanup series: - using the prepare_fb helper in vc4&msm, now hopefully fixed up. The helper should be now even more useful. - amd&nv driver ->gem_prime_res_obj callback removal. I think this one might have functional conflicts with Gerd

[PATCH 3/7] drm/vc4: Use drm_gem_fb_prepare_fb

2019-06-25 Thread Daniel Vetter
vc4 has switched to using drm_fb->obj[], so we can just use the helper unchanged. v2: Make it compile ... oops. Cc: Eric Anholt Cc: Emil Velikov Signed-off-by: Daniel Vetter Cc: Eric Anholt --- drivers/gpu/drm/vc4/vc4_plane.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff -

[PATCH 2/7] drm/msm: Use drm_gem_fb_prepare_fb

2019-06-25 Thread Daniel Vetter
msm has switched over to drm_fb->obj[] a while ago already, so we can just use the helper. v2: Make it compile ... oops. Cc: Eric Anholt Cc: Emil Velikov Signed-off-by: Daniel Vetter Cc: Rob Clark Cc: Sean Paul Cc: Jeykumar Sankaran Cc: Jordan Crouse Cc: Bruce Wang Cc: Fritz Koenig Cc: D

Re: [PATCH v3 5/5] dt-bindings: drm/panel: simple: add sharp, lq070y3dg3b panel

2019-06-25 Thread Sam Ravnborg
On Fri, Jun 07, 2019 at 01:11:11PM +0200, H. Nikolaus Schaller wrote: > Signed-off-by: H. Nikolaus Schaller Reviewed-by: Sam Ravnborg > --- > .../bindings/display/panel/sharp,lq070y3dg3b.txt | 12 > 1 file changed, 12 insertions(+) > create mode 100644 > Documentation/devicetr

Re: [PATCH v3 2/5] drm/panel: simple: Add Ortustech COM37H3M panel support

2019-06-25 Thread Sam Ravnborg
On Fri, Jun 07, 2019 at 01:11:08PM +0200, H. Nikolaus Schaller wrote: > The change adds support for the Ortustech COM37H3M05DTC/99DTC 3.7" TFT LCD > panel. > > Tested on Letux3704. > > Signed-off-by: H. Nikolaus Schaller Reviewed-by: Sam Ravnborg > --- > drivers/gpu/drm/panel/panel-simple.c |

Re: [PATCH v3 4/5] dt-bindings: drm/panel: simple: add ortustech, com37h3m99dtc panel

2019-06-25 Thread Sam Ravnborg
On Fri, Jun 07, 2019 at 01:11:10PM +0200, H. Nikolaus Schaller wrote: > Signed-off-by: H. Nikolaus Schaller Reviewed-by: Sam Ravnborg > --- > .../display/panel/ortustech,com37h3m99dtc.txt| 12 > 1 file changed, 12 insertions(+) > create mode 100644 > Documentation/devicetr

Re: [PATCH v3 1/5] drm/panel: simple: Add Sharp LQ070Y3DG3B panel support

2019-06-25 Thread Sam Ravnborg
On Fri, Jun 07, 2019 at 01:11:07PM +0200, H. Nikolaus Schaller wrote: > The change adds support for the Sharp LQ070Y3DG3B 7.0" TFT LCD panel. > > Tested on Letux7004. > > Signed-off-by: H. Nikolaus Schaller Reviewed-by: Sam Ravnborg > --- > drivers/gpu/drm/panel/panel-simple.c | 30 +++

  1   2   3   4   >