From patchwork Fri Jan 21 05:38:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1582384 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=i6zz4/o+; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=linux-fsi-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Jg7V01XYpz9t2p for ; Fri, 21 Jan 2022 16:39:03 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Jg7Ty4CMhz30Nd for ; Fri, 21 Jan 2022 16:39:02 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=i6zz4/o+; dkim-atps=neutral X-Original-To: linux-fsi@lists.ozlabs.org Delivered-To: linux-fsi@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::f34; helo=mail-qv1-xf34.google.com; envelope-from=joel.stan@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=i6zz4/o+; dkim-atps=neutral Received: from mail-qv1-xf34.google.com (mail-qv1-xf34.google.com [IPv6:2607:f8b0:4864:20::f34]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Jg7Ts00GCz2ynt for ; Fri, 21 Jan 2022 16:38:55 +1100 (AEDT) Received: by mail-qv1-xf34.google.com with SMTP id e20so1140876qvu.7 for ; Thu, 20 Jan 2022 21:38:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1SZ1MKlaPOoMbHKtysksxIjJYZsh98oFml9zv0E9xIk=; b=i6zz4/o+RsZMTvWuKVm6tDTfZJCIqbdwiWIgPaklTN8vSjxeZM0vkZH2OHdGQhswcg SlYpf8scRQzN8+FfBTWl9hF/P919pqx7sf6mmxqzEdmYh+kwf2RUyD+VYrl3ZUhltHTU B6DAqkrSh4IvmO1zi7c+UttaX+0KZTGI8rOVubKMFc/zsXZ+hplmPN3hORvrsqEq/Nwx W2pjA4GdhJyJj+kBaJndlHbmC8Lcos4gUgetxPBH7HgN6mHAYOGkxWUwhbY+3xZwWrTU SuO23zpQAbCnT4APFtUsUhjGLBIiaVurxux4pI0AvWeEm5F/k0qldhqmZpH1v+rhn6g0 H4sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=1SZ1MKlaPOoMbHKtysksxIjJYZsh98oFml9zv0E9xIk=; b=bYil08WaRcUuf/Tt/EmksqQzYP1HmJEmVEr9qa37KAP4iJPBMU8M679YjCK2S3PLJP cpMtu+TLkT6hHtj913l9KI0si8UnNOUiViEiWlL2oanfLKU453L9tTzwzhB8W+JAy5BT Rb/L8ZSUUViwN/qxHXqjWKUruRdYSVAlExyz7O/fz2RadlwfQLI/Lw6m873YrYuuycmC p49MBIHeGGfC/nMOXwbEhZdzdDJTJPNDHPusq+rwALDfVNMfQwd+s5OLXe8pXGBuc4qv ax5HaJyxbkstQt06wXyuBCuaGHIRgDnkzL7YnGjOvGCrPW80ZW//oy/4QcEqFUyBZYRo bYKw== X-Gm-Message-State: AOAM5301EVK44Ylra7KrezZG2ObfTMwX34tBQoeTICCP5be4DD9ronbL 2yEvQgvdg/901AVDaUCS/18= X-Google-Smtp-Source: ABdhPJzwyGQOc9vFy5d4cZrdQumiuFOkXPuf0g7Zgqd4I0uB7Nl5uIpt9zGn2F2ntp0/tYcQwBlvBg== X-Received: by 2002:a0c:f84b:: with SMTP id g11mr2281904qvo.109.1642743529517; Thu, 20 Jan 2022 21:38:49 -0800 (PST) Received: from localhost.localdomain ([45.124.203.14]) by smtp.gmail.com with ESMTPSA id y17sm2607169qtw.0.2022.01.20.21.38.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jan 2022 21:38:48 -0800 (PST) From: Joel Stanley To: Jeremy Kerr , Alistar Popple , Eddie James , Amitay Isaacs Subject: [PATCH v3 0/2] fsi: sbefifo: Add userspace timeout control Date: Fri, 21 Jan 2022 16:08:14 +1030 Message-Id: <20220121053816.82253-1-joel@jms.id.au> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: linux-fsi@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-fsi@lists.ozlabs.org Errors-To: linux-fsi-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "linux-fsi" Certain SBE operations (e.g. collecting trace information from processors) can take long time (> 10 seconds) to finish before SBE can respond. Such operations will currently timeout due to the default response timeout of 10 seconds. This patchset allows users to set a longer timeout using ioctl on the sbefifo device fd, before issuing SBE operations that are likely to take longer. The userspace that interacts with the sbefifo character device is libpdbg. An example use of the ioctl is in this branch: https://github.com/amitay/pdbg/commits/ioctl v3: Take over from Amitay Clarify use case in commit message Link to userspace implementation in cover letter Amitay Isaacs (2): fsi: sbefifo: Use specified value of start of response timeout fsi: sbefifo: Implement FSI_SBEFIFO_READ_TIMEOUT_SECONDS ioctl drivers/fsi/fsi-sbefifo.c | 53 ++++++++++++++++++++++++++++++++++++++- include/uapi/linux/fsi.h | 14 +++++++++++ 2 files changed, 66 insertions(+), 1 deletion(-)