patm / NATM system freeze with CPUTYPE?=opteron

View: New views
3 Messages — Rating Filter:   Alert me  

patm / NATM system freeze with CPUTYPE?=opteron

by Clemens Zauner-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


(For details, please see the posting in comp.unix.bsd.freebsd.misc
 Message-ID: <f29tq0$2g09$1@...> )

Im facing complete system freezes when compiling the kernel with
CPUTYPE?=opteron immediately *after* issuing an ifconfig on
the patm0 - interface (trying to set an IP address).

System is 6.2-p4; i386; kernconf nearly untampered (stuff like scsi,
raid an the like => out, and the atm-stuff (NATM) <= in).

Card is an ProSUM ProATM 155; idt77252 Rev. F; Suni/Lite (PMC-5346) PHY

I guess the most of the gory details in my posting ar not of any
interest - but one thing shows up in dmesg:

patm0: <NICStAR (77222/77252) ATM adapter> port 0xe800-0xe8ff mem 0xfcfff000-
0xfcffffff,0xfac00000-0xfaffffff irq 16 at device 8.0 on pci2
patm0: carrier detected
patm0: ProATM 155 interface; idt77252 Rev. F; Suni/Lite (PMC-5346) PHY
patm0: 512K x 32 SRAM; 16384 connections
bus_dmamem_alloc failed to align memory properly.
patm0: [GIANT-LOCKED]

The "bus_dmamem_alloc" is somehow irritating me ...

cu
        Clemens.
_______________________________________________
freebsd-atm@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-atm
To unsubscribe, send any mail to "freebsd-atm-unsubscribe@..."

Re: patm / NATM system freeze with CPUTYPE?=opteron

by Clemens Zauner-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 15 May 2007, Clemens Zauner wrote:

> Im facing complete system freezes when compiling the kernel with
> CPUTYPE?=opteron immediately *after* issuing an ifconfig on
> the patm0 - interface (trying to set an IP address).

Uuups - update:

The version without CPUTYPE?=opteron made just a boo-boo. It seems
that this one is more "stable" but still hangs itself to dead.

I tried to bring traffic on the loop (ping), the replies got
lost:

atest# netstat -I patm0 1
            input        (patm0)           output
   packets  errs      bytes    packets  errs      bytes colls
         1     0         92          0     1         92     0
         1     0         92          0     1         92     0
         1     0         92          0     1         92     0

(the input ist the "ping", the tried (but failed) output should be
the pong). I now deleted the settings (atmconfig natm delete ...)
and tried to re-set the Network configuration:

atest# ifconfig patm0 192.168.254.2/24

=> Boom

Kernel is aboslutely dead, not responding to whatever (keyboard,
acpi-power-down events, ...)

cu
        Clemens.
_______________________________________________
freebsd-atm@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-atm
To unsubscribe, send any mail to "freebsd-atm-unsubscribe@..."

Re: patm / NATM system freeze with CPUTYPE?=opteron

by Harti Brandt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Clemens Zauner wrote:

> (For details, please see the posting in comp.unix.bsd.freebsd.misc
>  Message-ID: <f29tq0$2g09$1@...> )
>
> Im facing complete system freezes when compiling the kernel with
> CPUTYPE?=opteron immediately *after* issuing an ifconfig on
> the patm0 - interface (trying to set an IP address).
>
> System is 6.2-p4; i386; kernconf nearly untampered (stuff like scsi,
> raid an the like => out, and the atm-stuff (NATM) <= in).
>
> Card is an ProSUM ProATM 155; idt77252 Rev. F; Suni/Lite (PMC-5346) PHY
>
> I guess the most of the gory details in my posting ar not of any
> interest - but one thing shows up in dmesg:
>
> patm0: <NICStAR (77222/77252) ATM adapter> port 0xe800-0xe8ff mem 0xfcfff000-
> 0xfcffffff,0xfac00000-0xfaffffff irq 16 at device 8.0 on pci2
> patm0: carrier detected
> patm0: ProATM 155 interface; idt77252 Rev. F; Suni/Lite (PMC-5346) PHY
> patm0: 512K x 32 SRAM; 16384 connections
> bus_dmamem_alloc failed to align memory properly.
> patm0: [GIANT-LOCKED]
>
> The "bus_dmamem_alloc" is somehow irritating me ...

It's already a couple of years ago that I wrote that driver, but the
problem, if I correctly remember, is that bus_dmamem_alloc does not
correctly align memory even if requrested by, I think, the busdma tag.
The patm hardware has certain alignment requirements for the memory
blocks. I found out, that I can enforce alignment to, for example, 2k by
allocating a multiple of 2k. So the code rounds up allocations that have
alignment requirements that are larger than the allocation itself.
Perhaps changes in the busdma code have made this mechanism to fail.

Unfortunately I have no time at the moment to look into this issue ...

harti

_______________________________________________
freebsd-atm@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-atm
To unsubscribe, send any mail to "freebsd-atm-unsubscribe@..."