Skip to contentSkip to conversation

Microsoft Surface Pro 11 support

PATCH Applied Dale Whinham 9 participants 28 messages Jul 14, 2025 – Jul 18, 2025

Subsystems (12)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Microsoft Surface Pro 11 support

This series brings support for the X1E80100/X1P64100-based Microsoft Surface Pro 11.

Patches 7 to 9 are included as RFC as we are unsure of how best to achieve the required functionality, however the implementation is functional.

Dale Whinham (6):
dt-bindings: display: panel: samsung,atna30dw01: document ATNA30DW01
firmware: qcom: scm: allow QSEECOM on Surface Pro 11 platform/surface: aggregator_registry: Add Surface Pro 11
arm64: dts: qcom: Add support for Surface Pro 11
wifi: ath12k: Add support for disabling rfkill via devicetree
arm64: dts: qcom: x1e80100-denali: Disable rfkill for wifi0

Jérôme de Bretagne (3):
dt-bindings: arm: qcom: Document Microsoft Surface Pro 11 drm/msm/dp: Work around bogus maximum link rate
dt-bindings: wireless: ath12k: Add disable-rfkill property

 .../devicetree/bindings/arm/qcom.yaml         |    1 +
 .../display/panel/samsung,atna33xc20.yaml     |    2 +
 .../bindings/net/wireless/qcom,ath12k.yaml    |    3 +
 arch/arm64/boot/dts/qcom/Makefile             |    1 +
 .../dts/qcom/x1e80100-microsoft-denali.dts    | 1341 +++++++++++++++++
 drivers/firmware/qcom/qcom_scm.c              |    1 +
 drivers/gpu/drm/msm/dp/dp_panel.c             |   13 +
 drivers/net/wireless/ath/ath12k/core.c        |    3 +
 .../surface/surface_aggregator_registry.c     |   18 +
 9 files changed, 1383 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/x1e80100-microsoft-denali.dts
Signature · 1 line
2.50.1
#1 lore raw

PATCH 1/9 dt-bindings: arm: qcom: Document Microsoft Surface Pro 11

From: Jérôme de Bretagne <[email protected]>

Add the compatible for the Qualcomm X1-based Microsoft Surface Pro 11, using its Denali codename.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
index 6260839fe972..2b02619e665f 100644
@@ -1135,6 +1135,7 @@ properties:
               - dell,xps13-9345
               - hp,omnibook-x14
               - lenovo,yoga-slim7x
+              - microsoft,denali
               - microsoft,romulus13
               - microsoft,romulus15
               - qcom,x1e80100-crd
Signature · 1 line
2.50.1
maintainer Acked-by on v1 1/9
#2 lore raw

Re: [PATCH 1/9] dt-bindings: arm: qcom: Document Microsoft Surface Pro 11

Quoted 11 lines · Dale Whinham

From: Jérôme de Bretagne <[email protected]>

Add the compatible for the Qualcomm X1-based Microsoft Surface Pro 11, using its Denali codename.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
 1 file changed, 1 insertion(+)
#3 lore raw

PATCH 2/9 dt-bindings: display: panel: samsung,atna30dw01: document ATNA30DW01

In reply to Dale Whinham

The Samsung ATNA30DW01 panel is a 13" AMOLED eDP panel. It is similar to the ATNA33XC20 except that it is smaller and has a higher resolution.

---
 .../devicetree/bindings/display/panel/samsung,atna33xc20.yaml   | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/display/panel/samsung,atna33xc20.yaml +2 -0
index 31f0c0f038e4..e36659340ef3 100644
@@ -19,6 +19,8 @@ properties:
       - const: samsung,atna33xc20
       - items:
           - enum:
+              # Samsung 13" 3K (2880×1920 pixels) eDP AMOLED panel
+              - samsung,atna30dw01
               # Samsung 14" WQXGA+ (2880×1800 pixels) eDP AMOLED panel
               - samsung,atna40yk20
               # Samsung 14.5" WQXGA+ (2880x1800 pixels) eDP AMOLED panel
Signature · 1 line
2.50.1
Reviewed-by on v1 2/9
#4 lore raw

Re: [PATCH 2/9] dt-bindings: display: panel: samsung,atna30dw01: document ATNA30DW01

Hi,

Quoted 9 lines · Dale Whinham

The Samsung ATNA30DW01 panel is a 13" AMOLED eDP panel. It is similar to the ATNA33XC20 except that it is smaller and has a higher resolution.

---
 .../devicetree/bindings/display/panel/samsung,atna33xc20.yaml   | 2 ++
 1 file changed, 2 insertions(+)
maintainer Acked-by on v1 2/9
#5 lore raw

Re: [PATCH 2/9] dt-bindings: display: panel: samsung,atna30dw01: document ATNA30DW01

In reply to Dale Whinham
Quoted 9 lines · Dale Whinham

The Samsung ATNA30DW01 panel is a 13" AMOLED eDP panel. It is similar to the ATNA33XC20 except that it is smaller and has a higher resolution.

---
 .../devicetree/bindings/display/panel/samsung,atna33xc20.yaml   | 2 ++
 1 file changed, 2 insertions(+)
#6 lore raw

Re: [PATCH 2/9] dt-bindings: display: panel: samsung,atna30dw01: document ATNA30DW01

Hi,

Quoted 6 lines · Rob Herring (Arm)
Quoted 3 lines · Dale Whinham

The Samsung ATNA30DW01 panel is a 13" AMOLED eDP panel. It is similar to the ATNA33XC20 except that it is smaller and has a higher resolution.

Quoted 8 lines
Quoted 6 lines
---
 .../devicetree/bindings/display/panel/samsung,atna33xc20.yaml   | 2 ++
 1 file changed, 2 insertions(+)

Pushed to drm-misc-next:

[2/9] dt-bindings: display: panel: samsung,atna30dw01: document ATNA30DW01

      commit: 0bcc0f5e98bebd05e44261df3c33d274084eab60

Given how many of these we're up to now, I'm starting to wonder if we should come up with a generic compatible like we did with "edp-panel" and then we can stop having to merge CLs like this. All of these Samsung OLED eDP panels have the same power up sequence and once we do that then we can read them via EDID or via DP AUX bus to identify which specific panel we have and if they need additional tweaking, just like we do with "edp-panel". Do DT folks have any opinion about that? Coming up with a name would be a pain since I wouldn't want to assert that all future Samsung OLED eDP panels will have the same powerup sequence. Maybe "samsung,amoled-edp-panel-v1" even though that sounds terrible and there's no known need for a "-v2"?

-Doug

#7 lore raw

PATCH 3/9 firmware: qcom: scm: allow QSEECOM on Surface Pro 11

