Как заставить работать NetMos 9922?

Обсуждение установки, настройки и использования LinuxCNC. Вопросы по Gкоду.

Как заставить работать NetMos 9922?

Сообщение Сергей Саныч » 28 ноя 2018, 10:00

Добрый день!
Появилась необходимость запустить под Debian карту последовательных портов (PCI-E) на чипсете NetMos 9922.
Она вроде как даже видится как /dev/ttyS1 и /dev/ttyS2
Код: Выделить всёРазвернуть
sudo setserial -g /dev/ttyS*
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: 16650V2, Port: 0xc010, IRQ: 16
/dev/ttyS2, UART: 16650V2, Port: 0xc000, IRQ: 17
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3

Но не работает.

sudo lspci -v показывает в ее отношении следующее:
Код: Выделить всёРазвернуть
07:00.0 Serial controller: NetMos Technology PCIe 9922 Multi-I/O Controller (prog-if 02 [16550])
   Subsystem: Device a000:1000
   Flags: fast devsel, IRQ 16
   I/O ports at c010 [disabled] [size=8]
   [virtual] Memory at fb103000 (32-bit, non-prefetchable) [size=4K]
   [virtual] Memory at fb102000 (32-bit, non-prefetchable) [size=4K]
   Capabilities: [50] MSI: Enable- Count=1/8 Maskable- 64bit+
   Capabilities: [78] Power Management version 3
   Capabilities: [80] Express Legacy Endpoint, MSI 00
   Capabilities: [100] Virtual Channel
   Capabilities: [800] Advanced Error Reporting
   Kernel driver in use: serial

07:00.1 Serial controller: NetMos Technology PCIe 9922 Multi-I/O Controller (prog-if 02 [16550])
   Subsystem: Device a000:1000
   Flags: fast devsel, IRQ 17
   I/O ports at c000 [disabled] [size=8]
   [virtual] Memory at fb101000 (32-bit, non-prefetchable) [size=4K]
   [virtual] Memory at fb100000 (32-bit, non-prefetchable) [size=4K]
   Capabilities: [50] MSI: Enable- Count=1/8 Maskable- 64bit+
   Capabilities: [78] Power Management version 3
   Capabilities: [80] Express Legacy Endpoint, MSI 00
   Capabilities: [100] Advanced Error Reporting
   Kernel driver in use: serial

Что сделать, чтобы это заработало?
Чудес не бывает. Бывают фокусы.
Аватара пользователя
Сергей Саныч
Мастер
 
Сообщения: 8018
Зарегистрирован: 30 май 2012, 14:20
Откуда: Тюмень
Репутация: 2500
Медальки:

Re: Как заставить работать NetMos 9922?

Сообщение UAVpilot » 28 ноя 2018, 13:00

"не работает" - это как?
Я не Христос, рыбу не раздаю, но могу научить, как сделать удочку...
Аватара пользователя
UAVpilot
Мастер
 
Сообщения: 17009
Зарегистрирован: 17 апр 2012, 14:58
Откуда: Москва
Репутация: 4187
Медальки:
Настоящее имя: Сергей

Re: Как заставить работать NetMos 9922?

Сообщение Сергей Саныч » 28 ноя 2018, 14:15

При подключении, скажем, через cutecom выдает Opening failed.
Ну, и смущают строки
I/O ports at c000 [disabled] [size=8]

Почему порты "disabled"?
Чудес не бывает. Бывают фокусы.
Аватара пользователя
Сергей Саныч
Мастер
 
Сообщения: 8018
Зарегистрирован: 30 май 2012, 14:20
Откуда: Тюмень
Репутация: 2500
Медальки:

Re: Как заставить работать NetMos 9922?

Сообщение UAVpilot » 28 ноя 2018, 18:24

Код: Выделить всёРазвернуть
echo 1 >/sys/bus/pci/devices/0000:07:00.0/enable
echo 1 >/sys/bus/pci/devices/0000:07:00.1/enable
Я не Христос, рыбу не раздаю, но могу научить, как сделать удочку...
Аватара пользователя
UAVpilot
Мастер
 
