[PATCH 05/12] drm/legacy: move lock cleanup for master into lock file

2019-04-22 Thread Dave Airlie
From: Dave Airlie This makes it easier to remove legacy code later. Signed-off-by: Dave Airlie --- drivers/gpu/drm/drm_auth.c | 14 +- drivers/gpu/drm/drm_legacy.h | 1 + drivers/gpu/drm/drm_lock.c | 16 3 files changed, 18 insertions(+), 13 deletions

[PATCH 11/12] drm/legacy: place all drm legacy members under DRM_LEGACY.

2019-04-22 Thread Dave Airlie
From: Dave Airlie This places a bunch of the legacy members of drm_device into only being there when legacy is enabled. Signed-off-by: Dave Airlie --- drivers/gpu/drm/drm_legacy.h | 20 include/drm/drm_device.h | 3 ++- 2 files changed, 22 insertions(+), 1 deletion

[PATCH 06/12] drm/legacy: move map_hash create/destroy into inlines

2019-04-22 Thread Dave Airlie
From: Dave Airlie This allows them to be removed later. Signed-off-by: Dave Airlie --- drivers/gpu/drm/drm_drv.c| 7 +++ drivers/gpu/drm/drm_legacy.h | 10 ++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c

[PATCH 10/12] drm: allow removal of legacy codepaths (v4)

2019-04-22 Thread Dave Airlie
From: Dave Airlie If you don't want the legacy drivers, then lets get rid of all the legacy codepaths from the core module. This drop the size of drm.ko for me by about 10%. 38051574224192 392129 5fbc1 ../../drm-next-build/drivers/gpu/drm/drm.ko 35173672984192 363226

[PATCH 12/12] drm/legacy: remove some legacy lock struct members

2019-04-22 Thread Dave Airlie
From: Dave Airlie This removes these unless legacy is enabled. The lock count init is unneeded anyways since it's kzalloc. Signed-off-by: Dave Airlie --- drivers/gpu/drm/drm_auth.c | 4 ++-- drivers/gpu/drm/drm_file.c | 1 - drivers/gpu/drm/drm_legacy.h | 10 ++ include/drm

[PATCH 03/12] drm/legacy: move map cleanups into drm_bufs.c

2019-04-22 Thread Dave Airlie
From: Dave Airlie This makes it easier to clean this up later. Signed-off-by: Dave Airlie --- drivers/gpu/drm/drm_bufs.c | 8 drivers/gpu/drm/drm_drv.c| 5 + drivers/gpu/drm/drm_legacy.h | 1 + 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm

[PATCH 07/12] drm/legacy: move init/destroy of struct members into inlines

2019-04-22 Thread Dave Airlie
From: Dave Airlie This will allow easier removal later. Signed-off-by: Dave Airlie --- drivers/gpu/drm/drm_drv.c| 10 +++--- drivers/gpu/drm/drm_legacy.h | 14 ++ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm

[PATCH 08/12] drm/legacy: move legacy dev reinit into an inline

2019-04-22 Thread Dave Airlie
From: Dave Airlie This moves the legacy dev reinit into a legacy inline, also removes some unneeded inlines now. Signed-off-by: Dave Airlie --- drivers/gpu/drm/drm_file.c | 24 drivers/gpu/drm/drm_legacy.h | 24 2 files changed, 24

[PATCH 04/12] drm/radeon: drop unused ati pcigart include.

2019-04-22 Thread Dave Airlie
From: Dave Airlie Signed-off-by: Dave Airlie --- drivers/gpu/drm/radeon/radeon_drv.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/radeon_drv.h b/drivers/gpu/drm/radeon/radeon_drv.h index afef2d9fccd8..173deb463414 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.h

[PATCH 09/12] drm/legacy: don't include any of ati_pcigart in legacy.

2019-04-22 Thread Dave Airlie
From: Dave Airlie This could probably be done with Kconfig somehow, but I failed in my first 2 minute attempt. Signed-off-by: Dave Airlie --- drivers/gpu/drm/ati_pcigart.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/ati_pcigart.c b/drivers/gpu/drm/ati_pcigart.c index

[PATCH 02/12] drm/legacy: move drm_legacy_master_rmmaps to non-driver legacy header.

2019-04-22 Thread Dave Airlie
From: Dave Airlie This isn't used by drivers, and won't be in the future. Signed-off-by: Dave Airlie --- drivers/gpu/drm/drm_legacy.h | 3 +++ include/drm/drm_legacy.h | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_legacy.h b/drivers/gpu/drm

[PATCH 01/12] drm/nouveau: add kconfig option to turn off nouveau legacy contexts. (v2)

2019-04-22 Thread Dave Airlie
From: Dave Airlie There was a nouveau DDX that relied on legacy context ioctls to work, but we fixed it years ago, give distros that have a modern DDX the option to break the uAPI and close the mess of holes that legacy context support is. Full context of the story: commit

drm: make legacy support code optional

2019-04-22 Thread Dave Airlie
This series attempts to make the legacy support core code removalable at build time, if no drivers require it. It reduces code size of the core drm.ko by ~10%. It's also available in https://cgit.freedesktop.org/~airlied/linux/log/?h=drm-legacy-cleanup The first patch has Daniels r-b on it,

[PATCH] [rfc] drm: allow removal of legacy codepaths (v3)