In reply to Dale Whinham

Enables access to EFI variables on this machine.

---
 drivers/firmware/qcom/qcom_scm.c | 1 +
 1 file changed, 1 insertion(+)
drivers/firmware/qcom/qcom_scm.c +1 -0
index fc4d67e4c4a6..595c9c100af1 100644
@@ -1995,6 +1995,7 @@ static const struct of_device_id qcom_scm_qseecom_allowlist[] __maybe_unused = {
 	{ .compatible = "lenovo,yoga-slim7x" },
 	{ .compatible = "microsoft,arcata", },
 	{ .compatible = "microsoft,blackrock" },
+	{ .compatible = "microsoft,denali", },
 	{ .compatible = "microsoft,romulus13", },
 	{ .compatible = "microsoft,romulus15", },
 	{ .compatible = "qcom,sc8180x-primus" },
Signature · 1 line
2.50.1
#8 lore raw

PATCH 4/9 platform/surface: aggregator_registry: Add Surface Pro 11

In reply to Dale Whinham

This enables support for the X1E-based Surface Pro 11.

---
 .../surface/surface_aggregator_registry.c      | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
drivers/platform/surface/surface_aggregator_registry.c +18 -0
index a594d5fcfcfd..e08d029e0856 100644
@@ -406,6 +406,22 @@ static const struct software_node *ssam_node_group_sp9_5g[] = {
 	NULL,
 };
 
+/* Devices for Surface Pro 11 (ARM/QCOM) */
+static const struct software_node *ssam_node_group_sp11[] = {
+	&ssam_node_root,
+	&ssam_node_hub_kip,
+	&ssam_node_bat_ac,
+	&ssam_node_bat_main,
+	&ssam_node_tmp_sensors,
+	&ssam_node_hid_kip_keyboard,
+	&ssam_node_hid_kip_penstash,
+	&ssam_node_hid_kip_touchpad,
+	&ssam_node_hid_kip_fwupd,
+	&ssam_node_hid_sam_sensors,
+	&ssam_node_kip_tablet_switch,
+	NULL,
+};
+
 /* -- SSAM platform/meta-hub driver. ---------------------------------------- */
 
 static const struct acpi_device_id ssam_platform_hub_acpi_match[] = {
@@ -485,6 +501,8 @@ static const struct of_device_id ssam_platform_hub_of_match[] __maybe_unused = {
 	/* Surface Laptop 7 */
 	{ .compatible = "microsoft,romulus13", (void *)ssam_node_group_sl7 },
 	{ .compatible = "microsoft,romulus15", (void *)ssam_node_group_sl7 },
+	/* Surface Pro 11 */
+	{ .compatible = "microsoft,denali", (void *)ssam_node_group_sp11 },
 	{ },
 };
 
Signature · 1 line
2.50.1
maintainer Reviewed-by on v1 4/9
#9 lore raw

Re: [PATCH 4/9] platform/surface: aggregator_registry: Add Surface Pro 11

Quoted 4 lines · Dale Whinham

This enables support for the X1E-based Surface Pro 11.

Looks good to me. Thanks!

Quoted 40 lines
---
  .../surface/surface_aggregator_registry.c      | 18 ++++++++++++++++++
  1 file changed, 18 insertions(+)
drivers/platform/surface/surface_aggregator_registry.c +18 -0
index a594d5fcfcfd..e08d029e0856 100644
@@ -406,6 +406,22 @@ static const struct software_node *ssam_node_group_sp9_5g[] = {
  	NULL,
  };
 
+/* Devices for Surface Pro 11 (ARM/QCOM) */
+static const struct software_node *ssam_node_group_sp11[] = {
+	&ssam_node_root,
+	&ssam_node_hub_kip,
+	&ssam_node_bat_ac,
+	&ssam_node_bat_main,
+	&ssam_node_tmp_sensors,
+	&ssam_node_hid_kip_keyboard,
+	&ssam_node_hid_kip_penstash,
+	&ssam_node_hid_kip_touchpad,
+	&ssam_node_hid_kip_fwupd,
+	&ssam_node_hid_sam_sensors,
+	&ssam_node_kip_tablet_switch,
+	NULL,
+};
+
  /* -- SSAM platform/meta-hub driver. ---------------------------------------- */
 
  static const struct acpi_device_id ssam_platform_hub_acpi_match[] = {
@@ -485,6 +501,8 @@ static const struct of_device_id ssam_platform_hub_of_match[] __maybe_unused = {
  	/* Surface Laptop 7 */
  	{ .compatible = "microsoft,romulus13", (void *)ssam_node_group_sl7 },
  	{ .compatible = "microsoft,romulus15", (void *)ssam_node_group_sl7 },
+	/* Surface Pro 11 */
+	{ .compatible = "microsoft,denali", (void *)ssam_node_group_sp11 },
  	{ },
  };
 
#10 lore raw

PATCH 5/9 arm64: dts: qcom: Add support for Surface Pro 11

In reply to Dale Whinham

Add a device tree for the Qualcomm X1E-based Microsoft Surface Pro 11 (codenamed 'Denali').

This device is very similar to the Surface Laptop 7 ('Romulus').

Hardware support is similar to other X1E machines. The most notable features missing are:

- Touchscreen and pen
- Cameras (and status LEDs)

---
 arch/arm64/boot/dts/qcom/Makefile             |    1 +
 .../dts/qcom/x1e80100-microsoft-denali.dts    | 1339 +++++++++++++++++
 2 files changed, 1340 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/x1e80100-microsoft-denali.dts
arch/arm64/boot/dts/qcom/Makefile +1 -0
index 710879d94c00..98707a3e86e7 100644
@@ -296,6 +296,7 @@ dtb-$(CONFIG_ARCH_QCOM)	+= x1e80100-crd.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= x1e80100-dell-xps13-9345.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= x1e80100-hp-omnibook-x14.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= x1e80100-lenovo-yoga-slim7x.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= x1e80100-microsoft-denali.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= x1e80100-microsoft-romulus13.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= x1e80100-microsoft-romulus15.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= x1e80100-qcp.dtb
arch/arm64/boot/dts/qcom/x1e80100-microsoft-denali.dts new file +1339 -0

1,339 lines not on this page · raw message

Signature · 1 line
2.50.1
#11 lore raw

PATCH 6/9 drm/msm/dp: Work around bogus maximum link rate

In reply to Dale Whinham

From: Jérôme de Bretagne <[email protected]>

The OLED display in the Surface Pro 11 reports a maximum link rate of zero in its DPCD, causing it to fail to probe correctly.

The Surface Pro 11's DSDT table contains some XML with an "EDPOverrideDPCDCaps" block that defines the max link rate as 0x1E (8.1Gbps/HBR3).

Add a quirk to conditionally override the max link rate if its value is zero specifically for this model.

---
 drivers/gpu/drm/msm/dp/dp_panel.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)
drivers/gpu/drm/msm/dp/dp_panel.c +13 -0
index 4e8ab75c771b..b2e65b987c05 100644
@@ -11,6 +11,8 @@
 #include <drm/drm_of.h>
 #include <drm/drm_print.h>
 
+#include <linux/dmi.h>
+
 #define DP_MAX_NUM_DP_LANES	4
 #define DP_LINK_RATE_HBR2	540000 /* kbytes */
 
@@ -58,6 +60,17 @@ static int msm_dp_panel_read_dpcd(struct msm_dp_panel *msm_dp_panel)
 	if (rc)
 		return rc;
 
+	/*
+	 * for some reason the ATNA30DW01-1 OLED panel in the Surface Pro 11
+	 * reports a max link rate of 0 in the DPCD. Fix it to match the
+	 * EDPOverrideDPCDCaps string found in the ACPI DSDT
+	 */
+	if (dpcd[DP_MAX_LINK_RATE] == 0 &&
+	    dmi_match(DMI_SYS_VENDOR, "Microsoft Corporation") &&
+	    dmi_match(DMI_PRODUCT_NAME, "Microsoft Surface Pro, 11th Edition")) {
+		dpcd[1] = DP_LINK_BW_8_1;
+	}
+
 	msm_dp_panel->vsc_sdp_supported = drm_dp_vsc_sdp_supported(panel->aux, dpcd);
 	link_info = &msm_dp_panel->link_info;
 	link_info->revision = dpcd[DP_DPCD_REV];
Signature · 1 line
2.50.1
#12 lore raw

Re: [PATCH 6/9] drm/msm/dp: Work around bogus maximum link rate

Quoted 36 lines · Dale Whinham

From: Jérôme de Bretagne <[email protected]>

The OLED display in the Surface Pro 11 reports a maximum link rate of zero in its DPCD, causing it to fail to probe correctly.

The Surface Pro 11's DSDT table contains some XML with an "EDPOverrideDPCDCaps" block that defines the max link rate as 0x1E (8.1Gbps/HBR3).

Add a quirk to conditionally override the max link rate if its value is zero specifically for this model.

---
 drivers/gpu/drm/msm/dp/dp_panel.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)
drivers/gpu/drm/msm/dp/dp_panel.c +2 -0
index 4e8ab75c771b..b2e65b987c05 100644
@@ -11,6 +11,8 @@
 #include <drm/drm_of.h>
 #include <drm/drm_print.h>
 
+#include <linux/dmi.h>
+
 #define DP_MAX_NUM_DP_LANES    4
 #define DP_LINK_RATE_HBR2      540000 /* kbytes */
 
@@ -58,6 +60,17 @@ static int msm_dp_panel_read_dpcd(struct msm_dp_panel *msm_dp_panel)
        if (rc)
                return rc;
 

drivers/gpu/drm/msm/dp/dp_panel.c static int msm_dp_panel_read_dpcd(struct msm_dp_panel *msm_dp_panel) · line 72

Quoted 10 lines
drivers/gpu/drm/msm/dp/dp_panel.c +10 -0
+       /*
+        * for some reason the ATNA30DW01-1 OLED panel in the Surface Pro 11
+        * reports a max link rate of 0 in the DPCD. Fix it to match the
+        * EDPOverrideDPCDCaps string found in the ACPI DSDT
+        */
+       if (dpcd[DP_MAX_LINK_RATE] == 0 &&
+           dmi_match(DMI_SYS_VENDOR, "Microsoft Corporation") &&
+           dmi_match(DMI_PRODUCT_NAME, "Microsoft Surface Pro, 11th Edition")) {
+               dpcd[1] = DP_LINK_BW_8_1;
+       }

Not a dp expert myself, but..

In drm_dp_helpers.c there is dpcd_quirk_list[].. which applies quirks based on the oui ("Organizational Unique ID") of the dp sink. I think this would be the correct way to handle this. Although I guess you'll need to add a new quirk for this.

Idk if the surface pro 11 has multiple different panel options. If so you defn wouldn't want to match on the DMI.

BR,
-R

Quoted 7 lines
drivers/gpu/drm/msm/dp/dp_panel.c +1 -1
+
        msm_dp_panel->vsc_sdp_supported = drm_dp_vsc_sdp_supported(panel->aux, dpcd);
        link_info = &msm_dp_panel->link_info;
        link_info->revision = dpcd[DP_DPCD_REV];
--

2.50.1

#13 lore raw

Re: [PATCH 6/9] drm/msm/dp: Work around bogus maximum link rate

Quoted 56 lines · Rob Clark
Quoted 36 lines · Dale Whinham

From: Jérôme de Bretagne <[email protected]>

The OLED display in the Surface Pro 11 reports a maximum link rate of zero in its DPCD, causing it to fail to probe correctly.

The Surface Pro 11's DSDT table contains some XML with an "EDPOverrideDPCDCaps" block that defines the max link rate as 0x1E (8.1Gbps/HBR3).

Add a quirk to conditionally override the max link rate if its value is zero specifically for this model.

---
 drivers/gpu/drm/msm/dp/dp_panel.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)
