From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE847C43334 for ; Mon, 11 Jul 2022 13:52:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230170AbiGKNwG (ORCPT ); Mon, 11 Jul 2022 09:52:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229742AbiGKNwE (ORCPT ); Mon, 11 Jul 2022 09:52:04 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60AEB61D63 for ; Mon, 11 Jul 2022 06:52:02 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id o18so4771074pgu.9 for ; Mon, 11 Jul 2022 06:52:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2QWFQ2C9WGXjYYYAgPGIAjeY5FYOxbTxL+i3z5rucXs=; b=PCTezIifMZ8asZN/i9985ObaF+vgX0sE0tdwjafsZ2HSG4VhynbVjITywekdHcP7OO 8OWJnNHJHTzA1hPjW6gCEADyMr3Kxi2n0d+MKcteTNcuzzTU59StbVCVnfN8V9O/K/5i R4QPRzN1t6YecEKIXMDDMa+zO2VfCZFe8bXC7Dq4RezKymrU4Ddt7ioMT6czDWB/9/NO PihOIyIpGGeR6NJe3sKsZYnb/IFzjkZPgGqVslM/RCdvABaZWfz4m8A/wChpaLcYQJpl K1nl5ZhKyX8JfOwJEb1koStun8jJScXxYB6doP9dWWO4DHFQHwMt3xAx/RHrBt+YaWf4 ogiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2QWFQ2C9WGXjYYYAgPGIAjeY5FYOxbTxL+i3z5rucXs=; b=N2QrM3jtDDqon8sjQVZIscT7ndD20KGr6HYxHROwM8xtpsOo2/m/oAWGbKWrT3pLqv rGEIuYe//5t53SWDPyDmUQSLPJuAoEZXP1ywhcXv2XNsATZSIqrNsy5EBfGNzyZLD4b4 vYZxgSCh5TSLLRkMqNRk2AIeA3DZOO0qOlONkXNCDrxdhD22ucdBJqwMxA0gQdfH8bZA g6dj+Lh74+feRRuNNNMOa73c843lVqxjZPzYPY2Wl9cIyTpkzIil7cOvV2SRmy3n5MSL LvD3dtf5Op564sbNhJg7+QzlQeJPB4K9mwn9uztRy3S/Kp0fopln8zAmPOTpw5cMaMw8 Ecsg== X-Gm-Message-State: AJIora9U150LkDpKRj78S3bMaz91Y2Q6Ij29euk9O8qjB3ELhxQ3YAQ0 37+luH/ym7a5rEcj7mKs3lptyNV4E1d5mPEPkp4Hrw== X-Google-Smtp-Source: AGRyM1uX1oZgFjnUS3kw1/kggtzktYcOrKLh0g2QMEvkUx0LfMVcZpYuvXN47IKfNcFCjhxbz0WN6LY9HmaQTvMN6Jo= X-Received: by 2002:a05:6a00:1a86:b0:52a:d419:9552 with SMTP id e6-20020a056a001a8600b0052ad4199552mr4374528pfv.70.1657547521902; Mon, 11 Jul 2022 06:52:01 -0700 (PDT) MIME-Version: 1.0 References: <20220511060521.465744-1-sumit.garg@linaro.org> In-Reply-To: From: Sumit Garg Date: Mon, 11 Jul 2022 19:21:51 +0530 Message-ID: Subject: Re: [PATCH v3 0/2] arm64: Fix pending single-step debugging issues To: Doug Anderson Cc: Daniel Thompson , Will Deacon , Wei Li , Catalin Marinas , Mark Rutland , Masami Hiramatsu , Jason Wessel , Marc Zyngier , Linux ARM , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 11 Jul 2022 at 19:17, Doug Anderson wrote: > > Hi, > > On Mon, Jul 11, 2022 at 5:44 AM Sumit Garg wrote: > > > > > I'll also note that I _think_ I remember that with Wei's series that > > > the gdb function "call" started working. I tried that here and it > > > didn't seem so happy. To keep things simple, I created a dummy > > > function in my kernel that looked like: > > > > > > void doug_test(void) > > > { > > > pr_info("testing, 1 2 3\n"); > > > } > > > > > > I broke into the debugger by echoing "g" to /proc/sysrq-trigger and > > > then tried "call doug_test()". I guess my printout actually printed > > > but it wasn't so happy after that. Seems like it somehow ended up > > > returning to a bogus address after the call which then caused a crash. > > > > > > > I am able to reproduce this issue on my setup as well. But it doesn't > > seem to be a regression caused by this patch-set over Wei's series. As > > I could reproduce this issue with v1 [1] patch-set as well which was > > just a forward port of pending patches from Wei's series to the latest > > upstream. > > > > Maybe it's a different regression caused by other changes? BTW, do you > > remember the kernel version you tested with Wei's series applied? > > Sorry, I don't remember! :( I can't even be 100% sure that I'm > remembering correctly that I tested it back in the day, so it's > possible that it simply never worked... Okay, no worries. Let me see if I can come up with a separate fix for this. -Sumit > > -Doug From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2C276C43334 for ; Mon, 11 Jul 2022 13:53:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MOsHhoGNlVoGLuaGzeOUFBdLYN5ef20R3XyRhJQOwMo=; b=XOhtDn8Vk1Upqf oT7xHFwNxNaexkjRCtjgwjGVvPCDum6GDPVmwhbtw97WVxC1b3TgDQMkFVV5R91lOLEVG/rhPhiqf HWznArALw81Udwf1AARtSwo6r2hZrwZIDzK59vx1aCTyp0mVu6JwGd/DqMv/KCrK30NqADojMEjCY XSJdHDHi1ybynG8yyIaMOoOkugeAwOMjb39aQdM1g0bjn3j/vmDfgD0OQlH4J8aHz92jAny/mEEB+ YZuHXK9tb1WWPvS6HKmbNDE/Fnzx0wrNwR3MRzzTdnEZD1zA8muCOPIpiQaifqj5wq5HmMr0i/NLj gpSFLF8MydAI+cZhKwbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oAtpY-0024HF-3R; Mon, 11 Jul 2022 13:52:08 +0000 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oAtpU-0024Ew-TH for linux-arm-kernel@lists.infradead.org; Mon, 11 Jul 2022 13:52:06 +0000 Received: by mail-pg1-x532.google.com with SMTP id q82so4783982pgq.6 for ; Mon, 11 Jul 2022 06:52:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2QWFQ2C9WGXjYYYAgPGIAjeY5FYOxbTxL+i3z5rucXs=; b=PCTezIifMZ8asZN/i9985ObaF+vgX0sE0tdwjafsZ2HSG4VhynbVjITywekdHcP7OO 8OWJnNHJHTzA1hPjW6gCEADyMr3Kxi2n0d+MKcteTNcuzzTU59StbVCVnfN8V9O/K/5i R4QPRzN1t6YecEKIXMDDMa+zO2VfCZFe8bXC7Dq4RezKymrU4Ddt7ioMT6czDWB/9/NO PihOIyIpGGeR6NJe3sKsZYnb/IFzjkZPgGqVslM/RCdvABaZWfz4m8A/wChpaLcYQJpl K1nl5ZhKyX8JfOwJEb1koStun8jJScXxYB6doP9dWWO4DHFQHwMt3xAx/RHrBt+YaWf4 ogiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2QWFQ2C9WGXjYYYAgPGIAjeY5FYOxbTxL+i3z5rucXs=; b=7cLR+btFggFJFYQfoC+o/w1w9nwTiGw2ge8XNGFRkvUXlwfaOTiodazdIiukPYj+bg ZQhOGMeKOPN4vrUBvi1PVShDK2o5qZeURue2fNwH2n4ruL+uVhpOmk+/c38897WCclxT bIckx2PKYY8Y1E3GU8sn+Qh32OOU6+vC+ofDjhlHEgr9pXP8RoIomxBO9DZs1fVy6s20 0DTzdjosmIIqocg7q1yM6nhcd7i1/awK9kU+OSfLLJAoTHs+4zcRWtBc88m7qpyGGyvv SwiIO5LqV3WxeeaP38nvp3/46jhwHgS0S4pLsU1uLtUXXjPvIhywjkfHEsh4PzTJcUcH /exA== X-Gm-Message-State: AJIora8VEzd46YuKG9pTq2sUkLLnKmQYdN5607Y/8NU1ZaiREI0Ym5qQ G570yRxU5nEpdv3S9azTXZuYgE6UFHoZkUqydbkO0w== X-Google-Smtp-Source: AGRyM1uX1oZgFjnUS3kw1/kggtzktYcOrKLh0g2QMEvkUx0LfMVcZpYuvXN47IKfNcFCjhxbz0WN6LY9HmaQTvMN6Jo= X-Received: by 2002:a05:6a00:1a86:b0:52a:d419:9552 with SMTP id e6-20020a056a001a8600b0052ad4199552mr4374528pfv.70.1657547521902; Mon, 11 Jul 2022 06:52:01 -0700 (PDT) MIME-Version: 1.0 References: <20220511060521.465744-1-sumit.garg@linaro.org> In-Reply-To: From: Sumit Garg Date: Mon, 11 Jul 2022 19:21:51 +0530 Message-ID: Subject: Re: [PATCH v3 0/2] arm64: Fix pending single-step debugging issues To: Doug Anderson Cc: Daniel Thompson , Will Deacon , Wei Li , Catalin Marinas , Mark Rutland , Masami Hiramatsu , Jason Wessel , Marc Zyngier , Linux ARM , LKML X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220711_065205_034653_31217302 X-CRM114-Status: GOOD ( 24.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 11 Jul 2022 at 19:17, Doug Anderson wrote: > > Hi, > > On Mon, Jul 11, 2022 at 5:44 AM Sumit Garg wrote: > > > > > I'll also note that I _think_ I remember that with Wei's series that > > > the gdb function "call" started working. I tried that here and it > > > didn't seem so happy. To keep things simple, I created a dummy > > > function in my kernel that looked like: > > > > > > void doug_test(void) > > > { > > > pr_info("testing, 1 2 3\n"); > > > } > > > > > > I broke into the debugger by echoing "g" to /proc/sysrq-trigger and > > > then tried "call doug_test()". I guess my printout actually printed > > > but it wasn't so happy after that. Seems like it somehow ended up > > > returning to a bogus address after the call which then caused a crash. > > > > > > > I am able to reproduce this issue on my setup as well. But it doesn't > > seem to be a regression caused by this patch-set over Wei's series. As > > I could reproduce this issue with v1 [1] patch-set as well which was > > just a forward port of pending patches from Wei's series to the latest > > upstream. > > > > Maybe it's a different regression caused by other changes? BTW, do you > > remember the kernel version you tested with Wei's series applied? > > Sorry, I don't remember! :( I can't even be 100% sure that I'm > remembering correctly that I tested it back in the day, so it's > possible that it simply never worked... Okay, no worries. Let me see if I can come up with a separate fix for this. -Sumit > > -Doug _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel