Re: [PATCH v4 02/12] clk: sunxi-ng: Use u64 for calculation of nkmp rate

2018-02-08 Thread Maxime Ripard
On Wed, Feb 07, 2018 at 10:17:03PM +0100, Jernej Skrabec wrote: > When parent rate is 24MHz and multiplier N >= 180, intermediate clock > rate doesn't fit in 32 bit variable anymore. > > Because of that, introduce function for calculating clock rate which > uses 64 bit variable for intermediate re

Re: [PATCH 2/3] drm/amdgpu: only enable swiotlb alloc when need

2018-02-08 Thread Christian König
Am 08.02.2018 um 07:00 schrieb Chunming Zhou: get the max io mapping address of system memory to see if it is over our card accessing range. Change-Id: Ibc38dbd34a20af5b4a4b1ed154c14e1c58aa4c55 Signed-off-by: Chunming Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/am

[PATCH 1/3] drm: add func to get max iomem address

2018-02-08 Thread Chunming Zhou
it will be used to check if the driver needs swiotlb Change-Id: Idbe47af8f12032d4803bb3d47273e807f19169c3 Signed-off-by: Chunming Zhou Reviewed-by: Monk Liu --- include/drm/drm_cache.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/drm/drm_cache.h b/include/drm/drm_c

[PATCH 2/3] drm/amdgpu: only enable swiotlb alloc when need v2

2018-02-08 Thread Chunming Zhou
get the max io mapping address of system memory to see if it is over our card accessing range. v2: move checking later Change-Id: Ibc38dbd34a20af5b4a4b1ed154c14e1c58aa4c55 Signed-off-by: Chunming Zhou Reviewed-by: Monk Liu --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/a

[PATCH 3/3] drm/radeon: only enable swiotlb path when need v2

2018-02-08 Thread Chunming Zhou
swiotlb expands our card accessing range, but its path always is slower than ttm pool allocation. So add condition to use it. v2: move a bit later Change-Id: I1802645833155a9cd808913f863981173a82145f Signed-off-by: Chunming Zhou Reviewed-by: Monk Liu --- drivers/gpu/drm/radeon/radeon.h|

Re: [PATCH v2] drm/bridge/synopsys: dsi: Add 1.31 version support

2018-02-08 Thread Philippe CORNU
Many thanks Philippe :-) On 02/08/2018 08:39 AM, Andrzej Hajda wrote: > On 06.02.2018 09:42, Philippe Cornu wrote: >> Add support for the Synopsys DesignWare MIPI DSI version 1.31 >> Two registers need to be updated/added for supporting 1.31: >> * PHY_TMR_CFG 0x9c (updated) >>1.30 [31:24] phy_

Re: [PATCH] drm/bridge/synopsys: dsi: Add read feature

2018-02-08 Thread Philippe CORNU
Many thanks Philippe :-) On 02/08/2018 08:39 AM, Andrzej Hajda wrote: > On 04.02.2018 22:31, Philippe Cornu wrote: >> This patch adds the DCS/GENERIC DSI read feature. >> >> Signed-off-by: Philippe Cornu >> --- > Queued to drm-misc-next. > -- > Regards > Andrzej > ___

Re: [PATCH 1/3] drm: add func to get max iomem address

2018-02-08 Thread Christian König
Am 08.02.2018 um 09:32 schrieb Chunming Zhou: it will be used to check if the driver needs swiotlb Change-Id: Idbe47af8f12032d4803bb3d47273e807f19169c3 Signed-off-by: Chunming Zhou Reviewed-by: Monk Liu Reviewed-by: Christian König for the whole series. --- include/drm/drm_cache.h | 1

[Bug 99353] Kaveri 7400K shows random colored noise instead of GUI in X or Wayland

2018-02-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99353 --- Comment #24 from Bong Cosca --- My screen width is 1280px. Is there a reason why the amdgpu driver says the GPU has a front buffer pitch of 6144 bytes in non-accelerated mode while the pitch in accelerated mode is 5120? -- You are receiving

Re: [PATCH v3 3/3] drm/omap: Make omapdss API more generic

2018-02-08 Thread Tomi Valkeinen
On 07/02/18 16:11, Jyri Sarha wrote: > The new omapdss API is HW independent and cleans up some of the DSS5 > specific hacks from the omapdrm side and gets rid off the DSS5 IRQ > register bits and replace them with HW independent generic u64 based > macros. The new macros make it more straight forw

Re: [PATCH v3 0/3] drm/omap: Make omapdss API more generic + related patches

2018-02-08 Thread Tomi Valkeinen
On 07/02/18 16:11, Jyri Sarha wrote: > Since v2: > - Simplify dispc_mgr_has_framedone() > - dispc_hw_to_api_irq() and dispc_api_to_hw_irq() use new dispc_irq_bits[] > - rename dispc_ops read_irqstatus() to read_and_clear_irqstatus() and remove > clearmask > - precalculate priv->irq_uf_mask in om

[PATCH 1/4] drm/ttm: use bit flag to replace allow_reserved_eviction in ttm_operation_ctx

2018-02-08 Thread Roger He
for saving memory and more bit flag can be used in future Signed-off-by: Roger He --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 4 ++-- drivers/gpu/drm/ttm/ttm_bo.c | 3 ++- include/drm/ttm/ttm_bo_api.h | 7 +

[PATCH v7 6/6] drm/msm: iommu: Replace runtime calls with runtime suppliers

2018-02-08 Thread Vivek Gautam
While handling the concerned iommu, there should not be a need to power control the drm devices from iommu interface. If these drm devices need to be powered around this time, the respective drivers should take care of this. Replace the pm_runtime_get/put_sync() with pm_runtime_get/put_suppliers()

[PATCH v5] drm/rockchip: Add device links for master and components

2018-02-08 Thread Enric Balletbo i Serra
From: Jeffy Chen Since we are trying to access components' resources in the master's suspend/resume PM callbacks(e.g. panel), add device links to correct the suspend/resume and shutdown ordering. Signed-off-by: Jeffy Chen Signed-off-by: Enric Balletbo i Serra --- Hi, This is an attempt to rev

Re: [PATCH 1/2] amdgpu/dc/dml: Consolidate redundant CFLAGS

2018-02-08 Thread Guenter Roeck
On Wed, Feb 7, 2018 at 5:21 PM, Matthias Kaehlcke wrote: > Use subdir-ccflags instead of specifying the same flags for every source > file. > > Signed-off-by: Matthias Kaehlcke Reviewed-by: Guenter Roeck > --- > drivers/gpu/drm/amd/display/dc/dml/Makefile | 10 +- > 1 file changed, 1

[PATCH v4 07/12] drm/sun4i: Add has_channel_0 TCON quirk

2018-02-08 Thread Jernej Skrabec
Some TCONs on newer SoCs doesn't support channel 0, since they are meant to be used only with TV or HDMI encoder. Prepare support for them with adding has_channel_0 quirk. Acked-by: Maxime Ripard Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 41

Re: [PATCH] drm/amd/powerplay: Remove extra pair of parentheses

2018-02-08 Thread Guenter Roeck
On Wed, Feb 7, 2018 at 11:10 AM, Matthias Kaehlcke wrote: > The double parentheses are not needed. Removing them fixes the following > warning when building with clang: > > drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c:419:29: > error: equality comparison with extraneous parentheses >

[PATCH v7 4/6] iommu/arm-smmu: Add the device_link between masters and smmu

2018-02-08 Thread Vivek Gautam
From: Sricharan R Finally add the device link between the master device and smmu, so that the smmu gets runtime enabled/disabled only when the master needs it. This is done from add_device callback which gets called once when the master is added to the smmu. Signed-off-by: Sricharan R Signed-of

[PATCH v4 12/12] ARM: dts: sun8i: a83t: Enable HDMI on BananaPi M3

2018-02-08 Thread Jernej Skrabec
BananaPi M3 includes HDMI connector, so add support for it. Signed-off-by: Jernej Skrabec --- arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts b/arch/arm/boot/dts/sun8i-a83t-b

[PATCH v7 5/6] iommu/arm-smmu: Add support for qcom,smmu-v2 variant

2018-02-08 Thread Vivek Gautam
qcom,smmu-v2 is an arm,smmu-v2 implementation with specific clock and power requirements. This smmu core is used with multiple masters on msm8996, viz. mdss, video, etc. Add bindings for the same. Signed-off-by: Vivek Gautam Reviewed-by: Rob Herring --- .../devicetree/bindings/iommu/arm,smmu.tx

Re: [PATCH] spi: kconfig: Remove AVR32 dep. from SPI_ATMEL

2018-02-08 Thread Matthias Brugger
On 02/07/2018 09:58 AM, Matthias Brugger wrote: > > > On 02/06/2018 11:55 PM, Ulf Magnusson wrote: >> The AVR32 symbol was removed in commit 26202873bb51 ("avr32: remove >> support for AVR32 architecture"). >> >> Signed-off-by: Ulf Magnusson >> --- > > Reviewed-by: Matthias Brugger > Sigh,

Re: [PATCH 2/2] amdgpu/dc/dml: Support clang option for stack alignment

2018-02-08 Thread Guenter Roeck
On Wed, Feb 7, 2018 at 5:21 PM, Matthias Kaehlcke wrote: > DML uses the compiler option -mpreferred-stack-boundary=4 to configure > a stack alignment of 16 bytes. Clang uses the option -mstack-alignment > instead, which expects as parameter the alignment in bytes, and not a > power of two like -mp

[PATCH v4 02/12] clk: sunxi-ng: Use u64 for calculation of nkmp rate

2018-02-08 Thread Jernej Skrabec
When parent rate is 24MHz and multiplier N >= 180, intermediate clock rate doesn't fit in 32 bit variable anymore. Because of that, introduce function for calculating clock rate which uses 64 bit variable for intermediate result. Signed-off-by: Jernej Skrabec --- drivers/clk/sunxi-ng/ccu_nkmp.c

[PATCH] gpu: msm: remove unused headers

2018-02-08 Thread Corentin Labbe
All thoses files are not used by anybody. Lets just remove them. Signed-off-by: Corentin Labbe --- drivers/gpu/drm/msm/adreno/a2xx.xml.h | 1845 - drivers/gpu/drm/msm/dsi/mmss_cc.xml.h | 124 --- drivers/gpu/drm/msm/hdmi/qfprom.xml.h | 54 - 3 files changed, 20