drivers/gpu/drm/msm/dp/dp_panel.c +2 -0
index 4e8ab75c771b..b2e65b987c05 100644
@@ -11,6 +11,8 @@
 #include <drm/drm_of.h>
 #include <drm/drm_print.h>
 
+#include <linux/dmi.h>
+
 #define DP_MAX_NUM_DP_LANES    4
 #define DP_LINK_RATE_HBR2      540000 /* kbytes */
 
@@ -58,6 +60,17 @@ static int msm_dp_panel_read_dpcd(struct msm_dp_panel *msm_dp_panel)
        if (rc)
                return rc;
 

drivers/gpu/drm/msm/dp/dp_panel.c static int msm_dp_panel_read_dpcd(struct msm_dp_panel *msm_dp_panel) · line 72

Quoted 10 lines
drivers/gpu/drm/msm/dp/dp_panel.c +10 -0
+       /*
+        * for some reason the ATNA30DW01-1 OLED panel in the Surface Pro 11
+        * reports a max link rate of 0 in the DPCD. Fix it to match the
+        * EDPOverrideDPCDCaps string found in the ACPI DSDT
+        */
+       if (dpcd[DP_MAX_LINK_RATE] == 0 &&
+           dmi_match(DMI_SYS_VENDOR, "Microsoft Corporation") &&
+           dmi_match(DMI_PRODUCT_NAME, "Microsoft Surface Pro, 11th Edition")) {
+               dpcd[1] = DP_LINK_BW_8_1;
+       }

Not a dp expert myself, but..

In drm_dp_helpers.c there is dpcd_quirk_list[].. which applies quirks based on the oui ("Organizational Unique ID") of the dp sink. I think this would be the correct way to handle this. Although I guess you'll need to add a new quirk for this.

Quoted 5 lines

Idk if the surface pro 11 has multiple different panel options. If so you defn wouldn't want to match on the DMI.

BR,
-R

Thanks Rob for the feedback, I have a working implementation based on your suggestion with a new quirk, we will switch to it in V2.

Best,
Jérôme

Quoted 7 lines
Quoted 7 lines
drivers/gpu/drm/msm/dp/dp_panel.c +1 -1
+
        msm_dp_panel->vsc_sdp_supported = drm_dp_vsc_sdp_supported(panel->aux, dpcd);
        link_info = &msm_dp_panel->link_info;
        link_info->revision = dpcd[DP_DPCD_REV];
--

2.50.1

#14 lore raw

Re: [PATCH 6/9] drm/msm/dp: Work around bogus maximum link rate

In reply to Dale Whinham
Quoted 36 lines · Dale Whinham

From: Jérôme de Bretagne <[email protected]>

The OLED display in the Surface Pro 11 reports a maximum link rate of zero in its DPCD, causing it to fail to probe correctly.

The Surface Pro 11's DSDT table contains some XML with an "EDPOverrideDPCDCaps" block that defines the max link rate as 0x1E (8.1Gbps/HBR3).

Add a quirk to conditionally override the max link rate if its value is zero specifically for this model.

---
  drivers/gpu/drm/msm/dp/dp_panel.c | 13 +++++++++++++
  1 file changed, 13 insertions(+)
drivers/gpu/drm/msm/dp/dp_panel.c +3 -0
index 4e8ab75c771b..b2e65b987c05 100644
@@ -11,6 +11,8 @@
  #include <drm/drm_of.h>
  #include <drm/drm_print.h>
 
+#include <linux/dmi.h>
+
  #define DP_MAX_NUM_DP_LANES	4
  #define DP_LINK_RATE_HBR2	540000 /* kbytes */
 
@@ -58,6 +60,17 @@ static int msm_dp_panel_read_dpcd(struct msm_dp_panel *msm_dp_panel)
  	if (rc)
  		return rc;
 
+	/*

drivers/gpu/drm/msm/dp/dp_panel.c static int msm_dp_panel_read_dpcd(struct msm_dp_panel *msm_dp_panel) · line 73

Quoted 10 lines
drivers/gpu/drm/msm/dp/dp_panel.c +10 -0
+	 * for some reason the ATNA30DW01-1 OLED panel in the Surface Pro 11
+	 * reports a max link rate of 0 in the DPCD. Fix it to match the
+	 * EDPOverrideDPCDCaps string found in the ACPI DSDT
+	 */
+	if (dpcd[DP_MAX_LINK_RATE] == 0 &&
+	    dmi_match(DMI_SYS_VENDOR, "Microsoft Corporation") &&
+	    dmi_match(DMI_PRODUCT_NAME, "Microsoft Surface Pro, 11th Edition")) {
+		dpcd[1] = DP_LINK_BW_8_1;
+	}
+

My Galaxy Book4 Edge with the ATNA60CL07-0 panel also reports a max link rate of 0. But I think eDP v1.4 panels need a different way to retrieve supported links rates, which could be found in the amdgpu [1], i915 [2] and nouveau [3] drivers.

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c#n2098
[2]: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/drm/i915/display/intel_dp.c#n4281
[3]: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/drm/nouveau/nouveau_dp.c#n101

Quoted 3 lines
drivers/gpu/drm/msm/dp/dp_panel.c +0 -0
  	msm_dp_panel->vsc_sdp_supported = drm_dp_vsc_sdp_supported(panel->aux, dpcd);
  	link_info = &msm_dp_panel->link_info;
  	link_info->revision = dpcd[DP_DPCD_REV];
Signature · 2 lines
Best regards,
Xilin Wu <[email protected]>
#15 lore raw

Re: [PATCH 6/9] drm/msm/dp: Work around bogus maximum link rate

Quoted 37 lines · Xilin Wu
Quoted 35 lines · Dale Whinham

From: Jérôme de Bretagne <[email protected]>

The OLED display in the Surface Pro 11 reports a maximum link rate of zero in its DPCD, causing it to fail to probe correctly.

The Surface Pro 11's DSDT table contains some XML with an "EDPOverrideDPCDCaps" block that defines the max link rate as 0x1E (8.1Gbps/HBR3).

Add a quirk to conditionally override the max link rate if its value is zero specifically for this model.

---
  drivers/gpu/drm/msm/dp/dp_panel.c | 13 +++++++++++++
  1 file changed, 13 insertions(+)
drivers/gpu/drm/msm/dp/dp_panel.c +2 -0
index 4e8ab75c771b..b2e65b987c05 100644
@@ -11,6 +11,8 @@
  #include <drm/drm_of.h>
  #include <drm/drm_print.h>
 
+#include <linux/dmi.h>
+
  #define DP_MAX_NUM_DP_LANES 4
  #define DP_LINK_RATE_HBR2   540000 /* kbytes */
 
@@ -58,6 +60,17 @@ static int msm_dp_panel_read_dpcd(struct msm_dp_panel *msm_dp_panel)
      if (rc)
              return rc;
 
Quoted 16 lines

drivers/gpu/drm/msm/dp/dp_panel.c static int msm_dp_panel_read_dpcd(struct msm_dp_panel *msm_dp_panel) · line 73

Quoted 11 lines
drivers/gpu/drm/msm/dp/dp_panel.c +11 -0
+     /*
+      * for some reason the ATNA30DW01-1 OLED panel in the Surface Pro 11
+      * reports a max link rate of 0 in the DPCD. Fix it to match the
+      * EDPOverrideDPCDCaps string found in the ACPI DSDT
+      */
+     if (dpcd[DP_MAX_LINK_RATE] == 0 &&
+         dmi_match(DMI_SYS_VENDOR, "Microsoft Corporation") &&
+         dmi_match(DMI_PRODUCT_NAME, "Microsoft Surface Pro, 11th Edition")) {
+             dpcd[1] = DP_LINK_BW_8_1;
+     }
+

My Galaxy Book4 Edge with the ATNA60CL07-0 panel also reports a max link rate of 0. But I think eDP v1.4 panels need a different way to retrieve supported links rates, which could be found in the amdgpu [1], i915 [2] and nouveau [3] drivers.

Thanks Xilin for the sharing and pointers into 3 other drivers, that would explain the current limitation for Adreno GPUs. Fixing it would require a big contribution independent of the actual SP11 enablement.

Is it a feature planned in the short-medium term within the MSM driver? If not, would a quirk like [4] be acceptable upstream in the meanwhile?

[4] https://github.com/JeromeDeBretagne/linux-surface-pro-11/commit/d265cfb

Thanks a lot,
Jérôme

Quoted 16 lines

[1]:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c#n2098
[2]:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/drm/i915/display/intel_dp.c#n4281
[3]:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/drm/nouveau/nouveau_dp.c#n101

drivers/gpu/drm/msm/dp/dp_panel.c static int msm_dp_panel_read_dpcd(struct msm_dp_panel *msm_dp_panel) · line 76

Quoted 3 lines
drivers/gpu/drm/msm/dp/dp_panel.c +0 -0
      msm_dp_panel->vsc_sdp_supported = drm_dp_vsc_sdp_supported(panel->aux, dpcd);
      link_info = &msm_dp_panel->link_info;
      link_info->revision = dpcd[DP_DPCD_REV];

--
Best regards,
Xilin Wu <[email protected]>

#16 lore raw

Re: [PATCH 6/9] drm/msm/dp: Work around bogus maximum link rate

Quoted 55 lines · Jérôme de Bretagne
Quoted 37 lines · Xilin Wu
Quoted 35 lines · Dale Whinham

From: Jérôme de Bretagne <[email protected]>

The OLED display in the Surface Pro 11 reports a maximum link rate of zero in its DPCD, causing it to fail to probe correctly.

The Surface Pro 11's DSDT table contains some XML with an "EDPOverrideDPCDCaps" block that defines the max link rate as 0x1E (8.1Gbps/HBR3).

Add a quirk to conditionally override the max link rate if its value is zero specifically for this model.

---
  drivers/gpu/drm/msm/dp/dp_panel.c | 13 +++++++++++++
  1 file changed, 13 insertions(+)
drivers/gpu/drm/msm/dp/dp_panel.c +2 -0
index 4e8ab75c771b..b2e65b987c05 100644
@@ -11,6 +11,8 @@
  #include <drm/drm_of.h>
  #include <drm/drm_print.h>
 
+#include <linux/dmi.h>
+
  #define DP_MAX_NUM_DP_LANES 4
  #define DP_LINK_RATE_HBR2   540000 /* kbytes */
 
@@ -58,6 +60,17 @@ static int msm_dp_panel_read_dpcd(struct msm_dp_panel *msm_dp_panel)
      if (rc)
              return rc;
 
Quoted 16 lines

drivers/gpu/drm/msm/dp/dp_panel.c static int msm_dp_panel_read_dpcd(struct msm_dp_panel *msm_dp_panel) · line 73

Quoted 11 lines
drivers/gpu/drm/msm/dp/dp_panel.c +11 -0
+     /*
+      * for some reason the ATNA30DW01-1 OLED panel in the Surface Pro 11
+      * reports a max link rate of 0 in the DPCD. Fix it to match the
+      * EDPOverrideDPCDCaps string found in the ACPI DSDT
+      */
+     if (dpcd[DP_MAX_LINK_RATE] == 0 &&
+         dmi_match(DMI_SYS_VENDOR, "Microsoft Corporation") &&
+         dmi_match(DMI_PRODUCT_NAME, "Microsoft Surface Pro, 11th Edition")) {
+             dpcd[1] = DP_LINK_BW_8_1;
+     }
+

My Galaxy Book4 Edge with the ATNA60CL07-0 panel also reports a max link rate of 0. But I think eDP v1.4 panels need a different way to retrieve supported links rates, which could be found in the amdgpu [1], i915 [2] and nouveau [3] drivers.

Quoted 3 lines

Thanks Xilin for the sharing and pointers into 3 other drivers, that would explain the current limitation for Adreno GPUs. Fixing it would require a big contribution independent of the actual SP11 enablement.

FWIW Adreno is a wholly separate (from DPU - the display engine) block

Quoted 3 lines

Is it a feature planned in the short-medium term within the MSM driver? If not, would a quirk like [4] be acceptable upstream in the meanwhile?

I'm not a display guy, but this looks like yet another block of code begging to be commonized across DP drivers, so I wouldn't expect it to be a big blocker.

Adding a panel quirk doesn't seem in order, as the panel is /probably/ very much in spec, and it's the driver bit that's missing.

Konrad

Quoted 25 lines

[4] https://github.com/JeromeDeBretagne/linux-surface-pro-11/commit/d265cfb

Thanks a lot,
Jérôme

Quoted 16 lines

[1]:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c#n2098
[2]:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/drm/i915/display/intel_dp.c#n4281
[3]:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/drm/nouveau/nouveau_dp.c#n101

drivers/gpu/drm/msm/dp/dp_panel.c static int msm_dp_panel_read_dpcd(struct msm_dp_panel *msm_dp_panel) · line 76

Quoted 3 lines
drivers/gpu/drm/msm/dp/dp_panel.c +0 -0
      msm_dp_panel->vsc_sdp_supported = drm_dp_vsc_sdp_supported(panel->aux, dpcd);
      link_info = &msm_dp_panel->link_info;
      link_info->revision = dpcd[DP_DPCD_REV];

--
Best regards,
Xilin Wu <[email protected]>

#17 lore raw

Re: [PATCH 6/9] drm/msm/dp: Work around bogus maximum link rate

Quoted 57 lines · Konrad Dybcio
Quoted 55 lines · Jérôme de Bretagne
Quoted 53 lines · Xilin Wu
Quoted 36 lines · Dale Whinham

From: Jérôme de Bretagne <[email protected]>

The OLED display in the Surface Pro 11 reports a maximum link rate of zero in its DPCD, causing it to fail to probe correctly.

The Surface Pro 11's DSDT table contains some XML with an "EDPOverrideDPCDCaps" block that defines the max link rate as 0x1E (8.1Gbps/HBR3).

Add a quirk to conditionally override the max link rate if its value is zero specifically for this model.

---
  drivers/gpu/drm/msm/dp/dp_panel.c | 13 +++++++++++++
  1 file changed, 13 insertions(+)
drivers/gpu/drm/msm/dp/dp_panel.c +3 -0
index 4e8ab75c771b..b2e65b987c05 100644
@@ -11,6 +11,8 @@
  #include <drm/drm_of.h>
  #include <drm/drm_print.h>
 
+#include <linux/dmi.h>
+
  #define DP_MAX_NUM_DP_LANES 4
  #define DP_LINK_RATE_HBR2   540000 /* kbytes */
 
@@ -58,6 +60,17 @@ static int msm_dp_panel_read_dpcd(struct msm_dp_panel *msm_dp_panel)
      if (rc)
              return rc;
 
