[Openchrome-users] CN700 XvMC
Trevor Kramer
tkramer
Thu Jun 15 08:41:27 PDT 2006
Thanks Thomas,
That got rid of the messages in the system log but I am still seeing
the memory allocation error in the x logs and I still get a blank
screen when using XvMC.
Trevor
(II) VIA(0): [drm] Detected AGP vendor 0x1106, device 0x314
(II) VIA(0): [drm] Found AGP v3 compatible device. Trying AGP 8X mode.
(II) VIA(0): [drm] Trying to enable AGP fast writes.
(II) VIA(0): [drm] drmAgpEnabled succeeded
(II) VIA(0): [drm] agpAddr = 0xe0000000
(II) VIA(0): [drm] agpBase = (nil)
(II) VIA(0): [drm] agpAddr = 0xe0000000
(II) VIA(0): [drm] agpSize = 0x01e00000
(II) VIA(0): [drm] agp physical addr = 0x00000000
(II) VIA(0): [dri] use agp.
(II) VIA(0): [drm] Using 64074912 bytes for DRM memory heap.
(II) VIA(0): [dri] frame buffer initialized.
(II) VIA(0): X context handle = 0x1
(II) VIA(0): [drm] installed DRM signal handler
(II) VIA(0): [DRI] installation complete
(II) VIA(0): [dri] kernel data initialized.
(II) VIA(0): [drm] Irq handler installed, using IRQ 21.
(II) VIA(0): [drm] Initialized AGP ring-buffer, size 0x200000 at AGP
offset 0x1e00000.
(II) VIA(0): direct rendering enabled
(II) VIA(0): [Xv] Using PCI DMA for Xv image transfer.
DRM memory allocation failed
(II) VIA(0): [XvMC] Registering viaXvMC.
(II) VIA(0): [XvMC] Initialized XvMC extension.
(II) VIA(0): - Done
On Jun 15, 2006, at 5:20 AM, Thomas Hellstr?m wrote:
> Bart Hartgers wrote:
>> Bart Hartgers wrote:
>>>> Message: 1 Date: Wed, 14 Jun 2006 11:21:46 -0700 From: Trevor
>>>> Kramer <tkramer at hampshire.edu> Subject: [Openchrome-users] CN700
>>>> XvMC To: openchrome-users at openchrome.org Message-ID:
>>>> <ADAA9D0D-91D5-4E12-8EF6-986686DDD7D0 at hampshire.edu> Content-
>>>> Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>>>> Hello, I have successfully gotten X running on a EPIA EN12000E
>>>> (CN700, vt1625) using a patch supplied on the mailing list for
>>>> tv-out. I also built the latest drm code adding the new pci ids
>>>> the to drm_pciids.txt file. Xv works and dri is initialized but
>>>> when using XvMC in mythtv I just a black screen. This is
>>>> outputted on the system log. agpgart: Found an AGP 3.5 compliant
>>>> device at 0000:00:00.0. agpgart: Xorg tried to set rate=x12.
>>>> Setting to AGP3 x8 mode. agpgart: Putting AGP V3 device at
>>>> 0000:00:00.0 into 8x mode agpgart: Putting AGP V3 device at
>>>> 0000:01:00.0 into 8x mode [drm:via_mem_alloc] *ERROR* Attempt to
>>>> allocate from uninitialized memory manager.
>> Some digging around in the openchrome sources showed that this is
>> caused by via_dri.c:VIADRIFBInit, where VIAAllocLinear is called
>> before drmCommandWrite(pVia->drmFD, DRM_VIA_FB_INIT,.. . So the
>> fix seems to be in changing the order. However, DRM_VIA_FB_INIT
>> needs an fb.offset that is returned by VIAAllocLinear. I am not
>> quite sure how to fix that chicken-and-egg problem. Any ideas?
>> Groeten, Bart
> A pretty severe bug. The VIAAllocLinear in VIADRIFBInit is supposed
> to allocate from the X memory manager, but it allocates from the drm
> memory manager which is not yet initialized.
>
> Fixed in revision 189.
>
> /Thomas
>
> _______________________________________________
> openchrome-users mailing list
> openchrome-users at openchrome.org
> http://wiki.openchrome.org/mailman/listinfo/openchrome-users
> Main page:
> http://www.openchrome.org
> Wiki:
> http://wiki.openchrome.org
> User Forum:
> http://wiki.openchrome.org/tikiwiki/tiki-view_forum.php?forumId=1
More information about the Openchrome-users
mailing list