Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1116126ybk; Sat, 16 May 2020 01:23:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFIyGjxRWgTSDIiE9hLO3zV3M3z5K1aZzRpDct6T4gMq7QRHOzNKBQbwJkVuYvGRu6/VDj X-Received: by 2002:a17:906:2b4f:: with SMTP id b15mr6779316ejg.64.1589617414790; Sat, 16 May 2020 01:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589617414; cv=none; d=google.com; s=arc-20160816; b=wA1+/G+jbywk8sDBw+bYr5IY/m/ndVvOwG1g4tWFZaXnzg3NFBzTonA8N/MT+crUNw w80SsTqFSKjfEJ9sjSzhN8xjRYuN/VnaHNnLGFT7o/Qr+LYb1kivqRT787Cuoa0sJ9L8 fPREwoKV5wCWEPXiQvG3cpgSZNhDNgNpHjj2ib5TYJB+HuHLV0hjENu0EU5PgLqwL+Uh gi/Urw1oVhZKacg8Fh9K2vpRYWU+zF8QeWqvBWw1cusM9gVc/LV94lkUk8Lbv7dowAMV 3fxp1N48ejKeaRby3CMr5O02EgifaD5d9kZ4C/O+KcGIFGmPzeQfLLYhJvN2mBLqSMIl tDHA== 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:from:references:cc:to :subject; bh=YcEvystlTswDkmPsoBM3haGO7L4eHv0MvviRVRXorLA=; b=nkmbIryomZBP19Q0cMJFpb81nPncxiKTV0wjuiGDOp9HwN44jj8Iot6VDM+RgckFr3 yvWIIRATWrS3ctLIeZiikjt5MUzYbguvfGezeLlfbhfGr6+CPlC+cHE0rrZYz34aAD+t ibLE41EfH5Q7D8zVh/a/+LE8WNka2sZK7hBybTASluTxifzWpa7HYmSbbbcPduroW3lq R9JxkF9HPf3E6C3sNfdOmoet8citryq/fp/gLgfO4VhVZRgcf4TQHBJgSqSFb9gNYjJA ba/IZBvDgiq+fOy1inDZ5fLkheaJL6M7XWYAl4+GeLNFQZhPyMDneYw1R+TQDX7iNDv/ yQAQ== 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 o21si2847305ejg.500.2020.05.16.01.23.11; Sat, 16 May 2020 01:23:34 -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 S1726888AbgEPIUw (ORCPT + 99 others); Sat, 16 May 2020 04:20:52 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:4798 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725934AbgEPIUv (ORCPT ); Sat, 16 May 2020 04:20:51 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 1A1E3781923FF99478CE; Sat, 16 May 2020 16:20:49 +0800 (CST) Received: from [10.166.215.145] (10.166.215.145) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Sat, 16 May 2020 16:20:45 +0800 Subject: Re: [PATCH 4/4] arm64: kgdb: Set PSTATE.SS to 1 to reenable single-step 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> <20200509214159.19680-5-liwei391@huawei.com> From: "liwei (GF)" Message-ID: <5cf0ccf6-79e7-7ad4-c007-f0041daf9a42@huawei.com> Date: Sat, 16 May 2020 16:20:44 +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.166.215.145] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Douglas, On 2020/5/14 8:23, Doug Anderson wrote: (SNIP) >> diff --git a/arch/arm64/kernel/kgdb.c b/arch/arm64/kernel/kgdb.c >> index 3910ac06c261..093ad9d2e5e6 100644 >> --- a/arch/arm64/kernel/kgdb.c >> +++ b/arch/arm64/kernel/kgdb.c >> @@ -230,7 +230,8 @@ int kgdb_arch_handle_exception(int exception_vector, int signo, >> kernel_prepare_single_step(&per_cpu(kgdb_ss_flags, >> raw_smp_processor_id()), linux_regs); >> kernel_enable_single_step(linux_regs); >> - } >> + } else >> + set_regs_spsr_ss(linux_regs); > > One slight nit is that my personal preference is that if one half of > an "if/else" needs braces then both halves should have braces. I Thanks for spotting it. Refer to Documentation/process/coding-style.rst, i will fix it in the v2. > don't know what Catalin and Will's policies are, though. > > Other than that, this seems right to me. I will leave it to the > Catalin and Will folks to say if they'd rather have this call made > from a different place or if they're happy with where you've put it. > > Reviewed-by: Douglas Anderson > Tested-by: Douglas Anderson > Thanks, Wei