]>
mj.ucw.cz Git - pciutils.git/log
Martin Mares [Sat, 13 Dec 2008 12:17:45 +0000 (13:17 +0100)]
Released -alpha4.
Martin Mares [Sat, 13 Dec 2008 12:14:28 +0000 (13:14 +0100)]
A fix of the previous cleanup.
Martin Mares [Sat, 13 Dec 2008 12:11:29 +0000 (13:11 +0100)]
sysfs: Cleaned up caching of file descriptors.
The previous code opened the VPD descriptor even if no VPD access
was requested and it forgot to close it afterwards.
Martin Mares [Sat, 13 Dec 2008 12:00:50 +0000 (13:00 +0100)]
Cleaned up detection of physical slots.
Improved error handling. If the kernel does not support the slots directory at
all, we do not complain. Parse errors are now reported as warnings.
Also, the PCI_FILL_PHYS_SLOT is set for all devices whenever we try to detect
the slots, no matter how successful the detection was.
Martin Mares [Sat, 13 Dec 2008 11:42:46 +0000 (12:42 +0100)]
Slots: use strcpy instead of sprintf.
Martin Mares [Sat, 13 Dec 2008 11:36:25 +0000 (12:36 +0100)]
Updated the ChangeLog.
Martin Mares [Fri, 12 Dec 2008 23:17:56 +0000 (00:17 +0100)]
Released as -alpha3.
Martin Mares [Fri, 12 Dec 2008 23:14:52 +0000 (00:14 +0100)]
Man: Mention that the sysfs backend supports physical slots.
Alex Chiang [Wed, 3 Dec 2008 19:30:21 +0000 (12:30 -0700)]
Display physical slot information in lspci -v
We've been exposing slot information in /sys/bus/pci/slots for a
long time now (as long as a hotplug driver or slot detection
driver like pci_slot is loaded).
Let's make life better for our users and display that information
in lspci. If slot entries appear in /sys/bus/pci/slots/,
correlate them to PCI devices, and display the information when
lspci -v is issued.
If no slot entries appear in sysfs (due to no modules loaded), do
nothing.
Now you'll see sample output like the following:
23:01.1 Class 0c04: Device 10df:fd00 (rev 01)
Subsystem: Device 10df:fd00
Physical Slot: 3
Flags: bus master, 66MHz, medium devsel, latency 248, IRQ 60
...
Signed-off-by: Alex Chiang <achiang@hp.com>
Bjorn Helgaas [Mon, 8 Dec 2008 21:11:19 +0000 (14:11 -0700)]
lspci: fix "suprise" typo
This patch corrects the spelling of "surprise."
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Yu Zhao [Tue, 1 Jan 2002 19:31:58 +0000 (03:31 +0800)]
Fix ATS capability error in lspci
Fix the wrong position of the ATS enable bit.
Signed-off-by: Yu Zhao <yu.zhao@intel.com>
Martin Mares [Sat, 22 Nov 2008 21:20:33 +0000 (22:20 +0100)]
Ignore NUL character at the end of VPD strings.
Broadcom Ethernet controllers have been observed to use NUL-terminated strings.
Martin Mares [Sat, 22 Nov 2008 21:19:19 +0000 (22:19 +0100)]
Accompany VPD items with human-readable names.
Martin Mares [Sat, 22 Nov 2008 19:40:00 +0000 (20:40 +0100)]
Copyright is held by Solarflare, not Ben personally
(Changed at Ben's request.)
Martin Mares [Sat, 22 Nov 2008 19:22:38 +0000 (20:22 +0100)]
Updated Matthew's address.
Martin Mares [Fri, 21 Nov 2008 21:43:49 +0000 (22:43 +0100)]
Decode VPD fully only with -vv or higher.
This brings the behavior in line with the other capabilities.
Martin Mares [Fri, 21 Nov 2008 21:37:38 +0000 (22:37 +0100)]
Released as -alpha2.
Martin Mares [Fri, 21 Nov 2008 21:35:59 +0000 (22:35 +0100)]
Split lspci to multiple source files.
Ben Hutchings [Tue, 18 Nov 2008 20:25:46 +0000 (20:25 +0000)]
In verbose mode, display contents of VPD if possible
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Ben Hutchings [Tue, 18 Nov 2008 20:25:29 +0000 (20:25 +0000)]
Add implementation of read_vpd() method for sysfs
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Ben Hutchings [Tue, 18 Nov 2008 20:25:07 +0000 (20:25 +0000)]
Add PCI 2.2 VPD register definitions
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Ben Hutchings [Tue, 18 Nov 2008 20:24:19 +0000 (20:24 +0000)]
Add pci_read_vpd() function and internal read_vpd() method
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Yu Zhao [Wed, 12 Nov 2008 09:15:11 +0000 (10:15 +0100)]
Added a test case for the ATS capability.
Martin Mares [Tue, 11 Nov 2008 11:09:36 +0000 (12:09 +0100)]
Released as 3.1.0-alpha1.
Martin Mares [Tue, 11 Nov 2008 11:09:20 +0000 (12:09 +0100)]
Updated library ABI with proper versioning.
Martin Mares [Tue, 11 Nov 2008 10:21:42 +0000 (11:21 +0100)]
setpci: Document the new syntax.
The table of known registers is gone. The man page refers to the --dumpregs
option instead.
Martin Mares [Tue, 11 Nov 2008 10:15:40 +0000 (11:15 +0100)]
setpci: Fixed a silly bug in parsing of options.
Martin Mares [Tue, 11 Nov 2008 09:30:36 +0000 (10:30 +0100)]
setpci: Cleaned up reporting of parse errors.
The full usage is no longer printed with each parse error,
only a suggestion to call `setpci --help' for help.
Martin Mares [Tue, 11 Nov 2008 09:22:01 +0000 (10:22 +0100)]
setpci: Decorate trace() with PCI_PRINTF.
Martin Mares [Tue, 11 Nov 2008 09:21:28 +0000 (10:21 +0100)]
setpci: Even better tracing messages.
Martin Mares [Tue, 11 Nov 2008 09:13:32 +0000 (10:13 +0100)]
setpci: Do not request read-write access when in demo mode.
Martin Mares [Tue, 11 Nov 2008 09:12:37 +0000 (10:12 +0100)]
setpci: Better tracing and reporting of runtime errors.
Martin Mares [Tue, 11 Nov 2008 08:53:11 +0000 (09:53 +0100)]
Use PCI_CAP_xxx internally in setpci.
Martin Mares [Tue, 11 Nov 2008 08:52:43 +0000 (09:52 +0100)]
Renumbered PCI_CAP_xxx to start with 1.
Martin Mares [Tue, 11 Nov 2008 00:14:35 +0000 (01:14 +0100)]
Implemented `setpci --dumpregs'.
Martin Mares [Tue, 11 Nov 2008 00:09:49 +0000 (01:09 +0100)]
Exit correctly after `setpci --version'.
Martin Mares [Mon, 10 Nov 2008 23:11:14 +0000 (00:11 +0100)]
Let setpci support capabilities.
Changed syntax of register addresses. They now consist of a base and an offset,
where the base is either a fixed address or a name/ID of a capability.
Needs lots of polish (see TODO).
Martin Mares [Mon, 10 Nov 2008 23:08:49 +0000 (00:08 +0100)]
Moved the new field at the end of struct pci_dev to keep the ABI.
Martin Mares [Mon, 10 Nov 2008 23:03:01 +0000 (00:03 +0100)]
Added library functions for accessing PCI capabilities.
Martin Mares [Mon, 10 Nov 2008 23:01:55 +0000 (00:01 +0100)]
Added xstrdup() to the common utility functions.
Martin Mares [Mon, 10 Nov 2008 17:34:34 +0000 (18:34 +0100)]
More splitting of the argument parser.
Martin Mares [Mon, 10 Nov 2008 17:22:04 +0000 (18:22 +0100)]
Coding style cleanup: `for(...)' wants a space.
Martin Mares [Mon, 10 Nov 2008 17:20:17 +0000 (18:20 +0100)]
Split parsing of options in setpci to multiple functions.
Yu Zhao [Mon, 10 Nov 2008 11:24:55 +0000 (12:24 +0100)]
Added dumping of the Address Translation Services capability.
Martin Mares [Sun, 9 Nov 2008 20:31:35 +0000 (21:31 +0100)]
Let the maintainer script use plain Git instead of Cogito.
Martin Mares [Sun, 9 Nov 2008 20:28:42 +0000 (21:28 +0100)]
Released as 3.0.3.
Martin Mares [Sun, 9 Nov 2008 20:19:47 +0000 (21:19 +0100)]
Updated pci.ids to the current snapshot.
Martin Mares [Sun, 9 Nov 2008 20:16:14 +0000 (21:16 +0100)]
Let `lspci -k' display subsystem names.
Several users have requested a `quick overview' mode that would display
everything needed to identify a device and its drivers. I believe that it
is better to extend the `-k' mode to include subsystems than to introduce
yet another mode.
Martin Mares [Sun, 9 Nov 2008 19:50:58 +0000 (20:50 +0100)]
Fixed building on Cygwin.
It got broken by the introduction of WITH_LIBS.
Thanks to Steve Elliott for reporting that.
Carl-Daniel Hailfinger [Sun, 9 Nov 2008 19:49:09 +0000 (20:49 +0100)]
Decode HT 1.02 in the same way as HT 1.03.
AMD K8 processors claim that they're using HyperTransport 1.02, but the
publicly available documentation (specifically the BKDG) states that the
HT version is 1.03 in reality.
lspci will issue a warning "!!! Possibly incomplete decoding" and only
decode some basic HT properties for HT versions before 1.03.
Move that boundary down to HT version 1.02.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Max Asbock [Sun, 9 Nov 2008 19:47:00 +0000 (20:47 +0100)]
Fix printing of PCIE AER capability.
The cap_aer function in lspci.c which prints PCIE AER capabilities
labels the uncorrected error mask incorrectly as "status" and it
also has some typos. This patch fixes that.
Signed-off-by: Max Asbock <masbock@linux.vnet.ibm.com>
Alon Bar-Lev [Sun, 9 Nov 2008 19:44:21 +0000 (20:44 +0100)]
Better support for cross-compiling.
It is difficult to cross compile pciutils, as the host is not standard 3 or 4 components and one need to pass all tools cross compile prefixes.
The attached patch makes it easier:
1. Add CROSS_COMPILE prefix for all toolchain tools. I also changed default CC
to gcc, I can fix this if you like.
2. Allow parsing standard HOST, such as i686-pc-linux-gnu.
3. Make rel be RELEASE, maybe the whole release thing can be removed as it is
not actually used.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Martin Mares [Sun, 9 Nov 2008 19:40:08 +0000 (20:40 +0100)]
Fix spelling of MSI.
Change the spelling of 'Signalled' to 'Signaled' to match the PCI spec.
Report the capability as 'MSI' instead of either 'Message Signaled
Interrupts' to fit better with MSI-X and bring the width of this line
below 80 columns.
Inspired-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Martin Mares [Mon, 13 Oct 2008 10:52:56 +0000 (12:52 +0200)]
Updated pci.ids to the today's snapshot from the new web interface.
Martin Mares [Fri, 19 Sep 2008 18:09:16 +0000 (20:09 +0200)]
Forgot to bump the version number.
Martin Mares [Fri, 19 Sep 2008 18:06:25 +0000 (20:06 +0200)]
Fixed a minor bug in lib/configure and released as 3.0.2.
Martin Mares [Thu, 11 Sep 2008 20:23:23 +0000 (22:23 +0200)]
Released as v3.0.1.
Martin Mares [Thu, 11 Sep 2008 20:14:33 +0000 (22:14 +0200)]
Updated pci.ids to the most recent snapshot.
Martin Mares [Tue, 26 Aug 2008 15:10:20 +0000 (17:10 +0200)]
Added a Cygwin port.
Patch by Christopher Voltz, ported to the current tree by me.
Martin Mares [Tue, 26 Aug 2008 15:06:23 +0000 (17:06 +0200)]
Call wget with --no-timestamping.
If --timestamping was set in .wgetrc, wget fails, because it is unable to
handle --timestamping and -O simultaneously (for no apparent reason, but
the maintainers have decided that this bug has graduated to a feature,
see https://savannah.gnu.org/bugs/?22896).
Thanks to Ville Skytta for pointing that out.
Martin Mares [Tue, 26 Aug 2008 13:17:17 +0000 (15:17 +0200)]
Use the visibility attributes only when building a shared library.
Omair Eshkenazi has reported that libpci fails to build with gcc 3.x.
We require gcc 4.x for building shared libraries, but it should not
be needed when SHARED=no.
This patch changes internal.h to define PCI_ABI as the visibility
attribute only if we build a shared library.
However, this means that we need to know the configuration settings
before we include pci.h, so I had to include config.h explicitly
from internal.h and create a new symbol PCI_CONFIG_H to check whether
config.h has been already included.
Martin Mares [Tue, 26 Aug 2008 11:54:53 +0000 (13:54 +0200)]
libresolv is not available on BSD systems, but they have resolver in libc.
Suggested by Hasso Tepper.
Martin Mares [Tue, 26 Aug 2008 11:54:26 +0000 (13:54 +0200)]
Use h_errno instead of _res.h_errno.
The latter is apparently not available on BSD.
Suggested by Hasso Tepper.
Martin Mares [Tue, 26 Aug 2008 11:43:06 +0000 (13:43 +0200)]
Fix printing the MSI capability.
Contributed by Matthew Wilcox. His changelog says:
I'd like to present this change for your consideration. I'm not sure
where the original idea comes from that MSI has a 'queue' of interrupts.
It has multiple independent interrupts. Also, rather than just dumping
the raw values from the register, it makes sense to decode them into
the number of interrupts it supports.
Zhao, Yu [Thu, 3 Jul 2008 09:39:49 +0000 (17:39 +0800)]
Single Root I/O Virtualization capability support
Signed-off-by: Yu Zhao <yu.zhao@intel.com>
lib/header.h | 28 ++++++++++++++++++++++++++++
lspci.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 74 insertions(+)
Zhao, Yu [Thu, 3 Jul 2008 09:39:41 +0000 (17:39 +0800)]
Alternative Routing-ID Interpretation capability support
Signed-off-by: Yu Zhao <yu.zhao@intel.com>
lib/header.h | 11 +++++++++++
lspci.c | 22 ++++++++++++++++++++++
2 files changed, 33 insertions(+)
Zhao, Yu [Thu, 3 Jul 2008 09:39:32 +0000 (17:39 +0800)]
Access Control Services capability support
Signed-off-by: Yu Zhao <yu.zhao@intel.com>
lib/header.h | 20 ++++++++++++++++++++
lspci.c | 25 ++++++++++++++++++++++++-
2 files changed, 44 insertions(+), 1 deletion(-)
Zhao, Yu [Thu, 3 Jul 2008 09:39:23 +0000 (17:39 +0800)]
Advanced Error Reporting capability support
Signed-off-by: Yu Zhao <yu.zhao@intel.com>
lib/header.h | 5 ++++-
lspci.c | 47 ++++++++++++++++++++++++++++++++++++++++++++++-
2 files changed, 50 insertions(+), 2 deletions(-)
Zhao, Yu [Thu, 3 Jul 2008 09:39:16 +0000 (17:39 +0800)]
PCI Express Device, Link and Slot 2 capabilities support
Signed-off-by: Yu Zhao <yu.zhao@intel.com>
lib/header.h | 22 +++++++
lspci.c | 166 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
2 files changed, 186 insertions(+), 2 deletions(-)
Martin Mares [Tue, 26 Aug 2008 11:34:57 +0000 (13:34 +0200)]
Added test cases for new PCIE capabilities.
Contributed by Zhao Yu.
Martin Mares [Tue, 26 Aug 2008 11:24:35 +0000 (13:24 +0200)]
Let filters accept vendor and device 0xffff.
Thanks to Sebastian Herbszt for a bug report.
Martin Mares [Tue, 26 Aug 2008 11:20:39 +0000 (13:20 +0200)]
We have a new linux-pci mailing list.
Martin Mares [Tue, 26 Aug 2008 11:19:04 +0000 (13:19 +0200)]
By mistake, we were setting PCI_USE_DNS on Linux automatically.
Well spotted by Matthias Weidle.
Martin Mares [Thu, 10 Apr 2008 19:23:19 +0000 (21:23 +0200)]
Updated API and ABI version and released as 3.0.0.
Martin Mares [Wed, 20 Feb 2008 11:18:19 +0000 (12:18 +0100)]
Merge with git+ssh://git.ucw.cz/home/mj/GIT/pciutils.git#network
Martin Mares [Wed, 20 Feb 2008 11:18:10 +0000 (12:18 +0100)]
Do not choke on file names containing spaces.
Martin Mares [Wed, 20 Feb 2008 10:53:00 +0000 (11:53 +0100)]
ID domain names now end with `.pci'.
Martin Mares [Wed, 20 Feb 2008 10:48:49 +0000 (11:48 +0100)]
Released as 2.99.1-alpha2.
Martin Mares [Wed, 20 Feb 2008 10:48:36 +0000 (11:48 +0100)]
Changed the default domain for the DNS resolver.
Martin Mares [Mon, 18 Feb 2008 20:39:39 +0000 (21:39 +0100)]
Released as 2.99.1-alpha1.
Martin Mares [Mon, 18 Feb 2008 20:31:41 +0000 (21:31 +0100)]
Added symbol versioning to the shared library.
Martin Mares [Mon, 18 Feb 2008 16:38:28 +0000 (17:38 +0100)]
When installing the shared library, create the appropriate symlinks as well.
Martin Mares [Mon, 18 Feb 2008 16:38:07 +0000 (17:38 +0100)]
Use `libpci.so.X.Y.Z' instead of `libpci-X.Y.Z.so'.
Martin Mares [Sun, 17 Feb 2008 22:50:13 +0000 (23:50 +0100)]
Changelogged the build system changes.
Martin Mares [Sun, 17 Feb 2008 22:44:36 +0000 (23:44 +0100)]
Control symbol exports in libpci.
When building the shared library, default visibility of symbols has been
changed to hidden and public functions have been marked with PCI_ABI
which makes the symbol visible.
Martin Mares [Sun, 17 Feb 2008 22:42:35 +0000 (23:42 +0100)]
Added example to .gitignore.
Martin Mares [Sun, 17 Feb 2008 22:31:53 +0000 (23:31 +0100)]
Example: Add lookup of names.
Martin Mares [Sun, 17 Feb 2008 22:28:52 +0000 (23:28 +0100)]
Example: Print device address including domain.
Martin Mares [Sun, 17 Feb 2008 22:28:02 +0000 (23:28 +0100)]
Example: always print the base addresses as longs.
Martin Mares [Sun, 17 Feb 2008 22:27:16 +0000 (23:27 +0100)]
Moved the example program from lib/example.c to example.c.
Also, include it in the default targets, so that we always check
that it builds correctly.
Martin Mares [Sun, 17 Feb 2008 22:23:38 +0000 (23:23 +0100)]
Including config.mk twice is not necessary.
(We do not expect lib/Makefile to be invoked separately anyway, so we can
rely on the top-level Makefile exporting all configuration settings.)
Martin Mares [Sun, 17 Feb 2008 22:21:23 +0000 (23:21 +0100)]
Added infrastructure for building libpci as a shared library.
Use `make SHARED=yes' or `make SHARED=local' to enable this feature.
Restriction of symbol exports and symbol versioning will come soon.
Martin Mares [Sun, 17 Feb 2008 11:38:12 +0000 (12:38 +0100)]
Cleanup of the Makefile system.
Parameters of the configure script are passed from the top-level Makefile
in environment variables. DNS support has been made a regular build option
with an attempt at its auto-detection.
Martin Mares [Sun, 17 Feb 2008 10:50:32 +0000 (11:50 +0100)]
Enable the i386-ports method on Linux/x86_64 as well.
Martin Mares [Sun, 17 Feb 2008 08:51:12 +0000 (09:51 +0100)]
Added ChangeLog for the all changes on the network branch.
Martin Mares [Wed, 13 Feb 2008 19:26:14 +0000 (20:26 +0100)]
Unify usage of u8 vs. byte.
Martin Mares [Wed, 13 Feb 2008 19:20:11 +0000 (20:20 +0100)]
The automatic test for zlib searches in /usr/local/include, too.
Martin Mares [Wed, 13 Feb 2008 19:14:39 +0000 (20:14 +0100)]
Use <stdint.h> for precise integer types if the compiler claims C99 support.
Martin Mares [Wed, 13 Feb 2008 18:57:08 +0000 (19:57 +0100)]
Do not forget pcilib.7 in `make uninstall'.
Martin Mares [Wed, 13 Feb 2008 18:56:11 +0000 (19:56 +0100)]
Added man pages to .gitignore.