Сообщения: 17009
Зарегистрирован: 17 апр 2012, 14:58
Откуда: Москва
Репутация: 4187
Медальки:
Настоящее имя: Сергей

Re: Как заставить работать NetMos 9922?

Сообщение Сергей Саныч » 29 ноя 2018, 11:39

Код: Выделить всёРазвернуть
cnc2@debian-cnc:~$ sudo echo 1 >/sys/bus/pci/devices/0000:07:00.0/enable
bash: /sys/bus/pci/devices/0000:07:00.0/enable: Отказано в доступе
cnc2@debian-cnc:~$ echo 1 >/sys/bus/pci/devices/0000:07:00.0/enable
bash: /sys/bus/pci/devices/0000:07:00.0/enable: Отказано в доступе
cnc2@debian-cnc:~$ echo 1 >/sys/bus/pci/devices/0000:07:00.1/enable
bash: /sys/bus/pci/devices/0000:07:00.1/enable: Отказано в доступе
cnc2@debian-cnc:~$ sudo echo 1 >/sys/bus/pci/devices/0000:07:00.1/enable
bash: /sys/bus/pci/devices/0000:07:00.1/enable: Отказано в доступе
Чудес не бывает. Бывают фокусы.
Аватара пользователя
Сергей Саныч
Мастер
 
Сообщения: 8018
Зарегистрирован: 30 май 2012, 14:20
Откуда: Тюмень
Репутация: 2500
Медальки:

Re: Как заставить работать NetMos 9922?

Сообщение UAVpilot » 29 ноя 2018, 15:20

А это тест на сообразительность. :)

Сергей Саныч писал(а):cnc2@debian-cnc:~$ sudo echo 1 >/sys/bus/pci/devices/0000:07:00.0/enable
bash: /sys/bus/pci/devices/0000:07:00.0/enable: Отказано в доступе

комнда "echo 1" выполнянется с правами рута, а вот вывод этой команды перенаправляется в файл уже в контексте юзера.
Я не Христос, рыбу не раздаю, но могу научить, как сделать удочку...
Аватара пользователя
UAVpilot
Мастер
 
Сообщения: 17009
Зарегистрирован: 17 апр 2012, 14:58
Откуда: Москва
Репутация: 4187
Медальки:
Настоящее имя: Сергей

Re: Как заставить работать NetMos 9922?

Сообщение Сергей Саныч » 30 ноя 2018, 12:02

UAVpilot писал(а):комнда "echo 1" выполнянется с правами рута, а вот вывод этой команды перенаправляется в файл уже в контексте юзера.

Мы таки покупаем или продаем? :)

UAVpilot писал(а):А это тест на сообразительность. :)
Тест не пройден :oops: Вообще не понял, куда мы это echo 1 посылаем.

А порты заработали. Только после того, как убрал плату MESA 6i25. Ночевала в соседнем слоте. Как-то они конфликтовали.
Чудес не бывает. Бывают фокусы.
Аватара пользователя
Сергей Саныч
Мастер
 
Сообщения: 8018
Зарегистрирован: 30 май 2012, 14:20
Откуда: Тюмень
Репутация: 2500
Медальки:

Re: Как заставить работать NetMos 9922?

Сообщение UAVpilot » 30 ноя 2018, 18:45

Сергей Саныч писал(а):Тест не пройден :oops: Вообще не понял, куда мы это echo 1 посылаем.

Хочешь попроще? Пожалуйста:
Код: Выделить всёРазвернуть
sudo sh -c "echo 1 >/sys/bus/pci/devices/0000:07:00.0/enable"

:)
Пишем "1" в файл /sys/bus/pci/devices/0000:07:00.0/enable - насильно заставляем ядро активировать устройство.

