Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1697702ybh; Thu, 16 Jul 2020 21:11:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXAx+YSOaItJd4vmYrdebsi+1TGGjUaJuxrlq9UGo2Ci0ZSFeqloWIhTDCeBcE70YjgoDu X-Received: by 2002:a17:906:8601:: with SMTP id o1mr7065896ejx.326.1594959086691; Thu, 16 Jul 2020 21:11:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594959086; cv=none; d=google.com; s=arc-20160816; b=hja0hzmThzb/XWDQpHSmDNbU4PKgrq6jBthG2xUzvZFvkjn/amPG/aLG4F8Dx7OHZB puvnpvIKa0GawcBHiswdq8vKOaHiI3Sdq3RBcl4MFQgdE8N5hgFZlfdPpIusYHsKUL/A uxXbypOl6KGiw8l4O9VzOYugKbgmZQxXhBJN/DmhrLUdzyVEPY4gLaW/8/Y3L/fWb+ZA tQFr3jj5gA0PSZxAibFCTYOtwgYq5U+DWYNiTSokxaQvHkHAeOnyOwkVfjiK1KleDgSk vv5XTqJKJywrkqiQwoe++owZh6VFx2uwlBhkUVkaLDpyIob3K1GiVnAqK/TBuyW5rbg1 sfJg== 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=0J7b8e++vw9RSvIdhJJpHfyJoUpXC89FuHhjR0TAotA=; b=CyoHvTQLbJZmOscQiBVUxr52c51u0Ll2TZGD+fKEfysY8eE4GvO3Soe481iGJqk7XB Pmtqj2fLx1xqBoVArNd8J0EFwcsGxx+lgPYoq5WKGjm54RvR/q8M2F5EF00S3Q9tNy/1 gz2cuFnmvSfH3OyiQnMswEIje+k032GItKqYJaQdHtnOBVY/rAKiN0ZJ89AayZgsLU4Z vOPhIqsK3mUsrsEWnH6ndjcsxcvrOs1IivTg8DHEJOsQ6Kl2sg+CV+5J+8dbTlUJyKIn ASUvGkKI4EDm+2RDfF2eINexES+Y8ywTclAqaV1INwqzq3wilCzJSoWQCgdElEzFNAiN CBAw== 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 i23si4448351edx.261.2020.07.16.21.11.03; Thu, 16 Jul 2020 21:11:26 -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 S1726633AbgGQEK4 (ORCPT + 99 others); Fri, 17 Jul 2020 00:10:56 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:43426 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725300AbgGQEKz (ORCPT ); Fri, 17 Jul 2020 00:10:55 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06H434w9173749; Fri, 17 Jul 2020 00:10:29 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 32awbrsy0r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Jul 2020 00:10:29 -0400 Received: from m0098417.ppops.net (m0098417.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 06H434Pf173782; Fri, 17 Jul 2020 00:10:28 -0400 Received: from ppma06fra.de.ibm.com (48.49.7a9f.ip4.static.sl-reverse.com [159.122.73.72]) by mx0a-001b2d01.pphosted.com with ESMTP id 32awbrsy06-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Jul 2020 00:10:28 -0400 Received: from pps.filterd (ppma06fra.de.ibm.com [127.0.0.1]) by ppma06fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 06H3wVbN016625; Fri, 17 Jul 2020 04:10:27 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma06fra.de.ibm.com with ESMTP id 328rbqsxj7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Jul 2020 04:10:26 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 06H4AOkX23331216 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 17 Jul 2020 04:10:24 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DBC17AE058; Fri, 17 Jul 2020 04:10:23 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A8C91AE045; Fri, 17 Jul 2020 04:10:19 +0000 (GMT) Received: from bangoria.ibmuc.com (unknown [9.199.41.4]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 17 Jul 2020 04:10:19 +0000 (GMT) From: Ravi Bangoria To: mpe@ellerman.id.au, mikey@neuling.org Cc: ravi.bangoria@linux.ibm.com, apopple@linux.ibm.com, paulus@samba.org, npiggin@gmail.com, christophe.leroy@c-s.fr, naveen.n.rao@linux.vnet.ibm.com, peterz@infradead.org, jolsa@kernel.org, oleg@redhat.com, fweisbec@gmail.com, mingo@kernel.org, pedromfc@br.ibm.com, miltonm@us.ibm.com, jniethe5@gmail.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 00/10] powerpc/watchpoint: Enable 2nd DAWR on baremetal and powervm Date: Fri, 17 Jul 2020 09:39:48 +0530 Message-Id: <20200717040958.70561-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-07-16_11:2020-07-16,2020-07-16 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_spam_definite policy=outbound score=100 bulkscore=0 phishscore=0 impostorscore=0 lowpriorityscore=0 adultscore=0 spamscore=100 mlxscore=100 malwarescore=0 clxscore=1015 mlxlogscore=-1000 priorityscore=1501 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007170029 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Last series[1] was to add basic infrastructure support for more than one watchpoint on Book3S powerpc. This series actually enables the 2nd DAWR for baremetal and powervm. Kvm guest is still not supported. v3: https://lore.kernel.org/lkml/20200708045046.135702-1-ravi.bangoria@linux.ibm.com v3->v4: - v3 patch #2 is split into two v4 patches: #2 and #3 - Few other minor neats suggested by Jordan Niethe - Rebased to powerpc/next [1]: https://lore.kernel.org/linuxppc-dev/20200514111741.97993-1-ravi.bangoria@linux.ibm.com/ Ravi Bangoria (10): powerpc/watchpoint: Fix 512 byte boundary limit powerpc/watchpoint: Fix DAWR exception constraint powerpc/watchpoint: Fix DAWR exception for CACHEOP powerpc/watchpoint: Enable watchpoint functionality on power10 guest powerpc/dt_cpu_ftrs: Add feature for 2nd DAWR powerpc/watchpoint: Set CPU_FTR_DAWR1 based on pa-features bit powerpc/watchpoint: Rename current H_SET_MODE DAWR macro powerpc/watchpoint: Guest support for 2nd DAWR hcall powerpc/watchpoint: Return available watchpoints dynamically powerpc/watchpoint: Remove 512 byte boundary arch/powerpc/include/asm/cputable.h | 13 ++- arch/powerpc/include/asm/hvcall.h | 3 +- arch/powerpc/include/asm/hw_breakpoint.h | 5 +- arch/powerpc/include/asm/machdep.h | 2 +- arch/powerpc/include/asm/plpar_wrappers.h | 7 +- arch/powerpc/kernel/dawr.c | 2 +- arch/powerpc/kernel/dt_cpu_ftrs.c | 7 ++ arch/powerpc/kernel/hw_breakpoint.c | 98 +++++++++++++++-------- arch/powerpc/kernel/prom.c | 2 + arch/powerpc/kvm/book3s_hv.c | 2 +- arch/powerpc/platforms/pseries/setup.c | 7 +- 11 files changed, 101 insertions(+), 47 deletions(-) -- 2.26.2