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

2019-06-05 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

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

2019-06-05 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 v3 07/15] drm/bridge: tc358767: Simplify AUX data write

2019-06-05 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 v3 13/15] drm/bridge: tc358767: Simplify tc_aux_wait_busy()

2019-06-05 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: Cor

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

2019-06-05 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: Cory Tusar Cc: Chris Healy

[PATCH v3 00/15] tc358767 driver improvements

2019-06-05 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 [v2]: - Patchset rebased on top of v4 of

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

2019-06-05 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

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

2019-06-05 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 v3 01/15] drm/bridge: tc358767: Simplify tc_poll_timeout()

2019-06-05 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.

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

2019-06-05 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 v3 15/15] drm/bridge: tc358767: Replace magic number in tc_main_link_enable()

2019-06-05 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: Cory Tusar Cc: Chris Hea

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

2019-06-05 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

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

2019-06-05 Thread Andrey Smirnov
Simplify tc_set_video_mode() by replacing explicit shifting using macros from . 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: Cory Tusar Cc: Chris Healy Cc:

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

2019-06-05 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: Cory

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

2019-06-05 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

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

2019-06-05 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] gpu: host1x: Do not output error message for deferred probe

2019-06-05 Thread Dmitry Osipenko
04.06.2019 18:31, Thierry Reding пишет: > From: Thierry Reding > > When deferring probe, avoid logging a confusing error message. While at > it, make the error message more informational. > > Signed-off-by: Thierry Reding > --- > drivers/gpu/host1x/dev.c | 5 - > 1 file changed, 4 insertio

Re: [PATCH v6 11/22] clk: sunxi-ng: a64: Add minimum rate for PLL_MIPI

2019-06-05 Thread Jagan Teki
On Wed, Jun 5, 2019 at 12:19 PM Maxime Ripard wrote: > > Hi, > > I've reordered the mail a bit to work on chunks > > On Fri, May 24, 2019 at 03:37:42PM +0530, Jagan Teki wrote: > > > I wish it was in your commit log in the first place, instead of having > > > to exchange multiple mails over this.

Re: [PATCH] gpu: host1x: Do not output error message for deferred probe

2019-06-05 Thread Dmitry Osipenko
04.06.2019 18:31, Thierry Reding пишет: > From: Thierry Reding > > When deferring probe, avoid logging a confusing error message. While at > it, make the error message more informational. > > Signed-off-by: Thierry Reding > --- > drivers/gpu/host1x/dev.c | 5 - > 1 file changed, 4 insertio

Re: [linux-sunxi] Re: [PATCH v10 04/11] drm/sun4i: tcon: Compute DCLK dividers based on format, lanes

2019-06-05 Thread Jagan Teki
On Tue, Jun 4, 2019 at 8:00 PM Maxime Ripard wrote: > > On Fri, May 24, 2019 at 03:37:36PM +0530, Jagan Teki wrote: > > On Fri, May 24, 2019 at 2:18 AM Maxime Ripard > > wrote: > > > > > > On Mon, May 20, 2019 at 02:33:11PM +0530, Jagan Teki wrote: > > > > pll-video => pll-mipi => tcon0 => tcon0

Re: [PATCH 1/8] drm/ast: Unpin cursor BO during cleanup

2019-06-05 Thread Maarten Lankhorst
Op 04-06-2019 om 17:41 schreef Thomas Zimmermann: > The unpin operation was missing from ast_cursor_fini(). Fixed now. > > Signed-off-by: Thomas Zimmermann > --- > drivers/gpu/drm/ast/ast_mode.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/

Re: [PATCH v10 01/11] drm/sun4i: dsi: Fix TCON DRQ set bits

2019-06-05 Thread Jagan Teki
On Tue, Jun 4, 2019 at 3:30 PM Maxime Ripard wrote: > > On Wed, May 29, 2019 at 11:44:56PM +0530, Jagan Teki wrote: > > On Wed, May 29, 2019 at 8:24 PM Maxime Ripard > > wrote: > > > > > > On Fri, May 24, 2019 at 03:48:51PM +0530, Jagan Teki wrote: > > > > On Fri, May 24, 2019 at 2:04 AM Maxime

Re: [PATCH 1/8] drm/ast: Unpin cursor BO during cleanup

2019-06-05 Thread Thomas Zimmermann
Hi Am 05.06.19 um 09:45 schrieb Maarten Lankhorst: > Op 04-06-2019 om 17:41 schreef Thomas Zimmermann: >> The unpin operation was missing from ast_cursor_fini(). Fixed now. >> >> Signed-off-by: Thomas Zimmermann >> --- >> drivers/gpu/drm/ast/ast_mode.c | 1 + >> 1 file changed, 1 insertion(+) >>

