FreeBSD Bugzilla – Bug 182297
[cm] ArcNet driver fails to detect the link address - and does not work at all
Last modified: 2013-09-23 19:10:00 UTC
> cm0 at port 0x2e0-0x2ef iomem 0xd0000-0xd07ff irq 5 on isa0
> cm0: [ITHREAD]
> cm0: link addr 0xf5 (245)
The problem is, the card's address is not 0xF5.
The detection would take place in dev/cm/smc90cx6.c (cm_attach):
> linkaddress = GETMEM(CMMACOFF); // CMMACOFF is 1
In fact, not only the offset 1, but any offset I read is "0xF5". This
leads me to think there could be some breakage around memory handling.
> #define GETMEM(off) \
> bus_space_read_1(rman_get_bustag((sc)->mem_res), \
> rman_get_bushandle((sc)->mem_res), \
The card otherwise works fine in DOS and Linux (both can read the link
I also tried with another card, same model. It made no difference. Also
tried setting the card to actually have 0xf5 link address, but it still
How-To-Repeat: Try to use it.
Reclassify and assign.
Note to submitter: I haven't heard of any ArcNet cards in a long time.
Unfortunately, you may be the only person who is in a position to debug
and fix this.
Tried older kernels, the last release from the v5.x tree was broken too.
I can provide a test environment. Compensation will be given for the
fix, if that's an incentive.