Skip to contentSkip to conversation

irqbench removal

Xenomai-core Jan Kiszka 4 participants 14 messages Oct 9, 2010 – Oct 15, 2010 2 messages not in the archive

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Philippe,

irqbench does not inherently depend on a third I-pipe domain. It is a useful testcase, the only in our portfolio that targets a peripheral device use case. In fact, it was only of the first test cases for Native RTDM IIRC.

Please revert the removal and then cut out only the few parts that actually instantiate an additional domain (i.e. mode 3.

Thanks,
Jan

#1 lore raw
Quoted 3 lines · Jan Kiszka

Philippe,

irqbench does not inherently depend on a third I-pipe domain.

Yes, but it inherently depends on x86 too.

Signature · 1 line
                                                                Gilles.
author
#2 lore raw
Quoted 6 lines · Gilles Chanteperdrix
Quoted 3 lines · Jan Kiszka

Philippe,

irqbench does not inherently depend on a third I-pipe domain.

Yes, but it inherently depends on x86 too.

Not by design, just by missing contributions to add a few more I/O bindings.

Jan

#3 lore raw
Quoted 8 lines · Jan Kiszka
Quoted 5 lines · Gilles Chanteperdrix
Quoted 3 lines · Jan Kiszka

Philippe,

irqbench does not inherently depend on a third I-pipe domain.

Yes, but it inherently depends on x86 too.

Not by design, just by missing contributions to add a few more I/O bindings.

Currently it does not compile on anything else than x86. Denx has a "gpioirqbench":
http://git.denx.de/?p=gpioirqbench.git;a=summary

Maybe it is time to find some common ground and have atlast a bench which can run an all architectures ?

Signature · 1 line
                                                                Gilles.
author
#4 lore raw
Quoted 8 lines · Gilles Chanteperdrix
Quoted 7 lines · Jan Kiszka
Quoted 5 lines · Gilles Chanteperdrix
Quoted 3 lines · Jan Kiszka

Philippe,

irqbench does not inherently depend on a third I-pipe domain.

Yes, but it inherently depends on x86 too.

Quoted 9 lines
Quoted 1 line

Not by design, just by missing contributions to add a few more I/O bindings.

Currently it does not compile on anything else than x86. Denx has a "gpioirqbench":
http://git.denx.de/?p=gpioirqbench.git;a=summary

Maybe it is time to find some common ground and have atlast a bench which can run an all architectures ?

No concerns.

Wolfgang, do you see a reasonable way to make the hardware interface between host and target more compatible so that we could also use the existing x86 measurement tool with your targets? That was my original idea (to avoid the need for multiple embedded boards). Having a gpio option also for the measurement host is nevertheless worthwhile.

Jan

#5 lore raw
In reply to Jan Kiszka
Quoted 9 lines · Jan Kiszka

Philippe,

irqbench does not inherently depend on a third I-pipe domain. It is a useful testcase, the only in our portfolio that targets a peripheral device use case. In fact, it was only of the first test cases for Native RTDM IIRC.

Please revert the removal and then cut out only the few parts that actually instantiate an additional domain (i.e. mode 3.

So, what do we do with this? Any chance we move to arch-neutral code for this test?

Quoted 4 lines

Thanks,
Jan

Signature · 1 line
Philippe.
author
#6 lore raw
Quoted 8 lines · Philippe Gerum
Quoted 7 lines · Jan Kiszka

Philippe,

irqbench does not inherently depend on a third I-pipe domain. It is a useful testcase, the only in our portfolio that targets a peripheral device use case. In fact, it was only of the first test cases for Native RTDM IIRC.

Quoted 5 lines
Quoted 2 lines

Please revert the removal and then cut out only the few parts that actually instantiate an additional domain (i.e. mode 3.

So, what do we do with this? Any chance we move to arch-neutral code for this test?

Arch-neutral is impossible due to the inherent hardware dependency. But I'm waiting on some comments by Wolfgang on their work as that's probably the best requirements source for multi-arch support.

For now the existing test should not cause any harm if cleaned up from the domain stuff and not built on non-x86 archs (which is already properly guarded for user space, the kernel driver may deserve an additional dependency).

Jan

#7 lore raw
Quoted 12 lines · Jan Kiszka
Quoted 11 lines · Philippe Gerum
Quoted 9 lines · Jan Kiszka

Philippe,

irqbench does not inherently depend on a third I-pipe domain. It is a useful testcase, the only in our portfolio that targets a peripheral device use case. In fact, it was only of the first test cases for Native RTDM IIRC.

Please revert the removal and then cut out only the few parts that actually instantiate an additional domain (i.e. mode 3.

Quoted 6 lines
Quoted 2 lines

So, what do we do with this? Any chance we move to arch-neutral code for this test?

Arch-neutral is impossible due to the inherent hardware dependency. But I'm waiting on some comments by Wolfgang on their work as that's probably the best requirements source for multi-arch support.

I mean that the bulk of the code could be made arch-neutral, with only callouts to solve the arch-dependent/uart issues. Typically, 16550's are not uncommon on powerpc, but we obviously don't program them via ioports. A second level of indirection could provide the entire chip handling, to fit other uarts, maybe?

Quoted 8 lines

For now the existing test should not cause any harm if cleaned up from the domain stuff and not built on non-x86 archs (which is already properly guarded for user space, the kernel driver may deserve an additional dependency).

Jan

Signature · 1 line
Philippe.
author
#8 lore raw
Quoted 20 lines · Philippe Gerum
Quoted 12 lines · Jan Kiszka
Quoted 11 lines · Philippe Gerum
Quoted 9 lines · Jan Kiszka

Philippe,

irqbench does not inherently depend on a third I-pipe domain. It is a useful testcase, the only in our portfolio that targets a peripheral device use case. In fact, it was only of the first test cases for Native RTDM IIRC.

Please revert the removal and then cut out only the few parts that actually instantiate an additional domain (i.e. mode 3.

Quoted 6 lines
Quoted 2 lines

So, what do we do with this? Any chance we move to arch-neutral code for this test?

Arch-neutral is impossible due to the inherent hardware dependency. But I'm waiting on some comments by Wolfgang on their work as that's probably the best requirements source for multi-arch support.

Quoted 5 lines

I mean that the bulk of the code could be made arch-neutral, with only callouts to solve the arch-dependent/uart issues. Typically, 16550's are not uncommon on powerpc, but we obviously don't program them via ioports. A second level of indirection could provide the entire chip handling, to fit other uarts, maybe?

If there are suitable UARTs around, refactoring the code accordingly and maybe adding support for one of them as reference would be a good next step. But first I would like to understand (or recall - I think Wolfgang once explained it) the motivations for not going this path with the gpiobench test and learn its requirements to avoid doing refactorings twice or more.

Jan

author
#10 lore raw
In reply to a message not in the archive
Quoted 37 lines · Wolfgang Grandegger

Hi Jan,

Quoted 27 lines · Jan Kiszka
Quoted 20 lines · Philippe Gerum
Quoted 12 lines · Jan Kiszka
Quoted 11 lines · Philippe Gerum
Quoted 9 lines · Jan Kiszka

Philippe,

irqbench does not inherently depend on a third I-pipe domain. It is a useful testcase, the only in our portfolio that targets a peripheral device use case. In fact, it was only of the first test cases for Native RTDM IIRC.

Please revert the removal and then cut out only the few parts that actually instantiate an additional domain (i.e. mode 3.

Quoted 6 lines
Quoted 2 lines

So, what do we do with this? Any chance we move to arch-neutral code for this test?

Arch-neutral is impossible due to the inherent hardware dependency. But I'm waiting on some comments by Wolfgang on their work as that's probably the best requirements source for multi-arch support.

Quoted 5 lines

I mean that the bulk of the code could be made arch-neutral, with only callouts to solve the arch-dependent/uart issues. Typically, 16550's are not uncommon on powerpc, but we obviously don't program them via ioports. A second level of indirection could provide the entire chip handling, to fit other uarts, maybe?

Quoted 6 lines

If there are suitable UARTs around, refactoring the code accordingly and maybe adding support for one of them as reference would be a good next step. But first I would like to understand (or recall - I think Wolfgang once explained it) the motivations for not going this path with the gpiobench test and learn its requirements to avoid doing refactorings twice or more.

Quoted 4 lines

Well, it's a long time ago that I wrote gpioirqbench, which is derived from Jan's irqbench. Obviously, it uses GPIO pins to signal events instead of signals from the parallel port or serial line. I never supported the serial line for embedded boards.

What was the reason? That it is too often blocked by a terminal?

Quoted 7 lines

You can get the code with:

  $ git clone git://git.denx.de/gpioirqbench

It uses a simple hw abstruction layer defined in target/gpioirq-hw.h:

http://git.denx.de/?p=gpioirqbench.git;a=blob;f=target/gpioirq-hw.h;h=76849da0964c7dbb6831fe02374922dcf89b3bb1;hb=HEAD

Is this abstracting the target side, right?

Quoted 6 lines

Don't know if it's generic enough to support the parallel and serial port interface as well. Anyway, with working generic GPIO lib support, it's quite simple to support new hardware, e.g. i.MX31 boards.

The host side to measure precisely the latency is even more tricky.

Depends. If you can map the GPIO output on something RS232 or parallel port compatible, you are done. Usually, there is always some x86 box around with one of those ports, even in 2010. Would it make sense to specify the electrical interface between host and target accordingly? That would allow to concentrate on the target, the more interesting part.

Jan

author
#12 lore raw
In reply to a message not in the archive
Quoted 69 lines · Wolfgang Grandegger
Quoted 38 lines · Jan Kiszka
Quoted 37 lines · Wolfgang Grandegger

Hi Jan,

Quoted 33 lines · Jan Kiszka
Quoted 20 lines · Philippe Gerum
Quoted 12 lines · Jan Kiszka
Quoted 11 lines · Philippe Gerum
Quoted 9 lines · Jan Kiszka

Philippe,

irqbench does not inherently depend on a third I-pipe domain. It is a useful testcase, the only in our portfolio that targets a peripheral device use case. In fact, it was only of the first test cases for Native RTDM IIRC.

Please revert the removal and then cut out only the few parts that actually instantiate an additional domain (i.e. mode 3.

Quoted 6 lines
Quoted 2 lines

So, what do we do with this? Any chance we move to arch-neutral code for this test?

Arch-neutral is impossible due to the inherent hardware dependency. But I'm waiting on some comments by Wolfgang on their work as that's probably the best requirements source for multi-arch support.

Quoted 5 lines

I mean that the bulk of the code could be made arch-neutral, with only callouts to solve the arch-dependent/uart issues. Typically, 16550's are not uncommon on powerpc, but we obviously don't program them via ioports. A second level of indirection could provide the entire chip handling, to fit other uarts, maybe?

If there are suitable UARTs around, refactoring the code accordingly and maybe adding support for one of them as reference would be a good next step. But first I would like to understand (or recall - I think Wolfgang once explained it) the motivations for not going this path with the gpiobench test and learn its requirements to avoid doing refactorings twice or more.

Quoted 6 lines
Quoted 4 lines

Well, it's a long time ago that I wrote gpioirqbench, which is derived from Jan's irqbench. Obviously, it uses GPIO pins to signal events instead of signals from the parallel port or serial line. I never supported the serial line for embedded boards.

What was the reason? That it is too often blocked by a terminal?

Mainly because there is no RTserial driver for the serial interface on the embedded boards, e.g. for the PSC, SCC. Furthermore, they are usually handled by firmware with ring buffers, dma, etc. which would introduce additional delays. They might be negligible, though.

Quoted 9 lines
Quoted 7 lines

You can get the code with:

  $ git clone git://git.denx.de/gpioirqbench

It uses a simple hw abstruction layer defined in target/gpioirq-hw.h:

http://git.denx.de/?p=gpioirqbench.git;a=blob;f=target/gpioirq-hw.h;h=76849da0964c7dbb6831fe02374922dcf89b3bb1;hb=HEAD

Is this abstracting the target side, right?

Yep.

Quoted 6 lines
Quoted 5 lines

Don't know if it's generic enough to support the parallel and serial port interface as well. Anyway, with working generic GPIO lib support, it's quite simple to support new hardware, e.g. i.MX31 boards.

The host side to measure precisely the latency is even more tricky.

Quoted 7 lines
Quoted 2 lines

Depends. If you can map the GPIO output on something RS232 or parallel port compatible, you are done. Usually, there is always some x86 box

THe GPIO lines of most embedded boards don't like 5V. The are specified for 3.3V plus something less than 5V. I was thinking about that already but finally didn't want to damage the board. A 3.3V serial interface on the PC would be fine, though.

Sounds like we just need a voltage divider for RS232 -> GPIO. The other way should be fine as everything above 3 V is considered High, and I think to remember that even the invalid range of +/-3 V is reported as Low by typical (PC-)UARTs.

But even if it takes more, maybe some optic couplers, I think it's worth developing some reference adapter and focusing on RS232 for the host side for the next steps.

Jan

Quoted 8 lines
Quoted 4 lines

around with one of those ports, even in 2010. Would it make sense to specify the electrical interface between host and target accordingly? That would allow to concentrate on the target, the more interesting part.

See above.

Wolfgang.

#13 lore raw
Quoted 78 lines · Jan Kiszka
Quoted 69 lines · Wolfgang Grandegger
Quoted 38 lines · Jan Kiszka
Quoted 37 lines · Wolfgang Grandegger

Hi Jan,

Quoted 33 lines · Jan Kiszka
Quoted 20 lines · Philippe Gerum
Quoted 12 lines · Jan Kiszka
Quoted 11 lines · Philippe Gerum
Quoted 9 lines · Jan Kiszka

Philippe,

irqbench does not inherently depend on a third I-pipe domain. It is a useful testcase, the only in our portfolio that targets a peripheral device use case. In fact, it was only of the first test cases for Native RTDM IIRC.

Please revert the removal and then cut out only the few parts that actually instantiate an additional domain (i.e. mode 3.

Quoted 6 lines
Quoted 2 lines

So, what do we do with this? Any chance we move to arch-neutral code for this test?

Arch-neutral is impossible due to the inherent hardware dependency. But I'm waiting on some comments by Wolfgang on their work as that's probably the best requirements source for multi-arch support.

Quoted 5 lines

I mean that the bulk of the code could be made arch-neutral, with only callouts to solve the arch-dependent/uart issues. Typically, 16550's are not uncommon on powerpc, but we obviously don't program them via ioports. A second level of indirection could provide the entire chip handling, to fit other uarts, maybe?

If there are suitable UARTs around, refactoring the code accordingly and maybe adding support for one of them as reference would be a good next step. But first I would like to understand (or recall - I think Wolfgang once explained it) the motivations for not going this path with the gpiobench test and learn its requirements to avoid doing refactorings twice or more.

Quoted 6 lines
Quoted 4 lines

Well, it's a long time ago that I wrote gpioirqbench, which is derived from Jan's irqbench. Obviously, it uses GPIO pins to signal events instead of signals from the parallel port or serial line. I never supported the serial line for embedded boards.

What was the reason? That it is too often blocked by a terminal?

Mainly because there is no RTserial driver for the serial interface on the embedded boards, e.g. for the PSC, SCC. Furthermore, they are usually handled by firmware with ring buffers, dma, etc. which would introduce additional delays. They might be negligible, though.

Quoted 9 lines
Quoted 7 lines

You can get the code with:

  $ git clone git://git.denx.de/gpioirqbench

It uses a simple hw abstruction layer defined in target/gpioirq-hw.h:

http://git.denx.de/?p=gpioirqbench.git;a=blob;f=target/gpioirq-hw.h;h=76849da0964c7dbb6831fe02374922dcf89b3bb1;hb=HEAD

Is this abstracting the target side, right?

Yep.

Quoted 6 lines
Quoted 5 lines

Don't know if it's generic enough to support the parallel and serial port interface as well. Anyway, with working generic GPIO lib support, it's quite simple to support new hardware, e.g. i.MX31 boards.

The host side to measure precisely the latency is even more tricky.

Quoted 7 lines
Quoted 2 lines

Depends. If you can map the GPIO output on something RS232 or parallel port compatible, you are done. Usually, there is always some x86 box

THe GPIO lines of most embedded boards don't like 5V. The are specified for 3.3V plus something less than 5V. I was thinking about that already but finally didn't want to damage the board. A 3.3V serial interface on the PC would be fine, though.

Quoted 4 lines

Sounds like we just need a voltage divider for RS232 -> GPIO. The other way should be fine as everything above 3 V is considered High, and I think to remember that even the invalid range of +/-3 V is reported as Low by typical (PC-)UARTs.

I just googled around a bit and found:

http://www.rs232-converters.com/rs232-to_ttl3.3_converters.htm

That should allow to overcome the hardware limitation.

Quoted 3 lines

But even if it takes more, maybe some optic couplers, I think it's worth developing some reference adapter and focusing on RS232 for the host side for the next steps.

I agree.

Wolfgang.

#14 lore raw
Quoted 79 lines · Wolfgang Grandegger
Quoted 78 lines · Jan Kiszka
Quoted 76 lines · Wolfgang Grandegger
Quoted 38 lines · Jan Kiszka
Quoted 37 lines · Wolfgang Grandegger

Hi Jan,

Quoted 33 lines · Jan Kiszka
Quoted 20 lines · Philippe Gerum
Quoted 12 lines · Jan Kiszka
Quoted 11 lines · Philippe Gerum
Quoted 9 lines · Jan Kiszka

Philippe,

irqbench does not inherently depend on a third I-pipe domain. It is a useful testcase, the only in our portfolio that targets a peripheral device use case. In fact, it was only of the first test cases for Native RTDM IIRC.

Please revert the removal and then cut out only the few parts that actually instantiate an additional domain (i.e. mode 3.

Quoted 6 lines
Quoted 2 lines

So, what do we do with this? Any chance we move to arch-neutral code for this test?

Arch-neutral is impossible due to the inherent hardware dependency. But I'm waiting on some comments by Wolfgang on their work as that's probably the best requirements source for multi-arch support.

Quoted 5 lines

I mean that the bulk of the code could be made arch-neutral, with only callouts to solve the arch-dependent/uart issues. Typically, 16550's are not uncommon on powerpc, but we obviously don't program them via ioports. A second level of indirection could provide the entire chip handling, to fit other uarts, maybe?

If there are suitable UARTs around, refactoring the code accordingly and maybe adding support for one of them as reference would be a good next step. But first I would like to understand (or recall - I think Wolfgang once explained it) the motivations for not going this path with the gpiobench test and learn its requirements to avoid doing refactorings twice or more.

Quoted 6 lines
Quoted 4 lines

Well, it's a long time ago that I wrote gpioirqbench, which is derived from Jan's irqbench. Obviously, it uses GPIO pins to signal events instead of signals from the parallel port or serial line. I never supported the serial line for embedded boards.

What was the reason? That it is too often blocked by a terminal?

Mainly because there is no RTserial driver for the serial interface on the embedded boards, e.g. for the PSC, SCC. Furthermore, they are usually handled by firmware with ring buffers, dma, etc. which would introduce additional delays. They might be negligible, though.

Quoted 9 lines
Quoted 7 lines

You can get the code with:

  $ git clone git://git.denx.de/gpioirqbench

It uses a simple hw abstruction layer defined in target/gpioirq-hw.h:

http://git.denx.de/?p=gpioirqbench.git;a=blob;f=target/gpioirq-hw.h;h=76849da0964c7dbb6831fe02374922dcf89b3bb1;hb=HEAD

Is this abstracting the target side, right?

Yep.

Quoted 8 lines
Quoted 5 lines

Don't know if it's generic enough to support the parallel and serial port interface as well. Anyway, with working generic GPIO lib support, it's quite simple to support new hardware, e.g. i.MX31 boards.

The host side to measure precisely the latency is even more tricky.

Depends. If you can map the GPIO output on something RS232 or parallel port compatible, you are done. Usually, there is always some x86 box

THe GPIO lines of most embedded boards don't like 5V. The are specified for 3.3V plus something less than 5V. I was thinking about that already but finally didn't want to damage the board. A 3.3V serial interface on the PC would be fine, though.

Quoted 8 lines
Quoted 4 lines

Sounds like we just need a voltage divider for RS232 -> GPIO. The other way should be fine as everything above 3 V is considered High, and I think to remember that even the invalid range of +/-3 V is reported as Low by typical (PC-)UARTs.

I just googled around a bit and found:

http://www.rs232-converters.com/rs232-to_ttl3.3_converters.htm

Or at ebay: http://shop.ebay.at/i.html?_kw=ttl&_kw=converter

Wolfgang.

author
#15 lore raw
Quoted 85 lines · Wolfgang Grandegger
Quoted 84 lines · Wolfgang Grandegger
Quoted 82 lines · Jan Kiszka
Quoted 69 lines · Wolfgang Grandegger
Quoted 38 lines · Jan Kiszka
Quoted 37 lines · Wolfgang Grandegger

Hi Jan,

Quoted 33 lines · Jan Kiszka
Quoted 20 lines · Philippe Gerum
Quoted 12 lines · Jan Kiszka
Quoted 11 lines · Philippe Gerum
Quoted 9 lines · Jan Kiszka

Philippe,

irqbench does not inherently depend on a third I-pipe domain. It is a useful testcase, the only in our portfolio that targets a peripheral device use case. In fact, it was only of the first test cases for Native RTDM IIRC.

Please revert the removal and then cut out only the few parts that actually instantiate an additional domain (i.e. mode 3.

Quoted 6 lines
Quoted 2 lines

So, what do we do with this? Any chance we move to arch-neutral code for this test?

Arch-neutral is impossible due to the inherent hardware dependency. But I'm waiting on some comments by Wolfgang on their work as that's probably the best requirements source for multi-arch support.

Quoted 5 lines

I mean that the bulk of the code could be made arch-neutral, with only callouts to solve the arch-dependent/uart issues. Typically, 16550's are not uncommon on powerpc, but we obviously don't program them via ioports. A second level of indirection could provide the entire chip handling, to fit other uarts, maybe?

If there are suitable UARTs around, refactoring the code accordingly and maybe adding support for one of them as reference would be a good next step. But first I would like to understand (or recall - I think Wolfgang once explained it) the motivations for not going this path with the gpiobench test and learn its requirements to avoid doing refactorings twice or more.

Quoted 6 lines
Quoted 4 lines

Well, it's a long time ago that I wrote gpioirqbench, which is derived from Jan's irqbench. Obviously, it uses GPIO pins to signal events instead of signals from the parallel port or serial line. I never supported the serial line for embedded boards.

What was the reason? That it is too often blocked by a terminal?

Mainly because there is no RTserial driver for the serial interface on the embedded boards, e.g. for the PSC, SCC. Furthermore, they are usually handled by firmware with ring buffers, dma, etc. which would introduce additional delays. They might be negligible, though.

Quoted 9 lines
Quoted 7 lines

You can get the code with:

  $ git clone git://git.denx.de/gpioirqbench

It uses a simple hw abstruction layer defined in target/gpioirq-hw.h:

http://git.denx.de/?p=gpioirqbench.git;a=blob;f=target/gpioirq-hw.h;h=76849da0964c7dbb6831fe02374922dcf89b3bb1;hb=HEAD

Is this abstracting the target side, right?

Yep.

Quoted 6 lines
Quoted 5 lines

Don't know if it's generic enough to support the parallel and serial port interface as well. Anyway, with working generic GPIO lib support, it's quite simple to support new hardware, e.g. i.MX31 boards.

The host side to measure precisely the latency is even more tricky.

Quoted 7 lines
Quoted 2 lines

Depends. If you can map the GPIO output on something RS232 or parallel port compatible, you are done. Usually, there is always some x86 box

THe GPIO lines of most embedded boards don't like 5V. The are specified for 3.3V plus something less than 5V. I was thinking about that already but finally didn't want to damage the board. A 3.3V serial interface on the PC would be fine, though.

Sounds like we just need a voltage divider for RS232 -> GPIO. The other way should be fine as everything above 3 V is considered High, and I think to remember that even the invalid range of +/-3 V is reported as Low by typical (PC-)UARTs.

Quoted 6 lines
Quoted 3 lines

I just googled around a bit and found:

http://www.rs232-converters.com/rs232-to_ttl3.3_converters.htm

Or at ebay: http://shop.ebay.at/i.html?_kw=ttl&_kw=converter

Look perfect on first sight - but not on second: They all convert RX/TX, but we need status line conversions. So you need at least some re-wiring via a breakout box a special cable. Still, it's a good base to build upon.

Jan