]> git.openfabrics.org - ~adrianc/mstflint.git/log
~adrianc/mstflint.git
16 years agoAdded mcra tool to autoconf and spec file.
Oren Kladnitsky [Tue, 18 Dec 2007 15:39:52 +0000 (17:39 +0200)]
Added mcra tool to autoconf and spec file.

And fixed prev commit mstregdump sources.

16 years agoConvert project to autoconf tools.
Ira K. Weiny [Mon, 10 Dec 2007 21:30:22 +0000 (13:30 -0800)]
Convert project to autoconf tools.

Signed-off-by: Ira K. Weiny <weiny2@llnl.gov>
16 years agoAdd mcra and update flint and mflash lib
Oren Kladnitsky [Tue, 13 Nov 2007 13:21:15 +0000 (15:21 +0200)]
Add mcra and update flint and mflash lib

    Flint:
     - Fix Exp-Rom inspection on PPC
 - Better messaging in case of blanck GUIDs / MACs

16 years agoAdd mcra and update flint and mflash lib
Oren Kladnitsky [Tue, 13 Nov 2007 13:03:15 +0000 (15:03 +0200)]
Add mcra and update flint and mflash lib

Flint:
 - Fix Exp-Rom inspection on PPC
 - Better messaging in case of blanck GUIDs / MACs

16 years agoFix segfault on malformed VPD
Michael S. Tsirkin [Wed, 1 Aug 2007 11:33:35 +0000 (14:33 +0300)]
Fix segfault on malformed VPD

verify that offset < 64K
check that End tag exists

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
16 years agoAdd ConnectX support to mstvpd
Michael S. Tsirkin [Sun, 29 Jul 2007 13:29:06 +0000 (16:29 +0300)]
Add ConnectX support to mstvpd

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agoSupport mlx4_XX device names
Michael S. Tsirkin [Sun, 1 Jul 2007 10:36:35 +0000 (13:36 +0300)]
Support mlx4_XX device names

This fixes connectx support.

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agoFix error checking: store returned value in a signed integer,
Michael S. Tsirkin [Sun, 1 Jul 2007 10:35:27 +0000 (13:35 +0300)]
Fix error checking: store returned value in a signed integer,
so that < 0/<= 0 checks work correctly.

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agoTweak README
Michael S. Tsirkin [Tue, 29 May 2007 10:02:51 +0000 (13:02 +0300)]
Tweak README

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agoMerge branch 'ofed_1_2'
Michael S. Tsirkin [Tue, 29 May 2007 10:02:04 +0000 (13:02 +0300)]
Merge branch 'ofed_1_2'

Conflicts:

Makefile

17 years agoDocument utilities new to OFED 1.2.
Michael S. Tsirkin [Tue, 29 May 2007 09:57:16 +0000 (12:57 +0300)]
Document utilities new to OFED 1.2.

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agoSuppress exceptions for flint (speed up and reduce executable size).
Michael S. Tsirkin [Tue, 29 May 2007 09:55:46 +0000 (12:55 +0300)]
Suppress exceptions for flint (speed up and reduce executable size).

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agoCosmetics: mread returns data in CPU endian-ness,
Michael S. Tsirkin [Thu, 17 May 2007 14:32:28 +0000 (17:32 +0300)]
Cosmetics: mread returns data in CPU endian-ness,
so we must use __cpu_to_be32 and not __be32_to_cpu on it.

