Tuesday, April 19, 2011

Cirrus acceleration on kvm/qemu

Copy paste the driver
https://lkml.org/lkml/2011/4/18/366

clone kernel from git
git clone https://github.com/mirrors/linux-2.6.git
patch -p1 < cirrus.patch
make menuconfig
choose and enable  under drivers>graphics >dri (xorg) > cirrus
make -j2
cd drivers/gpu/drm/cirrus
insmod cirrus.ko
[694023.819195] cirrus: disagrees about version of symbol module_layout

After i compiled the linux rc and install it seems that is booted into the qemu/kvm machine


[ 3.316695] cirrus 0000:00:02.0: setting latency timer to 64
[ 3.350323] Console: switching to colour frame buffer device 160x64
[ 3.364548] fb0: cirrusdrmfb frame buffer device
[ 3.364551] drm: registered panic notifier
[ 3.364823] [drm] Initialized cirrus 1.0.0 20110418 for
0000:00:02.0 on minor 0

lsmod | grep kms
drm_kms_helper 27159 1 cirrus
drm 163075 2 cirrus,drm_kms_helper
i2c_core 23909 3 drm_kms_helper,i2c_piix4,drm

No comments: