Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp754520rwr; Wed, 26 Apr 2023 06:06:24 -0700 (PDT) X-Google-Smtp-Source: AKy350Yq5/hygMwEzlDVtgrSbekFo5wK0sjT53jBM0jbtyKxC0T4ncz6d7zYAi/7htqNfmAjPBTb X-Received: by 2002:a17:90b:3008:b0:246:d182:cb22 with SMTP id hg8-20020a17090b300800b00246d182cb22mr19170989pjb.23.1682514383651; Wed, 26 Apr 2023 06:06:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682514383; cv=none; d=google.com; s=arc-20160816; b=B6clVaF7SUDabhP3d6ZuefpM6xX3ZB7c8nDjf9MwuoD10RpC9PwgsFgNxrD0L0rRNC Vq1hGm/wsFbz/8cc25YZCklMuYWS39d5zvqBrxQXyYppJm1pOt+vZzv89BAQR00wPmSG WzJac4sZVVbERgn7B+HZEBMmrWE+oz3fZI1whAf/JaE0EFgz4SEBzfrB/zOAarojmosI vlPNa4Uqv4C3Gzy3ljhzBrDd0GkHDP3AfAi1YjOE0hCmn3sz/tHQXKPJjzJxePxu9PHM 9Um23DTGTdMjNMTZgBxGqD0gswKoXxmGM9Z4t+5EI30Y/twiJ8t2+kIxGIERcjMnX2k4 +xLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=Fq4Od2HxM/Y6pUx1QLzBOFhnuHgYBugl3wErDAOLIqo=; b=ailER4/isu3GtXHk0uEolwfbEGdmdpWfJIvusBXHx2eFtMckpGsAeb6jFEGCDj8Xah x6ps89+7z+1m7u17BWFBeMFpKBna6WonANgF1ehiLpGwddzu+QgXXrgOVaAWF5zBJMEb ZSpox8NMjRl+hXmlcMPgqZquVmCKOu5DWcEuLt195w3z7pdGf5h9fB2+Rmv9TccMO1te Ycpop7i1Uyv4qUPry9JiQMjiYW0OKCw5IMhwTQw0JBQ9h6t8pP6naD2By8bEvi4AUaZq 036uFy4pnGRyi/9Mv74tDXFHlJTaQImNkWtVRKDjVmBqutH5FlfTF36ZsaQoBg5XBCOT XlTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QCroCD7L; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s6-20020a17090aad8600b002336940f887si15898916pjq.61.2023.04.26.06.06.03; Wed, 26 Apr 2023 06:06:23 -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=@redhat.com header.s=mimecast20190719 header.b=QCroCD7L; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241121AbjDZNF7 (ORCPT + 99 others); Wed, 26 Apr 2023 09:05:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240839AbjDZNFk (ORCPT ); Wed, 26 Apr 2023 09:05:40 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6667061AF for ; Wed, 26 Apr 2023 06:04:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1682514276; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Fq4Od2HxM/Y6pUx1QLzBOFhnuHgYBugl3wErDAOLIqo=; b=QCroCD7Lnt5snykDX+zVUKSGLXRrhiHxYiZ7RtAIoECGAcxni4sSNm3cKkhOmhPy4BxH0O BHnL/v+TJeZy4sL9GNDJ8aZLMEMuGYoHPxJ+/mxq4Mvrxp92YzeijaQieJ2JOl7sd5gTys kqcDGU5DKIC1UwnjpW++YfvuN3+BtlM= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-497-KwAhbL42OaOgpB4KvhhKMw-1; Wed, 26 Apr 2023 09:04:31 -0400 X-MC-Unique: KwAhbL42OaOgpB4KvhhKMw-1 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-95376348868so815208166b.2 for ; Wed, 26 Apr 2023 06:04:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682514269; x=1685106269; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Fq4Od2HxM/Y6pUx1QLzBOFhnuHgYBugl3wErDAOLIqo=; b=ENyfkvZF7Ijrs9b2Xk6ZcKjjCS4ReizVvCtRy+3M9vsrG2KUvWTOHtbDQKujXYJHLE OYZ8Yq0EwBKqwvgQ9JFz9a2dggdETrOP7nidHrn+d1Z6CYjKMf5KdMG+us9YH5tdNBeu BUF98QSXCSmB6v8pd9jSa+yHbcLsAhJnfOz7HPug+psQ2+E/aKJ5Mt+NVSIuiVvZ1/gC xzpsSF+wPtwYaYtvWv5psKcXR2Xlu7falkeHXIfttw+ADFWvJrqVrroMUUGS8x1gvptN lCXKojzlPVj5qF2NGQrjsKLsdNtShC9wzbTHmqyj0Uuusk7QdlNusHcTseFjbt4aaaSj Zshg== X-Gm-Message-State: AAQBX9eKyzf9dvdMjjey+uWwH6gZ+pkQGlOtXwlV1wvBLBxrBAbEDYY8 xZWK001NZSaWEftAz+gvJwbAKgEYEUgP9ysmudni/XRp6dqCQFrnXK6TPeNKxhxKZO3YewGqXor f1d8pqewlzzgj0CRTH37SNM4hfFNYj3k9 X-Received: by 2002:a17:906:830d:b0:94e:b3a1:3ed9 with SMTP id j13-20020a170906830d00b0094eb3a13ed9mr20202178ejx.49.1682514269333; Wed, 26 Apr 2023 06:04:29 -0700 (PDT) X-Received: by 2002:a17:906:830d:b0:94e:b3a1:3ed9 with SMTP id j13-20020a170906830d00b0094eb3a13ed9mr20202159ejx.49.1682514268997; Wed, 26 Apr 2023 06:04:28 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id mb17-20020a170906eb1100b00932fa67b48fsm8068863ejb.183.2023.04.26.06.04.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Apr 2023 06:04:28 -0700 (PDT) Message-ID: <2af933f1-1662-2c91-b4da-6e067a9a9389@redhat.com> Date: Wed, 26 Apr 2023 15:04:27 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v11 01/14] HP BIOSCFG driver - Documentation Content-Language: en-US, nl To: Jorge Lopez , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, thomas@t-8ch.de References: <20230420165454.9517-1-jorge.lopez2@hp.com> <20230420165454.9517-2-jorge.lopez2@hp.com> From: Hans de Goede In-Reply-To: <20230420165454.9517-2-jorge.lopez2@hp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, 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 Hi Jorge, Thomas, Thank you both so much for all your work on this! The userspace API of this looks like it is pretty much done now (after the discussed changes for the "Sure_Start" attribute), which is great. I have one small remark below (inline). On 4/20/23 18:54, Jorge Lopez wrote: > diff --git a/Documentation/ABI/testing/sysfs-class-firmware-attributes b/Documentation/ABI/testing/sysfs-class-firmware-attributes > index 4cdba3477176..73d7b8fbc0b2 100644 > --- a/Documentation/ABI/testing/sysfs-class-firmware-attributes > +++ b/Documentation/ABI/testing/sysfs-class-firmware-attributes > @@ -22,6 +22,12 @@ Description: > - integer: a range of numerical values > - string > > + HP specific types > + ----------------- > + - ordered-list - a set of ordered list valid values > + - sure-start - report audit logs read from BIOS > + > + > All attribute types support the following values: > > current_value: > @@ -126,6 +132,44 @@ Description: > value will not be effective through sysfs until this rule is > met. > > + HP specific class extensions > + ------------------------------ > + > + On HP systems the following additional attributes are available: > + > + "ordered-list"-type specific properties: > + > + elements: > + A file that can be read to obtain the possible > + list of values of the . Values are separated using > + semi-colon (``;``). The order individual elements are listed > + according to their priority. An Element listed first has the > + highest priority. Writing the list in a different order to > + current_value alters the priority order for the particular > + attribute. > + > + "sure-start"-type specific properties: > + > + audit_log_entries: > + A read-only file that returns the events in the log. > + Values are separated using semi-colon (``;``) Looking at the documented format which seems to be 128 raw bytes per entry, I think that the "Values are separated using semi-colon (``;``)" line is not correct here and that line should not removed here ? But maybe I'm misunderstanding things here. Do you have an example of what catting (or "hexdump -C"-ing if binary) the "audit_log_entries" sysfs file looks like ? > + > + Audit log entry format > + > + Byte 0-15: Requested Audit Log entry (Each Audit log is 16 bytes) > + Byte 16-127: Unused > + > + audit_log_entry_count: > + A read-only file that returns the number of existing audit log events available to be read. > + Values are separated using comma (``,``) > + > + [No of entries],[log entry size],[Max number of entries supported] > + > + log entry size identifies audit log size for the current BIOS version. > + The current size is 16 bytes but it can be to up to 128 bytes long > + in future BIOS versions. > + > + > What: /sys/class/firmware-attributes/*/authentication/ > Date: February 2021 > KernelVersion: 5.11 > @@ -311,7 +364,7 @@ Description: > == ========================================= > 0 All BIOS attributes setting are current > 1 A reboot is necessary to get pending BIOS > - attribute changes applied > + attribute changes applied > == ========================================= > > Note, userspace applications need to follow below steps for efficient This seems like an unrelated whitespace change which has accidentally ended up in this patch. Regards, Hans p.s. I'll also read / catch up with all the comments on the actual implementation (patches 2-14) and I'll let you know if I have any remarks there.