Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp627051ybt; Mon, 6 Jul 2020 18:37:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfp75+g4tSq0FXsIgsdRAmjYX60igCneLwOrxMYZCYjIspBKu15hc6ZBkbVe5Cli+QjQSf X-Received: by 2002:a17:906:38d6:: with SMTP id r22mr44376431ejd.219.1594085870283; Mon, 06 Jul 2020 18:37:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594085870; cv=none; d=google.com; s=arc-20160816; b=F4Srxrv9NFwpRU16eF+sA4kAJNqgNr67Pr6Eu0Xjr5dUT9+VGANuhmgm4hVFoQqxvk s2kU2yYrzgHq+DZng8GZivxfjZPAyKCJqV/mLZvanPOz/fyWY0rWFfz8FCOHIvuUBznV Lk1WdfVX8/x9rAeuUQye+c1Ig9QIR7S3r1kKPZfotTw9cr1CzbtxBcAEVCUdSXsJtGdD hckxCo9UiIbhNg0OfCJXlZRJrQZlfHXBEiCyh8EcsQb+cqDhfPs7gaztjhFolBm3ZRBd KzRxgBMEjolm/yWx5FnqeA5VtPWrAyYHheEjbHFBE2tKF2DGAFbJawDixrsRJFHt6HqL oNHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:references:cc:to:subject :from; bh=Fhiu/ZbzmLoBr0YCfjf+ULzsdmCnV1ZzF4z/L9oTKms=; b=uZ852xyiFa5Perq3o+AxAbKy3KNQ/7elJkDXR1YtXVWALCTW+qEblSkDXVYrj1TDIQ OMV6GULH1Mukqppgk3FzXQN8qQiZ0KZSiClLWAqpeYb8JeSEGtQGUxpw7jrj5PY8jRNv F/A/uabgHk+oXyr+O2k5D5rmtpkbRymU+pqfmR+SOO6BrB0TypIeRmXACVkaewRIpR+P Ekv4NnUYrpnlQkHOLtMFWjJ4vVeIz465252iM9HcJtxJzyiet2pO90Qe8Vmo3TrTy0QQ I/y3mrIXstV76L0RX+NnAA1s+JFs8ssOs4/+ChHDiYGODSyUQTu3tBi9750CvMwBt8pG +IpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt2si12793989ejb.597.2020.07.06.18.37.26; Mon, 06 Jul 2020 18:37:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727876AbgGGBhK (ORCPT + 99 others); Mon, 6 Jul 2020 21:37:10 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7260 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727072AbgGGBhK (ORCPT ); Mon, 6 Jul 2020 21:37:10 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 0EF84EC9F1C7CE8ABEBA; Tue, 7 Jul 2020 09:37:07 +0800 (CST) Received: from [10.174.178.63] (10.174.178.63) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Tue, 7 Jul 2020 09:37:03 +0800 From: "liwei (GF)" Subject: Re: [PATCH 0/4] arm64: kgdb/kdb: Fix single-step debugging issues To: Doug Anderson CC: Daniel Thompson , Jason Wessel , Marc Zyngier , Mark Rutland , Masami Hiramatsu , David Miller , Will Deacon , Catalin Marinas , Linux ARM , LKML , References: <20200509214159.19680-1-liwei391@huawei.com> Message-ID: <06b7a4c6-80a4-1695-75af-b4a66ed1b849@huawei.com> Date: Tue, 7 Jul 2020 09:37:03 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.63] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Doug, On 2020/6/30 5:20, Doug Anderson wrote: > Wei, > > On Sat, May 16, 2020 at 1:20 AM liwei (GF) wrote: >> >> Hi Douglas, >> >> On 2020/5/14 8:34, Doug Anderson wrote: >>> Hi, >>> >>> On Sat, May 9, 2020 at 6:49 AM Wei Li wrote: >>>> >>>> This patch set is to fix several issues of single-step debugging >>>> in kgdb/kdb on arm64. >>>> >>>> It seems that these issues have been shelved a very long time, >>>> but i still hope to solve them, as the single-step debugging >>>> is an useful feature. >>>> >>>> Note: >>>> Based on patch "arm64: cacheflush: Fix KGDB trap detection", >>>> https://www.spinics.net/lists/arm-kernel/msg803741.html >>>> >>>> Wei Li (4): >>>> arm64: kgdb: Fix single-step exception handling oops >>>> arm64: Extract kprobes_save_local_irqflag() and >>>> kprobes_restore_local_irqflag() >>>> arm64: kgdb: Fix single-stepping into the irq handler wrongly >>>> arm64: kgdb: Set PSTATE.SS to 1 to reenable single-step >>>> >>>> arch/arm64/include/asm/debug-monitors.h | 6 ++++++ >>>> arch/arm64/kernel/debug-monitors.c | 28 ++++++++++++++++++++++++- >>>> arch/arm64/kernel/kgdb.c | 16 +++++++++++--- >>>> arch/arm64/kernel/probes/kprobes.c | 28 ++----------------------- >>>> 4 files changed, 48 insertions(+), 30 deletions(-) >>> >>> Just an overall note that I'm very happy that you posted this patch >>> series! It's always been a thorn in my side that stepping and >>> breakpoints were so broken on arm64 and I'm really excited that you're >>> fixing them. Now I'll have to get in the habit of using kgdb for more >>> than just debugging crashes and maybe I can use it more for exploring >>> how functions work more. :-) >>>> I'll also note that with your patch series I'm even seeing the "call" >>> feature of gdb working now. That has always been terribly broken for >>> me. >>> >> Thanks for reviewing and testing this series. >> Enjoy exploring the kernel with kgdb/kdb! :-) > > I'm curious to know if you plan another spin. The feedback you > received was fairly minor so it hopefully shouldn't be too hard. I'd > very much like to get your patches landed and I'd be happy to try to > address the feedback and spin them myself if you're no longer > available for it. > Sorry for the long delay. I was busy on a project and missed some mail. I did receive some feedback about typo or coding style before, so i was expecting more comment about the logic or people just don't care about these. After all, this issue has lived a very long time. It's a good news to hear that Will has plan to solve these issues, i will follow that to do my bit. Before that, i can send the next version in this week. Thanks, Wei