Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
debugpci: Add tool for diagnosing common PCIe errors
This tool captures and dumps common PCIe link errors for
PCIe devices on the bus which use the Synopsys DesignWare
controllers.
The DW controllers provide software mechanisms to detect
PCIe link errors. Capturing and dumping this debug information
in a systematic method helps reduce effort in debugging common
PCIe issues. It also provides debug suggestions for the
different errors wherever possible

Signed-off-by: Rishabh Dash <rishabh.dash3601@gmail.com>
Signed-off-by: Shradha Todi <shradha.t@samsung.com>
  • Loading branch information
shradhat committed Jan 3, 2023
commit 3a45d0aabf9c2c6252324cb95f2f180aafd1352e
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ PCIINC_INS=lib/config.h lib/header.h lib/pci.h lib/types.h

export

all: lib/$(PCIIMPLIB) lspci$(EXEEXT) setpci$(EXEEXT) example$(EXEEXT) lspci.8 setpci.8 pcilib.7 pci.ids.5 update-pciids update-pciids.8 $(PCI_IDS)
all: lib/$(PCIIMPLIB) lspci$(EXEEXT) setpci$(EXEEXT) example$(EXEEXT) dwc_debugpci$(EXEEXT) lspci.8 setpci.8 dwc_debugpci.8 pcilib.7 pci.ids.5 update-pciids update-pciids.8 $(PCI_IDS)

lib/$(PCIIMPLIB): $(PCIINC) force
$(MAKE) -C lib all
Expand Down Expand Up @@ -109,6 +109,9 @@ update-pciids: update-pciids.sh
example$(EXEEXT): example.o lib/$(PCIIMPLIB)
example.o: example.c $(PCIINC)

dwc_debugpci$(EXEEXT): dwc_debugpci.o lib/$(PCILIB)
dwc_debugpci.o: dwc_debugpci.c $(PCIINC)

%$(EXEEXT): %.o
$(CC) $(LDFLAGS) $(TARGET_ARCH) $^ $(LDLIBS) -o $@

Expand Down Expand Up @@ -156,7 +159,7 @@ ifneq ($(IDSDIR),)
else
$(INSTALL) -c -m 644 $(PCI_IDS) $(DESTDIR)$(SBINDIR)
endif
$(INSTALL) -c -m 644 lspci.8 setpci.8 update-pciids.8 $(DESTDIR)$(MANDIR)/man8
$(INSTALL) -c -m 644 lspci.8 setpci.8 update-pciids.8 dwc_debugpci.8 $(DESTDIR)$(MANDIR)/man8
$(INSTALL) -c -m 644 pcilib.7 $(DESTDIR)$(MANDIR)/man7
$(INSTALL) -c -m 644 pci.ids.5 $(DESTDIR)$(MANDIR)/man5
ifeq ($(SHARED),yes)
Expand Down Expand Up @@ -208,7 +211,7 @@ ifneq ($(IDSDIR),)
else
rm -f $(DESTDIR)$(SBINDIR)/$(PCI_IDS)
endif
rm -f $(DESTDIR)$(MANDIR)/man8/lspci.8 $(DESTDIR)$(MANDIR)/man8/setpci.8 $(DESTDIR)$(MANDIR)/man8/update-pciids.8
rm -f $(DESTDIR)$(MANDIR)/man8/lspci.8 $(DESTDIR)$(MANDIR)/man8/setpci.8 $(DESTDIR)$(MANDIR)/man8/update-pciids.8 $(DESTDIR)$(MANDIR)/man8/dwc_debugpci.8
rm -f $(DESTDIR)$(MANDIR)/man7/pcilib.7
rm -f $(DESTDIR)$(MANDIR)/man5/pci.ids.5
ifeq ($(SHARED)_$(LIBEXT),yes_dll)
Expand Down
Loading