Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10735213rwl; Thu, 12 Jan 2023 01:42:13 -0800 (PST) X-Google-Smtp-Source: AMrXdXvf8HpKTmWwTwYHhBkRLVBVAurgDS7HmsjopTeKwqv032ypHfwwScUoKAPKS1b2tYGGHXnX X-Received: by 2002:a17:902:e404:b0:194:52ed:7a31 with SMTP id m4-20020a170902e40400b0019452ed7a31mr2912734ple.23.1673516533565; Thu, 12 Jan 2023 01:42:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673516533; cv=none; d=google.com; s=arc-20160816; b=tE4rLmkGI4/ZyUmRiqdQBxtnxW0wspOy0eBHWE6r7OoDWQ8SnE0vDc1b1TtgJom3hE TGJrA5jl8x9YKBCidV51fwG+px38bGPR2e6Ypf2QDFoxx3IDyq71T9OYfbTrC3zG+g/h F0EXQ9i4qOHe6cpWTu6u8Jz19D9lea6hu1a9omUZvJ9HFTcTSf8igr17CCkbaX+6mcM6 da6nmrnvEi69y9oWIv1VqINbDYblSJc0TD4p9u1+cIg0RcvyRstiEMbb+lPtjrJ+asNI /yvJZampUKLMeg75/irvDAQGdrmtcWfKqGLUctI3jkMM8byeB0ErtqoQHwF9sMGq4FSo Jnnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=efmws3aCVsefaN/g574EcJacERdCtGnCzw1lKaWrtJ8=; b=WlcfriCO2b/WR/7cte3UQsocXyI3L3BFsGqAMjSbScesBAVdZ0lYyp7nVSRQSojEs5 gHhqxcVKz9kcBZkGmA/wZu0bKKQ9zYxi5Mp8Uh7vhGQozVjVIK9ji1E1jsL8LWEyFiFF cArjvdIuNryP59qK5bpUgCyDqvHltlTy7rEkEqLkXZsrZl4d/UX2dN6gZB0IFSyEEWUL JONdFmz5Q/wKqhQF+7v1BzsgWhQSXld36YGEQH4ioDXPwuBb1SoD1Is4BW/Xude+NOxI h7Vn/QFWWfGd95vHtUnHhGTAxg6jH3eOM0PbNL2CFAlnRdRYVU1FcW49f088r8Pw/KZW v6aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GdTPUKmK; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e18-20020a17090301d200b0018873ba17ccsi19053432plh.32.2023.01.12.01.42.07; Thu, 12 Jan 2023 01:42:13 -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=@linaro.org header.s=google header.b=GdTPUKmK; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236595AbjALJ33 (ORCPT + 50 others); Thu, 12 Jan 2023 04:29:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239779AbjALJ2u (ORCPT ); Thu, 12 Jan 2023 04:28:50 -0500 Received: from mail-vs1-xe35.google.com (mail-vs1-xe35.google.com [IPv6:2607:f8b0:4864:20::e35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63E5D646E for ; Thu, 12 Jan 2023 01:23:01 -0800 (PST) Received: by mail-vs1-xe35.google.com with SMTP id v127so14045983vsb.12 for ; Thu, 12 Jan 2023 01:23:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=efmws3aCVsefaN/g574EcJacERdCtGnCzw1lKaWrtJ8=; b=GdTPUKmKD1zp1f2/sb8ZHPcnrhm/yHA25oG5+eQzBHHL8bHPUfVe7KzzRG6j3j4Wky DjyP0C4PalipMvKfJNnG8T8cpSycdBBHdzfBSDHe6rtwOgE+kyjj7Jxcj2j2g0X41iU0 vumZ7UuFLi/kX+7CxZyaadj/72xJOXk3q5i9DYsUYwkM89sPk6CjXGKfNYScuJm1HE0T rfHdnMYj1B6miGD/M3uyRdN3nlag9Xh3qlXPP9lWENfpt/SwEQcs5OuKC6+v2wRF66O+ E9eo04TgR3FDFc65zzRuYmJkhC17Hf84a8bypT5Jn9LzMcQ2VINwer8LVwwB25+HOdoJ I2XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=efmws3aCVsefaN/g574EcJacERdCtGnCzw1lKaWrtJ8=; b=pzulmBAXz3v75Gii3m270IPO66gwBkisaVJW19UHkfn09skOkzpggLqvJlFzbv+URD 0AF0HLBE6CVA9D75abTYG+KZ8wfVd3LDC2tVEfKHWnpLKMlJNaMjiLMUq7G3Yk7Q+nNV Z4pVmW31pM7v9Cl2nEdtHlFLXmFYP5Y7ykucUmqJCojlzBYzq+vEqDEQm4xuqt5WrnXA rfOK2jlqWPCr5VVao5/7/YVHcN4xezlvHU7IrUbltmphcJoOqAaRAFzDoAIIWETjN9d7 4as5ZvgNZEZMuS/HaBKsc8NzzeTd+/5W885O0WOpOH14e0Jlgq+YOIXXouoq8Ouw0T1d rTVA== X-Gm-Message-State: AFqh2kr0glz70X4zs7kEEXBTUcgcxsOtpXQ9KgqAyJVPOhIgF/nerNer a0HXH1ZB2w9N+DdLITjtpMGp2ElJ2+YyWViHySIwIQZ1trG6pg== X-Received: by 2002:a67:2204:0:b0:3b5:2762:568b with SMTP id i4-20020a672204000000b003b52762568bmr10338430vsi.62.1673515380482; Thu, 12 Jan 2023 01:23:00 -0800 (PST) MIME-Version: 1.0 References: <20221219102452.2860088-1-sumit.garg@linaro.org> In-Reply-To: <20221219102452.2860088-1-sumit.garg@linaro.org> From: Sumit Garg Date: Thu, 12 Jan 2023 14:52:49 +0530 Message-ID: Subject: Re: [PATCH v5 0/2] arm64: Fix pending single-step debugging issues To: will@kernel.org, catalin.marinas@arm.com Cc: liwei391@huawei.com, mhiramat@kernel.org, maz@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mark.rutland@arm.com, daniel.thompson@linaro.org, dianders@chromium.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Hi Will, Catalin, On Mon, 19 Dec 2022 at 15:55, Sumit Garg wrote: > > This patch-set reworks pending fixes from Wei's series [1] to make > single-step debugging via kgdb/kdb on arm64 work as expected. There was > a prior discussion on ML [2] regarding if we should keep the interrupts > enabled during single-stepping. So patch #1 follows suggestion from Will > [3] to not disable interrupts during single stepping but rather skip > single stepping within interrupt handler. > > [1] https://lore.kernel.org/all/20200509214159.19680-1-liwei391@huawei.com/ > [2] https://lore.kernel.org/all/CAD=FV=Voyfq3Qz0T3RY+aYWYJ0utdH=P_AweB=13rcV8GDBeyQ@mail.gmail.com/ > [3] https://lore.kernel.org/all/20200626095551.GA9312@willie-the-truck/ > > Changes in v5: > - Incorporated misc. comments from Mark. > Since patch #1 has already been reviewed/acked by Mark and the complete patchset has been tested by Doug, would it be fine for you to pick up this patchset? It fixes a real single stepping problem for kgdb on arm64. -Sumit > Changes in v4: > - Rebased to the tip of mainline. > - Picked up Doug's Tested-by tag. > > Changes in v3: > - Reword commit descriptions as per Daniel's suggestions. > > Changes in v2: > - Replace patch #1 to rather follow Will's suggestion. > > Sumit Garg (2): > arm64: entry: Skip single stepping into interrupt handlers > arm64: kgdb: Set PSTATE.SS to 1 to re-enable single-step > > arch/arm64/include/asm/debug-monitors.h | 1 + > arch/arm64/kernel/debug-monitors.c | 5 +++++ > arch/arm64/kernel/entry-common.c | 22 ++++++++++++++++++++-- > arch/arm64/kernel/kgdb.c | 2 ++ > 4 files changed, 28 insertions(+), 2 deletions(-) > > -- > 2.34.1 >