Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp264651rwb; Wed, 18 Jan 2023 17:24:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXv1w0E5VTmbQOidNOncZvpnpbSc9KtGv9li5VYzQmcydkuA0j77bjesBgZ7DSxvmUjrz78k X-Received: by 2002:a17:902:ec82:b0:194:3fd8:f56a with SMTP id x2-20020a170902ec8200b001943fd8f56amr12268645plg.55.1674091469171; Wed, 18 Jan 2023 17:24:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674091469; cv=none; d=google.com; s=arc-20160816; b=EIokYDTQnToV8S/WFX/+FR3EjBjxPPhcCDnAawTZCDaGMdP82Q05RGyr+AXI4PEfpS mR4SU/TPGT+W6yrAfVnJjkYIdKTFdc0lFbIcxCjsLGpnIqFDZJrkDnbWqGSaHsFFuUls l+F+cHmpFp/e1p1jUPNrbSn6bGlaIqsz27griyqf/+9GWlTC6lb8CJBzIz93VBjzlI55 kSXLdS7LRLLCD9hPqoO3zXXqDlWKFyLIP/j5QIkNC9VdM72FjGa9DCAl2q1cqHPbHEHj CskOJ7823QZpIKn7R08flBiiwMu4lTGiZA8lfOViPXGuRPMR1GGzZwUMgejQuxRRBWor v2Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=IbDZxGDp8FFFBhm3skdTuca0wCb1RqhnA6hZ3TKJit8=; b=pA57n9xSyOOeU+PGuU6WTEhN6Ls4f3kHZoKVJVl6Q0s6vaXNNYwF5G3yltEduUzShq gLFh/ZRXJahX99V53YxIIQL0OoEGh1Nh+GZhb3dBwF+lim4Pa/Ws6jPi5UicOAKr1GOX 360V0XKUTACxbNAWD9sFD34v8ZbU+m/3k0rkp510aXzLIoEW4jzaZB3edRJdTqxwuuy8 xwkZRVv8l4asGL2xsMLxesGmF5JMHRG3uqHy2z5SX1JxzWj2DPVwROeBspGrpHG/nkNX L+Co4ZXkJl9Mxtlh040yvHn7WTaJCdP9eJ/rDaZK/UJYmkhGtoaUEpYSF/fV2Z1ofC8r cwAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="m91VX7/3"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p2-20020a1709028a8200b00194c45049d3si1544358plo.538.2023.01.18.17.24.23; Wed, 18 Jan 2023 17:24:29 -0800 (PST) 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=@gmail.com header.s=20210112 header.b="m91VX7/3"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230041AbjASBUJ (ORCPT + 46 others); Wed, 18 Jan 2023 20:20:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229776AbjASBS5 (ORCPT ); Wed, 18 Jan 2023 20:18:57 -0500 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BC076C562; Wed, 18 Jan 2023 17:16:02 -0800 (PST) Received: by mail-pl1-x62c.google.com with SMTP id p24so830907plw.11; Wed, 18 Jan 2023 17:16:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=IbDZxGDp8FFFBhm3skdTuca0wCb1RqhnA6hZ3TKJit8=; b=m91VX7/3DOiTpb7lvJW92AF59U5cpWwU6ggAKRCUGvVcfgSWDB9SQEa4+AuPlc/ug6 +XMf3JArGv1o8ktY842QajeWbV/9MtDIPqUVISTALLYEej2cRWueeCdyZqKIoeKaNj49 fLQKEfWJ7p9SyMwlRlIPGxLzozGjLQ5CLA52smpT2EQjxEXNKCqldz0hb+m+igeKsRF9 khQAWIW34B+51/9Y1W7A+zc66C0mOSmHQbeKN2wWM7vC+dy+v+eWp7nrHZMwvjufIgj5 xxtifri2RM3VciVmBbf7F6HY88isNfLKYnDQkgO30fqIq+qxPmJJJwjeaprz+nbKxuqh xrtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=IbDZxGDp8FFFBhm3skdTuca0wCb1RqhnA6hZ3TKJit8=; b=J6E0hbGv0AYzO2tNpN6rEaK0BSyR4mqya6LRZcNtsmsikurxgNPXFp5nM/fIQ8lr2n ncWMf9bZBoRBzkfvTgXTpRv83QsA1jatj9eR9RjcG6mOJ21hA8Bce1tOL2O9sGOfSyuh OLasYOYMLmqO0h2ASL4xm+gxbAdDquVEjj/JsR+VxZu97YPBgPjG4pr6ck4HtegAv5lf m9UmrU/bS6g17bGJ7nIF8UOSQ7DaY2lqW2/ndnvQ0RRn2/LVPIGQxzFC43Rfaa1G6Eop qs31ySzJisJPqyJdggx8EJP4wVmG4F+yUskIbmJsNvEIgT4Zz+zu+9vhQ6J2BEC2yYYp 0PTw== X-Gm-Message-State: AFqh2kqNnlU3V+xSBZR29MvrSEu9ZElFOP5QKQEEDJs1hUjLkR8vS2ch Oh2EKZSI/DYTuUOJn7470Jw= X-Received: by 2002:a17:902:7209:b0:194:73c4:6bdd with SMTP id ba9-20020a170902720900b0019473c46bddmr9728122plb.17.1674090961806; Wed, 18 Jan 2023 17:16:01 -0800 (PST) Received: from localhost (193-116-102-45.tpgi.com.au. [193.116.102.45]) by smtp.gmail.com with ESMTPSA id k3-20020a170902694300b00194a53ab3e6sm4235447plt.286.2023.01.18.17.15.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Jan 2023 17:16:01 -0800 (PST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 19 Jan 2023 11:15:54 +1000 Message-Id: Cc: , , , , , , , , Subject: Re: [PATCH v3 13/24] powerpc/pseries: Fix handling of PLPKS object flushing timeout From: "Nicholas Piggin" To: "Andrew Donnellan" , , X-Mailer: aerc 0.13.0 References: <20230118061049.1006141-1-ajd@linux.ibm.com> <20230118061049.1006141-14-ajd@linux.ibm.com> In-Reply-To: <20230118061049.1006141-14-ajd@linux.ibm.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Wed Jan 18, 2023 at 4:10 PM AEST, Andrew Donnellan wrote: > plpks_confirm_object_flushed() uses the H_PKS_CONFIRM_OBJECT_FLUSHED hcal= l > to check whether changes to an object in the Platform KeyStore have been > flushed to non-volatile storage. > > The hcall returns two output values, the return code and the flush status= . > plpks_confirm_object_flushed() polls the hcall until either the flush > status has updated, the return code is an error, or a timeout has been > exceeded. > > While we're still polling, the hcall is returning H_SUCCESS (0) as the > return code. In the timeout case, this means that upon exiting the pollin= g > loop, rc is 0, and therefore 0 is returned to the user. > > Handle the timeout case separately and return ETIMEDOUT if triggered. > > Fixes: 2454a7af0f2a ("powerpc/pseries: define driver for Platform KeyStor= e") Can fixes go to the start of the series? Thanks, Nick