Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1946168ybp; Wed, 9 Oct 2019 23:26:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGepwCmfdgK5IM2gK2R7Gbq9wGXjxdht9Zh0WCrVlWnGNT5+2x6tbjoTnt1ophrFsTOIo9 X-Received: by 2002:a17:907:2132:: with SMTP id qo18mr6408384ejb.247.1570688793276; Wed, 09 Oct 2019 23:26:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570688793; cv=none; d=google.com; s=arc-20160816; b=dlnz1w4UYy5EMuFbmHM9QUuolP0hrVrDieLVaroTMroD7ng7Y7LHgcLXMPdvJlGK/T +3wxjXh14QsWe+rK7ui7jTz4htRLPouUao/IQcOWFb5jbH5woMVvWk2D3neT2M5j9fBe p2pydqZY9GkIxdhV8vYmjKhb1Jx6AYPH9qOO1LyaxKbH4Y6P5rWMN8l6ABGyAY+AT+zp waOs/ZWjkUXzhAH10hVTy5VQaqFqtrs2IKyLj4E9/nogDUzHadrrMfNnntKpg9Ue6aa0 kDj4szv5/UotXMWOTKD7YhLMW2mhGcHuuRO7r/a/XOnKDdhlxc+c2feVsoKYPVrUMSRM VTvw== 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=Hw//ckz73WVNcSW9vJF0OX5aLQSCwJpi+H10dodb5LQ=; b=qTgBnhgfBsPZGZ7fz8SEvwq+MRa+IZzKQGgJsZROzvSle8978zlGKtQ4ubTXAO+Me9 sOFC2uymh9cEFOGmulSOBsWOaOAs8aaCBPMyeL9bcROeXm6rGTZmAg6dLApfMmiZ1mIG ucsrVCKudjgmKbl3nypEaduCRgAKwqbfnyfaE5c92j66ZBunzQnDdX6KYx+G+uFTi97Z R90ekrTFQTOuW6Ff/N/0OuwbK9vleBTaBCUGtU4utYJEUl9rHxwLa36WsNoFXvdmGzH3 nRuHAo5c3UebwALmZzc/cfexTOUmYkkfgDUPhT3FvYMyPLA71S3NrYNoUCPYEMcBEA3d dPzQ== 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 j6si2429196ejj.37.2019.10.09.23.26.09; Wed, 09 Oct 2019 23:26:33 -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; 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 S1732759AbfJJG0F (ORCPT + 99 others); Thu, 10 Oct 2019 02:26:05 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:57692 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726840AbfJJG0F (ORCPT ); Thu, 10 Oct 2019 02:26:05 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x9A6D6UT142758 for ; Thu, 10 Oct 2019 02:26:04 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2vhy6bg9j4-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 10 Oct 2019 02:26:03 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 10 Oct 2019 07:26:01 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 10 Oct 2019 07:25:58 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x9A6PvOQ51314848 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 10 Oct 2019 06:25:57 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 22E335204F; Thu, 10 Oct 2019 06:25:57 +0000 (GMT) Received: from [9.124.31.69] (unknown [9.124.31.69]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 947D55205A; Thu, 10 Oct 2019 06:25:55 +0000 (GMT) Subject: Re: [PATCH v4 0/5] Powerpc/Watchpoint: Few important fixes To: Christophe Leroy Cc: mpe@ellerman.id.au, mikey@neuling.org, npiggin@gmail.com, benh@kernel.crashing.org, paulus@samba.org, naveen.n.rao@linux.vnet.ibm.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Ravi Bangoria References: <20190925040630.6948-1-ravi.bangoria@linux.ibm.com> <19b222ce-3013-7de5-1c04-48c6fd00fe81@linux.ibm.com> <0d98e256-44ee-f920-cb2f-f79545584769@c-s.fr> <3e31e5f7-f948-512a-054c-9ad10103ccc0@linux.ibm.com> From: Ravi Bangoria Date: Thu, 10 Oct 2019 11:55:54 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: <3e31e5f7-f948-512a-054c-9ad10103ccc0@linux.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 19101006-0028-0000-0000-000003A8BCDF X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19101006-0029-0000-0000-0000246AC3D2 Message-Id: <8d0ad57b-72ad-b77c-d558-86b46982ddeb@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-10-10_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910100058 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/10/19 10:14 AM, Ravi Bangoria wrote: > >>> @Christophe, Is patch5 works for you on 8xx? >>> >> >> Getting the following : >> >> root@vgoip:~# ./ptrace-hwbreak >> test: ptrace-hwbreak >> tags: git_version:v5.4-rc2-710-gf0082e173fe4-dirty >> PTRACE_SET_DEBUGREG, WO, len: 1: Ok >> PTRACE_SET_DEBUGREG, WO, len: 2: Ok >> PTRACE_SET_DEBUGREG, WO, len: 4: Ok >> PTRACE_SET_DEBUGREG, WO, len: 8: Ok >> PTRACE_SET_DEBUGREG, RO, len: 1: Ok >> PTRACE_SET_DEBUGREG, RO, len: 2: Ok >> PTRACE_SET_DEBUGREG, RO, len: 4: Ok >> PTRACE_SET_DEBUGREG, RO, len: 8: Ok >> PTRACE_SET_DEBUGREG, RW, len: 1: Ok >> PTRACE_SET_DEBUGREG, RW, len: 2: Ok >> PTRACE_SET_DEBUGREG, RW, len: 4: Ok >> PTRACE_SET_DEBUGREG, RW, len: 8: Ok >> PPC_PTRACE_SETHWDEBUG, MODE_EXACT, WO, len: 1: Ok >> PPC_PTRACE_SETHWDEBUG, MODE_EXACT, RO, len: 1: Ok >> PPC_PTRACE_SETHWDEBUG, MODE_EXACT, RW, len: 1: Ok >> PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW ALIGNED, WO, len: 6: Ok >> PPC_PTRACE_SETHWDEBUG, MODE_RANGE, DW ALIGNED, RO, len: 6: Fail >> failure: ptrace-hwbreak >> > > Thanks Christophe. I don't have any 8xx box. I checked qemu and it seems > qemu emulation for 8xx is not yet supported. So I can't debug this. Can > you please check why it's failing? PPC_PTRACE_SETHWDEBUG internally uses DAWR register and probably 8xx does not emulate DAWR logic, it only uses DABR to emulate double-word watchpoint. In that case, all testcases that uses PPC_PTRACE_SETHWDEBUG should be disabled for 8xx. I'll change [PATCH 5] accordingly and resend. Also, do you think I should fix hw_breakpoint_validate_len() from [PARCH 1] for 8xx? I re-checked you recent patch* to allow any address range size for 8xx. With that patch, hw_breakpoint_validate_len() won't get called at all for 8xx. * Message-Id: 1ed0de54ce6021fa0fdf50e938365546a4f5e316.1566925030.git.christophe.leroy@c-s.fr -Ravi