X will not start on a Thinkpad 240 using neomagic

Adam Jackson ajax at redhat.com
Wed Jan 24 15:55:58 UTC 2018


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 at 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


More information about the xorg mailing list