History log of /rk3399_rockchip-uboot/cmd/pci.c (Results 1 – 22 of 22)
Revision Date Author Comments
# 10dd02ab 08-Jan-2025 Shawn Lin <shawn.lin@rock-chips.com>

PCI: add FLR support

Functional Level Reset is used for device drivers to reset their
internal functions if recovery is needed.

=> pci flr 01.00.0
FLR completed and state restored for device 01:00.

PCI: add FLR support

Functional Level Reset is used for device drivers to reset their
internal functions if recovery is needed.

=> pci flr 01.00.0
FLR completed and state restored for device 01:00.0

Change-Id: Ifc6eb8e6f980d1b450e14b28fb8248e45f586316
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>

show more ...


# e8697d50 07-Jan-2025 Shawn Lin <shawn.lin@rock-chips.com>

PCI: add retrain support

=> pci x 01.00.0
Retrain triggered for device 0001:0000
Link Status for device 0001:0000: 0x1022
Speed: Gen3
Width: x2
Link Up: Yes

Change-Id: Ic9d74e1d118cd18b76b435b046ab

PCI: add retrain support

=> pci x 01.00.0
Retrain triggered for device 0001:0000
Link Status for device 0001:0000: 0x1022
Speed: Gen3
Width: x2
Link Up: Yes

Change-Id: Ic9d74e1d118cd18b76b435b046ab2dc293daa14e
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>

show more ...


# 21c9fbd8 07-Jan-2025 Shawn Lin <shawn.lin@rock-chips.com>

PCI: add AER dump support

=> pci e
unable to get syscon device for rockchip,pipe-grf
snps pcie3phy FW update! size 8192
pcie@fe280000: PCIe Linking... LTSSM is 0x0
pcie@fe280000: PCIe Link up, LTSSM

PCI: add AER dump support

=> pci e
unable to get syscon device for rockchip,pipe-grf
snps pcie3phy FW update! size 8192
pcie@fe280000: PCIe Linking... LTSSM is 0x0
pcie@fe280000: PCIe Link up, LTSSM is 0x30011
pcie@fe280000: PCIE-0: Link up (Gen1-x2, Bus0)
=> nvme scan
=> pci aer 01.00.0
AER Capability found at offset 0x40
UESta: DLP-- SDES-- TLP-- FCP-- CmpltTO-- CmpltAbrt-- UnxCmplt-- RxOF-- MalfTLP-- ECRC-- UnsupReq-- ACSViol--
UEMsk: DLP-- SDES-- TLP-- FCP-- CmpltTO-- CmpltAbrt-- UnxCmplt-- RxOF-- MalfTLP-- ECRC-- UnsupReq-- ACSViol--
UESvrt: DLP+ SDES- TLP+ FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
CESta: RxErr-- BadTLP-- BadDLLP-- Rollover-- Timeout-- NonFatalErr--
CEMsk: RxErr-- BadTLP-- BadDLLP-- Rollover-- Timeout-- NonFatalErr--
AERCap: First Error Pointer: 00, GenCap- CGenEn- ChkCap- ChkEn-

Change-Id: Ie861fc0f1e9b70468cb27f40fa00458339cd2b4e
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>

show more ...


# 8bb098e9 17-Jan-2022 Pali Rohár <pali@kernel.org>

UPSTREAM: pci: Extend 'pci' command with bus option '*'

Allow to call 'pci' and 'pci regions' commands with bus option '*' which
cause pci to process all buses.

PCIe is point-to-point HW and so on

UPSTREAM: pci: Extend 'pci' command with bus option '*'

Allow to call 'pci' and 'pci regions' commands with bus option '*' which
cause pci to process all buses.

PCIe is point-to-point HW and so on each bus is maximally one physical
device. Therefore for PCIe it is common to have multiple buses.

This change allows to easily print all available PCIe devices in system.

Make '*' as default option when no bus argument is specified.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
(cherry picked from commit 1a4942f1d90f3fe883db27fcad11f21e5698d46c)
Change-Id: I775097206a2c3c9666ab02a90531ff8ef75d47ec
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>

show more ...


# c6ced33f 17-Jan-2022 Pali Rohár <pali@kernel.org>

UPSTREAM: pci: Add checks for valid cmdline arguments

Currently pci command ignores invalid cmdline arguments and do something.
Add checks that all passed arguments were processed.

Signed-off-by: P

UPSTREAM: pci: Add checks for valid cmdline arguments

Currently pci command ignores invalid cmdline arguments and do something.
Add checks that all passed arguments were processed.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
(cherry picked from commit 6850a5a8e24fc2345348dd9a160abd7a8e7f1b72)
Change-Id: I54b13136211bd700a5b3c71e5023ba968aee2334
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>

show more ...


# 62ad0baa 17-Jan-2022 Pali Rohár <pali@kernel.org>

UPSTREAM: pci: Extend 'pci regions' command with bus number

'pci regions' currently prints only region information from bus 0 which
belongs to controller 0. Parser for 'pci regions' cmdline currentl

UPSTREAM: pci: Extend 'pci regions' command with bus number