+     /*

drivers/gpu/drm/msm/dp/dp_panel.c static int msm_dp_panel_read_dpcd(struct msm_dp_panel *msm_dp_panel) · line 73

Quoted 10 lines
drivers/gpu/drm/msm/dp/dp_panel.c +10 -0
+      * for some reason the ATNA30DW01-1 OLED panel in the Surface Pro 11
+      * reports a max link rate of 0 in the DPCD. Fix it to match the
+      * EDPOverrideDPCDCaps string found in the ACPI DSDT
+      */
+     if (dpcd[DP_MAX_LINK_RATE] == 0 &&
+         dmi_match(DMI_SYS_VENDOR, "Microsoft Corporation") &&
+         dmi_match(DMI_PRODUCT_NAME, "Microsoft Surface Pro, 11th Edition")) {
+             dpcd[1] = DP_LINK_BW_8_1;
+     }
+

My Galaxy Book4 Edge with the ATNA60CL07-0 panel also reports a max link rate of 0. But I think eDP v1.4 panels need a different way to retrieve supported links rates, which could be found in the amdgpu [1], i915 [2] and nouveau [3] drivers.

Quoted 5 lines
Quoted 3 lines

Thanks Xilin for the sharing and pointers into 3 other drivers, that would explain the current limitation for Adreno GPUs. Fixing it would require a big contribution independent of the actual SP11 enablement.

FWIW Adreno is a wholly separate (from DPU - the display engine) block

Thanks Konrad, indeed I should have referred to the display engine.

Quoted 6 lines
Quoted 3 lines

Is it a feature planned in the short-medium term within the MSM driver? If not, would a quirk like [4] be acceptable upstream in the meanwhile?

I'm not a display guy, but this looks like yet another block of code begging to be commonized across DP drivers,

I agree 100% in principle, but the 3 implementations are different today.

Quoted 1 line

so I wouldn't expect it to be a big blocker.

Well, it is for me :)

Quoted 2 lines

Adding a panel quirk doesn't seem in order, as the panel is /probably/ very much in spec, and it's the driver bit that's missing.

I agree that a quirk shouldn't be needed. I guess we'll work on upstreaming everything else and keep an out-of-tree patch for this issue for the moment That's a bit sad as this will block regular users from easily installing / testing via the Ubuntu Concept ISO for instance.

Or could the quirk be accepted temporarily with good comments then reverted when the driver adds the missing support? I guess it would depend on the time scale of this support landing.

Cheers,
Jérôme

Quoted 27 lines

Konrad

Quoted 25 lines

[4] https://github.com/JeromeDeBretagne/linux-surface-pro-11/commit/d265cfb

Thanks a lot,
Jérôme

Quoted 16 lines

[1]:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c#n2098
[2]:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/drm/i915/display/intel_dp.c#n4281
[3]:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/drm/nouveau/nouveau_dp.c#n101

drivers/gpu/drm/msm/dp/dp_panel.c static int msm_dp_panel_read_dpcd(struct msm_dp_panel *msm_dp_panel) · line 76

Quoted 3 lines
drivers/gpu/drm/msm/dp/dp_panel.c +0 -0
      msm_dp_panel->vsc_sdp_supported = drm_dp_vsc_sdp_supported(panel->aux, dpcd);
      link_info = &msm_dp_panel->link_info;
      link_info->revision = dpcd[DP_DPCD_REV];

--
Best regards,
Xilin Wu <[email protected]>

#18 lore raw

Re: [PATCH 6/9] drm/msm/dp: Work around bogus maximum link rate

Quoted 25 lines · Jérôme de Bretagne
Quoted 23 lines · Konrad Dybcio
Quoted 21 lines · Jérôme de Bretagne
Quoted 20 lines · Xilin Wu
Quoted 18 lines · Dale Whinham

From: Jérôme de Bretagne <[email protected]>

The OLED display in the Surface Pro 11 reports a maximum link rate of zero in its DPCD, causing it to fail to probe correctly.

The Surface Pro 11's DSDT table contains some XML with an "EDPOverrideDPCDCaps" block that defines the max link rate as 0x1E (8.1Gbps/HBR3).

Add a quirk to conditionally override the max link rate if its value is zero specifically for this model.

---
  drivers/gpu/drm/msm/dp/dp_panel.c | 13 +++++++++++++
  1 file changed, 13 insertions(+)

[...]

Quoted 23 lines
Quoted 7 lines
Quoted 4 lines

Is it a feature planned in the short-medium term within the MSM driver? If not, would a quirk like [4] be acceptable upstream in the meanwhile?

I'm not a display guy, but this looks like yet another block of code begging to be commonized across DP drivers,

I agree 100% in principle, but the 3 implementations are different today.

Quoted 1 line

so I wouldn't expect it to be a big blocker.

Well, it is for me :)

Quoted 2 lines

Adding a panel quirk doesn't seem in order, as the panel is /probably/ very much in spec, and it's the driver bit that's missing.

I agree that a quirk shouldn't be needed. I guess we'll work on upstreaming everything else and keep an out-of-tree patch for this issue for the moment That's a bit sad as this will block regular users from easily installing / testing via the Ubuntu Concept ISO for instance.

Quoted 3 lines

Or could the quirk be accepted temporarily with good comments then reverted when the driver adds the missing support? I guess it would depend on the time scale of this support landing.

Unforutunately, there is more than that. We should also be writing the LINK_RATE_SET register. So, just setting the max_bw is not enough.

Signature · 2 lines
With best wishes
Dmitry
#19 lore raw

Re: [PATCH 6/9] drm/msm/dp: Work around bogus maximum link rate

Quoted 11 lines · Dmitry Baryshkov
Quoted 10 lines · Jérôme de Bretagne
Quoted 8 lines · Konrad Dybcio
Quoted 6 lines · Jérôme de Bretagne
Quoted 5 lines · Xilin Wu
Quoted 3 lines · Dale Whinham

From: Jérôme de Bretagne <[email protected]>

The OLED display in the Surface Pro 11 reports a maximum link rate

of

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

zero in its DPCD, causing it to fail to probe correctly.

The Surface Pro 11's DSDT table contains some XML with an "EDPOverrideDPCDCaps" block that defines the max link rate as 0x1E (8.1Gbps/HBR3).

Add a quirk to conditionally override the max link rate if its

value

Quoted 9 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

is zero specifically for this model.

---
  drivers/gpu/drm/msm/dp/dp_panel.c | 13 +++++++++++++
  1 file changed, 13 insertions(+)
Quoted 5 lines

[...]

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Is it a feature planned in the short-medium term within the MSM

driver?

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

