[PATCH -next] drm/amd/display: Fix old-style declaration

2019-11-12 Thread YueHaibing
Fix a build warning: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:75:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration] Signed-off-by: YueHaibing --- drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] drm/amd/display: Use static const, not const static

2019-11-12 Thread zhengbin
Move the static keyword to the front of declarations. Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/

Re: [RFC][PATCH 0/2] Allow DMA BUF heaps to be loaded as modules

2019-11-12 Thread Sandeep Patil
On Tue, Nov 05, 2019 at 09:41:44AM -0800, John Stultz wrote: > On Tue, Nov 5, 2019 at 1:43 AM Daniel Vetter wrote: > > > > On Mon, Nov 04, 2019 at 10:57:44AM -0800, John Stultz wrote: > > > On Mon, Nov 4, 2019 at 1:58 AM Daniel Vetter wrote: > > > > On Fri, Oct 25, 2019 at 11:48:32PM +, John

Re: [Freedreno] drm/msm: 'pp done time out' errors after async commit changes

2019-11-12 Thread Brian Masney
On Sun, Nov 10, 2019 at 10:37:33AM -0700, Jeffrey Hugo wrote: > On Sun, Nov 10, 2019 at 6:53 AM Brian Masney wrote: > > > > On Fri, Nov 08, 2019 at 07:56:25AM -0700, Jeffrey Hugo wrote: > > There's a REG_MDP5_PP_AUTOREFRESH_CONFIG() macro upstream here: > > https://git.kernel.org/pub/scm/linux/ker

RE: [PATCH v5 0/8] drm: rcar-du: Add Color Management Module (CMM)

2019-11-12 Thread Kalakodima Venkata Rajesh (RBEI/ECF3)
Hi Jacopo, Please find comments below. Best regards, Rajesh Kv RBEI/ECF3 > -Original Message- > From: linux-kernel-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of Jacopo Mondi > Sent: Tuesday, October 15, 2019 4:16 PM > To: laurent.pinch...@ideasonboard.com; > kieran.bingha

RE: [PATCH libdrm v2] modetest: Add support for setting mode having floating vertical refresh rate

2019-11-12 Thread Devarsh Thakkar
Hi Ville, Thanks for the review. I have sent v3 patch addressing the review comments. Could you please review and let me know if any further changes required ? Regards, Devarsh > -Original Message- > From: Ville Syrjälä > Sent: 07 November 2019 03:13 > To: Devarsh Thakkar > Cc: dri-dev

[PATCH v5 0/2] Add initial support for slimport anx7625

2019-11-12 Thread Xin Ji
Hi all, The following series add initial support for the Slimport ANX7625 transmitter, a ultra-low power Full-HD 4K MIPI to DP transmitter designed for portable device. This is the initial version, any mistakes, please let me know, I will fix it in the next series. Thanks, Xin Xin Ji (2): dt

[PATCH libdrm v3] modetest: Add support for setting mode having floating vertical refresh rate

2019-11-12 Thread Devarsh Thakkar
For the scenario where user may require to modeset with a mode supporting a fractional value for vertical refresh-rate, appropriate mode can be selected by searching for mode having matching fractional vertical refresh rate using below equation. vrefresh = (1000 * pixel clock) / (htotal * vtotal)

[PATCH v2 -next] drm/amd/display: remove set but not used variable 'bpc'

2019-11-12 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c: In function get_pbn_from_timing: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:2364:11: warning: variable bpc set but not used [-Wunused-but-set-variable] It is not used since commi

Re: WARNING in dma_buf_vunmap

2019-11-12 Thread Hans Verkuil
#syz fix: media: vb2: check memory model for VIDIOC_CREATE_BUFS ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH v5 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP bridge driver

2019-11-12 Thread Xin Ji
The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed for portable device. It converts MIPI DSI/DPI to DisplayPort 1.3 4K. The ANX7625 can support both USB Type-C PD feature and MIPI DSI/DPI to DP feature. This driver only enabled MIPI DSI/DPI to DP feature. Signed-off-by: Xin Ji -

[PATCH v5 1/2] dt-bindings: drm/bridge: anx7625: MIPI to DP transmitter binding