17 years agoFix endianness bug in SPI code.
Michael S. Tsirkin [Thu, 17 May 2007 10:05:02 +0000 (13:05 +0300)]
Fix endianness bug in SPI code.

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agoFix typo
Michael S. Tsirkin [Wed, 16 May 2007 12:47:38 +0000 (15:47 +0300)]
Fix typo

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agoConnectX A0 support in mtcr.h
Michael S. Tsirkin [Wed, 16 May 2007 12:45:40 +0000 (15:45 +0300)]
ConnectX A0 support in mtcr.h

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agoUpdated flint source from Oren - includes ConnectX support.
Michael S. Tsirkin [Wed, 16 May 2007 12:16:37 +0000 (15:16 +0300)]
Updated flint source from Oren - includes ConnectX support.

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agotypo fix - line ends with '\0', not '0'
Michael S. Tsirkin [Wed, 18 Apr 2007 11:23:34 +0000 (14:23 +0300)]
typo fix - line ends with '\0', not '0'

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agowhitespace fix
Michael S. Tsirkin [Wed, 18 Apr 2007 00:07:19 +0000 (03:07 +0300)]
whitespace fix

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agoreadlink does not null-terminate its output.
Michael S. Tsirkin [Wed, 18 Apr 2007 00:03:51 +0000 (03:03 +0300)]
readlink does not null-terminate its output.
So we must do it ourselves.

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agowhitespace fix
Michael S. Tsirkin [Tue, 17 Apr 2007 23:19:51 +0000 (02:19 +0300)]
whitespace fix

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agoFix sysfs resource file parsing.
Michael S. Tsirkin [Tue, 17 Apr 2007 23:08:48 +0000 (02:08 +0300)]
Fix sysfs resource file parsing.

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agoFix /proc/bus/pci access: filenames were all wrong
Michael S. Tsirkin [Tue, 17 Apr 2007 22:55:05 +0000 (01:55 +0300)]
Fix /proc/bus/pci access: filenames were all wrong

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agoForce depends on name format, don't check whether the file exists.
Michael S. Tsirkin [Tue, 17 Apr 2007 12:33:18 +0000 (15:33 +0300)]
Force depends on name format, don't check whether the file exists.

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agoFix up Sinai device signature.
Michael S. Tsirkin [Tue, 17 Apr 2007 09:15:55 +0000 (12:15 +0300)]
Fix up Sinai device signature.

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agoSet errno after fclose, to avoid over-writing it
Michael S. Tsirkin [Tue, 17 Apr 2007 07:44:36 +0000 (10:44 +0300)]
Set errno after fclose, to avoid over-writing it

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agoFix segfault in case first open succeeds but second open fails.
Michael S. Tsirkin [Tue, 17 Apr 2007 07:34:08 +0000 (10:34 +0300)]
Fix segfault in case first open succeeds but second open fails.

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agoFix some memory leaks on error.
Michael S. Tsirkin [Tue, 17 Apr 2007 06:42:23 +0000 (09:42 +0300)]
Fix some memory leaks on error.
Fix /proc/bus/pci/XX/XX.X, so that it uses config cycles
as it used to, rather than memory access.

17 years agoFix bug 484: mmap to /proc and /sysfs seems to be broken on ppc64,
Michael S. Tsirkin [Mon, 16 Apr 2007 11:38:15 +0000 (14:38 +0300)]
Fix bug 484: mmap to /proc and /sysfs seems to be broken on ppc64,
so fall back on /dev/mem

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agofix mstflint -d mthcaX on systems without mmap support
Michael S. Tsirkin [Thu, 22 Mar 2007 15:22:34 +0000 (17:22 +0200)]
fix mstflint -d mthcaX on systems without mmap support

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
17 years agoFixed warnings that were reported by sparse.
Michael S. Tsirkin [Sun, 11 Mar 2007 08:08:40 +0000 (10:08 +0200)]
Fixed warnings that were reported by sparse.

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
17 years agoAdd mstvpd to clean target
Michael S. Tsirkin [Mon, 22 Jan 2007 23:06:57 +0000 (01:06 +0200)]
Add mstvpd to clean target

17 years agoAdd mstvpd to default target.
Michael S. Tsirkin [Mon, 22 Jan 2007 19:12:33 +0000 (21:12 +0200)]
Add mstvpd to default target.
Make build -Wall clean.

17 years agoAdd VPD dumping tool.
Michael S. Tsirkin [Mon, 22 Jan 2007 16:26:21 +0000 (18:26 +0200)]
Add VPD dumping tool.
Update copyrights in headers.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
17 years agoKill a debug message Oren forgot in code.
Michael S. Tsirkin [Sun, 7 Jan 2007 14:08:28 +0000 (16:08 +0200)]
Kill a debug message Oren forgot in code.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
17 years agoUpdated to SVN rev 3200:
Michael S. Tsirkin [Sun, 7 Jan 2007 14:05:47 +0000 (16:05 +0200)]
Updated to SVN rev 3200:
Fixed vsd/psid queries on PPC
Display Expansion rom version and product version in query
Added expansion rom checksum verification
Added expansion rom version to query
Fixed a bug in CFI query - seg fault when CFI data on flash is corrupted

17 years agomread/mwrite -> mst*
Michael S. Tsirkin [Thu, 4 Jan 2007 12:30:12 +0000 (14:30 +0200)]
mread/mwrite -> mst*

17 years agorename utility mstdump -> mstregdump
Michael S. Tsirkin [Thu, 4 Jan 2007 12:27:36 +0000 (14:27 +0200)]
rename utility mstdump -> mstregdump

17 years agoAdd mstdump tool, make it compile with mtcr.h
Michael S. Tsirkin [Thu, 28 Dec 2006 15:13:42 +0000 (17:13 +0200)]
Add mstdump tool, make it compile with mtcr.h

17 years agodump tool: import CVS version 1.6
Michael S. Tsirkin [Thu, 28 Dec 2006 15:12:42 +0000 (17:12 +0200)]
dump tool: import CVS version 1.6

17 years agomacro MTCR_EXPORT so people can use mtcr.h from multiple files.
Michael S. Tsirkin [Tue, 19 Dec 2006 13:58:41 +0000 (15:58 +0200)]
macro MTCR_EXPORT so people can use mtcr.h from multiple files.

17 years agoActual format for device softlink looks like this: /sys/class/infiniband/mthca0/device ->
Michael S. Tsirkin [Thu, 14 Dec 2006 11:58:34 +0000 (13:58 +0200)]
Actual format for device softlink looks like this: /sys/class/infiniband/mthca0/device ->
../../../devices/pci0000:00/0000:00:04.0/0000:03:00.2/0000:05:01.0/0000:06:00.0
directory hierarchy mirros the bus hierarchy.
So we should only parse the basename when looking for the device location.

17 years agoDo *not* suggest -nofs on algorithm error.
Michael S. Tsirkin [Wed, 13 Dec 2006 10:27:42 +0000 (12:27 +0200)]
Do *not* suggest -nofs on algorithm error.

17 years agoUpdate README with more detail about reset after burn.
Michael S. Tsirkin [Tue, 12 Dec 2006 10:38:51 +0000 (12:38 +0200)]
Update README with more detail about reset after burn.

17 years agoUpdate README with recommendation to use mthcaX.
Michael S. Tsirkin [Tue, 12 Dec 2006 10:35:44 +0000 (12:35 +0200)]
Update README with recommendation to use mthcaX.

17 years agoUse mthcaX in examples.
Michael S. Tsirkin [Tue, 12 Dec 2006 10:11:08 +0000 (12:11 +0200)]
Use mthcaX in examples.

17 years agomthcaX support
Michael S. Tsirkin [Tue, 12 Dec 2006 09:34:04 +0000 (11:34 +0200)]
mthcaX support

17 years agoApply the following patch included in OFED 1.1:
Michael S. Tsirkin [Tue, 12 Dec 2006 09:04:41 +0000 (11:04 +0200)]
Apply the following patch included in OFED 1.1:

mmap() does not work on ppc64 at least up to 2.6.18.
The 64-bit machines with 32-bit I/O need
ioremap in device driver to allow mmap access to the I/O memory.
This patch checks the above situations and tries to use PCI config to do the
firmware update when mmap() failed.

Signed-off-by: Tseng-Hui (Frank) Lin <thlin@us.ibm.com>
17 years agor8832: clean up some messages
Michael S. Tsirkin [Sun, 6 Aug 2006 08:00:12 +0000 (08:00 +0000)]
r8832: clean up some messages

18 years agor7940: Add support for multi-domain systems.
Michael S. Tsirkin [Tue, 13 Jun 2006 07:38:29 +0000 (07:38 +0000)]
r7940: Add support for multi-domain systems.

18 years agor7179: Pass flags to CXX when calculating the library path.
Michael S. Tsirkin [Mon, 15 May 2006 12:20:47 +0000 (12:20 +0000)]
r7179: Pass flags to CXX when calculating the library path.

18 years agor5988: BugFix: Replace user guids were ignored when not on tty.
Michael S. Tsirkin [Thu, 23 Mar 2006 16:08:01 +0000 (16:08 +0000)]
r5988: BugFix: Replace user guids were ignored when not on tty.
Clean up english in messages.

18 years agor5792: fix more warnings
Michael S. Tsirkin [Mon, 13 Mar 2006 18:33:27 +0000 (18:33 +0000)]
r5792: fix more warnings
fix english

18 years agor5788: fix compialtion warnings
Michael S. Tsirkin [Mon, 13 Mar 2006 17:55:54 +0000 (17:55 +0000)]
r5788: fix compialtion warnings

18 years agor5787: updated to flint 2768
Michael S. Tsirkin [Mon, 13 Mar 2006 17:54:34 +0000 (17:54 +0000)]
r5787: updated to flint 2768

18 years agor5157: Fix gcc warning.
Michael S. Tsirkin [Mon, 23 Jan 2006 15:26:51 +0000 (15:26 +0000)]
r5157: Fix gcc warning.

