Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #407325 > unrolled thread

problem with PCIe parallel port in EPP mode

Started byJon Elson <elson@pico-systems.com>
First post2016-04-13 11:46 -0500
Last post2016-04-21 14:37 -0500
Articles 20 on this page of 54 — 13 participants

Back to article view | Back to sci.electronics.design


Contents

  problem with PCIe parallel port in EPP mode Jon Elson <elson@pico-systems.com> - 2016-04-13 11:46 -0500
    Re: problem with PCIe parallel port in EPP mode Tim Wescott <tim@seemywebsite.com> - 2016-04-14 11:15 -0500
      Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-14 13:52 -0500
        Re: problem with PCIe parallel port in EPP mode rickman <gnuarm@gmail.com> - 2016-04-14 15:25 -0400
          Re: problem with PCIe parallel port in EPP mode Lasse Langwadt Christensen <langwadt@fonz.dk> - 2016-04-14 13:05 -0700
            Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-14 15:38 -0500
          Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-14 15:25 -0500
            Re: problem with PCIe parallel port in EPP mode rickman <gnuarm@gmail.com> - 2016-04-14 16:41 -0400
              Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-14 16:52 -0500
                Re: problem with PCIe parallel port in EPP mode Lasse Langwadt Christensen <langwadt@fonz.dk> - 2016-04-14 15:20 -0700
                  Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-15 16:43 -0500
                    Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-27 13:50 -0500
        Re: problem with PCIe parallel port in EPP mode "John Miles, KE5FX" <jmiles@gmail.com> - 2016-04-18 00:40 -0700
          Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-19 11:36 -0500
            Re: problem with PCIe parallel port in EPP mode "Tim Williams" <tiwill@seventransistorlabs.com> - 2016-04-19 18:34 -0500
              Re: problem with PCIe parallel port in EPP mode krw <krw@nowhere.com> - 2016-04-19 20:48 -0400
                Re: problem with PCIe parallel port in EPP mode Jon Elson <elson@pico-systems.com> - 2016-04-19 22:30 -0500
                  Re: problem with PCIe parallel port in EPP mode krw <krw@nowhere.com> - 2016-04-20 20:35 -0400
                Re: problem with PCIe parallel port in EPP mode Clifford Heath <no.spam@please.net> - 2016-04-23 17:57 +1000
                  Re: problem with PCIe parallel port in EPP mode krw <krw@nowhere.com> - 2016-04-23 10:50 -0400
                    Re: problem with PCIe parallel port in EPP mode DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-23 11:44 -0400
                    Re: problem with PCIe parallel port in EPP mode Clifford Heath <no.spam@please.net> - 2016-04-24 13:23 +1000
                      Re: problem with PCIe parallel port in EPP mode krw <krw@nowhere.com> - 2016-04-24 18:34 -0400
                        Re: problem with PCIe parallel port in EPP mode DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-24 19:39 -0400
                          Re: problem with PCIe parallel port in EPP mode krw <krw@nowhere.com> - 2016-04-24 19:51 -0400
                            Re: problem with PCIe parallel port in EPP mode DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-25 01:26 -0400
                              Re: problem with PCIe parallel port in EPP mode krw <krw@nowhere.com> - 2016-04-25 12:32 -0400
                        Re: problem with PCIe parallel port in EPP mode Clifford Heath <no.spam@please.net> - 2016-04-25 11:35 +1000
                          Re: problem with PCIe parallel port in EPP mode krw <krw@nowhere.com> - 2016-04-24 22:27 -0400
                            Re: problem with PCIe parallel port in EPP mode Clifford Heath <no.spam@please.net> - 2016-04-25 12:45 +1000
                              Re: problem with PCIe parallel port in EPP mode krw <krw@nowhere.com> - 2016-04-25 12:33 -0400
                                Re: problem with PCIe parallel port in EPP mode DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-25 12:48 -0400
                                  Re: problem with PCIe parallel port in EPP mode krw <krw@nowhere.com> - 2016-04-25 18:42 -0400
                                    Re: problem with PCIe parallel port in EPP mode Clifford Heath <no.spam@please.net> - 2016-04-26 09:27 +1000
                                      Re: problem with PCIe parallel port in EPP mode DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-25 20:05 -0400
              Re: problem with PCIe parallel port in EPP mode Jon Elson <elson@pico-systems.com> - 2016-04-19 22:25 -0500
    Re: problem with PCIe parallel port in EPP mode Hul Tytus <ht@panix.com> - 2016-04-14 22:05 +0000
      Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-15 16:50 -0500
        Re: problem with PCIe parallel port in EPP mode Johann Klammer <klammerj@NOSPAM.a1.net> - 2016-04-16 17:04 +0200
          Re: problem with PCIe parallel port in EPP mode Jon Elson <elson@pico-systems.com> - 2016-04-16 16:15 -0500
            Re: problem with PCIe parallel port in EPP mode Johann Klammer <klammerj@NOSPAM.a1.net> - 2016-04-17 04:04 +0200
              Re: problem with PCIe parallel port in EPP mode Jon Elson <elson@pico-systems.com> - 2016-04-17 00:00 -0500
                Re: problem with PCIe parallel port in EPP mode Johann Klammer <klammerj@NOSPAM.a1.net> - 2016-04-17 15:43 +0200
                  Re: problem with PCIe parallel port in EPP mode Jon Elson <elson@pico-systems.com> - 2016-04-17 11:16 -0500
                    Re: problem with PCIe parallel port in EPP mode Lasse Langwadt Christensen <langwadt@fonz.dk> - 2016-04-17 09:58 -0700
                      Re: problem with PCIe parallel port in EPP mode Jon Elson <elson@pico-systems.com> - 2016-04-17 18:43 -0500
                        Re: problem with PCIe parallel port in EPP mode Lasse Langwadt Christensen <langwadt@fonz.dk> - 2016-04-18 00:15 -0700
                          Re: problem with PCIe parallel port in EPP mode Jon Elson <elson@pico-systems.com> - 2016-04-18 09:40 -0500
                            Re: problem with PCIe parallel port in EPP mode Johann Klammer <klammerj@NOSPAM.a1.net> - 2016-04-18 19:14 +0200
                              Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-19 11:41 -0500
                                Re: problem with PCIe parallel port in EPP mode Lasse Langwadt Christensen <langwadt@fonz.dk> - 2016-04-19 12:00 -0700
                                  Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-19 15:01 -0500
    Re: problem with PCIe parallel port in EPP mode "colin_toogood@yahoo.com" <colin_toogood@yahoo.com> - 2016-04-21 06:28 -0700
      Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-21 14:37 -0500

