paches: add a hacky workaround for gnome3 bug

Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
HOWTO: document the new patch

We have one more patch for Xorg; document it.

Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
rename ctd to pcon

The term "compression-transmission-display device" is changing to
"pixel consumer."  This commit changes the term in the HOWTO.txt.
Also did some minor copy editing.

Signed-off-by: Martin Carroll <martin.carroll@alcatel-lucent.com>
HOWTO: eliminate radeon_vcrtcm_ctl

The vcrtcm(1) tool is now used for all commands.  (Notice that the
argument of the 'attach' command has changed from a CRTC to a
connector.)  This commit also adds a discussion of gpu_resource_dump
and fixes some copy-editing nits.

Signed-off-by: Martin Carroll <martin.carroll@alcatel-lucent.com>
apps: remove directories that are no longer in use

Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
v4l2pconviewer: simplify read frame operation

Just call read() and let the application block until the frame
is available. With v4l2pim driver fixed, the arrival of frames
will be paced by the FPS rate associated with attached PCON.

Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
v4l2pconviewer: measure the frame rate on v4l2 side

Add hooks to measure the rate at which we are reading
frames from v4l2 device. If we have no other bottlenecks
in the system, the rate should match the frame rate
determined by the PCON.

Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
Merge remote-tracking branch 'martin/master'
vcrtcm: implement stubs for new commands

The tool now accepts the new attach/detach/fps/xmit commands,
but does not implement them yet.

Signed-off-by: Martin Carroll <martin.carroll@alcatel-lucent.com>
vcrtcm: implement remaining commands

This commit implements the attach, detach, xmit, and fps commands
using the new vcrtcm ioctls.  This commit also tidies up the code
in a number of places.

Signed-off-by: Martin Carroll <martin.carroll@alcatel-lucent.com>
vcrtcm: move test of errno

The test of errno should occur immediately after the ioctl, so that
errno is not wiped out by intervening code.

Signed-off-by: Martin Carroll <martin.carroll@alcatel-lucent.com>
vcrtcm: show attachment info

If the vcrtcm kernel module has put pcon-attachment information
into sysfs, show it to the user.

Signed-off-by: Martin Carroll <martin.carroll@alcatel-lucent.com>
vcrtcm: add optional xfer_mode argument to instantiate command

Signed-off-by: Martin Carroll <martin.carroll@alcatel-lucent.com>
vcrtcm: initially clear the args struct

This commit clears the ioctl args struct before populating it,
to ensure that unpopulated parameters are zero, which in turn
ensures that the vcrtcm will not accidentally interpret an
unpopulated parameter as something unintended.

Signed-off-by: Martin Carroll <martin.carroll@alcatel-lucent.com>
vcrtcm: handle new pim/pcons sysfs layout

The pcons of a pim are now located in the pim/<pimname>/pcons
subdirectory.  This commit handles both the old and the new
sysfs layout.

Signed-off-by: Martin Carroll <martin.carroll@alcatel-lucent.com>
vcrtcm: add optional force argument to detach and destroy

The detach and destroy ioctls now support an optional 'force'
argument, to force the pcon to be detached or destroyed even if
the kernel (in particular, the pim) would otherwise not allow
the operation on the given pcon.

Signed-off-by: Martin Carroll <martin.carroll@alcatel-lucent.com>
vcrtcm: improve error detection and messages and stuff

This commit:
	- vets the pconid arguments by checking sysfs before doing the ioctl
	- simplifies and clarifies the error messages
	- removes the unnecessary header file
	- adds -Wall
	- eliminates all compiler warnings
	- fixes the tests of the ioctl success
	- fixes some exit codes
	- uses PATH_MAX

Signed-off-by: Martin Carroll <martin.carroll@alcatel-lucent.com>
vcrtcm: use new vcrtcm device file and sysfs location

The vcrtcm device file and sysfs root directory have moved.
This tool now uses the new locations.  To enable the tool
to be used with earlier kernels, the tool falls back to the
old locations if the new locations do not exist.

Signed-off-by: Martin Carroll <martin.carroll@alcatel-lucent.com>
vcrtcm: remove legacy tools during installation

radeon_vcrtcm_ctl and pimmgr are no longer in use. Remove
them from /usr/local/bin in case somebody installed them
there before.

Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
radeon_vcrtcm_ctl: remove the tool from tree

This tool is defunct.

Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>