[PATCH] DRM: Rockchip: correct rate in the struct drm_dp_link assignment

2019-06-05 Thread sandor . yu
From: Sandor Yu variable of rate in the struct drm_dp_link should assign to 162000/27/54/81. Signed-off-by: Sandor Yu --- drivers/gpu/drm/rockchip/cdn-dp-reg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/cdn-dp-reg.c b/drivers/g

Re: [EXT] Re: [PATCH 0/2] drm: imx: Add NWL MIPI DSI host controller support

2019-06-05 Thread Guido Günther
Hi, On Tue, May 28, 2019 at 10:10:11AM +, Laurentiu Palcu wrote: > Hi Guido, > > On Tue, May 28, 2019 at 11:33:00AM +0200, Guido Günther wrote: > > Caution: EXT Email > > > > Hi Laurentiu, > > On Tue, May 28, 2019 at 07:03:54AM +, Laurentiu Palcu wrote: > > > Hi Shawn, Lucas, > > > > > >

Re: [PATCH] drm/todo: Add bootsplash entry

2019-06-05 Thread Sam Ravnborg
Hi Noralf. On Thu, May 23, 2019 at 04:26:49PM +0200, Noralf Trønnes wrote: > Ease entry for anyone wanting to pick up the bootsplash work by providing > a couple of pointers. > > Signed-off-by: Noralf Trønnes Can we get a contact person on this entry? If you do not volunteer then feel free to a

Re: [PATCH 1/1] drm/panel: truly: Add additional delay after pulling down reset gpio

2019-06-05 Thread Sam Ravnborg
Hi Vivek, On Mon, May 27, 2019 at 03:56:16PM +0530, Vivek Gautam wrote: > MTP SDM845 panel seems to need additional delay to bring panel > to a workable state. Running modetest without this change displays > blurry artifacts. > > Signed-off-by: Vivek Gautam added to drm-misc-next Sam

Re: [PATCH] gpu: host1x: Do not output error message for deferred probe

2019-06-05 Thread Thierry Reding
On Tue, Jun 04, 2019 at 07:07:42PM +0300, Dmitry Osipenko wrote: > 04.06.2019 18:31, Thierry Reding пишет: > > From: Thierry Reding > > > > When deferring probe, avoid logging a confusing error message. While at > > it, make the error message more informational. > > > > Signed-off-by: Thierry Re

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

2019-06-05 Thread Sam Ravnborg
Hi Nikolaus. Thanks for the new panel patches. On Wed, Jun 05, 2019 at 07:07:01AM +0200, H. Nikolaus Schaller wrote: > V2: > * fix typo in 99dtc panel compatible string (reported by imir...@alum.mit.edu) > > V1: > > Since v5.2-rc1 OMAP is no longer using a special display driver architecture > f

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

2019-06-05 Thread H. Nikolaus Schaller
Hi Sam, > Am 05.06.2019 um 10:29 schrieb Sam Ravnborg : > > Hi Nikolaus. > > Thanks for the new panel patches. > On Wed, Jun 05, 2019 at 07:07:01AM +0200, H. Nikolaus Schaller wrote: >> V2: >> * fix typo in 99dtc panel compatible string (reported by >> imir...@alum.mit.edu) >> >> V1: >> >> Si

Re: [RESEND][PATCH v3 0/6] add LCD support for SAM9X60

2019-06-05 Thread Claudiu.Beznea
On 05.06.2019 00:54, Sam Ravnborg wrote: > Hi Claudiu. > > On Tue, Jun 04, 2019 at 04:18:33PM +, claudiu.bez...@microchip.com wrote: >> Hi Sam, >> >> On 07.05.2019 21:27, Sam Ravnborg wrote: >>> External E-Mail >>> >>> >>> Hi Thierry. >>> pwm: atmel-hlcdc: add compatible for SAM9X60 H

Re: [PATCH] udmabuf: actually unmap the scatterlist

2019-06-05 Thread Gerd Hoffmann
On Tue, Jun 04, 2019 at 10:23:31PM +0200, Lucas Stach wrote: > unmap_udmabuf fails to actually unmap the scatterlist, leaving dangling > mappings around. > > Fixes: fbb0de795078 (Add udmabuf misc device) > Signed-off-by: Lucas Stach Pushed to drm-misc-fixes. thanks, Gerd

Re: [RESEND][PATCH v3 0/6] add LCD support for SAM9X60

