[PATCH v3 33/33] docs: EDID/HOWTO.txt: convert it and rename to howto.rst

2019-06-08 Thread Mauro Carvalho Chehab
Sphinx need to know when a paragraph ends. So, do some adjustments at the file for it to be properly parsed. At its new index.rst, let's add a :orphan: while this is not linked to the main index.rst file, in order to avoid build warnings. that's said, I believe that this file should be moved to t

[PATCH v3 16/33] docs: locking: convert docs to ReST and rename to *.rst

2019-06-08 Thread Mauro Carvalho Chehab
Convert the locking documents to ReST and add them to the kernel development book where it belongs. Most of the stuff here is just to make Sphinx to properly parse the text file, as they're already in good shape, not requiring massive changes in order to be parsed. The conversion is actually: -

[Bug 110862] Dual-monitors invalid state after turning on

2019-06-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110862 Bug ID: 110862 Summary: Dual-monitors invalid state after turning on Product: DRI Version: XOrg git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW

[Bug 110659] pageflipping seems to cause jittering on mouse input when running Hitman 2 in Wine/DXVK with amdgpu.dc=1

2019-06-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110659 --- Comment #22 from tempel.jul...@gmail.com --- The Witcher 3 is affected as well (a bit less obvious, but still quite bad vs. modesetting or amdgpu.dc=0). So, it seems this is a real dealbreaker for playing games on Linux, which imho justifies

[Bug 110659] pageflipping seems to cause jittering on mouse input when running Hitman 2 in Wine/DXVK with amdgpu.dc=1

2019-06-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110659 tempel.jul...@gmail.com changed: What|Removed |Added Priority|medium |high -- You are receiving thi

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

2019-06-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110781 --- Comment #61 from Richard Thier --- I still get some slowdown when playing Mount&Blade: Warband which worked before, but there is some chances it is something else or not even in mesa. On my last system I was playing it with wine 1.8 and now

Re: [PATCH] drm/fb-helper: Unexport cmdline helpers

2019-06-08 Thread Noralf Trønnes
Den 07.06.2019 20.52, skrev Daniel Vetter: > No longer needed since the i915 initial config logic was pulled into > the shared helper by Noralf. > I'm fixing this when I move the modeset code to drm_client. I hope I can apply the remaining bits this week (sent a v8). The CI gave me a failure on

[PATCH v8 3/5] drm/fb-helper: Move out modeset config code

2019-06-08 Thread Noralf Trønnes
No functional changes, just moving code as-is and fixing includes. Signed-off-by: Noralf Trønnes Reviewed-by: Maxime Ripard Reviewed-by: Sam Ravnborg --- drivers/gpu/drm/drm_client_modeset.c | 707 ++- drivers/gpu/drm/drm_fb_helper.c | 692 -

[PATCH v8 1/5] drm/fb-helper: Remove drm_fb_helper_connector

2019-06-08 Thread Noralf Trønnes
All drivers add all their connectors so there's no need to keep around an array of available connectors. Instead we just put the useable (not writeback) connectors in a temporary array using drm_client_for_each_connector_iter() everytime we probe the outputs. Other places where it's necessary to lo

[PATCH v8 5/5] drm/todo: Add bootsplash entry

2019-06-08 Thread Noralf Trønnes
Ease entry for anyone wanting to pick up the bootsplash work by providing a couple of pointers. v2: Add Sam as contact (Sam) Signed-off-by: Noralf Trønnes Reviewed-by: Paul Kocialkowski Reviewed-by: Sam Ravnborg --- Documentation/gpu/todo.rst | 15 +++ 1 file changed, 15 insertion

[PATCH v8 4/5] drm/client: Hack: Add bootsplash example

2019-06-08 Thread Noralf Trønnes
An example to showcase the client API. TODO: - A bootsplash client needs a way to tell drm_fb_helper to stay away, otherwise it will chime in on setup and hotplug. Most DRM drivers register fbdev before calling drm_dev_register() (the generic emulation is an exception). This have to be rever

[PATCH v8 2/5] drm/fb-helper: Prepare to move out modeset config code

2019-06-08 Thread Noralf Trønnes
This prepares the modeset code so it can be moved out as-is in the next patch. v3: Remove stray newline Signed-off-by: Noralf Trønnes Reviewed-by: Maxime Ripard Reviewed-by: Sam Ravnborg --- drivers/gpu/drm/drm_fb_helper.c | 62 +++-- include/drm/drm_fb_helper.h

[PATCH v8 0/5] drm/fb-helper: Move modesetting code to drm_client

2019-06-08 Thread Noralf Trønnes
This moves the modesetting code from drm_fb_helper to drm_client so it can be shared by all internal clients. Let's see what the CI says about the remaining patches. I have added the bootsplash todo entry patch adding Sam as contact. Noralf. Noralf Trønnes (5): drm/fb-helper: Remove drm_fb_hel

