Quoting r. Moshe Kazir <[EMAIL PROTECTED]>:
> 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
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general