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

2019-11-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109955 --- Comment #135 from Rodney A Morris --- (In reply to haro41 from comment #127) > (In reply to Rodney A Morris from comment #126) > > If you want someone to apply your changes in bug report no. 110777 to the > > kernel for testing, I can so

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

2019-11-17 Thread Guido Günther
Hi, On Sat, Oct 19, 2019 at 04:12:23PM +0200, Guido Günther wrote: > This adds initial support for the NWL MIPI DSI Host controller found on i.MX8 > SoCs. Is there anything i can do to move this forward? As far as i can tell all review comments should be addressed. Cheers, -- Guido > > It adds

[RFCv1 37/42] drm/omap: panel-dsi-cm: fix remove()

2019-11-17 Thread Sebastian Reichel
The remove function should disable the panel by calling the unprepare() function before the panel is disconnected from MIPI bus instead of trying to reset it. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[RFCv1 25/42] drm/omap: dsi: drop custom enable_te() API

2019-11-17 Thread Sebastian Reichel
Instead of using the custon enable_te() API, this automatically enables/disables TE core support when a matching packet is send to the panel. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 3 -- drivers/gpu/drm/omapdrm/dss/dsi.c | 33

[RFCv1 08/42] drm/omap: dsi: simplify write function

2019-11-17 Thread Sebastian Reichel
Simplify the write related messages handling by using the functionality provided by CONFIG_DRM_MIPI_DSI. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/Kconfig | 1 + drivers/gpu/drm/omapdrm/dss/dsi.c | 144 +++- 2 files changed, 33 insertions(+),

[RFCv1 32/42] drm/omap: dsi: convert to drm_panel

2019-11-17 Thread Sebastian Reichel
This converts the DSI module to expect common drm_panel display drivers instead of dssdev based ones. This commit is WIP. We somehow need to know the panels resolution in omap_dsi_host_attach(), so that we can properly configure the DSI bus clock before enabling the bus. The control bus must be

[RFCv1 06/42] drm/omap: dsi: unexport specific data transfer functions

2019-11-17 Thread Sebastian Reichel
After converting all DSI drivers, unexport the specific transfer functions. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/dsi.c | 12 drivers/gpu/drm/omapdrm/dss/omapdss.h | 20 2 files changed, 32 deletions(-) diff --git

[RFCv1 24/42] drm/omap: dsi: move TE GPIO handling into core

2019-11-17 Thread Sebastian Reichel
In preparation for removing custom DSS calls from the DSI panel driver, this moves support for external tearing event GPIOs into the DSI host driver. This way tearing events are always handled in the core resulting in simplification of the panel drivers. The TE GPIO acquisition follows works in

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

2019-11-17 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)

[RFCv1 04/42] drm/omap: dsi: add generic transfer function

2019-11-17 Thread Sebastian Reichel
This prepares the driver for becoming a mipi_dsi_host implementation, which provides a generic transfer function instead of all kind of different read/write functions. The implementation will become more elegant after unexporting the specific functions in the following patches. Signed-off-by:

[RFCv1 12/42] drm/omap: dsi: introduce mipi_dsi_host

2019-11-17 Thread Sebastian Reichel
This moves from custom platform driver infrastructure to mipi_dsi_host and mipi_dsi_device. Note, that this is a graduate step and the driver only uses the devices types and transfer function, but not yet the new device binding style or drm_panel. Signed-off-by: Sebastian Reichel ---

[RFCv1 33/42] drm/omap: dsi: use atomic helper for dirtyfb

2019-11-17 Thread Sebastian Reichel
We can simply use the atomic helper for handling the dirtyfb callback. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/omap_crtc.c | 6 +- drivers/gpu/drm/omapdrm/omap_crtc.h | 1 - drivers/gpu/drm/omapdrm/omap_fb.c | 21 ++--- 3 files changed, 3

[RFCv1 09/42] drm/omap: dsi: simplify read functions