[PATCH 1/2] drm: panels: Add MAINTAINERS entry for LVDS panel driver

2019-06-08 Thread Laurent Pinchart
As the DRM LVDS panel driver uses a different approach to DT bindings compared to what Thierry Reding advocates, add a specific MAINTAINERS entry to avoid bothering Thierry with requests related to that driver. Signed-off-by: Laurent Pinchart --- MAINTAINERS | 8 1 file changed, 8 inser

[PATCH 2/2] devicetree/bindings: display: Merge panel.txt with panel-common.txt

2019-06-08 Thread Laurent Pinchart
The two files were added concurrently and both store common panel properties. Merge them together. Suggested-by: Emil Velikov Signed-off-by: Laurent Pinchart --- .../devicetree/bindings/display/panel/panel-common.txt | 6 ++ Documentation/devicetree/bindings/display/panel/panel.txt |

[GIT PULL FOR v5.3] R-Car DU changes, v2

2019-06-08 Thread Laurent Pinchart
15:47:09 -0700) are available in the Git repository at: git://linuxtv.org/pinchartl/media.git tags/du-next-20190608-2 for you to fetch changes up to cb5f15b711d3ace7b29369657487f1281a4a5eac: drm: rcar-du: Add support for missing 16-bit RGB1555 formats (2019-06-08 16:36:41

Re: [PATCH 2/3] drm/i915/dsi: Move vlv/icl_dphy_param_init call out of intel_dsi_vbt_init (v2)

2019-06-08 Thread Hans de Goede
Hi all, On 05-06-19 20:37, Ville Syrjälä wrote: On Wed, Jun 05, 2019 at 08:17:34PM +0200, Hans de Goede wrote: The vlv/icl_dphy_param_init calls do various calculations to set dphy parameters based on the pclk. Move the calling of vlv/icl_dphy_param_init to vlv_dsi_init to give vlv_dsi_init a

Re: [PATCH v2 2/2] drm: panel-orientation-quirks: Add quirk for GPD MicroPC

2019-06-08 Thread Hans de Goede
Hi, On 07-06-19 16:54, Maxime Ripard wrote: On Thu, Jun 06, 2019 at 04:03:57PM +0200, Hans de Goede wrote: Hi, On 06-06-19 15:38, Maxime Ripard wrote: On Thu, Jun 06, 2019 at 01:13:40PM +0200, Hans de Goede wrote: On 06-06-19 11:14, Maxime Ripard wrote: On Fri, May 24, 2019 at 02:57:59PM +0

Re: [PATCH] drm/amdgpu: Fix bounds checking in amdgpu_ras_is_supported()

2019-06-08 Thread Koenig, Christian
Yes, that is undefined behavior what you do here. See here as well https://stackoverflow.com/questions/11270492/what-does-the-c-standard-say-about-bitshifting-more-bits-than-the-width-of-type. Christian. Am 08.06.19 um 14:27 schrieb Pan, Xinhui: do you mean that something like 1<<65 might be a

Re: [PATCH] drm/amdgpu: Fix bounds checking in amdgpu_ras_is_supported()

2019-06-08 Thread Pan, Xinhui
do you mean that something like 1<<65 might be a none zero value? From: Dan Carpenter Sent: Saturday, June 8, 2019 5:23:57 PM To: Deucher, Alexander; Pan, Xinhui Cc: Koenig, Christian; Zhou, David(ChunMing); David Airlie; Daniel Vetter; Quan, Evan; Zhu, James; amd

Re: [PATCH] drm: remove the newline for CRC source name.

2019-06-08 Thread Sam Ravnborg
Hi Dingchen. Patch is much better now. On Fri, Jun 07, 2019 at 05:38:17PM -0400, Dingchen Zhang wrote: > userspace may transfer a newline, and this terminating newline > is replaced by a '\0' to avoid followup issues. > > 'n-1' is the index to replace the newline of CRC source name. I am a littl

[PATCH AUTOSEL 4.19 23/49] drm/etnaviv: lock MMU while dumping core

2019-06-08 Thread Sasha Levin
From: Lucas Stach [ Upstream commit 1396500d673bd027683a0609ff84dca7eb6ea2e7 ] The devcoredump needs to operate on a stable state of the MMU while it is writing the MMU state to the coredump. The missing lock allowed both the userspace submit, as well as the GPU job finish paths to mutate the MM

Re: [PATCH 02/34] gpu: drm: bridge: sii9234: simplify getting the adapter of a client

2019-06-08 Thread Laurent Pinchart
Hi Wolfram, Thank you for the patch. On Sat, Jun 08, 2019 at 12:55:41PM +0200, Wolfram Sang wrote: > We have a dedicated pointer for that, so use it. Much easier to read and > less computation involved. > > Signed-off-by: Wolfram Sang Reviewed-by: Laurent Pinchart > --- > > Please apply to

