More bugs in vme

ternaryd ternaryd at gmail.com
Sun Feb 24 15:29:27 UTC 2013


On Sun, 24 Feb 2013 16:59:23 +0300
Dan Carpenter <dan.carpenter at oracle.com> wrote:

> I've added Martyn and Manohar to the CC list again.

> Do you have lockdep enabled?

How do I do that?

>  Sometimes SYSRQ-T will still respond so you can get a trace.

I haven't been able to get the serial console working. This is U-Boot
based, and the last line is: "console [tty0] enabled, bootconsole
disabled". Then I use ssh to log in. But after the freeze, this is no longer possible.

> Or if you sent your reproducer program that would also help.  And
> which kernel are you using?

I've attached two files (some 300 lines). This is for kernel 3.8.0; I've inserted lots of messages all over the place for orientation. In vme_tsi148.c I disabled the window check as mentioned in my previous message. As suggested by Mr Welch, I started my own version of vme_user which for now just has a few more ioctls, giving access to functions which are mentioned in vme_api.txt. The only real change is, that in my version, vme_master_request is not done anymore in probe but based on an ioctl call, having a sister function allowing to remove the resources of that window.

I observed also:

- With my version of vme_user.c, I can perform a write using an ioctl
  call which yields vme_master_write(), or by lseek and write() calls.
  The freeze happens anyway, but with lseek() I say that a given offset
  of 8 will show up as 135168.

- I always thought that the card in slot 1 is the arbiter and, by
  default, the bus master, until some other card is assigned bus
  master. I would like to be sure, but I couldn't find any function I
  could inquire.

- The cards allow to adjust a dip switch to select automatic or manual
  geographic addressing, but in both cases, slot 0 is returned.

Thanks,

-- 
Christoph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ledshow.c
Type: text/x-csrc
Size: 3211 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20130224/7f31ede8/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vme_api.h
Type: text/x-chdr
Size: 2777 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20130224/7f31ede8/attachment.h>


More information about the devel mailing list