2019-11-17 Thread Sebastian Reichel
Simplify the read related message handling by using the functionality provided by CONFIG_DRM_MIPI_DSI. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/dsi.c | 109 +- 1 file changed, 33 insertions(+), 76 deletions(-) diff --git

[RFCv1 21/42] drm/omap: dsi: use pixel-format and mode from attach

2019-11-17 Thread Sebastian Reichel
In order to reduce the amount of custom functionality, this moves handling of pixel format and DSI mode from set_config() to dsi attach. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 2 -- drivers/gpu/drm/omapdrm/dss/dsi.c | 20

[RFCv1 39/42] drm/omap: dsi: return proper error code from dsi_update_all()

2019-11-17 Thread Sebastian Reichel
Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c b/drivers/gpu/drm/omapdrm/dss/dsi.c index 1b57f516618a..bc96f74f1740 100644 --- a/drivers/gpu/drm/omapdrm/dss/dsi.c +++

[RFCv1 07/42] drm/omap: dsi: drop virtual channel logic

2019-11-17 Thread Sebastian Reichel
This drops the virtual channel logic. Afterwards DSI clients request their channel number and get the virtual channel with the same number or -EBUSY if already in use. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 11 ++---

[RFCv1 27/42] drm/omap: dsi: untangle ulps ops from enable/disable

2019-11-17 Thread Sebastian Reichel
Create a custom function pointer for ULPS and use it instead of reusing disable/enable functions for ULPS mode switch. This allows us to use the common disable/enable functions pointers for DSI. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 8 ++--

Re: [PATCH v2] drm/tegra: Turn off and reset hardware across suspend-resume

2019-11-17 Thread Dmitry Osipenko
14.11.2019 23:31, Thierry Reding пишет: > On Sun, Aug 11, 2019 at 09:39:32PM +0300, Dmitry Osipenko wrote: >> The drivers core bumps runtime PM refcount during of entering into >> suspend to workaround some problem where parent device may become turned >> off before its children. In order to

[RFCv1 13/42] drm/omap: panel-dsi-cm: use DSI helpers

2019-11-17 Thread Sebastian Reichel
After converting the driver to mipi_dsi_device we can use the generic message helpers to simplify the driver a lot. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 126 +++--- 1 file changed, 18 insertions(+), 108 deletions(-) diff --git

[RFCv1 01/42] omap/drm: drop unused dsi.configure_pins

2019-11-17 Thread Sebastian Reichel
The panel-dsi-cm's ddata->pin_config is always NULL, so this callback is never called. Instead the DSI encoder gets the pin configuration directly from DT. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 11 --- drivers/gpu/drm/omapdrm/dss/dsi.c

[RFCv1 14/42] drm/omap: dsi: request VC via mipi_dsi_attach

2019-11-17 Thread Sebastian Reichel
Drop custom request_vc/release_vc callbacks by using the generic mipi_dsi_attach/mipi_dsi_detach functions. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 24 +--- drivers/gpu/drm/omapdrm/dss/dsi.c | 61 ---

[RFCv1 05/42] drm/omap: panel-dsi-cm: convert to transfer API

2019-11-17 Thread Sebastian Reichel
This converts the panel-dsi-cm driver to use the transfer API instead of specific functions, so that the specific functions can be unexported and squashed into the generic transfer function. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 133

[PATCH 1/6] drm/radeon: remove set but not used variable 'size', 'relocs_chunk'

2019-11-17 Thread zhengbin
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/radeon/r600_cs.c: In function r600_cs_track_validate_cb: drivers/gpu/drm/radeon/r600_cs.c:353:22: warning: variable size set but not used [-Wunused-but-set-variable] drivers/gpu/drm/radeon/r600_cs.c: In function

[PATCH 2/3] drm/gma500: remove set but not used variable 'error'

