|
|
  |
PCIe |
|
|
|
Mar 30 2010, 11:56
|
Участник

Группа: Участник
Сообщений: 21
Регистрация: 21-01-10
Пользователь №: 54 970

|
Цитата(disel @ Mar 30 2010, 14:38)  Читать нужно: PCI Standard Hot-Plug Controller and Subsystem Specification 1.0 Только не знаю где взять. Я у себя не нашёл. Цитата Спецификация говорит что да. Все зависит от настроек root port. А какие настройки у него в PC, ХЕЗ. Какая спецификация PCIe? Есть у меня исходники линуксячего драйвера, где я что-то подобное видел - сохраняется всё конфигурационное пространство, потом ребуут карточки, потом почти всё это пространство восстанавливается. Только я тогда не понял, что за ребуут такой... А похоже это то, что нам надо
|
|
|
|
|
Mar 30 2010, 12:01
|

Гуру
     
Группа: Свой
Сообщений: 3 615
Регистрация: 12-01-09
Из: США, Главное разведовательное управление
Пользователь №: 43 230

|
Цитата(SiTi @ Mar 30 2010, 13:56)  Какая спецификация PCIe? Есть у меня исходники линуксячего драйвера, где я что-то подобное видел - сохраняется всё конфигурационное пространство, потом ребуут карточки, потом почти всё это пространство восстанавливается. Только я тогда не понял, что за ребуут такой... А похоже это то, что нам надо  Какого именно драйвера? Ядро сейчас это 374 мегабайта. В типовом ядре, есть каллбэки которые вызываются при инициализации PCI устройства, уходе его в слип, повердаун итд. Но чтобы сохранялось и восстанавливалось я не помню.
|
|
|
|
|
Mar 30 2010, 12:18
|
Участник

Группа: Участник
Сообщений: 21
Регистрация: 21-01-10
Пользователь №: 54 970

|
drivers/net/mlx4/reset.c
|
|
|
|
|
Mar 30 2010, 17:53
|
Гуру
     
Группа: Свой
Сообщений: 3 123
Регистрация: 7-04-07
Из: Химки
Пользователь №: 26 847

|
Цитата(Methane @ Mar 30 2010, 20:16)  Так это же не PCIe. Это то, что рекомендовал disel, так что вопросы к нему  Видимо нужен какой то из PCIe стандартов, только скажите какой (www.pcisig.com) Возможно PCIe Base подойдет Немного написано в CEM спецификации: Цитата In the following text, all references to mechanical elements should be interpreted in the context of the PCI Express card form factor definition, unless otherwise stated. 3.1. Scope 5 The PCI Express specification natively supports Hot-Plug/Hot Removal of PCI Express add-in cards. However, hardware support of Hot-Plug/Hot-Removal on the system board is optional. Since the PCI Express evolutionary form factor is designed as a direct PCI connector replacement and utilizes an edge card connector, the PCI Express Native Hot-Plug model is based on the standard usage model defined in the PCI Standard Hot-Plug Controller and Subsystem Specification, 10 Revision 1.0. The following section describes the add-in card presence detect and PCI Express Native Hot-Plug signals. For a detailed explanation of the register requirements and standard usage model, see Chapter 7 of the PCI Express Base Specification, Revision 1.1. 3.2. Presence Detect 15 The PCI Express Hot-Plug controller detects the presence of an add-in card using the PRSNT2# signal as shown in Figure 3-1. It is the responsibility of the Root Complex or the switch to determine the presence of the add-in card and set the present bits in the appropriate register as described in Chapter 7 of the PCI Express Base Specification, Revision 1.1. In addition to the Hot-Plug controller, the PRSNT2# signal is used by the system board to recognize the presence of the add-in 20 card in order to enable the auxiliary signals: CLK, PERST#, SMBus, and JTAG. The two signals, PRSNT1# and PRSNT2#, described in Figure 3-1, are required on the PCI Express connector and must be supported by all PCI Express add-in cards. Both PRSNT1# and PRSNT2# signals are required in order to detect the presence of the add-in card and to ensure that it is fully inserted in the connector. Note that the pads on the add-in card 25 for the PRSNT1# and PRSNT2# signals are shorter than the rest of the pads in order to have about 1 ms difference of insertion time. Unused PRSNT2# pads on x4, x8, and x16 add-in cards can be either standard length or the pad can be eliminated. This scheme is used to allow the power switches to isolate the power to the card during surprise removal. The mechanical details are provided in Chapter 5. It is required that all PCI Express add-in cards implement variable-length edge finger pads and tie the PRSNT1# and PRSNT2# signals together on the add-in card. There is more than one PRSNT2# pin defined in the x4, x8, and x16 PCI Express connectors; these are needed to support up-plugging. All add-in cards shall connect the PRSNT1# signal to the farthest-apart PRSNT2# 5 signal with a single trace in between them as illustrated in Figure 3-1. For example, a x4 add-in card would connect PRSNT1# with PRSNT2# on pin B31, and a x8 add-in card would connect PRSNT1# with PRSNT2# on pin B48. Refer to Table 5-1 for connector pin numbering and definition. If the system board designer chooses to implement hot-plug support, the system board must connect PRSNT1# to GND and separately connect all the PRSNT2# pins together to a single 10 pull-up resistor, as shown in Figure 3-1. The system board designer determines the pull-up resistor voltage and associated use of applicable hot-plug control logic. If the system board designer chooses not to implement hot-plug support, PRSNT1# and PRSNT2# connector pins may either be left un-connected or may be grounded on the system board. Since the x8 add-in card may plug into a x8 connector with a x4 Link only, the system board shall 15 have the two PRSNT2# pins (B31 and B48) connected together. This is required in order to sense the presence of the x8 add-in card in a x8 connector that supports a x4 Link only. See Section 6.3 for card interoperability discussions.
|
|
|
|
|
Mar 31 2010, 05:39
|

Гуру
     
Группа: Свой
Сообщений: 3 615
Регистрация: 12-01-09
Из: США, Главное разведовательное управление
Пользователь №: 43 230

|
Цитата(disel @ Mar 31 2010, 07:58)  У Петрова в "Шины PCI, PCI Express" А что за книга? "сферический PCIe в вакууме" или применительно к PC? Цитата написано что пользовательская модель PCI Express Hot Plug выведена из пользовательской модели "PCI Standard Hot-Plug Controller and Subsystem Specification 1.0". И они идентичны с точки зрения пользователя. Изменения коснулись некоторых регистров, которые описаны в стандарте PCIe. В том-то и фишка, что я читал только про бит, прочитав который можно узнать поддерживает сплот хот-плаг или нет.
|
|
|
|
|
May 12 2010, 10:53
|
Участник

Группа: Участник
Сообщений: 21
Регистрация: 21-01-10
Пользователь №: 54 970

|
Если в диспетчере устройств отключить устройство, потом его сбросить/перепрошить, потом опять попытаться обнаружить, то устройство обнаруживается и работает.
|
|
|
|
|
  |
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0
|
|
|