[PATCH v4 06/12] dt-bindings: display: sun4i-drm: Add A83T HDMI pipeline

2018-02-08 Thread Jernej Skrabec
This commit adds all necessary compatibles and descriptions needed to implement A83T HDMI pipeline. Mixer is already properly described, so only compatible is added. However, A83T TV TCON, which is connected to HDMI, doesn't have channel 0, contrary to all TCONs currently described. Because of th

Re: [PATCH 3/3] drm/tegra: fb: Implement ->fb_mmap() callback

2018-02-08 Thread Marcel Ziswiler
On Wed, 2018-02-07 at 18:45 +0100, Thierry Reding wrote: > From: Thierry Reding > > This fixes hangs with legacy applications that use the mmap() syscall > on > the fbdev device to map framebuffer memory. The fbdev implementation > for > mmap() creates a mapping that conflicts with DRM usage and

Re: [PATCH] spi: kconfig: Remove AVR32 dep. from SPI_ATMEL

2018-02-08 Thread Matthias Brugger
On 02/06/2018 11:55 PM, Ulf Magnusson wrote: > The AVR32 symbol was removed in commit 26202873bb51 ("avr32: remove > support for AVR32 architecture"). > > Signed-off-by: Ulf Magnusson > --- Reviewed-by: Matthias Brugger > drivers/spi/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 delet

Re: [PATCH v2 2/2] amdgpu/dc/dml: Support clang option for stack alignment

2018-02-08 Thread Guenter Roeck
On Wed, Feb 7, 2018 at 5:51 PM, Matthias Kaehlcke wrote: > DML uses the compiler option -mpreferred-stack-boundary=4 to configure > a stack alignment of 16 bytes. Clang uses the option -mstack-alignment > instead, which expects as parameter the alignment in bytes, and not a > power of two like -mp

[PATCH v4 09/12] drm/sun4i: Add support for A83T second DE2 mixer

2018-02-08 Thread Jernej Skrabec
It supports 1 VI and 1 UI plane and HW scaling on both planes. Acked-by: Maxime Ripard Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_mixer.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.c b/drivers/gpu/drm/sun4i/sun8i_mixer.

Re: [PATCH] drm/amd/powerplay: Fix enum mismatch

2018-02-08 Thread Guenter Roeck
On Wed, Feb 7, 2018 at 10:58 AM, Matthias Kaehlcke wrote: > In several locations the driver uses AMD_CG_STATE_UNGATE (type enum > amd_clockgating_state) instead of AMD_PG_STATE_UNGATE (type enum > amd_powergating_stat) and vice versa. Both constants have the same > value, so this doesn't cause any

[PATCH 4/4] drm/ttm: check if the mem free space is under lower limit

2018-02-08 Thread Roger He
mem free space and lower limit both include two parts: system memory and swap space. For the OOM triggered by TTM, that is the case as below: swap space is full of swapped pages and then system memory will be filled up with ttm pages. and then any memory allocation request will run into OOM. to c

[PATCH v4 00/12] drm/sun4i: Add A83T HDMI support

2018-02-08 Thread Jernej Skrabec
This patch series implements support for A83T DW HDMI and PHY. Contrary to v1 series, this one is based on latest linux-next, since all needed patches were merged. While exactly this combination of HDMI controller and PHY is not common in Allwinner SoCs, this patch series nevertheless makes ground

[PATCH v4 04/12] drm/bridge/synopsys: dw-hdmi: Export some PHY related functions

2018-02-08 Thread Jernej Skrabec
Parts of PHY code could be useful also for custom PHYs. For example, Allwinner A83T has custom PHY which is probably Synopsys gen2 PHY with few additional memory mapped registers, so most of the Synopsys PHY related code could be reused. Functions exported here are actually not specific to Synopsy

[PATCH v7 0/6] iommu/arm-smmu: Add runtime pm/sleep support

2018-02-08 Thread Vivek Gautam
This series provides the support for turning on the arm-smmu's clocks/power domains using runtime pm. This is done using the recently introduced device links patches, which lets the smmu's runtime to follow the master's runtime pm, so the smmu remains powered only when the masters use it. It also

[PATCH v4 01/12] clk: sunxi-ng: Mask nkmp factors when setting register

2018-02-08 Thread Jernej Skrabec
Currently, if one of the factors isn't present, bit 0 gets always set to 1. For example, A83T has NMP PLLs modelled as NKMP PLL without K. Since K is not specified, it's offset, width and shift is 0. Driver assumes that lowest value possible is 1, otherwise we would get division by 0. That situatio

[PATCH v4 03/12] drm/bridge/synopsys: dw-hdmi: Enable workaround for v1.32a

2018-02-08 Thread Jernej Skrabec
Allwinner SoCs have dw hdmi controller v1.32a which exhibits same magenta line issue as i.MX6Q and i.MX6DL. Enable workaround for it. Tests show that one iteration is enough. Acked-by: Laurent Pinchart Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 8 +--- 1

[PATCH v7 2/6] iommu/arm-smmu: Add pm_runtime/sleep ops

2018-02-08 Thread Vivek Gautam
From: Sricharan R The smmu needs to be functional only when the respective master's using it are active. The device_link feature helps to track such functional dependencies, so that the iommu gets powered when the master device enables itself using pm_runtime. So by adapting the smmu driver for r