'pci regions' currently prints only region information from bus 0 which
belongs to controller 0. Parser for 'pci regions' cmdline currently ignores
any additional arguments and so U-Boot always uses bus 0.

Regions are stored in controller (not on the bus) and therefore to retrieve
controller from the bus, it is needed to call pci_get_controller() which
returns root bus. Because bus 0 is root bus, current code worked fine for
controller 0.

Extend cmdline parser for 'pci regions' to allows specifying bus number,
extend pci_show_regions() code to accept also non-zero bus number and
print bus ranges for which is regions configuration assigned.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
(cherry picked from commit 39320935cc5a0544768ff6a0e1143313355c6b4d)
Change-Id: I9afa082818b46021a254bfacfe7fa0285fad7a77
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>

show more ...


# 713811f4 07-Oct-2021 Pali Rohár <pali@kernel.org>

UPSTREAM: pci: Fix showing registers

Header type is 7-bit number so use all 7 bits when detecting header type
and not only 2 bits.

Change-Id: I7a1fe74ed748e4fa28bd07e518579cd4e5960391
Signed-off-by

UPSTREAM: pci: Fix showing registers

Header type is 7-bit number so use all 7 bits when detecting header type
and not only 2 bits.

Change-Id: I7a1fe74ed748e4fa28bd07e518579cd4e5960391
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
(cherry picked from commit 43dad07cd45dba129487a8dc55de9f4f850ae7d7)

show more ...


# 3751f4dc 07-Oct-2021 Pali Rohár <pali@kernel.org>

UPSTREAM: pci: Fix showing bars

Header type is 7-bit number so properly clear upper 8th bit which
indicates multifunction device.

And do not try to show bars for unsupported header types.

Change-I

UPSTREAM: pci: Fix showing bars

Header type is 7-bit number so properly clear upper 8th bit which
indicates multifunction device.

And do not try to show bars for unsupported header types.

Change-Id: I59b75c0a72be329e9a65d2d60706af74c785898f
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
(cherry picked from commit e6335d3eaafc60b74bd05761b2bf0e57ad429aa7)

show more ...


# efe4ea7c 17-Sep-2021 Vladimir Oltean <vladimir.oltean@nxp.com>

UPSTREAM: pci: pciinfo_header can be static

To avoid W=1 build warnings, declare this function as static, since it
is not used outside of this translation module.

Change-Id: Ib2ed4bd2fd7a23c594b13b

UPSTREAM: pci: pciinfo_header can be static

To avoid W=1 build warnings, declare this function as static, since it
is not used outside of this translation module.

Change-Id: Ib2ed4bd2fd7a23c594b13bd7cd10b1b7b162d1ef
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
(cherry picked from commit 577fd581a70db6c3a5c008668f3cd047d6e141c3)

show more ...


# 853d3013 17-Sep-2021 Vladimir Oltean <vladimir.oltean@nxp.com>

UPSTREAM: pci: pci_header_show can be static

To avoid W=1 build warnings, declare this function as static, since it
is not used outside of this translation module.

Change-Id: I169fb4d07fdcc5e5046e2

UPSTREAM: pci: pci_header_show can be static

To avoid W=1 build warnings, declare this function as static, since it
is not used outside of this translation module.

Change-Id: I169fb4d07fdcc5e5046e2b25639aca02078e88fd
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
(cherry picked from commit a95f8ee911df637b5269c3c2a9a34302a5ec9eb2)

show more ...


# 4225cb09 17-Sep-2021 Vladimir Oltean <vladimir.oltean@nxp.com>

UPSTREAM: pci: pci_bar_show can be static

To avoid W=1 build warnings, declare this function as static, since it
is not used outside of this translation module.

Change-Id: I135ade991ef898242bdf9b32

UPSTREAM: pci: pci_bar_show can be static

To avoid W=1 build warnings, declare this function as static, since it
is not used outside of this translation module.

Change-Id: I135ade991ef898242bdf9b32467a1d23cd542afe
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
(cherry picked from commit f5164f6b255a16c856af91b21f432292b8ac8542)

show more ...


# b50a580a 02-Aug-2021 Simon Glass <sjg@chromium.org>

UPSTREAM: pci: Drop old code from pci command

Drop the pre-driver model code from this file.

Change-Id: Iecb81712fb68f24f64f12cfa308fe88242a68621
Signed-off-by: Simon Glass <sjg@chromium.org>
Signe

UPSTREAM: pci: Drop old code from pci command

Drop the pre-driver model code from this file.

Change-Id: Iecb81712fb68f24f64f12cfa308fe88242a68621
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
(cherry picked from commit 86a898f5dec2633bed50380052c7c72c029de936)

show more ...


# 002ab4c6 23-Aug-2019 Kunihiko Hayashi <hayashi.kunihiko@socionext.com>

UPSTREAM: cmd: pci: Adjust display of digits for 64bit address and size

The command "pci bar" and "pci region" display the address and size in
16 characters including "0x", so the command can only d

UPSTREAM: cmd: pci: Adjust display of digits for 64bit address and size

