Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9779197pxu; Tue, 29 Dec 2020 05:05:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBJ4g+tNqwZwohi074QYNgTotPlXOaNXnbjPZJXJEx46mxaBd4TIarurB+1tWHlgDkanPw X-Received: by 2002:a17:906:af75:: with SMTP id os21mr46102803ejb.330.1609247120099; Tue, 29 Dec 2020 05:05:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609247120; cv=none; d=google.com; s=arc-20160816; b=R0vMunBi7BaxTdH/uxhha2Pwu7Yb0r/kITX4x6dAn1VUpk1YQemFzCt9x53XyHZoue pTBXc51xf/qjph6/o4l90XxLFLIvukfTSOvCURTUeCgo9YlaXoiQMxcuU1zQ5Z6/M/A9 NMRMWuQ2Oy6cadlTe6kVrTnLWWQmzqpn4W551+zKupc/mt2K8GKxC5EW9ICjH+nVcP0Y lrGx2USDWpwzk3kdqiNjdYK3DBnXJwwd00gWwFOXiDLtHu361ExFLzWojD+TplmNAuJe lkIwx49P4ZIfvYUfA3Yz+FEVdEoU4UEZ591gXVx7PAvMpGrsYTYA7hemk7Ll4SuZBmTI PyKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=pjn+LneJVmwGhQOGBGiWLC2h14YWCosw5bWEWaZiIVI=; b=TblMxuFGHdcByyVn4FOxIWEtthrldv6aMhKu/g9ErymNUzlwTpownUDCZCv8afBzpG sb+nTDJv6bODU+0IBXoiWtX+18wpaHz4AiN6hTfdluKKeMTqOiP1TaPsNT3J7Vw47YwS zAM9bk736Bj7kFnopXbjD6MtX+J+DhKgUBVM7GQKiHgkpMATHa4PEH2dnU1l4Oa5imXL PSBuDQrHODmJ6KgRKblW4R0yw4ln8oI8KokR+42cU61gPN/u7pUf7zLIbPf0vtmeG3xd paHoQtQtckqnZ97hDOPIiSjNbvsbJDGJNx/3EiYcb7Qod72MwGplMDYfgTDX0BzOop1l Q2rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kopjODYj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s2si21617904edr.408.2020.12.29.05.04.56; Tue, 29 Dec 2020 05:05:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kopjODYj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726300AbgL2NCd (ORCPT + 99 others); Tue, 29 Dec 2020 08:02:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:38110 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725979AbgL2NCc (ORCPT ); Tue, 29 Dec 2020 08:02:32 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id CB15D20867; Tue, 29 Dec 2020 13:01:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609246911; bh=jxRpIBnA/TEFkDnlujeZKbR7yvaeen/RJzbWpxWgWM4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=kopjODYjeXAmGXlUnbd4m4aCDTVFEJduxJVBUaBVXJ+j7qnjkzjuR3SttK0rbGIPX frB8RJ3sAI+Vxj3XB12K27KpeLhiXqV9ezF5h+gTAeqmGi0U1fv03cGeIGiUxjx/Yc Moqin18iQ8pSUMzIg/sGLqFUpY4qfNiBlqIlCuf6E9e00LcdEfGHsturpizJOj4SdL ScH0Zs8r5hLaQGwES1ewuIWhCc4WbYeLSI1dQUTOT90igNksAYhCuavZGJVx6oGEG+ a7FzuQwwX8B+uyKvAwqswtwhRuU+8yy3b1RZPrjNCD4jL4GQd0mtk61gMHUXFPQlcQ gOzxmZcwQV33Q== Received: by mail-ot1-f42.google.com with SMTP id i6so11777315otr.2; Tue, 29 Dec 2020 05:01:51 -0800 (PST) X-Gm-Message-State: AOAM530bM7jNoy2Nxo7kwoDgHoEGTwcObhlRvC1Jc+wHkLsPbeO8RhI/ eYaV2Lgm135s8R7VcoeBEoz1GqpZpbt1EXzxZFM= X-Received: by 2002:a9d:12c:: with SMTP id 41mr35377364otu.77.1609246911170; Tue, 29 Dec 2020 05:01:51 -0800 (PST) MIME-Version: 1.0 References: <20201127192051.1430-1-xypron.glpk@gmx.de> In-Reply-To: From: Ard Biesheuvel Date: Tue, 29 Dec 2020 14:01:40 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/1] efi/efi_test: read RuntimeServicesSupported To: Heinrich Schuchardt Cc: Ivan Hu , linux-efi , Linux Kernel Mailing List , Colin King , fwts-devel@lists.ubuntu.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 26 Dec 2020 at 11:16, Heinrich Schuchardt wrote: > > On 11/27/20 8:20 PM, Heinrich Schuchardt wrote: > > Since the UEFI 2.8A specification the UEFI enabled firmware provides a > > configuration table EFI_RT_PROPERTIES_TABLE which indicates which runtime > > services are enabled. The EFI stub reads this table and saves the value of > > the field RuntimeServicesSupported internally. > > > > The Firmware Test Suite requires the value to determine if UEFI runtime > > services are correctly implemented. > > > > With this patch an IOCTL call is provided to read the value of the field > > RuntimeServicesSupported, e.g. > > > > #define EFI_RUNTIME_GET_SUPPORTED_MASK \ > > _IOR('p', 0x0C, unsigned int) > > unsigned int mask; > > fd = open("/dev/efi_test", O_RDWR); > > ret = ioctl(fd, EFI_RUNTIME_GET_SUPPORTED_MASK, &mask); > > > > Signed-off-by: Heinrich Schuchardt > > Hello Ard, > > the patch has now been admitted to Linus' branch. > > Could we, please, have this patch applied to the 5.10 long term release, > too. > If you think this patch needs to go to -stable, please send an email to stable@vger.kernel.org containing the commit title and SHA1, and a short motivation why this patch needs to be backported. If the stable maintainers are willing to take it, I won't object to it. Thanks, Ard.