2019-04-18 Thread Dave Airlie
From: Dave Airlie If you don't want the legacy drivers, then lets get rid of all the legacy codepaths from the core module. This drop the size of drm.ko for me by about 10%. 38051574224192 392129 5fbc1 ../../drm-next-build/drivers/gpu/drm/drm.ko 35309173464192 364629

[PATCH] [rfc] drm: allow removal of legacy codepaths (v2)

2019-04-18 Thread Dave Airlie
From: Dave Airlie If you don't want the legacy drivers, then lets get rid of all the legacy codepaths from the core module. This drop the size of drm.ko for me by about 10%. 38051574224192 392129 5fbc1 ../../drm-next-build/drivers/gpu/drm/drm.ko 35309173464192 364629

[PATCH] [rfc] drm: allow removal of legacy codepaths

2019-04-18 Thread Dave Airlie
From: Dave Airlie If you don't want the legacy drivers, then lets get rid of all the legacy codepaths from the core module. This drop the size of drm.ko for me by about 10%. 38051574224192 392129 5fbc1 ../../drm-next-build/drivers/gpu/drm/drm.ko 35605973464192 367597

[PATCH] drm/nouveau: add kconfig option to turn off nouveau legacy contexts.

2019-04-18 Thread Dave Airlie
From: Dave Airlie There was a nouveau DDX that relied on legacy context ioctls to work, but we fixed it years ago, give distros that have a modern DDX the option to break the uAPI and close the mess of holes that legacy context support is. Signed-off-by: Dave Airlie --- drivers/gpu/drm

[git pull] drm fixes for 5.1-rc6

2019-04-17 Thread Dave Airlie
ID to bypass without SMMU Christian König (3): drm/ttm: fix out-of-bounds read in ttm_put_pages() v2 drm/ttm: fix start page for huge page check in ttm_put_pages() drm/ttm: fix incrementing the page pointer for huge pages Dave Airlie (2): Merge tag 'drm/tegra/for-5.1-rc6

Re: [PATCH] drm/amdgpu: fix drm leases being broken on radv

2019-04-17 Thread Dave Airlie
On Thu, 18 Apr 2019 at 03:30, Koenig, Christian wrote: > > Am 17.04.19 um 17:51 schrieb Emil Velikov: > > Hi guys, > > > > On 2019/04/17, Daniel Vetter wrote: > >> On Wed, Apr 17, 2019 at 02:46:06PM +0200, Christian König wrote: > >>> Am 17.04.19 um 14:35 schrieb Daniel Vetter: > On Wed, Apr

Re: [PATCH v2] drm: introduce a capability flag for syncobj timeline support

2019-04-16 Thread Dave Airlie
l need to > expose DRIVER_SYNCOBJ_TIMELINE. > > v2: Add uAPI capability check (Christian) > > Signed-off-by: Lionel Landwerlin > Reviewed-by: Christian König (v1) > Cc: Dave Airlie > Cc: Daniel Vetter > Cc: Christian König > Cc: Chunming Zhou LGTM, Reviewed-by: Dave Airl

Re: [PATCH] drm: turn syncobj timeline support off by default

2019-04-15 Thread Dave Airlie
On Tue, 16 Apr 2019 at 06:05, Lionel Landwerlin wrote: > > On 15/04/2019 20:52, Dave Airlie wrote: > > On Tue, 16 Apr 2019 at 05:48, Lionel Landwerlin > > wrote: > >> Unfortunately userspace users of this API cannot be publicly disclosed > >> yet so dis

Re: [PATCH] drm: turn syncobj timeline support off by default

2019-04-15 Thread Dave Airlie
On Tue, 16 Apr 2019 at 05:48, Lionel Landwerlin wrote: > > Unfortunately userspace users of this API cannot be publicly disclosed > yet so disable this stuff by default until all is revealed. This begs the question how userspace is meant to know we support these? Is there a CAP for it? if not

Re: [PATCH 2/9] drm/syncobj: add new drm_syncobj_add_point interface v4

2019-04-15 Thread Dave Airlie
> Well, I've got commit rights as well. > > Going to remove the warning, add your rb and push everything if nobody > objects in the next hour or so. So this got committed and is in my -next tree, but where is the userspace and igt tests? There needs to be a functional mesa userspace and a set of

[git pull] drm fixes for 5.1-rc5

2019-04-11 Thread Dave Airlie
in ppgtt_free_all_spt() Dan Carpenter (1): drm/mediatek: Fix an error code in mtk_hdmi_dt_parse_pdata() Dave Airlie (6): drm/udl: add a release method and delay modeset teardown Merge tag 'drm/tegra/for-5.1-rc5' of git://anongit.freedesktop.org/tegra/linux into drm-fixes Merge

Re: [PATCH 00/15] Share TTM code among framebuffer drivers

2019-04-09 Thread Dave Airlie
On Tue, 9 Apr 2019 at 17:12, kra...@redhat.com wrote: > > Hi, > > > If not for TTM, what would be the alternative? One VMA manager per > > memory region per device? > > Depends pretty much on the device. > > The cirrus is a display device with only 4 MB of vram. You can't fit > much in there.

Re: [PATCH] drm/qxl: drop prime import/export callbacks

