[openib-general] FW: Mstflint - not working on ppc64 andwhendriver is not loaded on AMD
Michael S. Tsirkin
mst at mellanox.co.il
Thu Sep 28 05:12:00 PDT 2006
Quoting r. Moshe Kazir <moshek at voltaire.com>:
> Subject: RE: FW: Mstflint - not working on ppc64 andwhendriver is not loaded on AMD
>
>
> See attached files.
OK, so we can open the file, but can't mmap it.
Let's see if we can read it.
Pls compile the following test and run with strace:
>strace -f -x -v -o log a.out
>cat log
#define _XOPEN_SOURCE 500
#define _FILE_OFFSET_BITS 64
#include <stdio.h>
#include <unistd.h>
#include <netinet/in.h>
#include <endian.h>
#include <byteswap.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
int main()
{
int fd, rc;
unsigned value;
fd = open("/sys/class/infiniband/mthca0/device/resource0" ,O_RDWR | O_SYNC);
rc = pread(fd, &value, 4, 0xf0014);
printf("0x%x\n", value);
return 0;
}
--
MST
More information about the general
mailing list