Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755347AbcKVLuv (ORCPT ); Tue, 22 Nov 2016 06:50:51 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:58841 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752171AbcKVLut (ORCPT ); Tue, 22 Nov 2016 06:50:49 -0500 Subject: Re: [PATCH] powerpc/xmon: Fix data-breakpoint To: Michael Ellerman References: <1479806759-5409-1-git-send-email-ravi.bangoria@linux.vnet.ibm.com> <87eg23vjds.fsf@concordia.ellerman.id.au> Cc: benh@kernel.crashing.org, paulus@samba.org, npiggin@gmail.com, peterz@infradead.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, naveen.n.rao@linux.vnet.ibm.com, Ravi Bangoria From: Ravi Bangoria Date: Tue, 22 Nov 2016 17:20:38 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <87eg23vjds.fsf@concordia.ellerman.id.au> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16112211-0056-0000-0000-000002003A29 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006122; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000189; SDB=6.00783854; UDB=6.00378590; IPR=6.00561474; BA=6.00004901; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013408; XFM=3.00000011; UTC=2016-11-22 11:50:46 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16112211-0057-0000-0000-000006333BAE Message-Id: <5834310E.1050107@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-11-22_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611220213 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 998 Lines: 31 Thanks Michael, On Tuesday 22 November 2016 05:03 PM, Michael Ellerman wrote: > Ravi Bangoria writes: > >> Xmon data-breakpoint feature is broken. >> >> Whenever there is a watchpoint match occurs, hw_breakpoint_handler will >> be called by do_break via notifier chains mechanism. If watchpoint is >> registered by xmon, hw_breakpoint_handler won't find any associated >> perf_event and returns immediately with NOTIFY_STOP. Similarly, do_break >> also returns without notifying to xmon. >> >> Solve this by returning NOTIFY_DONE when hw_breakpoint_handler does not >> find any perf_event associated with matched watchpoint. > .. rather than NOTIFY_STOP, which tells the core code to continue > calling the other breakpoint handlers including the xmon one. > > Right? Yes. > Also any idea when we broke this? Hmm, not sure exactly. The code is same since it was merged in 2010 when support for hw_breakpoint was added for server processor. -Ravi > cheers >