2019-04-08 Thread Dave Airlie
On Sat, 12 Jan 2019 at 07:13, Dave Airlie wrote: > > On Thu, 10 Jan 2019 at 18:17, Gerd Hoffmann wrote: > > > > Also set prime_handle_to_fd and prime_fd_to_handle to NULL, > > so drm will not advertive DRM_PRIME_CAP_{IMPORT,EXPORT} to > > userspace. It's been p

[PATCH 3/3] drm/udl: move to embedding drm device inside udl device.

2019-04-04 Thread Dave Airlie
From: Dave Airlie This should help with some of the lifetime issues, and move us away from load/unload. Signed-off-by: Dave Airlie --- drivers/gpu/drm/udl/udl_drv.c | 56 +++--- drivers/gpu/drm/udl/udl_drv.h | 9 +++--- drivers/gpu/drm/udl/udl_fb.c | 2

[PATCH 2/3] drm/udl: introduce a macro to convert dev to udl.

2019-04-04 Thread Dave Airlie
From: Dave Airlie This just makes it easier to later embed drm into udl. Signed-off-by: Dave Airlie --- drivers/gpu/drm/udl/udl_drv.h | 2 ++ drivers/gpu/drm/udl/udl_fb.c | 10 +- drivers/gpu/drm/udl/udl_gem.c | 2 +- drivers/gpu/drm/udl/udl_main.c | 12 ++-- 4 files

[PATCH 1/3] drm/udl: add a release method and delay modeset teardown

2019-04-04 Thread Dave Airlie
From: Dave Airlie If we unplug a udl device, the usb callback with deinit the mode_config struct, however userspace will still have an open file descriptor and a framebuffer on that device. When userspace closes the fd, we'll oops because it'll try and look stuff up in the object idr which we've

udl fix + 2 cleanups

2019-04-04 Thread Dave Airlie
The first patch is a repost, Daniel already reviewed it, and I'll put it into fixes soon, the two follow-ups are for -next. They move udl over to having the drm device embedded in the udl struct which hopefully will help with future lifetime issues. Dave.

Re: [PATCH 0/7] some cleanups and uapi clarification for leases

2019-04-04 Thread Dave Airlie
hanges > > drm/atomic: -EACCESS for lease-denied crtc lookup > > I had a look at patches 5-7 and they seem to do the right thing, but my > knowledge on DRM leases is quite limited, and given all the corner > cases of legacy CRTC/plane updates, I'm not comfortable adding my R-b >

[git pull] drm fixes for 5.1-rc4

2019-04-04 Thread Dave Airlie
): drm/i915: Always backoff after a drm_modeset_lock() deadlock drm/i915/gvt: Fix kerneldoc typo for intel_vgpu_emulate_hotplug Dave Airlie (2): Merge branch 'drm-fixes-5.1' of git://people.freedesktop.org/~agd5f/linux into drm-fixes Merge tag 'drm-intel-fixes-2019-04-04

Re: [PATCH] drm/lima: Fix broken compilation.

2019-04-04 Thread Dave Airlie
On Fri, 5 Apr 2019 at 08:43, Rodrigo Vivi wrote: > > On Thu, Apr 04, 2019 at 03:25:38PM -0700, Rodrigo Vivi wrote: > > From: Rodrigo Vivi > > And it seems that I don't know how to spell my own name anymore! :) > > If you decide for this patch please let me know, so we can fix while > pushing to

Re: [GIT PULL] drm/tegra: Fixes for v5.1-rc2

2019-04-03 Thread Dave Airlie
On Thu, 4 Apr 2019 at 02:07, Thierry Reding wrote: > > On Fri, Mar 22, 2019 at 02:15:17PM +0100, Thierry Reding wrote: > > Hi Dave, > > > > The following changes since commit 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b: > > > > Linux 5.1-rc1 (2019-03-17 14:22:26 -0700) > > > > are available in the

Re: [PATCH 4/7] drm/lease: Check for lessor outside of locks

2019-04-02 Thread Dave Airlie
On Thu, 14 Mar 2019 at 18:07, Boris Brezillon wrote: > > On Thu, 28 Feb 2019 15:49:07 +0100 > Daniel Vetter wrote: > > > The lessor is invariant over a lifetime of a lease, we don't have to > > grab any locks for that. Speeds up the common case of not being a lease. > > > > Cc: Keith Packard >

Re: [RFC PATCH Xilinx Alveo 0/6] Xilinx PCIe accelerator driver

2019-03-28 Thread Dave Airlie
On Thu, 28 Mar 2019 at 10:14, Sonal Santan wrote: > > > > > -Original Message- > > From: Daniel Vetter [mailto:daniel.vet...@ffwll.ch] On Behalf Of Daniel > > Vetter > > Sent: Wednesday, March 27, 2019 7:12 AM > > To: Sonal Santan > > Cc: Daniel Vetter ; dri-devel@lists.freedesktop.org;

Re: [PATCH 3/7] drm/leases: Don't init to 0 in drm_master_create

2019-03-28 Thread Dave Airlie
On Thu, 14 Mar 2019 at 17:56, Boris Brezillon wrote: > > On Thu, 28 Feb 2019 15:49:06 +0100 > Daniel Vetter wrote: > > > We kzalloc. > > > > Cc: Keith Packard > > Signed-off-by: Daniel Vetter > > Reviewed-by: Boris Brezillon Reviewed-by: Dave Airlie

