search for: num_encoder

Displaying 5 results from an estimated 5 matches for "num_encoder".

Did you mean: drm_encoder
2019 Aug 15
1
[RFC] drm: Bump encoder limit from 32 to 64
...gpu/drm/drm_encoder.c index 7fb47b7b8b44..e4b8f675aa81 100644 --- a/drivers/gpu/drm/drm_encoder.c +++ b/drivers/gpu/drm/drm_encoder.c @@ -112,8 +112,14 @@ int drm_encoder_init(struct drm_device *dev, { int ret; - /* encoder index is used with 32bit bitmasks */ - if (WARN_ON(dev->mode_config.num_encoder >= 32)) + /* + * Since possible_clones has been exposed to userspace as a 32bit + * bitmask, we don't allow creating encoders with an index >=32 which + * are capable of cloning. + */ + if (WARN_ON(dev->mode_config.num_encoder >= 64) || + WARN_ON(dev->mode_config.num_enco...
2019 Aug 21
2
[PATCH v2] drm: Bump encoder limit from 32 to 64
...+ return -EINVAL; + if (encoder->funcs->late_register) ret = encoder->funcs->late_register(encoder); if (ret) @@ -112,8 +120,8 @@ int drm_encoder_init(struct drm_device *dev, { int ret; - /* encoder index is used with 32bit bitmasks */ - if (WARN_ON(dev->mode_config.num_encoder >= 32)) + /* encoder index is used with 64bit bitmasks */ + if (WARN_ON(dev->mode_config.num_encoder >= 64)) return -EINVAL; ret = drm_mode_object_add(dev, &encoder->base, DRM_MODE_OBJECT_ENCODER); diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 7d14c11bdc0...
2019 Aug 21
0
[PATCH v2] drm: Bump encoder limit from 32 to 64
...t;funcs->late_register) > ret = encoder->funcs->late_register(encoder); > if (ret) > @@ -112,8 +120,8 @@ int drm_encoder_init(struct drm_device *dev, > { > int ret; > > - /* encoder index is used with 32bit bitmasks */ > - if (WARN_ON(dev->mode_config.num_encoder >= 32)) > + /* encoder index is used with 64bit bitmasks */ > + if (WARN_ON(dev->mode_config.num_encoder >= 64)) > return -EINVAL; > > ret = drm_mode_object_add(dev, &encoder->base, DRM_MODE_OBJECT_ENCODER); > diff --git a/include/drm/drm_crtc.h b/include/dr...
2020 Feb 07
11
[PATCH 0/6] drm: Provide a simple encoder
Many DRM drivers implement an encoder with an empty implementation. This patchset adds drm_simple_encoder_init() and drm_simple_encoder_create(), which can be used by drivers instead. Except for the destroy callback, the simple encoder's implementation is empty. The patchset also converts 4 encoder instances to use the simple-encoder helpers. But there are at least 11 other drivers which can
2012 Dec 12
43
[PATCH 00/37] [RFC] revamped modeset locking
Hi all, First thing first: It works, I now no longer have a few dropped frames every 10s on my testbox here with the pageflip i-g-t tests. Random notes: - New design has per-crtc locks to protect the crtc input-side (pageflip, cursor) for r/w and the output state of the crtc (mode, dpms) as read-only. It also required completely revamped fb lifecycle management, those are now refcounted