Сергей Саныч писал(а):Только после того, как убрал плату MESA 6i25. Ночевала в соседнем слоте. Как-то они конфликтовали.

сомнительно... Уже в PCI конфликты исправных устройств невозможны, а в PCI-Е и неисправных тоже.
Я не Христос, рыбу не раздаю, но могу научить, как сделать удочку...
Аватара пользователя
UAVpilot
Мастер
 
Сообщения: 17009
Зарегистрирован: 17 апр 2012, 14:58
Откуда: Москва
Репутация: 4187
Медальки:
Настоящее имя: Сергей

Re: Как заставить работать NetMos 9922?

Сообщение Сергей Саныч » 03 дек 2018, 09:50

UAVpilot писал(а):Уже в PCI конфликты исправных устройств невозможны, а в PCI-Е и неисправных тоже.
И тем не менее:

С Мезой
Код: Выделить всёРазвернуть
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
   Subsystem: ASUSTeK Computer Inc. P8P67 Deluxe Motherboard
   Flags: bus master, fast devsel, latency 0
   Capabilities: [e0] Vendor Specific Information: Len=0c <?>

00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
   I/O behind bridge: 0000e000-0000efff
   Memory behind bridge: fa000000-fb0fffff
   Prefetchable memory behind bridge: 00000000c0000000-00000000d1ffffff
   Capabilities: [88] Subsystem: ASUSTeK Computer Inc. Device 844d
   Capabilities: [80] Power Management version 3
   Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [a0] Express Root Port (Slot+), MSI 00
   Capabilities: [100] Virtual Channel
   Capabilities: [140] Root Complex Link
   Kernel driver in use: pcieport

00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
   Subsystem: ASUSTeK Computer Inc. P8P67 Deluxe Motherboard
   Flags: bus master, fast devsel, latency 0, IRQ 3
   Memory at fb307000 (64-bit, non-prefetchable) [size=16]
   Capabilities: [50] Power Management version 3
   Capabilities: [8c] MSI: Enable- Count=1/1 Maskable- 64bit+

00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05) (prog-if 20 [EHCI])
   Subsystem: ASUSTeK Computer Inc. P8P67 Deluxe Motherboard
   Flags: bus master, medium devsel, latency 0, IRQ 23
   Memory at fb306000 (32-bit, non-prefetchable) [size=1K]
   Capabilities: [50] Power Management version 2
   Capabilities: [58] Debug port: BAR=1 offset=00a0
   Capabilities: [98] PCI Advanced Features
   Kernel driver in use: ehci_hcd

00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
   Subsystem: ASUSTeK Computer Inc. Device 8445
   Flags: bus master, fast devsel, latency 0, IRQ 22
   Memory at fb300000 (64-bit, non-prefetchable) [size=16K]
   Capabilities: [50] Power Management version 2
   Capabilities: [60] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
   Capabilities: [100] Virtual Channel
   Capabilities: [130] Root Complex Link
   Kernel driver in use: snd_hda_intel

00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
   Capabilities: [40] Express Root Port (Slot+), MSI 00
   Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [90] Subsystem: ASUSTeK Computer Inc. Device 844d
   Capabilities: [a0] Power Management version 2
   Kernel driver in use: pcieport

00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=03, subordinate=04, sec-latency=0
   Memory behind bridge: fb200000-fb2fffff
   Capabilities: [40] Express Root Port (Slot+), MSI 00
   Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [90] Subsystem: ASUSTeK Computer Inc. Device 844d
   Capabilities: [a0] Power Management version 2
   Kernel driver in use: pcieport

00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
   I/O behind bridge: 0000d000-0000dfff
   Prefetchable memory behind bridge: 00000000d2100000-00000000d21fffff
   Capabilities: [40] Express Root Port (Slot+), MSI 00
   Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [90] Subsystem: ASUSTeK Computer Inc. Device 844d
   Capabilities: [a0] Power Management version 2
   Kernel driver in use: pcieport