Re: [PATCH 1/7] drm/leases: Drop object_id validation for negative ids

2019-03-28 Thread Dave Airlie
commit 2e1c9b2867656ff9a469d23e1dfe90cf77ec0c72 Author: Tejun Heo Date: Fri Mar 8 12:43:30 2013 -0800 idr: remove WARN_ON_ONCE() on negative IDs We used to WARN_ON if we hit a negative id, it appears we don't anymore, so just update the commit msg to reflect that info on where the code

[git pull] drm fixes for 5.1-rc3

2019-03-28 Thread Dave Airlie
list Dan Carpenter (1): drm/i915/selftests: Fix an IS_ERR() vs NULL check Dave Airlie (5): drm/fb: avoid setting 0 depth. Merge tag 'drm/tegra/for-5.1-rc2' of git://anongit.freedesktop.org/tegra/linux into drm-fixes Merge tag 'drm-misc-fixes-2019-03-25' of git

Re: [pull] amdgpu, amdkfd, ttm drm-next-5.2

2019-03-28 Thread Dave Airlie
On Fri, 29 Mar 2019 at 03:44, Alex Deucher wrote: > > Hi Dave, Daniel, > > New stuff for 5.2: 32-bit arm build: /home/airlied/devel/kernel/dim/src/drivers/gpu/drm/amd/amdgpu/../powerplay/smu_v11_0.c: In function ‘smu_v11_0_notify_memory_pool_location’:

Re: [PULL] drm-intel-next

2019-03-27 Thread Dave Airlie
On Mon, 25 Mar 2019 at 22:49, Joonas Lahtinen wrote: > > Hi Dave & Daniel, > > First batch of features for 5.2, tagged last week. I asked on irc, but got no answer I saw, /home/airlied/devel/kernel/dim/src/drivers/gpu/drm/i915/i915_gem_context.c:698:12: warning: ‘context_barrier_task’ defined

[git pull] drm fixes for 5.1-rc2

2019-03-21 Thread Dave Airlie
tting bulk_movable" drm/amdgpu: fix invalid use of change_bit Dan Carpenter (1): drm/nouveau/dmem: Fix a NULL vs IS_ERR() check Dave Airlie (6): drm/udl: use drm_gem_object_put_unlocked. Merge branch 'linux-5.1' of git://github.com/skeggsb/linux into drm-fixes Merg

udl unplug fixes

2019-03-14 Thread Dave Airlie
I've sent two udl fixes for plugging in, these two fix the unplug scenario, The first avoids hitting the unregister path twice, once in device unplug and once in last open fd release. The second avoids uninit the modeset configs while userspace still has the open fd which can access them. Dave.

[PATCH 1/2] drm: do lower level device put on unplugged releases

2019-03-14 Thread Dave Airlie
From: Dave Airlie When we release the file handle on a device that has been unplugged it has already called the unregister path, which doesn't like being called again. We should just do the dev put version instead. This fixes some crashes unplugged in a udl device. Signed-off-by: Dave Airlie

[PATCH 2/2] drm/udl: add a release method and delay modeset teardown

2019-03-14 Thread Dave Airlie
From: Dave Airlie If we unplug a udl device, the usb callback with deinit the mode_config struct, however userspace will still have an open file descriptor and a framebuffer on that device. When userspace closes the fd, we'll oops because it'll try and look stuff up in the object idr which we've

udl hotunplug broken

2019-03-14 Thread Dave Airlie
Hey, Not sure how long this has been broken, considering plugging it in was broken, unplugging is much worse. Is there anything outside my tree that might be fixing this? Currently it appears if I unplug udl while userspace has the device open, it's bad, I get the userspace fb leaked thing which

Re: [PATCH] drm/udl: Refactor edid retreiving in UDL driver

2019-03-14 Thread Dave Airlie
by: Robert Tarasov Reviewed-by: Dave Airlie I've posted two other udl fixes this morning to actually make my udl work again. Dave. ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH] drm/udl: Cut >165 MHz modes for DVI

2019-03-14 Thread Dave Airlie
On Sat, 9 Mar 2019 at 19:39, Robert Tarasov wrote: > > Filter out all modes with clock higher than 165 MHz for DVI connector in > drm/udl driver. > > Signed-off-by: Robert Tarasov > --- > drivers/gpu/drm/udl/udl_connector.c | 8 > 1 file changed, 8 insertions(+) > > diff --git

[PATCH 2/2] drm/fb: avoid setting 0 depth.

2019-03-14 Thread Dave Airlie
From: Dave Airlie If the downscaling fails and we end up with a best_depth of 0, then ignore it. This actually works around a cascade of failure, but it the simplest fix for now. The scaling patch broke the udl driver, as the udl driver doesn't expose planes at all, so gets the two default 32

[PATCH 1/2] drm/udl: use drm_gem_object_put_unlocked.

2019-03-14 Thread Dave Airlie
From: Dave Airlie When Daniel removed struct_mutex he didn't fix this call to the unlocked variant which is required since we no longer use struct mutex. This fixes a bunch of: WARNING: CPU: 4 PID: 1370 at drivers/gpu/drm/drm_gem.c:931 drm_gem_object_put+0x2b/0x30 [drm] Modules linked in: udl

