Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp250499pxa; Tue, 4 Aug 2020 23:29:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxNR3o68lj4pehfNov7Fn/l+2lqvHT0qcaw+xgzrqgMQnns7JV1aKiW91GDAZ5eOieSHl0 X-Received: by 2002:a17:906:ca4f:: with SMTP id jx15mr1783195ejb.449.1596608951975; Tue, 04 Aug 2020 23:29:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596608951; cv=none; d=google.com; s=arc-20160816; b=tCySLyJkFUnm7DYTitkV5nsHATOwfpryCf9kl2w0OtTn3HuO8ar/xAVEm3dLNGnFv5 sIYehmBAhY7ErD6ehxE2UKIpG0fSc6GBQaFDukOZrjxtjvrqpiGUWvMS5QKbv3nGrU0v sQT+rN7Zqm/HrLMyK09NZXTwEPCEt5u+5a5+kiatwb09d5P2v2tYT1JMX29e6XTTVQeU glhYil/JKgCfCGMRhYyBsgmP+Awcg6FqSOgzuPW6ZQUtSYCD1/Ee/zoYBLzFFME01jiQ SVyWG68YDlv1Dg8huOF/o3r9j4TBxzj8GCuUfzEcSA9twAw/MfqgkyeTRFthyhqlebEX U8ng== 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:mime-version :message-id:date:subject:cc:to:from; bh=K9eHya3KsJm9dfBDUR/hpaqSs57NTMzTM+s6NdGcSqY=; b=amaFI6/ANcDrsZNjIaH4rT2VPhw7OK4Sx6PaRIPheeEh6+r12O4jjH7zJA4z6jB0xs vaSwxAs+Jg921ERNLSUb8GEgTVV/VMt7/OFh7X11AQy+865fAUsc9yhLl4qX7yz4a/O+ S2y40Rl7d3I1M+PJFgai8Y7dpQMOi7TVzkV0towz7o0kIgivIVhvZ5DinmGWYI+9I0bh 3ZdmNTwue02YhJ59VAMfEX7YqQdQI6wM5K+7GQoWOGf+RGJ6lWczcFYT43pMQgNqtZvb Ge4zSJ3y257ppCUgUa0cZcUJaHtC+YeTfcjAQY6kMMBYRjCCqLUyKpsVfobXqCF9PLVK OVhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id cy23si667578edb.311.2020.08.04.23.28.49; Tue, 04 Aug 2020 23:29:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727879AbgHEG22 (ORCPT + 99 others); Wed, 5 Aug 2020 02:28:28 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:34946 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727114AbgHEG22 (ORCPT ); Wed, 5 Aug 2020 02:28:28 -0400 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 0755YS8C064823; Wed, 5 Aug 2020 02:28:04 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 32qcfd7afb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Aug 2020 02:28:04 -0400 Received: from m0098414.ppops.net (m0098414.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 0755Ypv0065823; Wed, 5 Aug 2020 02:28:03 -0400 Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0b-001b2d01.pphosted.com with ESMTP id 32qcfd7aej-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Aug 2020 02:28:03 -0400 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0756GWqQ031034; Wed, 5 Aug 2020 06:28:01 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma05fra.de.ibm.com with ESMTP id 32n017tfsa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Aug 2020 06:28:01 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0756RvcR26673580 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 5 Aug 2020 06:27:57 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BDF7F4C04E; Wed, 5 Aug 2020 06:27:57 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DD9A54C044; Wed, 5 Aug 2020 06:27:54 +0000 (GMT) Received: from bangoria.ibmuc.com (unknown [9.199.33.73]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 5 Aug 2020 06:27:54 +0000 (GMT) From: Ravi Bangoria To: mpe@ellerman.id.au Cc: ravi.bangoria@linux.ibm.com, mikey@neuling.org, paulus@samba.org, christophe.leroy@c-s.fr, naveen.n.rao@linux.vnet.ibm.com, pedromfc@br.ibm.com, rogealve@br.ibm.com, jniethe5@gmail.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] powerpc/watchpoint/ptrace: Buf fix plus new feature flag Date: Wed, 5 Aug 2020 11:57:48 +0530 Message-Id: <20200805062750.290289-1-ravi.bangoria@linux.ibm.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-08-05_04:2020-08-03,2020-08-05 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 mlxscore=0 mlxlogscore=596 impostorscore=0 adultscore=0 malwarescore=0 phishscore=0 spamscore=0 bulkscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008050049 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Patch #1 fixes a bug when watchpoint is created with ptrace PPC_PTRACE_SETHWDEBUG and CONFIG_HAVE_HW_BREAKPOINT=N. patch #2 introduce new feature bit PPC_DEBUG_FEATURE_DATA_BP_ARCH_31 which will be set when running on ISA 3.1 compliant machine. v2: https://lore.kernel.org/r/20200723093330.306341-1-ravi.bangoria@linux.ibm.com v2->v3: - #1: is new - #2: Set PPC_DEBUG_FEATURE_DATA_BP_ARCH_31 unconditionally while running on p10. - Rebased to powerpc/next (cf1ae052e073) Ravi Bangoria (2): powerpc/watchpoint/ptrace: Fix SETHWDEBUG when CONFIG_HAVE_HW_BREAKPOINT=N powerpc/watchpoint/ptrace: Introduce PPC_DEBUG_FEATURE_DATA_BP_ARCH_31 Documentation/powerpc/ptrace.rst | 1 + arch/powerpc/include/uapi/asm/ptrace.h | 1 + arch/powerpc/kernel/ptrace/ptrace-noadv.c | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) -- 2.26.2