Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
63 user(s) are online (37 user(s) are browsing Forums)

Members: 1
Guests: 62

ncafferkey, more...

Support us!

Headlines

 
  Register To Post  

« 1 2 3 (4)
Re: x1000 onboard network opensource driver in progress
Home away from home
Home away from home


See User information
@balaton
Quote:

If you have a handler already for MCE that would probably dump state to serial so maybe just check that in MSR the ME bit is enabled and you might get a dump without having to write your own handler.


Spend 5 hours to learn how install a stub and make it works (that was not easy) , so in end i just run "mce_stub" and it install stub, i then jump on 0x200, and when reboot, on address 0x7f000000 i have all the info i need. I even wrote simple external command which call the 0x200 , when my stub in : yes, stub works, and write data i need. I was so happy that now yes, i will see something which will point on , but then bah, THAT ISN'T MCE !

CPU died, soft-int died, hardware interrupts died, and this is not MCE too. Then what to check next ? I mean, BUS lockup ? Busy-wait ?



Quote:

When you write these descriptors you may need to translate addresses to physical as the card only sees phys addresses.


Not with IOB on x1000, they ECAM, so direct physical writing, no translation/remapping there.

Quote:

If the DMA engine is shared with other usage you might need to go through the dma.resource to make sure not trying to use same channel by different parts. I think in A1222 one channel is reserved for network, maybe it's the same on X1000?


At least in unix sources it shown clear : for network they use "5" (same as me).

Quote:

We could look at it if you published the source. The title says opensource driver and you used Linux code so it should be GPL anyway. Maybe if you show the source people could help better.


As usual need to clean mess, some ai-cruft and then will upload on github in a day or two.


Edited by kas1e on 2026/3/15 21:58:17
Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: x1000 onboard network opensource driver in progress
Just can't stay away
Just can't stay away


See User information
@kas1e
Quote:
yes, stub works, and write data i need. I was so happy that now yes, i will see something which will point on , but then bah, THAT ISN'T MCE !

Did you check ME bit in MSR so MCE is not disabled? (Without a CPU manual it may be hard to know which bit is that exactly but maybe it's documented somewhere in the ISA version PA6T follows.)

Quote:
Not with IOB on x1000, they ECAM, so direct physical writing, no translation/remapping there.

I don't understand these acronyms. What do you mean?

Quote:
At least in unix sources it shown clear : for network they use "5" (same as me).

Ask dma.resource author if you have contact what channels that can use and what are reserved for network if any. It may not be the same as on Linux and using a channel without reserving it in dma.resource might lead to clashes with other things using DMA. Is it possible to disable DMA usage in AmigaOS so you can be sure only your driver accesses it? Or get a channel from dma.resource and use that.

Go to top
Re: x1000 onboard network opensource driver in progress
Just popping in
Just popping in


See User information
One more thought: you mentioned the DMA list wrapping around when the driver is stress tested. Is it possible the driver doesn't properly handle the situation where the DMA list wraps around?

Maybe try using a very small number of descriptors (like two) so that this condition is reached easily and you can examine the behaviour.

Go to top

  Register To Post
« 1 2 3 (4)

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )



Polls
Running AmigaOS 4 on?
AmigaOne SE/XE or microA1 12% (26)
Pegasos2 3% (8)
X5000 22% (48)
X1000 14% (30)
A1222 8% (19)
Sam 440/460 18% (40)
Classic PowerPC Amiga 2% (6)
WinUAE emulation 7% (16)
Qemu emulation 9% (21)
Total Votes: 214
The poll closed at 2025/12/1 12:00
8 Comments


Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project