[PATCH 3/4] drm/ttm: add input parameter force_alloc for ttm_bo_evict_mm

2018-02-08 Thread Roger He
if true, allocate TTM pages regardless of zone global memory account limit. For suspend, We should avoid TTM memory allocate failure then result in suspend failure. Signed-off-by: Roger He --- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 +

[PATCH v4 08/12] drm/sun4i: Add support for A83T second TCON

2018-02-08 Thread Jernej Skrabec
This TCON is connected to HDMI encoder. Acked-by: Maxime Ripard Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c index 32d9a5eb9e25..48678705ef43

Re: [PATCH] drm/amd/display: Remove extra pairs of parentheses in dce_calcs.c

2018-02-08 Thread Guenter Roeck
On Wed, Feb 7, 2018 at 11:49 AM, Matthias Kaehlcke wrote: > The double parentheses are not needed. Removing them fixes multiple > warnings like this when building with clang: > > drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c:617:42: > error: equality comparison with extraneous paren

[PATCH v7 1/6] base: power: runtime: Export pm_runtime_get/put_suppliers

2018-02-08 Thread Vivek Gautam
The device link allows the pm framework to tie the supplier and consumer. So, whenever the consumer is powered-on the supplier is powered-on first. There are however cases in which the consumer wants to power-on the supplier, but not itself. E.g., A Graphics or multimedia driver wants to power-on

[PATCH 2/4] drm/ttm: add bit flag TTM_OPT_FLAG_FORCE_ALLOC

2018-02-08 Thread Roger He
set TTM_OPT_FLAG_FORCE_ALLOC when we are servicing for page fault routine. for ttm_mem_global_reserve if in page fault routine, allow the gtt pages reservation always. because page fault routing already grabbed system memory and the allowance of this exception is harmless. Otherwise, it will trigg

Re: [PATCH 2/2] drm/sun4i: Handle DRM_MODE_FLAG_**SYNC_POSITIVE correctly

2018-02-08 Thread Giulio Benetti
Hi, Il 07/02/2018 11:39, Maxime Ripard ha scritto: > On Wed, Jan 24, 2018 at 08:37:28PM +0100, Giulio Benetti wrote: > Also, how was it tested? This seems quite weird that we haven't caught > that one sooner, and I'm a bit worried about the possible regressions > here. It sou

[PATCH v4 05/12] drm/bridge/synopsys: dw-hdmi: don't clobber drvdata

2018-02-08 Thread Jernej Skrabec
dw_hdmi shouldn't set drvdata since some drivers might need to store it's own data there. Rework dw_hdmi in a way to return struct dw_hdmi instead to store it in drvdata. This way drivers are responsible to store and pass structure when needed. Idea was taken from the following commit: 8242ecbd597