2019-06-05 Thread Claudiu.Beznea
On 05.06.2019 09:49, Lee Jones wrote: > External E-Mail > > > On Thu, 25 Apr 2019, claudiu.bez...@microchip.com wrote: > >> From: Claudiu Beznea >> >> Hi, >> >> These patches adds support for SAM9X60's LCD controller. >> >> First patches add option to specify if controller clock source is fix

[PATCH] gpu: host1x: Increase maximum DMA segment size

2019-06-05 Thread Thierry Reding
From: Thierry Reding Recent versions of the DMA API debug code have started to warn about violations of the maximum DMA segment size. This is because the segment size defaults to 64 KiB, which can easily be exceeded in large buffer allocations such as used in DRM/KMS for framebuffers. Technicall

[PATCH] drm/tegra: Use GPIO descriptor API

2019-06-05 Thread Thierry Reding
From: Thierry Reding The legacy GPIO API has long been deprecated. Move the driver over to the descriptor-based API, which allows us to get rid of some boilerplate while at it. Signed-off-by: Thierry Reding --- drivers/gpu/drm/tegra/drm.h| 3 +- drivers/gpu/drm/tegra/output.c | 52 +++

[PATCH] gpu: host1x: Do not link logical devices to DT nodes

2019-06-05 Thread Thierry Reding
From: Thierry Reding Logical devices created by the host1x bus infrastructure don't need to be associated with a device tree node. Doing so will cause the driver core to attempt to hook up IOMMU operations and fail because it is not a real device. However, for backwards-compatibility, we need to

[PATCH] drm/tegra: dpaux: Make VDD supply optional

2019-06-05 Thread Thierry Reding
From: Thierry Reding The VDD supply is only needed to supply power to eDP panels connected to DPAUX. Technically that supply should be dealt with in the panel driver, but for backwards-compatibility we need to keep this around anyway. Also as a bit of background: the reason for why this supply i

Re: [PATCH] drm/virtio: use u64_to_user_ptr macro

2019-06-05 Thread Gerd Hoffmann
On Tue, Jun 04, 2019 at 04:44:28PM -0700, Gurchetan Singh wrote: > Other DRM drivers use it too. Pushed to drm-misc-next. thanks, Gerd ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH] drm: Ignore drm_gem_vram_mm_funcs in generated documentation

2019-06-05 Thread Gerd Hoffmann
On Tue, Jun 04, 2019 at 01:13:30PM +0200, Thomas Zimmermann wrote: > The documentation tools interpret drm_gem_vram_mm_funcs as function and > there appears to be no way of inline-documenting constants. > -/** > +/* > * drm_gem_vram_mm_funcs - Functions for &struct drm_vram_mm "struct drm_gem_v

[PULL] drm-misc-next

2019-06-05 Thread Maarten Lankhorst
drm-misc-next-2019-06-05: drm-misc-next for v5.3: UAPI Changes: Cross-subsystem Changes: - Add devicetree bindings for new panels. - Convert allwinner's DT bindings to a schema. - Drop video/hdmi static functions from kernel docs. - Discard old fence when reserving space in reservation_object_get

Re: [PATCH v1 1/2] drm/komeda: Add rotation support on Komeda driver

2019-06-05 Thread Liviu Dudau
Hi Lowry, On Mon, Apr 22, 2019 at 04:16:26AM +0100, Lowry Li (Arm Technology China) wrote: > - Adds rotation property to plane. > - Komeda display rotation support diverges from the specific formats, > so need to check the user required rotation type with the format caps > and reject the commit if

Re: [PATCH v2 08/22] gpu: i915.rst: Fix references to renamed files

2019-06-05 Thread Jani Nikula
On Tue, 04 Jun 2019, Mauro Carvalho Chehab wrote: > WARNING: kernel-doc './scripts/kernel-doc -rst -enable-lineno -function > Hardware workarounds ./drivers/gpu/drm/i915/intel_workarounds.c' failed with > return code 1 > WARNING: kernel-doc './scripts/kernel-doc -rst -enable-lineno -function >

Re: [PATCH v1 1/2] drm/komeda: Add rotation support on Komeda driver

2019-06-05 Thread Lowry Li (Arm Technology China)
On Wed, Jun 05, 2019 at 05:22:22PM +0800, Liviu Dudau wrote: > Hi Lowry, > > On Mon, Apr 22, 2019 at 04:16:26AM +0100, Lowry Li (Arm Technology China) > wrote: > > - Adds rotation property to plane. > > - Komeda display rotation support diverges from the specific formats, > > so need to check the

Re: [PATCH 4/8] drm/ast: Pin framebuffer BO during dirty update

2019-06-05 Thread Gerd Hoffmann
> + /* We pin the BO to system memory so it won't be moved during > + * the update and doesn't waste video ram. If the BO is already > + * located in VRAM, the pin operation will simply increment the > + * pin count. >*/ s/located/pinned/ I guess? Maybe we should update