[git pull] drm fixes for 5.1-rc1

2019-03-14 Thread Dave Airlie
ref before cancelling Christian König (1): drm/amdgpu: clear PDs/PTs only after initializing them Dan Carpenter (3): drm/etnaviv: fix some off by one bugs drm/etnaviv: NULL vs IS_ERR() buf in etnaviv_core_dump() drm/etnaviv: potential NULL dereference Dave Airlie (6): Merg

Re: [PATCH 2/2] drm/lima: driver for ARM Mali4xx GPUs

2019-03-14 Thread Dave Airlie
On Thu, 14 Feb 2019 at 19:12, Christian König via dri-devel wrote: > > Am 14.02.19 um 03:52 schrieb Alex Deucher via dri-devel: > > [SNIP] > > +static int lima_ioctl_gem_va(struct drm_device *dev, void *data, > > struct drm_file *file) > > +{ > > + struct drm_lima_gem_va

Re: [RFC PATCH] drm/panfrost: Add initial panfrost driver

2019-03-07 Thread Dave Airlie
+struct drm_panfrost_submit { > + > + /** Address to GPU mapping of job descriptor */ > + __u64 jc; > + > + /** An optional sync object to wait on before starting this job. */ > + __u32 in_sync; > + > + /** An optional sync object to place the completion fence in. */

Re: [PATCH v7 2/2] drm/lima: driver for ARM Mali4xx GPUs

2019-03-06 Thread Dave Airlie
> +#endif > diff --git a/include/uapi/drm/lima_drm.h b/include/uapi/drm/lima_drm.h > new file mode 100644 > index ..05f8c910d7fb > --- /dev/null > +++ b/include/uapi/drm/lima_drm.h > @@ -0,0 +1,164 @@ > +/* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) OR MIT */ > +/*

Re: [PATCH v7 2/2] drm/lima: driver for ARM Mali4xx GPUs

2019-03-06 Thread Dave Airlie
On Thu, 7 Mar 2019 at 09:46, Rob Herring wrote: > > On Wed, Mar 6, 2019 at 9:24 AM Qiang Yu wrote: > > > > - Mali 4xx GPUs have two kinds of processors GP and PP. GP is for > > OpenGL vertex shader processing and PP is for fragment shader > > processing. Each processor has its own MMU so

Re: [PATCH v6 2/2] drm/lima: driver for ARM Mali4xx GPUs

2019-03-05 Thread Dave Airlie
> > > > I don't think you need the _pad fields here, and they're actually a bad > > idea because the lack of checking in your ioctls means you can't trust > > that userspace has initialized them to 0 when you want to redefine them > > as a flags field later. > > Could I drop the _pad? I thought

[git pull] drm fixes for 5.0 final

2019-02-28 Thread Dave Airlie
: Fix the ID mismatch error Dave Airlie (1): Merge branch 'drm-fixes-5.0' of git://people.freedesktop.org/~agd5f/linux into drm-fixes Mario Kleiner (1): drm/amd/display: Use vrr friendly pageflip throttling in DC. Nicholas Kazlauskas (1): drm: Block fb changes for async plane

big conflict in drm-tip (amdgpu)

2019-02-27 Thread Dave Airlie
I merged some fixes into drm-fixes, pushed it out, then saw tip breaking, but I'm needed elsewhere, so if anyone can fix tip up or tell me why I got a super messy commit, I'll owe you. Thanks, Dave. ___ dri-devel mailing list

Re: [Intel-gfx] [RFC PATCH 00/42] Introduce memory region concept (including device local memory)

2019-02-26 Thread Dave Airlie
> > At the end of the day, I don't really care that much. I get it, we > > all have large projects with scarce resources. I just think a few > > years down the road we'll all regret it as a community. > > AMD and others have also spent years tuning TTM for both UMA and VRAM, > but especially

Re: [Intel-gfx] [RFC PATCH 00/42] Introduce memory region concept (including device local memory)

2019-02-25 Thread Dave Airlie
On Tue, 19 Feb 2019 at 23:32, Joonas Lahtinen wrote: > > + dri-devel mailing list, especially for the buddy allocator part > > Quoting Dave Airlie (2019-02-15 02:47:07) > > On Fri, 15 Feb 2019 at 00:57, Matthew Auld wrote: > > > > > > In preparation for upcom

[git pull] drm fixes for 5.0-rc8 (or final)

2019-02-21 Thread Dave Airlie
configure untiled displays Christian König (1): drm/amdgpu: disable bulk moves for now Dave Airlie (2): Merge tag 'drm-intel-fixes-2019-02-20' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes Merge branch 'drm-fixes-5.0' of git://people.freedesktop.org/~agd5f/linux

Re: nouveau-next 5.1

2019-02-17 Thread Dave Airlie
On Mon, 18 Feb 2019 at 16:19, Ben Skeggs wrote: > > Hey Dave, > > Various fixes/cleanups, along with initial support for SVM features > utilising HMM address-space mirroring and device memory migration. > There's a lot more work to do in these areas, both in terms of > features and efficiency,

[git pull] drm fixes for 5.0-rc7

2019-02-16 Thread Dave Airlie via dri-devel
): drm/i915/icl: combo port vswing programming changes per BSPEC Dave Airlie (4): Merge tag 'imx-drm-fixes-2019-02-12' of git://git.pengutronix.de/pza/linux into drm-fixes Merge tag 'drm-misc-fixes-2019-02-13' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes Merge tag 'drm

[git pull] drm fixes for 5.0-rc6

2019-02-07 Thread Dave Airlie
drm/vmwgfx: unwind spaghetti code in vmw_dma_select_mode Dave Airlie (5): Merge branch 'drm-fixes-5.0' of git://people.freedesktop.org/~agd5f/linux into drm-fixes Merge branch 'drm-fixes-5.0' of git://people.freedesktop.org/~agd5f/linux into drm-fixes Merge branch 'vmwgfx-fixes-5.0

Re: [pull] amdgpu, amdkfd, ttm, sched drm-next-5.1

2019-02-04 Thread Dave Airlie
On Tue, 5 Feb 2019 at 04:35, Alex Deucher wrote: > > On Sun, Feb 3, 2019 at 11:57 PM Dave Airlie wrote: > > > > On Mon, 4 Feb 2019 at 13:27, Dave Airlie wrote: > > > > > > On Sat, 26 Jan 2019 at 09:15, Alex Deucher wrote: > > > > > >

Re: [PULL] drm-intel-next

2019-02-03 Thread Dave Airlie
On Sat, 2 Feb 2019 at 18:29, Rodrigo Vivi wrote: > > Hi Dave and Daniel, > > Here goes another pull request for 5.1. dim complained: Chris committed this without an S-O-B, now because it's all Intel this probably doesn't matter, so I'll pull it, put please try and let it not happen again.

Re: [pull] amdgpu, amdkfd, ttm, sched drm-next-5.1

2019-02-03 Thread Dave Airlie
On Mon, 4 Feb 2019 at 13:27, Dave Airlie wrote: > > On Sat, 26 Jan 2019 at 09:15, Alex Deucher wrote: > > > > Hi Dave, Daniel, > > > > New stuff for 5.1. > > amdgpu: > > - DC bandwidth formula updates > > - Support for DCC on scanout surfaces &g

Re: [PATCH] drm/amdkfd: Fix if preprocessor statement above kfd_fill_iolink_info_for_cpu

2019-02-03 Thread Dave Airlie
Alex, can you get this into next and resend the pull? I don't like adding warnings. Dave. On Fri, 1 Feb 2019 at 06:10, Kuehling, Felix wrote: > > Thank you, Nathan. I applied your patch to amd-staging-drm-next. > > Sorry for the late response. I'm catching up with my email backlog after > a

Re: [pull] amdgpu, amdkfd, ttm, sched drm-next-5.1

2019-02-03 Thread Dave Airlie
On Sat, 26 Jan 2019 at 09:15, Alex Deucher wrote: > > Hi Dave, Daniel, > > New stuff for 5.1. > amdgpu: > - DC bandwidth formula updates > - Support for DCC on scanout surfaces > - Support for multiple IH rings on soc15 asics > - Fix xgmi locking > - Add sysfs interface to get pcie usage stats >

libdrm README rename

2019-01-28 Thread Dave Airlie
So libdrm README renamed to README.rst, however that means it no longer gets included in the dist tarball. I think autotools considers README special, so we might need to fix it, Dave. ___ dri-devel mailing list dri-devel@lists.freedesktop.org

[git pull] drm fixes for 5.0-rc4

2019-01-24 Thread Dave Airlie
Alex Deucher (1): drm/amdgpu: Add APTX quirk for Lenovo laptop Arnd Bergmann (2): drm/msm/gpu: fix building without debugfs drm/msm: avoid unused function warning Chris Wilson (1): drm/i915/execlists: Mark up priority boost on preemption Dave Airlie

[git pull] drm nouveau TU102 hw support

2019-01-17 Thread Dave Airlie
Ben Skeggs (1): drm/nouveau/core: recognise TU102 Dave Airlie (1): Merge branch 'linux-4.21' of git://github.com/skeggsb/linux into drm-fixes drivers/gpu/drm/nouveau/nvkm/engine/device/base.c | 33 +++ 1 file changed, 33 insertions

[git pull] drm fixes for 5.0-rc3

2019-01-17 Thread Dave Airlie
Alex Deucher (1): Revert "drm/amdgpu: validate user GEM object size" Charlene Liu (1): drm/amd/display: fix PME notification not working in RV desktop Colin Xu (1): drm/i915/gvt: Allow F_CMD_ACCESS on mmio 0x21f0 Dave Airlie (3):

Re: [PATCH] drm/virtio: drop prime import/export callbacks

2019-01-11 Thread Dave Airlie
On Thu, 10 Jan 2019 at 21:16, Gerd Hoffmann wrote: > > Also set prime_handle_to_fd and prime_fd_to_handle to NULL, > so drm will not advertive DRM_PRIME_CAP_{IMPORT,EXPORT} to > userspace. Reviewed-by: Dave Airlie > > Signed-off-by: Gerd Hoffmann > --- > drivers/gpu/

Re: [PATCH] drm/qxl: drop prime import/export callbacks

2019-01-11 Thread Dave Airlie
On Thu, 10 Jan 2019 at 18:17, Gerd Hoffmann wrote: > > Also set prime_handle_to_fd and prime_fd_to_handle to NULL, > so drm will not advertive DRM_PRIME_CAP_{IMPORT,EXPORT} to > userspace. > > Signed-off-by: Gerd Hoffmann Reviewed-by: Dave Airlie > --- > drivers/gpu/

[git pull] drm fixes for 5.0-rc2

2019-01-10 Thread Dave Airlie
) drm: amdgpu + tc358767 bridge + amd mst s/r fix Christian König (1): drm/amdgpu: disable system memory page tables for now Dave Airlie (2): Merge tag 'drm-misc

