From: Jan Kiszka <jan.kiszka@domain.hid>
To: Rodrigo Rosenfeld Rosas <lbocseg@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] RTDM mmap alternative
Date: Sat, 04 Feb 2006 13:41:38 +0100 [thread overview]
Message-ID: <43E4A102.4070207@domain.hid> (raw)
In-Reply-To: <43E4A197.6030801@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 2314 bytes --]
Rodrigo Rosenfeld Rosas wrote:
> Hi, Jan. I think I wasn't very clear on my post. I'll try to clarify
> what I meaned...
>
> Jan Kiszka escreveu:
>> Rodrigo Rosenfeld Rosas wrote:
>>
>>> Hi Jan, I'm back on this discussion.
>>>
>>> At the time I asked you, you told me to do the mmap on driver
>>> initialization.
>>>
>>> But now, I realized that, since I'll be using RTDM, how could I use
>>> mmap from RTDM, even if in a non RT-context?
>>>
>>
>> Which mapping step are you now referring to, the one to get the large
>> physical DMA area inside the kernel address space or the one to map
>> kernel addresses to user space?
> I'm refering to the second case. I want to map the kernel addresses to
> user space but I'm not very sure if I can do the same thing I did in my
> previous mmap call on an ioctl. I mean, I don't know if the kernel does
> something else in a mmap call... And since I don't have a mmap handler
> I'm a bit confusing...
>
>> Already checked the related LDD3 chapter for this?
>>
> Yes, but it didn't answered to my doubts...
What precisely? I suggested to look at remap_pfn_range() or
io_remap_page_range(). Do you see problems when using one of them?
>>> I'm a bit confusing...
>>>
>>> What would be others alternatives for avoid copying the video frames
>>> in a RTDM driver?
>>>
>>
>> Either map or copy, there is no third way. The point is just which
>> mapping functions to use and when.
>>
> That is what I would like to know... Which mapping functions are
> available? Actually, if I can use the same I used on my previous mmap
> handler that is good. I'm just unsure if something will be missing or
> not...
As I haven't written such a driver as well yet, I cannot say which one
will fit. You will have to go though the LDD explanations and play with
it (which means e.g. finding out where to obtain all required arguments
- should be feasible).
>
> I have also noted that there is no poll or select handler on RTDM. Are
> there some plans to include them?
>
Only rough plans. This requires a lot of work and restructuring, I'm
afraid. And I doubt that it's worth it. Do you see an urgent use-case
for poll/select under RT? The only real-life use-case that we came
across was ACE/TAO.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
next prev parent reply other threads:[~2006-02-04 12:41 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-03 19:27 [Xenomai-help] RTDM mmap alternative Rodrigo Rosenfeld Rosas
2006-02-04 9:07 ` Jan Kiszka
2006-02-04 12:44 ` Rodrigo Rosenfeld Rosas
2006-02-04 12:41 ` Jan Kiszka [this message]
2006-02-04 14:19 ` Rodrigo Rosenfeld Rosas
2006-02-06 21:00 ` Rodrigo Rosenfeld Rosas
2006-02-07 17:38 ` Jan Kiszka
2006-02-07 19:22 ` Rodrigo Rosenfeld Rosas
2006-02-07 20:03 ` Jan Kiszka
2006-02-08 2:15 ` Rodrigo Rosenfeld Rosas
2006-02-08 12:43 ` Rodrigo Rosenfeld Rosas
2006-02-08 13:14 ` Jan Kiszka
2006-02-08 18:03 ` Rodrigo Rosenfeld Rosas
2006-02-08 18:26 ` Jan Kiszka
2006-02-08 19:35 ` Rodrigo Rosenfeld Rosas
2006-02-08 19:07 ` Rodrigo Rosenfeld Rosas
2006-02-08 21:28 ` Rodrigo Rosenfeld Rosas
2006-02-09 8:53 ` Jan Kiszka
2006-02-09 16:04 ` Rodrigo Rosenfeld Rosas
2006-02-09 16:53 ` Jan Kiszka
2006-02-09 17:58 ` Rodrigo Rosenfeld Rosas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43E4A102.4070207@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=lbocseg@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.