Re: RFC: page-flip with damage?

2017-10-12 Thread Pekka Paalanen
On Thu, 12 Oct 2017 10:51:22 -0400 Sean Paul wrote: > On Thu, Oct 12, 2017 at 01:55:40PM +0300, Pekka Paalanen wrote: > > On Tue, 26 Sep 2017 09:07:45 -0700 > > Thomas Hellstrom wrote: > > > > > On 09/26/2017 01:18 AM, Daniel Vetter wrote: > > > > On Sun, Sep 24, 2017 at 07:41:45PM +0200, T

Re: [PULL] drm-intel-next

2017-10-12 Thread Dave Airlie
On 13 October 2017 at 01:23, Jani Nikula wrote: > On Wed, 11 Oct 2017, Jani Nikula wrote: >> Hi Dave, more v4.15 features. > > Okay, so I suck and there's still one more batch to come after this. I'm > a bit out of rhythm here. When do you want the pull request for that at > the latest? Around r

[PATCH] drm/plane: drop num_overlay_planes (v3)

2017-10-12 Thread Dave Airlie
From: Dave Airlie In order to implement plane leasing we need to count things, just make the code consistent with the counting code currently used for counting crtcs/encoders/connectors and drop the need for num_overlay_planes. v2: don't forget to assign plane_ptr. (keithp) v3: use correct bound

[Bug 196615] amdgpu - resume from suspend is no longer working on rx480

2017-10-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=196615 --- Comment #24 from klavkala...@gmail.com --- I would suggest to remove the fix in all kernel versions until we can confirm it doesn't break anything. Having an LTS kernel break suspend/resume for polaris users doesn't sound to good. -- You are

[Bug 102655] [CI][HSW] igt@gem_flink_race@flink_close - Failed assertion: obj_count == 0

2017-10-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102655 --- Comment #4 from Marta Löfstedt --- Also, CI_DRM_3223 HSW-shards (prime_self_import:1525) CRITICAL: Test assertion failure function test_export_close_race, file prime_self_import.c:363: (prime_self_import:1525) CRITICAL: Failed assertion: o

Re: [Outreachy kernel] [PATCH] drm: Replace kzalloc with kcalloc

2017-10-12 Thread Julia Lawall
On Fri, 13 Oct 2017, Harsha Sharma wrote: > Prefer kcalloc over kzalloc to allocate an array. > This patch fixes checkcpatch issue. > > Signed-off-by: Harsha Sharma > --- > drivers/gpu/drm/drm_crtc_helper.c | 4 ++-- > drivers/gpu/drm/drm_fb_helper.c| 2 +- > drivers/gpu/drm/drm_plane_hel

[PATCH v2 2/2] vgaarb: Factor out EFI and fallback default device selection

2017-10-12 Thread Bjorn Helgaas
The default VGA device is normally set in vga_arbiter_add_pci_device() when we call it for the first enabled device that can be accessed with the legacy VGA resources ([mem 0xa-0xb], etc.) That default device can be overridden by an EFI device that owns the boot framebuffer. As a fallback

[PATCH v2 1/2] vgaarb: Select a default VGA device even if there's no legacy VGA

2017-10-12 Thread Bjorn Helgaas
Daniel Axtens reported that on the HiSilicon D05 board, the VGA device is behind a bridge that doesn't support PCI_BRIDGE_CTL_VGA, so the VGA arbiter never selects it as the default, which means Xorg auto-detection doesn't work. VGA is a legacy PCI feature: a VGA device can respond to addresses, e

[PATCH v2 0/2] vgaarb: Select fallback default VGA device

2017-10-12 Thread Bjorn Helgaas
These patches are supposed to fix a problem Daniel Axtens found on the HiSilicon D05 board. The VGA device there is behind a bridge that doesn't support PCI_BRIDGE_CTL_VGA, so the arbiter never selects the device as the default. The first patch extends the arbiter so that if it can't find an enab

Re: [PATCH v3] drm: drm_vblank_cleanup: WARN when refcount > 0

2017-10-12 Thread PrasannaKumar Muralidharan
Hi, On 13 October 2017 at 08:58, PrasannaKumar Muralidharan wrote: > Warn when refcount > 0 in drm_vblank_cleanup. > > Signed-off-by: PrasannaKumar Muralidharan > --- > drivers/gpu/drm/drm_vblank.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/drm_vblank.c b/drivers

[PATCH v3] drm: drm_vblank_cleanup: WARN when refcount > 0

2017-10-12 Thread PrasannaKumar Muralidharan
Warn when refcount > 0 in drm_vblank_cleanup. Signed-off-by: PrasannaKumar Muralidharan --- drivers/gpu/drm/drm_vblank.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/drm_vblank.c b/drivers/gpu/drm/drm_vblank.c index 70f2b95..3e61aeb 100644 --- a/drivers/gpu/drm/drm_vblan

Re: [PATCH] drm/rockchip: add PINCTRL dependency for LVDS

