Skip to contentSkip to conversation

support thinkpad HKEY interface version 0x200

PATCH In review Shuduo Sang 4 participants 10 messages Mar 11, 2014 – May 26, 2014 4 messages not in the archive x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 support thinkpad HKEY interface version 0x200

Hi,

Please kindly review following patch. It support new BIOS which shiped with Thinkpad X1 Carbon 2nd generation. Without it, hotkey mask be routed to wrong branch and some hot key will not work.

Thanks,
Shuduo

Quoted 1 line

From 3c67b2731a61539363a62284a43b98fa3e2ba784 Mon Sep 17 00:00:00 2001

From: Shuduo Sang <[email protected]>
Date: Tue, 11 Mar 2014 20:13:15 +0800
Subject: [PATCH] support HKEY interface version 0x200

Thinkpad X1 Carbon 2nd generation ships with new BIOS will return HKEY interface version 0x200. It need thinkpad-acpi support otherwise it will be routed to wrong branch and hotkey mask is wrong.

---
 drivers/platform/x86/thinkpad_acpi.c | 39
+++++++++++++++++++++++++++++-------
 1 file changed, 32 insertions(+), 7 deletions(-)
(quoted diff) +0 -0

b/drivers/platform/x86/thinkpad_acpi.c
index defb6af..939fc81 100644

drivers/platform/x86/thinkpad_acpi.c +0 -0
@@ -3244,11 +3244,8 @@ static int __init hotkey_init(struct

ibm_init_struct *iibm)
A30, R30, R31, T20-22, X20-21, X22-24. Detected by checking for HKEY interface version 0x100 */
if (acpi_evalf(hkey_handle, &hkeyv, "MHKV", "qd")) {
- if ((hkeyv >> 8) != 1) {
- pr_err("unknown version of the HKEY interface: 0x%x\n",
- hkeyv);
- pr_err("please report this to %s\n", TPACPI_MAIL);
- } else {
+ switch (hkeyv >> 8) {
+ case 1:
/*
* MHKV 0x100 in A31, R40, R40e,
* T4x, X31, and later
@@ -3261,13 +3258,41 @@ static int __init hotkey_init(struct ibm_init_struct *iibm)
if (!acpi_evalf(hkey_handle, &hotkey_all_mask,
"MHKA", "qd")) {
pr_err("missing MHKA handler, "
- "please report this to %s\n",
- TPACPI_MAIL);
+ "please report this to %s\n",
+ TPACPI_MAIL);
/* Fallback: pre-init for FN+F3,F4,F12 */ hotkey_all_mask = 0x080cU;
} else {
tp_features.hotkey_mask = 1;
}
+ break;
+
+ case 2:
+ /*
+ * MHKV 0x200 in X1
+ */
+ vdbg_printk(TPACPI_DBG_INIT | TPACPI_DBG_HKEY,
+ "firmware HKEY interface version: 0x%x\n",
+ hkeyv);
+
+ /* Paranoia check AND init hotkey_all_mask */
+ if (!acpi_evalf(hkey_handle, &hotkey_all_mask,
+ "MHKA", "dd", 1)) {
+ pr_err("missing MHKA handler, "
+ "please report this to %s\n",
+ TPACPI_MAIL);
+ /* Fallback: pre-init for FN+F3,F4,F12 */
+ hotkey_all_mask = 0x080cU;
+ } else {
+ tp_features.hotkey_mask = 1;
+ }
+ break;
+
+ default:
+ pr_err("unknown version of the HKEY interface: 0x%x\n",
+ hkeyv);
+ pr_err("please report this to %s\n", TPACPI_MAIL);
+ break;
}
}

Signature · 1 line
1.9.0
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Shuduo Sang

Please kindly review following patch. It support new BIOS which shiped with Thinkpad X1 Carbon 2nd generation. Without it, hotkey mask be routed to wrong branch and some hot key will not work.

Can you guys get documentation on the new mode from Lenovo?

Signature · 4 lines
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh
#3 lore raw
In reply to a message not in the archive

On Thu, Apr 3, 2014 at 11:44 PM, Henrique de Moraes Holschuh <hmh-N3TV7GIv+o9fyO9Q7EP/[email protected]

Quoted 11 lines

wrote:

Quoted 3 lines · Shuduo Sang

Please kindly review following patch. It support new BIOS which shiped with Thinkpad X1 Carbon 2nd generation. Without it, hotkey mask be routed to wrong branch and some hot key will not work.

Can you guys get documentation on the new mode from Lenovo?

Yes, actually it's a joint-effort to officially enable X1 carbon 2nd generation by Canonical and Lenovo.

Quoted 7 lines

--
"One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh

------------------------------------------------------------------------------

_______________________________________________
ibm-acpi-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel

#4 lore raw
Quoted 8 lines · Shuduo Sang

On Thu, Apr 3, 2014 at 11:44 PM, Henrique de Moraes Holschuh <[email protected]

Quoted 7 lines

wrote:

Quoted 3 lines · Shuduo Sang

Please kindly review following patch. It support new BIOS which shiped with Thinkpad X1 Carbon 2nd generation. Without it, hotkey mask be routed to wrong branch and some hot key will not work.

