Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3370340rwd; Mon, 29 May 2023 09:23:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4iqey6wJuGwhrpJE4mV2oCybscl+b9VfFC4S15B8GhBU6G+nWDJytaMZ/76sYt2WaTwhYw X-Received: by 2002:a05:6a00:248e:b0:63f:120a:1dc3 with SMTP id c14-20020a056a00248e00b0063f120a1dc3mr339107pfv.0.1685377422172; Mon, 29 May 2023 09:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685377422; cv=none; d=google.com; s=arc-20160816; b=H1P9F93+3sFOmlWYtjGOeUhzAVI0p1lTODyE/PCeN4P0ACRSw8yFHYpOoBZht+F9EH jAqYmgnDNQ8JwUXP9wnVl3wnjnX0pGzyRSEPNrIkpaSIJrIhKEgufzMX+vnkkw8mQwH0 G85qYr7vGRVcCk4riP18EXoQRucHxNprW1buhvmQ9gE1fdJhB5umrqchNCQMqR2Bcq2V no1yegnQ2R5uW5L7TzLMXbBmfvmw07ZJWCFQhtd4HNjtZ4nbKMeb5iDBcxD7iPI7YVbV /gbBIerZrKznA7M3xOJkGEtewlVBe+PyhNKfsOA1S9UrYFCWbRM/PPm0afsHggOk/hL+ 4jXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:cc:to:from :date:references:in-reply-to:message-id:mime-version:user-agent :feedback-id:dkim-signature:dkim-signature; bh=zmFNdCUGHn2uCiz+5qQpRfAFFMQbxQoxap2qHL8X/ms=; b=xqHp6wbxwuNQSdmNVyc14selz9W5bi/cPwAERGPdv+GfYeISZXv3Uf2zkqpIewDnCt qkrAqw7SOq8I2GkcFR6JTjbI2QZXnZvZbs3CvXVqQZTSFjh/H5IiBTTzmseWtCgAwry9 ed6g5HmFCqM3TqR7vtl2B5zZNgUeLZU+chnqlwui4ERP0plI5vzHLaCKTYNN0ep45Z+4 EBBjcgJ/iWbAQx3udqHjtq+ZYq07ZbFFO6LvxV6OBxfJqvQFfCdZwoR7Io8nanmH74ci xGQzTuHy4zvlUCYjLxMpVby3cK4t+BC0aWJEY6TSrSl8lAlnSRpmqyACrN1msnQGwWy7 Hx9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm2 header.b=C8HsizJ7; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=GYSYw4qc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n27-20020a63721b000000b005181ce23024si2926212pgc.896.2023.05.29.09.23.28; Mon, 29 May 2023 09:23:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm2 header.b=C8HsizJ7; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=GYSYw4qc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229679AbjE2QLW (ORCPT + 99 others); Mon, 29 May 2023 12:11:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229607AbjE2QLV (ORCPT ); Mon, 29 May 2023 12:11:21 -0400 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C08BDA3; Mon, 29 May 2023 09:11:19 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 061413200923; Mon, 29 May 2023 12:11:18 -0400 (EDT) Received: from imap52 ([10.202.2.102]) by compute5.internal (MEProxy); Mon, 29 May 2023 12:11:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=squebb.ca; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1685376678; x=1685463078; bh=zmFNdCUGHn2uCiz+5qQpRfAFFMQbxQoxap2 qHL8X/ms=; b=C8HsizJ7uHz8yNXOwpjTIeOaBKpIlfdzpPkWDnKe39J134TjyDc pYUf8cH1TQb5m8WGTas9sWREUbvDqp5lbUooRI6zQipUjFobox3+QZ3roD5M/x2R 6uxtwTMCQsrqWiTXu84QF6VsIKYy+tMRDX7CgJFcyZCLqzF2IuQffTUNw4BYvC3c mfRxftZlKZKoTC+d1DpAqGn+uwCSRzORf7x3YvsaCzrDn1z1bsqHXLFX3rKWILx9 WhIZCU0BuOaYG2bNRVx0evq3NqKneT/gtwsOBUBCStaooeIZfEEyM54vRBiiBd+v 6WO3OpILwhry9oY6Bfktp1gLToWbOTH4N/A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1685376678; x=1685463078; bh=zmFNdCUGHn2uCiz+5qQpRfAFFMQbxQoxap2 qHL8X/ms=; b=GYSYw4qckWZe1ciWw1mw/TGOlFlcjy4V/u7xraqB5h1I724mX4x oXRt+j9RQTlVhytOOtT0A6ntngY9lfK6T0Y1hjML4rTDQvwDP4c0WY5BBgtXSItK lVFkc3BKxzmRUyXobJaUi7KLbd21r12Hikk8B2y2Q8SqMZ9A+BxCvkJtXfbKfnTO idtbMFhxhwqVLrlR3kY0SRu/7JZg9/glzreStOfGvrk1KH9yJQ9aUSh3pfJ//MfN hhXaMGE9XxvQ0loCJ4IhWUnq/KD+3AD9Q80nDa1ymHQnwhYF5QOwJ62k90EqWOPt HURxHq91VLmyAFjryxkY7bKGurZU9qmII/w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeekhedgleejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdfo rghrkhcurfgvrghrshhonhdfuceomhhpvggrrhhsohhnqdhlvghnohhvohesshhquhgvsg gsrdgtrgeqnecuggftrfgrthhtvghrnhephfefgedufeetgfetlefgkefgvdejleelvefg hfejfffhtdeitdejfeekvdeugfeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepmhhpvggrrhhsohhnqdhlvghnohhvohesshhquhgvsggsrdgt rg X-ME-Proxy: Feedback-ID: ibe194615:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 40533C60091; Mon, 29 May 2023 12:11:18 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-441-ga3ab13cd6d-fm-20230517.001-ga3ab13cd Mime-Version: 1.0 Message-Id: In-Reply-To: <3b2dfd18-a6f2-46a6-19dd-4ee95d5e9471@linux.intel.com> References: <20230526171658.3886-1-mpearson-lenovo@squebb.ca> <20230526171658.3886-2-mpearson-lenovo@squebb.ca> <3b2dfd18-a6f2-46a6-19dd-4ee95d5e9471@linux.intel.com> Date: Mon, 29 May 2023 12:10:57 -0400 From: "Mark Pearson" To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= Cc: "Hans de Goede" , "markgross@kernel.org" , "platform-driver-x86@vger.kernel.org" , LKML Subject: Re: [PATCH v3 2/5] platform/x86: think-lmi: Correct System password interface Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 29, 2023, at 11:50 AM, Ilpo J=C3=A4rvinen wrote: > On Mon, 29 May 2023, Mark Pearson wrote: > >> Thanks Ilpo >>=20 >> On Mon, May 29, 2023, at 7:36 AM, Ilpo J=C3=A4rvinen wrote: >> > On Fri, 26 May 2023, Mark Pearson wrote: >> > >> >> The system password identification was incorrect. This means that = if >> >> the password was enabled it wouldn't be detected correctly; and se= tting >> >> it would not work. >> >> Also updated code to use TLMI_SMP_PWD instead of TLMI_SYS_PWD to b= e in >> >> sync with Lenovo documentation. >> >>=20 >> >> Correct these mistakes. >> >>=20 >> >> Signed-off-by: Mark Pearson >> > >> > Missing Fixes tag? >>=20 >> Yes - will add. >>=20 >> > >> >> --- >> >> Changes in v2: >> >> - Updated define name to be SMP_PWD instead of SYS_PWD >> >> - Clarified in comments what each password type is. >> >> Changes in v3: None. Version bump with rest of series >> >>=20 >> >> drivers/platform/x86/think-lmi.c | 14 +++++++------- >> >> 1 file changed, 7 insertions(+), 7 deletions(-) >> >>=20 >> >> diff --git a/drivers/platform/x86/think-lmi.c b/drivers/platform/x= 86/think-lmi.c >> >> index 2745224f62ab..c7e98fbe7c3d 100644 >> >> --- a/drivers/platform/x86/think-lmi.c >> >> +++ b/drivers/platform/x86/think-lmi.c >> >> @@ -168,11 +168,11 @@ MODULE_PARM_DESC(debug_support, "Enable debu= g command support"); >> >> */ >> >> #define LENOVO_CERT_THUMBPRINT_GUID "C59119ED-1C0D-4806-A8E9-59AA= 318176C4" >> >> =20 >> >> -#define TLMI_POP_PWD (1 << 0) >> >> -#define TLMI_PAP_PWD (1 << 1) >> >> -#define TLMI_HDD_PWD (1 << 2) >> >> -#define TLMI_SYS_PWD (1 << 3) >> >> -#define TLMI_CERT (1 << 7) >> >> +#define TLMI_POP_PWD (1 << 0) /* Supervisor */ >> >> +#define TLMI_PAP_PWD (1 << 1) /* Power-on */ >> >> +#define TLMI_HDD_PWD (1 << 2) /* HDD/NVME */ >> >> +#define TLMI_SMP_PWD (1 << 6) /* System Management */ >> >> +#define TLMI_CERT (1 << 7) /* Certificate Based */ >> > >> > Whe you're adding Fixes tag, please make this change minimal by jus= t=20 >> > adding TLMI_SMP_PWD. >> > >> > The rest of these define changes are a good too but it's unrelated = to the=20 >> > actual fix so they should be in a separate patch. And once you move= it=20 >> > into own change, convert to BIT() while at it. >>=20 >> I was asked previously to clarify what SMP stood for so added the=20 >> comment and it seemed odd to only clarify one and not the others.=20 >> Can I push back on this request. Doing two separate patches for just=20 >> that doesn't make sense to me. > > I did not mean removing TLMI_SMP_PWD's comment from this patch just to= add=20 > it in the another but the comments to the other bits which should go i= nto=20 > their own patch. The thing here is that fixes should be made minimal t= o=20 > comply with stable rules. > OK....seems odd to me to be honest, but not something I'd lose sleep ov= er.=20 I'll do that in amongst all the other changes. Thanks Mark