00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=06, subordinate=06, sec-latency=0
   Capabilities: [40] Express Root Port (Slot+), MSI 00
   Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [90] Subsystem: ASUSTeK Computer Inc. Device 844d
   Capabilities: [a0] Power Management version 2
   Kernel driver in use: pcieport

00:1c.4 PCI bridge: Intel Corporation 82801 PCI Bridge (rev b5) (prog-if 01 [Subtractive decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=07, subordinate=07, sec-latency=0
   I/O behind bridge: 0000c000-0000cfff
   Memory behind bridge: fb100000-fb1fffff
   Capabilities: [40] Express Root Port (Slot+), MSI 00
   Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [90] Subsystem: ASUSTeK Computer Inc. Device 844d
   Capabilities: [a0] Power Management version 2

00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b5) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=08, subordinate=08, sec-latency=0
   Capabilities: [40] Express Root Port (Slot+), MSI 00
   Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [90] Subsystem: ASUSTeK Computer Inc. Device 844d
   Capabilities: [a0] Power Management version 2
   Kernel driver in use: pcieport

00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05) (prog-if 20 [EHCI])
   Subsystem: ASUSTeK Computer Inc. P8P67 Deluxe Motherboard
   Flags: bus master, medium devsel, latency 0, IRQ 23
   Memory at fb305000 (32-bit, non-prefetchable) [size=1K]
   Capabilities: [50] Power Management version 2
   Capabilities: [58] Debug port: BAR=1 offset=00a0
   Capabilities: [98] PCI Advanced Features
   Kernel driver in use: ehci_hcd

00:1f.0 ISA bridge: Intel Corporation H61 Express Chipset Family LPC Controller (rev 05)
   Subsystem: ASUSTeK Computer Inc. Device 844d
   Flags: bus master, medium devsel, latency 0
   Capabilities: [e0] Vendor Specific Information: Len=0c <?>

00:1f.2 IDE interface: Intel Corporation 6 Series/C200 Series Chipset Family 4 port SATA IDE Controller (rev 05) (prog-if 8f [Master SecP SecO PriP PriO])
   Subsystem: ASUSTeK Computer Inc. Device 844d
   Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 20
   I/O ports at f0d0 [size=8]
   I/O ports at f0c0 [size=4]
   I/O ports at f0b0 [size=8]
   I/O ports at f0a0 [size=4]
   I/O ports at f090 [size=16]
   I/O ports at f080 [size=16]
   Capabilities: [70] Power Management version 3
   Capabilities: [b0] PCI Advanced Features
   Kernel driver in use: ata_piix

00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
   Subsystem: ASUSTeK Computer Inc. P8P67 Deluxe Motherboard
   Flags: medium devsel, IRQ 18
   Memory at fb304000 (64-bit, non-prefetchable) [size=256]
   I/O ports at f000 [size=32]
   Kernel driver in use: i801_smbus

00:1f.5 IDE interface: Intel Corporation 6 Series/C200 Series Chipset Family 2 port SATA IDE Controller (rev 05) (prog-if 85 [Master SecO PriO])
   Subsystem: ASUSTeK Computer Inc. Device 844d
   Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 20
   I/O ports at f070 [size=8]
   I/O ports at f060 [size=4]
   I/O ports at f050 [size=8]
   I/O ports at f040 [size=4]
   I/O ports at f030 [size=16]
   I/O ports at f020 [size=16]
   Capabilities: [70] Power Management version 3
   Capabilities: [b0] PCI Advanced Features
   Kernel driver in use: ata_piix

01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 440] (rev a1) (prog-if 00 [VGA controller])
   Flags: bus master, fast devsel, latency 0, IRQ 16
   Memory at fa000000 (32-bit, non-prefetchable) [size=16M]
   Memory at c0000000 (64-bit, prefetchable) [size=256M]
   Memory at d0000000 (64-bit, prefetchable) [size=32M]
   I/O ports at e000 [size=128]
   Expansion ROM at fb000000 [disabled] [size=512K]
   Capabilities: [60] Power Management version 3
   Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [78] Express Endpoint, MSI 00
   Capabilities: [b4] Vendor Specific Information: Len=14 <?>
   Capabilities: [100] Virtual Channel
   Capabilities: [128] Power Budgeting <?>
   Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
   Kernel driver in use: nouveau

