OSDN Git Service

This patch adds three new ioctl's to the VIA Unichrome/Pro DRM driver:
authorErdi Chen <erdi@freedesktop.org>
Tue, 24 Aug 2004 01:44:37 +0000 (01:44 +0000)
committerErdi Chen <erdi@freedesktop.org>
Tue, 24 Aug 2004 01:44:37 +0000 (01:44 +0000)
commit25e319c1ef5b6c002ddfe55338cd920240cc1dad
tree92c13df2e866d7d70016b11cfc9316993431d420
parent7fe4f607681e9a5593e91915953a9b6c45e5f08c
This patch adds three new ioctl's to the VIA Unichrome/Pro DRM driver:
    DRM_IOCTL_VIA_DMA_INIT DRM_IOCTL_VIA_CMDBUFFER DRM_IOCTL_VIA_FLUSH
The first ioctl sets up an area in AGP memory that will be used as the ring
    buffer. The second ioctl copies a command buffer from user space memory
    to the ring buffer. The third ioctl waits for engine idle until it
    returns.
The motivation for this patch is to avoid the wait for engine idle call
    before each buffer flush in the current DRI driver. With this patch,
    the DRI driver can continue to flush its buffer as long as there is
    free space in the ring buffer.
This patch adds an additional copy operation on the command buffer. This
    buffer copying is necessary to support multiple DRI clients rendering
    simultaneously. Otherwise, more CPU time will be spent in the busy loop
    waiting for engine idle between DRI context switch. Even in the single
    client case, the tradeoff is reasonable in comparision to the kernel
    call to check for free buffer space for the client to render directly
    to the ring buffer.
22 files changed:
bsd-core/Makefile
bsd/Makefile
linux-core/Makefile
linux-core/Makefile.kernel
linux-core/drm_drv.c
linux/Makefile
linux/Makefile.kernel
linux/drm_drv.h
shared-core/via_3d_reg.h [new file with mode: 0644]
shared-core/via_dma.c [new file with mode: 0644]
shared-core/via_drm.h
shared-core/via_drv.c
shared-core/via_drv.h
shared-core/via_map.c
shared-core/via_mm.c
shared/via_3d_reg.h [new file with mode: 0644]
shared/via_dma.c [new file with mode: 0644]
shared/via_drm.h
shared/via_drv.c
shared/via_drv.h
shared/via_map.c
shared/via_mm.c