Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3261222rwd; Mon, 29 May 2023 07:57:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4x9Vl9gwkSFwNS7Fgmhkw1PXmL/cSlZQ78PpVccc2tWzFiolChVSDnxcwnfqH14gc04mMO X-Received: by 2002:a17:902:da90:b0:1ae:5f7e:c117 with SMTP id j16-20020a170902da9000b001ae5f7ec117mr14460982plx.60.1685372254498; Mon, 29 May 2023 07:57:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685372254; cv=none; d=google.com; s=arc-20160816; b=jzpfI2zXd9H23HYvX6C5HPtXnodePctdAfV3PxTRDMmIKJ2KQdNwY+qvnniHMzq/17 Ep6vccWP6QiEZBkTppqgbpQD+g4dS1uQlrboFPvczRlL4UGgJSBDR8kI67kwiHueiJTJ G+rev5sR5h2BHVW4VSb8gTAC1asVDcXc9HshVTBzpvYHZ8Aga5uebGMYpeDlrX5hVMl3 EKz2zOWgJ1krGRRUc64PUEYtihsMf+b/KiGOISTLMATJK50oXSIzFWVfpuSjKHlQ1buq i3uanVaFIMbMJnf0yna6zmx1KgrrFoQyfnQ2f2OV44RKqc/EA+qw5P17lcAmRraOXUBT A8dg== 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=WJxq4N+ZYhuPBmoFeu+Q4lGnhwZGhN4QelhmxlMc/pQ=; b=zodb2HtIwcX8HWj5RzNYTFJPi/bfolvmWZrXgBtmnyFVu+dxTv6l/tTKhqT6ZT+OUr qoVXnjO7xlL/g9n3wLXsoVgol7MgmRe7w7JjQ6zZN8IVboOz7Tc1rzDvhia/Yyt8hVsO M3SkarjrR5dO1hw2IUKwGblXIDKfmxcjjGA++NGipnEVPW2i3YH+nliCxli2v1mmX6tB gBL2y/SZww0yU6T36KcByrm/CrmxFXut605hfAH7glk3b0rRBljD1LcV3rN8QyW/WMpX KNxovpje8OetO2QZUob0zC4yOelzo3WKRWGSHYKxm1/b3X/MPlimxkFmNhEoYHPBC+vY YArg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm2 header.b=3f4nf005; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="fgfo85/Q"; 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 iy10-20020a170903130a00b001ade5e66c39si4433947plb.114.2023.05.29.07.57.22; Mon, 29 May 2023 07:57:34 -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=3f4nf005; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="fgfo85/Q"; 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 S229667AbjE2Op0 (ORCPT + 99 others); Mon, 29 May 2023 10:45:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbjE2OpZ (ORCPT ); Mon, 29 May 2023 10:45:25 -0400 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CB49DE; Mon, 29 May 2023 07:45:20 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 07AA23200908; Mon, 29 May 2023 10:45:17 -0400 (EDT) Received: from imap52 ([10.202.2.102]) by compute5.internal (MEProxy); Mon, 29 May 2023 10:45:18 -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= 1685371517; x=1685457917; bh=WJxq4N+ZYhuPBmoFeu+Q4lGnhwZGhN4Qelh mxlMc/pQ=; b=3f4nf005K7VFu9z3CcuPkq9tUCZm5Zt8q3rRAcJWPvIRQ/EtkAN kV+GAfZpgGUXxApFwS5PT+M9TiaRPc+0kFe2+EPQX1FIhQ1VwzlYUU1Cpgm3DL5+ F0bY0/P2MPbnY0jmw9Dp2hHzJdEaTJceuCgsPT16W/J//5nNHT60qlfofiQN294v 8nm9B/N8YYd0Q41VJsRfbutyJY0a/sJwYu5mIvKmNJhTX0aL/rfRORakyHO8LKks AXIiy6w4ygXdTAxPiUdjKGlgfGEaYJ9GhB9Nd8exWc5ZtcGSWXk05kAxbGoCd4zx yjbWThPpjf6CGK64X2st3S7nF4QKmWUU2aA== 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= 1685371517; x=1685457917; bh=WJxq4N+ZYhuPBmoFeu+Q4lGnhwZGhN4Qelh mxlMc/pQ=; b=fgfo85/Q1BdtHz7YWEywDUdnSEIqgNU4Q58Fwr3IZcg8qsHAg62 GTv6b+tfD2U6/Psn4m/FCh094Jeqy157TEGQiSzTrPygBZtNwq9Sdu3nZV6fzd2n GfbqikyCaeyIaK553P4s08aKUXGjbea9o5j40fIRCRJTwsnelkBoU+zLe78GDe1S 8Y9Po7TlIzBfsh1ne0uMWWP+ToqfueBiEPJ1BFEWsHcq6qLnkcz8EE6GRW8UjGzJ yNsGYiTZwEU9Ax3dP9rfCMiC8bco9cQujJGiV/IWB3l1J78nWUIcs7m5wTahoa/Z CjmOekEjFHzUvWKxlkre/yT9gOvS7sBbDFQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeekhedgjeelucetufdoteggodetrfdotf 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 5BE4FC60091; Mon, 29 May 2023 10:45:17 -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: References: <20230526171658.3886-1-mpearson-lenovo@squebb.ca> <20230526171658.3886-2-mpearson-lenovo@squebb.ca> Date: Mon, 29 May 2023 10:44: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 Thanks Ilpo 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 setti= ng >> it would not work. >> Also updated code to use TLMI_SMP_PWD instead of TLMI_SYS_PWD to be in >> sync with Lenovo documentation. >>=20 >> Correct these mistakes. >>=20 >> Signed-off-by: Mark Pearson > > Missing Fixes tag? Yes - will add. > >> --- >> 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/x86/= 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 debug c= ommand support"); >> */ >> #define LENOVO_CERT_THUMBPRINT_GUID "C59119ED-1C0D-4806-A8E9-59AA318= 176C4" >> =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 just=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. > I was asked previously to clarify what SMP stood for so added the commen= t and it seemed odd to only clarify one and not the others. Can I push back on this request. Doing two separate patches for just tha= t doesn't make sense to me. Thanks for the review Mark