Skip to contentSkip to conversation

drm/doc: Rename docbook to gpu.tmpl

RFC PATCH In review Daniel Vetter 5 participants 12 messages Oct 7, 2015 – Oct 14, 2015

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 drm/doc: Rename docbook to gpu.tmpl

DRM is a lot more than a direct manager nowadays, and there's also a bunch of things worth documenting for gpu driver developers outside of drivers/gpu/drm, like vgaarb, vga switcheroo or the various hardware buses like host1x and ipu-v3.

To avoid further confusion let's rename the top-level to reflect reality.

And yes I'm already looking forward to when we need to replace the G in GPU with a * ;-)

Inspired by a thread with Lukas since he refused to include the vga switcheroo docs into the gpu docs because it's not drm.

---
 Documentation/DocBook/Makefile             |    4 +-
 Documentation/DocBook/drm.tmpl             | 4129 ----------------------------
 Documentation/DocBook/gpu.tmpl             | 4129 ++++++++++++++++++++++++++++
 drivers/gpu/drm/i915/i915_gem_execbuffer.c |    2 +
 4 files changed, 4133 insertions(+), 4131 deletions(-)
 delete mode 100644 Documentation/DocBook/drm.tmpl
 create mode 100644 Documentation/DocBook/gpu.tmpl
Documentation/DocBook/Makefile +2 -2
index 75b7d9b557b1..2088200badcb 100644
@@ -14,10 +14,10 @@ DOCBOOKS := z8530book.xml device-drivers.xml \
 	    genericirq.xml s390-drivers.xml uio-howto.xml scsi.xml \
 	    80211.xml debugobjects.xml sh.xml regulator.xml \
 	    alsa-driver-api.xml writing-an-alsa-driver.xml \
-	    tracepoint.xml drm.xml media_api.xml w1.xml \
+	    tracepoint.xml gpu.xml media_api.xml w1.xml \
 	    writing_musb_glue_layer.xml crypto-API.xml iio.xml
 
-MARKDOWNREADY := drm.xml
+MARKDOWNREADY := gpu.xml
 
 include Documentation/DocBook/media/Makefile
 
Documentation/DocBook/drm.tmpl deleted +0 -4129

2,988 lines not on this page · raw message

Documentation/DocBook/gpu.tmpl new file +4129 -0

4,129 lines not on this page · raw message

drivers/gpu/drm/i915/i915_gem_execbuffer.c +2 -0
index 67ef118ee160..2c0d4dae3a35 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 6 lines
2.5.1

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

Part of the diff is not shown here. View the raw message.

maintainer
#1 lore raw
Quoted 16 lines · Daniel Vetter

DRM is a lot more than a direct manager nowadays, and there's also a bunch of things worth documenting for gpu driver developers outside of drivers/gpu/drm, like vgaarb, vga switcheroo or the various hardware buses like host1x and ipu-v3.

To avoid further confusion let's rename the top-level to reflect reality.

And yes I'm already looking forward to when we need to replace the G in GPU with a * ;-)

Inspired by a thread with Lukas since he refused to include the vga switcheroo docs into the gpu docs because it's not drm.

Quoted 8 lines
---
 Documentation/DocBook/Makefile             |    4 +-
 Documentation/DocBook/drm.tmpl             | 4129 ----------------------------
 Documentation/DocBook/gpu.tmpl             | 4129 ++++++++++++++++++++++++++++
 drivers/gpu/drm/i915/i915_gem_execbuffer.c |    2 +
 4 files changed, 4133 insertions(+), 4131 deletions(-)
 delete mode 100644 Documentation/DocBook/drm.tmpl
 create mode 100644 Documentation/DocBook/gpu.tmpl

Please use 'git format-patch -M' so it'll be easier to spot the little easter egg at the end.

[tons of stuff removed]