2019-11-17 Thread zhengbin
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/gma500/psb_irq.c: In function psb_sgx_interrupt: drivers/gpu/drm/gma500/psb_irq.c:210:6: warning: variable error set but not used [-Wunused-but-set-variable] It is introduced by commit 64a4aff283ac ("drm/gma500: Add support for SGX

[RFCv1 42/42] drm/panel: Move OMAP's DSI command mode panel driver

2019-11-17 Thread Sebastian Reichel
The panel driver is no longer using any OMAP specific APIs, so let's move it into the generic panel directory. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/displays/Kconfig | 6 -- drivers/gpu/drm/omapdrm/displays/Makefile| 1 -

[RFCv1 29/42] drm/omap: dsi: do ULPS in host driver

2019-11-17 Thread Sebastian Reichel
Move ULPS handling into the DSI host controller, so that we no longer need a custom API for the DSI client. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 273 +- drivers/gpu/drm/omapdrm/dss/dsi.c | 61 +++-

[RFCv1 36/42] drm/omap: panel-dsi-cm: support unbinding

2019-11-17 Thread Sebastian Reichel
Now, that the driver implements the common DRM panel API the unbind no longer needs to be suppressed. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

[RFCv1 23/42] drm/omap: dsi: lp/hs switching support for transfer()

2019-11-17 Thread Sebastian Reichel
Integrate low-power / high-speed bus switching into transfer function and drop the omapdrm specific enable_hs() callback. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 6 +++--- drivers/gpu/drm/omapdrm/dss/dsi.c | 13 +++--

[PATCH] drm/amd/powerplay: remove variable 'result' set but not used

2019-11-17 Thread Chen Wandun
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c: In function vegam_populate_smc_boot_level: drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1364:6: warning: variable result set but not used [-Wunused-but-set-variable]

[PATCH] video: fbdev: arcfb: add missed free_irq

2019-11-17 Thread Chuhong Yuan
The driver forgets to free irq in remove which is requested in probe. Add the missed call to fix it. Signed-off-by: Chuhong Yuan --- drivers/video/fbdev/arcfb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/video/fbdev/arcfb.c b/drivers/video/fbdev/arcfb.c index

[RFCv1 38/42] drm/omap: panel-dsi-cm: do not power on/off twice

2019-11-17 Thread Sebastian Reichel
Make sure, that we only power on/off the device once. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c b/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c

[PATCH 0/3] drm/gma500: remove some set but not used variables

2019-11-17 Thread zhengbin
zhengbin (3): drm/gma500: remove set but not used variable 'htotal' drm/gma500: remove set but not used variable 'error' drm/gma500: remove set but not used variable 'is_hdmi','is_crt' drivers/gpu/drm/gma500/cdv_intel_display.c | 7 ++- drivers/gpu/drm/gma500/oaktrail_hdmi.c | 4

[PATCH 4/6] drm/radeon: remove set but not used variable 'radeon_connector'

2019-11-17 Thread zhengbin
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/radeon/radeon_display.c: In function radeon_crtc_scaling_mode_fixup: drivers/gpu/drm/radeon/radeon_display.c:1685:27: warning: variable radeon_connector set but not used [-Wunused-but-set-variable] It is not used since commit

[RFCv1 17/42] drm/omap: dsi: drop unused memory_read()

2019-11-17 Thread Sebastian Reichel
Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 93 --- drivers/gpu/drm/omapdrm/dss/omapdss.h | 4 - 2 files changed, 97 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c

[RFCv1 18/42] drm/omap: dsi: drop unused get_te()

2019-11-17 Thread Sebastian Reichel
Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 13 - drivers/gpu/drm/omapdrm/dss/omapdss.h | 1 - 2 files changed, 14 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c

[PATCH 3/6] drm/radeon: remove set but not used variable 'dig_connector'

2019-11-17 Thread zhengbin
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/radeon/atombios_dp.c: In function radeon_dp_get_panel_mode: drivers/gpu/drm/radeon/atombios_dp.c:415:36: warning: variable dig_connector set but not used [-Wunused-but-set-variable] It is not used since commit 379dfc25e257

[RFCv1 34/42] drm/omap: dsi: implement check timings

2019-11-17 Thread Sebastian Reichel
Implement check timings, which will check if its possible to configure the clocks for the provided mode using the same code as the set_config() hook. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/dsi.c | 70 +++ 1 file changed, 44 insertions(+), 26

[Bug 109955] amdgpu [RX Vega 64] system freeze while gaming (VSYNC enabled)

2019-11-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109955 har...@gmx.de changed: What|Removed |Added Summary|amdgpu [RX Vega 64] system |amdgpu [RX Vega 64] system

[RFCv1 35/42] drm/omap: panel-dsi-cm: use DEVICE_ATTR_RO

2019-11-17 Thread Sebastian Reichel
Use DEVICE_ATTR_RO helper instead of plain DEVICE_ATTR, which makes the code a bit shorter and easier to read. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 2/2] drm/nouveau: remove set but not used variable 'mem'

