Skip to contentSkip to conversation

ACPI: Update DBG2 Serial Port Subtypes list

PATCH Applied Marcin Wojtas 3 participants 9 messages Jul 14, 2021 – Aug 16, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover ACPI: Update DBG2 Serial Port Subtypes list

Hi,

This short patchset adds support for the new 16550-compatible serial port subtype in the spcr.c driver, using the definition from updated ACPICA header.

I'm looking forward to the comments or remarks.

Best regards,
Marcin

Marcin Wojtas (2):
ACPICA: Add new DBG2 Serial Port Subtypes
ACPI: SPCR: Add support for the new 16550-compatible Serial Port
Subtype

 include/acpi/actbl1.h | 15 ++++++++++++++-
 drivers/acpi/spcr.c   |  1 +
 2 files changed, 15 insertions(+), 1 deletion(-)
Signature · 1 line
2.29.0
#1 lore raw

PATCH 1/2 ACPICA: Add new DBG2 Serial Port Subtypes

ACPICA commit d95c7d206b5836c7770e8e9cd613859887fded8f

The Microsoft Debug Port Table 2 (DBG2) specification revision September 21, 2020 comprises additional Serial Port Subtypes [1]. Reflect that in the actbl1.h header file.

[1] https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/acpi-debug-port-table

---
 include/acpi/actbl1.h | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
