From patchwork Tue Feb 22 02:50:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1595808 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=kkhujVNq; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4K2kFg0zS4z9sFk for ; Tue, 22 Feb 2022 13:51:18 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4K2kFd5dh7z30gg for ; Tue, 22 Feb 2022 13:51:17 +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=kkhujVNq; dkim-atps=neutral X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::429; helo=mail-pf1-x429.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=kkhujVNq; dkim-atps=neutral Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) (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 4K2kFT6k2Xz2yHL for ; Tue, 22 Feb 2022 13:51:07 +1100 (AEDT) Received: by mail-pf1-x429.google.com with SMTP id d17so10587028pfl.0 for ; Mon, 21 Feb 2022 18:51:08 -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=SdYZ9GCoEWB/IJAoQtPLV4pKh1hw+Y8fLn7Fg/FKOb8=; b=kkhujVNqZ6pLJddR3xQ1O7h84fLt2FCnT6AHnVbqAlTWLFSMVBUIWj58bVCOI0stfI xjPX7HF6Yfvt/6vrnXlTXn6g2efdrxappsYyNWgZzobTRXnnCdvm08A6KevMXFudkNJA YrWhEs2bsIeWSGPllcN9FAzCPZuEaAhbCVBP5fORz8hrfenBVxhwsoZ059IvSyqMCvGF tOZHf1Hiqj26+FNTeWC8j5T40KiKoEqR0NekGmTn+ktmRqBDWMkjav7cfcNiNV1ayEE+ aDO/Oh8k9risy+bm1Sz9xiD7vBXG57LaUYzsqQBSC8SyctLSBTwOSHOcZWKl5gp5lazj WlvA== 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=SdYZ9GCoEWB/IJAoQtPLV4pKh1hw+Y8fLn7Fg/FKOb8=; b=sb56VHhZSHWH1Kb+dMih//Jrhk7qPiklvAqxVq6qiVaU1l/pitkWPOIx9ZFWueQ/i9 mOZljSuNMmz2aa4Mi9Pd7f3GFl+wSGWfnL7VikFunivi3lnOUrJkF6izslI0Hd3beQoP kHVnuqW1LLhtNzCEIlBIl90pK6s0dY+mNi711drDD3OzEi8nUlmQ+BzpNFy5r8ESYRp2 Rp0oy0l1Ha7uTLM6LV6K3YmzKOUjzlmkbxvHUlObkdmEgJuF/kNCcDPXxqSjbB/6jFRm GFRqsKbwJ8JspztwM80dZolO7pvZOQxryskKuXP876rVfPL0xTBMIbrIrMjmyZR7YPsL mFJw== X-Gm-Message-State: AOAM532TGheQBsejcqgcv/YEVCZ85OC80dmBIHH37xDQzNBl2YJnvtJr a49/CFl9B7SbzFXaOdVJxGOG5rtqH3BSvw== X-Google-Smtp-Source: ABdhPJzR7/oIxjXb5Tm1m0soeDFog9wqbGDrFwVH7o0XfInp4wiaVgJ55z7uUQieoW6wcqLEmr/9EQ== X-Received: by 2002:a63:a1a:0:b0:34d:a4a9:a8b9 with SMTP id 26-20020a630a1a000000b0034da4a9a8b9mr18381567pgk.176.1645498264704; Mon, 21 Feb 2022 18:51:04 -0800 (PST) Received: from localhost.localdomain ([45.124.203.14]) by smtp.gmail.com with ESMTPSA id z17sm19219265pgf.91.2022.02.21.18.51.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 18:51:03 -0800 (PST) From: Joel Stanley To: pdbg@lists.ozlabs.org, Nicholas Piggin Date: Tue, 22 Feb 2022 13:20:36 +1030 Message-Id: <20220222025038.29925-1-joel@jms.id.au> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [Pdbg] [PATCH 0/2] pdbg: sbefifo long running chip-op ioctl support X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" The sbefifo driver in the kernel has gained an ioctl for setting the timeout (in seconds) for a chip-op. https://lore.kernel.org/all/20220121053816.82253-1-joel@jms.id.au/ It will appear in v5.18 (mainline), and is backported to OpenBMC dev-5.15. The timeout is per-descriptor so the currently running application will set this for chip-ops that are specified as long running in the SP to SBE Interface Specification for P10 Systems, version 2. After the operation is complete libpdbg will reset the timout to the kernel's default. Amitay Isaacs (2): configure: Add configure check for libsbefifo: Implement long read timeout for chip-ops libsbefifo/sbefifo_private.h | 2 ++ libsbefifo/cmd_array.c | 12 +++++++++++ libsbefifo/cmd_control.c | 6 ++++++ libsbefifo/cmd_generic.c | 6 ++++++ libsbefifo/cmd_memory.c | 23 ++++++++++++++++++++ libsbefifo/cmd_mpipl.c | 18 ++++++++++++++++ libsbefifo/cmd_register.c | 12 +++++++++++ libsbefifo/cmd_ring.c | 18 ++++++++++++++++ libsbefifo/connect.c | 41 ++++++++++++++++++++++++++++++++++++ configure.ac | 5 +++++ 10 files changed, 143 insertions(+)