2019-11-17 Thread zhengbin
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/nouveau/nouveau_ttm.c: In function nouveau_vram_manager_new: drivers/gpu/drm/nouveau/nouveau_ttm.c:66:22: warning: variable mem set but not used [-Wunused-but-set-variable] drivers/gpu/drm/nouveau/nouveau_ttm.c: In function

[PATCH 0/6] drm/radeon: remove some set but not used variables

2019-11-17 Thread zhengbin
zhengbin (6): drm/radeon: remove set but not used variable 'size','relocs_chunk' drm/radeon: remove set but not used variable 'backbias_response_time' drm/radeon: remove set but not used variable 'dig_connector' drm/radeon: remove set but not used variable 'radeon_connector' drm/radeon:

[RFCv1 02/42] drm/omap: dsi: use MIPI_DSI_FMT_* instead of OMAP_DSS_DSI_FMT_*

2019-11-17 Thread Sebastian Reichel
This replaces OMAP specific enum for pixel format with common implementation. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 2 +- drivers/gpu/drm/omapdrm/dss/dsi.c | 49 +++ drivers/gpu/drm/omapdrm/dss/omapdss.h | 10

[PATCH 1/3] drm/gma500: remove set but not used variable 'htotal'

2019-11-17 Thread zhengbin
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/gma500/oaktrail_hdmi.c: In function htotal_calculate: drivers/gpu/drm/gma500/oaktrail_hdmi.c:160:6: warning: variable htotal set but not used [-Wunused-but-set-variable] It is introduced by commit 39ec748f7174 ("gma600: Enable HDMI

[PATCH 0/2] drm/nouveau: remove some set but not used variables

2019-11-17 Thread zhengbin
zhengbin (2): drm/nouveau: remove set but not used variable 'pclks','width' drm/nouveau: remove set but not used variable 'mem' drivers/gpu/drm/nouveau/dispnv04/arb.c | 6 ++ drivers/gpu/drm/nouveau/nouveau_ttm.c | 4 2 files changed, 2 insertions(+), 8 deletions(-) -- 2.7.4

[RFCv1 10/42] drm/omap: dsi: switch dsi_vc_send_long/short to mipi_dsi_msg

2019-11-17 Thread Sebastian Reichel
Simplify the DSI encoder by using mipi_dsi_msg for dsi_vc_send_long and dsi_vc_send_short. Further improvements require cleaning up the channel allocation code first. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/dsi.c | 92 +++ 1 file changed, 45

[RFCv1 31/42] drm/omap: dsi: Reverse direction of the DSS device enable/disable operations

2019-11-17 Thread Sebastian Reichel
Complete the direction reversal of the DSS device enable/disable operations started by 19b4200d8f4b ("drm/omap: Reverse direction of the DSS device enable/disable operations"). This effectively drops the requirement of calling DSS specific code from the DSI panel driver moving it a bit further to

[PATCH 6/6] drm/radeon: remove set but not used variable 'tv_pll_cntl1'

2019-11-17 Thread zhengbin
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/radeon/radeon_legacy_tv.c: In function radeon_legacy_tv_mode_set: drivers/gpu/drm/radeon/radeon_legacy_tv.c:538:24: warning: variable tv_pll_cntl1 set but not used [-Wunused-but-set-variable] It is introduced by commit 4ce001abafaf

[RFCv1 16/42] drm/omap: panel-dsi-cm: use common MIPI DCS 1.3 defines

2019-11-17 Thread Sebastian Reichel
Drop local definition of common MIPI DCS 1.3 defines. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c

[RFCv1 41/42] ARM: dts: omap4-droid4: add panel compatible

2019-11-17 Thread Sebastian Reichel
Add Droid 4 specific compatible value in addition to the generic one, so that we have the ability to add panel specific quirks in the future. Signed-off-by: Sebastian Reichel --- arch/arm/boot/dts/omap4-droid4-xt894.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[RFCv1 26/42] drm/omap: dsi: do bus locking in host driver

2019-11-17 Thread Sebastian Reichel
This moves the bus locking into the host driver and unexports the custom API in preparation for drm_panel support. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 46 +-- drivers/gpu/drm/omapdrm/dss/dsi.c | 33 -

[RFCv1 22/42] drm/omap: panel-dsi-cm: use bulk regulator API

2019-11-17 Thread Sebastian Reichel
Use bulk regulator API to simplify the code. This also switches from _optional variant to normal variant, which will provide a dummy regulator (i.e. if some always-enabled regulator is not described in DT). Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 65

[RFCv1 15/42] drm/omap: panel-dsi-cm: drop hardcoded VC

2019-11-17 Thread Sebastian Reichel
Use dsi->channel everywhere, which originates from DT. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 20 +++ 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c

[RFCv1 03/42] drm/omap: constify write buffers

2019-11-17 Thread Sebastian Reichel
The write buffers are not modified, so they can be constant. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/dsi.c | 24 drivers/gpu/drm/omapdrm/dss/omapdss.h | 10 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git

[RFCv1 19/42] drm/omap: dsi: drop unused enable_te()

2019-11-17 Thread Sebastian Reichel
Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 39 --- drivers/gpu/drm/omapdrm/dss/omapdss.h | 2 - 2 files changed, 41 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c

[PATCH v2 RESEND] drm/edid: no CEA v3 extension is not an error

2019-11-17 Thread Jean Delvare
It is fine for displays without audio functionality to not implement CEA v3 extension in their EDID. Do not return an error in that case, instead return 0 as if there was a CEA v3 extension with no audio or speaker block. This fixes the second half of bug fdo#107825:

[PATCH 2/6] drm/radeon: remove set but not used variable 'backbias_response_time'

2019-11-17 Thread zhengbin
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/radeon/si_dpm.c: In function si_program_response_times: drivers/gpu/drm/radeon/si_dpm.c:3640:29: warning: variable backbias_response_time set but not used [-Wunused-but-set-variable] It is introduced by commit a9e61410921b

[PATCH 3/3] drm/gma500: remove set but not used variable 'is_hdmi', 'is_crt'

2019-11-17 Thread zhengbin
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/gma500/cdv_intel_display.c: In function cdv_intel_crtc_mode_set: drivers/gpu/drm/gma500/cdv_intel_display.c:594:7: warning: variable is_hdmi set but not used [-Wunused-but-set-variable] drivers/gpu/drm/gma500/cdv_intel_display.c: In

[PATCH] drm/gma500: remove set but not used variable 'channel_eq'

2019-11-17 Thread zhengbin
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/gma500/cdv_intel_dp.c: In function cdv_intel_dp_complete_link_train: drivers/gpu/drm/gma500/cdv_intel_dp.c:1596:7: warning: variable channel_eq set but not used [-Wunused-but-set-variable] It is never used, so remove it.

[RFCv1 40/42] drm/omap: dsi: support panel un/re-binding

2019-11-17 Thread Sebastian Reichel
This adds support for unbinding the panel driver and have working output again when the panel is bound again later. This is important, since the generic panel drivers do not suppress the unbind properties and the panel module might be unloaded. Also this adds support for unbinding the DSI encoder

[RFCv1 20/42] drm/omap: dsi: drop useless sync()

2019-11-17 Thread Sebastian Reichel
The DSI sync() function only locks the bus and then releases it again. Currently the only invocation is directly before update(), which locks the bus anyways. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c| 18 --

[RFCv1 30/42] drm/omap: dsi: move panel refresh function to host

2019-11-17 Thread Sebastian Reichel
This moves the panel refresh/update function from the panel driver into the DSI host driver to prepare for common drm_panel support. Signed-off-by: Sebastian Reichel --- .../gpu/drm/omapdrm/displays/panel-dsi-cm.c | 68 drivers/gpu/drm/omapdrm/dss/dsi.c | 101

[PATCH 5/6] drm/radeon: remove set but not used variable 'blocks'

2019-11-17 Thread zhengbin
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/radeon/radeon_combios.c: In function radeon_combios_get_power_modes: drivers/gpu/drm/radeon/radeon_combios.c:2638:10: warning: variable blocks set but not used [-Wunused-but-set-variable] It is introduced by commit 56278a8edace

[RFCv1 00/42] drm/omap: Convert DSI code to use drm_mipi_dsi and drm_panel

2019-11-17 Thread Sebastian Reichel
This updates the existing omapdrm DSI code, so that it uses common drm_mipi_dsi API and drm_panel instead of custom API. I did not implement support for drm_bridge, since I do not own any hardware needing this and it does not seem to be a supported scenario with the old DSS code. The patchset has

[RFCv1 28/42] drm/dsi: add MIPI_DSI_MODE_ULPS_IDLE

2019-11-17 Thread Sebastian Reichel
DSI command mode panels are self-refreshing displays, that can be updated very rarely for static images. For this kind of scenario some panels support, that the DSI bus switches into ULPS mode until the panel needs to be refreshed. This is problematic on some panels, so introduce a flag to signal

Re: [PATCH 6/8] drm/xen: Simplify fb_create

2019-11-17 Thread Oleksandr Andrushchenko
On 11/15/19 11:21 AM, Daniel Vetter wrote: > The current code is a pretty good wtf moment, since we drop the > reference before we use it. It's not a big deal, because a) we only > use the pointer, so doesn't blow up and the real reason b) fb->obj[0] > already holds a full reference for us. > >