include/acpi/actbl1.h +14 -1
index ef2872dea01c..7bbb3e2bd33f 100644
@@ -482,7 +482,7 @@ struct acpi_csrt_descriptor {
  * DBG2 - Debug Port Table 2
  *        Version 0 (Both main table and subtables)
  *
- * Conforms to "Microsoft Debug Port Table 2 (DBG2)", December 10, 2015
+ * Conforms to "Microsoft Debug Port Table 2 (DBG2)", September 21, 2020
  *
  ******************************************************************************/
 
@@ -532,11 +532,24 @@ struct acpi_dbg2_device {
 
 #define ACPI_DBG2_16550_COMPATIBLE  0x0000
 #define ACPI_DBG2_16550_SUBSET      0x0001
+#define ACPI_DBG2_MAX311XE_SPI      0x0002
 #define ACPI_DBG2_ARM_PL011         0x0003
+#define ACPI_DBG2_MSM8X60           0x0004
+#define ACPI_DBG2_16550_NVIDIA      0x0005
+#define ACPI_DBG2_TI_OMAP           0x0006
+#define ACPI_DBG2_APM88XXXX         0x0008
+#define ACPI_DBG2_MSM8974           0x0009
+#define ACPI_DBG2_SAM5250           0x000A
+#define ACPI_DBG2_INTEL_USIF        0x000B
+#define ACPI_DBG2_IMX6              0x000C
 #define ACPI_DBG2_ARM_SBSA_32BIT    0x000D
 #define ACPI_DBG2_ARM_SBSA_GENERIC  0x000E
 #define ACPI_DBG2_ARM_DCC           0x000F
 #define ACPI_DBG2_BCM2835           0x0010
+#define ACPI_DBG2_SDM845_1_8432MHZ  0x0011
+#define ACPI_DBG2_16550_WITH_GAS    0x0012
+#define ACPI_DBG2_SDM845_7_372MHZ   0x0013
+#define ACPI_DBG2_INTEL_LPSS        0x0014
 
 #define ACPI_DBG2_1394_STANDARD     0x0000
 
Signature · 1 line
2.29.0
#2 lore raw

RE: [PATCH 1/2] ACPICA: Add new DBG2 Serial Port Subtypes

This was already reported (with a patch that we've already merged) by semihalf-wojtas-marcin

-----Original Message-----
From: Marcin Wojtas <mw(a)semihalf.com>
Sent: Wednesday, July 14, 2021 2:44 PM
To: linux-kernel(a)vger.kernel.org; linux-acpi(a)vger.kernel.org; devel(a)acpica.org
Cc: jaz(a)semihalf.com; gjb(a)semihalf.com; upstream(a)semihalf.com; Samer.El-Haj-Mahmoud(a)arm.com; jon(a)solid-run.com; tn(a)semihalf.com; rjw(a)rjwysocki.net; lenb(a)kernel.org; Moore, Robert <robert.moore(a)intel.com>; Marcin Wojtas <mw(a)semihalf.com>
Subject: [PATCH 1/2] ACPICA: Add new DBG2 Serial Port Subtypes

ACPICA commit d95c7d206b5836c7770e8e9cd613859887fded8f

The Microsoft Debug Port Table 2 (DBG2) specification revision September 21, 2020 comprises additional Serial Port Subtypes [1]. Reflect that in the actbl1.h header file.

[1] https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/acpi-debug-port-table

Signed-off-by Marcin Wojtas <mw(a)semihalf.com>
---
 include/acpi/actbl1.h | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
include/acpi/actbl1.h +2 -1
@@ -482,7 +482,7 @@ struct acpi_csrt_descriptor {
  * DBG2 - Debug Port Table 2
  *        Version 0 (Both main table and subtables)
  *
- * Conforms to "Microsoft Debug Port Table 2 (DBG2)", December 10, 2015
+ * Conforms to "Microsoft Debug Port Table 2 (DBG2)", September 21, 
+ 2020
  *
  ******************************************************************************/

@@ -532,11 +532,24 @@ struct acpi_dbg2_device {

 #define ACPI_DBG2_16550_COMPATIBLE  0x0000
 #define ACPI_DBG2_16550_SUBSET      0x0001
+#define ACPI_DBG2_MAX311XE_SPI      0x0002
 #define ACPI_DBG2_ARM_PL011         0x0003
+#define ACPI_DBG2_MSM8X60           0x0004
+#define ACPI_DBG2_16550_NVIDIA      0x0005
+#define ACPI_DBG2_TI_OMAP           0x0006
+#define ACPI_DBG2_APM88XXXX         0x0008
+#define ACPI_DBG2_MSM8974           0x0009
+#define ACPI_DBG2_SAM5250           0x000A
+#define ACPI_DBG2_INTEL_USIF        0x000B
+#define ACPI_DBG2_IMX6              0x000C
 #define ACPI_DBG2_ARM_SBSA_32BIT    0x000D
 #define ACPI_DBG2_ARM_SBSA_GENERIC  0x000E
 #define ACPI_DBG2_ARM_DCC           0x000F
 #define ACPI_DBG2_BCM2835           0x0010
+#define ACPI_DBG2_SDM845_1_8432MHZ  0x0011
+#define ACPI_DBG2_16550_WITH_GAS    0x0012
+#define ACPI_DBG2_SDM845_7_372MHZ   0x0013
+#define ACPI_DBG2_INTEL_LPSS        0x0014

#define ACPI_DBG2_1394_STANDARD 0x0000

--
2.29.0

#3 lore raw

Re: [PATCH 1/2] ACPICA: Add new DBG2 Serial Port Subtypes

Hi,

czw., 15 lip 2021 o 16:07 Moore, Robert <[email protected]> napisał(a):

Quoted 3 lines

This was already reported (with a patch that we've already merged) by semihalf-wojtas-marcin

I'm not sure to be aware of the process. Reported where? Are you planning to import the upstream patch on your own and I should rebase the SPCR driver change on top once it lands?

Best regards,
Marcin

Quoted 61 lines

-----Original Message-----
From: Marcin Wojtas <[email protected]>
Sent: Wednesday, July 14, 2021 2:44 PM
To: [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Moore, Robert <[email protected]>; Marcin Wojtas <[email protected]>
Subject: [PATCH 1/2] ACPICA: Add new DBG2 Serial Port Subtypes

ACPICA commit d95c7d206b5836c7770e8e9cd613859887fded8f

The Microsoft Debug Port Table 2 (DBG2) specification revision September 21, 2020 comprises additional Serial Port Subtypes [1]. Reflect that in the actbl1.h header file.

[1] https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/acpi-debug-port-table

---
 include/acpi/actbl1.h | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
include/acpi/actbl1.h +15 -2
@@ -482,7 +482,7 @@ struct acpi_csrt_descriptor {
  * DBG2 - Debug Port Table 2
  *        Version 0 (Both main table and subtables)
  *
- * Conforms to "Microsoft Debug Port Table 2 (DBG2)", December 10, 2015
+ * Conforms to "Microsoft Debug Port Table 2 (DBG2)", September 21,
+ 2020
  *
  ******************************************************************************/
@@ -532,11 +532,24 @@ struct acpi_dbg2_device {
 
 #define ACPI_DBG2_16550_COMPATIBLE  0x0000
 #define ACPI_DBG2_16550_SUBSET      0x0001
+#define ACPI_DBG2_MAX311XE_SPI      0x0002
 #define ACPI_DBG2_ARM_PL011         0x0003
+#define ACPI_DBG2_MSM8X60           0x0004
+#define ACPI_DBG2_16550_NVIDIA      0x0005
+#define ACPI_DBG2_TI_OMAP           0x0006
+#define ACPI_DBG2_APM88XXXX         0x0008
+#define ACPI_DBG2_MSM8974           0x0009
+#define ACPI_DBG2_SAM5250           0x000A
+#define ACPI_DBG2_INTEL_USIF        0x000B
+#define ACPI_DBG2_IMX6              0x000C
 #define ACPI_DBG2_ARM_SBSA_32BIT    0x000D
 #define ACPI_DBG2_ARM_SBSA_GENERIC  0x000E
 #define ACPI_DBG2_ARM_DCC           0x000F
 #define ACPI_DBG2_BCM2835           0x0010
+#define ACPI_DBG2_SDM845_1_8432MHZ  0x0011
+#define ACPI_DBG2_16550_WITH_GAS    0x0012
+#define ACPI_DBG2_SDM845_7_372MHZ   0x0013
+#define ACPI_DBG2_INTEL_LPSS        0x0014
 
 #define ACPI_DBG2_1394_STANDARD     0x0000
 
--

2.29.0

#4 lore raw

RE: [PATCH 1/2] ACPICA: Add new DBG2 Serial Port Subtypes

The patch was posted as a pull request on our github site.

The merged patch will be released as part of the normal ACPICA release process, which will then make it into Linux. You should then rebase. Bob

-----Original Message-----
From: Marcin Wojtas <mw(a)semihalf.com>
Sent: Thursday, July 15, 2021 7:17 AM
To: Moore, Robert <robert.moore(a)intel.com>
Cc: linux-kernel(a)vger.kernel.org; linux-acpi(a)vger.kernel.org; devel(a)acpica.org; jaz(a)semihalf.com; gjb(a)semihalf.com; upstream(a)semihalf.com; Samer.El-Haj-Mahmoud(a)arm.com; jon(a)solid-run.com; tn(a)semihalf.com; rjw(a)rjwysocki.net; lenb(a)kernel.org
Subject: Re: [PATCH 1/2] ACPICA: Add new DBG2 Serial Port Subtypes

Hi,

czw., 15 lip 2021 o 16:07 Moore, Robert <robert.moore(a)intel.com> napisał(a):

Quoted 4 lines

This was already reported (with a patch that we've already merged) by semihalf-wojtas-marcin

I'm not sure to be aware of the process. Reported where?
Are you planning to import the upstream patch on your own and I should rebase the SPCR driver change on top once it lands?

Best regards,
Marcin

Quoted 71 lines

-----Original Message-----
From: Marcin Wojtas <mw(a)semihalf.com>
Sent: Wednesday, July 14, 2021 2:44 PM
To: linux-kernel(a)vger.kernel.org; linux-acpi(a)vger.kernel.org; devel(a)acpica.org
Cc: jaz(a)semihalf.com; gjb(a)semihalf.com; upstream(a)semihalf.com; Samer.El-Haj-Mahmoud(a)arm.com; jon(a)solid-run.com; tn(a)semihalf.com; rjw(a)rjwysocki.net; lenb(a)kernel.org; Moore, Robert <robert.moore(a)intel.com>; Marcin Wojtas <mw(a)semihalf.com>
Subject: [PATCH 1/2] ACPICA: Add new DBG2 Serial Port Subtypes

ACPICA commit d95c7d206b5836c7770e8e9cd613859887fded8f

The Microsoft Debug Port Table 2 (DBG2) specification revision September 21, 2020 comprises additional Serial Port Subtypes [1]. Reflect that in the actbl1.h header file.

[1]
https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/acpi
-debug-port-table

Signed-off-by Marcin Wojtas <mw(a)semihalf.com>
---
 include/acpi/actbl1.h | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
include/acpi/actbl1.h index renamed from include/acpi/actbl1.h +0 -0

ef2872dea01c..7bbb3e2bd33f 100644

include/acpi/actbl1.h +0 -1
@@ -482,7 +482,7 @@ struct acpi_csrt_descriptor {
  * DBG2 - Debug Port Table 2
  *        Version 0 (Both main table and subtables)
  *
- * Conforms to "Microsoft Debug Port Table 2 (DBG2)", December 10, 

2015
+ * Conforms to "Microsoft Debug Port Table 2 (DBG2)", September 21,
+ 2020
*

**********************************************************************
********/

include/acpi/actbl1.h +13 -1
@@ -532,11 +532,24 @@ struct acpi_dbg2_device {
 
 #define ACPI_DBG2_16550_COMPATIBLE  0x0000
 #define ACPI_DBG2_16550_SUBSET      0x0001
+#define ACPI_DBG2_MAX311XE_SPI      0x0002
 #define ACPI_DBG2_ARM_PL011         0x0003
+#define ACPI_DBG2_MSM8X60           0x0004
+#define ACPI_DBG2_16550_NVIDIA      0x0005
+#define ACPI_DBG2_TI_OMAP           0x0006
+#define ACPI_DBG2_APM88XXXX         0x0008
+#define ACPI_DBG2_MSM8974           0x0009
+#define ACPI_DBG2_SAM5250           0x000A
+#define ACPI_DBG2_INTEL_USIF        0x000B
+#define ACPI_DBG2_IMX6              0x000C
 #define ACPI_DBG2_ARM_SBSA_32BIT    0x000D
 #define ACPI_DBG2_ARM_SBSA_GENERIC  0x000E
 #define ACPI_DBG2_ARM_DCC           0x000F
 #define ACPI_DBG2_BCM2835           0x0010
+#define ACPI_DBG2_SDM845_1_8432MHZ  0x0011
+#define ACPI_DBG2_16550_WITH_GAS    0x0012
+#define ACPI_DBG2_SDM845_7_372MHZ   0x0013
+#define ACPI_DBG2_INTEL_LPSS        0x0014
 
 #define ACPI_DBG2_1394_STANDARD     0x0000
 
--

2.29.0

#5 lore raw

Re: [PATCH 1/2] ACPICA: Add new DBG2 Serial Port Subtypes

czw., 15 lip 2021 o 17:44 Moore, Robert <[email protected]> napisał(a):

Quoted 3 lines

The patch was posted as a pull request on our github site.

I'm aware of that, semihalf-wojtas-marcin is me :)

Quoted 1 line

The merged patch will be released as part of the normal ACPICA release process, which will then make it into Linux. You should then rebase.

Ok, thanks for explanation. When approximately can this happen?

Best regards,
Marcin

Quoted 96 lines

Bob

-----Original Message-----
From: Marcin Wojtas <[email protected]>
Sent: Thursday, July 15, 2021 7:17 AM
To: Moore, Robert <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/2] ACPICA: Add new DBG2 Serial Port Subtypes

Hi,

czw., 15 lip 2021 o 16:07 Moore, Robert <[email protected]> napisał(a):

Quoted 4 lines

This was already reported (with a patch that we've already merged) by semihalf-wojtas-marcin

I'm not sure to be aware of the process. Reported where?
Are you planning to import the upstream patch on your own and I should rebase the SPCR driver change on top once it lands?

Best regards,
Marcin

Quoted 71 lines

-----Original Message-----
From: Marcin Wojtas <[email protected]>
Sent: Wednesday, July 14, 2021 2:44 PM
To: [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Moore, Robert <[email protected]>; Marcin Wojtas <[email protected]>
Subject: [PATCH 1/2] ACPICA: Add new DBG2 Serial Port Subtypes

ACPICA commit d95c7d206b5836c7770e8e9cd613859887fded8f

The Microsoft Debug Port Table 2 (DBG2) specification revision September 21, 2020 comprises additional Serial Port Subtypes [1]. Reflect that in the actbl1.h header file.

[1]
https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/acpi
-debug-port-table

---
 include/acpi/actbl1.h | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
include/acpi/actbl1.h index renamed from include/acpi/actbl1.h +0 -0

ef2872dea01c..7bbb3e2bd33f 100644

include/acpi/actbl1.h +0 -1
@@ -482,7 +482,7 @@ struct acpi_csrt_descriptor {
  * DBG2 - Debug Port Table 2
  *        Version 0 (Both main table and subtables)
  *
- * Conforms to "Microsoft Debug Port Table 2 (DBG2)", December 10,

2015
+ * Conforms to "Microsoft Debug Port Table 2 (DBG2)", September 21,
+ 2020
*

**********************************************************************
********/

include/acpi/actbl1.h +13 -1
@@ -532,11 +532,24 @@ struct acpi_dbg2_device {
 
 #define ACPI_DBG2_16550_COMPATIBLE  0x0000
 #define ACPI_DBG2_16550_SUBSET      0x0001
+#define ACPI_DBG2_MAX311XE_SPI      0x0002
 #define ACPI_DBG2_ARM_PL011         0x0003
+#define ACPI_DBG2_MSM8X60           0x0004
+#define ACPI_DBG2_16550_NVIDIA      0x0005
+#define ACPI_DBG2_TI_OMAP           0x0006
+#define ACPI_DBG2_APM88XXXX         0x0008
+#define ACPI_DBG2_MSM8974           0x0009
+#define ACPI_DBG2_SAM5250           0x000A
+#define ACPI_DBG2_INTEL_USIF        0x000B
+#define ACPI_DBG2_IMX6              0x000C
 #define ACPI_DBG2_ARM_SBSA_32BIT    0x000D
 #define ACPI_DBG2_ARM_SBSA_GENERIC  0x000E
 #define ACPI_DBG2_ARM_DCC           0x000F
 #define ACPI_DBG2_BCM2835           0x0010
+#define ACPI_DBG2_SDM845_1_8432MHZ  0x0011
+#define ACPI_DBG2_16550_WITH_GAS    0x0012
+#define ACPI_DBG2_SDM845_7_372MHZ   0x0013
+#define ACPI_DBG2_INTEL_LPSS        0x0014
 
 #define ACPI_DBG2_1394_STANDARD     0x0000
 
--

2.29.0

#6 lore raw

RE: [PATCH 1/2] ACPICA: Add new DBG2 Serial Port Subtypes

-----Original Message-----
From: Marcin Wojtas <mw(a)semihalf.com>
Sent: Thursday, July 15, 2021 8:47 AM
To: Moore, Robert <robert.moore(a)intel.com>
Cc: linux-kernel(a)vger.kernel.org; linux-acpi(a)vger.kernel.org; devel(a)acpica.org; jaz(a)semihalf.com; gjb(a)semihalf.com; upstream(a)semihalf.com; Samer.El-Haj-Mahmoud(a)arm.com; jon(a)solid-run.com; tn(a)semihalf.com; rjw(a)rjwysocki.net; lenb(a)kernel.org
Subject: Re: [PATCH 1/2] ACPICA: Add new DBG2 Serial Port Subtypes

czw., 15 lip 2021 o 17:44 Moore, Robert <robert.moore(a)intel.com> napisał(a):

Quoted 3 lines

The patch was posted as a pull request on our github site.

I'm aware of that, semihalf-wojtas-marcin is me :)

Quoted 1 line

The merged patch will be released as part of the normal ACPICA release process, which will then make it into Linux. You should then rebase.

Ok, thanks for explanation. When approximately can this happen?

About the end of the month
Bob

Best regards,
Marcin

Quoted 101 lines

Bob

-----Original Message-----
From: Marcin Wojtas <mw(a)semihalf.com>
Sent: Thursday, July 15, 2021 7:17 AM
To: Moore, Robert <robert.moore(a)intel.com>
Cc: linux-kernel(a)vger.kernel.org; linux-acpi(a)vger.kernel.org; devel(a)acpica.org; jaz(a)semihalf.com; gjb(a)semihalf.com; upstream(a)semihalf.com; Samer.El-Haj-Mahmoud(a)arm.com; jon(a)solid-run.com; tn(a)semihalf.com; rjw(a)rjwysocki.net; lenb(a)kernel.org
Subject: Re: [PATCH 1/2] ACPICA: Add new DBG2 Serial Port Subtypes

Hi,

czw., 15 lip 2021 o 16:07 Moore, Robert <robert.moore(a)intel.com> napisał(a):

Quoted 4 lines

This was already reported (with a patch that we've already merged) by semihalf-wojtas-marcin

I'm not sure to be aware of the process. Reported where?
Are you planning to import the upstream patch on your own and I should rebase the SPCR driver change on top once it lands?

Best regards,
Marcin

Quoted 73 lines

-----Original Message-----
From: Marcin Wojtas <mw(a)semihalf.com>
Sent: Wednesday, July 14, 2021 2:44 PM
To: linux-kernel(a)vger.kernel.org; linux-acpi(a)vger.kernel.org; devel(a)acpica.org
Cc: jaz(a)semihalf.com; gjb(a)semihalf.com; upstream(a)semihalf.com; Samer.El-Haj-Mahmoud(a)arm.com; jon(a)solid-run.com; tn(a)semihalf.com; rjw(a)rjwysocki.net; lenb(a)kernel.org; Moore, Robert <robert.moore(a)intel.com>; Marcin Wojtas <mw(a)semihalf.com>
Subject: [PATCH 1/2] ACPICA: Add new DBG2 Serial Port Subtypes

ACPICA commit d95c7d206b5836c7770e8e9cd613859887fded8f

The Microsoft Debug Port Table 2 (DBG2) specification revision September 21, 2020 comprises additional Serial Port Subtypes [1]. Reflect that in the actbl1.h header file.

[1]
https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/ac
pi
-debug-port-table

Signed-off-by Marcin Wojtas <mw(a)semihalf.com>
---
 include/acpi/actbl1.h | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
include/acpi/actbl1.h index renamed from include/acpi/actbl1.h +0 -0

ef2872dea01c..7bbb3e2bd33f 100644

include/acpi/actbl1.h +0 -1
@@ -482,7 +482,7 @@ struct acpi_csrt_descriptor {
  * DBG2 - Debug Port Table 2
  *        Version 0 (Both main table and subtables)
  *
- * Conforms to "Microsoft Debug Port Table 2 (DBG2)", December 10,

2015
+ * Conforms to "Microsoft Debug Port Table 2 (DBG2)", September 21,
+ 2020
*

********************************************************************
**
********/

include/acpi/actbl1.h +13 -1
@@ -532,11 +532,24 @@ struct acpi_dbg2_device {
 
 #define ACPI_DBG2_16550_COMPATIBLE  0x0000
 #define ACPI_DBG2_16550_SUBSET      0x0001
+#define ACPI_DBG2_MAX311XE_SPI      0x0002
 #define ACPI_DBG2_ARM_PL011         0x0003
+#define ACPI_DBG2_MSM8X60           0x0004
+#define ACPI_DBG2_16550_NVIDIA      0x0005
+#define ACPI_DBG2_TI_OMAP           0x0006
+#define ACPI_DBG2_APM88XXXX         0x0008
+#define ACPI_DBG2_MSM8974           0x0009
+#define ACPI_DBG2_SAM5250           0x000A
+#define ACPI_DBG2_INTEL_USIF        0x000B
+#define ACPI_DBG2_IMX6              0x000C
 #define ACPI_DBG2_ARM_SBSA_32BIT    0x000D
 #define ACPI_DBG2_ARM_SBSA_GENERIC  0x000E
 #define ACPI_DBG2_ARM_DCC           0x000F
 #define ACPI_DBG2_BCM2835           0x0010
+#define ACPI_DBG2_SDM845_1_8432MHZ  0x0011
+#define ACPI_DBG2_16550_WITH_GAS    0x0012
+#define ACPI_DBG2_SDM845_7_372MHZ   0x0013
+#define ACPI_DBG2_INTEL_LPSS        0x0014
 
 #define ACPI_DBG2_1394_STANDARD     0x0000
 
--

2.29.0

#7 lore raw

PATCH 2/2 ACPI: SPCR: Add support for the new 16550-compatible Serial Port Subtype

In reply to Marcin Wojtas

The Microsoft Debug Port Table 2 (DBG2) specification revision May 31, 2017 added definition of the 16550-compatible Serial Port Subtype with parameters defined in Generic Address Structure (GAS) [1]

Add its support in the SPCR table parsing routine.

[1] https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/acpi-debug-port-table

---
 drivers/acpi/spcr.c | 1 +
 1 file changed, 1 insertion(+)
drivers/acpi/spcr.c +1 -0
index 88460bacd5ae..25c2d0be953e 100644
@@ -136,6 +136,7 @@ int __init acpi_parse_spcr(bool enable_earlycon, bool enable_console)
 		break;
 	case ACPI_DBG2_16550_COMPATIBLE:
 	case ACPI_DBG2_16550_SUBSET:
+	case ACPI_DBG2_16550_WITH_GAS:
 		uart = "uart";
 		break;
 	default:
Signature · 1 line
2.29.0
maintainer Applied
#8 lore raw

Re: [PATCH 2/2] ACPI: SPCR: Add support for the new 16550-compatible Serial Port Subtype

Quoted 19 lines · Marcin Wojtas

The Microsoft Debug Port Table 2 (DBG2) specification revision May 31, 2017 added definition of the 16550-compatible Serial Port Subtype with parameters defined in Generic Address Structure (GAS) [1]

Add its support in the SPCR table parsing routine.

[1] https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/acpi-debug-port-table

Signed-off-by Marcin Wojtas <mw(a)semihalf.com>
---
 drivers/acpi/spcr.c | 1 +
 1 file changed, 1 insertion(+)
drivers/acpi/spcr.c +0 -0
index 88460bacd5ae..25c2d0be953e 100644

drivers/acpi/spcr.c int __init acpi_parse_spcr(bool enable_earlycon, bool enable_console)

Quoted 8 lines
drivers/acpi/spcr.c +1 -1
@@ -136,6 +136,7 @@ int __init acpi_parse_spcr(bool enable_earlycon, bool enable_console)
                break;
        case ACPI_DBG2_16550_COMPATIBLE:
        case ACPI_DBG2_16550_SUBSET:
+       case ACPI_DBG2_16550_WITH_GAS:
                uart = "uart";
                break;
        default:
--

Applied as 5.15 material, thanks!