From 671da2fb866a4af4ceaf2a0bc124551d94e05753 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Mon, 21 Sep 2020 14:27:31 +0200 Subject: [PATCH] 4.9-stable patches added patches: serial-8250_pci-add-realtek-816a-and-816b.patch --- ...l-8250_pci-add-realtek-816a-and-816b.patch | 118 ++++++++++++++++++ queue-4.9/series | 1 + 2 files changed, 119 insertions(+) create mode 100644 queue-4.9/serial-8250_pci-add-realtek-816a-and-816b.patch diff --git a/queue-4.9/serial-8250_pci-add-realtek-816a-and-816b.patch b/queue-4.9/serial-8250_pci-add-realtek-816a-and-816b.patch new file mode 100644 index 00000000000..ac3b452b7fe --- /dev/null +++ b/queue-4.9/serial-8250_pci-add-realtek-816a-and-816b.patch @@ -0,0 +1,118 @@ +From 3c5a87be170aba8ac40982182f812dcff6ed1ad1 Mon Sep 17 00:00:00 2001 +From: Tobias Diedrich +Date: Mon, 14 Sep 2020 19:36:28 +0200 +Subject: serial: 8250_pci: Add Realtek 816a and 816b + +From: Tobias Diedrich + +commit 3c5a87be170aba8ac40982182f812dcff6ed1ad1 upstream. + +These serial ports are exposed by the OOB-management-engine on +RealManage-enabled network cards (e.g. AMD DASH enabled systems using +Realtek cards). + +Because these have 3 BARs, they fail the "num_iomem <= 1" check in +serial_pci_guess_board. + +I've manually checked the two IOMEM regions and BAR 2 doesn't seem to +respond to reads, but BAR 4 seems to be an MMIO version of the IO ports +(untested). + +With this change, the ports are detected: +0000:02:00.1: ttyS0 at I/O 0x2200 (irq = 82, base_baud = 115200) is a 16550A +0000:02:00.2: ttyS1 at I/O 0x2100 (irq = 55, base_baud = 115200) is a 16550A + +lspci output: +02:00.1 0700: 10ec:816a (rev 0e) (prog-if 02 [16550]) + Subsystem: 17aa:5082 + Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- + Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort+ SERR- +Cc: stable +Link: https://lore.kernel.org/r/20200914173628.GA22508@yamamaya.is-a-geek.org +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/tty/serial/8250/8250_pci.c | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +--- a/drivers/tty/serial/8250/8250_pci.c ++++ b/drivers/tty/serial/8250/8250_pci.c +@@ -5709,6 +5709,17 @@ static struct pci_device_id serial_pci_t + 0, + 0, pbn_exar_XR17V358 }, + ++ /* ++ * Realtek RealManage ++ */ ++ { PCI_VENDOR_ID_REALTEK, 0x816a, ++ PCI_ANY_ID, PCI_ANY_ID, ++ 0, 0, pbn_b0_1_115200 }, ++ ++ { PCI_VENDOR_ID_REALTEK, 0x816b, ++ PCI_ANY_ID, PCI_ANY_ID, ++ 0, 0, pbn_b0_1_115200 }, ++ + /* Fintek PCI serial cards */ + { PCI_DEVICE(0x1c29, 0x1104), .driver_data = pbn_fintek_4 }, + { PCI_DEVICE(0x1c29, 0x1108), .driver_data = pbn_fintek_8 }, diff --git a/queue-4.9/series b/queue-4.9/series index c494e1148da..901bf988669 100644 --- a/queue-4.9/series +++ b/queue-4.9/series @@ -64,3 +64,4 @@ usb-quirks-add-usb_quirk_ignore_remote_wakeup-quirk-for-byd-zhaoxin-notebook.pat usb-uas-fix-disconnect-by-unplugging-a-hub.patch usblp-fix-race-between-disconnect-and-read.patch input-i8042-add-entroware-proteus-el07r4-to-nomux-and-reset-lists.patch +serial-8250_pci-add-realtek-816a-and-816b.patch -- 2.47.3