[PATCH] video: fbdev: vesafb: add missed release_region

2019-11-17 Thread Chuhong Yuan
This driver calls request_region in probe but forgets to call release_region in probe failure and remove. Add the missed calls to fix it. Signed-off-by: Chuhong Yuan --- drivers/video/fbdev/vesafb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/fbdev/vesafb.c

[RFCv1 11/42] ARM: dts: omap: add channel to DSI panels

2019-11-17 Thread Sebastian Reichel
The standard binding for DSI requires, that the channel number of the panel is encoded in DT. This adds the channel number in all OMAP3-5 boards, in preparation for using common infrastructure. Signed-off-by: Sebastian Reichel --- .../devicetree/bindings/display/panel/panel-dsi-cm.txt | 4

[PATCH 1/2] drm/nouveau: remove set but not used variable 'pclks', 'width'

2019-11-17 Thread zhengbin
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/nouveau/dispnv04/arb.c: In function nv04_calc_arb: drivers/gpu/drm/nouveau/dispnv04/arb.c:59:21: warning: variable pclks set but not used [-Wunused-but-set-variable] drivers/gpu/drm/nouveau/dispnv04/arb.c: In function nv04_calc_arb:

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

2019-11-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109955 --- Comment #136 from har...@gmx.de --- Thank you for testing and reporting back. I think the crashes are caused by voltage drops, followed by a hardware failure. That would explain the many different kernel logs too, because from the drivers

