From patchwork Mon Mar 14 04:17:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 1604900 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=QWWK2L3N; 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 4KH3Dl2p5Kz9sG2 for ; Mon, 14 Mar 2022 15:18:15 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4KH3Dl2KZ7z30Km for ; Mon, 14 Mar 2022 15:18:15 +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=QWWK2L3N; 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::102b; helo=mail-pj1-x102b.google.com; envelope-from=npiggin@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=QWWK2L3N; dkim-atps=neutral Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) (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 4KH3Dd71Kkz30L7 for ; Mon, 14 Mar 2022 15:18:09 +1100 (AEDT) Received: by mail-pj1-x102b.google.com with SMTP id m22so13392308pja.0 for ; Sun, 13 Mar 2022 21:18:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4B+EVQhFwb1jJAbEwBvzXysuvryhmWT1geAtEE46L6Q=; b=QWWK2L3NyEXD4WEBfuMGigF5MWvpzjWeSMnuWFF5FPW+IQs6Q8argMiYHRe1mmdolu qrbYnf/E75bNZfTm918IEehp0yqTlLj72CXwWZYX0GpQs5rcKfAL9Erb8DehaE/NtReh AAy/pP0VgiLl0GguFSKgI2k0K5gvzMmraYWFCssltr/gdQzPGZvnRNMib5/uv+kPQt2h vvACSy1pcSACfEMRw85d9mhRNIXPD3KnEDx604S/eIlGrPROsRBG4x0BfeJ5v/bXZJog 5wi6cYoVnH4tNEa9pZdFVOkDL7K7mRF/VulZwfC1bman2e6guKfcOGWNvBWW8vjYhixG L5OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4B+EVQhFwb1jJAbEwBvzXysuvryhmWT1geAtEE46L6Q=; b=VycVjd3F7cBmx6MmPD+wb7u1gTn9DLO29qNQmirAefh4GqUZisUc9xxN1iWMdtxGXy /bXEyvNIsGvxpt8hjsQ4mNFwl0kSJoyZ4S5SJmqoDx5vNTtV2zZhSmGaHuMa4AmZQRcM Q6wO/7kH5cN/obvQUs0ljTGiyYxtTYfa4iQFlskTg7gFTuy4MoQ8loNbh+VLBoYZ//KM htcz6PqM86jXSp7ddyeylyTxqAQxofDmq3vty/gNjHIAvGxiBIaZrXZwcnj+0BCYuL2T 3VcnHEZZ0vwBXnkLGeTcaoxDjvu2ey0HxNqhKhRIJzEcO4hnMaCNv0AZMsLOKhFay2nE 3+fA== X-Gm-Message-State: AOAM530U79K+3uzo6wnrTSYOfjqiUuNp17XatUXdC+DlEtL1ByheZVlQ xG4ypOKNgXTmhzJooiZmMpZmVI9jcQw= X-Google-Smtp-Source: ABdhPJyHO5quzIlHj+zx2GRhuXT65fEZLe+Nj7l76lZT+HJ8/RGNTZsmDvF2zd6gHVrIdIjmngspXQ== X-Received: by 2002:a17:90b:f8a:b0:1be:dccd:e4f7 with SMTP id ft10-20020a17090b0f8a00b001bedccde4f7mr23113449pjb.92.1647231487880; Sun, 13 Mar 2022 21:18:07 -0700 (PDT) Received: from bobo.ibm.com (110-175-148-108.static.tpgi.com.au. [110.175.148.108]) by smtp.gmail.com with ESMTPSA id d16-20020a056a00245000b004f771b48736sm14283018pfj.194.2022.03.13.21.18.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Mar 2022 21:18:07 -0700 (PDT) From: Nicholas Piggin To: pdbg@lists.ozlabs.org Date: Mon, 14 Mar 2022 14:17:33 +1000 Message-Id: <20220314041735.542867-14-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220314041735.542867-1-npiggin@gmail.com> References: <20220314041735.542867-1-npiggin@gmail.com> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 12/14] gdbserver: disable attn after breaking 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: , Cc: Nicholas Piggin Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Rather than leave attn enabled, disable it when breaking to idle state if it was enabled. Signed-off-by: Nicholas Piggin --- src/pdbgproxy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pdbgproxy.c b/src/pdbgproxy.c index 75e14b7..a37e997 100644 --- a/src/pdbgproxy.c +++ b/src/pdbgproxy.c @@ -372,6 +372,8 @@ static void poll(void) if (!(status.quiesced)) break; + set_attn(false); + state = IDLE; poll_interval = VCONT_POLL_DELAY; if (!(status.active)) {