If not, would a quirk like [4] be acceptable upstream in the

meanwhile?

Quoted 19 lines
Quoted 19 lines
Quoted 3 lines

I'm not a display guy, but this looks like yet another block of code begging to be commonized across DP drivers,

I agree 100% in principle, but the 3 implementations are different today.

Quoted 1 line

so I wouldn't expect it to be a big blocker.

Well, it is for me :)

Quoted 2 lines

Adding a panel quirk doesn't seem in order, as the panel is /probably/ very much in spec, and it's the driver bit that's missing.

I agree that a quirk shouldn't be needed. I guess we'll work on upstreaming everything else and keep an out-of-tree patch for this issue for the moment That's a bit sad as this will block regular users from easily installing / testing via the Ubuntu Concept ISO for instance.

Quoted 6 lines
Quoted 3 lines

Or could the quirk be accepted temporarily with good comments then reverted when the driver adds the missing support? I guess it would depend on the time scale of this support landing.

Unforutunately, there is more than that. We should also be writing the LINK_RATE_SET register. So, just setting the max_bw is not enough.

Maybe I've misunderstood. When you say max_bw is not enough, are you talking about some future driver changes or about a potential shorter-term fix?

I can confirm that this initial simple patch (and also the updated one reusing the quirk list [4]) is enough to get the SP11 OLED display working whereas it doesn't probe and remains off without such a fix.

Thanks,
Jérôme

[4] https://github.com/JeromeDeBretagne/linux-surface-pro-11/commit/d265cfb

Quoted 4 lines

--
With best wishes
Dmitry

#20 lore raw

Re: [PATCH 6/9] drm/msm/dp: Work around bogus maximum link rate

In reply to Dmitry Baryshkov
Quoted 53 lines · Dmitry Baryshkov
Quoted 25 lines · Jérôme de Bretagne
Quoted 23 lines · Konrad Dybcio
Quoted 21 lines · Jérôme de Bretagne
Quoted 20 lines · Xilin Wu
Quoted 18 lines · Dale Whinham

From: Jérôme de Bretagne <[email protected]>

The OLED display in the Surface Pro 11 reports a maximum link rate of zero in its DPCD, causing it to fail to probe correctly.

The Surface Pro 11's DSDT table contains some XML with an "EDPOverrideDPCDCaps" block that defines the max link rate as 0x1E (8.1Gbps/HBR3).

Add a quirk to conditionally override the max link rate if its value is zero specifically for this model.

---
  drivers/gpu/drm/msm/dp/dp_panel.c | 13 +++++++++++++
  1 file changed, 13 insertions(+)

[...]

Quoted 23 lines
Quoted 7 lines
Quoted 4 lines

Is it a feature planned in the short-medium term within the MSM driver? If not, would a quirk like [4] be acceptable upstream in the meanwhile?

I'm not a display guy, but this looks like yet another block of code begging to be commonized across DP drivers,

I agree 100% in principle, but the 3 implementations are different today.

Quoted 1 line

so I wouldn't expect it to be a big blocker.

Well, it is for me :)

Quoted 2 lines

Adding a panel quirk doesn't seem in order, as the panel is /probably/ very much in spec, and it's the driver bit that's missing.

I agree that a quirk shouldn't be needed. I guess we'll work on upstreaming everything else and keep an out-of-tree patch for this issue for the moment That's a bit sad as this will block regular users from easily installing / testing via the Ubuntu Concept ISO for instance.

Quoted 6 lines
Quoted 3 lines

Or could the quirk be accepted temporarily with good comments then reverted when the driver adds the missing support? I guess it would depend on the time scale of this support landing.

Unforutunately, there is more than that. We should also be writing the LINK_RATE_SET register. So, just setting the max_bw is not enough.

Maybe I've misunderstood. When you say max_bw is not enough, are you talking about some future driver changes or about a potential shorter-term fix?

I can confirm that this initial simple patch (and also the updated one reusing the quirk list [4]) is enough to get the SP11 OLED display working whereas it doesn't probe and remains off without such a fix.

Thanks,
Jérôme

[4] https://github.com/JeromeDeBretagne/linux-surface-pro-11/commit/d265cfb

Quoted 3 lines

--
With best wishes
Dmitry

#21 lore raw

Re: [PATCH 6/9] drm/msm/dp: Work around bogus maximum link rate

Quoted 62 lines · Jérôme de Bretagne
Quoted 53 lines · Dmitry Baryshkov
Quoted 25 lines · Jérôme de Bretagne
Quoted 23 lines · Konrad Dybcio
Quoted 21 lines · Jérôme de Bretagne
Quoted 20 lines · Xilin Wu
Quoted 18 lines · Dale Whinham

From: Jérôme de Bretagne <[email protected]>

The OLED display in the Surface Pro 11 reports a maximum link rate of zero in its DPCD, causing it to fail to probe correctly.

The Surface Pro 11's DSDT table contains some XML with an "EDPOverrideDPCDCaps" block that defines the max link rate as 0x1E (8.1Gbps/HBR3).

Add a quirk to conditionally override the max link rate if its value is zero specifically for this model.

---
   drivers/gpu/drm/msm/dp/dp_panel.c | 13 +++++++++++++
   1 file changed, 13 insertions(+)

[...]

Quoted 23 lines
Quoted 7 lines
Quoted 4 lines

Is it a feature planned in the short-medium term within the MSM driver? If not, would a quirk like [4] be acceptable upstream in the meanwhile?

I'm not a display guy, but this looks like yet another block of code begging to be commonized across DP drivers,

I agree 100% in principle, but the 3 implementations are different today.

Quoted 1 line

so I wouldn't expect it to be a big blocker.

Well, it is for me :)

Quoted 2 lines

Adding a panel quirk doesn't seem in order, as the panel is /probably/ very much in spec, and it's the driver bit that's missing.

I agree that a quirk shouldn't be needed. I guess we'll work on upstreaming everything else and keep an out-of-tree patch for this issue for the moment That's a bit sad as this will block regular users from easily installing / testing via the Ubuntu Concept ISO for instance.

Quoted 6 lines
Quoted 3 lines

Or could the quirk be accepted temporarily with good comments then reverted when the driver adds the missing support? I guess it would depend on the time scale of this support landing.

Unforutunately, there is more than that. We should also be writing the LINK_RATE_SET register. So, just setting the max_bw is not enough.

Quoted 7 lines

Maybe I've misunderstood. When you say max_bw is not enough, are you talking about some future driver changes or about a potential shorter-term fix?

I can confirm that this initial simple patch (and also the updated one reusing the quirk list [4]) is enough to get the SP11 OLED display working whereas it doesn't probe and remains off without such a fix.