drivers/gpu/drm/i915/i915_gem_execbuffer.c i915_gem_execbuffer2(struct drm_device *dev, void *data, · line 1786

Quoted 10 lines
drivers/gpu/drm/i915/i915_gem_execbuffer.c +2 -0
index 67ef118ee160..2c0d4dae3a35 100644
@@ -1782,6 +1782,8 @@ i915_gem_execbuffer2(struct drm_device *dev, void *data,
 	struct drm_i915_gem_exec_object2 *exec2_list = NULL;
 	int ret;
 
+	BUG();
+

"whoops" ;)

BR,
Jani.

Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw
In reply to Daniel Vetter

This series shows what drm.tmpl would look like if renamed to gpu.tmpl and amended by the vga_switcheroo documentation. The DocBook would thus become the "Linux GPU Driver Developer's Guide", covering not only DRM but also other components in drivers/gpu/.

There are two unsorted lists in the vga_switcheroo documentation which for optimal rendering require markdown support. One may either apply the series to drm-next (on top of the markdown patches), or to drm-intel-nightly (which already has the markdown patches).

The series is also available on GitHub (the commits required for markdown are apparent from this branch as it's based on drm-next):
https://github.com/l1k/linux/commits/gpu_docs

Best regards,

Lukas

Daniel Vetter (1):
drm/doc: Rename docbook to gpu.tmpl

Lukas Wunner (4):
drm/doc: Remove TODO about drm_vblank_pre/post_modeset() gpu/doc: Fix up remaining occurrences of old document title gpu/doc: Add vga_switcheroo documentation gpu/doc: Convert to markdown harder

 Documentation/DocBook/Makefile |    4 +-
 Documentation/DocBook/drm.tmpl | 4191 ---------------------------------------
 Documentation/DocBook/gpu.tmpl | 4257 ++++++++++++++++++++++++++++++++++++++++
 include/drm/drm_vma_manager.h  |    2 +-
 4 files changed, 4260 insertions(+), 4194 deletions(-)
 delete mode 100644 Documentation/DocBook/drm.tmpl
 create mode 100644 Documentation/DocBook/gpu.tmpl
Signature · 6 lines
1.8.5.2 (Apple Git-48)

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw

RFC PATCH 1/5 drm/doc: Remove TODO about drm_vblank_pre/post_modeset()

Necessary for Daniel's rename commit to apply cleanly.

---
 Documentation/DocBook/drm.tmpl | 2 --
 1 file changed, 2 deletions(-)
Documentation/DocBook/drm.tmpl +0 -2
index 308b141..da1060c 100644
@@ -3810,8 +3810,6 @@ int num_ioctls;</synopsis>
   drm_helper_connector_dpms() in reaction to fbdev blanking events. Do drivers
   that don't implement (or just don't use) fbcon compatibility need to call
   those functions themselves?
-- KMS drivers must call drm_vblank_pre_modeset() and drm_vblank_post_modeset()
-  around mode setting. Should this be done in the DRM core?
 - vblank_disable_allowed is set to 1 in the first drm_vblank_post_modeset()
   call and never set back to 0. It seems to be safe to permanently set it to 1
   in drm_vblank_init() for KMS driver, and it might be safe for UMS drivers as
Signature · 6 lines
1.8.5.2 (Apple Git-48)

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw

RFC PATCH 2/5 drm/doc: Rename docbook to gpu.tmpl

In reply to Lukas Wunner

From: Daniel Vetter <[email protected]>

DRM is a lot more than a direct rendering manager nowadays, and there's also a bunch of things worth documenting for gpu driver developers outside of drivers/gpu/drm, like vgaarb, vga_switcheroo or the various hardware buses like host1x and ipu-v3.

To avoid further confusion let's rename the top-level to reflect reality.

And yes I'm already looking forward to when we need to replace the G in GPU with a * ;-)

Inspired by a thread with Lukas since he refused to include the vga_switcheroo docs into the drm docs because it's not drm.

[Lukas: Drop BUG() easter egg in i915_gem_execbuffer.c spotted by Jani and fix typos in commit message.]

---
 Documentation/DocBook/Makefile |    4 +-
 Documentation/DocBook/drm.tmpl | 4189 ----------------------------------------
 Documentation/DocBook/gpu.tmpl | 4189 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 4191 insertions(+), 4191 deletions(-)
 delete mode 100644 Documentation/DocBook/drm.tmpl
 create mode 100644 Documentation/DocBook/gpu.tmpl
Documentation/DocBook/Makefile +2 -2
index 75b7d9b..2088200 100644
@@ -14,10 +14,10 @@ DOCBOOKS := z8530book.xml device-drivers.xml \
 	    genericirq.xml s390-drivers.xml uio-howto.xml scsi.xml \
 	    80211.xml debugobjects.xml sh.xml regulator.xml \
 	    alsa-driver-api.xml writing-an-alsa-driver.xml \
-	    tracepoint.xml drm.xml media_api.xml w1.xml \
+	    tracepoint.xml gpu.xml media_api.xml w1.xml \
 	    writing_musb_glue_layer.xml crypto-API.xml iio.xml
 
-MARKDOWNREADY := drm.xml
+MARKDOWNREADY := gpu.xml
 
 include Documentation/DocBook/media/Makefile
 
Documentation/DocBook/drm.tmpl deleted +0 -4189

2,988 lines not on this page · raw message

Documentation/DocBook/gpu.tmpl new file +4189 -0

4,189 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.8.5.2 (Apple Git-48)

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

Part of the diff is not shown here. View the raw message.

#5 lore raw

RFC PATCH 3/5 gpu/doc: Fix up remaining occurrences of old document title

In reply to Lukas Wunner

Following Daniel's renaming of the document.

---
 Documentation/DocBook/gpu.tmpl | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
Documentation/DocBook/gpu.tmpl +6 -6
index 94c600c..e506c70 100644
@@ -2,7 +2,7 @@
 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
 	"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" []>
 
-<book id="drmDevelopersGuide">
+<book id="gpuDevelopersGuide">
   <bookinfo>
     <title>Linux GPU Driver Developer's Guide</title>
 
@@ -78,9 +78,9 @@
   <title>DRM Core</title>
   <partintro>
     <para>
-      This first part of the DRM Developer's Guide documents core DRM code,
-      helper libraries for writing drivers and generic userspace interfaces
-      exposed by DRM drivers.
+      This first part of the GPU Driver Developer's Guide documents core DRM
+      code, helper libraries for writing drivers and generic userspace
+      interfaces exposed by DRM drivers.
     </para>
   </partintro>
 
@@ -3947,8 +3947,8 @@ int num_ioctls;</synopsis>
 
   <partintro>
     <para>
-      This second part of the DRM Developer's Guide documents driver code,
-      implementation details and also all the driver-specific userspace
+      This second part of the GPU Driver Developer's Guide documents driver
+      code, implementation details and also all the driver-specific userspace
       interfaces. Especially since all hardware-acceleration interfaces to
       userspace are driver specific for efficiency and other reasons these
       interfaces can be rather substantial. Hence every driver has its own
Signature · 6 lines
1.8.5.2 (Apple Git-48)

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw

RFC PATCH 4/5 gpu/doc: Add vga_switcheroo documentation

In reply to Lukas Wunner

Requires Markdown support.

---
 Documentation/DocBook/gpu.tmpl | 76 +++++++++++++++++++++++++++++++++++++++---
 1 file changed, 72 insertions(+), 4 deletions(-)
Documentation/DocBook/gpu.tmpl +72 -4
index e506c70..3a811d4 100644
@@ -40,6 +40,16 @@
 	  </address>
 	</affiliation>
       </author>
+      <author>
+	<firstname>Lukas</firstname>
+	<surname>Wunner</surname>
+	<contrib>vga_switcheroo documentation</contrib>
+	<affiliation>
+	  <address>
+	    <email>[email protected]</email>
+	  </address>
+	</affiliation>
+      </author>
     </authorgroup>
 
     <copyright>
@@ -51,6 +61,10 @@
       <year>2012</year>
       <holder>Laurent Pinchart</holder>
     </copyright>
+    <copyright>
+      <year>2015</year>
+      <holder>Lukas Wunner</holder>
+    </copyright>
 
     <legalnotice>
       <para>
@@ -69,6 +83,13 @@
 	<revremark>Added extensive documentation about driver internals.
 	</revremark>
       </revision>
+      <revision>
+	<revnumber>1.1</revnumber>
+	<date>2015-10-11</date>
+	<authorinitials>LW</authorinitials>
+	<revremark>Added vga_switcheroo documentation.
+	</revremark>
+      </revision>
     </revhistory>
   </bookinfo>
 
@@ -3646,10 +3667,11 @@ void (*postclose) (struct drm_device *, struct drm_file *);</synopsis>
 	plane properties to default value, so that a subsequent open of the
 	device will not inherit state from the previous user. It can also be
 	used to execute delayed power switching state changes, e.g. in
-	conjunction with the vga_switcheroo infrastructure. Beyond that KMS
-	drivers should not do any further cleanup. Only legacy UMS drivers might
-	need to clean up device state so that the vga console or an independent
-	fbdev driver could take over.
+	conjunction with the vga_switcheroo infrastructure (see
+	<xref linkend="vga_switcheroo"/>). Beyond that KMS drivers should not
+	do any further cleanup. Only legacy UMS drivers might need to clean up
+	device state so that the vga console or an independent fbdev driver
+	could take over.
       </para>
     </sect2>
     <sect2>
@@ -4186,4 +4208,50 @@ int num_ioctls;</synopsis>
   </chapter>
 !Cdrivers/gpu/drm/i915/i915_irq.c
 </part>
+
+<part id="vga_switcheroo">
+  <title>vga_switcheroo</title>
+  <partintro>
+!Pdrivers/gpu/vga/vga_switcheroo.c Overview
+  </partintro>
+
+  <chapter id="modes_of_use">
+    <title>Modes of Use</title>
+  <sect1>
+    <title>Manual switching and manual power control</title>
+!Pdrivers/gpu/vga/vga_switcheroo.c Manual switching and manual power control
+  </sect1>
+  <sect1>
+    <title>Driver power control</title>
+!Pdrivers/gpu/vga/vga_switcheroo.c Driver power control
+  </sect1>
+  </chapter>
+
+  <chapter id="pubfunctions">
+    <title>Public functions</title>
+!Edrivers/gpu/vga/vga_switcheroo.c
+  </chapter>
+
+  <chapter id="pubstructures">
+    <title>Public structures</title>
+!Finclude/linux/vga_switcheroo.h vga_switcheroo_handler
+!Finclude/linux/vga_switcheroo.h vga_switcheroo_client_ops
+  </chapter>
+
+  <chapter id="pubconstants">
+    <title>Public constants</title>
+!Finclude/linux/vga_switcheroo.h vga_switcheroo_client_id
+!Finclude/linux/vga_switcheroo.h vga_switcheroo_state
+  </chapter>
+
+  <chapter id="privstructures">
+    <title>Private structures</title>
+!Fdrivers/gpu/vga/vga_switcheroo.c vgasr_priv
+!Fdrivers/gpu/vga/vga_switcheroo.c vga_switcheroo_client
+  </chapter>
+
+!Cdrivers/gpu/vga/vga_switcheroo.c
+!Cinclude/linux/vga_switcheroo.h
+</part>
+
 </book>
Signature · 6 lines
1.8.5.2 (Apple Git-48)

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#7 lore raw

RFC PATCH 5/5 gpu/doc: Convert to markdown harder

In reply to Lukas Wunner

This snippet...

* Lock VMA manager for extended lookups. Only *_locked() VMA function calls
* are allowed while holding this lock. All other contexts are blocked from VMA
* until the lock is released via drm_vma_offset_unlock_lookup().

...causes markdown-enabled kernel-doc to barf:

debian/build/build-doc/Documentation/DocBook/gpu.aux.xml:3247: parser error : Opening and ending tag mismatch: emphasis line 3247 and function
*<function><emphasis>locked</function> VMA function calls are allowed while
^
/root/airlied/debian/build/build-doc/Documentation/DocBook/gpu.aux.xml:3249: parser error : Opening and ending tag mismatch: function line 3249 and emphasis
released via <function>drm</emphasis>vma_offset_unlock_lookup</function>.
^
unable to parse /root/airlied/debian/build/build-doc/Documentation/DocBook/gpu.aux.xml

A quick workaround is to replace *_locked() by X_locked().

Cc Danilo Cesar Lemes de Paula <[email protected]>
---
 include/drm/drm_vma_manager.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/drm_vma_manager.h +1 -1
index 2ca44db..c1e41b8 100644
@@ -97,7 +97,7 @@ drm_vma_offset_exact_lookup(struct drm_vma_offset_manager *mgr,
  * drm_vma_offset_lock_lookup() - Lock lookup for extended private use
  * @mgr: Manager object
  *
- * Lock VMA manager for extended lookups. Only *_locked() VMA function calls
+ * Lock VMA manager for extended lookups. Only X_locked() VMA function calls
  * are allowed while holding this lock. All other contexts are blocked from VMA
  * until the lock is released via drm_vma_offset_unlock_lookup().
  *
Signature · 6 lines
1.8.5.2 (Apple Git-48)

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#8 lore raw

Re: [PATCH RFC 5/5] gpu/doc: Convert to markdown harder

Quoted 29 lines · Lukas Wunner

This snippet...

* Lock VMA manager for extended lookups. Only *_locked() VMA function calls
* are allowed while holding this lock. All other contexts are blocked from VMA
* until the lock is released via drm_vma_offset_unlock_lookup().

...causes markdown-enabled kernel-doc to barf:

debian/build/build-doc/Documentation/DocBook/gpu.aux.xml:3247: parser error : Opening and ending tag mismatch: emphasis line 3247 and function
*<function><emphasis>locked</function> VMA function calls are allowed while
^
/root/airlied/debian/build/build-doc/Documentation/DocBook/gpu.aux.xml:3249: parser error : Opening and ending tag mismatch: function line 3249 and emphasis
released via <function>drm</emphasis>vma_offset_unlock_lookup</function>.
^
unable to parse /root/airlied/debian/build/build-doc/Documentation/DocBook/gpu.aux.xml

A quick workaround is to replace *_locked() by X_locked().

Cc Danilo Cesar Lemes de Paula <[email protected]>
---
 include/drm/drm_vma_manager.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/drm_vma_manager.h +0 -0
index 2ca44db..c1e41b8 100644

include/drm/drm_vma_manager.h drm_vma_offset_exact_lookup(struct drm_vma_offset_manager *mgr, · line 100

Quoted 5 lines
include/drm/drm_vma_manager.h +1 -1
@@ -97,7 +97,7 @@ drm_vma_offset_exact_lookup(struct drm_vma_offset_manager *mgr,
  * drm_vma_offset_lock_lookup() - Lock lookup for extended private use
  * @mgr: Manager object
  *
- * Lock VMA manager for extended lookups. Only *_locked() VMA function calls
+ * Lock VMA manager for extended lookups. Only X_locked() VMA function calls

I went with a plain _unlocked since the X_unlocked looked a bit strange. Anyway Dave acked the rename idea on irc, so all applied. Well except patch 1, there wasn't any conflict when I pushed this to drm-misc. -Daniel

Quoted 6 lines
include/drm/drm_vma_manager.h +0 -0
  * are allowed while holding this lock. All other contexts are blocked from VMA
  * until the lock is released via drm_vma_offset_unlock_lookup().
  *
Signature · 1 line
1.8.5.2 (Apple Git-48)
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#9 lore raw

Re: [PATCH RFC 5/5] gpu/doc: Convert to markdown harder

Quoted 25 lines · Daniel Vetter
Quoted 24 lines · Lukas Wunner

This snippet...

* Lock VMA manager for extended lookups. Only *_locked() VMA function calls
* are allowed while holding this lock. All other contexts are blocked from VMA
* until the lock is released via drm_vma_offset_unlock_lookup().

...causes markdown-enabled kernel-doc to barf:

debian/build/build-doc/Documentation/DocBook/gpu.aux.xml:3247: parser error : Opening and ending tag mismatch: emphasis line 3247 and function
*<function><emphasis>locked</function> VMA function calls are allowed while
^
/root/airlied/debian/build/build-doc/Documentation/DocBook/gpu.aux.xml:3249: parser error : Opening and ending tag mismatch: function line 3249 and emphasis
released via <function>drm</emphasis>vma_offset_unlock_lookup</function>.
^
unable to parse /root/airlied/debian/build/build-doc/Documentation/DocBook/gpu.aux.xml

A quick workaround is to replace *_locked() by X_locked().

Cc Danilo Cesar Lemes de Paula <[email protected]>
---
 include/drm/drm_vma_manager.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines

include/drm/drm_vma_manager.h drm_vma_offset_exact_lookup(struct drm_vma_offset_manager *mgr, · line 100

Quoted 10 lines
include/drm/drm_vma_manager.h +1 -1
index 2ca44db..c1e41b8 100644
@@ -97,7 +97,7 @@ drm_vma_offset_exact_lookup(struct drm_vma_offset_manager *mgr,
  * drm_vma_offset_lock_lookup() - Lock lookup for extended private use
  * @mgr: Manager object
  *
- * Lock VMA manager for extended lookups. Only *_locked() VMA function calls
+ * Lock VMA manager for extended lookups. Only X_locked() VMA function calls

I went with a plain _unlocked since the X_unlocked looked a bit strange. Anyway Dave acked the rename idea on irc, so all applied. Well except patch 1, there wasn't any conflict when I pushed this to drm-misc. -Daniel

I didn't test it (not a big fan of doing this), but \* or \_ should escape the sequence. Did you consider that?

Danilo

Quoted 8 lines
Quoted 7 lines
include/drm/drm_vma_manager.h +0 -0
  * are allowed while holding this lock. All other contexts are blocked from VMA
  * until the lock is released via drm_vma_offset_unlock_lookup().
  *
Signature · 1 line
1.8.5.2 (Apple Git-48)

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

Re: [PATCH RFC 5/5] gpu/doc: Convert to markdown harder

Hi,

Quoted 42 lines · Danilo Cesar Lemes de Paula
Quoted 25 lines · Daniel Vetter
Quoted 24 lines · Lukas Wunner

This snippet...

* Lock VMA manager for extended lookups. Only *_locked() VMA function calls
* are allowed while holding this lock. All other contexts are blocked from VMA
* until the lock is released via drm_vma_offset_unlock_lookup().

...causes markdown-enabled kernel-doc to barf:

debian/build/build-doc/Documentation/DocBook/gpu.aux.xml:3247: parser error : Opening and ending tag mismatch: emphasis line 3247 and function
*<function><emphasis>locked</function> VMA function calls are allowed while
^
/root/airlied/debian/build/build-doc/Documentation/DocBook/gpu.aux.xml:3249: parser error : Opening and ending tag mismatch: function line 3249 and emphasis
released via <function>drm</emphasis>vma_offset_unlock_lookup</function>.
^
unable to parse /root/airlied/debian/build/build-doc/Documentation/DocBook/gpu.aux.xml

A quick workaround is to replace *_locked() by X_locked().

Cc Danilo Cesar Lemes de Paula <[email protected]>
---
 include/drm/drm_vma_manager.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines

include/drm/drm_vma_manager.h drm_vma_offset_exact_lookup(struct drm_vma_offset_manager *mgr, · line 100

Quoted 10 lines
include/drm/drm_vma_manager.h +1 -1
index 2ca44db..c1e41b8 100644
@@ -97,7 +97,7 @@ drm_vma_offset_exact_lookup(struct drm_vma_offset_manager *mgr,
  * drm_vma_offset_lock_lookup() - Lock lookup for extended private use
  * @mgr: Manager object
  *
- * Lock VMA manager for extended lookups. Only *_locked() VMA function calls
+ * Lock VMA manager for extended lookups. Only X_locked() VMA function calls

I went with a plain _unlocked since the X_unlocked looked a bit strange. Anyway Dave acked the rename idea on irc, so all applied. Well except patch 1, there wasn't any conflict when I pushed this to drm-misc. -Daniel

Quoted 2 lines

I didn't test it (not a big fan of doing this), but \* or \_ should escape the sequence. Did you consider that?

I did test \* and it didn't help.
I can't remember if I also tested \_.

In any case the issue is not the asterisk but rather that the underscore in *_locked() is interpreted as the beginning of an _emphasis_. It seems any underscore at the beginning of a word is interpreted like that. The question is why the leading asterisk is not interpreted as the actual beginning of the word. Replacing the asterisk with an alphabetic character solved it.

Best regards,

Lukas
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw

Re: [PATCH RFC 5/5] gpu/doc: Convert to markdown harder

Quoted 51 lines · Lukas Wunner

Hi,

Quoted 42 lines · Danilo Cesar Lemes de Paula
Quoted 25 lines · Daniel Vetter
Quoted 24 lines · Lukas Wunner

This snippet...

* Lock VMA manager for extended lookups. Only *_locked() VMA function calls
* are allowed while holding this lock. All other contexts are blocked from VMA
* until the lock is released via drm_vma_offset_unlock_lookup().

...causes markdown-enabled kernel-doc to barf:

debian/build/build-doc/Documentation/DocBook/gpu.aux.xml:3247: parser error : Opening and ending tag mismatch: emphasis line 3247 and function
*<function><emphasis>locked</function> VMA function calls are allowed while
^
/root/airlied/debian/build/build-doc/Documentation/DocBook/gpu.aux.xml:3249: parser error : Opening and ending tag mismatch: function line 3249 and emphasis
released via <function>drm</emphasis>vma_offset_unlock_lookup</function>.
^
unable to parse /root/airlied/debian/build/build-doc/Documentation/DocBook/gpu.aux.xml

A quick workaround is to replace *_locked() by X_locked().

Cc Danilo Cesar Lemes de Paula <[email protected]>
---
 include/drm/drm_vma_manager.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines

include/drm/drm_vma_manager.h drm_vma_offset_exact_lookup(struct drm_vma_offset_manager *mgr, · line 100

Quoted 10 lines
include/drm/drm_vma_manager.h +1 -1
index 2ca44db..c1e41b8 100644
@@ -97,7 +97,7 @@ drm_vma_offset_exact_lookup(struct drm_vma_offset_manager *mgr,
  * drm_vma_offset_lock_lookup() - Lock lookup for extended private use
  * @mgr: Manager object
  *
- * Lock VMA manager for extended lookups. Only *_locked() VMA function calls
+ * Lock VMA manager for extended lookups. Only X_locked() VMA function calls

I went with a plain _unlocked since the X_unlocked looked a bit strange. Anyway Dave acked the rename idea on irc, so all applied. Well except patch 1, there wasn't any conflict when I pushed this to drm-misc. -Daniel

Quoted 2 lines

I didn't test it (not a big fan of doing this), but \* or \_ should escape the sequence. Did you consider that?

I did test \* and it didn't help.
I can't remember if I also tested \_.

Quoted 6 lines

In any case the issue is not the asterisk but rather that the underscore in *_locked() is interpreted as the beginning of an _emphasis_. It seems any underscore at the beginning of a word is interpreted like that. The question is why the leading asterisk is not interpreted as the actual beginning of the word. Replacing the asterisk with an alphabetic character solved it.

Ok, missed that, so now we have just "locked" instead of "_locked()". -Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel