Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp369336ybv; Sat, 22 Feb 2020 05:19:41 -0800 (PST) X-Google-Smtp-Source: APXvYqyYzROeSG1f0mti+OYxTTo7sPRrIO6sJ1rHdBHGGETjnJJHftdR3HETzeF1LPwM0Ta7KCiU X-Received: by 2002:a9d:20c1:: with SMTP id x59mr33942379ota.286.1582377581564; Sat, 22 Feb 2020 05:19:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582377581; cv=none; d=google.com; s=arc-20160816; b=jrhi5MDHBYu+roMsIiTh7x6sVAbMcpci/r1AjQKug4bAhD3coCy3CpS8LEzE9D+Ah5 U5sAM1qlMplOy1ObGn31VHvjnT2v3A2zTuMyvtuhg3hqFlus/LFkP9rdUbMvNC2X+Cwq C0ALxyZdJs0VwIMAECp+IH7tRSKttvQy/NT4HJjHeC1SZeG7LkiFA/eQ5HlJmBSqeELp c8PmmL33kjhb1Mq/3em3w7s7j9mRalw6Hi6/Nf9IQ8UGVEzczA4APMQRM1iozabmEOKl rw/XwvR3RS6AUsq0opeDbmKWEtW4mv62gjbVUosmonfKCm4ucfgC44RHeKwjRMcJh5m4 xe8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject; bh=+WEzMNt+7WTjxbT6g4aIYlZI5+oAPcV6tNKYXYOKd3Q=; b=EW59Pw0hKlhW5+02gPdOAV5bC0FYXonC3bEc5yt2h4AX0adCQ9GKC9LgeQ8QbQrlPK kZZo38exoDMRnTX0ogo+hhvsePpqzgmnFjZmWLGPva2XeGulXzpoOxgfJJjjqOtw5Ai9 5ngeVb7LuMHnUuW8amrVHT55MU303+dEhFZLS8QL2xtmQPISHPWq2InJHom4VPXPl5UY zC6VdZQJOnxw0lFDVW9iSAqMKY8LckdD/07ia/WUdkEkddJkt3J6uMWPsAyRhBjfgSHh bPz0/NMj/pEl5yjbgYtUXvlZfGuA4w/MoIVKuPtYZkH9aUWg4cDjniHZEj6A9lkTHNFQ uKBA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e64si2478635oib.4.2020.02.22.05.19.14; Sat, 22 Feb 2020 05:19:41 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727257AbgBVNRS (ORCPT + 99 others); Sat, 22 Feb 2020 08:17:18 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:62176 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726839AbgBVNRS (ORCPT ); Sat, 22 Feb 2020 08:17:18 -0500 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01MD4S1N145188 for ; Sat, 22 Feb 2020 08:17:16 -0500 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0b-001b2d01.pphosted.com with ESMTP id 2yb1apnabw-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 22 Feb 2020 08:17:16 -0500 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sat, 22 Feb 2020 13:17:14 -0000 Received: from b06avi18878370.portsmouth.uk.ibm.com (9.149.26.194) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Sat, 22 Feb 2020 13:17:12 -0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01MDHBtJ46072260 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 22 Feb 2020 13:17:11 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AB040A404D; Sat, 22 Feb 2020 13:17:11 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4BB04A4040; Sat, 22 Feb 2020 13:17:00 +0000 (GMT) Received: from [9.199.56.192] (unknown [9.199.56.192]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Sat, 22 Feb 2020 13:16:59 +0000 (GMT) Subject: Re: [PATCH] powerpc/watchpoint: Don't call dar_within_range() for Book3S To: Christophe Leroy Cc: mpe@ellerman.id.au, mikey@neuling.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Ravi Bangoria References: <20200222082049.330435-1-ravi.bangoria@linux.ibm.com> From: Ravi Bangoria Date: Sat, 22 Feb 2020 18:46:55 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 20022213-0016-0000-0000-000002E9447B X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20022213-0017-0000-0000-0000334C6734 Message-Id: <22698949-553b-c15d-27b1-983d3fb47507@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-22_03:2020-02-21,2020-02-22 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 mlxlogscore=999 malwarescore=0 mlxscore=0 adultscore=0 phishscore=0 bulkscore=0 clxscore=1015 impostorscore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002220116 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/22/20 4:56 PM, Christophe Leroy wrote: > > > On 02/22/2020 08:20 AM, Ravi Bangoria wrote: >> DAR is set to the first byte of overlap between actual access and >> watched range at DSI on Book3S processor. But actual access range >> might or might not be within user asked range. So for Book3S, it >> must not call dar_within_range(). >> >> This revert portion of commit 39413ae00967 ("powerpc/hw_breakpoints: >> Rewrite 8xx breakpoints to allow any address range size."). >> >> Before patch: >>    # ./tools/testing/selftests/powerpc/ptrace/perf-hwbreak >>    ... >>    TESTED: No overlap >>    FAILED: Partial overlap: 0 != 2 >>    TESTED: Partial overlap >>    TESTED: No overlap >>    FAILED: Full overlap: 0 != 2 >>    failure: perf_hwbreak >> >> After patch: >>    TESTED: No overlap >>    TESTED: Partial overlap >>    TESTED: Partial overlap >>    TESTED: No overlap >>    TESTED: Full overlap >>    success: perf_hwbreak >> >> Fixes: 39413ae00967 ("powerpc/hw_breakpoints: Rewrite 8xx breakpoints to allow any address range size.") > > Oh, this seems to have been introduced by 27985b2a640e ("powerpc/watchpoint: Don't ignore extraneous exceptions blindly"). > > I must have lost it through a rebase as we were doing our series approximately at the same time, sorry for that. > > Reviewed-by: Christophe Leroy No worries. Thanks for the review :) Ravi