2017-10-12 Thread Mark yao
On 2017年10月05日 20:09, Arnd Bergmann wrote: The new driver fails to build when CONFIG_PINCTRL is disabled: drivers/gpu/drm/rockchip/rockchip_lvds.c: In function 'rockchip_lvds_grf_config': drivers/gpu/drm/rockchip/rockchip_lvds.c:229:39: error: dereferencing pointer to incomplete type 'struct d

[radeon-alex:drm-next-4.15-wip 32/47] drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:335:20: error: dereferencing pointer to incomplete type

2017-10-12 Thread kbuild test robot
tree: git://people.freedesktop.org/~agd5f/linux.git drm-next-4.15-wip head: 1dffdb582aecb97a50f6a7feeb58f23488cd7ed6 commit: 6b3dbb0ca422ae70e4c6d8fd273d5007026b [32/47] drm/amdgpu: SR-IOV data exchange between PF&VF config: i386-randconfig-i0-201741 (attached as .config) compiler: gcc-4.8

Re: [PATCH v2 1/3] drm: Extract drm_debug.[hc]

2017-10-12 Thread kbuild test robot
Hi Haneen, [auto build test WARNING on drm/drm-next] [also build test WARNING on v4.14-rc4 next-20171009] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Haneen-Mohammed/drm-Move-debug-macros-out

[PATCH 0/5]: drm: Add drm mode object leases

2017-10-12 Thread Keith Packard
New since last time: * Don't lease encoders * Do lease planes * Automatically lease primary and cursor planes for apps which don't set universal_planes * Restrict leases to only contain objects which are actually leasable (connectors, crtcs and planes) * Drop the patch which changes per

[PATCH 2/5] drm: Add new LEASE debug level

2017-10-12 Thread Keith Packard
Separate out lease debugging from the core. Signed-off-by: Keith Packard --- drivers/gpu/drm/drm_drv.c | 3 ++- include/drm/drmP.h| 4 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index c0292e5d7281..a934fd5e7e55

[PATCH 3/5] drm: Add drm_object lease infrastructure [v4]

2017-10-12 Thread Keith Packard
This provides new data structures to hold "lease" information about drm mode setting objects, and provides for creating new drm_masters which have access to a subset of the available drm resources. An 'owner' is a drm_master which is not leasing the objects from another drm_master, and hence 'owns

[PATCH 4/5] drm: Check mode object lease status in all master ioctl paths [v3]

2017-10-12 Thread Keith Packard
Attempts to modify un-leased objects are rejected with an error. Information returned about unleased objects is modified to make them appear unusable and/or disconnected. Changes for v2 as suggested by Daniel Vetter : * With the change in the __drm_mode_object_find API to pass the file_priv a

[PATCH 5/5] drm: Add four ioctls for managing drm mode object leases [v6]

2017-10-12 Thread Keith Packard
drm_mode_create_lease Creates a lease for a list of drm mode objects, returning an fd for the new drm_master and a 64-bit identifier for the lessee drm_mode_list_lesees List the identifiers of the lessees for a master file drm_mode_get_lease List the leased obje

[PATCH 1/5] drm/plane: drop num_overlay_planes (v2)

2017-10-12 Thread Keith Packard
From: Dave Airlie In order to implement plane leasing we need to count things, just make the code consistent with the counting code currently used for counting crtcs/encoders/connectors and drop the need for num_overlay_planes. v2: don't forget to assign plane_ptr. (keithp) Signed-off-by: Dave

[PATCH] drm/plane: drop num_overlay_planes (v2)

2017-10-12 Thread Dave Airlie
From: Dave Airlie In order to implement plane leasing we need to count things, just make the code consistent with the counting code currently used for counting crtcs/encoders/connectors and drop the need for num_overlay_planes. v2: don't forget to assign plane_ptr. (keithp) Signed-off-by: Dave

[PATCH 2/3] drm: Reorganize drm_pending_event to support future event types [v2]

2017-10-12 Thread Keith Packard
Place drm_event_vblank in a new union that includes that and a bare drm_event structure. This will allow new members of that union to be added in the future without changing code related to the existing vbl event type. Assignments to the crtc_id field are now done when the event is allocated, rath

[PATCH 1/3] drm: Widen vblank count to 64-bits [v3]

2017-10-12 Thread Keith Packard
This modifies the datatypes used by the vblank code to provide 64 bits of vblank count. The driver interfaces have been left using 32 bits of vblank count; all of the code necessary to widen that value for the user API was already included to handle devices returning fewer than 32-bits. This will

[PATCH 0/3] drm: Add new vblank ioctls [v4]

2017-10-12 Thread Keith Packard
This series removes portions of the first patch which switched to ktime_t as Arnd Bergmann posted a cleaner patch which did only that. Otherwise, it's the same. -keith ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.

[PATCH 3/3] drm: Add CRTC_GET_SEQUENCE and CRTC_QUEUE_SEQUENCE ioctls [v3]

