On Wed, 2018-01-24 at 01:12 +0000, Alex Bowden wrote:
> Hi all,
> 
> I have a Thinkpad 240 with a Neomagic NM2160 and I keep having an issue
> with the neomagic driver. I think I have narrowed it down to the kernel
> refusing to mmap the framebuffer. I created a program called testneo.c
> to attempt to use pci_device_map_range to access the framebuffer but
> it always returns 22 (Invalid argument).

I'm not sure why that would fail, but...

> [root@tpad ~]# ./testneo
> neomagic nm2160 found
>>>>>phys_base: 0xfd000000 phys_len: 0x01000000
> attempt pci_device_map_range of 2MB (0x200000) // from neo_driver.c

Does mapping the whole BAR work? If so it'd be trivial to change the
driver to just do that instead, and it should be harmless.

- ajax
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Reply via email to