These parts were changed in eDP 1.4 and then 1.5, but basically, if MAX_LINK_RATE is 0, the driver should also write LINK_RATE_SET register. See how it's handled by the intel or AMD drivers.

Quoted 8 lines

Thanks,
Jérôme

[4] https://github.com/JeromeDeBretagne/linux-surface-pro-11/commit/d265cfb

Quoted 3 lines

--
With best wishes
Dmitry

Signature · 2 lines
With best wishes
Dmitry
#22 lore raw

RFC PATCH 7/9 dt-bindings: wireless: ath12k: Add disable-rfkill property

In reply to Dale Whinham

From: Jérôme de Bretagne <[email protected]>

Document the disable-rfkill property.

---
 .../devicetree/bindings/net/wireless/qcom,ath12k.yaml          | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/net/wireless/qcom,ath12k.yaml +3 -0
index 9e557cb838c7..f15b630fb034 100644
@@ -48,6 +48,9 @@ properties:
   vddpcie1p8-supply:
     description: VDD_PCIE_1P8 supply regulator handle
 
+  disable-rfkill:
+    type: boolean
+
 required:
   - compatible
   - reg
Signature · 1 line
2.50.1
#23 lore raw

Re: [PATCH 7/9 RFC] dt-bindings: wireless: ath12k: Add disable-rfkill property

Quoted 3 lines · Dale Whinham

From: Jérôme de Bretagne <[email protected]>

Document the disable-rfkill property.

Why? What does it mean? Why are you describing Linux driver firmware in the DT?

Quoted 24 lines
---
 .../devicetree/bindings/net/wireless/qcom,ath12k.yaml          | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/net/wireless/qcom,ath12k.yaml +3 -0
index 9e557cb838c7..f15b630fb034 100644
@@ -48,6 +48,9 @@ properties:
   vddpcie1p8-supply:
     description: VDD_PCIE_1P8 supply regulator handle
 
+  disable-rfkill:
+    type: boolean
+
 required:
   - compatible
   - reg
Signature · 1 line
2.50.1
Signature · 2 lines
With best wishes
Dmitry
#24 lore raw

Re: [PATCH 7/9 RFC] dt-bindings: wireless: ath12k: Add disable-rfkill property

Quoted 8 lines · Dmitry Baryshkov
Quoted 3 lines · Dale Whinham

From: Jérôme de Bretagne <[email protected]>

Document the disable-rfkill property.

Why? What does it mean? Why are you describing Linux driver firmware in the DT?

rfkill should be disabled according to the Surface Pro 11's DSDT.

https://lore.kernel.org/all/[email protected]/
has added support to read the ACPI bitflag when ACPI is supported.

The idea was to expose one specific feature (DISABLE_RFKILL_BIT) for devices described with a DT, so that the feature can be disabled.

Quoted 28 lines
Quoted 22 lines
---
 .../devicetree/bindings/net/wireless/qcom,ath12k.yaml          | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/net/wireless/qcom,ath12k.yaml +3 -1
index 9e557cb838c7..f15b630fb034 100644
@@ -48,6 +48,9 @@ properties:
   vddpcie1p8-supply:
     description: VDD_PCIE_1P8 supply regulator handle
 
+  disable-rfkill:
+    type: boolean
+
 required:
   - compatible
   - reg
--
Quoted 2 lines

2.50.1

--
With best wishes
Dmitry

maintainer
#25 lore raw

Re: [PATCH 7/9 RFC] dt-bindings: wireless: ath12k: Add disable-rfkill property

Quoted 11 lines · Jérôme de Bretagne
Quoted 8 lines · Dmitry Baryshkov
Quoted 3 lines · Dale Whinham

From: Jérôme de Bretagne <[email protected]>

Document the disable-rfkill property.

Why? What does it mean? Why are you describing Linux driver firmware in the DT?

Quoted 7 lines

rfkill should be disabled according to the Surface Pro 11's DSDT.

https://lore.kernel.org/all/[email protected]/
has added support to read the ACPI bitflag when ACPI is supported.

The idea was to expose one specific feature (DISABLE_RFKILL_BIT) for devices described with a DT, so that the feature can be disabled.

The commit msg should answer all this. That was the purpose of the questions.

Assuming it belongs in DT, why is this ath12k specific? Could be for any wireless chip...

Quoted 27 lines
Quoted 27 lines
Quoted 21 lines
---
 .../devicetree/bindings/net/wireless/qcom,ath12k.yaml          | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/net/wireless/qcom,ath12k.yaml +3 -1
index 9e557cb838c7..f15b630fb034 100644
@@ -48,6 +48,9 @@ properties:
   vddpcie1p8-supply:
     description: VDD_PCIE_1P8 supply regulator handle
 
+  disable-rfkill:
+    type: boolean
+
 required:
   - compatible
   - reg
--
Quoted 2 lines

2.50.1

--
With best wishes
Dmitry

#26 lore raw

RFC PATCH 8/9 wifi: ath12k: Add support for disabling rfkill via devicetree

In reply to Dale Whinham

Some devices (e.g. Microsoft Surface Pro 11) indicate that the rfkill feature should be disabled by means of an ACPI bitflag.

If ACPI is not being used (i.e. booting using a devicetree) then this property will not be read and therefore rfkill may be enabled and the ath12k will be hard-blocked with no way to disable it.

Add a devicetree property that allows us to disable the rfkill feature.

---
 drivers/net/wireless/ath/ath12k/core.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/wireless/ath/ath12k/core.c +3 -0
index 0b2dec081c6e..42a1d384457b 100644
@@ -43,6 +43,9 @@ static int ath12k_core_rfkill_config(struct ath12k_base *ab)
 	if (ath12k_acpi_get_disable_rfkill(ab))
 		return 0;
 
+	if (of_property_read_bool(ab->dev->of_node, "disable-rfkill"))
+		return 0;
+
 	for (i = 0; i < ab->num_radios; i++) {
 		ar = ab->pdevs[i].ar;
 
Signature · 1 line
2.50.1
#27 lore raw

RFC PATCH 9/9 arm64: dts: qcom: x1e80100-denali: Disable rfkill for wifi0

In reply to Dale Whinham

Use the devicetree mechanism for disabling rfkill to do so for Microsoft Surface Pro 11.

---
 arch/arm64/boot/dts/qcom/x1e80100-microsoft-denali.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/x1e80100-microsoft-denali.dts +2 -0
index 8bc3959537ab..18ca83ab637f 100644
@@ -977,6 +977,8 @@ wifi@0 {
 		vddrfa1p8-supply = <&vreg_pmu_rfa_1p8>;
 		vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>;
 		vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>;
+
+		disable-rfkill;
 	};
 };
 
Signature · 1 line
2.50.1