Re: /dev/mem and PCI memory = EFAULT (regression?)

2016-10-28 Thread Stas Sergeev
29.10.2016 02:26, Linus Torvalds пишет: On Fri, Oct 28, 2016 at 2:36 PM, Stas Sergeev wrote: On Fri, Oct 28, 2016 at 2:03 PM, Stas Sergeev wrote: Hello. For the long time dosemu used /dev/mem for vga pass-through. Now it appears /dev/mem has this check:

Re: /dev/mem and PCI memory = EFAULT (regression?)

2016-10-28 Thread Stas Sergeev
29.10.2016 02:26, Linus Torvalds пишет: On Fri, Oct 28, 2016 at 2:36 PM, Stas Sergeev wrote: On Fri, Oct 28, 2016 at 2:03 PM, Stas Sergeev wrote: Hello. For the long time dosemu used /dev/mem for vga pass-through. Now it appears /dev/mem has this check:

Re: /dev/mem and PCI memory = EFAULT (regression?)

2016-10-28 Thread Linus Torvalds
On Fri, Oct 28, 2016 at 2:36 PM, Stas Sergeev wrote: On Fri, Oct 28, 2016 at 2:03 PM, Stas Sergeev wrote: > > Hello. > > For the long time dosemu used /dev/mem for vga pass-through. > Now it appears /dev/mem has this check: >

Re: /dev/mem and PCI memory = EFAULT (regression?)

2016-10-28 Thread Linus Torvalds
On Fri, Oct 28, 2016 at 2:36 PM, Stas Sergeev wrote: On Fri, Oct 28, 2016 at 2:03 PM, Stas Sergeev wrote: > > Hello. > > For the long time dosemu used /dev/mem for vga pass-through. > Now it appears /dev/mem has this check: > http://lxr.free-electrons.com/source/drivers/char/mem.c#L51 >

Re: /dev/mem and PCI memory = EFAULT (regression?)

2016-10-28 Thread Stas Sergeev
OK, thanks for the prompt reply, Andy! I'll try your sysfs suggestion. Let me just add a bit of CCs to get more people involved. I believe the ram size involvement makes this smell like a bug, plus it looks like a regression. Not that I am going to suffer much (this pass-through stuff always

Re: /dev/mem and PCI memory = EFAULT (regression?)

2016-10-28 Thread Stas Sergeev
OK, thanks for the prompt reply, Andy! I'll try your sysfs suggestion. Let me just add a bit of CCs to get more people involved. I believe the ram size involvement makes this smell like a bug, plus it looks like a regression. Not that I am going to suffer much (this pass-through stuff always