All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] rtdm_iomap_to_user() with PowerPC
@ 2007-11-07 14:28 Markus Osterried
  2007-11-07 14:45 ` Jan Kiszka
  0 siblings, 1 reply; 9+ messages in thread
From: Markus Osterried @ 2007-11-07 14:28 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 295 bytes --]

Hello,

two months ago I reported a problem with rtdm_iomap_to_user().
Philippe acknowledged the problem and promised to submit a bug fix.
Unfortunately, till now I don't have seen this bug fix, or have
overlooked it?
Can you please give me a hint about the roadmap?
Thanks.

Markus


[-- Attachment #2: Type: text/html, Size: 915 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [Xenomai-core] rtdm_iomap_to_user() with PowerPC
@ 2007-09-06  8:45 Markus Osterried (BA/EDD)
  2007-09-06 21:32 ` Jan Kiszka
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Markus Osterried (BA/EDD) @ 2007-09-06  8:45 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 748 bytes --]

Hello,

I want to use rtdm_iomap_to_user() to map our device registers to user
space.
But this doesn't work, our application just crashes when I read from the
mapped registers.

When I insert the line

	vma->vm_page_prot = phys_mem_access_prot(filp,
paddr>>PAGE_SHIFT, size, vma->vm_page_prot);

in rtdm_mmap_buffer() just before calling xnarch_remap_io_page_range()
it works fine.
This is just like it is done in /drivers/char/mem.c and in
/drivers/video/fbmem.c.

But I think this is architecture and kernel version dependent and I
don't know whether rtdm_mmap_buffer() is the right place.
I use Xenomai 2.3.1 and Linux 2.6.18 with PowerPC CPU.
What is the best solution? Everyone else seen this problem?

Thanks
Markus


[-- Attachment #2: Type: text/html, Size: 1627 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-11-08  8:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-07 14:28 [Xenomai-core] rtdm_iomap_to_user() with PowerPC Markus Osterried
2007-11-07 14:45 ` Jan Kiszka
2007-11-07 15:44   ` Markus Osterried
2007-11-07 16:08     ` Jan Kiszka
2007-11-08  8:51       ` Philippe Gerum
  -- strict thread matches above, loose matches on Subject: below --
2007-09-06  8:45 Markus Osterried (BA/EDD)
2007-09-06 21:32 ` Jan Kiszka
2007-09-07 12:51 ` Johan Borkhuis
2007-09-07 14:13 ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.