2019-11-12 Thread Xin Ji
The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed for portable device. It converts MIPI to DisplayPort 1.3 4K. You can add support to your board with binding. Example: anx7625_bridge: encoder@58 { compatible = "analogix,anx7625"; reg = <0x

Re: [RFC][PATCH 0/2] Allow DMA BUF heaps to be loaded as modules

2019-11-12 Thread Sandeep Patil
On Tue, Nov 05, 2019 at 11:47:53AM -0800, John Stultz wrote: > On Tue, Nov 5, 2019 at 11:19 AM Daniel Vetter wrote: > > On Tue, Nov 5, 2019 at 6:41 PM John Stultz wrote: > > > On Tue, Nov 5, 2019 at 1:43 AM Daniel Vetter wrote: > > > > > > > > On Mon, Nov 04, 2019 at 10:57:44AM -0800, John Stult

Re: [Freedreno] drm/msm: 'pp done time out' errors after async commit changes

2019-11-12 Thread Jeffrey Hugo
On Mon, Nov 11, 2019 at 4:38 AM Brian Masney wrote: > > On Sun, Nov 10, 2019 at 10:37:33AM -0700, Jeffrey Hugo wrote: > > On Sun, Nov 10, 2019 at 6:53 AM Brian Masney wrote: > > > > > > On Fri, Nov 08, 2019 at 07:56:25AM -0700, Jeffrey Hugo wrote: > > > There's a REG_MDP5_PP_AUTOREFRESH_CONFIG()

Re: [PATCH -next] drm/amd/display: Fix old-style declaration

2019-11-12 Thread Yuehaibing
On 2019/11/12 10:39, Joe Perches wrote: > On Mon, 2019-11-11 at 20:28 +0800, YueHaibing wrote: >> Fix a build warning: >> >> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:75:1: >> warning: 'static' is not at beginning of declaration >> [-Wold-style-declaration] > [] >> diff --git a/drivers/g

[Bug 205497] Attempt to read amd gpu id causes a freeze

2019-11-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205497 --- Comment #1 from albertogomezma...@gmail.com --- It is happening for me too with a Vega integrated graphics. Totally freeze with no graphic load and the utility running -- You are receiving this mail because: You are watching the assignee of

Re: [PATCH v2] drm/gem: Fix mmap fake offset handling for drm_gem_object_funcs.mmap

2019-11-12 Thread Gerd Hoffmann
On Fri, Nov 08, 2019 at 05:55:28PM +0100, Daniel Vetter wrote: > On Fri, Nov 08, 2019 at 05:27:59PM +0100, Daniel Vetter wrote: > > On Fri, Oct 25, 2019 at 09:30:42AM +0200, Daniel Vetter wrote: > > > On Thu, Oct 24, 2019 at 02:18:59PM -0500, Rob Herring wrote: > > > > Commit c40069cb7bd6 ("drm: ad

Re: [PATCH v2] drm/gem: Fix mmap fake offset handling for drm_gem_object_funcs.mmap

2019-11-12 Thread Thomas Zimmermann
Hi Am 08.11.19 um 17:27 schrieb Daniel Vetter: > On Fri, Oct 25, 2019 at 09:30:42AM +0200, Daniel Vetter wrote: >> On Thu, Oct 24, 2019 at 02:18:59PM -0500, Rob Herring wrote: >>> Commit c40069cb7bd6 ("drm: add mmap() to drm_gem_object_funcs") >>> introduced a GEM object mmap() hook which is expec

[PATCH][next] backlight: qcom-wled: fix spelling mistake "trigged" -> "triggered"

2019-11-12 Thread Colin King
From: Colin Ian King There is a spelling mistake in a dev_err error message. Fix it. Signed-off-by: Colin Ian King --- drivers/video/backlight/qcom-wled.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video/backlight/qcom-wle

Re: [PATCH v2] drm/gem: Fix mmap fake offset handling for drm_gem_object_funcs.mmap

2019-11-12 Thread Daniel Vetter
On Tue, Nov 12, 2019 at 10:26:44AM +0100, Thomas Zimmermann wrote: > Hi > > Am 08.11.19 um 17:27 schrieb Daniel Vetter: > > On Fri, Oct 25, 2019 at 09:30:42AM +0200, Daniel Vetter wrote: > >> On Thu, Oct 24, 2019 at 02:18:59PM -0500, Rob Herring wrote: > >>> Commit c40069cb7bd6 ("drm: add mmap() t

Re: [PATCH v2] drm/gem: Fix mmap fake offset handling for drm_gem_object_funcs.mmap

2019-11-12 Thread Daniel Vetter
On Tue, Nov 12, 2019 at 09:52:54AM +0100, Gerd Hoffmann wrote: > On Fri, Nov 08, 2019 at 05:55:28PM +0100, Daniel Vetter wrote: > > On Fri, Nov 08, 2019 at 05:27:59PM +0100, Daniel Vetter wrote: > > > On Fri, Oct 25, 2019 at 09:30:42AM +0200, Daniel Vetter wrote: > > > > On Thu, Oct 24, 2019 at 02:

Re: [PATCH 2/2] drm/edid: Add alternate clock for SMPTE 4K

2019-11-12 Thread Neil Armstrong
On 12/11/2019 08:53, Wayne Lin wrote: > [Why] > In hdmi_mode_alternate_clock(), it adds an exception for VIC 4 > mode (4096x2160@24) due to there is no alternate clock defined for > that mode in HDMI1.4b. But HDMI2.0 adds 23.98Hz for that mode. > > [How] > Remove the exception Shouldn't it be onl

Re: [PATCH] drm/virtgpu: fix double unregistration

2019-11-12 Thread Daniel Vetter
On Sat, Nov 09, 2019 at 03:54:17PM +0800, Chuhong Yuan wrote: > drm_put_dev also calls drm_dev_unregister, so dev will be unregistered > twice. > Replace it with drm_dev_put to fix it. > > Signed-off-by: Chuhong Yuan Nice catch, I'll apply. Since this is so confusing, we actually have a todo to

Re: [PATCH 10/12] drm/modes: parse_cmdline: Remove some unnecessary code

2019-11-12 Thread Daniel Vetter
On Sun, Nov 10, 2019 at 04:40:59PM +0100, Hans de Goede wrote: > Remove 2 bits of dead-code: > > 1) drm_mode_parse_command_line_for_connector() always gets called with a > zero-ed drm_cmdline_mode struct and assumes so in most places, so there is > no reason to set mode->specified to false if no m

[PATCH] dma-buf/sw-sync: Use unsigned type for value of sync_timeline

2019-11-12 Thread Seung-Woo Kim
The value of sync_timeline is only incremented and all reference usage of it is unsigned. Use unsigned type for value of synctimeline. Signed-off-by: Seung-Woo Kim --- drivers/dma-buf/sync_debug.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/dma-buf/sync_debu

Re: [PATCH 12/12] drm/connector: Hookup the new drm_cmdline_mode panel_orientation member

2019-11-12 Thread Daniel Vetter
On Sun, Nov 10, 2019 at 04:41:01PM +0100, Hans de Goede wrote: > If the new video=... panel_orientation option is set for a connector, honor > it and setup a matching "panel orientation" property on the connector. > > BugLink: https://gitlab.freedesktop.org/plymouth/plymouth/merge_requests/83 > Si

Re: [PATCH v2] drm/gem: Fix mmap fake offset handling for drm_gem_object_funcs.mmap

2019-11-12 Thread Thomas Zimmermann
Hi Am 12.11.19 um 10:32 schrieb Daniel Vetter: > On Tue, Nov 12, 2019 at 10:26:44AM +0100, Thomas Zimmermann wrote: >> Hi >> >> Am 08.11.19 um 17:27 schrieb Daniel Vetter: >>> On Fri, Oct 25, 2019 at 09:30:42AM +0200, Daniel Vetter wrote: On Thu, Oct 24, 2019 at 02:18:59PM -0500, Rob Herring

Re: Drm: mgag200. Video adapter issue with 5.4.0-rc3 ; no graphics

2019-11-12 Thread Thomas Zimmermann
Hi just a few more comments. Am 11.11.19 um 18:40 schrieb John Donnelly: > On 11/11/19 9:57 AM, Thomas Zimmermann wrote: >> Hi John >> >> Am 08.11.19 um 19:07 schrieb John Donnelly: >>> >>> On Nov 8, 2019, at 9:06 AM, Thomas Zimmermann wrote: Hi Am 08.11.19 um 13:55

Re: [PATCH] drm/gma500: Fixup fbdev stolen size usage evaluation

2019-11-12 Thread Patrik Jakobsson
On Thu, Nov 7, 2019 at 4:30 PM Paul Kocialkowski wrote: > > psbfb_probe performs an evaluation of the required size from the stolen > GTT memory, but gets it wrong in two distinct ways: > - The resulting size must be page-size-aligned; > - The size to allocate is derived from the surface dimension

Re: [PATCH 1/4] drm/ttm: refine ghost BO resv criteria

2019-11-12 Thread Daniel Vetter
On Mon, Nov 11, 2019 at 03:58:29PM +0100, Christian König wrote: > Ghost BOs need to stick with the resv object only when the origin is imported. > > This is a low hanging fruit to avoid OOM situations on evictions. > > Signed-off-by: Christian König I guess I still don't get what ghost objects

Re: [PATCH v2] drm/gem: Fix mmap fake offset handling for drm_gem_object_funcs.mmap

2019-11-12 Thread Gerd Hoffmann
On Tue, Nov 12, 2019 at 10:49:21AM +0100, Thomas Zimmermann wrote: > Hi > > Am 12.11.19 um 10:32 schrieb Daniel Vetter: > > On Tue, Nov 12, 2019 at 10:26:44AM +0100, Thomas Zimmermann wrote: > >> Hi > >> > >> Am 08.11.19 um 17:27 schrieb Daniel Vetter: > >>> On Fri, Oct 25, 2019 at 09:30:42AM +020

Re: [PATCH 10/12] drm/modes: parse_cmdline: Remove some unnecessary code

2019-11-12 Thread Hans de Goede
Hi, On 12-11-2019 10:44, Daniel Vetter wrote: On Sun, Nov 10, 2019 at 04:40:59PM +0100, Hans de Goede wrote: Remove 2 bits of dead-code: 1) drm_mode_parse_command_line_for_connector() always gets called with a zero-ed drm_cmdline_mode struct and assumes so in most places, so there is no reason

Re: [PATCH 1/4] drm/msm: fix memleak on release

2019-11-12 Thread Johan Hovold
On Wed, Oct 30, 2019 at 11:01:46AM +0100, Johan Hovold wrote: > On Thu, Oct 10, 2019 at 03:13:30PM +0200, Johan Hovold wrote: > > If a process is interrupted while accessing the "gpu" debugfs file and > > the drm device struct_mutex is contended, release() could return early > > and fail to free re

[PATCH v9 1/4] drm: Add a new helper drm_color_ctm_s31_32_to_qm_n()

2019-11-12 Thread james qian wang (Arm Technology China)
Add a new helper function drm_color_ctm_s31_32_to_qm_n() for driver to convert S31.32 sign-magnitude to Qm.n 2's complement that supported by hardware. V4: Address Mihai, Daniel and Ilia's review comments. V5: Includes the sign bit in the value of m (Qm.n). V6: Allows m = 0 according to Mihail's c

[PATCH v9 4/4] drm/komeda: Adds gamma and color-transform support for DOU-IPS

2019-11-12 Thread james qian wang (Arm Technology China)
From: "Lowry Li (Arm Technology China)" Adds gamma and color-transform support for DOU-IPS. Adds two caps members fgamma_coeffs and ctm_coeffs to komeda_improc_state. If color management changed, set gamma and color-transform accordingly. v5: Rebase with drm-misc-next Signed-off-by: Lowry Li (A

[PATCH v9 3/4] drm/komeda: Add drm_ctm_to_coeffs()

2019-11-12 Thread james qian wang (Arm Technology China)
This function is for converting drm_color_ctm matrix to komeda hardware required required Q2.12 2's complement CSC matrix. v2: Move the fixpoint conversion function s31_32_to_q2_12() to drm core as a shared helper. Signed-off-by: james qian wang (Arm Technology China) Reviewed-by: Mihail Ata

[PATCH v9 2/4] drm/komeda: Add drm_lut_to_fgamma_coeffs()

2019-11-12 Thread james qian wang (Arm Technology China)
This function is used to convert drm color lut to komeda HW required curve coeffs values. Signed-off-by: james qian wang (Arm Technology China) Reviewed-by: Mihail Atanassov --- .../arm/display/komeda/komeda_color_mgmt.c| 52 +++ .../arm/display/komeda/komeda_color_mgmt.h

[PATCH v9 0/4] drm/komeda: Enable CRTC color-mgmt

2019-11-12 Thread james qian wang (Arm Technology China)
This series actually are regrouped from: - drm/komeda: Enable layer/plane color-mgmt: https://patchwork.freedesktop.org/series/60893/ - drm/komeda: Enable CRTC color-mgmt https://patchwork.freedesktop.org/series/61370/ For removing the dependence on: - https://patchwork.freedesktop.org/series

Re: [PATCH 12/12] drm/connector: Hookup the new drm_cmdline_mode panel_orientation member

2019-11-12 Thread Hans de Goede
Hi, On 12-11-2019 10:47, Daniel Vetter wrote: On Sun, Nov 10, 2019 at 04:41:01PM +0100, Hans de Goede wrote: If the new video=... panel_orientation option is set for a connector, honor it and setup a matching "panel orientation" property on the connector. BugLink: https://gitlab.freedesktop.or

[Bug 109955] amdgpu [RX Vega 64] system freeze while gaming

2019-11-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109955 --- Comment #134 from Wilko Bartels --- (In reply to Wilko Bartels from comment #133) > (In reply to haro41 from comment #132) > > (In reply to Wilko Bartels from comment #131) > > > Thank you. I already tried exactly that. And the unit unable t

[PATCH v10 0/4] drm/komeda: Enable CRTC color-mgmt

2019-11-12 Thread james qian wang (Arm Technology China)
This series actually are regrouped from: - drm/komeda: Enable layer/plane color-mgmt: https://patchwork.freedesktop.org/series/60893/ - drm/komeda: Enable CRTC color-mgmt https://patchwork.freedesktop.org/series/61370/ For removing the dependence on: - https://patchwork.freedesktop.org/series

[PATCH v10 2/4] drm/komeda: Add drm_lut_to_fgamma_coeffs()

2019-11-12 Thread james qian wang (Arm Technology China)
This function is used to convert drm color lut to komeda HW required curve coeffs values. Signed-off-by: james qian wang (Arm Technology China) Reviewed-by: Mihail Atanassov --- .../arm/display/komeda/komeda_color_mgmt.c| 52 +++ .../arm/display/komeda/komeda_color_mgmt.h

[PATCH v10 3/4] drm/komeda: Add drm_ctm_to_coeffs()

2019-11-12 Thread james qian wang (Arm Technology China)
This function is for converting drm_color_ctm matrix to komeda hardware required required Q2.12 2's complement CSC matrix. v2: Move the fixpoint conversion function s31_32_to_q2_12() to drm core as a shared helper. Signed-off-by: james qian wang (Arm Technology China) Reviewed-by: Mihail Ata

[PATCH v10 1/4] drm: Add a new helper drm_color_ctm_s31_32_to_qm_n()

2019-11-12 Thread james qian wang (Arm Technology China)
Add a new helper function drm_color_ctm_s31_32_to_qm_n() for driver to convert S31.32 sign-magnitude to Qm.n 2's complement that supported by hardware. V4: Address Mihai, Daniel and Ilia's review comments. V5: Includes the sign bit in the value of m (Qm.n). V6: Allows m = 0 according to Mihail's c

[PATCH v10 4/4] drm/komeda: Adds gamma and color-transform support for DOU-IPS

2019-11-12 Thread james qian wang (Arm Technology China)
From: "Lowry Li (Arm Technology China)" Adds gamma and color-transform support for DOU-IPS. Adds two caps members fgamma_coeffs and ctm_coeffs to komeda_improc_state. If color management changed, set gamma and color-transform accordingly. v5: Rebase with drm-misc-next Signed-off-by: Lowry Li (A

Re: [PATCH][next] backlight: qcom-wled: fix spelling mistake "trigged" -> "triggered"

2019-11-12 Thread Daniel Thompson
On Tue, Nov 12, 2019 at 09:30:25AM +, Colin King wrote: > From: Colin Ian King > > There is a spelling mistake in a dev_err error message. Fix it. > > Signed-off-by: Colin Ian King Reviewed-by: Daniel Thompson > --- > drivers/video/backlight/qcom-wled.c | 2 +- > 1 file changed, 1 inser

Re: [PATCH v10 0/4] drm/komeda: Enable CRTC color-mgmt

2019-11-12 Thread Mihail Atanassov
Hi James, On Tuesday, 12 November 2019 11:09:50 GMT james qian wang (Arm Technology China) wrote: > This series actually are regrouped from: > - drm/komeda: Enable layer/plane color-mgmt: > https://patchwork.freedesktop.org/series/60893/ > > - drm/komeda: Enable CRTC color-mgmt > https://pat

Re: [PATCH 1/4] drm/udl: Replace fbdev code with generic emulation

2019-11-12 Thread Thomas Zimmermann
Hi Am 08.11.19 um 16:37 schrieb Noralf Trønnes: > > > Den 08.11.2019 13.33, skrev Thomas Zimmermann: >> The udl driver can use the generic fbdev implementation. Convert it. >> >> Signed-off-by: Thomas Zimmermann >> --- > >> diff --git a/drivers/gpu/drm/udl/udl_drv.c b/drivers/gpu/drm/udl/udl_d

[Bug 205497] Attempt to read amd gpu id causes a freeze

2019-11-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205497 clst (claudius+ker...@hausnetz.lettenbach.com) changed: What|Removed |Added CC||claudius+

Re: [PATCH 1/5] drm/vmwgfx: move the require_exist handling together

2019-11-12 Thread Thomas Hellstrom
On 11/1/19 2:05 PM, Emil Velikov wrote: > From: Emil Velikov > > Move the render_client hunk for require_exist alongside the rest. > Keeping all the reasons why an existing object is needed, in a single > place makes it easier to follow. > > Cc: VMware Graphics > Cc: Thomas Hellstrom > Signed-of

Re: [PATCH 2/5] drm/vmwgfx: check master authentication in surface_ref ioctls

2019-11-12 Thread Thomas Hellstrom
On 11/1/19 2:05 PM, Emil Velikov wrote: > From: Emil Velikov > > With later commit we'll rework DRM authentication handling. Namely > DRM_AUTH will not be a requirement for DRM_RENDER_ALLOW ioctls. > > Since vmwgfx does isolation for primary clients in different master > realms, the DRM_AUTH can b

Re: [PATCH 3/5] drm/vmwgfx: drop DRM_AUTH for render ioctls

2019-11-12 Thread Thomas Hellstrom
On 11/1/19 2:05 PM, Emil Velikov wrote: > From: Emil Velikov > > With earlier commit 9c84aeba67cc ("drm/vmwgfx: Kill unneeded legacy > security features") we removed the no longer applicable validation, as > we now have isolation of primary clients from different master realms. > > As of last comm

Re: [PATCH v2 5/5] drm/komeda: add rate limiting disable to err_verbosity

2019-11-12 Thread Mihail Atanassov
On Monday, 11 November 2019 15:53:14 GMT Liviu Dudau wrote: > On Thu, Nov 07, 2019 at 11:42:44AM +, Mihail Atanassov wrote: > > It's possible to get multiple events in a single frame/flip, so add an > > option to print them all. > > > > Reviewed-by: James Qian Wang (Arm Technology China) > >

Re: [PATCH] video: fbdev: atyfb: only use ioremap_uc() on i386 and ia64

2019-11-12 Thread Daniel Vetter
On Tue, Nov 12, 2019 at 11:55 AM Christoph Hellwig wrote: > > On Mon, Nov 11, 2019 at 08:22:50PM +0100, Arnd Bergmann wrote: > > ioremap_uc() is only meaningful on old x86-32 systems with the PAT > > extension, and on ia64 with its slightly unconventional ioremap() > > behavior, everywhere else th

[radeon-alex:amd-mainline-dkms-5.2 2713/2834] include/drm/drm_print.h:219:34: sparse: the previous one is here

2019-11-12 Thread kbuild test robot
tree: git://people.freedesktop.org/~agd5f/linux.git amd-mainline-dkms-5.2 head: a48b0cc1cdf3900e3e73801f9de64afbb70dc193 commit: c7c81b24394a38d14607a15614ebea5da335ebd7 [2713/2834] drm/amdkcl: drop kcl_drm_get_format_name reproduce: # apt-get install sparse # sparse version: v

Re: [PATCH 12/12] drm/connector: Hookup the new drm_cmdline_mode panel_orientation member

2019-11-12 Thread Daniel Vetter
On Tue, Nov 12, 2019 at 11:43 AM Hans de Goede wrote: > > Hi, > > On 12-11-2019 10:47, Daniel Vetter wrote: > > On Sun, Nov 10, 2019 at 04:41:01PM +0100, Hans de Goede wrote: > >> If the new video=... panel_orientation option is set for a connector, honor > >> it and setup a matching "panel orient

Re: [PATCH 12/12] drm/connector: Hookup the new drm_cmdline_mode panel_orientation member

2019-11-12 Thread Hans de Goede
Hi, On 12-11-2019 14:32, Daniel Vetter wrote: On Tue, Nov 12, 2019 at 11:43 AM Hans de Goede wrote: Hi, On 12-11-2019 10:47, Daniel Vetter wrote: On Sun, Nov 10, 2019 at 04:41:01PM +0100, Hans de Goede wrote: If the new video=... panel_orientation option is set for a connector, honor it an

Re: [PATCH 1/4] drm/udl: Replace fbdev code with generic emulation

2019-11-12 Thread Daniel Vetter
On Tue, Nov 12, 2019 at 12:55 PM Thomas Zimmermann wrote: > > Hi > > Am 08.11.19 um 16:37 schrieb Noralf Trønnes: > > > > > > Den 08.11.2019 13.33, skrev Thomas Zimmermann: > >> The udl driver can use the generic fbdev implementation. Convert it. > >> > >> Signed-off-by: Thomas Zimmermann > >> --

Re: [PATCH 12/12] drm/connector: Hookup the new drm_cmdline_mode panel_orientation member

2019-11-12 Thread Daniel Vetter
On Tue, Nov 12, 2019 at 2:39 PM Hans de Goede wrote: > > Hi, > > On 12-11-2019 14:32, Daniel Vetter wrote: > > On Tue, Nov 12, 2019 at 11:43 AM Hans de Goede wrote: > >> > >> Hi, > >> > >> On 12-11-2019 10:47, Daniel Vetter wrote: > >>> On Sun, Nov 10, 2019 at 04:41:01PM +0100, Hans de Goede wrot

Re: [PATCH 1/4] drm/msm: fix memleak on release

2019-11-12 Thread Daniel Vetter
On Tue, Nov 12, 2019 at 11:40:01AM +0100, Johan Hovold wrote: > On Wed, Oct 30, 2019 at 11:01:46AM +0100, Johan Hovold wrote: > > On Thu, Oct 10, 2019 at 03:13:30PM +0200, Johan Hovold wrote: > > > If a process is interrupted while accessing the "gpu" debugfs file and > > > the drm device struct_mu

Re: [PATCH 1/4] drm/udl: Replace fbdev code with generic emulation

2019-11-12 Thread Thomas Zimmermann
Hi Am 12.11.19 um 14:40 schrieb Daniel Vetter: > On Tue, Nov 12, 2019 at 12:55 PM Thomas Zimmermann > wrote: >> >> Hi >> >> Am 08.11.19 um 16:37 schrieb Noralf Trønnes: >>> >>> >>> Den 08.11.2019 13.33, skrev Thomas Zimmermann: The udl driver can use the generic fbdev implementation. Conver

[PATCH v3 3/5] drm/udl: Remove udl implementation of GEM's free_object()

2019-11-12 Thread Thomas Zimmermann
Udl used to have a custom implementation for free_object() of struct drm_gem_object_funcs. It unmapped the memory buffer of the fbdev emulation. With the switch to generic fbdev emulation, this is now handled by the fbdev code internally. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/udl/

[PATCH v3 2/5] drm/udl: Replace fbdev code with generic emulation

2019-11-12 Thread Thomas Zimmermann
The udl driver can use the generic fbdev implementation. Convert it. v3: * remove module parameter fb_bpp in favor of fbdev's video * call drm_fbdev_generic_setup() directly; remove udl_fbdev_init() * use default for struct drm_mode_config_funcs.output_poll_changed

[PATCH v3 4/5] drm/fb-helper: Remove drm_fb_helper_unlink_fbi()

2019-11-12 Thread Thomas Zimmermann
There are no callers of drm_fb_helper_unlink_fbi() left. Remove the function. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_fb_helper.c | 16 +--- include/drm/drm_fb_helper.h | 6 -- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/drivers/gpu/drm/dr

[PATCH v3 1/5] drm/udl: Set default color depth to 32 bpp

2019-11-12 Thread Thomas Zimmermann
The udl driver only supports color depths that are powers of two. Change prefered default to 32 bpp. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/udl/udl_modeset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/udl/udl_modeset.c b/drivers/gpu/drm/udl

[PATCH v3 5/5] fbdev: Unexport unlink_framebuffer()

2019-11-12 Thread Thomas Zimmermann
There are no external callers of unlink_framebuffer() left. Make the function an internal interface. Signed-off-by: Thomas Zimmermann --- drivers/video/fbdev/core/fbmem.c | 3 +-- include/linux/fb.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/

[PATCH v3 0/5] drm/udl: Replace fbdev by generic emulation

2019-11-12 Thread Thomas Zimmermann
The udl driver can use the generic fbdev emulation. After conversion, a number of cleanups can be applied. Patch 1 prepares the prefered defaults. 32 bpp work well with driver, console and X11. The fbdev conversion is in patch 2. The original fbdev code in udl mapped the framebuffer's GEM object m

Re: UDL device cannot get its own screen

2019-11-12 Thread Böszörményi Zoltán
2019. 11. 05. 15:22 keltezéssel, Böszörményi Zoltán írta: Hi, 2019. 10. 23. 15:32 keltezéssel, Ilia Mirkin írta: On Wed, Oct 23, 2019 at 2:41 AM Böszörményi Zoltán wrote: 2019. 10. 22. 22:57 keltezéssel, Ilia Mirkin írta: On Tue, Oct 22, 2019 at 11:50 AM Böszörményi Zoltán wrote: Section

Re: [PATCH] video: fbdev: atyfb: only use ioremap_uc() on i386 and ia64

2019-11-12 Thread Daniel Vetter
On Tue, Nov 12, 2019 at 3:06 PM Christoph Hellwig wrote: > On Tue, Nov 12, 2019 at 02:04:16PM +0100, Daniel Vetter wrote: > > Wut ... Maybe I'm missing something, but from how we use mtrr in other > > gpu drivers it's a) either you use MTRR because that's all you got or > > b) you use pat. Mixing

Re: [PATCH v2 1/5] drm/bridge/synopsys: dsi: move phy_ops callbacks around panel enablement

2019-11-12 Thread Neil Armstrong
On 08/11/2019 01:02, Heiko Stuebner wrote: > If implementation-specific phy_ops need to be defined they probably > should be enabled before trying to talk to the panel and disabled only > after the panel was disabled. > > Right now they are enabled last and disabled first, so might make it > impos

Re: [PATCH 1/4] drm/udl: Replace fbdev code with generic emulation

2019-11-12 Thread Daniel Vetter
On Tue, Nov 12, 2019 at 3:03 PM Thomas Zimmermann wrote: > > Hi > > Am 12.11.19 um 14:40 schrieb Daniel Vetter: > > On Tue, Nov 12, 2019 at 12:55 PM Thomas Zimmermann > > wrote: > >> > >> Hi > >> > >> Am 08.11.19 um 16:37 schrieb Noralf Trønnes: > >>> > >>> > >>> Den 08.11.2019 13.33, skrev Thom

Re: [PATCH v2] drm/gem: Fix mmap fake offset handling for drm_gem_object_funcs.mmap

2019-11-12 Thread Daniel Vetter
On Tue, Nov 12, 2019 at 11:38:19AM +0100, Gerd Hoffmann wrote: > On Tue, Nov 12, 2019 at 10:49:21AM +0100, Thomas Zimmermann wrote: > > Hi > > > > Am 12.11.19 um 10:32 schrieb Daniel Vetter: > > > On Tue, Nov 12, 2019 at 10:26:44AM +0100, Thomas Zimmermann wrote: > > >> Hi > > >> > > >> Am 08.11.1

How to create a drm_display_mode for a new display

2019-11-12 Thread Bas Vermeulen
Hello, I am trying to create a new display mode for a new display I have to support. I have the following information: Dotclock - frequency period - 1/TCLP - 89.6 MHz   TCDP - 11,16 ns Hsync - Period - TH - 2048 dotclock, 43,75 KHz, 22,86 us     Pulse Width -

Re: [PATCH 1/4] drm/udl: Replace fbdev code with generic emulation

2019-11-12 Thread Thomas Zimmermann
Hi Am 12.11.19 um 15:31 schrieb Daniel Vetter: > On Tue, Nov 12, 2019 at 3:03 PM Thomas Zimmermann wrote: >> >> Hi >> >> Am 12.11.19 um 14:40 schrieb Daniel Vetter: >>> On Tue, Nov 12, 2019 at 12:55 PM Thomas Zimmermann >>> wrote: Hi Am 08.11.19 um 16:37 schrieb Noralf Trønn

[Bug 205497] Attempt to read amd gpu id causes a freeze

2019-11-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205497 Alex Deucher (alexdeuc...@gmail.com) changed: What|Removed |Added CC||alexdeuc...@gmail.c

drm core/helpers and MIT license

2019-11-12 Thread Daniel Vetter
Hi all, Dave and me chatted about this last week on irc. Essentially we have: $ git grep SPDX.*GPL -- ':(glob)drivers/gpu/drm/*c' drivers/gpu/drm/drm_client.c:// SPDX-License-Identifier: GPL-2.0 drivers/gpu/drm/drm_damage_helper.c:// SPDX-License-Identifier: GPL-2.0 OR MIT drivers/gpu/drm/drm_dp_

Re: How to create a drm_display_mode for a new display

2019-11-12 Thread Ville Syrjälä
On Tue, Nov 12, 2019 at 03:18:21PM +0100, Bas Vermeulen wrote: > Hello, > > I am trying to create a new display mode for a new display I have to > support. > > I have the following information: > > Dotclock - frequency period - 1/TCLP - 89.6 MHz >   TCDP - 11,16 ns

[Bug 205497] Attempt to read amd gpu id causes a freeze

2019-11-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205497 Alex Deucher (alexdeuc...@gmail.com) changed: What|Removed |Added Attachment #285881|0 |1 is obsole

Re: [PATCH] drm/gma500: Fixup fbdev stolen size usage evaluation

2019-11-12 Thread Paul Kocialkowski
Hi, On Tue 12 Nov 19, 11:20, Patrik Jakobsson wrote: > On Thu, Nov 7, 2019 at 4:30 PM Paul Kocialkowski > wrote: > > > > psbfb_probe performs an evaluation of the required size from the stolen > > GTT memory, but gets it wrong in two distinct ways: > > - The resulting size must be page-size-align

Re: [PATCH 1/4] drm/udl: Replace fbdev code with generic emulation

2019-11-12 Thread Daniel Vetter
On Tue, Nov 12, 2019 at 3:51 PM Thomas Zimmermann wrote: > > Hi > > Am 12.11.19 um 15:31 schrieb Daniel Vetter: > > On Tue, Nov 12, 2019 at 3:03 PM Thomas Zimmermann > > wrote: > >> > >> Hi > >> > >> Am 12.11.19 um 14:40 schrieb Daniel Vetter: > >>> On Tue, Nov 12, 2019 at 12:55 PM Thomas Zimmer

Re: [PATCH RESEND 0/8] drm/print: cleanup and new drm_device based logging

2019-11-12 Thread Sean Paul
On Mon, Oct 28, 2019 at 12:38:14PM +0200, Jani Nikula wrote: > Resend of [1]; I may have rebased but I'm not sure anymore... > > For starters some fairly benign cleanup, and a proposal for new struct > drm_device based drm logging macros analoguous to core kernel struct > device based macros. > >

Re: [PATCH v2] drm/gem: Fix mmap fake offset handling for drm_gem_object_funcs.mmap

2019-11-12 Thread Rob Herring
On Tue, Nov 12, 2019 at 3:35 AM Daniel Vetter wrote: > > On Tue, Nov 12, 2019 at 09:52:54AM +0100, Gerd Hoffmann wrote: > > On Fri, Nov 08, 2019 at 05:55:28PM +0100, Daniel Vetter wrote: > > > On Fri, Nov 08, 2019 at 05:27:59PM +0100, Daniel Vetter wrote: > > > > On Fri, Oct 25, 2019 at 09:30:42AM

Re: [PATCH] drm/gma500: Fixup fbdev stolen size usage evaluation

2019-11-12 Thread Paul Kocialkowski
Hi, On Tue 12 Nov 19, 16:11, Paul Kocialkowski wrote: > Hi, > > On Tue 12 Nov 19, 11:20, Patrik Jakobsson wrote: > > On Thu, Nov 7, 2019 at 4:30 PM Paul Kocialkowski > > wrote: > > > > > > psbfb_probe performs an evaluation of the required size from the stolen > > > GTT memory, but gets it wrong

Re: [PATCH 2/2 v2] drm/atomic: clear new_state pointers at hw_done

2019-11-12 Thread Enric Balletbo Serra
Hi Rob, Missatge de Rob Clark del dia dl., 4 de nov. 2019 a les 18:42: > > From: Rob Clark > > The new state should not be accessed after this point. Clear the > pointers to make that explicit. > > Signed-off-by: Rob Clark While looking to another issue I applied this patch on top of 5.4-rc7

Re: How to create a drm_display_mode for a new display

2019-11-12 Thread Bas Vermeulen
On 12-11-19 16:08, Ville Syrjälä wrote: On Tue, Nov 12, 2019 at 03:18:21PM +0100, Bas Vermeulen wrote: Hello, I am trying to create a new display mode for a new display I have to support. I have the following information: Dotclock - frequency period - 1/TCLP - 89.6 MHz  

Re: [PATCH v2 -next] drm/amd/display: remove set but not used variable 'bpc'

2019-11-12 Thread Alex Deucher
On Tue, Nov 12, 2019 at 3:13 AM YueHaibing wrote: > > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c: In function > get_pbn_from_timing: > drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:2364:11: warning: > variable bpc set but

Re: [PATCH v2 1/5] drm/bridge/synopsys: dsi: move phy_ops callbacks around panel enablement

2019-11-12 Thread Philippe CORNU
Hi Heiko, On 11/8/19 1:02 AM, Heiko Stuebner wrote: > If implementation-specific phy_ops need to be defined they probably > should be enabled before trying to talk to the panel and disabled only > after the panel was disabled. > > Right now they are enabled last and disabled first, so might make

Re: [PATCH 2/2 v2] drm/atomic: clear new_state pointers at hw_done

2019-11-12 Thread Rob Clark
On Tue, Nov 12, 2019 at 7:51 AM Enric Balletbo Serra wrote: > > Hi Rob, > > Missatge de Rob Clark del dia dl., 4 de nov. > 2019 a les 18:42: > > > > From: Rob Clark > > > > The new state should not be accessed after this point. Clear the > > pointers to make that explicit. > > > > Signed-off-by

Re: [PATCH 1/4] drm/msm: fix memleak on release

2019-11-12 Thread Rob Clark
On Tue, Nov 12, 2019 at 6:01 AM Daniel Vetter wrote: > > On Tue, Nov 12, 2019 at 11:40:01AM +0100, Johan Hovold wrote: > > On Wed, Oct 30, 2019 at 11:01:46AM +0100, Johan Hovold wrote: > > > On Thu, Oct 10, 2019 at 03:13:30PM +0200, Johan Hovold wrote: > > > > If a process is interrupted while acc

Re: [Freedreno] [PATCH RESEND] drm/msm/adreno: Do not print error on "qcom, gpu-pwrlevels" absence

2019-11-12 Thread Fabio Estevam
Hi Jordan, On Fri, Nov 1, 2019 at 11:52 AM Jordan Crouse wrote: > I'm good with this. This really should only be around for > compatibility with downstream device tree files which should mean nothing for > I.MX5. May I resend it with your Reviewed-by tag? Thanks ___

Re: UDL device cannot get its own screen

2019-11-12 Thread Ilia Mirkin
On Tue, Nov 12, 2019 at 9:23 AM Böszörményi Zoltán wrote: > But no, all GPU devices (now only one, the UDL device) have screen 0 > (a.k.a. DISPLAY=:0.0) set when AutoBindGPU is true: > > [ 2444.576] xf86AutoConfigOutputDevices: xf86NumScreens 2 xf86NumGPUScreens 1 > [ 2444.576] xf86AutoConfigOut

Re: [PATCH 1/2] drm: replace incorrect Compliance/Margin magic numbers with PCI_EXP_LNKCTL2 definitions

2019-11-12 Thread Michel Dänzer
On 2019-11-11 8:29 p.m., Bjorn Helgaas wrote: > From: Bjorn Helgaas > > Add definitions for these PCIe Link Control 2 register fields: > > Enter Compliance > Transmit Margin > > and use them in amdgpu and radeon. > > NOTE: This is a functional change because "7 << 9" was apparently a typo.

Re: [PATCH libdrm v3] modetest: Add support for setting mode having floating vertical refresh rate

2019-11-12 Thread Ville Syrjälä
On Mon, Nov 11, 2019 at 03:47:22AM -0800, Devarsh Thakkar wrote: > For the scenario where user may require to modeset with a mode > supporting a fractional value for vertical refresh-rate, > appropriate mode can be selected by searching for mode > having matching fractional vertical refresh rate us

[Bug 205497] Attempt to read amd gpu id causes a freeze

2019-11-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205497 V.I.S. (itemc...@mail.ru) changed: What|Removed |Added CC||itemc...@mail.ru --- Comment

Re: [Freedreno] [PATCH RESEND] drm/msm/adreno: Do not print error on "qcom, gpu-pwrlevels" absence

2019-11-12 Thread Jordan Crouse
On Tue, Nov 12, 2019 at 01:40:22PM -0300, Fabio Estevam wrote: > Hi Jordan, > > On Fri, Nov 1, 2019 at 11:52 AM Jordan Crouse wrote: > > > I'm good with this. This really should only be around for > > compatibility with downstream device tree files which should mean nothing > > for > > I.MX5. >

Re: [PATCH 14/16] drm/msm: avoid using 'timespec'

2019-11-12 Thread Jordan Crouse
On Fri, Nov 08, 2019 at 10:32:52PM +0100, Arnd Bergmann wrote: > The timespec structure and associated interfaces are deprecated and will > be removed in the future because of the y2038 overflow. > > The use of ktime_to_timespec() in timeout_to_jiffies() does not > suffer from that overflow, but i

[Bug 112235] [AMD tahiti xt] random crashes of GL/vulkan games

2019-11-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=112235 --- Comment #5 from Sylvain BERTRAND --- ok, seems I got it: was weird I got no debug infos with a constant crash location in a debug build... because the crash was... in c++ cr*p, namely llvm, which had no debug infos since I did a release buil

[Bug 112254] DRM>> video not playing

2019-11-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=112254 Bug ID: 112254 Summary: DRM>> video not playing Product: DRI Version: XOrg git Hardware: PowerPC OS: All Status: NEW Severity: critical Priorit

[Bug 112254] DRM>> video not playing

2019-11-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=112254 vishu.201...@gmail.com changed: What|Removed |Added Status|NEW |ASSIGNED -- You are receiving

[Bug 112254] DRM>> video not playing

2019-11-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=112254 vishu.201...@gmail.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

  1   2   3   >