01:00.1 Audio device: NVIDIA Corporation GF108 High Definition Audio Controller (rev a1)
   Flags: bus master, fast devsel, latency 0, IRQ 17
   Memory at fb080000 (32-bit, non-prefetchable) [size=16K]
   Capabilities: [60] Power Management version 3
   Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [78] Express Endpoint, MSI 00
   Kernel driver in use: snd_hda_intel

03:00.0 PCI bridge: Texas Instruments XIO2001 PCI Express-to-PCI Bridge (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=03, secondary=04, subordinate=04, sec-latency=32
   Memory behind bridge: fb200000-fb2fffff
   Capabilities: [40] Subsystem: Device 0000:0000
   Capabilities: [48] Power Management version 3
   Capabilities: [50] MSI: Enable- Count=1/16 Maskable- 64bit+
   Capabilities: [70] Express PCI/PCI-X Bridge, MSI 00
   Capabilities: [100] Advanced Error Reporting

04:00.0 DPIO module: Device 2718:5125
   Subsystem: Device 2718:5125
   Flags: fast devsel, IRQ 10
   Memory at fb200000 (32-bit, non-prefetchable) [size=64K]

05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
   Subsystem: ASUSTeK Computer Inc. P8P67 and other motherboards
   Flags: bus master, fast devsel, latency 0, IRQ 18
   I/O ports at d000 [size=256]
   Memory at d2104000 (64-bit, prefetchable) [size=4K]
   Memory at d2100000 (64-bit, prefetchable) [size=16K]
   Capabilities: [40] Power Management version 3
   Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [70] Express Endpoint, MSI 01
   Capabilities: [b0] MSI-X: Enable- Count=4 Masked-
   Capabilities: [d0] Vital Product Data
   Capabilities: [100] Advanced Error Reporting
   Capabilities: [140] Virtual Channel
   Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00
   Kernel driver in use: r8169

07:00.0 Serial controller: NetMos Technology PCIe 9922 Multi-I/O Controller (prog-if 02 [16550])
   Subsystem: Device a000:1000
   Flags: fast devsel, IRQ 16
   I/O ports at c010 [disabled] [size=8]
   [virtual] Memory at fb103000 (32-bit, non-prefetchable) [size=4K]
   [virtual] Memory at fb102000 (32-bit, non-prefetchable) [size=4K]
   Capabilities: [50] MSI: Enable- Count=1/8 Maskable- 64bit+
   Capabilities: [78] Power Management version 3
   Capabilities: [80] Express Legacy Endpoint, MSI 00
   Capabilities: [100] Virtual Channel
   Capabilities: [800] Advanced Error Reporting
   Kernel driver in use: serial

07:00.1 Serial controller: NetMos Technology PCIe 9922 Multi-I/O Controller (prog-if 02 [16550])
   Subsystem: Device a000:1000
   Flags: fast devsel, IRQ 17
   I/O ports at c000 [disabled] [size=8]
   [virtual] Memory at fb101000 (32-bit, non-prefetchable) [size=4K]
   [virtual] Memory at fb100000 (32-bit, non-prefetchable) [size=4K]
   Capabilities: [50] MSI: Enable- Count=1/8 Maskable- 64bit+
   Capabilities: [78] Power Management version 3
   Capabilities: [80] Express Legacy Endpoint, MSI 00
   Capabilities: [100] Advanced Error Reporting
   Kernel driver in use: serial


Без Мезы :)
Код: Выделить всёРазвернуть
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
   Subsystem: ASUSTeK Computer Inc. P8P67 Deluxe Motherboard
   Flags: bus master, fast devsel, latency 0
   Capabilities: [e0] Vendor Specific Information: Len=0c <?>