Page 2 of 3 — ← Prev page 1 [2] 3  Next page →


#408780

FromDecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org>
Date2016-04-23 11:44 -0400
Message-ID<5u5nhblpo64m0h7sg69sko0821ub98c4uq@4ax.com>
In reply to#408774
On Sat, 23 Apr 2016 10:50:48 -0400, krw <krw@nowhere.com> Gave us:

snip

>It's been a long time since I've looked at this stuff but it has to be
>choherent, at least on a memory model level or MPs wouldn't work.


  Software authentication dongles.  Some parallel port configurations do
not work with them and faux ports on VMs do not work at all.

[toc] | [prev] | [next] | [standalone]


#408875

FromClifford Heath <no.spam@please.net>
Date2016-04-24 13:23 +1000
Message-ID<571c3c64$0$44220$c3e8da3$aae71a0a@news.astraweb.com>
In reply to#408774
On 24/04/16 00:50, krw wrote:
> On Sat, 23 Apr 2016 17:57:09 +1000, Clifford Heath
> <no.spam@please.net> wrote:
>> On 20/04/16 10:48, krw wrote:
>>> Main memory is, of course, coherent.
>> How sure are you of that? The LOCK prefix exists to bus-lock a CAS
>> operation all the way to main memory, instead of just from a CPU-local
>> cache. Why would they do that if main memory was consistent anyway?
>> I mean, the memory is consistent, but each processor's view of it is
>> not.
> It's been a long time since I've looked at this stuff but it has to be
> coherent, at least on a memory model level or MPs wouldn't work.

Ok. In that case, you're wrong. Multi-processors only have to flush
cache on a thread switch. Each thread may be scheduled on a different
CPU core, and will not necessarily see changes made by threads on
other CPUs - unless that CPU has a cache flush *or* the bit of memory
was written using a bus-locked instruction. Inter-thread communication
relies on either memory barriers or locked instructions.

The virtual memory TLB cache has to get flushed in appropriate cases
too, or you get bugs in page mapping. Linux and Windows flush the TLB
on entry to the O/S kernel, though some newer micro-kernel architectures
don't require that (on Intel hardware).

This stuff is complicated. Much more complicated than I've implied by
what I wrote above. But the bottom line is, main memory is not coherent
unless the software forces the issue.

Clifford Heath.

[toc] | [prev] | [next] | [standalone]


#409046

Fromkrw <krw@nowhere.com>
Date2016-04-24 18:34 -0400
Message-ID<68iqhbls1puesg0e40d1rcdl785q4olmkj@4ax.com>
In reply to#408875
On Sun, 24 Apr 2016 13:23:33 +1000, Clifford Heath
<no.spam@please.net> wrote:

>On 24/04/16 00:50, krw wrote:
>> On Sat, 23 Apr 2016 17:57:09 +1000, Clifford Heath
>> <no.spam@please.net> wrote:
>>> On 20/04/16 10:48, krw wrote:
>>>> Main memory is, of course, coherent.
>>> How sure are you of that? The LOCK prefix exists to bus-lock a CAS
>>> operation all the way to main memory, instead of just from a CPU-local
>>> cache. Why would they do that if main memory was consistent anyway?
>>> I mean, the memory is consistent, but each processor's view of it is
>>> not.
>> It's been a long time since I've looked at this stuff but it has to be
>> coherent, at least on a memory model level or MPs wouldn't work.
>
>Ok. In that case, you're wrong. Multi-processors only have to flush
>cache on a thread switch.

That's a horrible performance hit.  Ick! ...and if both happen to have
dirty copies of the same address?

>Each thread may be scheduled on a different
>CPU core, and will not necessarily see changes made by threads on
>other CPUs - unless that CPU has a cache flush *or* the bit of memory
>was written using a bus-locked instruction. Inter-thread communication
>relies on either memory barriers or locked instructions.

...or memory is coherent.
>
>The virtual memory TLB cache has to get flushed in appropriate cases
>too, or you get bugs in page mapping. Linux and Windows flush the TLB
>on entry to the O/S kernel, though some newer micro-kernel architectures
>don't require that (on Intel hardware).

TLBs are a different kettle o fish.
>
>This stuff is complicated. Much more complicated than I've implied by
>what I wrote above. But the bottom line is, main memory is not coherent
>unless the software forces the issue.

In a retarded architecture, perhaps.  In any sane architecture, main
memory is kept coherent.

[toc] | [prev] | [next] | [standalone]


#409063

FromDecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org>
Date2016-04-24 19:39 -0400
Message-ID<h7mqhbhdslcjpdqbjsa588438uv5supf05@4ax.com>
In reply to#409046
On Sun, 24 Apr 2016 18:34:32 -0400, krw <krw@nowhere.com> Gave us:

>On Sun, 24 Apr 2016 13:23:33 +1000, Clifford Heath
><no.spam@please.net> wrote:
>
>>On 24/04/16 00:50, krw wrote:
>>> On Sat, 23 Apr 2016 17:57:09 +1000, Clifford Heath
>>> <no.spam@please.net> wrote:
>>>> On 20/04/16 10:48, krw wrote:
>>>>> Main memory is, of course, coherent.
>>>> How sure are you of that? The LOCK prefix exists to bus-lock a CAS
>>>> operation all the way to main memory, instead of just from a CPU-local
>>>> cache. Why would they do that if main memory was consistent anyway?
>>>> I mean, the memory is consistent, but each processor's view of it is
>>>> not.
>>> It's been a long time since I've looked at this stuff but it has to be
>>> coherent, at least on a memory model level or MPs wouldn't work.
>>
>>Ok. In that case, you're wrong. Multi-processors only have to flush
>>cache on a thread switch.
>
>That's a horrible performance hit.  Ick! ...and if both happen to have
>dirty copies of the same address?
>
>>Each thread may be scheduled on a different
>>CPU core, and will not necessarily see changes made by threads on
>>other CPUs - unless that CPU has a cache flush *or* the bit of memory
>>was written using a bus-locked instruction. Inter-thread communication
>>relies on either memory barriers or locked instructions.
>
>...or memory is coherent.
>>
>>The virtual memory TLB cache has to get flushed in appropriate cases
>>too, or you get bugs in page mapping. Linux and Windows flush the TLB
>>on entry to the O/S kernel, though some newer micro-kernel architectures
>>don't require that (on Intel hardware).
>
>TLBs are a different kettle o fish.
>>
>>This stuff is complicated. Much more complicated than I've implied by
>>what I wrote above. But the bottom line is, main memory is not coherent
>>unless the software forces the issue.
>
>In a retarded architecture, perhaps.  In any sane architecture, main
>memory is kept coherent.

  A computer would not compute otherwise.

  Danger, Will Robinson.

  Well, maybe a quantum computer could still get the right answer.

https://en.wikipedia.org/wiki/Cache_coherence

[toc] | [prev] | [next] | [standalone]


#409065

Fromkrw <krw@nowhere.com>
Date2016-04-24 19:51 -0400
Message-ID<fpmqhbtts2ce37ai33b32bn8alm63a2i3e@4ax.com>
In reply to#409063
On Sun, 24 Apr 2016 19:39:43 -0400, DecadentLinuxUserNumeroUno
<DLU1@DecadentLinuxUser.org> wrote:

>On Sun, 24 Apr 2016 18:34:32 -0400, krw <krw@nowhere.com> Gave us:
>
>>On Sun, 24 Apr 2016 13:23:33 +1000, Clifford Heath
>><no.spam@please.net> wrote:
>>
>>>On 24/04/16 00:50, krw wrote:
>>>> On Sat, 23 Apr 2016 17:57:09 +1000, Clifford Heath
>>>> <no.spam@please.net> wrote:
>>>>> On 20/04/16 10:48, krw wrote:
>>>>>> Main memory is, of course, coherent.
>>>>> How sure are you of that? The LOCK prefix exists to bus-lock a CAS
>>>>> operation all the way to main memory, instead of just from a CPU-local
>>>>> cache. Why would they do that if main memory was consistent anyway?
>>>>> I mean, the memory is consistent, but each processor's view of it is
>>>>> not.
>>>> It's been a long time since I've looked at this stuff but it has to be
>>>> coherent, at least on a memory model level or MPs wouldn't work.
>>>
>>>Ok. In that case, you're wrong. Multi-processors only have to flush
>>>cache on a thread switch.
>>
>>That's a horrible performance hit.  Ick! ...and if both happen to have
>>dirty copies of the same address?
>>
>>>Each thread may be scheduled on a different
>>>CPU core, and will not necessarily see changes made by threads on
>>>other CPUs - unless that CPU has a cache flush *or* the bit of memory
>>>was written using a bus-locked instruction. Inter-thread communication
>>>relies on either memory barriers or locked instructions.
>>
>>...or memory is coherent.
>>>
>>>The virtual memory TLB cache has to get flushed in appropriate cases
>>>too, or you get bugs in page mapping. Linux and Windows flush the TLB
>>>on entry to the O/S kernel, though some newer micro-kernel architectures
>>>don't require that (on Intel hardware).
>>
>>TLBs are a different kettle o fish.
>>>
>>>This stuff is complicated. Much more complicated than I've implied by
>>>what I wrote above. But the bottom line is, main memory is not coherent
>>>unless the software forces the issue.
>>
>>In a retarded architecture, perhaps.  In any sane architecture, main
>>memory is kept coherent.
>
>  A computer would not compute otherwise.

The memory model Clifford describes isn't, AlwaysWrong.
>
>  Danger, Will Robinson.
>
>  Well, maybe a quantum computer could still get the right answer.
>
>https://en.wikipedia.org/wiki/Cache_coherence

AlwaysWrong, why don't comment about something you actually
understand?

[toc] | [prev] | [next] | [standalone]


#409100

FromDecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org>
Date2016-04-25 01:26 -0400
Message-ID<jjarhbhpu1h0g93fd0sfiknif0shlsh49b@4ax.com>
In reply to#409065
On Sun, 24 Apr 2016 19:51:20 -0400, krw <krw@nowhere.com> Gave us:

> why don't comment about something you actually
>understand?

  Nice try, punk.

[toc] | [prev] | [next] | [standalone]


#409152

Fromkrw <krw@nowhere.com>
Date2016-04-25 12:32 -0400
Message-ID<akhshblqp55i83999eljmepgljmokvfek8@4ax.com>
In reply to#409100
On Mon, 25 Apr 2016 01:26:35 -0400, DecadentLinuxUserNumeroUno
<DLU1@DecadentLinuxUser.org> wrote:

>On Sun, 24 Apr 2016 19:51:20 -0400, krw <krw@nowhere.com> Gave us:
>
>> why don't comment about something you actually
>>understand?
>
>  Nice try, punk.

No, you really didn't even try, AlwaysWrong.  You never do.

[toc] | [prev] | [next] | [standalone]


#409070

FromClifford Heath <no.spam@please.net>
Date2016-04-25 11:35 +1000
Message-ID<571d7470$0$5860$b1db1813$19ace300@news.astraweb.com>
In reply to#409046
On 25/04/16 08:34, krw wrote:
> On Sun, 24 Apr 2016 13:23:33 +1000, Clifford Heath
> <no.spam@please.net> wrote:
>
>> On 24/04/16 00:50, krw wrote:
>>> On Sat, 23 Apr 2016 17:57:09 +1000, Clifford Heath
>>> <no.spam@please.net> wrote:
>>>> On 20/04/16 10:48, krw wrote:
>>>>> Main memory is, of course, coherent.
>>>> How sure are you of that? The LOCK prefix exists to bus-lock a CAS
>>>> operation all the way to main memory, instead of just from a CPU-local
>>>> cache. Why would they do that if main memory was consistent anyway?
>>>> I mean, the memory is consistent, but each processor's view of it is
>>>> not.
>>> It's been a long time since I've looked at this stuff but it has to be
>>> coherent, at least on a memory model level or MPs wouldn't work.
>>
>> Ok. In that case, you're wrong. Multi-processors only have to flush
>> cache on a thread switch.
>
> That's a horrible performance hit.  Ick! ...and if both happen to have
> dirty copies of the same address?

They don't (shouldn't) as a matter of policy. That is handled by
O/S memory mapping, and by threads using locked instructions
where they need coherence. This kind of threading is a difficult
programming model. I've only done one major project this way,
and would almost always find a way to avoid the need to.

>> Each thread may be scheduled on a different
>> CPU core, and will not necessarily see changes made by threads on
>> other CPUs - unless that CPU has a cache flush *or* the bit of memory
>> was written using a bus-locked instruction. Inter-thread communication
>> relies on either memory barriers or locked instructions.
>
> ...or memory is coherent.

You're almost three decades out of date with that approach.

The last high-performance MP CPU that attempted to keep all of main
memory coherent was probably built in the 1980's. It simply isn't
possible to keep large low-ns cache coherent - it just defeats the
purpose of having a cache at all.

Clifford Heath.

[toc] | [prev] | [next] | [standalone]


#409081

Fromkrw <krw@nowhere.com>
Date2016-04-24 22:27 -0400
Message-ID<e20rhb5poov8ttojpcv85ono8hefrgrqlk@4ax.com>
In reply to#409070
On Mon, 25 Apr 2016 11:35:01 +1000, Clifford Heath
<no.spam@please.net> wrote:

>On 25/04/16 08:34, krw wrote:
>> On Sun, 24 Apr 2016 13:23:33 +1000, Clifford Heath
>> <no.spam@please.net> wrote:
>>
>>> On 24/04/16 00:50, krw wrote:
>>>> On Sat, 23 Apr 2016 17:57:09 +1000, Clifford Heath
>>>> <no.spam@please.net> wrote:
>>>>> On 20/04/16 10:48, krw wrote:
>>>>>> Main memory is, of course, coherent.
>>>>> How sure are you of that? The LOCK prefix exists to bus-lock a CAS
>>>>> operation all the way to main memory, instead of just from a CPU-local
>>>>> cache. Why would they do that if main memory was consistent anyway?
>>>>> I mean, the memory is consistent, but each processor's view of it is
>>>>> not.
>>>> It's been a long time since I've looked at this stuff but it has to be
>>>> coherent, at least on a memory model level or MPs wouldn't work.
>>>
>>> Ok. In that case, you're wrong. Multi-processors only have to flush
>>> cache on a thread switch.
>>
>> That's a horrible performance hit.  Ick! ...and if both happen to have
>> dirty copies of the same address?
>
>They don't (shouldn't) as a matter of policy.

Oh, that's comforting. 

>That is handled by
>O/S memory mapping, and by threads using locked instructions
>where they need coherence. This kind of threading is a difficult
>programming model. I've only done one major project this way,
>and would almost always find a way to avoid the need to.

Bad plan and completely unnecessary.
>
>>> Each thread may be scheduled on a different
>>> CPU core, and will not necessarily see changes made by threads on
>>> other CPUs - unless that CPU has a cache flush *or* the bit of memory
>>> was written using a bus-locked instruction. Inter-thread communication
>>> relies on either memory barriers or locked instructions.
>>
>> ...or memory is coherent.
>
>You're almost three decades out of date with that approach.

Wrong. 

>The last high-performance MP CPU that attempted to keep all of main
>memory coherent was probably built in the 1980's. It simply isn't
>possible to keep large low-ns cache coherent - it just defeats the
>purpose of having a cache at all.

You're wrong.  Shall we start calling you "Decadent"?

[toc] | [prev] | [next] | [standalone]


#409084

FromClifford Heath <no.spam@please.net>
Date2016-04-25 12:45 +1000
Message-ID<571d84f6$0$29155$c3e8da3$38634283@news.astraweb.com>
In reply to#409081
On 25/04/16 12:27, krw wrote:
> On Mon, 25 Apr 2016 11:35:01 +1000, Clifford Heath
> <no.spam@please.net> wrote:
>
>> On 25/04/16 08:34, krw wrote:
>>> On Sun, 24 Apr 2016 13:23:33 +1000, Clifford Heath
>>> <no.spam@please.net> wrote:
>>>
>>>> On 24/04/16 00:50, krw wrote:
>>>>> On Sat, 23 Apr 2016 17:57:09 +1000, Clifford Heath
>>>>> <no.spam@please.net> wrote:
>>>>>> On 20/04/16 10:48, krw wrote:
>>>>>>> Main memory is, of course, coherent.
>>>>>> How sure are you of that? The LOCK prefix exists to bus-lock a CAS
>>>>>> operation all the way to main memory, instead of just from a CPU-local
>>>>>> cache. Why would they do that if main memory was consistent anyway?
>>>>>> I mean, the memory is consistent, but each processor's view of it is
>>>>>> not.
>>>>> It's been a long time since I've looked at this stuff but it has to be
>>>>> coherent, at least on a memory model level or MPs wouldn't work.
>>>>
>>>> Ok. In that case, you're wrong. Multi-processors only have to flush
>>>> cache on a thread switch.
>>>
>>> That's a horrible performance hit.  Ick! ...and if both happen to have
>>> dirty copies of the same address?
>>
>> They don't (shouldn't) as a matter of policy.
>
> Oh, that's comforting.
>
>> That is handled by
>> O/S memory mapping, and by threads using locked instructions
>> where they need coherence. This kind of threading is a difficult
>> programming model. I've only done one major project this way,
>> and would almost always find a way to avoid the need to.
>
> Bad plan and completely unnecessary.

Not always... but mostly I agree. This difficult stuff should be
relegated to shared system services that cannot live without it,
such as high-perf graphics libraries and DBMS.

>>>> Each thread may be scheduled on a different
>>>> CPU core, and will not necessarily see changes made by threads on
>>>> other CPUs - unless that CPU has a cache flush *or* the bit of memory
>>>> was written using a bus-locked instruction. Inter-thread communication
>>>> relies on either memory barriers or locked instructions.
>>>
>>> ...or memory is coherent.
>>
>> You're almost three decades out of date with that approach.
>
> Wrong.
>
>> The last high-performance MP CPU that attempted to keep all of main
>> memory coherent was probably built in the 1980's. It simply isn't
>> possible to keep large low-ns cache coherent - it just defeats the
>> purpose of having a cache at all.
>
> You're wrong.

Happy to hear evidence to the contrary. Multi-core has changed things.

[toc] | [prev] | [next] | [standalone]


#409153

Fromkrw <krw@nowhere.com>
Date2016-04-25 12:33 -0400
Message-ID<slhshb1rnj40kl2a17t7ndlg9k3ap7c9oe@4ax.com>
In reply to#409084
On Mon, 25 Apr 2016 12:45:32 +1000, Clifford Heath
<no.spam@please.net> wrote:

>On 25/04/16 12:27, krw wrote:
>> On Mon, 25 Apr 2016 11:35:01 +1000, Clifford Heath
>> <no.spam@please.net> wrote:
>>
>>> On 25/04/16 08:34, krw wrote:
>>>> On Sun, 24 Apr 2016 13:23:33 +1000, Clifford Heath
>>>> <no.spam@please.net> wrote:
>>>>
>>>>> On 24/04/16 00:50, krw wrote:
>>>>>> On Sat, 23 Apr 2016 17:57:09 +1000, Clifford Heath
>>>>>> <no.spam@please.net> wrote:
>>>>>>> On 20/04/16 10:48, krw wrote:
>>>>>>>> Main memory is, of course, coherent.
>>>>>>> How sure are you of that? The LOCK prefix exists to bus-lock a CAS
>>>>>>> operation all the way to main memory, instead of just from a CPU-local
>>>>>>> cache. Why would they do that if main memory was consistent anyway?
>>>>>>> I mean, the memory is consistent, but each processor's view of it is
>>>>>>> not.
>>>>>> It's been a long time since I've looked at this stuff but it has to be
>>>>>> coherent, at least on a memory model level or MPs wouldn't work.
>>>>>
>>>>> Ok. In that case, you're wrong. Multi-processors only have to flush
>>>>> cache on a thread switch.
>>>>
>>>> That's a horrible performance hit.  Ick! ...and if both happen to have
>>>> dirty copies of the same address?
>>>
>>> They don't (shouldn't) as a matter of policy.
>>
>> Oh, that's comforting.
>>
>>> That is handled by
>>> O/S memory mapping, and by threads using locked instructions
>>> where they need coherence. This kind of threading is a difficult
>>> programming model. I've only done one major project this way,
>>> and would almost always find a way to avoid the need to.
>>
>> Bad plan and completely unnecessary.
>
>Not always... but mostly I agree. This difficult stuff should be
>relegated to shared system services that cannot live without it,
>such as high-perf graphics libraries and DBMS.
>
>>>>> Each thread may be scheduled on a different
>>>>> CPU core, and will not necessarily see changes made by threads on
>>>>> other CPUs - unless that CPU has a cache flush *or* the bit of memory
>>>>> was written using a bus-locked instruction. Inter-thread communication
>>>>> relies on either memory barriers or locked instructions.
>>>>
>>>> ...or memory is coherent.
>>>
>>> You're almost three decades out of date with that approach.
>>
>> Wrong.
>>
>>> The last high-performance MP CPU that attempted to keep all of main
>>> memory coherent was probably built in the 1980's. It simply isn't
>>> possible to keep large low-ns cache coherent - it just defeats the
>>> purpose of having a cache at all.
>>
>> You're wrong.
>
>Happy to hear evidence to the contrary. Multi-core has changed things.

PowerPC.  Nope.

[toc] | [prev] | [next] | [standalone]


#409159

FromDecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org>
Date2016-04-25 12:48 -0400
Message-ID<6iishb9ajllqcum7l3iuudivihb0ibnp0a@4ax.com>
In reply to#409153
On Mon, 25 Apr 2016 12:33:22 -0400, krw <krw@nowhere.com> Gave us:

>On Mon, 25 Apr 2016 12:45:32 +1000, Clifford Heath
><no.spam@please.net> wrote:

snip

>>Happy to hear evidence to the contrary. Multi-core has changed things.
>
>PowerPC.  Nope.

  The Cell CPU.

  Again, you are not very bright.

[toc] | [prev] | [next] | [standalone]


#409211

Fromkrw <krw@nowhere.com>
Date2016-04-25 18:42 -0400
Message-ID<877thbd60m9685blifnilq80gd20s772c6@4ax.com>
In reply to#409159
On Mon, 25 Apr 2016 12:48:43 -0400, DecadentLinuxUserNumeroUno
<DLU1@DecadentLinuxUser.org> wrote:

>On Mon, 25 Apr 2016 12:33:22 -0400, krw <krw@nowhere.com> Gave us:
>
>>On Mon, 25 Apr 2016 12:45:32 +1000, Clifford Heath
>><no.spam@please.net> wrote:
>
>snip
>
>>>Happy to hear evidence to the contrary. Multi-core has changed things.
>>
>>PowerPC.  Nope.
>
>  The Cell CPU.

No, I didn't work on cell so really don't know how they work. '750 and
'970.
>
>  Again, you are not very bright.

Perhaps but right beats bright, in this case.

[toc] | [prev] | [next] | [standalone]


#409220

FromClifford Heath <no.spam@please.net>
Date2016-04-26 09:27 +1000
Message-ID<571ea817$0$46673$c3e8da3$e074e489@news.astraweb.com>
In reply to#409211
On 26/04/16 08:42, krw wrote:
> On Mon, 25 Apr 2016 12:48:43 -0400, DecadentLinuxUserNumeroUno
> <DLU1@DecadentLinuxUser.org> wrote:
>> On Mon, 25 Apr 2016 12:33:22 -0400, krw <krw@nowhere.com> Gave us:
>>> On Mon, 25 Apr 2016 12:45:32 +1000, Clifford Heath
>>> <no.spam@please.net> wrote:
>> snip
>>>> Happy to hear evidence to the contrary. Multi-core has changed things.
>>> PowerPC.  Nope.
>>   Again, you are not very bright.
> Perhaps but right beats bright, in this case.

That is true, but it doesn't apply here, because you aren't right.

Otherwise why does PowerPC have sync/msync instructions?
See page 23 here:
<http://www.nxp.com/files/32bit/doc/white_paper/POWRPCARCPRMRM.pdf>

You don't need cache control instructions in a coherent-memory architecture.

Clifford Heath.

[toc] | [prev] | [next] | [standalone]


#409222

FromDecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org>
Date2016-04-25 20:05 -0400
Message-ID<23cthbd7pevstrmha16n0nmq6sgsn3u5e7@4ax.com>
In reply to#409220
On Tue, 26 Apr 2016 09:27:40 +1000, Clifford Heath <no.spam@please.net>
Gave us:

>On 26/04/16 08:42, krw wrote:
>> On Mon, 25 Apr 2016 12:48:43 -0400, DecadentLinuxUserNumeroUno
>> <DLU1@DecadentLinuxUser.org> wrote:
>>> On Mon, 25 Apr 2016 12:33:22 -0400, krw <krw@nowhere.com> Gave us:
>>>> On Mon, 25 Apr 2016 12:45:32 +1000, Clifford Heath
>>>> <no.spam@please.net> wrote:
>>> snip
>>>>> Happy to hear evidence to the contrary. Multi-core has changed things.
>>>> PowerPC.  Nope.
>>>   Again, you are not very bright.
>> Perhaps but right beats bright, in this case.
>
>That is true, but it doesn't apply here, because you aren't right.
>
>Otherwise why does PowerPC have sync/msync instructions?
>See page 23 here:
><http://www.nxp.com/files/32bit/doc/white_paper/POWRPCARCPRMRM.pdf>
>
>You don't need cache control instructions in a coherent-memory architecture.
>
>Clifford Heath.

 I am sure that will go right over his antiquated API head, as he has
limited understanding of even his wee wittle bwain's limited instruction
set.

  Danger, Will Robinson.

[toc] | [prev] | [next] | [standalone]


#408282

FromJon Elson <elson@pico-systems.com>
Date2016-04-19 22:25 -0500
Message-ID<Y7adnd7mTvsga4vKnZ2dnUU7-a-dnZ2d@giganews.com>
In reply to#408257
Tim Williams wrote:


> 
> I've always wondered how much buffering goes on with those.
> 
> Obviously(?), you can't get a parallel port going into the nanoseconds
> (Fclk
> = 8MHz, at least in the original case).  PCI (33MHz+) PPs exist, so are
> they inserting wait states, or what?
> 
They put the CPU in a wait state.  I had one early PCI card that didn't make 
the CPU wait, and you'd see the data bus changing while the DATASTB/ was 
true.

This is plenty inefficient for the CPU, multi-GHz CPUs waiting on a 1 MHz 
peripheral, but it guarantees proper timing.

On the latest generation of parports, the EPP cycle seems to take a total of 
350 ns.

Jon

[toc] | [prev] | [next] | [standalone]


#407565

FromHul Tytus <ht@panix.com>
Date2016-04-14 22:05 +0000
Message-ID<nep47v$nl5$1@reader1.panix.com>
In reply to#407325
Jon, on the read operation, could you see if the data returned to the 
computer was correct? 

Hul

Jon Elson <elson@pico-systems.com> wrote:
> I've been making motion control devices that connect to the parallel port in 
> EPP mode since 2001.  I had some problems many years ago with non-compliant 
> EPP implementations on motherboard multi-I/O chips and PCI cards, but it 
> seemed they got it figured out and they all worked since about 2006.

> Then, I got a SIIG PCIe card a few days ago with the Oxford OXPCIe952 chip, 
> and it didn;t work with code that has been fine for almost 15 years.
> Breaking out the logic analyzer, I found that all output operations were 
> fine (with bit 5 of the control reg set to 0) but when setting bit 5 of the 
> control reg to 1 to read, and giving the INB command to the EPP data 
> register, it produces no DATASTB/ pulse.

> Anybody have any ideas what is going on?  I think 3 generations of Oxford 
> chips in PCI cards have worked fine with the same code.  I tried a number of 
> variations in the code to see if I could make it work with the Oxford 952 
> chip, but couldn't get anything to change.

> Thanks in a dvance for any ideas!

> Jon

[toc] | [prev] | [next] | [standalone]


#407744

FromJon Elson <jmelson@wustl.edu>
Date2016-04-15 16:50 -0500
Message-ID<1qqdnfArWpx5_IzKnZ2dnUU7-aOdnZ2d@giganews.com>
In reply to#407565
Hul Tytus wrote:

> Jon, on the read operation, could you see if the data returned to the
> computer was correct?
No data could possibly be returned to the computer, as the DATASTB/ pulse 
was never generated.  The target device waits for DATASTB/ to become active 
with WRITE/ high (inactive write) to send data.

So, the whole problem is when you write to the EPP data port it DOES 
generate DATASTB/ with WRITE/ low, but when you read from the EPP data port 
with an INB instruction, it is SUPPOSED to generate DATASTB/ with WRITE/ 
high, but the DATASTB/ never pulses.

The Saba board with the NetMos 9900 chip works fine (as did a bunch of older 
Oxford chips, and others.)

While it is possible I'm doing something really odd, registers set to 
strange values or whatever, this code has been used on dozens of different 
MoBo parallel ports and at least half a dozen PCI cards without trouble.
To change from write to read, I only flip one bit of the control register.

Jon

[toc] | [prev] | [next] | [standalone]


#407810

FromJohann Klammer <klammerj@NOSPAM.a1.net>
Date2016-04-16 17:04 +0200
Message-ID<netkae$vmg$1@gioia.aioe.org>
In reply to#407744
On 04/15/2016 11:50 PM, Jon Elson wrote:
> Hul Tytus wrote:
> 
>> Jon, on the read operation, could you see if the data returned to the
>> computer was correct?
> No data could possibly be returned to the computer, as the DATASTB/ pulse 
> was never generated.  The target device waits for DATASTB/ to become active 
> with WRITE/ high (inactive write) to send data.
> 
> So, the whole problem is when you write to the EPP data port it DOES 
> generate DATASTB/ with WRITE/ low, but when you read from the EPP data port 
> with an INB instruction, it is SUPPOSED to generate DATASTB/ with WRITE/ 
> high, but the DATASTB/ never pulses.
> 
> The Saba board with the NetMos 9900 chip works fine (as did a bunch of older 
> Oxford chips, and others.)
> 
> While it is possible I'm doing something really odd, registers set to 
> strange values or whatever, this code has been used on dozens of different 
> MoBo parallel ports and at least half a dozen PCI cards without trouble.
> To change from write to read, I only flip one bit of the control register.
> 
> Jon
> 
are you using a driver(parport/ppdev?) or accessing the ports directly from userspace? 
is a driver loaded? will it interfere? 

[toc] | [prev] | [next] | [standalone]


#407860

FromJon Elson <elson@pico-systems.com>
Date2016-04-16 16:15 -0500
Message-ID<U96dncfuIafkNo_KnZ2dnUU7-X3NnZ2d@giganews.com>
In reply to#407810
Johann Klammer wrote:


>> 
> are you using a driver(parport/ppdev?) or accessing the ports directly
> from userspace? is a driver loaded? will it interfere?
I just use some functions by including io.c, these are inb and outb, which 
are supposedly X86 instructions.  But, not completely clear what these 
functions freally do at the hardware level.

I have a diagnostic that runs in userspace (with sudo priviledges.)

The actual CNC program (LinuxCNC) runs real time tasks as either kernel 
modules under RTAI or as user-space real time tasks under Xenomai or rt-
preempt.

These all run without using a classic device driver.  We have a routine in 
our API that reserves the use of the port, and releases it when done, so it 
is not SUPPOSED to cause any interference.

Jon

[toc] | [prev] | [next] | [standalone]


Page 2 of 3 — ← Prev page 1 [2] 3  Next page →

Back to top | Article view | sci.electronics.design


csiph-web