[Bug 110822] booting with kernel version 5.1.0 or higher on RX 580 hangs

2019-06-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110822 --- Comment #11 from Gobinda Joy --- Bisect ad51c46eec739c18be24178a30b47801b10e0357 is the first bad commit commit ad51c46eec739c18be24178a30b47801b10e0357 Author: Chengming Gui Date: Thu Mar 21 13:26:28 2019 +0800 drm/amd/amdgpu: fix P

[Bug 110781] Radeon: heavy r300 performance drop regression between 11.x and 19.x

2019-06-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110781 --- Comment #35 from Rui Salvaterra --- (In reply to Marek Olšák from comment #34) > Created attachment 144454 [details] [review] > possible fix v2 > > Please test this one. Hi, Marek, Unfortunately I couldn't do it yesterday, but I'll try to

Re: [PATCH 6/8] drm/mgag200: Rewrite cursor handling

2019-06-05 Thread Gerd Hoffmann
On Tue, Jun 04, 2019 at 05:41:59PM +0200, Thomas Zimmermann wrote: > The cursor handling in mgag200 is complicated to understand. It touches a > number of different BOs, but doesn't really use all of them. > > Rewriting the cursor update reduces the amount of cursor state. There are > two BOs for

Re: [PATCH] drm: Ignore drm_gem_vram_mm_funcs in generated documentation

