[Openchrome-users] VX11 no device detected

Xavier Bachelot xavier at bachelot.org
Wed Jan 29 12:19:36 PST 2014


Hi Amit,

On 01/29/2014 08:33 PM, Amit Uttamchandani wrote:
> On Wed, Jan 29, 2014 at 11:13:04AM -0800, Amit Uttamchandani wrote:
>> Hi Xavier,
>>
>> Thanks for the patch. I tried it out but still failed to detect the device.
>>
>> Attached is the Xorg.0.log. I believe it should have detected it since
>> you added the correct pci ids.
>>
>> Thanks,
>> Amit
> 
> I added the following line to have it detect the device:
> 
> --- a/pkg/xf86-video-openchrome/src/via_driver.c
> +++ b/pkg/xf86-video-openchrome/src/via_driver.c
> @@ -98,6 +98,7 @@ static const struct pci_id_match via_device_match[] = {
>     VIA_DEVICE_MATCH (PCI_CHIP_VT3353, 0 ),
>     VIA_DEVICE_MATCH (PCI_CHIP_VT3409, 0 ),
>     VIA_DEVICE_MATCH (PCI_CHIP_VT3410, 0 ),
> +   VIA_DEVICE_MATCH (PCI_CHIP_VX11, 0 ),
>      { 0, 0, 0 },
>  };
> 
Thabks, I missed that. I will add it to the patch, as well as the VN1000 patch.

> This allows the matching to happen. Then, it goes further but the x
> server crashes. Attached is the updated xorg log.
> 
[ 63087.433] (--) CHROME(0): Probed amount of VideoRAM = 8192 kB
[ 63087.433] (II) CHROME(0): VIAMapMMIO
[ 63087.433] (--) CHROME(0): mapping MMIO @ 0xd0000000 with size 0xd000
[ 63087.434] (--) CHROME(0): mapping BitBlt MMIO @ 0xd0200000 with size 0x200000
[ 63087.435] (II) CHROME(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0000
[ 63087.435] (II) CHROME(0): VIAMapFB
[ 63087.435] (--) CHROME(0): mapping framebuffer @ 0x0 with size 0x800000
[ 63087.435] (EE) CHROME(0): Unable to map mmio BAR. No such file or directory (2)
[ 63087.435] (II) CHROME(0): VIAFreeRec
[ 63087.435] (II) CHROME(0): VIAUnmapMem
[ 63087.437] (II) CHROME(0): VIAFreeScreen
[ 63087.437] 
Backtrace:
[ 63087.437] 0: /usr/bin/X (xorg_backtrace+0x26) [0x7f9d8c19ba86]
[ 63087.437] 1: /usr/bin/X (0x7f9d8c013000+0x18c92a) [0x7f9d8c19f92a]
[ 63087.437] 2: /lib/x86_64-linux-gnu/libpthread.so.0 (0x7f9d8b339000+0xfcb0) [0x7f9d8b348cb0]
[ 63087.437] 3: /usr/lib/xorg/modules/drivers/openchrome_drv.so (0x7f9d8839b000+0x14ba4) [0x7f9d883afba4]
[ 63087.437] 4: /usr/bin/X (xf86DeleteScreen+0x7c) [0x7f9d8c0ae25c]
[ 63087.437] 5: /usr/bin/X (InitOutput+0xad2) [0x7f9d8c0a2222]
[ 63087.437] 6: /usr/bin/X (0x7f9d8c013000+0x3d5ed) [0x7f9d8c0505ed]
[ 63087.438] 7: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xed) [0x7f9d8a1b976d]
[ 63087.438] 8: /usr/bin/X (0x7f9d8c013000+0x3daad) [0x7f9d8c050aad]
[ 63087.438] Segmentation fault at address 0x490

There's an issue with memory detection, but that's not surprising as the driver is poking at registers that might not be the same as for previous chips.
How many video ram is your board supposed to have ? Check the bios or the log from the working driver. Btw, could you provide the full X log with the driver from VIA/S3G ?
Also, could you try to change the amount of video ram in the bios and check if the value reported in the X log from patched openchrome changes accordingly ?

Regards,
Xavier


More information about the Openchrome-users mailing list