diff options
author | Dave Airlie <airlied@redhat.com> | 2015-01-08 18:22:40 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-01-08 18:22:40 -0500 |
commit | c93546a5e32bd788c22aefa072385f3784551c13 (patch) | |
tree | 558c75a3424be58551822d1cfe6b284c3173cada /Documentation | |
parent | e5202a2289d746a94703ad937157d398fb2607cf (diff) | |
parent | 179f158ccf15fb9425f53d589d1b48eab90449a6 (diff) |
Merge tag 'topic/atomic-core-2015-01-05' of git://anongit.freedesktop.org/drm-intel into drm-next
Next batch of atomic work. Most important is the propertification from Rob
and the nth iteration of the actual atomic ioctl originally from Ville.
Big differences compared to earlier revisions:
- Core properties are now fully handled by the core, drivers can only
handle driver-specific properties.
- Atomic props&ioctl are opt-in per file_priv, userspace needs to
explicitly ask for it (like universal plane support).
- For now all hidden behind the atomic module option until this has
settled a bit.
- Atomic modesets are currently not possible since the exact abi for how
to handle the mode property is still under discussion.
Besides this some cleanup patches from me and the addition of per-object
state to global state backpointers to simplify drivers.
* tag 'topic/atomic-core-2015-01-05' of git://anongit.freedesktop.org/drm-intel:
drm: Ensure universal_planes is set for atomic
drm/atomic: Hide drm.ko internal interfaces
drm: Atomic modeset ioctl
drm/atomic: atomic connector properties
drm/atomic: atomic plane properties
drm: small property creation cleanup
drm/atomic: atomic_check functions
drm: add atomic properties
drm: refactor getproperties/getconnector
drm: tweak getconnector locking
drm: add atomic_get_property
drm: add atomic_set_property wrappers
drm: get rid of direct property value access
drm: store property instead of id in obj attachment
drm: allow property validation for refcnted props
drm/atomic: Introduce state->obj backpointers
drm/atomic-helper: Again check modeset *before* plane states
drm/atomic-helper: Export both plane and modeset check helpers
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/DocBook/drm.tmpl | 91 |
1 files changed, 88 insertions, 3 deletions
diff --git a/Documentation/DocBook/drm.tmpl b/Documentation/DocBook/drm.tmpl index 8a0b2a84f4bf..640c2a30563f 100644 --- a/Documentation/DocBook/drm.tmpl +++ b/Documentation/DocBook/drm.tmpl | |||
@@ -239,6 +239,14 @@ | |||
239 | Driver supports dedicated render nodes. | 239 | Driver supports dedicated render nodes. |
240 | </para></listitem> | 240 | </para></listitem> |
241 | </varlistentry> | 241 | </varlistentry> |
242 | <varlistentry> | ||
243 | <term>DRIVER_ATOMIC</term> | ||
244 | <listitem><para> | ||
245 | Driver supports atomic properties. In this case the driver | ||
246 | must implement appropriate obj->atomic_get_property() vfuncs | ||
247 | for any modeset objects with driver specific properties. | ||
248 | </para></listitem> | ||
249 | </varlistentry> | ||
242 | </variablelist> | 250 | </variablelist> |
243 | </sect3> | 251 | </sect3> |
244 | <sect3> | 252 | <sect3> |
@@ -2565,8 +2573,8 @@ void intel_crt_init(struct drm_device *dev) | |||
2565 | <td valign="top" >Description/Restrictions</td> | 2573 | <td valign="top" >Description/Restrictions</td> |
2566 | </tr> | 2574 | </tr> |
2567 | <tr> | 2575 | <tr> |
2568 | <td rowspan="25" valign="top" >DRM</td> | 2576 | <td rowspan="36" valign="top" >DRM</td> |
2569 | <td rowspan="4" valign="top" >Generic</td> | 2577 | <td rowspan="5" valign="top" >Connector</td> |
2570 | <td valign="top" >“EDID”</td> | 2578 | <td valign="top" >“EDID”</td> |
2571 | <td valign="top" >BLOB | IMMUTABLE</td> | 2579 | <td valign="top" >BLOB | IMMUTABLE</td> |
2572 | <td valign="top" >0</td> | 2580 | <td valign="top" >0</td> |
@@ -2595,7 +2603,14 @@ void intel_crt_init(struct drm_device *dev) | |||
2595 | <td valign="top" >Contains tiling information for a connector.</td> | 2603 | <td valign="top" >Contains tiling information for a connector.</td> |
2596 | </tr> | 2604 | </tr> |
2597 | <tr> | 2605 | <tr> |
2598 | <td rowspan="1" valign="top" >Plane</td> | 2606 | <td valign="top" >“CRTC_ID”</td> |
2607 | <td valign="top" >OBJECT</td> | ||
2608 | <td valign="top" >DRM_MODE_OBJECT_CRTC</td> | ||
2609 | <td valign="top" >Connector</td> | ||
2610 | <td valign="top" >CRTC that connector is attached to (atomic)</td> | ||
2611 | </tr> | ||
2612 | <tr> | ||
2613 | <td rowspan="11" valign="top" >Plane</td> | ||
2599 | <td valign="top" >“type”</td> | 2614 | <td valign="top" >“type”</td> |
2600 | <td valign="top" >ENUM | IMMUTABLE</td> | 2615 | <td valign="top" >ENUM | IMMUTABLE</td> |
2601 | <td valign="top" >{ "Overlay", "Primary", "Cursor" }</td> | 2616 | <td valign="top" >{ "Overlay", "Primary", "Cursor" }</td> |
@@ -2603,6 +2618,76 @@ void intel_crt_init(struct drm_device *dev) | |||
2603 | <td valign="top" >Plane type</td> | 2618 | <td valign="top" >Plane type</td> |
2604 | </tr> | 2619 | </tr> |
2605 | <tr> | 2620 | <tr> |
2621 | <td valign="top" >“SRC_X”</td> | ||
2622 | <td valign="top" >RANGE</td> | ||
2623 | <td valign="top" >Min=0, Max=UINT_MAX</td> | ||
2624 | <td valign="top" >Plane</td> | ||
2625 | <td valign="top" >Scanout source x coordinate in 16.16 fixed point (atomic)</td> | ||
2626 | </tr> | ||
2627 | <tr> | ||
2628 | <td valign="top" >“SRC_Y”</td> | ||
2629 | <td valign="top" >RANGE</td> | ||
2630 | <td valign="top" >Min=0, Max=UINT_MAX</td> | ||
2631 | <td valign="top" >Plane</td> | ||
2632 | <td valign="top" >Scanout source y coordinate in 16.16 fixed point (atomic)</td> | ||
2633 | </tr> | ||
2634 | <tr> | ||
2635 | <td valign="top" >“SRC_W”</td> | ||
2636 | <td valign="top" >RANGE</td> | ||
2637 | <td valign="top" >Min=0, Max=UINT_MAX</td> | ||
2638 | <td valign="top" >Plane</td> | ||
2639 | <td valign="top" >Scanout source width in 16.16 fixed point (atomic)</td> | ||
2640 | </tr> | ||
2641 | <tr> | ||
2642 | <td valign="top" >“SRC_H”</td> | ||
2643 | <td valign="top" >RANGE</td> | ||
2644 | <td valign="top" >Min=0, Max=UINT_MAX</td> | ||
2645 | <td valign="top" >Plane</td> | ||
2646 | <td valign="top" >Scanout source height in 16.16 fixed point (atomic)</td> | ||
2647 | </tr> | ||
2648 | <tr> | ||
2649 | <td valign="top" >“CRTC_X”</td> | ||
2650 | <td valign="top" >SIGNED_RANGE</td> | ||
2651 | <td valign="top" >Min=INT_MIN, Max=INT_MAX</td> | ||
2652 | <td valign="top" >Plane</td> | ||
2653 | <td valign="top" >Scanout CRTC (destination) x coordinate (atomic)</td> | ||
2654 | </tr> | ||
2655 | <tr> | ||
2656 | <td valign="top" >“CRTC_Y”</td> | ||
2657 | <td valign="top" >SIGNED_RANGE</td> | ||
2658 | <td valign="top" >Min=INT_MIN, Max=INT_MAX</td> | ||
2659 | <td valign="top" >Plane</td> | ||
2660 | <td valign="top" >Scanout CRTC (destination) y coordinate (atomic)</td> | ||
2661 | </tr> | ||
2662 | <tr> | ||
2663 | <td valign="top" >“CRTC_W”</td> | ||
2664 | <td valign="top" >RANGE</td> | ||
2665 | <td valign="top" >Min=0, Max=UINT_MAX</td> | ||
2666 | <td valign="top" >Plane</td> | ||
2667 | <td valign="top" >Scanout CRTC (destination) width (atomic)</td> | ||
2668 | </tr> | ||
2669 | <tr> | ||
2670 | <td valign="top" >“CRTC_H”</td> | ||
2671 | <td valign="top" >RANGE</td> | ||
2672 | <td valign="top" >Min=0, Max=UINT_MAX</td> | ||
2673 | <td valign="top" >Plane</td> | ||
2674 | <td valign="top" >Scanout CRTC (destination) height (atomic)</td> | ||
2675 | </tr> | ||
2676 | <tr> | ||
2677 | <td valign="top" >“FB_ID”</td> | ||
2678 | <td valign="top" >OBJECT</td> | ||
2679 | <td valign="top" >DRM_MODE_OBJECT_FB</td> | ||
2680 | <td valign="top" >Plane</td> | ||
2681 | <td valign="top" >Scanout framebuffer (atomic)</td> | ||
2682 | </tr> | ||
2683 | <tr> | ||
2684 | <td valign="top" >“CRTC_ID”</td> | ||
2685 | <td valign="top" >OBJECT</td> | ||
2686 | <td valign="top" >DRM_MODE_OBJECT_CRTC</td> | ||
2687 | <td valign="top" >Plane</td> | ||
2688 | <td valign="top" >CRTC that plane is attached to (atomic)</td> | ||
2689 | </tr> | ||
2690 | <tr> | ||
2606 | <td rowspan="2" valign="top" >DVI-I</td> | 2691 | <td rowspan="2" valign="top" >DVI-I</td> |
2607 | <td valign="top" >“subconnector”</td> | 2692 | <td valign="top" >“subconnector”</td> |
2608 | <td valign="top" >ENUM</td> | 2693 | <td valign="top" >ENUM</td> |