serial: Skip over PCIe device which have no quirks (fix AMT regression).
Quoted 22 lines · Aravind Gopalakrishnan
Quoted 11 lines · Konrad Rzeszutek Wilk
See:
00:16.0 Communication controller: Intel Corporation Cougar Point HECI Controller #1 (rev 04)
Subsystem: Intel Corporation Device 2008
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory atfb12a000(64-bit, non-prefetchable) [size=16]
00:16.3 Serial controller: Intel Corporation Cougar Point KT Controller (rev 04) (prog-if 02 [16550])
Subsystem: Intel Corporation Device 2008
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 17
I/O ports at f0e0 [size=8]
Memory atfb129000(32-bit, non-prefetchable) [size=4K]Quoted 8 lines
pci 0000:00:16.0: [8086:1c3a] type 00 class
0x078000pci 0000:00:16.3: [8086:1c3d] type 00 class0x070002And Xen picks 00:16.0 as its console when using 'com1=115200,8n1,amt'.
This patch fixes it and allows us to use AMT again by zeroing out
io_baseto zero. If the scan did not work, theio_baseis set back to a default value.
Quoted 7 lines
If you provide 'amt' on command line => '
skip_amt' = 0 Then we'd just return -1 without settingio_baseto0x3f8due to this condition-
if ( !skip_amt )
return -1;(or am I missing something?)
That particular piece of code is executed after the loop. In the loop is where the AMT is found.
Quoted 13 lines
Quoted 11 lines
xen/drivers/char/ns16550.c +0
-0@@ -829,6 +829,7 @@ pci_uart_config (struct ns16550 *uart, int skip_amt, int bar_idx) unsigned int b, d, f, nextf, i; u16 vendor, device;
+uart->io_base= 0;Why not set ns16550.io_base = 0; in
arch/x86/setup.c?
Because then you would break the default COM ports which are not find via PCI scanning.
Say: com1=9600,8n1
Which will use by default the 3f8 io base.
Quoted 7 lines
AFAICT,
ns16550.cis the only one that usesns16550_defaultsstructure, so it should be safe..Thanks,
-Aravind.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 12 lines · Konrad Rzeszutek Wilk
Quoted 11 lines · Aravind Gopalakrishnan
Quoted 3 lines · Konrad Rzeszutek Wilk
This patch fixes it and allows us to use AMT again by zeroing out
io_baseto zero. If the scan did not work, theio_baseis set back to a default value.If you provide 'amt' on command line => '
skip_amt' = 0 Then we'd just return -1 without settingio_baseto0x3f8due to this condition-
if ( !skip_amt )return -1;(or am I missing something?)
Quoted 8 lines
That particular piece of code is executed after the loop. In the loop is where the AMT is found.
Quoted 2 lines
Quoted 1 line
+
uart->io_base= 0;Why not set ns16550.io_base = 0; in
arch/x86/setup.c?Because then you would break the default COM ports which are not find via PCI scanning.
Say: com1=9600,8n1
Which will use by default the 3f8 io base.
Ah. Okay, I see it now..
Thanks for the clarifications.
-Aravind.