Quoted 7 lines
Quoted 4 lines

Can you guys get documentation on the new mode from Lenovo?

Yes, actually it's a joint-effort to officially enable X1 carbon 2nd generation by Canonical and Lenovo.

Ok. Feel free to contact me over private email if required.

Signature · 4 lines
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh
#5 lore raw
In reply to Henrique de Moraes Holschuh

Hi Matthew,

This patch is not in your recent for_linus branch. Why?

Thanks,
Shuduo

Quoted 20 lines · Henrique de Moraes Holschuh
Quoted 3 lines · Shuduo Sang

Please kindly review following patch. It support new BIOS which shiped with Thinkpad X1 Carbon 2nd generation. Without it, hotkey mask be routed to wrong branch and some hot key will not work.

Can you guys get documentation on the new mode from Lenovo?

--
"One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh

------------------------------------------------------------------------------
_______________________________________________
ibm-acpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel

#6 lore raw
Quoted 3 lines · Shuduo Sang

Hi Matthew,

This patch is not in your recent for_linus branch. Why?

I'm sorry, I'd somehow missed it. I'll get it in the next pull.

Signature · 2 lines
Matthew Garrett <[email protected]>
���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m����������?�I�
#7 lore raw

On Fri, Apr 11, 2014 at 9:43 PM, Matthew Garrett <matthew.garrett-05XSO3Yj/[email protected]

Quoted 10 lines

wrote:

Quoted 3 lines · Shuduo Sang

Hi Matthew,

This patch is not in your recent for_linus branch. Why?

I'm sorry, I'd somehow missed it. I'll get it in the next pull.

Thanks!

Quoted 3 lines

--
Matthew Garrett <matthew.garrett-05XSO3Yj/[email protected]>

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees

_______________________________________________
ibm-acpi-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel

#9 lore raw
In reply to a message not in the archive

Hi Matthew,

I see Linus tree version continue to increase but seems you did not ask platform driver tree pull
and my third patch for thinkpad_acpi did not be upstreamed. May I know what cycle you used to
ask Linus pull?

Thanks,
Shuduo

Quoted 7 lines · Shuduo Sang
Quoted 1 line · Matthew Garrett

On Fri, 2014-04-11 at 21:10 +0800, Shuduo Sang wrote:

Quoted 15 lines
Quoted 7 lines
Quoted 3 lines

Hi Matthew,

This patch is not in your recent for_linus branch. Why?

I'm sorry, I'd somehow missed it. I'll get it in the next pull.

Thanks!

Quoted 3 lines

--
Matthew Garrett <matthew.garrett-05XSO3Yj/[email protected]>

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce

_______________________________________________
ibm-acpi-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel

#11 lore raw
In reply to a message not in the archive

Hi Matthew,

Sorry for asking this again.
Just realize previous email was blocked by mailling list rule.

May I know when the platform driver tree will be pulled next time?

Thanks,
Shuduo

Quoted 22 lines · Shuduo Sang

Hi Matthew,

I see Linus tree version continue to increase but seems you did not ask platform driver tree pull and my third patch for thinkpad_acpi did not be upstreamed. May I know what cycle you used to ask Linus pull?

Thanks,
Shuduo

On Fri, Apr 11, 2014 at 9:55 PM, Shuduo Sang <[email protected]> wrote:

On Fri, Apr 11, 2014 at 9:43 PM, Matthew Garrett <matthew.garrett-05XSO3Yj/[email protected]> wrote:

On Fri, 2014-04-11 at 21:10 +0800, Shuduo Sang wrote:
> Hi Matthew,
>
> This patch is not in your recent for_linus branch. Why?

Quoted 11 lines

I'm sorry, I'd somehow missed it. I'll get it in the next pull.

Thanks!

--
Matthew Garrett <matthew.garrett-05XSO3Yj/[email protected]>

------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies. Download your FREE open source Enterprise Search Engine today! Our experts will assist you in its installation for $59/mo, no commitment. Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk

_______________________________________________
ibm-acpi-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel

#13 lore raw
In reply to a message not in the archive

Hi Matthew,

Sorry for asking this again.
Just realize previous email was blocked by mailling list rule.

May I know when the platform driver tree will be pulled next time?

Thanks,
Shuduo

Quoted 34 lines · Shuduo Sang

Hi Matthew,

I see Linus tree version continue to increase but seems you did not ask platform driver tree pull and my third patch for thinkpad_acpi did not be upstreamed. May I know what cycle you used to ask Linus pull?

Thanks,
Shuduo

On Fri, Apr 11, 2014 at 9:55 PM, Shuduo Sang <[email protected]> wrote:

On Fri, Apr 11, 2014 at 9:43 PM, Matthew Garrett <[email protected]> wrote:

On Fri, 2014-04-11 at 21:10 +0800, Shuduo Sang wrote:
> Hi Matthew,
>
> This patch is not in your recent for_linus branch. Why?

I'm sorry, I'd somehow missed it. I'll get it in the next pull.

Thanks!

--
Matthew Garrett <[email protected]>