From: Gerd Hoffmann <kraxel@redhat.com> To: John Hunter <zhjwpku@gmail.com> Cc: "dri-devel@lists.freedesktop.org" <dri-devel@lists.freedesktop.org>, virtio-dev@lists.oasis-open.org, Mauro Carvalho Chehab <mchehab@osg.samsung.com>, mst@redhat.com, open list <linux-kernel@vger.kernel.org>, airlied@redhat.com, "open list:MEDIA INPUT INFRA..." <linux-media@vger.kernel.org> Subject: Re: [PATCH v2 1/4] break kconfig dependency loop Date: Wed, 01 Apr 2015 17:38:13 +0200 [thread overview] Message-ID: <1427902693.6445.29.camel@nilsson.home.kraxel.org> (raw) In-Reply-To: <CAEG8a3+Wp-jgtwKmcBhG2gVAOP2tQ5MHuJwYe-m2HwYQRB06HQ@mail.gmail.com> On Mi, 2015-04-01 at 22:55 +0800, John Hunter wrote: > Hi Gerd, > I've read the patches about the virtio-gpu, it's a nice design. > As far as I know, there are two other drivers used by qemu, CIRRUS and > BOCHS. > I have a question about the relationship of these three drivers, is > that the virtio-gpu > designed to replace the other two drivers? I mean are the CIRRUS and > BOCHS > going to be deprecated in the future? qemu has a bunch of different virtual graphics cards, and these are the drivers for them. cirrus used to be the default gfx card until recently (qemu older then version 2.2). stdvga (bochs driver) is the current default. So expect them to be around for a while. virtio-gpu will not replace them. > Actually, this is a problem by Martin Peres who is the GSoC xorg > administor. > My proposal is "Convert the BOCHS and CIRRUS drivers to atomic > mode-setting". Surely makes sense for bochs and you shouldn't find major blockers. Not sure this is a reasonable task size for gsoc given it took me only a few days to convert virtio-gpu to atomic modesetting. But maybe fine if you are new to drm kernel hacking and therefore the task includes learning alot new stuff. I have my doubts it'll work out for cirrus though, due to the small amount of video memory it has (and other limitations, because we mimic hardware from the 90ies here). Current code is already swapping framebuffers in and out of video ram because of that. So atomic modesetting, page flip, running wayland on that beast all is going to be problematic I expect. See also: https://www.kraxel.org/blog/2014/10/qemu-using-cirrus-considered-harmful/ HTH, Gerd
WARNING: multiple messages have this Message-ID (diff)
From: Gerd Hoffmann <kraxel@redhat.com> To: John Hunter <zhjwpku@gmail.com> Cc: virtio-dev@lists.oasis-open.org, mst@redhat.com, Mauro Carvalho Chehab <mchehab@osg.samsung.com>, open list <linux-kernel@vger.kernel.org>, "dri-devel@lists.freedesktop.org" <dri-devel@lists.freedesktop.org>, airlied@redhat.com, "open list:MEDIA INPUT INFRA..." <linux-media@vger.kernel.org> Subject: Re: [PATCH v2 1/4] break kconfig dependency loop Date: Wed, 01 Apr 2015 17:38:13 +0200 [thread overview] Message-ID: <1427902693.6445.29.camel@nilsson.home.kraxel.org> (raw) In-Reply-To: <CAEG8a3+Wp-jgtwKmcBhG2gVAOP2tQ5MHuJwYe-m2HwYQRB06HQ@mail.gmail.com> On Mi, 2015-04-01 at 22:55 +0800, John Hunter wrote: > Hi Gerd, > I've read the patches about the virtio-gpu, it's a nice design. > As far as I know, there are two other drivers used by qemu, CIRRUS and > BOCHS. > I have a question about the relationship of these three drivers, is > that the virtio-gpu > designed to replace the other two drivers? I mean are the CIRRUS and > BOCHS > going to be deprecated in the future? qemu has a bunch of different virtual graphics cards, and these are the drivers for them. cirrus used to be the default gfx card until recently (qemu older then version 2.2). stdvga (bochs driver) is the current default. So expect them to be around for a while. virtio-gpu will not replace them. > Actually, this is a problem by Martin Peres who is the GSoC xorg > administor. > My proposal is "Convert the BOCHS and CIRRUS drivers to atomic > mode-setting". Surely makes sense for bochs and you shouldn't find major blockers. Not sure this is a reasonable task size for gsoc given it took me only a few days to convert virtio-gpu to atomic modesetting. But maybe fine if you are new to drm kernel hacking and therefore the task includes learning alot new stuff. I have my doubts it'll work out for cirrus though, due to the small amount of video memory it has (and other limitations, because we mimic hardware from the 90ies here). Current code is already swapping framebuffers in and out of video ram because of that. So atomic modesetting, page flip, running wayland on that beast all is going to be problematic I expect. See also: https://www.kraxel.org/blog/2014/10/qemu-using-cirrus-considered-harmful/ HTH, Gerd _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2015-04-01 15:38 UTC|newest] Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-04-01 13:15 [PATCH v2 0/4] Add virtio gpu driver Gerd Hoffmann 2015-04-01 13:15 ` [PATCH v2 1/4] break kconfig dependency loop Gerd Hoffmann 2015-04-01 13:15 ` Gerd Hoffmann 2015-04-01 13:47 ` Jani Nikula 2015-04-01 13:47 ` Jani Nikula 2015-04-06 9:50 ` Paul Bolle 2015-04-06 9:50 ` Paul Bolle 2015-04-06 14:27 ` Mauro Carvalho Chehab 2015-04-01 14:55 ` John Hunter 2015-04-01 15:08 ` Michael S. Tsirkin 2015-04-01 15:08 ` Michael S. Tsirkin 2015-04-01 15:38 ` Gerd Hoffmann [this message] 2015-04-01 15:38 ` Gerd Hoffmann 2015-05-14 18:23 ` Mauro Carvalho Chehab 2015-05-14 18:23 ` Mauro Carvalho Chehab 2015-04-01 13:15 ` [PATCH v2 2/4] drm_vblank_get: don't WARN_ON in case vblanks are not initialized Gerd Hoffmann 2015-04-01 13:15 ` Gerd Hoffmann 2015-04-02 13:37 ` Alex Deucher 2015-04-01 13:15 ` [PATCH v2 3/4] Add virtio gpu driver Gerd Hoffmann 2015-04-01 13:15 ` Gerd Hoffmann 2015-04-01 13:15 ` Gerd Hoffmann 2015-04-01 13:31 ` Michael S. Tsirkin 2015-04-01 13:31 ` Michael S. Tsirkin 2015-04-02 15:52 ` Marc-André Lureau 2015-04-02 15:52 ` Marc-André Lureau 2015-04-07 9:41 ` Gerd Hoffmann 2015-04-07 9:41 ` Gerd Hoffmann 2015-04-07 9:41 ` Gerd Hoffmann 2015-04-01 13:15 ` [PATCH v2 4/4] Add virtio-vga bits Gerd Hoffmann 2015-04-01 13:15 ` Gerd Hoffmann 2015-04-01 13:15 ` Gerd Hoffmann 2015-04-01 13:26 ` Michael S. Tsirkin 2015-04-01 13:26 ` Michael S. Tsirkin 2015-04-01 13:26 ` Michael S. Tsirkin 2015-04-01 13:42 ` Gerd Hoffmann 2015-04-01 13:42 ` Gerd Hoffmann
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1427902693.6445.29.camel@nilsson.home.kraxel.org \ --to=kraxel@redhat.com \ --cc=airlied@redhat.com \ --cc=dri-devel@lists.freedesktop.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-media@vger.kernel.org \ --cc=mchehab@osg.samsung.com \ --cc=mst@redhat.com \ --cc=virtio-dev@lists.oasis-open.org \ --cc=zhjwpku@gmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.