Re: [PATCH v8 1/3] gpu: drm: separate panel orientation property creating and value setting

2022-02-14 Thread Gabriel Krisman Bertazi
Hsin-Yi Wang writes: > On Tue, Feb 15, 2022 at 9:17 AM Gabriel Krisman Bertazi > wrote: >> >> Hsin-Yi Wang writes: >> >> > drm_dev_register() sets connector->registration_state to >> > DRM_CONNECTOR_REGISTERED and dev->registered to true. If >

Re: [PATCH v8 1/3] gpu: drm: separate panel orientation property creating and value setting

2022-02-14 Thread Gabriel Krisman Bertazi
ect_property_set_value() will be called with a NULL second argument and Oops the kernel. > - drm_object_attach_property(&connector->base, prop, > -info->panel_orientation); > + drm_object_property_set_value(&connector->base, prop, > + info->panel_orientation); -- Gabriel Krisman Bertazi

Re: [PATCH] drm: panel-orientation-quirks: Do rotation quirk for new GPD Win2 FW

2018-11-09 Thread Gabriel Krisman Bertazi
Hans de Goede writes: > Hi, > > On 18-10-18 21:31, Gabriel Krisman Bertazi wrote: >> I just got a new GDP Win2 device with an updated firmware, which still >> requires this quirk to get the rotation right, so add the new firmware >> date to the quirk matching table.

[PATCH] drm: panel-orientation-quirks: Do rotation quirk for new GPD Win2 FW

2018-10-18 Thread Gabriel Krisman Bertazi
I just got a new GDP Win2 device with an updated firmware, which still requires this quirk to get the rotation right, so add the new firmware date to the quirk matching table. This should go to drm-misc-next. Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm

Re: [PATCH] drm: Fix return value check in kirin_drm_platform_probe()

2017-10-11 Thread Gabriel Krisman Bertazi
Wei Yongjun writes: > In case of error, the function of_graph_get_remote_node() returns NULL > pointer not ERR_PTR(). The IS_ERR() test in the return value check > should be replaced with NULL test.. Looks good. Reviewed-by: Gabriel Krisman Bertazi -- Gabriel Krisma

Re: [PATCH] qxl: fix framebuffer unpinning

2017-09-22 Thread Gabriel Krisman Bertazi
#x27;t rmmod qxl. > > I agree that "rmmod qxl" should be fixed, but IMHO this is independent > from this bugfix, and I'd like to get it out of the door ASAP. Can I > get your reviewed-by? Yes, getting this out of the door asap makes total sense to me. Please add my rev

Re: [PATCH] qxl: fix framebuffer unpinning

2017-09-21 Thread Gabriel Krisman Bertazi
I can simply disable X, lightdm or whatever is using it and then rmmod. -- Gabriel Krisman Bertazi ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH] qxl: fix framebuffer unpinning

2017-09-19 Thread Gabriel Krisman Bertazi
Gerd Hoffmann writes: > On Tue, 2017-09-19 at 11:35 -0300, Gabriel Krisman Bertazi wrote: >> Gerd Hoffmann writes: >> >> > qxl_plane_cleanup_fb() unpins the just activated framebuffer >> > instead of the old one.  Oops.  Fix it. >> > &g

Re: [PATCH] qxl: fix framebuffer unpinning

2017-09-19 Thread Gabriel Krisman Bertazi
Gerd Hoffmann writes: > qxl_plane_cleanup_fb() unpins the just activated framebuffer > instead of the old one. Oops. Fix it. > > Cc: Gabriel Krisman Bertazi > Fixes: 1277eed5fecb8830c8cc414ad70c1ef640464bc0 > Signed-off-by: Gerd Hoffmann > --- > drivers/gpu/d

Re: [PATCH] qxl: fix primary surface handling

2017-09-11 Thread Gabriel Krisman Bertazi
on't try to update the primary surface in case > it already has the state we want it being in. > Reviewed-by: Gabriel Krisman Bertazi -- Gabriel Krisman Bertazi ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 09/14] drm/cirrus: use universal plane interfaces for primary plane

2017-09-04 Thread Gabriel Krisman Bertazi
plane_formats, > +ARRAY_SIZE(cirrus_plane_formats), > +DRM_PLANE_TYPE_PRIMARY, NULL); > + if (ret) > + goto cleanup; If this fails early enough, you can't call drm_pla

Re: [PATCH 01/14] drm/cirrus: split out bo unpinning from cirrus_bo_push_sysram

2017-09-04 Thread Gabriel Krisman Bertazi
lidate(&bo->bo, &bo->placement, false, false); > if (ret) { > DRM_ERROR("pushing to VRAM failed\n"); > - return ret; > + goto out; > } > - return 0; > + > +out: >

Re: [drm:qxl] BUG: sleeping function called from invalid context - qxl_bo_kmap_atomic_page()...splat

2017-05-19 Thread Gabriel Krisman Bertazi
Mike Galbraith writes: > On Thu, 2017-05-18 at 17:40 -0300, Gabriel Krisman Bertazi wrote: >> > Mike Galbraith writes: >> >> > >> > On Mon, 2017-05-08 at 16:48 -0300, Gabriel Krisman Bertazi wrote: >> > >> > > >> > > Tha

[PATCH] drm: qxl: Delay entering atomic context during cursor update

2017-05-19 Thread Gabriel Krisman Bertazi
R14: 0040 R15: 7ffcd3e5062c Reported-by: Mike Galbraith Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c in

Re: [PATCH] drm: trivial documentation fix to drm_for_each_connector_iter

2017-05-18 Thread Gabriel Krisman Bertazi
Daniel Vetter writes: > On Wed, May 17, 2017 at 03:43:18PM -0300, Gabriel Krisman Bertazi wrote: >> Daniel Vetter writes: >> >> > On Thu, Apr 20, 2017 at 09:38:19PM -0300, Gabriel Krisman Bertazi wrote: >> >> While reading drm_for_each_co

Re: [drm:qxl] BUG: sleeping function called from invalid context - qxl_bo_kmap_atomic_page()...splat

2017-05-18 Thread Gabriel Krisman Bertazi
Mike Galbraith writes: > On Mon, 2017-05-08 at 16:48 -0300, Gabriel Krisman Bertazi wrote: > >> Thanks for reporting this. Can you confirm the following patch prevents >> the issue? > > Nope, it still gripes. Oops... Thanks for checking. The following patch fixes th

Re: [PATCH] drm: trivial documentation fix to drm_for_each_connector_iter

2017-05-17 Thread Gabriel Krisman Bertazi
Daniel Vetter writes: > On Thu, Apr 20, 2017 at 09:38:19PM -0300, Gabriel Krisman Bertazi wrote: >> While reading drm_for_each_connector_iter, I noticed a mention to >> drm_connector_begin which doesn't exist. It should be >> drm_connector_get. >> >>

Re: [Bug 101044] I915 driver caused VGA got no ignal after plug-out then plug-in the VGA cable

2017-05-15 Thread Gabriel Krisman Bertazi
against Mesa Security team? This is stopping me from replying, since I don't have access to Mesa Security bugs. It feels like you should have reported it against the DRI product and DRM/Intel component, since it looks like a DRM driver bug. -- Gabriel Krisman Bertazi

Re: [drm:qxl] BUG: sleeping function called from invalid context - qxl_bo_kmap_atomic_page()...splat

2017-05-14 Thread Gabriel Krisman Bertazi
Mike Galbraith writes: > On Tue, 2017-05-09 at 04:37 +0200, Mike Galbraith wrote: >> On Mon, 2017-05-08 at 16:48 -0300, Gabriel Krisman Bertazi wrote: >> >> > Thanks for reporting this. Can you confirm the following patch prevents >> > the issue? >> &

Re: [drm:qxl] BUG: sleeping function called from invalid context - qxl_bo_kmap_atomic_page()...splat

2017-05-08 Thread Gabriel Krisman Bertazi
Thanks for reporting this. Can you confirm the following patch prevents the issue? >8 From 407213129ef4a687378563cbb6ca78faa23f33bd Mon Sep 17 00:00:00 2001 From: Gabriel Krisman Bertazi Date: Mon, 8 May 2017 16:47:22 -0300 Subject: [PATCH] drm: qxl: Suffle allocations in atomic cursor u

Re: [PATCH 11/28] drm/qxl: fix include notation and remove -Iinclude/drm flag

2017-04-25 Thread Gabriel Krisman Bertazi
Masahiro Yamada writes: > Include instead of relative path from include/drm, then > remove the -Iinclude/drm compiler flag. > > Signed-off-by: Masahiro Yamada Please add Reviewed-by: Gabriel Krisman Bertazi for this and patch 1. Thanks, -- Gabriel Kri

[PATCH] drm: trivial documentation fix to drm_for_each_connector_iter

2017-04-20 Thread Gabriel Krisman Bertazi
While reading drm_for_each_connector_iter, I noticed a mention to drm_connector_begin which doesn't exist. It should be drm_connector_get. Signed-off-by: Gabriel Krisman Bertazi --- include/drm/drm_connector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includ

Re: [PATCH] drm: Document code of conduct

2017-04-13 Thread Gabriel Krisman Bertazi
land/commit/?id=0eefe99fe0683ae409b665a8b18cc7eb648c6c0c > > Cc: Daniel Stone > Cc: Keith Packard > Cc: tfh...@err.no > Signed-off-by: Daniel Vetter Acked-by: Gabriel Krisman Bertazi -- Gabriel Krisman Bertazi ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [Intel-gfx] [PATCH] dim: Add apply-pull command

2017-04-03 Thread Gabriel Krisman Bertazi
Jani Nikula writes: >> + >> +git commit --amend -s > > I think the intention is to just add the signoff, but this ends up > trying to fire up the editor, which is really not good for piping. > You probably want --no-edit for that. --