[PATCH AUTOSEL 5.1 36/70] drm/etnaviv: lock MMU while dumping core

2019-06-08 Thread Sasha Levin
From: Lucas Stach [ Upstream commit 1396500d673bd027683a0609ff84dca7eb6ea2e7 ] The devcoredump needs to operate on a stable state of the MMU while it is writing the MMU state to the coredump. The missing lock allowed both the userspace submit, as well as the GPU job finish paths to mutate the MM

[1/2] dt-bindings: display: panel: add AUO kd101n80-45na panel bindings

2019-06-08 Thread Jitao Shi
Add documentation for auo kd101n80-45na panel. Signed-off-by: Jitao Shi --- .../display/panel/auo,kd101n80-45na.txt | 34 +++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/auo,kd101n80-45na.txt diff --git a/Documenta

[2/2] drm/panel: support for AUO kd101n80-45na wuxga dsi video mode panel

2019-06-08 Thread Jitao Shi
Add driver for AUO kd101n80-45na panel. This panel supports the resolution 1200x1920, dsi video mode and 4 lanes. Signed-off-by: Jitao Shi --- drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile| 1 + .../gpu/drm/panel/panel-auo-kd101n80-45na.c

[Bug 201273] Fatal error during GPU init amdgpu RX560

2019-06-08 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=201273 --- Comment #56 from Marco (rodomar...@protonmail.com) --- (In reply to quirin.blaeser from comment #55) > No crash since upgrade to v5.1.0, a month ago. Same here. Haven’t seen any crashes lately. -- You are receiving this mail because: You ar

Re: WARNING in bpf_jit_free

2019-06-08 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:79c3ba32 Merge tag 'drm-fixes-2019-06-07-1' of git://anong.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1201b971a0 kernel config: https://syzkaller.appspot.com/x/.config?x=60564c

[PATCH 00/34] treewide: simplify getting the adapter of an I2C client

2019-06-08 Thread Wolfram Sang
While preparing a refactoring series, I noticed that some drivers use a complicated way of determining the adapter of a client. The easy way is to use the intended pointer: client->adapter These drivers do: to_i2c_adapter(client->dev.parent); The I2C core populates the parent pointer as:

[PATCH] drm/amdgpu: Fix bounds checking in amdgpu_ras_is_supported()

2019-06-08 Thread Dan Carpenter
The "block" variable can be set by the user through debugfs, so it can be quite large which leads to shift wrapping here. This means we report a "block" as supported when it's not, and that leads to array overflows later on. This bug is not really a security issue in real life, because debugfs is

[Bug 201273] Fatal error during GPU init amdgpu RX560

2019-06-08 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=201273 --- Comment #55 from quirin.blae...@freenet.de --- No crash since upgrade to v5.1.0, a month ago. -- You are receiving this mail because: You are watching the assignee of the bug. ___ dri-devel mailing

[PATCH v2 1/1] drm/exynos: drop drmP.h usage

2019-06-08 Thread Sam Ravnborg
Drop use of the deprecated drmP.h file. Replace with forwards / externals as appropriate. While touching the list of include files divide them up in blocks and sort them. Signed-off-by: Sam Ravnborg Cc: Inki Dae Cc: Joonyoung Shim Cc: Seung-Woo Kim Cc: Kyungmin Park Cc: David Airlie Cc: Dan

[PATCH v2 0/1] drm/exynos: drop use of drmP.h

2019-06-08 Thread Sam Ravnborg
Drop the use of the deprecated drmP.h header file. Build tested using allyesconfig, allmodconfig for various architectures. v2: - add missing people to recipient list of mail - no change in actual patch Sam Sam Ravnborg (1): drm/exynos: drop drmP.h usage drivers/gpu/drm/exynos/e

[PATCH v1 2/4] drm/mga: make header file self contained

2019-06-08 Thread Sam Ravnborg
This makes migration away from drmP.h simple as we do not need to duplicate dependencies required by mga_drv.h Signed-off-by: Sam Ravnborg Cc: Thomas Zimmermann Cc: Daniel Vetter Cc: David Airlie --- drivers/gpu/drm/mga/mga_drv.h | 13 + 1 file changed, 13 insertions(+) diff --gi

[PATCH v1 4/4] drm/mgag200: drop use of drmP.h

2019-06-08 Thread Sam Ravnborg
Drop use of the deprecated drmP.h header file. Replace with necessary includ files to fix build. Signed-off-by: Sam Ravnborg Cc: Thomas Zimmermann Cc: Daniel Vetter Cc: David Airlie --- drivers/gpu/drm/mgag200/mgag200_cursor.c | 3 ++- drivers/gpu/drm/mgag200/mgag200_drv.c| 10 +++---