[PATCH V12 0/6] mdev based hardware virtio offloading support

2019-11-17 Thread Jason Wang
Hi all: There are hardwares that can do virtio datapath offloading while having its own control path. This path tries to implement a mdev based unified API to support using kernel virtio driver to drive those devices. This is done by introducing a new mdev transport for virtio (virtio_mdev) and

[Bug 112308] Screen flickering with 4k resolution on Prairie Falcon

2019-11-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=112308 --- Comment #2 from Kai-Heng Feng --- Created attachment 145985 --> https://bugs.freedesktop.org/attachment.cgi?id=145985=edit kernel message without iommu -- You are receiving this mail because: You are the assignee for the

Re: [CI v2] drm/fbdev: Fallback to non tiled mode if all tiles not present

2019-11-17 Thread Manasi Navare
Pushed tod rm-misc-next, thanks a lot Dave all the feedback and reviews. Regards Manasi On Wed, Nov 13, 2019 at 02:29:52PM -0800, Manasi Navare wrote: > In case of tiled displays, if we hotplug just one connector, > fbcon currently just selects the preferred mode and if it is > tiled mode then

[PATCH V12 2/6] mdev: split out VFIO bus specific parent ops

2019-11-17 Thread Jason Wang
The only thing left for generalizing mdev is the VFIO specific parent ops. This is basically the open/release/read/write/ioctl/mmap. To support this, mdev core is extend to support a specific size of structure during create, this will allow to compose mdev structure into mdev vfio structure and

