On 05/20/2010 11:48 AM, Olaf Hering wrote: > On Thu, May 20, Wolfgang Grandegger wrote: > >> On 05/20/2010 11:07 AM, Olaf Hering wrote: >>> Hello, >>> >>> when at91_can is compiled as a module, the BUG below occours in dmesg >>> with 2.6.33.4-rt20. >>> I think this does not happen when its compiled into the kernel. >>> >>> Any ideas how to fix it? >> >> It seems that you are using the old deprecated SysFS interface. Any >> chance switching to the netlink interface? > > I just loaded the driver with modprobe. > The sysfs lines are most likely come from netdev support, when > /sys/class/net/canN is created. > > These are the used commands: > > modprobe -v at91_can > ip link set can0 up type can bitrate 1000000 > ip link set can0 down > ip link set can0 up txqueuelen 1000 type can bitrate 1000000 > dmesg > > Even ip link set up generates a BUG:
Yes, it seems to happen when rtnl_lock is held. It's not obvious to me that it's the drivers fault. Looks more like an issue with -rt or kernel debugging. Wolfgang. _______________________________________________ Socketcan-core mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-core