[PATCH v7 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2018-02-08 Thread Vivek Gautam
From: Sricharan R The smmu device probe/remove and add/remove master device callbacks gets called when the smmu is not linked to its master, that is without the context of the master device. So calling runtime apis in those places separately. Signed-off-by: Sricharan R [vivek: Cleanup pm runtim

[PATCH v4 11/12] ARM: dts: sun8i: a83t: Add HDMI display pipeline

2018-02-08 Thread Jernej Skrabec
This commit adds all bits necessary for HDMI on A83T - mixer1, tcon1, hdmi, hdmi phy and hdmi pinctrl entries. Signed-off-by: Jernej Skrabec --- arch/arm/boot/dts/sun8i-a83t.dtsi | 119 +- 1 file changed, 118 insertions(+), 1 deletion(-) diff --git a/arch/arm

[PATCH v4 10/12] drm/sun4i: Implement A83T HDMI driver

2018-02-08 Thread Jernej Skrabec
A83T has DW HDMI IP block with a custom PHY similar to Synopsys gen2 HDMI PHY. Only video output was tested, while HW also supports audio and CEC. Support for them will be added later. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/Kconfig | 9 ++ drivers/gpu/drm/sun4i/Makef

[PATCH v2] spi: kconfig: Remove AVR32 dep. from SPI_ATMEL

2018-02-08 Thread Ulf Magnusson
The AVR32 symbol was removed in commit 26202873bb51 ("avr32: remove support for AVR32 architecture"). --- Changes in v2: Remove the AVR32 reference from the help text too. drivers/spi/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/Kconfig b/drivers/spi

Re: [PATCH 1/3] drm: add func to get max iomem address

2018-02-08 Thread Michel Dänzer
On 2018-02-08 09:32 AM, Chunming Zhou wrote: > it will be used to check if the driver needs swiotlb > > Change-Id: Idbe47af8f12032d4803bb3d47273e807f19169c3 > Signed-off-by: Chunming Zhou > Reviewed-by: Monk Liu > --- > include/drm/drm_cache.h | 13 + > 1 file changed, 13 insertions

Re: [PATCH 1/3] drm: add func to get max iomem address

2018-02-08 Thread Chunming Zhou
On 2018年02月08日 17:09, Michel Dänzer wrote: On 2018-02-08 09:32 AM, Chunming Zhou wrote: it will be used to check if the driver needs swiotlb Change-Id: Idbe47af8f12032d4803bb3d47273e807f19169c3 Signed-off-by: Chunming Zhou Reviewed-by: Monk Liu --- include/drm/drm_cache.h | 13 +++

Re: [PATCH 1/3] drm: add func to get max iomem address

2018-02-08 Thread Christian König
Am 08.02.2018 um 10:09 schrieb Michel Dänzer: On 2018-02-08 09:32 AM, Chunming Zhou wrote: it will be used to check if the driver needs swiotlb Change-Id: Idbe47af8f12032d4803bb3d47273e807f19169c3 Signed-off-by: Chunming Zhou Reviewed-by: Monk Liu --- include/drm/drm_cache.h | 13 ++

Re: [PATCH 1/3] drm: add func to get max iomem address

2018-02-08 Thread Michel Dänzer
On 2018-02-08 10:15 AM, Chunming Zhou wrote: > On 2018年02月08日 17:09, Michel Dänzer wrote: >> On 2018-02-08 09:32 AM, Chunming Zhou wrote: >>> it will be used to check if the driver needs swiotlb >>> >>> Change-Id: Idbe47af8f12032d4803bb3d47273e807f19169c3 >>> Signed-off-by: Chunming Zhou >>> Revie

Re: [PATCH 1/4] drm/ttm: use bit flag to replace allow_reserved_eviction in ttm_operation_ctx

2018-02-08 Thread Christian König
Am 08.02.2018 um 10:05 schrieb Roger He: for saving memory and more bit flag can be used in future Signed-off-by: Roger He Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 4 ++-- drivers/gpu/drm/ttm/ttm_

[Bug 105005] No image after downtime (RX460)

2018-02-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105005 Michel Dänzer changed: What|Removed |Added Attachment #137223|text/x-log |text/plain mime type|

Re: [RFC PATCH v2 1/5] dt-bindings: add bindings for USB physical connector

2018-02-08 Thread Andrzej Hajda
On 07.02.2018 22:43, Rob Herring wrote: > On Mon, Feb 05, 2018 at 10:06:35AM +0100, Andrzej Hajda wrote: >> On 05.02.2018 07:08, Rob Herring wrote: >>> On Wed, Jan 31, 2018 at 02:44:31PM +0100, Andrzej Hajda wrote: These bindings allow to describe most known standard USB connectors and it

[Bug 105005] No image after downtime (RX460)

2018-02-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105005 --- Comment #6 from Michel Dänzer --- Did you capture the Xorg log and dmesg before or after the problem occurred? If before, can you grab them again after? What was the last kernel version where this didn't happen? -- You are receiving this

[Bug 99353] Kaveri 7400K shows random colored noise instead of GUI in X or Wayland

2018-02-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99353 --- Comment #25 from Michel Dänzer --- (In reply to Bong Cosca from comment #24) > My screen width is 1280px. Is there a reason why the amdgpu driver says the > GPU has a front buffer pitch of 6144 bytes in non-accelerated mode while the > pitch

Re: Atomic driver and old remove FB behavior

2018-02-08 Thread Oleksandr Andrushchenko
Hi, Maarten! On 02/06/2018 05:37 PM, Maarten Lankhorst wrote: Op 06-02-18 om 15:43 schreef Oleksandr Andrushchenko: Hello, Maarten! On 02/01/2018 12:13 PM, Oleksandr Andrushchenko wrote: On 02/01/2018 12:04 PM, Maarten Lankhorst wrote: Op 01-02-18 om 08:08 schreef Oleksandr Andrushchenko:

Re: [PATCH v1 2/2] drm/stm: ltdc: remove non-alpha color formats on layer 2 for older hw

2018-02-08 Thread Benjamin Gaignard
2018-02-06 10:13 GMT+01:00 Yannick FERTRE : > Reviewed-by: Yannick Fertré > > > On 02/01/2018 11:42 AM, Philippe Cornu wrote: >> Hw older versions support non-alpha color formats derived >> from native alpha color formats only on the primary layer. >> For instance, RG16 native format without alpha

Re: [PATCH v1 1/2] drm/stm: ltdc: add non-alpha color formats

2018-02-08 Thread Benjamin Gaignard
2018-02-06 10:12 GMT+01:00 Yannick FERTRE : > Reviewed-by: Yannick Fertré > > > On 02/01/2018 11:42 AM, Philippe Cornu wrote: >> ltdc supports natively some color formats with alpha (like >> ARGB, ARGB1555, ARGB...). Related non-alpha formats are >> supported too (ARGB->XRGB, ARGB4

Re: [PATCHv1 00/14] omapdrm: DSI command mode panel support

2018-02-08 Thread Pavel Machek
Hi! > I've also picked patches 7-12. It seems that part of the support made it to v4.16. Is it supposed to be complete? I still have these in my tree, and result works on Nokia N9. Is there any way I can help with the merge? Best regards,

[PATCH] drm/panel: Fix ARM Versatile panel clocks

2018-02-08 Thread Linus Walleij
These clocks are in kHz not in Hz, oops. Fix it so my new bandwidth calculations patch starts working with these panels. Cc: Eric Anholt Signed-off-by: Linus Walleij --- drivers/gpu/drm/panel/panel-arm-versatile.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drive

Re: Questions on page flips and atomic modeset

2018-02-08 Thread Oleksandr Andrushchenko
Hello, Ville! On 02/06/2018 06:04 PM, Ville Syrjälä wrote: On Tue, Feb 06, 2018 at 11:59:37AM +0200, Oleksandr Andrushchenko wrote: Hello, Ville! Thank you very much for such a comprehensive answer. Please see inline On 02/05/2018 06:47 PM, Ville Syrjälä wrote: On Mon, Feb 05, 2018 at 06:0

[PATCH] dma-buf: Remove unused sync_dump()

2018-02-08 Thread Chris Wilson
sync_dump() is an unused, unexported, function that adds 64k to the kernel image and doesn't even provide locking around the global array it uses. add/remove: 0/2 grow/shrink: 0/0 up/down: 0/-65734 (-65734) Function old new delta sync_dump

[PATCH v4 1/6] drm/omap: Fail probe if irq registration fails

2018-02-08 Thread Jyri Sarha
Call to omap_drm_irq_install() may fail with an error code. In such a case the driver probe should fail. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/omapdrm/omap_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/

[PATCH v4 0/6] drm/omap: Make omapdss API more generic + related patches

2018-02-08 Thread Jyri Sarha
The purpose of these patches is to make easier to add support for future DSS version. Since v3: - "drm/omap: Add get_ovl_name() and get_mgr_name() to dispc_ops" - Make ovl_names array static const char * const - Add: - "drm/omap: move common stuff from dss.h to omapdss.h" - "drm/omap: dss: M

[PATCH v4 2/6] drm/omap: Add get_ovl_name() and get_mgr_name() to dispc_ops

2018-02-08 Thread Jyri Sarha
Add get_ovl_name() and get_mgr_name() to dispc_ops and get rid of adhoc names here and there in the omapdrm code. This moves the names of hardware entities to omapdss side where they have to be when new omapdss backend drivers are introduced. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/omapdrm

[PATCH v4 3/6] drm/omap: Make omapdss API more generic

2018-02-08 Thread Jyri Sarha
The new omapdss API is HW independent and cleans up some of the DSS5 specific hacks from the omapdrm side and gets rid off the DSS5 IRQ register bits and replace them with HW independent generic u64 based macros. The new macros make it more straight forward to implement the IRQ code for the future

[PATCH v4 6/6] drm/omap: dss: platform_register_drivers() to dss.c and remove core.c

2018-02-08 Thread Jyri Sarha
The core.c just for registering the drivers is kind of useless. Let's get rid of it and register the dss drivers in dss.c. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/omapdrm/dss/Makefile | 2 +- drivers/gpu/drm/omapdrm/dss/core.c | 66 drivers/gpu/drm/o

Re: [PATCHv1 00/14] omapdrm: DSI command mode panel support

2018-02-08 Thread Tomi Valkeinen
On 08/02/18 11:41, Pavel Machek wrote: > Hi! > >> I've also picked patches 7-12. > > It seems that part of the support made it to v4.16. Is it supposed to > be complete? > > I still have these in my tree, and result works on Nokia N9. Is there > any way I can help with the merge? I picked the p

[PATCH] drm: Fix kerneldoc warnings for drm_lease

2018-02-08 Thread Chris Wilson
drivers/gpu/drm/drm_lease.c:56: warning: No description found for parameter 'lessee_id' drivers/gpu/drm/drm_lease.c:56: warning: Excess function parameter 'id' description in '_drm_find_lessee' drivers/gpu/drm/drm_lease.c:114: warning: No description found for parameter 'file_priv' drivers/gpu/d

Re: [PATCH] drm/panel: Fix ARM Versatile panel clocks

2018-02-08 Thread Eric Anholt
Linus Walleij writes: > These clocks are in kHz not in Hz, oops. Fix it so my > new bandwidth calculations patch starts working with these > panels. > > Cc: Eric Anholt > Signed-off-by: Linus Walleij > --- > drivers/gpu/drm/panel/panel-arm-versatile.c | 8 > 1 file changed, 4 insertio

[PATCH] dma-buf/sw_sync: Fix kerneldoc warnings

2018-02-08 Thread Chris Wilson
drivers/dma-buf/sw_sync.c:248: warning: No description found for parameter 'obj' drivers/dma-buf/sw_sync.c:248: warning: No description found for parameter 'value' drivers/dma-buf/sw_sync.c:248: warning: Excess function parameter 'parent' description in 'sync_pt_create' drivers/dma-buf/sw_sync.c:

Re: [PATCH v3 3/3] drm/omap: Make omapdss API more generic

2018-02-08 Thread Jyri Sarha
Argh, sorry I forgot about these in the previous post. (And the comment for "drm/omap: Fail probe if irq registration fails"). On 02/08/18 10:53, Tomi Valkeinen wrote: > On 07/02/18 16:11, Jyri Sarha wrote: >> The new omapdss API is HW independent and cleans up some of the DSS5 >> specific hacks f

[Bug 105005] No image after downtime (RX460)

2018-02-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105005 --- Comment #7 from Dmitry --- After rebooting done due to this problem. Without the screen it is problematic to do, immediately after. 4.14.15-1 -- You are receiving this mail because: You are the assignee for the bug.___

Re: [PATCH v3 3/3] drm/omap: Make omapdss API more generic

2018-02-08 Thread Tomi Valkeinen
On 08/02/18 13:43, Jyri Sarha wrote: > Argh, sorry I forgot about these in the previous post. (And the comment > for "drm/omap: Fail probe if irq registration fails"). > > On 02/08/18 10:53, Tomi Valkeinen wrote: >> On 07/02/18 16:11, Jyri Sarha wrote: >>> The new omapdss API is HW independent and

[PATCH v4 4/6] drm/omap: move common stuff from dss.h to omapdss.h

2018-02-08 Thread Jyri Sarha
From: Tomi Valkeinen The new DSS6 driver needs some structs and defines which are currently in dss.h, which is for the old DSS driver. Move the required structs and defines from dss.h to omapdss.h. Signed-off-by: Tomi Valkeinen Signed-off-by: Jyri Sarha --- drivers/gpu/drm/omapdrm/dss/dss.h

[PATCH v4 5/6] drm/omap: dss: Move platform_device_register from core.c to dss.c probe

2018-02-08 Thread Jyri Sarha
Register the omapdrm device when we know that dss device probe going to succeed. This avoids DSS6 and DSS2 omapdrm device registration from colliding with each other. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/omapdrm/dss/core.c | 26 ++ drivers/gpu/drm/omapdrm/dss/dss

Re: [PATCH 2/4] drm/ttm: add bit flag TTM_OPT_FLAG_FORCE_ALLOC

2018-02-08 Thread Christian König
Am 08.02.2018 um 10:05 schrieb Roger He: set TTM_OPT_FLAG_FORCE_ALLOC when we are servicing for page fault routine. for ttm_mem_global_reserve if in page fault routine, allow the gtt pages reservation always. because page fault routing already grabbed system memory and the allowance of this exce

Re: [PATCH 3/4] drm/ttm: add input parameter force_alloc for ttm_bo_evict_mm

2018-02-08 Thread Christian König
Am 08.02.2018 um 10:06 schrieb Roger He: if true, allocate TTM pages regardless of zone global memory account limit. For suspend, We should avoid TTM memory allocate failure then result in suspend failure. Why the extra parameter for amdgpu_bo_evict_vram ? I can't think of an use case when we

Re: [PATCH v2 1/3] Kconfig : Remove HAS_IOMEM dependency for Graphics support

2018-02-08 Thread Bartlomiej Zolnierkiewicz
Hi, [ dri-devel ML & arch/[score,um] Maintainers added to Cc: ] On Friday, February 02, 2018 08:59:57 AM Christian Borntraeger wrote: > On 02/01/2018 07:41 PM, Farhan Ali wrote: > > The 'commit e25df1205f37 ("[S390] Kconfig: menus with depends on > > HAS_IOMEM.")' > > added the HAS_IOMEM depend

Re: [PATCH] drm/bridge/synopsys: dsi: use adjusted_mode in mode_set

2018-02-08 Thread Laurent Pinchart
Hi Philippe, On Saturday, 3 February 2018 00:41:26 EET Philippe CORNU wrote: > On 01/29/2018 11:40 AM, Laurent Pinchart wrote: > > On Monday, 29 January 2018 12:17:37 EET Philippe CORNU wrote: > >> On 01/29/2018 10:46 AM, Laurent Pinchart wrote: > >>> On Thursday, 25 January 2018 17:55:04 EET Phil

Re: [PATCH v3] Fix loading of module radeonfb on PowerMac

2018-02-08 Thread Bartlomiej Zolnierkiewicz
On Wednesday, January 31, 2018 08:51:23 PM Mathieu Malaterre wrote: > Bartlomiej, > > On Wed, Jan 31, 2018 at 12:57 PM, Bartlomiej Zolnierkiewicz > wrote: > > On Tuesday, January 30, 2018 02:14:10 PM Mathieu Malaterre wrote: > >> Bartlomiej, > >> > >> On Wed, Jan 3, 2018 at 3:47 PM, Bartlomiej Zo

[Bug 104082] amdgpu 0000:07:00.0: swiotlb buffer is full (sz: 2097152 bytes)

2018-02-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104082 Stratos Zolotas changed: What|Removed |Added CC||str...@gmail.com --- Comment #15 from

[PATCH v1 1/2] dt-bindings/display/panel: Add support for Raydium rm68200 dsi panel

2018-02-08 Thread Philippe Cornu
The Raydium Semiconductor Corporation RM68200 is a 5.5" 720x1280 TFT LCD panel connected using a MIPI-DSI video interface. Signed-off-by: Philippe Cornu --- .../bindings/display/panel/raydium,rm68200.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Docum

[PATCH v1 2/2] drm/panel: Add support for Raydium rm68200 panel driver

2018-02-08 Thread Philippe Cornu
This patch adds Raydium Semiconductor Corporation rm68200 5.5" 720x1280 TFT LCD panel driver (MIPI-DSI video mode). Signed-off-by: Philippe Cornu --- drivers/gpu/drm/panel/Kconfig | 8 + drivers/gpu/drm/panel/Makefile| 1 + drivers/gpu/drm/panel/panel-raydium-

[PATCH v1 0/2] drm/panel: Add support for Raydium rm68200 panel

2018-02-08 Thread Philippe Cornu
The Raydium Semiconductor Corporation RM68200 is a 5.5" 720x1280 TFT LCD panel connected using a MIPI-DSI video interface. Philippe Cornu (2): dt-bindings/display/panel: Add support for Raydium rm68200 dsi panel drm/panel: Add support for Raydium rm68200 panel driver .../bindings/display/pan

Re: [PATCH v2 1/2] amdgpu/dc/dml: Consolidate redundant CFLAGS

2018-02-08 Thread Harry Wentland
On 2018-02-07 08:51 PM, Matthias Kaehlcke wrote: > Use subdir-ccflags instead of specifying the same flags for every source > file. > > Signed-off-by: Matthias Kaehlcke > Reviewed-by: Guenter Roeck > --- > Changes in v2: > - added 'Reviewed-by: Guenter Roeck ' tag > > drivers/gpu/drm/amd/displ

[PATCH 0/3] GPU-DRM-GMA500: Adjustments for four function implementations

2018-02-08 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 8 Feb 2018 15:27:38 +0100 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation in two functions Improve four size determinations Delete an unnecessary re

[Bug 105005] No image after downtime (RX460)

2018-02-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105005 --- Comment #8 from Michel Dänzer --- (In reply to Dmitry from comment #7) > After rebooting done due to this problem. Without the screen it is > problematic to do, immediately after. If you have another computer, you can do it via ssh. > 4.1

[PATCH 1/3] drm/gma500: Delete an error message for a failed memory allocation in two functions

2018-02-08 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 8 Feb 2018 14:55:49 +0100 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/gpu/drm/gma500/framebuffer.c | 4 +--- drivers/gpu/drm/gma5

[PATCH 2/3] drm/gma500: Improve four size determinations

2018-02-08 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 8 Feb 2018 15:08:39 +0100 Replace the specification of data structures by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was detect

[PATCH 3/3] drm/gma500: Delete an unnecessary return statement in oaktrail_crtc_hdmi_dpms()

2018-02-08 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 8 Feb 2018 15:17:48 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: void function return statements are not generally useful Thus remove such a statement in the affected function. Signed-off-by: Markus Elfring --- drivers/

[PATCH v2] drm/bridge/synopsys: dsi: Adopt SPDX identifiers

2018-02-08 Thread Philippe Cornu
Add SPDX identifiers to the Synopsys DesignWare MIPI DSI host controller driver. Signed-off-by: Philippe Cornu --- Changes in v2: Update to "GPL-2.0+" following comments from Laurent Pinchart, Benjamin Gaignard & Philippe Ombredanne. drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 6 +- 1 f

Re: [PATCH v1 1/2] drm/stm: ltdc: add non-alpha color formats

2018-02-08 Thread Philippe CORNU
Hi Benjamin, and many thanks for having applied the 2 patches. Philippe :-) On 02/08/2018 10:40 AM, Benjamin Gaignard wrote: > 2018-02-06 10:12 GMT+01:00 Yannick FERTRE : >> Reviewed-by: Yannick Fertré >> >> >> On 02/01/2018 11:42 AM, Philippe Cornu wrote: >>> ltdc supports natively some color fo

Re: [PATCH] drm/bridge/synopsys: dsi: Adopt SPDX identifiers

2018-02-08 Thread Philippe CORNU
Hi Laurent, Benjamin & Philippe, I sent an updated version of the patch following your comments Big thank you, Philippe :-) On 02/08/2018 03:09 PM, Philippe Ombredanne wrote: > Benjamin, > > On Wed, Jan 24, 2018 at 9:57 AM, Benjamin Gaignard > wrote: >> 2018-01-24 0:32 GMT+01:00 Laurent Pincha

Re: [PATCH v2 1/3] Kconfig : Remove HAS_IOMEM dependency for Graphics support

2018-02-08 Thread Christian Borntraeger
On 02/08/2018 02:11 PM, Bartlomiej Zolnierkiewicz wrote: > > Hi, > > [ dri-devel ML & arch/[score,um] Maintainers added to Cc: ] > > On Friday, February 02, 2018 08:59:57 AM Christian Borntraeger wrote: >> On 02/01/2018 07:41 PM, Farhan Ali wrote: >>> The 'commit e25df1205f37 ("[S390] Kconfig:

[Bug 99353] Kaveri 7400K shows random colored noise instead of GUI in X or Wayland

2018-02-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99353 --- Comment #26 from Bong Cosca --- (In reply to Michel Dänzer from comment #25) > > Where do you see that? Xorg.0.log -- You are receiving this mail because: You are the assignee for the bug.___ dr

Re: -EPROBE_DEFER and failed DSI panel probe

2018-02-08 Thread Boris Brezillon
+Thierry and Archit for the drm_panel/panel_bridge bits. Hi all, I'm resurrecting this thread because Eric asked me to find a solution to this problem :-). On Mon, 20 Nov 2017 08:53:05 +0100 Andrzej Hajda wrote: > On 18.11.2017 02:16, Eric Anholt wrote: > > Andrzej Hajda writes: > > > >> On

Re: [PATCH] drm/amdgpu: add new device to use atpx quirk

2018-02-08 Thread Alex Deucher
On Thu, Feb 8, 2018 at 4:46 AM, Kai-Heng Feng wrote: > The affected system (0x0813) is pretty similar to another one (0x0812), > it also needs to use ATPX power control. > > Signed-off-by: Kai-Heng Feng Applied. thanks! Alex > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 1 + > 1

  1   2   >