00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
   I/O behind bridge: 0000e000-0000efff
   Memory behind bridge: fa000000-fb0fffff
   Prefetchable memory behind bridge: 00000000c0000000-00000000d1ffffff
   Capabilities: [88] Subsystem: ASUSTeK Computer Inc. Device 844d
   Capabilities: [80] Power Management version 3
   Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [a0] Express Root Port (Slot+), MSI 00
   Capabilities: [100] Virtual Channel
   Capabilities: [140] Root Complex Link
   Kernel driver in use: pcieport

00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
   Subsystem: ASUSTeK Computer Inc. P8P67 Deluxe Motherboard
   Flags: bus master, fast devsel, latency 0, IRQ 3
   Memory at fb207000 (64-bit, non-prefetchable) [size=16]
   Capabilities: [50] Power Management version 3
   Capabilities: [8c] MSI: Enable- Count=1/1 Maskable- 64bit+

00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05) (prog-if 20 [EHCI])
   Subsystem: ASUSTeK Computer Inc. P8P67 Deluxe Motherboard
   Flags: bus master, medium devsel, latency 0, IRQ 23
   Memory at fb206000 (32-bit, non-prefetchable) [size=1K]
   Capabilities: [50] Power Management version 2
   Capabilities: [58] Debug port: BAR=1 offset=00a0
   Capabilities: [98] PCI Advanced Features
   Kernel driver in use: ehci_hcd

00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
   Subsystem: ASUSTeK Computer Inc. Device 8445
   Flags: bus master, fast devsel, latency 0, IRQ 22
   Memory at fb200000 (64-bit, non-prefetchable) [size=16K]
   Capabilities: [50] Power Management version 2
   Capabilities: [60] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
   Capabilities: [100] Virtual Channel
   Capabilities: [130] Root Complex Link
   Kernel driver in use: snd_hda_intel

00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
   Capabilities: [40] Express Root Port (Slot+), MSI 00
   Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [90] Subsystem: ASUSTeK Computer Inc. Device 844d
   Capabilities: [a0] Power Management version 2
   Kernel driver in use: pcieport

00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
   Capabilities: [40] Express Root Port (Slot+), MSI 00
   Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [90] Subsystem: ASUSTeK Computer Inc. Device 844d
   Capabilities: [a0] Power Management version 2
   Kernel driver in use: pcieport

00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
   I/O behind bridge: 0000d000-0000dfff
   Prefetchable memory behind bridge: 00000000d2100000-00000000d21fffff
   Capabilities: [40] Express Root Port (Slot+), MSI 00
   Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [90] Subsystem: ASUSTeK Computer Inc. Device 844d
   Capabilities: [a0] Power Management version 2
   Kernel driver in use: pcieport

00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
   Capabilities: [40] Express Root Port (Slot+), MSI 00
   Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [90] Subsystem: ASUSTeK Computer Inc. Device 844d
   Capabilities: [a0] Power Management version 2
   Kernel driver in use: pcieport

00:1c.4 PCI bridge: Intel Corporation 82801 PCI Bridge (rev b5) (prog-if 01 [Subtractive decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=06, subordinate=06, sec-latency=0
   I/O behind bridge: 0000c000-0000cfff
   Memory behind bridge: fb100000-fb1fffff
   Capabilities: [40] Express Root Port (Slot+), MSI 00
   Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [90] Subsystem: ASUSTeK Computer Inc. Device 844d
   Capabilities: [a0] Power Management version 2

00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b5) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=07, subordinate=07, sec-latency=0
   Capabilities: [40] Express Root Port (Slot+), MSI 00
   Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [90] Subsystem: ASUSTeK Computer Inc. Device 844d
   Capabilities: [a0] Power Management version 2
   Kernel driver in use: pcieport

00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05) (prog-if 20 [EHCI])
   Subsystem: ASUSTeK Computer Inc. P8P67 Deluxe Motherboard
   Flags: bus master, medium devsel, latency 0, IRQ 23
   Memory at fb205000 (32-bit, non-prefetchable) [size=1K]
   Capabilities: [50] Power Management version 2
   Capabilities: [58] Debug port: BAR=1 offset=00a0
   Capabilities: [98] PCI Advanced Features
   Kernel driver in use: ehci_hcd

