Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1697901ybh; Thu, 16 Jul 2020 21:12:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx52VUjbl6NNLmYZ/l5YMVLV8ALFBQd2w9GaFpqdZ35ck1UvJYTOT7wx/tf7L3E6bKtAlKT X-Received: by 2002:a05:6402:1c10:: with SMTP id ck16mr7576603edb.72.1594959120632; Thu, 16 Jul 2020 21:12:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594959120; cv=none; d=google.com; s=arc-20160816; b=aHeORt0k4NAr2aXWYOqS4qYLqhefAw+7HoKQfa+fT/t1xkdVRJkTQe8lL5YFlgES6c GNMQ+F3wtQKNue4SLnPWduQbY5XEyne4YgjB26G8DWe+TRLbyptGGWbzrsO75blri7vc 0ZIqDYrfAHAvNp+v4c9caPrbgtTmb5wnS8do9mXaEuJuKtmwzMjYSK0oO7F1ZRM0G+Uj n28OGaZNMP8aYLVlj7YMS67wrzaTxUOxMbUWIjdwARnQ+Gz/7So8DwMAzjd9T8OWUtJW HNrK9HS2ax0BhC2iIi1Y1sZ041/Uk0jXPaFV900/wVdvf/Fg6KyyuKIucgDmOA1Gz4Cd mx7Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Trli91cKwZ+2QoDUqWDbEcs2DG9/sirBhZqUxeph08I=; b=KjOdssw2MUnlixWDQir22DH+0X1TAE9CgK9QURIZDcamiSu1d/rh5/WzET5EnUl9B4 0oK84rutkHpmGqCCJJgPeDc04L7yyUb5I9Pw1xHA31dVygQe638vQTUvePBLvRq2OZ+C OulPWTfEYLS+87EBT1PTrxL4rUbCTReQ9TuMSv6tXFZWQUViqJ5kWNqCgXE8LrEjpmy2 +BIxQLJ+4kNpzDUVJ8oCwogUXJagoXAAOZRcoy10bS8A5vn+Sy6EEqZsalez5qsL9p4t kM99DaAkpjNUHZtWWksy1U/OSi5h0hZsx1pmtHBGV9IVrNN+hIo8+h76HHJps1fiOUCV e45Q== 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 w24si4384572edv.318.2020.07.16.21.11.37; Thu, 16 Jul 2020 21:12:00 -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 S1726959AbgGQELN (ORCPT + 99 others); Fri, 17 Jul 2020 00:11:13 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:5960 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725300AbgGQELM (ORCPT ); Fri, 17 Jul 2020 00:11:12 -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 06H3WZkO195717; Fri, 17 Jul 2020 00:10:47 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 32ax78gqy2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Jul 2020 00:10:47 -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 06H3rUDD131335; Fri, 17 Jul 2020 00:10:46 -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 32ax78gqxh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Jul 2020 00:10:46 -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 06H46KUv007557; Fri, 17 Jul 2020 04:10:45 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma05fra.de.ibm.com with ESMTP id 327q2y2u0q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Jul 2020 04:10:44 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 06H4AfvL31326538 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 17 Jul 2020 04:10:41 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C70E3AE045; Fri, 17 Jul 2020 04:10:41 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AF391AE055; Fri, 17 Jul 2020 04:10:37 +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:37 +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 04/10] powerpc/watchpoint: Enable watchpoint functionality on power10 guest Date: Fri, 17 Jul 2020 09:39:52 +0530 Message-Id: <20200717040958.70561-5-ravi.bangoria@linux.ibm.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200717040958.70561-1-ravi.bangoria@linux.ibm.com> References: <20200717040958.70561-1-ravi.bangoria@linux.ibm.com> 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 adultscore=0 spamscore=100 priorityscore=1501 mlxscore=100 mlxlogscore=-1000 phishscore=0 lowpriorityscore=0 clxscore=1015 malwarescore=0 suspectscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007170025 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CPU_FTR_DAWR is by default enabled for host via CPU_FTRS_DT_CPU_BASE (controlled by CONFIG_PPC_DT_CPU_FTRS). But cpu-features device-tree node is not PAPR compatible and thus not yet used by kvm or pHyp guests. Enable watchpoint functionality on power10 guest (both kvm and powervm) by adding CPU_FTR_DAWR to CPU_FTRS_POWER10. Note that this change does not enable 2nd DAWR support. Signed-off-by: Ravi Bangoria --- arch/powerpc/include/asm/cputable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/cputable.h b/arch/powerpc/include/asm/cputable.h index bac2252c839e..e506d429b1af 100644 --- a/arch/powerpc/include/asm/cputable.h +++ b/arch/powerpc/include/asm/cputable.h @@ -478,7 +478,7 @@ static inline void cpu_feature_keys_init(void) { } CPU_FTR_CFAR | CPU_FTR_HVMODE | CPU_FTR_VMX_COPY | \ CPU_FTR_DBELL | CPU_FTR_HAS_PPR | CPU_FTR_ARCH_207S | \ CPU_FTR_TM_COMP | CPU_FTR_ARCH_300 | CPU_FTR_PKEY | \ - CPU_FTR_ARCH_31) + CPU_FTR_ARCH_31 | CPU_FTR_DAWR) #define CPU_FTRS_CELL (CPU_FTR_LWSYNC | \ CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_CTRL | \ CPU_FTR_ALTIVEC_COMP | CPU_FTR_MMCRA | CPU_FTR_SMT | \ -- 2.26.2