[PATCH V12 1/6] mdev: make mdev bus agnostic

2019-11-17 Thread Jason Wang
Current mdev is tied to a VFIO specific "mdev" bus. This prevent mdev from being used by other types of API/buses. So this patch tries to make mdev bus agnostic through making a mdev core a thin module: - decouple VFIO bus specific bits from mdev_core.c to mdev_vfio.c and introduce mdev_vfio

[PATCH V12 5/6] virtio: introduce a mdev based transport

2019-11-17 Thread Jason Wang
This patch introduces a new mdev transport for virtio. This is used to use kernel virtio driver to drive the mediated device that is capable of populating virtqueue directly. A new virtio-mdev driver will be registered to the mdev bus, when a new virtio-mdev device is probed, it will register the

[PATCH V12 3/6] mdev: move to drivers/

2019-11-17 Thread Jason Wang
Mdev now is nothing VFIO specific, let's move it to upper directory. Signed-off-by: Jason Wang --- MAINTAINERS | 7 +-- drivers/Kconfig | 2 ++ drivers/Makefile | 1 + drivers/mdev/Kconfig

RE: [PATCH][next] drm/amdgpu/powerplay: fix dereference before null check of pointer hwmgr

2019-11-17 Thread Quan, Evan
Reviewed-by: Evan Quan -Original Message- From: Colin King Sent: Friday, November 15, 2019 5:48 PM To: Rex Zhu ; Quan, Evan ; Deucher, Alexander ; Koenig, Christian ; Zhou, David(ChunMing) ; David Airlie ; Daniel Vetter ; amd-...@lists.freedesktop.org;

[PATCH V12 6/6] docs: sample driver to demonstrate how to implement virtio-mdev framework

2019-11-17 Thread Jason Wang
This sample driver creates mdev device that simulate virtio net device over virtio mdev transport. The device is implemented through vringh and workqueue. A device specific dma ops is to make sure HVA is used directly as the IOVA. This should be sufficient for kernel virtio driver to work. Only

[PATCH V12 4/6] mdev: introduce mediated virtio bus

2019-11-17 Thread Jason Wang
This patch implements a mediated virtio bus over mdev framework. This will be used by the future virtio-mdev and vhost-mdev on top to allow driver from either userspace or kernel to control the device which is capable of offloading virtio datapath. Signed-off-by: Jason Wang --- MAINTAINERS

RE: [PATCH] drm/amd/powerplay: remove variable 'result' set but not used