[PATCH v1 3/4] drm/mga: drop use of drmP.h

2019-06-08 Thread Sam Ravnborg
Drop the use of the deprecated drmP.h header file. Clean up list of include files and sort them. Signed-off-by: Sam Ravnborg Cc: Thomas Zimmermann Cc: Daniel Vetter Cc: David Airlie --- drivers/gpu/drm/mga/mga_dma.c | 2 -- drivers/gpu/drm/mga/mga_drv.c | 7 +++ drivers/gpu/drm/mga/mg

[PATCH v1 0/4] drm/{mga,mgag200}: drop use of drmP.h

2019-06-08 Thread Sam Ravnborg
Drop use of the deprecated drmP.h header file. Also drop use of drm_os_linux.h as it is deprecated too, and was pulled in via drmP.h Build tested with allmodconfig, allyesconfig on various architectures. Signed-off-by: Sam Ravnborg Sam Ravnborg (4): drm/mga: drop dependency on drm_os_linu

[PATCH v1 1/4] drm/mga: drop dependency on drm_os_linux.h

2019-06-08 Thread Sam Ravnborg
Opencode all macros used from the deprecated drm_os_linux.h header file. The DRM_WAIT_ON used 3 * HZ as timeout. This was translated to 30 msec. Signed-off-by: Sam Ravnborg Cc: Thomas Zimmermann Cc: Daniel Vetter Cc: David Airlie --- drivers/gpu/drm/mga/mga_dma.c | 12 drivers/

[PATCH v1 5/7] drm/radeon: prepare header files for drmP.h removal

2019-06-08 Thread Sam Ravnborg
While removing drmP.h from all .c files the list of header files are also sorted alphabetically. To allow this adjust the header files to pull in the dependencies they needed to allow this. Signed-off-by: Sam Ravnborg Cc: Alex Deucher Cc: "Christian König" Cc: "David (ChunMing) Zhou" Cc: David

[PATCH v1 4/7] drm/radeon: drop drmP.h from header files

2019-06-08 Thread Sam Ravnborg
To ease conversion of .c files drop include of drmP.h from all header files. And fix-up build errors caused by this. Signed-off-by: Sam Ravnborg Cc: Alex Deucher Cc: "Christian König" Cc: "David (ChunMing) Zhou" Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/radeon/atom.c |

[PATCH v1 2/7] drm: drm_debugfs.h self-contained

2019-06-08 Thread Sam Ravnborg
While removing drmP.h from drm/radeon a few files ended up including drm_debugfs.h as the first file. This failed build due to missing dependencies in drm_debugfs.h. Add the missing include files. Signed-off-by: Sam Ravnborg Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airl

[PATCH v1 6/7] drm/radeon: drop use of drmP.h (1/2)

2019-06-08 Thread Sam Ravnborg
Drop use of drmP.h in all .c files named radeon*c. To ease review a little drmP.h removal was divided in two commits. Signed-off-by: Sam Ravnborg Cc: Alex Deucher Cc: "Christian König" Cc: "David (ChunMing) Zhou" Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/radeon/radeon_acpi.c

[PATCH v1 7/7] drm/radeon: drop use of drmP.h (2/2)

2019-06-08 Thread Sam Ravnborg
Drop use of drmP.h in remaining .c files. To ease review a little the drmP.h removal was divided in two commits. Signed-off-by: Sam Ravnborg Cc: Alex Deucher Cc: "Christian König" Cc: "David (ChunMing) Zhou" Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/radeon/atombios_crtc.c |

[PATCH v1 3/7] drm/radeon: drop dependency on drm_os_linux.h

2019-06-08 Thread Sam Ravnborg
The drm_os_linux.h header file is deprecated. Drop all uses of symbols from this file. All macros are just opencoded. A few adjustments to include files was required as the obsolete drm_os_linux.h included these headers. Signed-off-by: Sam Ravnborg Cc: Alex Deucher Cc: "Christian König" Cc: "Da

[PATCH v1 1/7] drm: drm_crtc.h self-contained

2019-06-08 Thread Sam Ravnborg
While removing drmP.h from drm/radeon a few files ended up including drm_crtc.h as the first file. This failed build due to a missing dependency in drm_crtc.h. Add the missing include file. Signed-off-by: Sam Ravnborg Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc:

[PATCH v1 0/7] drm/radeon: drop obsolete header files

2019-06-08 Thread Sam Ravnborg
This patchset contains updates to two header files in include/drm/. The header files caused build errors due to missing dependencies. Fixed this so others will not be hit by the same. The header file drm_os_linux.h is deprecated and should no longer be used. For radeon it was a simple 1:1 replacem

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

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

[1/2] dt-bindngs: display: panel: Add BOE tv101wum-nl6 panel bindings

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