00:1f.0 ISA bridge: Intel Corporation H61 Express Chipset Family LPC Controller (rev 05)
   Subsystem: ASUSTeK Computer Inc. Device 844d
   Flags: bus master, medium devsel, latency 0
   Capabilities: [e0] Vendor Specific Information: Len=0c <?>

00:1f.2 IDE interface: Intel Corporation 6 Series/C200 Series Chipset Family 4 port SATA IDE Controller (rev 05) (prog-if 8f [Master SecP SecO PriP PriO])
   Subsystem: ASUSTeK Computer Inc. Device 844d
   Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 20
   I/O ports at f0d0 [size=8]
   I/O ports at f0c0 [size=4]
   I/O ports at f0b0 [size=8]
   I/O ports at f0a0 [size=4]
   I/O ports at f090 [size=16]
   I/O ports at f080 [size=16]
   Capabilities: [70] Power Management version 3
   Capabilities: [b0] PCI Advanced Features
   Kernel driver in use: ata_piix

00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
   Subsystem: ASUSTeK Computer Inc. P8P67 Deluxe Motherboard
   Flags: medium devsel, IRQ 18
   Memory at fb204000 (64-bit, non-prefetchable) [size=256]
   I/O ports at f000 [size=32]
   Kernel driver in use: i801_smbus

00:1f.5 IDE interface: Intel Corporation 6 Series/C200 Series Chipset Family 2 port SATA IDE Controller (rev 05) (prog-if 85 [Master SecO PriO])
   Subsystem: ASUSTeK Computer Inc. Device 844d
   Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 20
   I/O ports at f070 [size=8]
   I/O ports at f060 [size=4]
   I/O ports at f050 [size=8]
   I/O ports at f040 [size=4]
   I/O ports at f030 [size=16]
   I/O ports at f020 [size=16]
   Capabilities: [70] Power Management version 3
   Capabilities: [b0] PCI Advanced Features
   Kernel driver in use: ata_piix

01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 440] (rev a1) (prog-if 00 [VGA controller])
   Flags: bus master, fast devsel, latency 0, IRQ 16
   Memory at fa000000 (32-bit, non-prefetchable) [size=16M]
   Memory at c0000000 (64-bit, prefetchable) [size=256M]
   Memory at d0000000 (64-bit, prefetchable) [size=32M]
   I/O ports at e000 [size=128]
   Expansion ROM at fb000000 [disabled] [size=512K]
   Capabilities: [60] Power Management version 3
   Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [78] Express Endpoint, MSI 00
   Capabilities: [b4] Vendor Specific Information: Len=14 <?>
   Capabilities: [100] Virtual Channel
   Capabilities: [128] Power Budgeting <?>
   Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
   Kernel driver in use: nouveau

01:00.1 Audio device: NVIDIA Corporation GF108 High Definition Audio Controller (rev a1)
   Flags: bus master, fast devsel, latency 0, IRQ 17
   Memory at fb080000 (32-bit, non-prefetchable) [size=16K]
   Capabilities: [60] Power Management version 3
   Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [78] Express Endpoint, MSI 00
   Kernel driver in use: snd_hda_intel

04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
   Subsystem: ASUSTeK Computer Inc. P8P67 and other motherboards
   Flags: bus master, fast devsel, latency 0, IRQ 18
   I/O ports at d000 [size=256]
   Memory at d2104000 (64-bit, prefetchable) [size=4K]
   Memory at d2100000 (64-bit, prefetchable) [size=16K]
   Capabilities: [40] Power Management version 3
   Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [70] Express Endpoint, MSI 01
   Capabilities: [b0] MSI-X: Enable- Count=4 Masked-
   Capabilities: [d0] Vital Product Data
   Capabilities: [100] Advanced Error Reporting
   Capabilities: [140] Virtual Channel
   Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00
   Kernel driver in use: r8169

