Gentoo Archives: gentoo-user-ru

From: Sergey Popov <pinkbyte@g.o>
To: gentoo-user-ru@l.g.o
Subject: Re: [gentoo-user-ru] PCIe card reader на ноутбуке HP ProBook 450s G0
Date: Sat, 01 Mar 2014 11:27:34
Message-Id: 5311C41C.3010103@gentoo.org
In Reply to: [gentoo-user-ru] PCIe card reader на ноутбуке HP ProBook 450s G0 by "Никита Киприянов"
1 28.02.2014 19:36, Никита Киприянов пишет:
2 > Hi!
3 >
4 > Ставлю дженту на эту машину. В машине имеется встроенный кардридер
5 > SD/MMC, который в lspci по идее видится как Realtek Semiconductor Co.,
6 > Ltd. RTS5229 PCI Express Card Reader (rev 01)
7 >
8 >
9 > Странность в том, что если грузить машину с вставленной карточкой, то он
10 > видится. Вынимание и вставление карточки обнаруживается ядром, udisks и
11 > т. д.. lspci в таком случае выглядит так:
12 >
13 > 00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM
14 > Controller (rev 09)
15 > 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core
16 > processor Graphics Controller (rev 09)
17 > 00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset
18 > Family USB xHCI Host Controller (rev 04)
19 > 00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series
20 > Chipset Family MEI Controller #1 (rev 04)
21 > 00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset
22 > Family USB Enhanced Host Controller #2 (rev 04)
23 > 00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset
24 > Family High Definition Audio Controller (rev 04)
25 > 00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset
26 > Family PCI Express Root Port 1 (rev c4)
27 > 00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset
28 > Family PCI Express Root Port 3 (rev c4)
29 > 00:1c.3 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset
30 > Family PCI Express Root Port 4 (rev c4)
31 > 00:1c.5 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset
32 > Family PCI Express Root Port 6 (rev c4)
33 > 00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset
34 > Family USB Enhanced Host Controller #1 (rev 04)
35 > 00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC
36 > Controller (rev 04)
37 > 00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family
38 > 6-port SATA Controller [AHCI mode] (rev 04)
39 > 02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229
40 > PCI Express Card Reader (rev 01)
41 > 03:00.0 Network controller: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe
42 > 03:00.1 Bluetooth: Ralink corp. RT3290 Bluetooth
43 > 04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
44 > RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
45 >
46 > Касательно этого устройства в dmesg имеются такие строки:
47 > [ 1.671078] pci 0000:02:00.0: [10ec:5229] type 00 class 0xff0000
48 > [ 1.671103] pci 0000:02:00.0: reg 10: [mem 0xd0700000-0xd0700fff]
49 > [ 1.671272] pci 0000:02:00.0: supports D1 D2
50 > [ 1.671273] pci 0000:02:00.0: PME# supported from D1 D2 D3hot
51 > ...
52 > [ 1.854614] pci 0000:02:00.0: Signaling PME through PCIe PME interrupt
53 > ...
54 > [ 3.101202] rtsx_pci 0000:02:00.0: irq 46 for MSI/MSI-X
55 > [ 3.101215] rtsx_pci 0000:02:00.0: rtsx_pci_acquire_irq: pcr->msi_en
56 > = 1, pci->irq = 46
57 >
58 >
59 > В то же время, если машину загрузить без карточки в кардридере, строки
60 > 02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229
61 > PCI Express Card Reader (rev 01)
62 > в lspci не будет, и в dmesg про это устройство тоже ничего не будет.
63 > Можно сколько угодно тыкать карточки - система их не видит и никаких
64 > уведомлений нет. Но если со вставленной карточкой теперь сделать echo
65 > "1" > /sys/bus/pci/rescan - немедленно появляется сообщение "нашёл
66 > карточку", кардридер проявляется в lspci, а в dmesg появляются такие
67 > сообщения:
68 > [ 532.090303] pci 0000:02:00.0: [10ec:5229] type 00 class 0xff0000
69 > [ 532.090337] pci 0000:02:00.0: reg 10: [mem 0x00000000-0x00000fff]
70 > [ 532.090531] pci 0000:02:00.0: supports D1 D2
71 > [ 532.090533] pci 0000:02:00.0: PME# supported from D1 D2 D3hot
72 > [ 532.092283] pci 0000:02:00.0: BAR 0: assigned [mem
73 > 0xd0700000-0xd0700fff]
74 > [ 532.092349] rtsx_pci 0000:02:00.0: enabling device (0000 -> 0002)
75 > [ 532.092464] rtsx_pci 0000:02:00.0: irq 50 for MSI/MSI-X
76 > [ 532.092483] rtsx_pci 0000:02:00.0: rtsx_pci_acquire_irq: pcr->msi_en
77 > = 1, pci->irq = 50
78 >
79 > (rtsx_pci - это, очевидно, драйвер кардридера)
80 >
81 > С этого момента устройство работает как положено. Если оно уже нашлось,
82 > рескан без карточки его не отключает и оно никуда не девается.
83 >
84 > Вначале думал на PCI hotplug (он был у меня отключен - нет смысла,
85 > expresscard-слотов в ноутбуке нет, так что хотплажить нечего).
86 > Пересобрал ядро со всевозможными (как я думаю) хотплагами:
87 > CONFIG_HOTPLUG_PCI_PCIE=y
88 > CONFIG_PCI_IOAPIC=y
89 > CONFIG_HOTPLUG_PCI=y
90 > CONFIG_HOTPLUG_PCI_ACPI=y
91 > Не помогло.
92 >
93 > Не сталкивался ли кто-то с подобным поведением? Что это происходит и как
94 > это лечить?
95 >
96 >
97
98 Все необходимые опции[1] включены? Какая версия ядра?
99
100 [1] - https://lists.debian.org/debian-kernel/2013/03/msg00026.html
101
102 --
103 Best regards, Sergey Popov
104 Gentoo developer
105 Gentoo Desktop-effects project lead
106 Gentoo Qt project lead
107 Gentoo Proxy maintainers project lead

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user-ru] PCIe card reader на ноутбуке HP ProBook 450s G0 "Никита Киприянов" <merlin@×××××.ru>