[git pull] drm next fixes for rc1

2019-01-04 Thread Dave Airlie
m/amd/display: Wait edp HPD to high in detect_sink Dave Airlie (3): Merge tag 'drm-intel-next-fixes-2018-12-27' of git://anongit.freedesktop.org/drm/drm-intel into drm-next Merge branch 'drm-next-4.21' of git://people.freedesktop.org/~agd5f/linux into drm-next Merge tag 'drm-mis

[git pull] drm next leftovers for rc1

2018-12-26 Thread Dave Airlie
Hi Linus, Daniel collected a couple of pulls after I want on holidays, back for a couple of days, so may as well send them out. This has exynos and etnaviv work for 4.21. exynos: - plane alpha and blending configurability etnaviv: - mostly cleanups in prep for new features. Dave.

[git pull] drm fixes for 4.20-rc7

2018-12-13 Thread Dave Airlie
ommon scratch page drm/i915: Flush GPU relocs harder for gen3 Colin Ian King (1): drm/vmwgfx: remove redundant return ret statement Daniel Vetter (1): MAINTAINERS: Daniel for drm co-maintainer Dave Airlie (7): Merge tag 'drm-intel-fixes-2018-12-07' of git://anongit.freede

Re: [PATCH] drm/virtio: switch to generic fbdev emulation