2017-10-12 Thread Keith Packard
These provide crtc-id based functions instead of pipe-number, while also offering higher resolution time (ns) and wider frame count (64) as required by the Vulkan API. v2: * Check for DRIVER_MODESET in new crtc-based vblank ioctls Failing to check this will oops the driver. * Ensure v

Re: [PATCH 2/2] drm: Update old comment style

2017-10-12 Thread kbuild test robot
Hi Haneen, [auto build test WARNING on drm/drm-next] [also build test WARNING on v4.14-rc4 next-20171009] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Haneen-Mohammed/drm-Extract-drm_debug-hc/

[radeon-alex:amd-staging-drm-next 138/173] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1644:14: error: implicit declaration of function 'acquire_first_split_pipe'

2017-10-12 Thread kbuild test robot
tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next head: 1b006d838f78d7822f606087fa12ea7ad2c5753b commit: 5b5d50de60e4b3b9ffa578f044f2a69d4285 [138/173] drm/amd/display: Fixed extend to second screen mode hang config: ia64-allmodconfig (attached as .config) compiler:

[PATCH] drm/plane: drop num_overlay_planes

2017-10-12 Thread Dave Airlie
From: Dave Airlie In order to implement plane leasing we need to count things, just make the code consistent with the counting code currently used for counting crtcs/encoders/connectors and drop the need for num_overlay_planes. Signed-off-by: Dave Airlie --- drivers/gpu/drm/drm_mode_config.c |

[radeon-alex:amd-staging-drm-next 164/1021] drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/gpio_service.c:134:2-3: Unneeded semicolon

2017-10-12 Thread kbuild test robot
tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next head: 43dd6fde5df450938568885249b836eb376e2ad6 commit: 80be23c578680168a0c710be9c0bddcf65268fcb [164/1021] drm/amd/dc: Add dc display driver (v2) coccinelle warnings: (new ones prefixed by >>) >> drivers/gpu/drm/amd/am

[PATCH] drm/amd/dc: fix semicolon.cocci warnings

2017-10-12 Thread kbuild test robot
drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/gpio_service.c:134:2-3: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: 80be23c57868 ("drm/amd/dc: Add dc display driver (v2)") CC: Harry Wentland Signed-off-by: Fengguang Wu --- gpio_

Re: [PATCH 1/2] drm: Extract drm_debug.[hc]

2017-10-12 Thread kbuild test robot
Hi Haneen, [auto build test WARNING on drm/drm-next] [also build test WARNING on v4.14-rc4 next-20171009] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Haneen-Mohammed/drm-Extract-drm_debug-hc/

[radeon-alex:amd-staging-drm-next 12/173] drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/gpio_service.c:134:3-8: WARNING: NULL check before freeing functions like kfree, debugfs_remove, debugfs_remove_

2017-10-12 Thread kbuild test robot
tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next head: 1b006d838f78d7822f606087fa12ea7ad2c5753b commit: f09cd1f46388080272561fa2c61d1b51598ef0e6 [12/173] drm/amd/display: Use kernel alloc/free coccinelle warnings: (new ones prefixed by >>) >> drivers/gpu/drm/amd/amdg

[PATCH] drm/amd/display: fix ifnullfree.cocci warnings

2017-10-12 Thread kbuild test robot
drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/gpio_service.c:134:3-8: WARNING: NULL check before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider reorganizing relevant code to avoid passing NULL values. drivers/gpu/drm/amd/amdgp

[PATCH] tracing, drm/i915: Remove unused trace events

2017-10-12 Thread Steven Rostedt
From: Steven Rostedt (VMware) Commit ce8daef3580 ("drm/i915: Remove dead i915_gem_evict_everything()") removed the only instances of trace_i915_gem_evict_everything. Commit a7b9761d0a ("drm/i915: Split i915_gem_flush_ring() into seperate invalidate/flush funcs") removed the only instances of tra

