All of lore.kernel.org
 help / color / mirror / Atom feed
* [Query] PORT_LOGIC_SPEED_CHANGE set in PCIe designware driver
@ 2015-04-14  7:21 Zhou Wang
  2015-04-14  9:48 ` Gabriele Paoloni
  0 siblings, 1 reply; 3+ messages in thread
From: Zhou Wang @ 2015-04-14  7:21 UTC (permalink / raw)
  To: linux-pci; +Cc: zhangjukuo, Gabriele Paoloni, Liguozhu (Kenneth)

Hi All,

In pcie-designware.c, it sets the PORT_LOGIC_SPEED_CHANGE bit after linkup
finished:

dw_pcie_rd_own_conf(pp, PCIE_LINK_WIDTH_SPEED_CONTROL, 4, &val);
val |= PORT_LOGIC_SPEED_CHANGE;
dw_pcie_wr_own_conf(pp, PCIE_LINK_WIDTH_SPEED_CONTROL, 4, val);

As far as I know, it will try to use 5G/8G to communicate after setting this
bit. When I used LSI SAS2208 PCIe-RAID card to test PCIe host driver, PCIe3.0
link was unstable and can not read/write PCIe-RAID BAR. When I moved above
code before linkup, the process of enumeration was successful.

I wonder if anyone who also use the pcie-designware had met the same problem.
Could we move the PORT_LOGIC_SPEED_CHANGE before linkup?

It will be very appreciate if anyone can offer some information.

Thanks,
Zhou


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-17  6:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-14  7:21 [Query] PORT_LOGIC_SPEED_CHANGE set in PCIe designware driver Zhou Wang
2015-04-14  9:48 ` Gabriele Paoloni
2015-04-17  6:45   ` Zhou Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.