Commit fb001dfd authored by Lukas Wunner's avatar Lukas Wunner Committed by Daniel Vetter

vga_switcheroo: Sphinxify docs

Fix up formatting glitches remaining after the automatic rst conversion.

Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: default avatarLukas Wunner <lukas@wunner.de>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/3a369602ae35fdbf5e4a12f7e172088c89fa27bb.1468225027.git.lukas@wunner.de
parent 396f5d62
...@@ -280,8 +280,8 @@ private data in the open method should free it here. ...@@ -280,8 +280,8 @@ private data in the open method should free it here.
The lastclose method should restore CRTC and plane properties to default The lastclose method should restore CRTC and plane properties to default
value, so that a subsequent open of the device will not inherit state 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 from the previous user. It can also be used to execute delayed power
switching state changes, e.g. in conjunction with the vga_switcheroo switching state changes, e.g. in conjunction with the :ref:`vga_switcheroo`
infrastructure (see ?). Beyond that KMS drivers should not do any infrastructure. Beyond that KMS drivers should not do any
further cleanup. Only legacy UMS drivers might need to clean up device 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 state so that the vga console or an independent fbdev driver could take
over. over.
......
.. _vga_switcheroo:
============== ==============
VGA Switcheroo VGA Switcheroo
============== ==============
...@@ -94,9 +96,3 @@ Public functions ...@@ -94,9 +96,3 @@ Public functions
.. kernel-doc:: include/linux/apple-gmux.h .. kernel-doc:: include/linux/apple-gmux.h
:internal: :internal:
.. WARNING: DOCPROC directive not supported: !Cdrivers/gpu/vga/vga_switcheroo.c
.. WARNING: DOCPROC directive not supported: !Cinclude/linux/vga_switcheroo.h
.. WARNING: DOCPROC directive not supported: !Cdrivers/platform/x86/apple-gmux.c
...@@ -52,9 +52,9 @@ ...@@ -52,9 +52,9 @@
* *
* * muxed: Dual GPUs with a multiplexer chip to switch outputs between GPUs. * * muxed: Dual GPUs with a multiplexer chip to switch outputs between GPUs.
* * muxless: Dual GPUs but only one of them is connected to outputs. * * muxless: Dual GPUs but only one of them is connected to outputs.
* The other one is merely used to offload rendering, its results * The other one is merely used to offload rendering, its results
* are copied over PCIe into the framebuffer. On Linux this is * are copied over PCIe into the framebuffer. On Linux this is
* supported with DRI PRIME. * supported with DRI PRIME.
* *
* Hybrid graphics started to appear in the late Naughties and were initially * Hybrid graphics started to appear in the late Naughties and were initially
* all muxed. Newer laptops moved to a muxless architecture for cost reasons. * all muxed. Newer laptops moved to a muxless architecture for cost reasons.
...@@ -560,21 +560,21 @@ EXPORT_SYMBOL(vga_switcheroo_unlock_ddc); ...@@ -560,21 +560,21 @@ EXPORT_SYMBOL(vga_switcheroo_unlock_ddc);
* * OFF: Power off the device not in use. * * OFF: Power off the device not in use.
* * ON: Power on the device not in use. * * ON: Power on the device not in use.
* * IGD: Switch to the integrated graphics device. * * IGD: Switch to the integrated graphics device.
* Power on the integrated GPU if necessary, power off the discrete GPU. * Power on the integrated GPU if necessary, power off the discrete GPU.
* Prerequisite is that no user space processes (e.g. Xorg, alsactl) * Prerequisite is that no user space processes (e.g. Xorg, alsactl)
* have opened device files of the GPUs or the audio client. If the * have opened device files of the GPUs or the audio client. If the
* switch fails, the user may invoke lsof(8) or fuser(1) on /dev/dri/ * switch fails, the user may invoke lsof(8) or fuser(1) on /dev/dri/
* and /dev/snd/controlC1 to identify processes blocking the switch. * and /dev/snd/controlC1 to identify processes blocking the switch.
* * DIS: Switch to the discrete graphics device. * * DIS: Switch to the discrete graphics device.
* * DIGD: Delayed switch to the integrated graphics device. * * DIGD: Delayed switch to the integrated graphics device.
* This will perform the switch once the last user space process has * This will perform the switch once the last user space process has
* closed the device files of the GPUs and the audio client. * closed the device files of the GPUs and the audio client.
* * DDIS: Delayed switch to the discrete graphics device. * * DDIS: Delayed switch to the discrete graphics device.
* * MIGD: Mux-only switch to the integrated graphics device. * * MIGD: Mux-only switch to the integrated graphics device.
* Does not remap console or change the power state of either gpu. * Does not remap console or change the power state of either gpu.
* If the integrated GPU is currently off, the screen will turn black. * If the integrated GPU is currently off, the screen will turn black.
* If it is on, the screen will show whatever happens to be in VRAM. * If it is on, the screen will show whatever happens to be in VRAM.
* Either way, the user has to blindly enter the command to switch back. * Either way, the user has to blindly enter the command to switch back.
* * MDIS: Mux-only switch to the discrete graphics device. * * MDIS: Mux-only switch to the discrete graphics device.
* *
* For GPUs whose power state is controlled by the driver's runtime pm, * For GPUs whose power state is controlled by the driver's runtime pm,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment