linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: [Linux-ATM-General] Re: ATM driver for 8260 (linux 2.4.x)
  2002-01-24 16:07 ATM driver for 8260 (linux 2.4.x) None Atall
@ 2002-01-29  4:03 ` James Campbell
  0 siblings, 0 replies; 5+ messages in thread
From: James Campbell @ 2002-01-29  4:03 UTC (permalink / raw)
  To: None Atall; +Cc: linuxppc-embedded, linux-atm-general


Hello,

Sorry for the long time getting back about the patch.

I have the patch ready to distribute, BUT I'm running into some
problems at work getting it released under the gpl.  As soon as
this happens, you'll see something from me.

I'm all for giving back to the community, and I think those here
will come arround rather soon, I hope.

Cheers,

James Campbell

On Thu, 2002-01-24 at 08:07, None Atall wrote:
>
>  James, Is this patch for 8260 ATM ready? I am realy
> looking forward!!
>
>                  D. Meidanis
>
>
> _______________________________________________
> Linux-atm-general mailing list
> Linux-atm-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-atm-general
>
--
James Campbell          -|-   Embedded Systems Engineer
jcampbell@omnigon.com   -|-     Omnigon International
pgp:  C138 0E47 5200 40A3 5D09 682E D53F A137 49AE 7171
work: +1.760.804.8884 x 332       cell: +1.760.492.1176
--
"Computer games don't affect kids; I mean if Pac-Man
affected us as kids, we'd all be running around darkened
rooms, munching magic pills and listening to repetitive
electronic music."
         -Kristian Wilson, Nintendo, Inc. 1989


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: [Linux-ATM-General] Re: ATM driver for 8260 (linux 2.4.x)
       [not found] <200201291247.g0TClwl07353@hofr.at>
@ 2002-01-29 14:23 ` None Atall
  2002-01-29 15:55   ` Wolfgang Denk
  2002-01-30 11:39   ` ATM driver for 8260 (linux 2.4.x) working! None Atall
  0 siblings, 2 replies; 5+ messages in thread
From: None Atall @ 2002-01-29 14:23 UTC (permalink / raw)
  To: Der Herr Hofrat, linuxppc-embedded


 Mr Hofrat is right!
For some reason the interrupt handler reads old
values, although the CPM puts new data. (I checked it
using JTAG). It seems
like the old data are kept on buffers and are not
refreshed. Unfortunetely i did what Hofrat saied,
but it doesn't work. Is there a function for forcing
refresh? flush_tlb or flush_dcache perhaps?

                     Thanks!
                       D. Meidanis

--- Der Herr Hofrat <der.herr@mail.hofr.at> wrote:
> >
> >   But until you do it, could you help me in one
> > problem
> > that i have? I have imported the mpc860sar driver
> > myself. But i have this problem. When i use the
> aread
> > program, i seem to take the data ok. But if from
> the
> > transmit computer i send quick the data, the CPM
> seems
> > to
> > jump positions in the Interrupt Queue. I mean that
> my
> > pointer (SW) increases correct, but the CPM
> increases
> > without putting an interrupt entry. Any ideas?
> > Also, in the original driver Alex used the
> > mm_alloc_uncached_pages function, but i have
> replased
> > it with kmalloc(size, GFP_KERNEL). Is it correct?
> >
> I don't know about the details of your setup - but
> we had similar phenomenon with
> a driver on the CPM that acknowledged the interrupt
> too late - the therapy
> was to move the interrupt ack to the top of the
> driver and all was well.
>
> so maby you are seeing the same problem due to the
> same driver coding error .
>
> hofrat


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: [Linux-ATM-General] Re: ATM driver for 8260 (linux 2.4.x)
  2002-01-29 14:23 ` [Linux-ATM-General] Re: ATM driver for 8260 (linux 2.4.x) None Atall
@ 2002-01-29 15:55   ` Wolfgang Denk
  2002-01-29 16:30     ` None Atall
  2002-01-30 11:39   ` ATM driver for 8260 (linux 2.4.x) working! None Atall
  1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2002-01-29 15:55 UTC (permalink / raw)
  To: None Atall; +Cc: linuxppc-embedded


In message <20020129142321.38639.qmail@web9706.mail.yahoo.com> you wrote:
>
> For some reason the interrupt handler reads old
> values, although the CPM puts new data. (I checked it

Sounds like a cache problem...

> using JTAG). It seems
> like the old data are kept on buffers and are not
> refreshed. Unfortunetely i did what Hofrat saied,
> but it doesn't work. Is there a function for forcing
> refresh? flush_tlb or flush_dcache perhaps?

flush_dcache_range().

> > > Also, in the original driver Alex used the
> > > mm_alloc_uncached_pages function, but i have
> > replased
> > > it with kmalloc(size, GFP_KERNEL). Is it correct?

Hint! Hint!

Hope this helps,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
As far as we know, our computer has never had an undetected error.
		                                           -- Weisert

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: [Linux-ATM-General] Re: ATM driver for 8260 (linux 2.4.x)
  2002-01-29 15:55   ` Wolfgang Denk
@ 2002-01-29 16:30     ` None Atall
  0 siblings, 0 replies; 5+ messages in thread
From: None Atall @ 2002-01-29 16:30 UTC (permalink / raw)
  To: Wolfgang Denk; +Cc: linuxppc-embedded


  It was realy cache problem! I had to disable
both caches I,D from the head.S to find that!
Well the receaver works ok with Dcache off....
As I looked from the mpc860sar code, there is a
way to tell linux not to cache specific pages.
But the functions are not compatible with 8260.
Does anyone know how to do that for 8260?

                    Thanks a lot for your time!
                        D. Meidanis


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* ATM driver for 8260 (linux 2.4.x) working!
  2002-01-29 14:23 ` [Linux-ATM-General] Re: ATM driver for 8260 (linux 2.4.x) None Atall
  2002-01-29 15:55   ` Wolfgang Denk
@ 2002-01-30 11:39   ` None Atall
  1 sibling, 0 replies; 5+ messages in thread
From: None Atall @ 2002-01-30 11:39 UTC (permalink / raw)
  To: linuxppc-embedded



 At last,
The import to 8260 was successfull!
For now I support AAL5, and CBR. It is
a matter of days before I have a full working
driver. The only problem is the cache problem,
since I want uncashed pages. I am still working
on it.
 If anyone needs the driver really fast, I can send
it to him.

               A happy Hardware engineer,that
               messed with software engineering! :)
                        D. Meidanis


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2002-01-30 11:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200201291247.g0TClwl07353@hofr.at>
2002-01-29 14:23 ` [Linux-ATM-General] Re: ATM driver for 8260 (linux 2.4.x) None Atall
2002-01-29 15:55   ` Wolfgang Denk
2002-01-29 16:30     ` None Atall
2002-01-30 11:39   ` ATM driver for 8260 (linux 2.4.x) working! None Atall
2002-01-24 16:07 ATM driver for 8260 (linux 2.4.x) None Atall
2002-01-29  4:03 ` [Linux-ATM-General] " James Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).