Re: [drm] 4e64e5539d [ 1138.272031] NMI watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [swapper:1]

2017-03-29 Thread Gabriel Krisman Bertazi
at >>0620 >>[ 195.349309] IP: __lock_acquire+0xc8/0xfe6 > > > Sorry that looks like an old bug. While the below soft lockup > call trace looks more related to the code change. > Hi, For the record, I suspect the Null point

[PATCH] drm: bochs: Prevent double-free of fb helper

2017-03-23 Thread Gabriel Krisman Bertazi
00 00 00 48 39 c2 74 46 48 8b 83 d8 00 00 00 48 8b 93 d0 00 00 00 <48> 89 42 08 48 89 10 48 b8 00 01 00 00 ad de 48 89 83 d0 [ 17.652101] RIP: drm_fb_helper_fini+0x8e/0x110 RSP: c9d87ad0 [ 17.653331] ---[ end trace 542fd75a2e60a6a4 ]--- Signed-off-by: Gabriel Krisman B

Re: [lkp-robot] [drm] f04f7e3e04: general_protection_fault:#[##]

2017-03-22 Thread Gabriel Krisman Bertazi
kernel test robot writes: > FYI, we noticed the following commit: > > commit: f04f7e3e041aab12abbf3ed7b854446af5a624a9 ("drm: bochs: Don't > remove uninitialized fbdev framebuffer") > url: > https://github.com/0day-ci/linux/commits/Gabriel-Krisman-Bertazi/drm

Re: [PATCH 04/16] drm/debugfs: Add kerneldoc