Re: [PATCH v11 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-12 Thread kbuild test robot
Hi Meghana, [auto build test WARNING on v4.14-rc3] [also build test WARNING on next-20171009] [cannot apply to drm/drm-next backlight/for-backlight-next drm-exynos/exynos-drm/for-next] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: ht

[Bug 101900] No HDMI HBR audio on Polaris (no TrueHD, no Atmos, no Neo:X, no HD Master audio)

2017-10-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101900 --- Comment #10 from Timofonic --- Any news? This would make AMD hardware more interesting to be used on my future workstation + HTPC setup. -- You are receiving this mail because: You are the assignee for the bug._

[PATCH 3/6] drm/amd/display: Unify DRM state variable namings.

2017-10-12 Thread sunpeng.li
From: "Leo (Sunpeng) Li" Use new_*_state and old_*_state for their respective new/old DRM object states. Signed-off-by: Leo (Sunpeng) Li --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 80 +++ 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/drivers/g

[PATCH 6/6] drm/amd/display: Remove useless pcrtc pointer

2017-10-12 Thread sunpeng.li
From: "Leo (Sunpeng) Li" in amdgpu_dm_atomic_commit_tail. Just use crtc instead. Signed-off-by: Leo (Sunpeng) Li --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/

[PATCH 0/6] Use new DRM API where possible, and cleanups.

2017-10-12 Thread sunpeng.li
From: "Leo (Sunpeng) Li" Hi Dave, This series reworks the previous patch. Patch 1 is a v2 of the previous, and additional patches are from the feedback received. They apply on top of your drm-next-amd-dc-staging branch. Thanks, Leo Leo (Sunpeng) Li (6): drm/amd/display: Use DRM new-style obj

[PATCH 4/6] drm/amd/display: Unify amdgpu_dm state variable namings.

2017-10-12 Thread sunpeng.li
From: "Leo (Sunpeng) Li" Use dm_new_*_state and dm_old_*_state for their respective amdgpu_dm new and old object states. Helps with readability, and enforces use of new DRM api (choose either new, or old). Signed-off-by: Leo (Sunpeng) Li --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c |

[PATCH 5/6] drm/amd/display: Fix typo

2017-10-12 Thread sunpeng.li
From: "Leo (Sunpeng) Li" undersacn -> underscan Signed-off-by: Leo (Sunpeng) Li --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_

[PATCH 2/6] drm/amd/display: Use new DRM API where possible

2017-10-12 Thread sunpeng.li
From: "Leo (Sunpeng) Li" To conform to DRM's new API, we should not be accessing a DRM object's internal state directly. Rather, the DRM for_each_old/new_* iterators, and drm_atomic_get_old/new_* interface should be used. This is an ongoing process. For now, update the DRM-facing atomic function

[PATCH v2 1/6] drm/amd/display: Use DRM new-style object iterators.

2017-10-12 Thread sunpeng.li
From: "Leo (Sunpeng) Li" Use the correct for_each_new/old_* iterators instead of for_each_* List of affected functions: amdgpu_dm_find_first_crtc_matching_connector: use for_each_new - Old from_state_var flag was always choosing the new state amdgpu_dm_display_resume: use for_each_new

Re: [PATCH 2/6] drm: Allow render nodes to query display objects

2017-10-12 Thread Keith Packard
Daniel Vetter writes: > One more that came up on irc after discussion why this is needed: The > userspace side using this won't work on split gpus where the render node > has 0 displays, and hence where you really need to query the compositor > anyway. Agreed -- using the X connection to get the

Re: [PATCH 2/6] drm: Allow render nodes to query display objects

2017-10-12 Thread Keith Packard
Daniel Vetter writes: > So given the huge possibilities of abuse, do we really, really need all > this, and is there not any way to create a bit of protocol to pass the > relevant data from X to clients? From your presentation is sounded like > current xrandr is (almost) there ... Yeah, it's the

Re: [PATCH 1/3] drm/syncobj: extract two helpers from drm_syncobj_create

2017-10-12 Thread Marek Olšák
Sorry, this codepath is not tested by radeonsi. Marek On Sun, Oct 1, 2017 at 1:20 AM, Zhou, David(ChunMing) wrote: > Could you test and review it? On hand, I have no env. > > Regards, > David Zhou > > 发自坚果 Pro > > Marek Ol?醟 于 2017年9月30日 下午11:56写道: > > The idea sounds good. > > Marek > > On Sat

[Bug 196615] amdgpu - resume from suspend is no longer working on rx480

2017-10-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=196615 --- Comment #23 from klavkala...@gmail.com --- Oh. I didn't realize it worked like that. The same problem happens with all versions of 4.13 and 4.14 I tried so far. -- You are receiving this mail because: You are watching the assignee of the bug

Re: [Nouveau] [PATCH v2] drm/nouveau: Document nouveau support for Tegra in DRIVER_DESC

2017-10-12 Thread Ben Skeggs
On 10/12/2017 09:41 PM, Thierry Reding wrote: > On Sun, Oct 01, 2017 at 10:13:53AM -0400, Rhys Kidd wrote: >> nouveau supports the Tegra K1 and higher after the SoC-based GPUs converged >> with the main GeForce GPU families. >> >> v2: >> - Qualify that support is Tegra K1+ (Martin Peres) >> >> Sign

RE: page-flip with damage?

2017-10-12 Thread Deepak Singh Rawat
Hi Michal, Are you currently working on this feature. I started to look into page flip with damage for VMware drivers. Thanks, Deepak > -Original Message- > From: dri-devel [mailto:dri-devel-boun...@lists.freedesktop.org] On Behalf > Of Michal Lukaszek > Sent: Tuesday, September 26, 20

Re: [PATCH] drm/udl: Fixed problem with UDL adpater reconnection

2017-10-12 Thread Alex Deucher
On Wed, Oct 11, 2017 at 4:41 PM, Robert Tarasov wrote: > Fixed problem with DisplayLink and DisplayLink certified adapters when they > didn't want to work if they were initialized with disconnected DVI cable. Now > udl driver checks and updates adapter's connection state every 10 seconds, as > wel

Re: [PATCH 2/6] drm: Allow render nodes to query display objects

2017-10-12 Thread Daniel Vetter
On Thu, Oct 12, 2017 at 08:41:17PM +0200, Daniel Vetter wrote: > Hi Keith, > > On Tue, Oct 10, 2017 at 05:48:27PM -0700, Keith Packard wrote: > > This allows an application to discover what display resources are > > available before requesting a lease from the X server. > > > > Signed-off-by: Kei

[ANNOUNCE] libdrm 2.4.84

2017-10-12 Thread Marek Olšák
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 libdrm 2.4.84 has been released. Alex Deucher (1): tests/amdgpu: add missing header to SOURCES Andrey Grodzovsky (1): amdgpu: Add deadlock detection test suit. Anuj Phogat (1): intel: Change a KBL pci id to GT2 from GT1.5 Chris

Re: [PATCH v2] drm/vc4: Add the DRM_IOCTL_VC4_GEM_MADVISE ioctl

2017-10-12 Thread Eric Anholt
Boris Brezillon writes: > This ioctl will allow us to purge inactive userspace buffers when the > system is running out of contiguous memory. > > For now, the purge logic is rather dumb in that it does not try to > release only the amount of BO needed to meet the last CMA alloc request > but inst

linux-next: manual merge of the drm-intel tree with the drm-intel-fixes tree

2017-10-12 Thread Mark Brown
Hi all, Today's linux-next merge of the drm-intel tree got a conflict in: drivers/gpu/drm/i915/i915_gem.c between commit: b85577b72837ee ("drm/i915: Order two completing nop_submit_request") from the drm-intel-fixes tree and commit: af7a8ffad9c58d ("drm/i915: Use rcu instead of stop_mac

[Bug 103066] Empire boundaries do not show up in Stellaris.

2017-10-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103066 --- Comment #1 from Dylan Stephano-Shachter --- Another piece of helpful info might be that when I reduce the graphics to low, the empire borders appear. However, the sector borders still do not show up. -- You are receiving this mail because:

Re: [PATCH 2/6] drm: Allow render nodes to query display objects

2017-10-12 Thread Daniel Vetter
Hi Keith, On Tue, Oct 10, 2017 at 05:48:27PM -0700, Keith Packard wrote: > This allows an application to discover what display resources are > available before requesting a lease from the X server. > > Signed-off-by: Keith Packard For reasons I've kidna stopped reviewing these patches. I don't

linux-next: manual merge of the drm-intel tree with the drm-intel-fixes tree

2017-10-12 Thread Mark Brown
Hi all, Today's linux-next merge of the drm-intel tree got a conflict in: drivers/gpu/drm/i915/intel_display.c between commit: 7b50f7b24cd6c ("rm/i915: Read timings from the correct transcoder in intel_crtc_mode_get()") from the drm-intel-fixes tree and commit: de330815677d8 ("drm/i9

Re: [PATCH v2 01/10] drm/panel: Keep track of enabled/prepared

2017-10-12 Thread Daniel Vetter
On Thu, Oct 12, 2017 at 01:55:28PM -0400, Sean Paul wrote: > This patch adds state tracking to the drm_panel functions which keep > track of enabled and prepared. If the calls are unbalanced, a WARNING is > issued. > > The motivation for this change is that a number of panel drivers > (including p

[Bug 103246] PoE: GPU hang with mesa >= 17.2.0 + gallium-nine

2017-10-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103246 Bug ID: 103246 Summary: PoE: GPU hang with mesa >= 17.2.0 + gallium-nine Product: Mesa Version: 17.2 Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW

Re: [PATCH 1/2] drm: vblank: use ktime_t instead of timeval

2017-10-12 Thread Keith Packard
Arnd Bergmann writes: > Overall, this seems good enough, so my patch removes the use of > 'timeval' from the vblank handling altogether and uses ktime_t > consistently, except for the part where we copy the data to user > space structures in the existing format. This patch is better than the por

[PATCH] staging: vboxvideo: Fix reporting invalid suggested-offset-properties

2017-10-12 Thread Hans de Goede
The x and y hints receives from the host are unsigned 32 bit integers and they get set to -1 (0x) when invalid. Before this commit the vboxvideo driver was storing them in an u16 causing the -1 to be truncated to 65535 which, once reported to userspace, was breaking gnome 3.26+ in Wayland m

[PATCH v2 10/10] drm/panel: ls043t1le01: Remove enabled/prepared state

2017-10-12 Thread Sean Paul
They're not necessary for atomic drivers, and drm_panel will WARN if the calls are unbalanced Signed-off-by: Sean Paul --- drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c | 23 --- 1 file changed, 23 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c

[PATCH v2 09/10] drm/panel: p079zca: Remove enabled/prepared state

2017-10-12 Thread Sean Paul
They're not necessary for atomic drivers, and drm_panel will WARN if the calls are unbalanced Signed-off-by: Sean Paul --- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 23 --- 1 file changed, 23 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-innolux-p079zca.c b/dr

[PATCH v2 08/10] drm/panel: simple: Remove enabled/prepared state

2017-10-12 Thread Sean Paul
They're not necessary for atomic drivers, and drm_panel will WARN if the calls are unbalanced Signed-off-by: Sean Paul --- drivers/gpu/drm/panel/panel-simple.c | 24 1 file changed, 24 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/pan

[PATCH v2 07/10] drm/panel: 43wvf1g: Remove enabled/prepared state

2017-10-12 Thread Sean Paul
They're not necessary for atomic drivers, and drm_panel will WARN if the calls are unbalanced Signed-off-by: Sean Paul --- drivers/gpu/drm/panel/panel-seiko-43wvf1g.c | 24 1 file changed, 24 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-seiko-43wvf1g.c b/drive

[PATCH v2 06/10] drm/panel: otm8009a: Properly sequence [un]prepare with backlight

2017-10-12 Thread Sean Paul
I noticed while removing the enabled flag that backlight update checks prepared in such a way that could race with hardware turning on/off. This patch adds a mutex to ensure these races don't happen. In addition to the lock, this patch also renames prepared to initialized to better reflect what it

[PATCH v2 04/10] drm/panel: lq101r1sx01: Remove enabled/prepared state

2017-10-12 Thread Sean Paul
They're not necessary for atomic drivers, and drm_panel will WARN if the calls are unbalanced. Signed-off-by: Sean Paul --- drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c | 23 --- 1 file changed, 23 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c

[PATCH v2 05/10] drm/panel: otm8009a: Remove enabled state

2017-10-12 Thread Sean Paul
It's not necessary for atomic drivers, and drm_panel will WARN if the calls are unbalanced. Signed-off-by: Sean Paul --- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 16 1 file changed, 16 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c b/drive

[PATCH v2 03/10] drm/panel: lt070me05000: Remove enabled/prepared state

2017-10-12 Thread Sean Paul
They're not necessary for atomic drivers, and drm_panel will WARN if the calls are unbalanced. Signed-off-by: Sean Paul --- drivers/gpu/drm/panel/panel-jdi-lt070me05000.c | 23 --- 1 file changed, 23 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-jdi-lt070me05000.c b

[PATCH v2 02/10] drm/panel: vvx10f034n00: Remove enabled/prepared state

2017-10-12 Thread Sean Paul
They're not necessary for atomic drivers, and drm_panel will WARN if the calls are unbalanced. Signed-off-by: Sean Paul --- .../gpu/drm/panel/panel-panasonic-vvx10f034n00.c | 22 -- 1 file changed, 22 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-panasonic-vvx10f03

[PATCH v2 01/10] drm/panel: Keep track of enabled/prepared

2017-10-12 Thread Sean Paul
This patch adds state tracking to the drm_panel functions which keep track of enabled and prepared. If the calls are unbalanced, a WARNING is issued. The motivation for this change is that a number of panel drivers (including panel-simple) all do this to protect their regulator refcounts. The atom

[PATCH v2 00/10] drm/panel: Remove unnecessary enabled/prepared state

2017-10-12 Thread Sean Paul
A number of panel drivers track enabled/prepared state (I suspect to protect regulator refcounts). However, the atomic framework already ensures that prepare/unprepare and enable/disable calls are balanced. This series removes all independent tracking from the drivers and adds a WARNING to the core

Re: [Nouveau] [PATCH 03/10] driver:gpu: return -ENOMEM on allocation failure.

2017-10-12 Thread Daniel Vetter
On Wed, Sep 13, 2017 at 01:02:12PM +0530, Allen Pais wrote: > Signed-off-by: Allen Pais Applied to drm-misc-next, thanks. -Daniel > --- > drivers/gpu/drm/gma500/mid_bios.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/gma500/mid_bios.c > b/drivers/gp

Re: [pull] amdgpu drm-fixes-4.14

2017-10-12 Thread Alex Deucher
On Thu, Oct 12, 2017 at 1:02 PM, Christian König wrote: > Am 12.10.2017 um 18:20 schrieb Michel Dänzer: >> >> On 12/10/17 05:58 PM, Alex Deucher wrote: >>> >>> Hi Dave, >>> >>> One memory management regression fix. >>> >>> The following changes since commit >>> 545036a9944e9d6e50fed4ca03117147c880

[PATCH] drm/ttm: fix the fix for huge compound pages

2017-10-12 Thread Christian König
From: Christian König We don't use compound pages at the moment. Take this into account when freeing them. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_page_alloc.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_

Re: [pull] amdgpu drm-fixes-4.14

2017-10-12 Thread Christian König
Am 12.10.2017 um 18:20 schrieb Michel Dänzer: On 12/10/17 05:58 PM, Alex Deucher wrote: Hi Dave, One memory management regression fix. The following changes since commit 545036a9944e9d6e50fed4ca03117147c880ff71: Merge tag 'drm-misc-fixes-2017-10-11' of git://anongit.freedesktop.org/drm/dr

RE: [pull] amdgpu drm-fixes-4.14

2017-10-12 Thread Deucher, Alexander
> -Original Message- > From: Michel Dänzer [mailto:mic...@daenzer.net] > Sent: Thursday, October 12, 2017 12:21 PM > To: Alex Deucher > Cc: amd-...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; > airl...@gmail.com; Deucher, Alexander > Subject: Re: [pull] amdgpu drm-fixes-4.14 >

Re: [PATCH v12 3/3] drm/tinydrm: Add devres versions of backlight_get

2017-10-12 Thread Noralf Trønnes
Den 12.10.2017 17.57, skrev Meghana Madhyastha: Add devm_backlight_get and the corresponding release function because some drivers use devres versions of functions for requiring device resources. Signed-off-by: Meghana Madhyastha --- Changes in v12: -Move backlight_put() to the patch 2/3 fro

Re: [PATCH v12 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-12 Thread Noralf Trønnes
Den 12.10.2017 17.50, skrev Meghana Madhyastha: Rename tinydrm_of_find_backlight to backlight_get and move it to linux/backlight.c so that it can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v12: -Move backlight_put() to the patch 2/3 from patch 3/3. -Remove #

Re: [PATCH v12 1/3] drm/tinydrm: Move helper functions from tinydrm-helpers to backlight.h

2017-10-12 Thread Noralf Trønnes
Den 12.10.2017 17.28, skrev Meghana Madhyastha: Move the helper functions enable_backlight and disable_backlight from tinydrm-helpers.c to backlight.h as static inline functions so that they can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Please rebase on latest drm-misc,

[PATCH v4 1/3] drm: Add retries for lspcon mode detection

2017-10-12 Thread Shashank Sharma
From the CI builds, its been observed that during a driver reload/insert, dp dual mode read function sometimes fails to read from LSPCON device over i2c-over-aux channel. This patch: - adds some delay and few retries, allowing a scope for these devices to settle down and respond. - changes one e

Re: [PATCH] video: fbdev: radeon: make const array post_divs static, reduces object code size

2017-10-12 Thread Bartlomiej Zolnierkiewicz
On Thursday, October 12, 2017 05:17:49 PM Colin Ian King wrote: > On 12/10/17 17:17, Bartlomiej Zolnierkiewicz wrote: > > > > [ added dri-devel ML to cc: ] > > > > On Tuesday, September 19, 2017 10:32:01 PM Colin King wrote: > >> From: Colin Ian King > >> > >> Don't populate the read-only const

Re: [PATCH] video: fbdev: Fix an errro handling path in 'au1200fb_drv_probe()'

2017-10-12 Thread Bartlomiej Zolnierkiewicz
[ added dri-devel ML to cc: ] On Tuesday, September 12, 2017 07:39:30 AM Christophe JAILLET wrote: > If 'dmam_alloc_attrs()' fails, we must go through the error handling code, > as done elsewhere in this function. Otherwise, there is a resource leak. > > Signed-off-by: Christophe JAILLET > ---

Re: [pull] amdgpu drm-fixes-4.14

2017-10-12 Thread Michel Dänzer
On 12/10/17 05:58 PM, Alex Deucher wrote: > Hi Dave, > > One memory management regression fix. > > The following changes since commit 545036a9944e9d6e50fed4ca03117147c880ff71: > > Merge tag 'drm-misc-fixes-2017-10-11' of > git://anongit.freedesktop.org/drm/drm-misc into drm-fixes (2017-10-12

Re: [PATCH] video: fbdev: radeon: make const array post_divs static, reduces object code size

2017-10-12 Thread Colin Ian King
On 12/10/17 17:17, Bartlomiej Zolnierkiewicz wrote: > > [ added dri-devel ML to cc: ] > > On Tuesday, September 19, 2017 10:32:01 PM Colin King wrote: >> From: Colin Ian King >> >> Don't populate the read-only const array post_divs on the stack, >> nstead make it static. Makes the object code sm

Re: [PATCH] video: fbdev: radeon: make const array post_divs static, reduces object code size

2017-10-12 Thread Bartlomiej Zolnierkiewicz
[ added dri-devel ML to cc: ] On Tuesday, September 19, 2017 10:32:01 PM Colin King wrote: > From: Colin Ian King > > Don't populate the read-only const array post_divs on the stack, > nstead make it static. Makes the object code smaller by 90 bytes: > > Before: >text data bss

Re: [PATCH] video: fbdev: make fb_var_screeninfo static, const and __initconst

2017-10-12 Thread Bartlomiej Zolnierkiewicz
[ added dri-devel & sparclinux MLs to cc: ] On Thursday, September 14, 2017 06:02:14 PM Bhumika Goyal wrote: > Make these structures static as they are not referenced in any other > file. Make them const as they are used only during a copy operation. > Replace __initdata with __initconst in file

[pull] amdgpu drm-fixes-4.14

2017-10-12 Thread Alex Deucher
Hi Dave, One memory management regression fix. The following changes since commit 545036a9944e9d6e50fed4ca03117147c880ff71: Merge tag 'drm-misc-fixes-2017-10-11' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes (2017-10-12 10:38:09 +1000) are available in the git repository at:

[PATCH v12 3/3] drm/tinydrm: Add devres versions of backlight_get

2017-10-12 Thread Meghana Madhyastha
Add devm_backlight_get and the corresponding release function because some drivers use devres versions of functions for requiring device resources. Signed-off-by: Meghana Madhyastha --- Changes in v12: -Move backlight_put() to the patch 2/3 from patch 3/3. drivers/gpu/drm/tinydrm/mi0283qt.c |

[PATCH v12 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-12 Thread Meghana Madhyastha
Rename tinydrm_of_find_backlight to backlight_get and move it to linux/backlight.c so that it can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v12: -Move backlight_put() to the patch 2/3 from patch 3/3. -Remove #if IS_ENABLED(CONFIG_BACKLIGHT_CLASS_DEVICE)..#endif

Re: [PATCH] video: fbdev: sis: make const array specialtv static, reduces object code size

2017-10-12 Thread Bartlomiej Zolnierkiewicz
On Wednesday, September 13, 2017 04:41:37 PM Colin King wrote: > From: Colin Ian King > > Don't populate the const array specialtv on the stack, instead make it > static. Makes the object code smaller by over 1100 bytes: > > Before: >text data bss dec hex filename > 17

[PATCH v12 1/3] drm/tinydrm: Move helper functions from tinydrm-helpers to backlight.h

2017-10-12 Thread Meghana Madhyastha
Move the helper functions enable_backlight and disable_backlight from tinydrm-helpers.c to backlight.h as static inline functions so that they can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v12: -None drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 55 --

[PATCH v12 0/3] Move backlight helper functions from tinydrm-helpers to linux/backlight

2017-10-12 Thread Meghana Madhyastha
Move drm helper functions from tinydrm-helpers to linux/backlight for ease of use by callers in other drivers. Changes in v12: -Move backlight_put() to the patch 2/3 from patch 3/3. -Remove #if IS_ENABLED(CONFIG_BACKLIGHT_CLASS_DEVICE)..#endif because the file is not built if it isn't enabled

Re: [PATCH] drivers/video/fbdev/atyfb: make const arrays static, reduces object code size

2017-10-12 Thread Bartlomiej Zolnierkiewicz
On Wednesday, September 13, 2017 04:03:09 PM Colin King wrote: > From: Colin Ian King > > Don't populate the const arrays ragepro_tbl and ragexl_tbl on the stack, > instead make them static. Makes the object code smaller by over 380 bytes: > > Before: >text data bss dec

Re: [PULL] drm-intel-next

2017-10-12 Thread Jani Nikula
On Wed, 11 Oct 2017, Jani Nikula wrote: > Hi Dave, more v4.15 features. Okay, so I suck and there's still one more batch to come after this. I'm a bit out of rhythm here. When do you want the pull request for that at the latest? BR, Jani. > > Our tooling now supports signed tags, this one is pr

Re: [09/10] driver:video: return -ENOMEM on allocation failure.

2017-10-12 Thread Bartlomiej Zolnierkiewicz
[ cc: list trimmed down do linux-fbdev/dri-devel/linux-kernel ] On Wednesday, September 13, 2017 01:02:18 PM Allen wrote: > Signed-off-by: Allen Pais Patch queued for 4.15 (with patch description fixed to "video: fbdev: matrox: return -ENOMEM on allocation failure"), thanks. Best regards, -- B

Re: [PATCH] drm/vblank: Fix flip event vblank count

2017-10-12 Thread Ville Syrjälä
On Tue, Oct 10, 2017 at 04:33:22PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > On machines where the vblank interrupt fires some time after the start > of vblank (or we just manage to race with the vblank interrupt handler) > we will currently stuff a stale vblank counter value into the

[Bug 196615] amdgpu - resume from suspend is no longer working on rx480

2017-10-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=196615 --- Comment #22 from Alex Deucher (alexdeuc...@gmail.com) --- (In reply to Peter Spiess-Knafl from comment #20) > Alex can you help out here? Why was the patch fixing the suspend/resume > issue removed in 4.13? The fix was only applied to 4.12.

[Bug 196615] amdgpu - resume from suspend is no longer working on rx480

2017-10-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=196615 --- Comment #21 from Peter Spiess-Knafl (p...@autistici.org) --- "git log -p drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c" reveals that the original patch (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?h=linux-4.12.y&i

Re: RFC: page-flip with damage?

2017-10-12 Thread Sean Paul
On Thu, Oct 12, 2017 at 01:55:40PM +0300, Pekka Paalanen wrote: > On Tue, 26 Sep 2017 09:07:45 -0700 > Thomas Hellstrom wrote: > > > On 09/26/2017 01:18 AM, Daniel Vetter wrote: > > > On Sun, Sep 24, 2017 at 07:41:45PM +0200, Thomas Hellstrom wrote: > > >> Hi, list! > > >> > > >> Page flips, wh

  1   2   >