Displaying 4 results from an estimated 4 matches for "delayed_ops_lock".
2018 Sep 12
0
[PATCH] qxl: refactor to use drm_fb_helper_fbdev_setup
...eate -> drm_gem_fb_create.
> - qxl_user_framebuffer_destroy -> drm_gem_fb_destroy.
> - qxl_fbdev_destroy -> drm_fb_helper_fbdev_teardown + vfree(shadow).
>
> Remove unused code:
> - qxl_fbdev_qobj_is_fb, qxl_fbdev_set_suspend.
> - Unused fields of qxl_fbdev: delayed_ops, delayed_ops_lock, size.
>
> Misc notes:
> - The dirty callback is preserved as it is necessary to trigger update
> commands in the hw (the screen stays black otherwise).
> - No idea when .create_handle in drm_framebuffer_funcs is used, but use
> the same drm_gem_fb_create_handle to match drm_...
2017 Aug 08
5
[PATCH libdrm] drm: Remove create_handle() drm_framebuffer "virtual".
.../drm/qxl/qxl_fb.c
index 844c4a31ca13..3a26a969f2d6 100644
--- a/drivers/gpu/drm/qxl/qxl_fb.c
+++ b/drivers/gpu/drm/qxl/qxl_fb.c
@@ -39,7 +39,7 @@
struct qxl_fbdev {
struct drm_fb_helper helper;
- struct qxl_framebuffer qfb;
+ struct drm_framebuffer fb;
struct qxl_device *qdev;
spinlock_t delayed_ops_lock;
@@ -103,7 +103,7 @@ int qxl_get_handle_for_primary_fb(struct qxl_device *qdev,
uint32_t *handle)
{
int r;
- struct drm_gem_object *gobj = qdev->fbdev_qfb->obj;
+ struct drm_gem_object *gobj = qdev->fbdev_qfb->gem_objs[0];
BUG_ON(!gobj);
/* drm_get_handle_create adds a r...
2017 Aug 08
5
[PATCH libdrm] drm: Remove create_handle() drm_framebuffer "virtual".
.../drm/qxl/qxl_fb.c
index 844c4a31ca13..3a26a969f2d6 100644
--- a/drivers/gpu/drm/qxl/qxl_fb.c
+++ b/drivers/gpu/drm/qxl/qxl_fb.c
@@ -39,7 +39,7 @@
struct qxl_fbdev {
struct drm_fb_helper helper;
- struct qxl_framebuffer qfb;
+ struct drm_framebuffer fb;
struct qxl_device *qdev;
spinlock_t delayed_ops_lock;
@@ -103,7 +103,7 @@ int qxl_get_handle_for_primary_fb(struct qxl_device *qdev,
uint32_t *handle)
{
int r;
- struct drm_gem_object *gobj = qdev->fbdev_qfb->obj;
+ struct drm_gem_object *gobj = qdev->fbdev_qfb->gem_objs[0];
BUG_ON(!gobj);
/* drm_get_handle_create adds a r...
2017 Aug 08
5
[PATCH libdrm] drm: Remove create_handle() drm_framebuffer "virtual".
.../drm/qxl/qxl_fb.c
index 844c4a31ca13..3a26a969f2d6 100644
--- a/drivers/gpu/drm/qxl/qxl_fb.c
+++ b/drivers/gpu/drm/qxl/qxl_fb.c
@@ -39,7 +39,7 @@
struct qxl_fbdev {
struct drm_fb_helper helper;
- struct qxl_framebuffer qfb;
+ struct drm_framebuffer fb;
struct qxl_device *qdev;
spinlock_t delayed_ops_lock;
@@ -103,7 +103,7 @@ int qxl_get_handle_for_primary_fb(struct qxl_device *qdev,
uint32_t *handle)
{
int r;
- struct drm_gem_object *gobj = qdev->fbdev_qfb->obj;
+ struct drm_gem_object *gobj = qdev->fbdev_qfb->gem_objs[0];
BUG_ON(!gobj);
/* drm_get_handle_create adds a r...