The command "pci bar" and "pci region" display the address and size in
16 characters including "0x", so the command can only display
14 hexadecimal digits if the number of digits in the address and size is
less than 14.

ID Base Size Width Type
----------------------------------------------------------
0 0x00000020000000 0x00000000100000 64 MEM Prefetchable
1 0xffff000080000000 0x00000000100000 64 MEM Prefetchable

The 64-bit address and size should be displayed in 18(= 16+2) digits,
so this patch adjusts them.

Cc: Yehuda Yitschak <yehuday@marvell.com>
Cc: Simon Glass <sjg@chromium.org>
Change-Id: I4570cb07a4acc8501c9282c58d3717796cb7fb7b
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
(cherry picked from commit 4ebeb4c559f3604169a54f3a318bdabcc6047320)

show more ...


# 18642424 04-Aug-2017 Simon Glass <sjg@chromium.org>

Kconfig: Drop CONFIG_CMD_PCI_ENUM

This option enables the 'pci enum' command. It is only enabled by a few
board and these have not yet been converted to driver model, which always
enables this comma

Kconfig: Drop CONFIG_CMD_PCI_ENUM

This option enables the 'pci enum' command. It is only enabled by a few
board and these have not yet been converted to driver model, which always
enables this command. It seems easiest to just remove this option.

The affected boards can be converted to use driver model for PCI if
needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>

show more ...


# dd31be21 04-Jun-2017 Tom Rini <trini@konsulko.com>

Merge git://git.denx.de/u-boot-fdt


# 84d7f916 27-May-2017 Simon Glass <sjg@chromium.org>

pci: Correct cast for sandbox

This gives a warning with some native compilers:

cmd/pci.c:152:11: warning: format ‘%llx’ expects argument of type
‘long long unsigned int’, but argument 3 has type

pci: Correct cast for sandbox

This gives a warning with some native compilers:

cmd/pci.c:152:11: warning: format ‘%llx’ expects argument of type
‘long long unsigned int’, but argument 3 has type
‘u64 {aka long unsigned int}’ [-Wformat=]

Fix it with a cast.

Signed-off-by: Simon Glass <sjg@chromium.org>

show more ...


# b997a73e 08-Apr-2017 Simon Glass <sjg@chromium.org>

pci: Add a command to show PCI regions

Add 'pci regions' which lists the I/O and memory regions accessible from
the PCI controller.

Signed-off-by: Simon Glass <sjg@chromium.org>


# f2465934 16-Dec-2016 Stefano Babic <sbabic@denx.de>

Merge branch 'master' of git://git.denx.de/u-boot


# e5f96a87 01-Dec-2016 Yehuda Yitschak <yehuday@marvell.com>

cmd: pci: add option to parse and display BAR information

Currently the PCI command only allows to see the BAR register
values but not the size and actual base address.
This little extension parses

cmd: pci: add option to parse and display BAR information

Currently the PCI command only allows to see the BAR register
values but not the size and actual base address.
This little extension parses the BAR registers and displays
the base, size and type of each BAR.

Signed-off-by: Yehuda Yitschak <yehuday@marvell.com>
Reviewed-by: Simon Glass <sjg@chromium.org>

show more ...


# 8a36287a 29-Jan-2016 Tom Rini <trini@konsulko.com>

Merge git://git.denx.de/u-boot-dm


# e578b92c 26-Jan-2016 Stephen Warren <swarren@nvidia.com>

Implement "pci enum" command for CONFIG_DM_PCI

With CONFIG_DM_PCI enabled, PCI buses are not enumerated at boot, as they
are without that config option enabled. No command exists to enumerate the
PC

Implement "pci enum" command for CONFIG_DM_PCI

With CONFIG_DM_PCI enabled, PCI buses are not enumerated at boot, as they
are without that config option enabled. No command exists to enumerate the
PCI buses. Hence, unless some board-specific code causes PCI enumeration,
PCI-based Ethernet devices are not detected, and network access is not
available.

This patch implements "pci enum" in the CONFIG_DM_PCI case, thus giving a
mechanism whereby PCI can be enumerated.

do_pci()'s handling of case 'e' is moved into a single location before the
dev variable is assigned, in order to skip calculation of dev. The enum
sub-command doesn't need the dev value, and skipping its calculation
avoids an irrelevant error being printed.

Using a command to initialize PCI like this has a disadvantage relative to
enumerating PCI at boot. In particular, Ethernet devices are not probed
during PCI enumeration, but only when used. This defers setting variables
such as ethact, ethaddr, etc. until the first network-related command is
executed. Hopefully this will not cause further issues. Perhaps in the
long term, we need a "net start/enum" command too?

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

show more ...


# 2e192b24 18-Jan-2016 Simon Glass <sjg@chromium.org>

Remove the cmd_ prefix from command files

Now that they are in their own directory, we can remove this prefix.
This makes it easier to find a file since the prefix does not get in the
way.

Signed-o

Remove the cmd_ prefix from command files

Now that they are in their own directory, we can remove this prefix.
This makes it easier to find a file since the prefix does not get in the
way.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Acked-by: Stefan Roese <sr@denx.de>
Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>

show more ...