Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751816AbbEREqy (ORCPT ); Mon, 18 May 2015 00:46:54 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:10177 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750895AbbEREqq (ORCPT ); Mon, 18 May 2015 00:46:46 -0400 X-AuditID: cbfee68f-f793b6d000005f66-2f-55596ea85736 Date: Mon, 18 May 2015 04:46:32 +0000 (GMT) From: Vaneet Narang Subject: Re: [EDT][PATCH 1/1] hw_breakpoint.c :cpu hotplug handling To: Will Deacon , Maninder Singh Cc: "linux@arm.linux.org.uk" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Amit Arora , AJEET YADAV , AKHILESH KUMAR Reply-to: v.narang@samsung.com MIME-version: 1.0 X-MTR: 20150518043140598@v.narang Msgkey: 20150518043140598@v.narang X-EPLocale: en_US.windows-1252 X-Priority: 3 X-EPWebmail-Msg-Type: personal X-EPWebmail-Reply-Demand: 0 X-EPApproval-Locale: X-EPHeader: ML X-MLAttribute: X-RootMTR: 20150518043140598@v.narang X-ParentMTR: X-ArchiveUser: X-CPGSPASS: N X-ConfirmMail: N,general Content-type: text/plain; charset=windows-1252 MIME-version: 1.0 Message-id: <1973496787.315501431924391025.JavaMail.weblogic@ep2mlwas08c> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrKIsWRmVeSWpSXmKPExsWyRsSkRndFXmSowY3/BhaXd81hc2D0+LxJ LoAxissmJTUnsyy1SN8ugStj/5Q/zAUz+Cr2fdjJ3MD4hLeLkZNDSEBZovPaNVYQW0LAROJz 8yt2CFtM4sK99WxdjFxANUsZJQ6s+QdXdGnzRVaIxBxGiW0TzzCCJFgEVCXOLNgA1s0moC3x 5l8vC4gtLOAssWPdKbC4iECoxNudb9lBmpkFjjBJzNr8kxniDDmJvwt+gdm8AoISJ2c+YYHY pijR3/ucCSKuJHF51xuoK+Qklky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wq+5vmQvVKiGxteUJ2DnMQGdO6X7IDmEbSBxZNIcV3Su8Ap4S646uZpnAKDsLSWoWkvZZ SNqR1SxgZFnFKJpakFxQnJReYaRXnJhbXJqXrpecn7uJEZyIni3awfjvvPUhRgEORiUeXos3 EaFCrIllxZW5hxglOJiVRHgjzwCFeFMSK6tSi/Lji0pzUosPMZoCY20is5Rocj4wSeaVxBsa m5ibGptaGBiam5spifP+P5cbIiSQnliSmp2aWpBaBNPHxMEp1cC4vnnN1AT7NwrdumJFq6/v U/qmkCZ4k+3bPDXNpd7fln1VvbWQ63zL13LvunkMrzgOHVt/pLyKc1rZ6/WcdX0CU40KJqb/ O3Oy7mFhXZ5MjczX5bZhQpVMKgv+dvfMiK+pK3rWy14o1mB1sut67NXl/zUEisX/SR2W3Bmj bL1xYdS101+8GQSUWIozEg21mIuKEwH4S5uhWgMAAA== DLP-Filter: Pass X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id t4I4kvau023046 Content-Length: 1455 Lines: 27 EP-2DAD0AFA905A4ACB804C4F82A001242F On Wed, May 13, 2015 at 06:24:06AM +0100, Maninder Singh wrote: >> EP-2DAD0AFA905A4ACB804C4F82A001242F >> >> Subject: [PATCH 1/1] hw_breakpoint.c :cpu hotplug handling >> >> This patch adds support for CPU hotplug, It re-installl all installed watchpoints and breakpoints >> back on H/W in case of cpu-hot plug. >Not sure why this is needed -- the scheduler should reinstall the >breakpoints when the debugged task gets scheduled in via >arch_install_hw_breakpoint. > >Will I agree with you this reinstalling has to be either take care by scheduler or Debug tool. In current implementation we clear H/W registers but we don't clear slots (wp_on_reg / bp_on_reg) for both watchpoint or breakpoint. So it makes mandatory for debug tool to uninstall breakpoints when CPU goes offline, because if we don't uninstall which I think is not required and when CPU comes online, we will not be able to reinstall them back because there will be no free slots. Despite of the fact that H/W registers are free but still we wouldn't be able to install breakpoints. Logically we should clear these slots or we should reinstall but if you think reinstall has to be taken care by scheduler or debugger then at least we should clear these slots. Regards, Vaneet Narang ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?