2018-12-13 Thread Dave Airlie
On Thu, 13 Dec 2018 at 23:49, Gerd Hoffmann wrote: > > Signed-off-by: Gerd Hoffmann Seems correct to me, Reviewed-by: Dave Airlie ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [GIT PULL] mediatek drm fixes for 4.20

2018-12-12 Thread Dave Airlie
On Thu, 13 Dec 2018 at 07:32, Dave Airlie wrote: > > On Mon, 10 Dec 2018 at 12:13, CK Hu wrote: > > > > Hi, Dave: > > > > Here is one fix. > > > > Regards, > > CK > > > > The following changes since commit > > 651022382c7f8da46c

Re: [pull] amdgpu drm-next-4.21

2018-12-12 Thread Dave Airlie
On Thu, 13 Dec 2018 at 07:13, Alex Deucher wrote: > > Hi Dave, > > Updates for 4.21: > - Powerplay updates for newer polaris variants > - Add cursor plane update fast path > - Enable gpu reset by default on CI parts > - Fix config with KFD/HSA not enabled > - Misc bug fixes > Either this or the

Re: [PATCH] [RFC] MAINTAINERS: Daniel for drm co-maintainer

2018-12-12 Thread Dave Airlie
On Thu, 13 Dec 2018 at 01:45, Sean Paul wrote: > > On Mon, Dec 10, 2018 at 11:30:01AM +0100, Daniel Vetter wrote: > > lkml and Linus gained a CoC, and it's serious this time. Which means > > my no 1 reason for declining to officially step up as drm maintainer > > is gone, and I didn't find any

Re: [GIT PULL] mediatek drm fixes for 4.20

2018-12-12 Thread Dave Airlie
On Mon, 10 Dec 2018 at 12:13, CK Hu wrote: > > Hi, Dave: > > Here is one fix. > > Regards, > CK > > The following changes since commit > 651022382c7f8da46cb4872a545ee1da6d097d2a: > > Linux 4.20-rc1 (2018-11-04 15:37:52 -0800) > > are available in the Git repository at: > >

[git pull] drm fixes for 4.20-rc6

2018-12-06 Thread Dave Airlie
on first device open Dan Carpenter (1): drm/msm/gpu: Fix a couple memory leaks in debugfs Daniel Vetter (1): drm/lease: Send a distinct uevent Dave Airlie (3): Merge tag 'msm-fixes-2018-12-04' of https://gitlab.freedesktop.org/seanpaul/dpu-staging into drm-fixes Merge branch

[git pull] drm fixes for 4.20-rc5

2018-11-29 Thread Dave Airlie
, rcar-du, meson + core fixes. Chris Wilson (1): drm/i915/gvt: Avoid use-after-free iterating the gtt list Christian Hewitt (1): drm/meson: add support for 1080p25 mode Dave Airlie (4): Merge tag 'du-fixes-20181126

Re: [PATCH 2/2] drm/ast: Fix connector leak during driver unload

2018-11-28 Thread Dave Airlie
On Mon, 5 Nov 2018 at 15:59, Sam Bobroff wrote: > > When unloading the ast driver, a warning message is printed by > drm_mode_config_cleanup() because a reference is still held to one of > the drm_connector structs. > > Correct this by calling drm_framebuffer_remove() in > ast_fbdev_destroy(). >

[git pull] drm fixes for 4.20-rc4

2018-11-22 Thread Dave Airlie
->legacy_cursor_update to false when doing non-async updates Chris Wilson (2): drm/i915: Prevent machine hang from Broxton's vtd w/a and error capture drm/i915: Write GPU relocs harder with gen3 Dave Airlie (3): Merge tag 'drm-misc-fixes-2018-11-21' of git://anongit.freedesktop.org/drm/

Re: [[PATCH v2]] drm/ast: fixed reading monitor EDID not stable issue

2018-11-21 Thread Dave Airlie
On Thu, 22 Nov 2018 at 11:42, 陳雅正 wrote: > > Hi Dave, > Thanks for your feedback. No issue found actually if I remove "volatile" on > my platform. In my experience, if the value is volatile, adding "volatile" > will be safer and no harm, that is why I add it by default. If you think it > is

Re: [[PATCH v2]] drm/ast: fixed reading monitor EDID not stable issue

2018-11-21 Thread Dave Airlie
On Wed, 31 Oct 2018 at 18:12, Y.C. Chen wrote: > > From: "Y.C. Chen" > > v1: over-sample data to increase the stability with some specific monitors > v2: refine to avoid infinite loop This contains at least 4 whitespace breakages (val =) in a few places, also why the volatiles, I don't think

Re: [PATCH] drm/dp_mst: Skip validating ports during destruction, just ref

2018-11-21 Thread Dave Airlie
update_payload_part1()") > Reported-by: Jerry Zuo > Cc: Jerry Zuo > Cc: Harry Wentland > Cc: # v4.6+ Much as I constantly feel we are missing some better way to do all of this, this seems like a reasonable fix. Reviewed-by: Dave Airlie > --- > drivers/gpu/drm/drm_dp_m

Re: [PULL] drm-intel-next for v4.21/v5.1

2018-11-18 Thread Dave Airlie
On Fri, 2 Nov 2018 at 20:21, Jani Nikula wrote: > > > Hi Dave - > > I just tagged this minutes ago, but I'm sending this now because I'll be > out for about a week. I don't expect you to pull this until some time > after -rc1 anyway. I'm asking Joonas and Rodrigo to tell you if this > one's a go

[git pull] drm fixes for 4.20-rc3

2018-11-15 Thread Dave Airlie
image vs execution Christian König (1): drm/amdgpu: fix huge page handling on Vega10 Dave Airlie (3): Merge tag 'drm-misc-fixes-2018-11-14' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes Merge branch 'drm-fixes-4.20' of git://people.freedesktop.org/~agd5f/linux

[git pull] drm fixes for 4.20-rc2

2018-11-10 Thread Dave Airlie
Dan Carpenter (1): drm/exynos: checking for NULL instead of IS_ERR() Dave Airlie (5): Merge branch 'etnaviv/fixes' of https://git.pengutronix.de/git/lst/linux into drm-fixes Merge tag 'exynos-drm-fixes-for-v4.20-rc2' of git://git.kernel.org/.../daeinki/drm-exynos into drm-fixes

[git pull] drm next fixes for 4.20-rc1

2018-11-01 Thread Dave Airlie
drm/amdgpu: revert "enable gfxoff in non-sriov and stutter mode by default" Dave Airlie (3): Merge tag 'drm-misc-next-fixes-2018-10-31' of git://anongit.freedesktop.org/drm/drm-misc into drm-next Merge branch 'drm-next-4.20' of git://people.freedesktop.org/~agd5f/linu

Re: [Intel-gfx] [PATCH] RFC: Make igts for cross-driver stuff mandatory?

2018-10-29 Thread Dave Airlie
no idea what a baseline IGT test run looks like on non-intel hw, how useful is it? Acked-by: Dave Airlie ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re:

2018-10-23 Thread Dave Airlie
On Tue, 23 Oct 2018 at 16:13, Michael Tirado wrote: > > That preprocessor define worked but I'm still confused about this > DRM_FILE_PAGE_OFFSET thing. Check out drivers/gpu/drm/drm_gem.c > right above drm_gem_init. > > --- > > /* > * We make up offsets for buffer objects so we can recognize

Re: [PATCH v2 0/6] drm/virtio: rework ttm resource handling.

2018-10-22 Thread Dave Airlie
s later. > * reorder patches. For the series: Reviewed-by: Dave Airlie > > Gerd Hoffmann (6): > drm/virtio: track created object state > drm/virtio: use virtio_gpu_object->hw_res_handle in > virtio_gpufb_create() > drm/virtio: use virtio_gpu_object->hw_res_handl

Re:

2018-10-21 Thread Dave Airlie
On Mon, 22 Oct 2018 at 10:49, Michael Tirado wrote: > > On Mon, Oct 22, 2018 at 12:26 AM Dave Airlie wrote: > > > > This shouldn't be necessary, did someone misbackport the mmap changes > > without: > > > > drm: set FMODE_UNSIGNED_OFFSET for drm files > &

Re:

2018-10-21 Thread Dave Airlie
On Mon, 22 Oct 2018 at 07:22, Michael Tirado wrote: > > Mapping a drm "dumb" buffer fails on 32-bit system (i686) from what > appears to be a truncated memory address that has been copied > throughout several files. The bug manifests as an -EINVAL when calling > mmap with the offset gathered from

  1   2   3   4   5   6   7   8   9   10   >