2019-11-17 Thread Quan, Evan
Thanks. But it's better to return the 'result' out on 'result != 0'. Regards, Evan -Original Message- From: Chen Wandun Sent: Saturday, November 16, 2019 11:43 AM To: Deucher, Alexander ; Quan, Evan ; amd-...@lists.freedesktop.org; dri-devel@lists.freedesktop.org;

[Bug 112308] Screen flickering with 4k resolution on Prairie Falcon

2019-11-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=112308 --- Comment #1 from Kai-Heng Feng --- Created attachment 145984 --> https://bugs.freedesktop.org/attachment.cgi?id=145984=edit kernel message with iommu -- You are receiving this mail because: You are the assignee for the

[Bug 112308] Screen flickering with 4k resolution on Prairie Falcon

2019-11-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=112308 Bug ID: 112308 Summary: Screen flickering with 4k resolution on Prairie Falcon Product: DRI Version: unspecified Hardware: Other OS: All Status: NEW

linux-next: manual merge of the drm tree with the kbuild tree

2019-11-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/drm/i915/Kconfig.debug between commit: fcbb8461fd23 ("kbuild: remove header compile test") from the kbuild tree and commit: d30213e533fa ("drm/i915: Fix Kconfig indentation") from the drm tree. I fixed it

Re: [PATCHv2 3/4] drm/komeda: use afbc helpers

2019-11-17 Thread james qian wang (Arm Technology China)
On Thu, Nov 14, 2019 at 11:12:13AM +0100, Daniel Vetter wrote: > On Thu, Nov 14, 2019 at 2:52 AM james qian wang (Arm Technology China) > wrote: > > On Wed, Nov 13, 2019 at 12:39:54PM +0100, Daniel Vetter wrote: > > > On Wed, Nov 13, 2019 at 02:01:53AM +, james qian wang (Arm Technology > >

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

2019-11-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110795 --- Comment #38 from Utku Helvacı (tuxutku) --- I made a script to only install opencl: https://gist.github.com/tuxutku/79daa2edca131c1525a136b650cdbe0a its basically re-implementation of opencl-amd AUR package for ubuntu -- You are

[PATCH v2 1/2] drm/radeon: fix bad DMA from INTERRUPT_CNTL2

2019-11-17 Thread Sam Bobroff
The INTERRUPT_CNTL2 register expects a valid DMA address, but is currently set with a GPU MC address. This can cause problems on systems that detect the resulting DMA read from an invalid address (found on a Power8 guest). Instead, use the DMA address of the dummy page because it will always be

[PATCH v2 2/2] drm/amdgpu: fix bad DMA from INTERRUPT_CNTL2

2019-11-17 Thread Sam Bobroff
The INTERRUPT_CNTL2 register expects a valid DMA address, but is currently set with a GPU MC address. This can cause problems on systems that detect the resulting DMA read from an invalid address (found on a Power8 guest). Instead, use the DMA address of the dummy page because it will always be

[PATCH v2 0/2] fix bad DMA from INTERRUPT_CNTL2

2019-11-17 Thread Sam Bobroff
A couple of notes: - Initial discussion: https://lists.freedesktop.org/archives/dri-devel/2019-November/244090.html - I have only tested the case that uses r600_irq_init(), but they are all very similar. Cheers, Sam. Patch set changelog follows: Patch set v2: Patch 1/2: drm/radeon: fix bad

Re: [PATCH 1/1] drm/radeon drm/amdgpu: fix bad DMA from INTERRUPT_CNTL2

2019-11-17 Thread Sam Bobroff
On Fri, Nov 15, 2019 at 09:58:18AM -0500, Alex Deucher wrote: > On Thu, Nov 14, 2019 at 9:05 PM Sam Bobroff wrote: > > > > The INTERRUPT_CNTL2 register expects a valid DMA address, but is > > currently set with a GPU MC address. This can cause problems on > > systems that detect the resulting