Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3407624ybi; Mon, 17 Jun 2019 23:52:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwfmntwR6e7ubR3y3NCXqSaQmExOvW/sVqEX+7kK76kZVpWaYFkIS0jUQaPpVLx34wTScS2 X-Received: by 2002:a17:902:848b:: with SMTP id c11mr89687876plo.217.1560840723173; Mon, 17 Jun 2019 23:52:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560840723; cv=none; d=google.com; s=arc-20160816; b=uezEnNcDYuoyhSfDFITrw3SRCjb2Z/4r8NIe9jpus3WIMWn29UHNVZ1/UVEJBYn2qt YLGa1cyf0zVC0Jv2B4GLPiuuJi+xstID0nnoW2Yvc2Sy8ryTyFwrbsl9zTVM8/OMcpra K59d9dDfTFV1OjAhScNxAS19QK5z9UwaSSqIgObnPHgw1eMwpTnsji5gejM67TRn5R8E 4KLYvKDnx/Brj34PxtlfUuG9wYGN9pohDN471udMHvI/KP+iuDVVLAbO/jM+FuPDxID8 8myen9RU0Vugxh9fvoPDTxj+aB493h2O2Fxhf+4nyNGt0izt2TKXfar8kTVSfQekKHOT rfhA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=7MhG5BQkk93ena6b4Du32oIN3mMMrdzWABAMIxugFnc=; b=P1fjSlB7G9f8fh9eZJ4HgSUTFpZ2EMnyIdfNdiRVAnh+ZhDsDFw1wvKlovPVCDmqSF dRMXW/RYBHC/H7TVBnCzMbhctOMcl/BaEeTDwQJk1e3K+SAco4GsYqHZ0Q+uRDCumLbh tZlyfuOMcnpQSfBnNixptBtoneSwXwhBLemi6EXU0rlays7pJnHXeZaI4j9b59bdyWI5 ibHtg7wcqY2gJe6nW1DbkoAelZSD4e8zptR8HcaDSmNn2MBMAmPEhiFEwpEoLjwOhkxD BNy/jT2++8Cyda2Ys7mk76bWxy370CjlyJs1mmq0UKjAsjU57u6Cawvoe+xKnKXr/JkT zvqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=qegwrawi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si13066873pgf.439.2019.06.17.23.51.48; Mon, 17 Jun 2019 23:52:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=qegwrawi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726543AbfFRGum (ORCPT + 99 others); Tue, 18 Jun 2019 02:50:42 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:50531 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725900AbfFRGum (ORCPT ); Tue, 18 Jun 2019 02:50:42 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 45ScsR5HjJz9v2JK; Tue, 18 Jun 2019 08:01:31 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=qegwrawi; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id H_7TJYDp76pN; Tue, 18 Jun 2019 08:01:31 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 45ScsR46MYz9v2Hx; Tue, 18 Jun 2019 08:01:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1560837691; bh=7MhG5BQkk93ena6b4Du32oIN3mMMrdzWABAMIxugFnc=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=qegwrawi6feoHNSh2Z6KCBFdsFriTp9GllNy2ti98hOfc27ImcSnjNl2rap3hlGOJ PuNFHQ5X1MoHA5k/uhh6YIWVg3nyzewpLjx/7fJBPCJ2aXMByBYco/YmW+94e1xMwz SubkBI8di+Pqeo2S9AjeMKRzB4hrk4u5c5cGIXMw= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 7D29A8B880; Tue, 18 Jun 2019 08:01:31 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id fjVvnbzRWAAh; Tue, 18 Jun 2019 08:01:31 +0200 (CEST) Received: from PO15451 (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id A5A758B78B; Tue, 18 Jun 2019 08:01:30 +0200 (CEST) Subject: Re: [PATCH 0/5] Powerpc/hw-breakpoint: Fixes plus Code refactor To: Ravi Bangoria , mpe@ellerman.id.au Cc: benh@kernel.crashing.org, paulus@samba.org, mikey@neuling.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, npiggin@gmail.com, naveen.n.rao@linux.vnet.ibm.com References: <20190618042732.5582-1-ravi.bangoria@linux.ibm.com> From: Christophe Leroy Message-ID: <2344165b-b55b-d1b9-fd96-e057500e8c74@c-s.fr> Date: Tue, 18 Jun 2019 08:01:30 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: <20190618042732.5582-1-ravi.bangoria@linux.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 18/06/2019 à 06:27, Ravi Bangoria a écrit : > patch 1-3: Code refactor > patch 4: Speedup disabling breakpoint > patch 5: Fix length calculation for unaligned targets While you are playing with hw breakpoints, did you have a look at https://github.com/linuxppc/issues/issues/38 ? Christophe > > Ravi Bangoria (5): > Powerpc/hw-breakpoint: Replace stale do_dabr() with do_break() > Powerpc/hw-breakpoint: Refactor hw_breakpoint_arch_parse() > Powerpc/hw-breakpoint: Refactor set_dawr() > Powerpc/hw-breakpoint: Optimize disable path > Powerpc/Watchpoint: Fix length calculation for unaligned target > > arch/powerpc/include/asm/hw_breakpoint.h | 10 ++-- > arch/powerpc/kernel/hw_breakpoint.c | 56 ++++++++++++---------- > arch/powerpc/kernel/process.c | 61 +++++++++++++++++++----- > arch/powerpc/kernel/ptrace.c | 2 +- > 4 files changed, 86 insertions(+), 43 deletions(-) >