2017-03-22 Thread Gabriel Krisman Bertazi
*, void*); > + /** @driver_features: Required driver features for this entry */ > + u32 driver_features; > + /** @data: Driver-private data, should not be device-specific. */ > void *data; > }; > > /** > - * debugfs node structure. This structure represe

Re: [PATCH 01/16] drm: drop extern from function decls

2017-03-22 Thread Gabriel Krisman Bertazi
Daniel Vetter writes: > It's the default storage class for functions, entirely redundant. And > a lot of these headers are a bit inconsistent due to organically > grown. > Reviewed-by: Gabriel Krisman Bertazi -- Gabriel Krisman Bertazi __

Re: [PATCH 05/16] drm: update todo.rst

2017-03-22 Thread Gabriel Krisman Bertazi
CONFIG_DRM_VM, for instance, which hid some of the code for legacy drivers is the downside of requiring recompilation of drm.ko before using a legacy driver. Anyway, if you agree with this change, can you keep this entry until that is done? -- Gabriel Krisman Bertazi ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH] drm: bochs: Don't remove uninitialized fbdev framebuffer

2017-03-17 Thread Gabriel Krisman Bertazi
ff ff 5b 5d c3 [ 112.176009] RIP: mutex_lock+0x18/0x30 RSP: c9b5fc78 [ 112.176009] CR2: 0260 [ 112.205622] ---[ end trace 76189cd7a9bdd155 ]--- Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/bochs/bochs_fbdev.c | 9 - 1 file changed, 4 insertions(+), 5 del

Re: [PATCH v6 2/4] drm/dp: add helpers for capture of frame CRCs

2017-03-07 Thread Gabriel Krisman Bertazi
/drivers/gpu/drm/drm_dp_helper.c:1165: warning: No description found for parameter 'crtc' ./drivers/gpu/drm/drm_dp_helper.c:1166: warning: No description found for parameter 'crtc' -- Gabriel Krisman Bertazi ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 6/6] drm/doc: atomic overview, with graph

2017-03-02 Thread Gabriel Krisman Bertazi
riel Krisman Bertazi -- Gabriel Krisman Bertazi ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH] drm: qxl: Don't clean up uninitialized fbdev framebuffer

2017-03-01 Thread Gabriel Krisman Bertazi
e8 66 fd ff ff 5b 5d c3 [ 24.313182] RIP: mutex_lock+0x18/0x30 RSP: c90001b5bcb0 [ 24.313811] CR2: 02e0 [ 24.314208] ---[ end trace 29669c1593cae14b ]--- Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_fb.c | 11 +++ 1 file changed, 7 insertions(+), 4 dele

Re: [PATCH v2] drm: Rely on mode_config data for fb_helper initialization

2017-03-01 Thread Gabriel Krisman Bertazi
num_crtc' description in 'drm_fbdev_cma_init' ./drivers/gpu/drm/drm_fb_cma_helper.c:558: warning: Excess function parameter 'num_crtc' description in 'drm_fbdev_cma_init' Fixes: be7f735cd5ea ("drm: Rely on mode_config data for fb_helper initializatio

Re: [PATCH 0/4] some qxl fixes and cleanups.

2017-03-01 Thread Gabriel Krisman Bertazi
Gerd Hoffmann writes: > Hi, > > This little series has some fixes and cleanups for the qxl driver. > Based on drm-misc-next branch. > Hi Gerd, Please add a reviewed-by for series. Reviewed-by: Gabriel Krisman Bertazi > cheers, > Gerd > > Gerd Hoffmann (4): &g

Re: [PATCH 6/6] drm/doc: atomic overview, with graph

2017-03-01 Thread Gabriel Krisman Bertazi
rm_device node, the second cluster will be pushed to the third rank and do what I think you want. Something like: "duplicated drm_plane_state A" -> "drm_device"[style=invis] This is the result for me: https://people.collabora.com/~krisman/atomic_modes

Re: [PATCH] drm/doc: diagram for mode objects and properties

2017-03-01 Thread Gabriel Krisman Bertazi
Daniel Vetter writes: > Resulted in confusion a few times in the past. > Reviewed-by: Gabriel Krisman Bertazi -- Gabriel Krisman Bertazi ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listin

Re: [PATCH 3/6] drm/doc: Add KMS overview graphs

2017-03-01 Thread Gabriel Krisman Bertazi
Daniel Vetter writes: > Oh, the shiny and pretties! > Very nice! Reviewed-by: Gabriel Krisman Bertazi -- Gabriel Krisman Bertazi ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 2/6] docs-rst: automatically convert Graphviz and SVG images

2017-03-01 Thread Gabriel Krisman Bertazi
(src_fname, dst_fname) > + > +elif in_ext == '.svg': > +verbose('convert SVG to: {out}/' + name) > +svg2pdf(src_fname, dst_fname) Small nit, but, shouldn't you add dst_fname to img_node only if dot2format or svg2pdf w

[RESEND PATCH 14/14] drm: qxl: Enable atomic modesetting ioctl

2017-02-27 Thread Gabriel Krisman Bertazi
Now that atomic support is implemented, enable the atomic flag. Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/qxl/qxl_drv.c b/drivers/gpu/drm/qxl/qxl_drv.c index 67e94f4f3ce8

[RESEND PATCH 13/14] drm: qxl: Atomic phase 3: Wire up atomic page_flip helper

2017-02-27 Thread Gabriel Krisman Bertazi
Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 47 +-- 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index f86e194ed797..2cd14bebc49c 100644

[RESEND PATCH 08/14] drm: qxl: Atomic phase 1: Don't unpin primary when disabling crtc

2017-02-27 Thread Gabriel Krisman Bertazi
In the qxl atomic model, the primary doesn't stay pinned all the time, instead it is only pinned/unpinned between prepare_fb and cleanup_fb. So, we no longer need a final unpin of the primary framebuffer when disabling the crtc. Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/dr

[RESEND PATCH 11/14] drm: qxl: Atomic phase 3: Use atomic handlers for planes

2017-02-27 Thread Gabriel Krisman Bertazi
Now that the state objects are wired up, we can move to the final atomic handlers. Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl

[RESEND PATCH 12/14] drm: qxl: Atomic phase 3: Wire up atomic set_config helper

2017-02-27 Thread Gabriel Krisman Bertazi
Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index 52c4e643331a..f86e194ed797 100644 --- a/drivers/gpu/drm/qxl

[RESEND PATCH 10/14] drm: qxl: Atomic phase 2: Use drm_atomic_set_fb_for_plane helper

2017-02-27 Thread Gabriel Krisman Bertazi
Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index d5a00b6a07ea..d1c12ac222b7 100644 --- a/drivers/gpu/drm/qxl

[RESEND PATCH 09/14] drm: qxl: Atomic phase 2: Wire up state object handlers

2017-02-27 Thread Gabriel Krisman Bertazi
Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index 09c076f5a792..d5a00b6a07ea 100644 --- a/drivers/gpu/drm/qxl/qxl_display.c

[RESEND PATCH 07/14] drm: qxl: Atomic phase 1: Implement mode_set_nofb

2017-02-27 Thread Gabriel Krisman Bertazi
Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 88 +++ 1 file changed, 16 insertions(+), 72 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index 8ccf62ae0efd..b23979fad1e2

[RESEND PATCH 01/14] drm: qxl: Drop device flags attribute

2017-02-27 Thread Gabriel Krisman Bertazi
There are no device specific flags that we need to keep track of here. Let it vanish. Signed-off-by: Gabriel Krisman Bertazi Reviewed-by: Gustavo Padovan --- drivers/gpu/drm/qxl/qxl_drv.c | 2 +- drivers/gpu/drm/qxl/qxl_drv.h | 3 +-- drivers/gpu/drm/qxl/qxl_kms.c | 5 + 3 files changed, 3

[RESEND PATCH 05/14] drm: qxl: Atomic phase 1: convert cursor to universal plane

2017-02-27 Thread Gabriel Krisman Bertazi
In preparation for atomic conversion, let's use the transitional atomic helpers drm_plane_helper_update/disable. Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 441 +- drivers/gpu/drm/qxl/qxl_drv.h | 5 - 2 files ch

[RESEND PATCH 03/14] drm: qxl: Don't initialize vblank support

2017-02-27 Thread Gabriel Krisman Bertazi
qxl don't have support for hardware vblanks so we can't initialize it here, otherwise we risk getting stuck in drm_wait_one_vblank. Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 20 drivers/gpu/drm/qxl/qxl_drv.c | 8 +--

[RESEND PATCH 06/14] drm: qxl: Atomic phase 1: Use drm_plane_helpers for primary plane

2017-02-27 Thread Gabriel Krisman Bertazi
Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 101 +- 1 file changed, 100 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index fef464730c9b..8ccf62ae0efd 100644

[RESEND PATCH 02/14] drm: qxl: Consolidate bo reservation when pinning

2017-02-27 Thread Gabriel Krisman Bertazi
. Signed-off-by: Gabriel Krisman Bertazi Reviewed-by: Gustavo Padovan --- drivers/gpu/drm/qxl/qxl_display.c | 52 ++- drivers/gpu/drm/qxl/qxl_fb.c | 25 ++- drivers/gpu/drm/qxl/qxl_object.c | 41 -- 3 files changed, 54

[RESEND PATCH 04/14] drm: qxl: Expose creation of universal primary plane

2017-02-27 Thread Gabriel Krisman Bertazi
Let's expose the primary plane initialization inside the qxl driver in preparation for universal planes and atomic. Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 71 ++- 1 file changed, 70 insertions(+), 1 deletion(-)

[RESEND PATCH 00/14] QXL atomic modesetting

2017-02-27 Thread Gabriel Krisman Bertazi
port-for-kms-drivers.html> Gabriel Krisman Bertazi (14): drm: qxl: Drop device flags attribute drm: qxl: Consolidate bo reservation when pinning drm: qxl: Don't initialize vblank support drm: qxl: Expose creation of universal primary plane drm: qxl: Atomic phase 1: convert cur

[PATCH] drm: qxl: Don't alloc fbdev if emulation is not supported

2017-02-27 Thread Gabriel Krisman Bertazi
b e8 83 e8 ff ff 65 48 8b 14 25 40 c4 00 00 31 c0 <3e> 48 0f b1 13 48 85 c0 74 08 48 89 df e8 66 fd ff ff 5b 5d c3 [ 24.313182] RIP: mutex_lock+0x18/0x30 RSP: c90001b5bcb0 [ 24.313811] CR2: 02e0 [ 24.314208] ---[ end trace 29669c1593cae14b ]--- Signed-off-by: Gabriel Kr

[PATCH] drm: Always prepare null framebuffer in transitional helper

2017-02-16 Thread Gabriel Krisman Bertazi
tly inside the prepare_fb hook is atmel_hlcdc, so we take special care to make sure we don't break anything there. Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 3 +++ drivers/gpu/drm/drm_plane_helper.c | 3 +-- 2 files changed, 4 i

[PATCH 11/14] drm: qxl: Atomic phase 3: Use atomic handlers for planes

2017-02-15 Thread Gabriel Krisman Bertazi
Now that the state objects are wired up, we can move to the final atomic handlers. Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl

[PATCH 13/14] drm: qxl: Atomic phase 3: Wire up atomic page_flip helper

2017-02-15 Thread Gabriel Krisman Bertazi
Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 47 +-- 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index f86e194ed797..2cd14bebc49c 100644

[PATCH 14/14] drm: qxl: Enable atomic modesetting ioctl

2017-02-15 Thread Gabriel Krisman Bertazi
Now that atomic support is implemented, enable the atomic flag. Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/qxl/qxl_drv.c b/drivers/gpu/drm/qxl/qxl_drv.c index 67e94f4f3ce8

[PATCH 12/14] drm: qxl: Atomic phase 3: Wire up atomic set_config helper

2017-02-15 Thread Gabriel Krisman Bertazi
Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index 52c4e643331a..f86e194ed797 100644 --- a/drivers/gpu/drm/qxl

[PATCH 09/14] drm: qxl: Atomic phase 2: Wire up state object handlers

2017-02-15 Thread Gabriel Krisman Bertazi
Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index 09c076f5a792..d5a00b6a07ea 100644 --- a/drivers/gpu/drm/qxl/qxl_display.c

[PATCH 10/14] drm: qxl: Atomic phase 2: Use drm_atomic_set_fb_for_plane helper

2017-02-15 Thread Gabriel Krisman Bertazi
Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index d5a00b6a07ea..d1c12ac222b7 100644 --- a/drivers/gpu/drm/qxl

[PATCH 07/14] drm: qxl: Atomic phase 1: Implement mode_set_nofb

2017-02-15 Thread Gabriel Krisman Bertazi
Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 88 +++ 1 file changed, 16 insertions(+), 72 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index 8ccf62ae0efd..b23979fad1e2

[PATCH 06/14] drm: qxl: Atomic phase 1: Use drm_plane_helpers for primary plane

2017-02-15 Thread Gabriel Krisman Bertazi
Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 101 +- 1 file changed, 100 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index fef464730c9b..8ccf62ae0efd 100644

[PATCH 08/14] drm: qxl: Atomic phase 1: Don't unpin primary when disabling crtc

2017-02-15 Thread Gabriel Krisman Bertazi
In the qxl atomic model, the primary doesn't stay pinned all the time, instead it is only pinned/unpinned between prepare_fb and cleanup_fb. So, we no longer need a final unpin of the primary framebuffer when disabling the crtc. Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/dr

[PATCH 05/14] drm: qxl: Atomic phase 1: convert cursor to universal plane

2017-02-15 Thread Gabriel Krisman Bertazi
In preparation for atomic conversion, let's use the transitional atomic helpers drm_plane_helper_update/disable. Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 442 +- drivers/gpu/drm/qxl/qxl_drv.h | 5 - 2 files ch

[PATCH 04/14] drm: qxl: Expose creation of universal primary plane

2017-02-15 Thread Gabriel Krisman Bertazi
Let's expose the primary plane initialization inside the qxl driver in preparation for universal planes and atomic. Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 71 ++- 1 file changed, 70 insertions(+), 1 deletion(-)

[PATCH 00/14] qxl atomic modesetting

2017-02-15 Thread Gabriel Krisman Bertazi
t and some custom code that I can share if requested. I hope this covers the main use cases. [1] <http://blog.ffwll.ch/2014/11/atomic-modeset-support-for-kms-drivers.html> Gabriel Krisman Bertazi (14): drm: qxl: Drop device flags attribute drm: qxl: Consolidate bo reservation when pi

[PATCH 01/14] drm: qxl: Drop device flags attribute

2017-02-15 Thread Gabriel Krisman Bertazi
There are no device specific flags that we need to keep track of here. Let it vanish. Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_drv.c | 2 +- drivers/gpu/drm/qxl/qxl_drv.h | 3 +-- drivers/gpu/drm/qxl/qxl_kms.c | 5 + 3 files changed, 3 insertions(+), 7 deletions

[PATCH 03/14] drm: qxl: Don't initialize vblank support

2017-02-15 Thread Gabriel Krisman Bertazi
qxl don't have support for hardware vblanks so we can't initialize it here, otherwise we risk getting stuck in drm_wait_one_vblank. Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 3 --- drivers/gpu/drm/qxl/qxl_drv.c | 26 +

[PATCH 02/14] drm: qxl: Consolidate bo reservation when pinning

2017-02-15 Thread Gabriel Krisman Bertazi
. Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_display.c | 52 ++- drivers/gpu/drm/qxl/qxl_fb.c | 25 ++- drivers/gpu/drm/qxl/qxl_object.c | 41 -- 3 files changed, 54 insertions(+), 64 deletions

[PATCH] drm: Fix build when FBDEV_EMULATION is disabled

2017-02-02 Thread Gabriel Krisman Bertazi
g data for fb_helper initialization") Signed-off-by: Gabriel Krisman Bertazi --- include/drm/drm_fb_helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drm/drm_fb_helper.h b/include/drm/drm_fb_helper.h index 278820ee17ad..6f5acebb266a 100644 --- a/include/drm/drm_fb_h

[PATCH v2] drm: Rely on mode_config data for fb_helper initialization

2017-02-02 Thread Gabriel Krisman Bertazi
tion to sti since a proper fix got merged. Suggested-by: Daniel Vetter Signed-off-by: Gabriel Krisman Bertazi Reviewed-by: Eric Anholt --- drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c| 1 - drivers/gpu/drm/arc/arcpgu_drv.c | 3 +-- drivers/gpu/drm/arm/

Re: [PATCH 1/2] drm: sti: Prevent race on fbdev initialization

2017-02-02 Thread Gabriel Krisman Bertazi
Gabriel Krisman Bertazi writes: > Scheduling the output_poll_work before calling bind_all to create the > crtcs can race the fbdev initialization with the components > initialization (i.e. crtc initialization). One side effect is that we > may call drm_fbdev_cma_init with a zer

[PATCH 2/2] drm: Rely on mode_config data for fb_helper initialization

2017-02-01 Thread Gabriel Krisman Bertazi
A,B,D) ) @@ identifier r.C; type T; expression V; @@ - T C; <... when != p - C = V; ...> // Suggested-by: Daniel Vetter Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c| 1 - drivers/gpu/drm/arc/arcpgu_drv.c | 3 +-- drivers/

[PATCH 1/2] drm: sti: Prevent race on fbdev initialization

2017-02-01 Thread Gabriel Krisman Bertazi
ned-off-by: Gabriel Krisman Bertazi Cc: Benjamin Gaignard Cc: Vincent Abriou --- drivers/gpu/drm/sti/sti_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/sti/sti_drv.c b/drivers/gpu/drm/sti/sti_drv.c index d3db22488f96..516296010735 100644 --- a/drive

Re: [PATCH v2] drm/tilcdc: Fix hardcoded fail-return value in tilcdc_crtc_create()

2017-01-31 Thread Gabriel Krisman Bertazi
Jyri Sarha writes: > Fix badly hardcoded return return value under fail-label. All goto > branches to the label set the "ret"-variable accordingly. > > Signed-off-by: Jyri Sarha Thanks. Looks good. Reviewed-by: Gabriel Krisman Bertazi -- G

Re: [PATCH 1/4] drm: qxl: Drop misleading comment

2017-01-31 Thread Gabriel Krisman Bertazi
Gerd Hoffmann writes: > On Fr, 2017-01-27 at 14:53 +0100, Daniel Vetter wrote: >> On Fri, Jan 27, 2017 at 09:20:42AM +0100, Gerd Hoffmann wrote: >> > On Do, 2017-01-26 at 23:05 -0200, Gabriel Krisman Bertazi wrote: >> > > No longer true since commit 07f8d9bdb235

Re: [PATCH] drm/tilcdc: Fix hardcoded fail-return value in tilcdc_crtc_create()

2017-01-31 Thread Gabriel Krisman Bertazi
lcdc_crtc_create(struct drm_device *dev) > > fail: > tilcdc_crtc_destroy(crtc); > - return -ENOMEM; > + return -ret; Hi, Shouldn't it read ret instead of -ret? The places that set ret already make it negative, while turning it positive looks like would

Re: [PATCH 1/4] drm: qxl: Drop misleading comment

2017-01-27 Thread Gabriel Krisman Bertazi
Daniel Vetter writes: > On Fri, Jan 27, 2017 at 09:20:42AM +0100, Gerd Hoffmann wrote: >> On Do, 2017-01-26 at 23:05 -0200, Gabriel Krisman Bertazi wrote: >> > No longer true since commit 07f8d9bdb235 ("drm/qxl: add support for > 1 >> > output"). qxl_nu

[PATCH 1/4] drm: qxl: Drop misleading comment

2017-01-26 Thread Gabriel Krisman Bertazi
No longer true since commit 07f8d9bdb235 ("drm/qxl: add support for > 1 output"). qxl_num_crtc defaults to 4 and is configurable as a module parameter. Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 3/4] drm: qxl: Drop duplicated pci_device pointer attribute

2017-01-26 Thread Gabriel Krisman Bertazi
qxl_device duplicates the pointer to struct pci_dev, which is not needed since we already have it in the drm_device structure. Clean it up. Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_drv.h | 1 - drivers/gpu/drm/qxl/qxl_ioctl.c | 2 +- drivers/gpu/drm/qxl/qxl_kms.c

[PATCH 4/4] drm: qxl: Embed drm_device into driver structure

2017-01-26 Thread Gabriel Krisman Bertazi
This is the recommended way to create the drm_device structure, according to DRM documentation. Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_debugfs.c | 6 +++--- drivers/gpu/drm/qxl/qxl_display.c | 32 drivers/gpu/drm/qxl/qxl_drv.c

[PATCH 2/4] drm: qxl: Drop duplicated device pointer attribute

2017-01-26 Thread Gabriel Krisman Bertazi
qxl_device duplicates a pointer to struct device, which is not needed since we already have it in the drm_device structure. Clean it up. Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/qxl/qxl_drv.h| 1 - drivers/gpu/drm/qxl/qxl_kms.c| 1 - drivers/gpu/drm/qxl/qxl_object.c

Re: [PATCH] drm: Update drm_cache.c to pull in the new drm_cache.h

2017-01-21 Thread Gabriel Krisman Bertazi
prototypes to drm_cache header > file") > Signed-off-by: Chris Wilson > Cc: Gabriel Krisman Bertazi > Cc: Alex Deucher > Cc: Daniel Vetter Patch is good, though I'm Embarrassed that I didn't have -Wmissing-prototypes enabled when testing this. Thanks Chris

Re: [PATCH v2 1/2] drm: qxl: Open code probing sequence for qxl

2017-01-19 Thread Gabriel Krisman Bertazi
> Please group this declaration together with the other qxl debugfs > declarations. Thanks for the review. Just submitted a v3 that adds this modification. Please, take a look when you have the time. -- Gabriel Krisman Bertazi ___ dri-devel m

[PATCH v3 1/2] drm: qxl: Open code probing sequence for qxl

2017-01-19 Thread Gabriel Krisman Bertazi
running a WM on top of X. Changes since v1: - Drop verification for primary minor in qxl_debugsfs_init. Changes since V2: - Put new header together with other debugfs headers. Signed-off-by: Gabriel Krisman Bertazi Cc: Dave Airlie Cc: Daniel Vetter Cc: Gustavo Padovan --- drivers/gpu/drm

[PATCH v3 2/2] drm: qxl: Open code teardown function for qxl

2017-01-19 Thread Gabriel Krisman Bertazi
This avoids using the deprecated drm_put_dev() and unload() hook interfaces in the qxl driver. Signed-off-by: Gabriel Krisman Bertazi Cc: Dave Airlie Cc: Daniel Vetter Cc: Gustavo Padovan --- drivers/gpu/drm/qxl/qxl_drv.c | 11 +-- drivers/gpu/drm/qxl/qxl_drv.h | 2 -- drivers/gpu

[PATCH v2 1/2] drm: qxl: Open code probing sequence for qxl

2017-01-17 Thread Gabriel Krisman Bertazi
running a WM on top of X. Changes since v1: - Drop verification for primary minor in qxl_debugsfs_init Signed-off-by: Gabriel Krisman Bertazi Cc: Dave Airlie Cc: Daniel Vetter Cc: Gustavo Padovan --- drivers/gpu/drm/qxl/qxl_debugfs.c | 10 +++ drivers/gpu/drm/qxl/qxl_drv.c | 58

[PATCH v2 2/2] drm: qxl: Open code teardown function for qxl

2017-01-17 Thread Gabriel Krisman Bertazi
This avoids using the deprecated drm_put_dev() and unload() hook interfaces in the qxl driver. Signed-off-by: Gabriel Krisman Bertazi Cc: Dave Airlie Cc: Daniel Vetter Cc: Gustavo Padovan --- drivers/gpu/drm/qxl/qxl_drv.c | 11 +-- drivers/gpu/drm/qxl/qxl_drv.h | 2 -- drivers/gpu

Re: [PATCH 2/3] drm: qxl: Open code probing sequence for qxl

2017-01-17 Thread Gabriel Krisman Bertazi
ed files. Wouldn't that or some modification around work for > this? Thanks for your review, Gustavo. As I mentioned on IRC, I verified the check is not needed at all, since qxl only implements one minor. I'll resend without this bit. -- Gabriel Krisman Bertazi __

[PATCH 1/3] drm: qxl: Let DRM core handle connector registering

2017-01-12 Thread Gabriel Krisman Bertazi
() hook removal, because the connector interface cannot be published prior to registering the minors. Signed-off-by: Gabriel Krisman Bertazi CC: Dave Airlie CC: Daniel Vetter CC: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/qxl/qxl_display.c | 1 - 1 file changed, 1 deletion(-) diff --git a

[PATCH 2/3] drm: qxl: Open code probing sequence for qxl

2017-01-12 Thread Gabriel Krisman Bertazi
times for each minor function, we make sure it is only executed for the primary minor. Tested on qemu with igt and running a WM on top of X. Signed-off-by: Gabriel Krisman Bertazi CC: Dave Airlie CC: Daniel Vetter CC: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/qxl/qxl_debugfs.c | 12

[PATCH 3/3] drm: qxl: Open code teardown function for qxl

2017-01-12 Thread Gabriel Krisman Bertazi
This avoids using the deprecated drm_put_dev() and unload() hook interfaces in the qxl driver. Signed-off-by: Gabriel Krisman Bertazi CC: Dave Airlie CC: Daniel Vetter CC: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/qxl/qxl_drv.c | 11 +-- drivers/gpu/drm/qxl/qxl_drv.h | 2

[PATCH v2 2/2] drm: Move drm_clflush prototypes to drm_cache header file

2017-01-09 Thread Gabriel Krisman Bertazi
Continue to clean up drmP.h by moving the cache flushing functions into it's own header file. Compile-tested only Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/vgem/vgem_drv.h | 1 + include/drm/drmP.h | 5 - includ

[PATCH v2 1/2] drm: Document drm_cache interface

2017-01-09 Thread Gabriel Krisman Bertazi
nce v1: - Add section to drm-mm.rst. - Fix kernel-doc style issues. - s/memory/kernel memory/. Signed-off-by: Gabriel Krisman Bertazi --- Documentation/gpu/drm-mm.rst | 6 ++ drivers/gpu/drm/drm_cache.c | 23 +++ 2 files changed, 29 insertions(+) diff --git a/Documen

[PATCH] drm: Change the return type of the unload hook to void

2017-01-06 Thread Gabriel Krisman Bertazi
uggested-by: Daniel Vetter Signed-off-by: Gabriel Krisman Bertazi --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 5 ++--- drivers/gpu/drm/ast/ast_drv.h | 2 +- drivers/gpu/drm/ast/ast_main.c| 3 +-- drivers/gpu/drm/bochs/

[PATCH v2 2/2] drm: Document deprecated load/unload hook

2017-01-04 Thread Gabriel Krisman Bertazi
of this vfunc to void? > > Applied this one here meanwhile to drm-misc, thanks a lot. Thanks, Daniel. sure, I can do it, it's going to be a good way for me to learn coccinelle. -- Gabriel Krisman Bertazi

[lkp-developer] [drm] 75f6dfe3e6: BUG:unable_to_handle_kernel

2017-01-04 Thread Gabriel Krisman Bertazi
with the jobfile just to be sure on top of drm-misc-next, and I couldn't reproduce the error anymore after applying Chris' patch (but I could reproduce the Oops when trying only with my patch). Also, sorry for the noise and lesson learned about virtual devices :( -- Gabriel Krisman Bertazi

  1   2   >