18 years agor5156: update to MFT1.0.1 (IBG2.0.1)
Michael S. Tsirkin [Mon, 23 Jan 2006 15:26:21 +0000 (15:26 +0000)]
r5156: update to MFT1.0.1 (IBG2.0.1)

18 years agor5155: add .o to clean
Michael S. Tsirkin [Mon, 23 Jan 2006 15:25:51 +0000 (15:25 +0000)]
r5155: add .o to clean

18 years agor3714: Make flint actually support unknown sector types, for forward compatibility.
Michael S. Tsirkin [Tue, 11 Oct 2005 08:00:05 +0000 (08:00 +0000)]
r3714: Make flint actually support unknown sector types, for forward compatibility.

18 years agor3331: revert previous change
Michael S. Tsirkin [Wed, 7 Sep 2005 14:48:35 +0000 (14:48 +0000)]
r3331: revert previous change

18 years agor3330: change invariant sector from error to warning
Michael S. Tsirkin [Wed, 7 Sep 2005 14:46:27 +0000 (14:46 +0000)]
r3330: change invariant sector from error to warning

18 years agor3322: Update to flint in ib gold 1.8.0
Michael S. Tsirkin [Tue, 6 Sep 2005 13:55:11 +0000 (13:55 +0000)]
r3322: Update to flint in ib gold 1.8.0

18 years agor3083: by default, link libstdc++ statically
Michael S. Tsirkin [Sun, 14 Aug 2005 16:33:22 +0000 (16:33 +0000)]
r3083: by default, link libstdc++ statically

19 years agor2871: Add device in format /sys/class/infiniband/mthcaxxx/device/resource0
Michael S. Tsirkin [Tue, 19 Jul 2005 15:28:48 +0000 (15:28 +0000)]
r2871: Add device in format /sys/class/infiniband/mthcaxxx/device/resource0

19 years agor2778: NULL -> 0: fix compilation with gcc 3.4
Michael S. Tsirkin [Sun, 3 Jul 2005 07:06:45 +0000 (07:06 +0000)]
r2778: NULL -> 0: fix compilation with gcc 3.4

19 years agor2510: support domain > 0 by mmap /sys/bus/pci/devices/XXXX/resource0
Michael S. Tsirkin [Mon, 30 May 2005 13:40:24 +0000 (13:40 +0000)]
r2510: support domain > 0 by mmap /sys/bus/pci/devices/XXXX/resource0
default for now stays in /proc

19 years agor2083: Fix segfault in flash recovery.
Michael S. Tsirkin [Wed, 30 Mar 2005 12:58:00 +0000 (12:58 +0000)]
r2083: Fix segfault in flash recovery.

19 years agor1990: last minute fixes from gold 1.7.0
Michael S. Tsirkin [Tue, 15 Mar 2005 16:19:24 +0000 (16:19 +0000)]
r1990: last minute fixes from gold 1.7.0

19 years agor1957: some last minute fixes
Michael S. Tsirkin [Mon, 7 Mar 2005 15:35:12 +0000 (15:35 +0000)]
r1957: some last minute fixes

19 years agor1954: support more flash types
Michael S. Tsirkin [Sun, 6 Mar 2005 16:03:35 +0000 (16:03 +0000)]
r1954: support more flash types

19 years agor1578: disable /dev/mem by default
Michael S. Tsirkin [Wed, 19 Jan 2005 09:17:16 +0000 (09:17 +0000)]
r1578: disable /dev/mem by default

19 years agor1577: Support systems that have domain name under /proc/bus/pci/devices.
Michael S. Tsirkin [Wed, 19 Jan 2005 09:11:10 +0000 (09:11 +0000)]
r1577: Support systems that have domain name under /proc/bus/pci/devices.

19 years agor1576: remove unused macros
Michael S. Tsirkin [Wed, 19 Jan 2005 09:02:58 +0000 (09:02 +0000)]
r1576: remove unused macros

19 years agor1575: psid/vsd endian-ness fixed.
Michael S. Tsirkin [Wed, 19 Jan 2005 09:01:49 +0000 (09:01 +0000)]
r1575: psid/vsd endian-ness fixed.

19 years agor1563: fix endian-ness. but how did it work on sparc earlier?
Michael S. Tsirkin [Tue, 18 Jan 2005 19:27:02 +0000 (19:27 +0000)]
r1563: fix endian-ness. but how did it work on sparc earlier?

19 years agor1538: Add mread/mwrite utilities
Michael S. Tsirkin [Sun, 16 Jan 2005 10:50:06 +0000 (10:50 +0000)]
r1538: Add mread/mwrite utilities

19 years agor1530: compilation fixes.
Michael S. Tsirkin [Fri, 14 Jan 2005 14:44:13 +0000 (14:44 +0000)]
r1530: compilation fixes.

19 years agor1529: 1. revert: remove pread/pwrite support
Michael S. Tsirkin [Fri, 14 Jan 2005 14:39:14 +0000 (14:39 +0000)]
r1529: 1. revert: remove pread/pwrite support
2. mmap support for /prov/bus/pci.

19 years agor1526:
Michael S. Tsirkin [Thu, 13 Jan 2005 18:55:21 +0000 (18:55 +0000)]
r1526:
fix checks

19 years agor1525: Add pread/pwrite support on /dev/mem
Michael S. Tsirkin [Thu, 13 Jan 2005 18:47:49 +0000 (18:47 +0000)]
r1525: Add pread/pwrite support on /dev/mem

19 years agor1519: cleanup
Michael S. Tsirkin [Wed, 12 Jan 2005 10:06:44 +0000 (10:06 +0000)]
r1519: cleanup

19 years agor1518: endian-ness cleanup
Michael S. Tsirkin [Wed, 12 Jan 2005 10:01:31 +0000 (10:01 +0000)]
r1518: endian-ness cleanup

19 years agor1517: fix default parameters
Michael S. Tsirkin [Wed, 12 Jan 2005 09:56:45 +0000 (09:56 +0000)]
r1517: fix default parameters

19 years agor1516: a bit of documentation
Michael S. Tsirkin [Wed, 12 Jan 2005 08:36:19 +0000 (08:36 +0000)]
r1516: a bit of documentation

19 years agor1515: Add options for compilation: optimizations, debug, etc.
Michael S. Tsirkin [Wed, 12 Jan 2005 08:35:05 +0000 (08:35 +0000)]
r1515: Add options for compilation: optimizations, debug, etc.

19 years agor1506: 1. Use a 64 bit file interface.
Michael S. Tsirkin [Tue, 11 Jan 2005 10:29:38 +0000 (10:29 +0000)]
r1506: 1. Use a 64 bit file interface.
2. define XOPEN_SOURCE and not UNIX98 directly.
3. include alloca.h in flint.cpp since we use it.

19 years agor1498: Add long long bar/size support (set by default).
Michael S. Tsirkin [Sat, 8 Jan 2005 21:32:02 +0000 (21:32 +0000)]
r1498: Add long long bar/size support (set by default).
TODO: cleanup.

19 years agor1485: fix typo
Michael S. Tsirkin [Thu, 6 Jan 2005 10:34:01 +0000 (10:34 +0000)]
r1485: fix typo

19 years agor1484: Support names of the form 0000:00:00.0
Michael S. Tsirkin [Thu, 6 Jan 2005 10:31:41 +0000 (10:31 +0000)]
r1484: Support names of the form 0000:00:00.0

19 years agor1483: 1. fix endian-ness for configuration cycles data
Michael S. Tsirkin [Thu, 6 Jan 2005 10:15:49 +0000 (10:15 +0000)]
r1483: 1. fix endian-ness for configuration cycles data
2. more sanity checks for mmap result

19 years agor1479: Add more debug prints.
Michael S. Tsirkin [Wed, 5 Jan 2005 18:01:44 +0000 (18:01 +0000)]
r1479: Add more debug prints.

19 years agor1474: ignore mstflint binary on checkins
Michael S. Tsirkin [Wed, 5 Jan 2005 10:26:01 +0000 (10:26 +0000)]
r1474: ignore mstflint binary on checkins

19 years agor1473: Add -Wall and fix warnings.
Michael S. Tsirkin [Wed, 5 Jan 2005 10:15:18 +0000 (10:15 +0000)]
r1473: Add -Wall and fix warnings.
Detailed diagnostics.

19 years agor1472: Portability updates. Add -g for compiler.
Michael S. Tsirkin [Wed, 5 Jan 2005 10:04:50 +0000 (10:04 +0000)]
r1472: Portability updates. Add -g for compiler.

19 years agor1471: Add GPL/BSD license + copyright all over.
Michael S. Tsirkin [Wed, 5 Jan 2005 10:01:29 +0000 (10:01 +0000)]
r1471: Add GPL/BSD license + copyright all over.
Add more examples to the README.

19 years agor1470: Move mstflint from mellanox/contrib.
Michael S. Tsirkin [Wed, 5 Jan 2005 09:40:21 +0000 (09:40 +0000)]
r1470: Move mstflint from mellanox/contrib.