06:00.0 Serial controller: NetMos Technology PCIe 9922 Multi-I/O Controller (prog-if 02 [16550])
   Subsystem: Device a000:1000
   Flags: bus master, fast devsel, latency 0, IRQ 16
   I/O ports at c010 [size=8]
   Memory at fb103000 (32-bit, non-prefetchable) [size=4K]
   Memory at fb102000 (32-bit, non-prefetchable) [size=4K]
   Capabilities: [50] MSI: Enable- Count=1/8 Maskable- 64bit+
   Capabilities: [78] Power Management version 3
   Capabilities: [80] Express Legacy Endpoint, MSI 00
   Capabilities: [100] Virtual Channel
   Capabilities: [800] Advanced Error Reporting
   Kernel driver in use: serial

06:00.1 Serial controller: NetMos Technology PCIe 9922 Multi-I/O Controller (prog-if 02 [16550])
   Subsystem: Device a000:1000
   Flags: bus master, fast devsel, latency 0, IRQ 17
   I/O ports at c000 [size=8]
   Memory at fb101000 (32-bit, non-prefetchable) [size=4K]
   Memory at fb100000 (32-bit, non-prefetchable) [size=4K]
   Capabilities: [50] MSI: Enable- Count=1/8 Maskable- 64bit+
   Capabilities: [78] Power Management version 3
   Capabilities: [80] Express Legacy Endpoint, MSI 00
   Capabilities: [100] Advanced Error Reporting
   Kernel driver in use: serial


И, что любопытно, команда
Код: Выделить всёРазвернуть
cnc2@debian-cnc:~/linuxcnc/SERPORT$ sudo sh -c "echo 1 >/sys/bus/pci/devices/0000:07:00.0/enable"
sh: 1: cannot create /sys/bus/pci/devices/0000:07:00.0/enable: Directory nonexistent
cnc2@debian-cnc:~/linuxcnc/SERPORT$
без Мезы вот так ругается. А с Мезой - выполняется молча. Но без результата.

PS: всё это для меня представляет пока что академический интерес, т.к. использовать одновременно Mesa и COM-порты не планирую. Но на будущее хотелось бы разобраться.
Чудес не бывает. Бывают фокусы.
Аватара пользователя
Сергей Саныч
Мастер
 
Сообщения: 8018
Зарегистрирован: 30 май 2012, 14:20
Откуда: Тюмень
Репутация: 2500
Медальки:

Re: Как заставить работать NetMos 9922?

Сообщение UAVpilot » 03 дек 2018, 14:27

PCI-платы не могут сами выбирать себе адреса и прерывания, их им назначает BIOS или OS.
Попробуй одну из плат воткнуть в другой слот...
Я не Христос, рыбу не раздаю, но могу научить, как сделать удочку...
Аватара пользователя
UAVpilot
Мастер
 
Сообщения: 17009
Зарегистрирован: 17 апр 2012, 14:58
Откуда: Москва
Репутация: 4187
Медальки:
Настоящее имя: Сергей


Вернуться в LinuxCNC

Кто сейчас на конференции

Зарегистрированные пользователи: 1240, aegis, aleksha, anthro, avalter1987, Андрей Кулагин, bav66, Bing [Bot], BroДяга, Сергей Саныч, CNC-Logic, Dmitriy_nn, Ershoff, exe, Google [Bot], Hanter, Intersap, Keman, Lunatic, Mamont, Mehobr, mikehv, N1X, Nixon, odekolon, гаечный ключ, selenur, sergey27rus, Sh_Juri, shalek, Smlua, Spl73, Technoart, vala, vasilevs, Yandex [bot]

Поделиться

Reputation System ©'