2019-06-05 Thread Thomas Zimmermann
Hi Am 05.06.19 um 11:03 schrieb Gerd Hoffmann: > On Tue, Jun 04, 2019 at 01:13:30PM +0200, Thomas Zimmermann wrote: >> The documentation tools interpret drm_gem_vram_mm_funcs as function and >> there appears to be no way of inline-documenting constants. > >> -/** >> +/* >> * drm_gem_vram_mm_fun

Re: [PATCH] drm/panfrost: make devfreq optional again

2019-06-05 Thread Neil Armstrong
On 03/06/2019 21:54, Ezequiel Garcia wrote: > On Fri, 2019-05-31 at 14:37 +0200, Neil Armstrong wrote: >> Devfreq runtime usage was made mandatory, thus making panfrost fail to probe >> on Amlogic S912 SoCs missin the "operating-points-v2" property. >> Make it optional again, leaving PM_DEVFREQ is

[Bug 110786] Adaptive sync (vrr, freesync): Cinnamon DE isn't blacklisted properly

2019-06-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110786 --- Comment #1 from Michel Dänzer --- Please send a patch to the mesa-dev mailing list or create a GitLab merge request. -- You are receiving this mail because: You are the assignee for the bug.___ d

Re: [PATCH v2 7/7] arm64: dts: allwinner: a64: enable ANX6345 bridge on Teres-I

2019-06-05 Thread Torsten Duwe
On Tue, Jun 04, 2019 at 08:08:40AM -0700, Vasily Khoruzhick wrote: > On Tue, Jun 4, 2019 at 5:23 AM Torsten Duwe wrote: > > > > Teres-I has an anx6345 bridge connected to the RGB666 LCD output, and > > the I2C controlling signals are connected to I2C0 bus. eDP output goes > > to an Innolux N116BGE

[Bug 110730] [CI][RESUME] igt@kms_chamelium@hdmi-crc-single - crash - Received signal SIGSEGV.

2019-06-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110730 --- Comment #5 from Maarten Lankhorst --- Hmm seems like an error in the chamelium wrappers. Specifically the call to pthread_cancel seems to be crashing. Need to figure out why, but shouldn't affect real users as this happens in the chamelium c

[PATCH 0/3] drm/komeda: Unify mclk/pclk/pipeline->aclk to one ACLK

2019-06-05 Thread james qian wang (Arm Technology China)
Current komeda driver uses three dedicated clks for a specific purpose: - mclk: main engine clock - pclk: APB clock - pipeline->aclk: AXI clock. But per spec the komeda HW only has three input clks: - ACLK: used for AXI masters, APB slave and most pipeline processing - PXCLK for pipeline 0: output

[PATCH 2/3] drm/komeda: Rename main engine clk name "mclk" to "aclk"

2019-06-05 Thread james qian wang (Arm Technology China)
To avoid confusion, unify the driver main engine clk name "mclk" to the spec name "aclk". Signed-off-by: James Qian Wang (Arm Technology China) --- .../arm/display/komeda/d71/d71_component.c| 10 +++--- .../gpu/drm/arm/display/komeda/komeda_crtc.c | 34 +-- .../gpu/drm/arm/d

[PATCH 1/3] drm/komeda: Unify mclk/pclk/pipeline->aclk to one MCLK

2019-06-05 Thread james qian wang (Arm Technology China)
Current komeda driver uses three dedicated clks for a specific purpose: - mclk: main engine clock - pclk: APB clock - pipeline->aclk: AXI clock. But per spec the komeda HW only has three input clks: - ACLK: used for AXI masters, APB slave and most pipeline processing - PXCLK for pipeline 0: output

[PATCH 3/3] dt/bindings: drm/komeda: Unify mclk/pclk/pipeline->aclk to one ACLK

2019-06-05 Thread james qian wang (Arm Technology China)
Current komeda driver uses three dedicated clks for a specific purpose: - mclk: main engine clock - pclk: APB clock - pipeline->aclk: AXI clock. But per spec the komeda HW only has three input clks: - ACLK: used for AXI masters, APB slave and most pipeline processing - PXCLK for pipeline 0: output

[Bug 110730] [CI][RESUME] igt@kms_chamelium@hdmi-crc-single - crash - Received signal SIGSEGV.

2019-06-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110730 --- Comment #6 from emersion --- Agreed that this is an IGT bug, not a driver bug. Just sent an IGT patch that attempts to fix the issue. User impact: the user might experience corrupted frames via HDMI. In other words: we don't check anymore

Re: [PATCH] drm/ioctl: Ditch DRM_UNLOCKED except for the legacy vblank ioctl

2019-06-05 Thread Michel Dänzer
On 2019-05-29 11:30 a.m., Daniel Vetter wrote: > This completes Emil's series of removing DRM_UNLOCKED from modern > drivers. It's entirely cargo-culted since we ignore it on > non-DRIVER_LEGACY drivers since: > > commit ea487835e8876abf7ad909636e308c801a2bcda6 > Author: Daniel Vetter > Date: M

Re: [PATCH v1 1/2] drm/komeda: Adds SMMU support

2019-06-05 Thread Liviu Dudau
Hi Lowry, On Tue, Apr 30, 2019 at 07:19:29AM +0100, Lowry Li (Arm Technology China) wrote: > Adds iommu_connect and disconnect for SMMU support, and configures > TBU translation once SMMU has been attached to the display device. > > Signed-off-by: Lowry Li (Arm Technology China) > --- > .../gpu

Re: [PATCH] drm/ioctl: Ditch DRM_UNLOCKED except for the legacy vblank ioctl

2019-06-05 Thread Daniel Vetter
On Wed, Jun 5, 2019 at 12:50 PM Michel Dänzer wrote: > > On 2019-05-29 11:30 a.m., Daniel Vetter wrote: > > This completes Emil's series of removing DRM_UNLOCKED from modern > > drivers. It's entirely cargo-culted since we ignore it on > > non-DRIVER_LEGACY drivers since: > > > > commit ea487835e8

Re: [PATCH v1 2/2] dt/bindings: drm/komeda: Adds SMMU support for D71 devicetree

2019-06-05 Thread Liviu Dudau
On Tue, Apr 30, 2019 at 07:19:34AM +0100, Lowry Li (Arm Technology China) wrote: > Updates the device-tree doc about how to enable SMMU by devicetree. > > Signed-off-by: Lowry Li (Arm Technology China) Reviewed-by: Liviu Dudau Best regards, Liviu > --- > Documentation/devicetree/bindings/dis

Re: [PATCH] drm/ttm: fix ttm_bo_unreserve

2019-06-05 Thread Christian König
Am 04.06.19 um 21:03 schrieb Zeng, Oak: Regards, Oak -Original Message- From: amd-gfx On Behalf Of Kuehling, Felix Sent: Tuesday, June 4, 2019 2:47 PM To: Christian König ; dri-devel@lists.freedesktop.org; amd-...@lists.freedesktop.org Subject: Re: [PATCH] drm/ttm: fix ttm_bo_unreser

[PATCH] arm/komeda: Convert dp_wait_cond() to return an error code.

2019-06-05 Thread Liviu Dudau
dp_wait_cond() currently returns the number of retries left over which is hardly an useful information. Convert to returning -ETIMEDOUT when the wait times out, or 0 (zero) when condition is met before deadline. Also convert the users of the function to return the error value. Signed-off-by: Livi

[PATCH v3, 20/27] drm/mediatek: add background color input select function for ovl/ovl_2l

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add background color input select function for ovl/ovl_2l ovl include 4 DRAM layer and 1 background color layer ovl_2l include 4 DRAM layer and 1 background color layer DRAM layer frame buffer data from render hardware, GPU for example. backgournd color layer is em

[PATCH v3, 13/27] drm/mediatek: add ddp component CCORR

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add ddp component CCORR Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 32 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 2 ++ 2 files changed, 34 insertions(+) diff --git a/drivers/gpu/drm/mediatek/

[PATCH v3, 27/27] drm/mediatek: add support for mediatek SOC MT8183

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add support for mediatek SOC MT8183 1.ovl_2l share driver with ovl 2.rdma1 share drive with rdma0, but fifo size is different 3.add mt8183 mutex private data, and mmsys private data 4.add mt8183 main and external path module for crtc create Signed-off-by: Yongqiang

[PATCH v3, 24/27] drm/mediatek: add connection from RDMA0 to COLOR0

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from RDMA0 to COLOR0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index f980826..adaf

[PATCH v3, 19/27] drm/mediatek: add function to background color input select for ovl/ovl_2l direct link

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add function to background color input select for ovl/ovl_2l direct link for ovl/ovl_2l direct link usecase, we need set background color input select for these hardware. this is preparation patch for ovl/ovl_2l usecase Signed-off-by: Yongqiang Niu --- drivers/g

[PATCH v3, 07/27] drm/mediatek: add mutex mod register offset into ddp private data

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu mutex mod register offset will be private data of ddp. Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/media

[PATCH v3, 14/27] drm/mediatek: add commponent OVL_2L0

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add commponent OVL_2L0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 2 ++ drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers/g

[PATCH v3, 23/27] drm/mediatek: add connection from ovl0 to ovl_2l0

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from ovl0 to ovl_2l0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index 872c744..f980

[PATCH v3, 16/27] drm/mediatek: add component DITHER

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add component DITHER Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 32 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 2 ++ 2 files changed, 34 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk

[PATCH v3, 08/27] drm/mediatek: add mutex sof into ddp private data

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu mutex sof will be ddp private data Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 44 +++--- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/media

[PATCH v3, 09/27] drm/mediatek: add mutex sof register offset into ddp private data

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu mutex sof register offset will be private data of ddp Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediate

[PATCH v3, 05/27] arm64: dts: add display nodes for mt8183

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add display nodes for mt8183 Signed-off-by: Yongqiang Niu --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 114 +++ 1 file changed, 114 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/

[PATCH v3, 17/27] drm/mediatek: add gmc_bits for ovl private data

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add gmc_bits for ovl private data GMC register was set RDMA ultra and pre-ultra threshold. 10bit GMC register define is different with other SOC, gmc_thrshd_l not used. Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 23

[PATCH v3, 22/27] drm/mediatek: distinguish ovl and ovl_2l by layer_nr

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu distinguish ovl and ovl_2l by layer_nr when get comp id Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c b/drivers/gpu/drm/mediatek/

[PATCH v3, 12/27] drm/mediatek: move rdma sout from mtk_ddp_mout_en into mtk_ddp_sout_sel

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch move rdma sout from mtk_ddp_mout_en into mtk_ddp_sout_sel rdma only has single output, but no multi output, all these rdma->dsi/dpi usecase should move to mtk_ddp_sout_sel Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 90 ++

[PATCH v3, 15/27] drm/mediatek: add component OVL_2L1

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add component OVL_2L1 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 1 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers/gpu/

[PATCH v3, 21/27] drm/mediatek: add ovl0/ovl_2l0 usecase

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add ovl0/ovl_2l0 usecase in ovl->ovl_2l0 direct link usecase: 1. the crtc support layer number will 4+2 2. ovl_2l0 background color input select ovl0 when crtc init and disable it when crtc finish 3. config ovl_2l0 layer, if crtc config layer number is bigger than o

[Bug 110822] booting with kernel version 5.1.0 or higher on RX 580 hangs

2019-06-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110822 --- Comment #12 from Gobinda Joy --- Actually after reverting the commit ad51c46eec739c18be24178a30b47801b10e0357 drm/amd/amdgpu: fix PCIe dpm feature issue (v3) use pcie_bandwidth_available to get real link state to update pcie ta

Re: [PATCH v2 7/7] arm64: dts: allwinner: a64: enable ANX6345 bridge on Teres-I

2019-06-05 Thread Maxime Ripard
On Wed, Jun 05, 2019 at 12:13:17PM +0200, Torsten Duwe wrote: > On Tue, Jun 04, 2019 at 08:08:40AM -0700, Vasily Khoruzhick wrote: > > On Tue, Jun 4, 2019 at 5:23 AM Torsten Duwe wrote: > > > > > > Teres-I has an anx6345 bridge connected to the RGB666 LCD output, and > > > the I2C controlling sign

[PATCH] drm/ioctl: Ditch DRM_UNLOCKED except for the legacy vblank ioctl

2019-06-05 Thread Daniel Vetter
This completes Emil's series of removing DRM_UNLOCKED from modern drivers. It's entirely cargo-culted since we ignore it on non-DRIVER_LEGACY drivers since: commit ea487835e8876abf7ad909636e308c801a2bcda6 Author: Daniel Vetter Date: Mon Sep 28 21:42:40 2015 +0200 drm: Enforce unlocked ioct

Re: [PATCH V2] drm/vkms: Avoid extra discount in the timestamp value

2019-06-05 Thread Daniel Vetter
On Tue, Jun 04, 2019 at 11:45:43PM -0300, Rodrigo Siqueira wrote: > After the commit def35e7c5926 ("drm/vkms: Bugfix extra vblank frame") > some of the crc tests started to fail in the vkms with the following > error: > > [drm:drm_crtc_add_crc_entry [drm]] *ERROR* Overflow of CRC buffer, > us

Re: [PATCH] gpu: host1x: Do not output error message for deferred probe

2019-06-05 Thread Thierry Reding
On Wed, Jun 05, 2019 at 02:25:43PM +0300, Dmitry Osipenko wrote: > 05.06.2019 11:28, Thierry Reding пишет: > > On Tue, Jun 04, 2019 at 07:07:42PM +0300, Dmitry Osipenko wrote: > >> 04.06.2019 18:31, Thierry Reding пишет: > >>> From: Thierry Reding > >>> > >>> When deferring probe, avoid logging a

[Bug 105684] Loading amdgpu hits general protection fault: 0000 [#1] SMP NOPTI

2019-06-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105684 --- Comment #47 from Jörn Frenzel --- Hi, the problem seems to be gone in newer kernel version. I just tested a SUSE tumbleweed with kernel 5.1.5-1 . This is a satisfactory answer for me. Regards, Jörn -- You are receiving this mail becaus

[Bug 203817] New: Raven Ridge VEGA8 stuck on 400Mhz on battery

2019-06-05 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=203817 Bug ID: 203817 Summary: Raven Ridge VEGA8 stuck on 400Mhz on battery Product: Drivers Version: 2.5 Kernel Version: 5.2rc3 Hardware: All OS: Linux Tree: Mainli

Re: [PATCH] gpu: host1x: Do not output error message for deferred probe

2019-06-05 Thread Daniel Vetter
On Tue, Jun 04, 2019 at 05:31:50PM +0200, Thierry Reding wrote: > From: Thierry Reding > > When deferring probe, avoid logging a confusing error message. While at > it, make the error message more informational. > > Signed-off-by: Thierry Reding > --- > drivers/gpu/host1x/dev.c | 5 - > 1

[PATCH] drm/meson: fix G12A HDMI PLL settings for 4K60 1000/1001 variations

2019-06-05 Thread Neil Armstrong
The Amlogic G12A HDMI PLL needs some specific settings to lock with different fractional values for the 5,4GHz mode. Handle the 1000/1001 variation fractional case here to avoid having the PLL in an non lockable state. Fixes: 202b9808f8ed ("drm/meson: Add G12A Video Clock setup") Signed-off-by: N

Re: [PATCH 3/4] drm/meson: Enable DRM InfoFrame support on GXL, GXM and G12A

2019-06-05 Thread Neil Armstrong
On 26/05/2019 23:20, Jonas Karlman wrote: > This patch enables Dynamic Range and Mastering InfoFrame on GXL, GXM and G12A. > > Cc: Neil Armstrong > Signed-off-by: Jonas Karlman > --- > drivers/gpu/drm/meson/meson_dw_hdmi.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/drivers/g

Re: [PATCH 1/4] drm/bridge: dw-hdmi: Add Dynamic Range and Mastering InfoFrame support

2019-06-05 Thread Neil Armstrong
On 26/05/2019 23:19, Jonas Karlman wrote: > Add support for configuring Dynamic Range and Mastering InfoFrame from > the hdr_output_metadata connector property. > > This patch adds a drm_infoframe flag to dw_hdmi_plat_data that platform > drivers > use to signal when Dynamic Range and Mastering i

Re: [Freedreno] [PATCH] of/device: add blacklist for iommu dma_ops

2019-06-05 Thread Rob Clark
On Tue, Jun 4, 2019 at 11:58 PM Tomasz Figa wrote: > > But first of all, I remember Marek already submitted some patches long > ago that extended struct driver with some flag that means that the > driver doesn't want the IOMMU to be attached before probe. Why > wouldn't that work? Sounds like a pe

Re: [PATCH 1/5] drm/bridge: dw-hdmi: allow ycbcr420 modes for >= 0x200a

2019-06-05 Thread Neil Armstrong
On 22/05/2019 08:07, Andrzej Hajda wrote: > On 20.05.2019 15:37, Neil Armstrong wrote: >> Now the DW-HDMI Controller supports the HDMI2.0 modes, enable support >> for these modes in the connector if the platform supports them. >> We limit these modes to DW-HDMI IP version >= 0x200a which >> are des

Re: [PATCH] gpu: host1x: Do not output error message for deferred probe

2019-06-05 Thread Thierry Reding
On Wed, Jun 05, 2019 at 03:40:28PM +0300, Dmitry Osipenko wrote: > 05.06.2019 15:32, Thierry Reding пишет: > > On Wed, Jun 05, 2019 at 02:25:43PM +0300, Dmitry Osipenko wrote: > >> 05.06.2019 11:28, Thierry Reding пишет: > >>> On Tue, Jun 04, 2019 at 07:07:42PM +0300, Dmitry Osipenko wrote: >

Re: [Freedreno] [PATCH] of/device: add blacklist for iommu dma_ops

2019-06-05 Thread Marek Szyprowski
Hi Rob, On 2019-06-05 14:57, Rob Clark wrote: > On Tue, Jun 4, 2019 at 11:58 PM Tomasz Figa wrote: >> But first of all, I remember Marek already submitted some patches long >> ago that extended struct driver with some flag that means that the >> driver doesn't want the IOMMU to be attached before

[PATCH v1 1/1] drm/sti: drop use of drmP.h

2019-06-05 Thread Sam Ravnborg
Stop using the deprecated drmP.h header file. Replaced with relevant forwards or headers files. Header files sorted in all files touched. Build tested with allyesconfig, allmodconfig for a number of architectures. Signed-off-by: Sam Ravnborg Cc: Benjamin Gaignard Cc: Vincent Abriou Cc: David A

[PATCH v1 0/1] sti: drop drmP.h

2019-06-05 Thread Sam Ravnborg
Drop use of drmP.h in the sti driver. Sam Sam Ravnborg (1): drm/sti: drop use of drmP.h drivers/gpu/drm/sti/sti_awg_utils.c| 2 ++ drivers/gpu/drm/sti/sti_awg_utils.h| 2 +- drivers/gpu/drm/sti/sti_compositor.c | 5 - drivers/gpu/drm/sti/sti_crtc.c

[PATCH v1 1/1] drm/sis: drop drmP.h use

2019-06-05 Thread Sam Ravnborg
Drop use of the deprecated drmP.h header. Repalced with relevant header files and sorted header files in all files touched. Replaced DRM_{READ,WRITE} to avoid the drm_os_linux header. Build tested with allyesconfig, allmodconfig on various architectures. Signed-off-by: Sam Ravnborg Cc: David Ai

[PATCH v1 0/1] drm/sis: drop use of drmP.h

2019-06-05 Thread Sam Ravnborg
Drop use of the deprecated drmP.h file Sam Ravnborg (1): drm/sis: drop drmP.h use drivers/gpu/drm/sis/sis_drv.c | 8 +--- drivers/gpu/drm/sis/sis_drv.h | 10 -- drivers/gpu/drm/sis/sis_mm.c | 7 +-- 3 files changed, 14 insertions(+), 11 deletions(-) ___

Re: [PATCH] drm/ttm: fix ttm_bo_unreserve

2019-06-05 Thread Michel Dänzer
On 2019-06-05 1:24 p.m., Christian König wrote: > Am 04.06.19 um 21:03 schrieb Zeng, Oak: >> From: amd-gfx On Behalf Of >> Kuehling, Felix >> On 2019-06-04 11:23, Christian König wrote: >> >>> Since we now keep BOs on the LRU we need to make sure that they are >>> removed when they are pinned. >>>

  1   2   >