Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1394905ybh; Sun, 19 Jul 2020 18:44:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMuueZ1zIdaD++tp1ynTbL+1vt4RbtyD+HmRJyaTkDCUeIlCs8hpZ/xl3AK57ivcPZQOR6 X-Received: by 2002:a50:82c1:: with SMTP id 59mr6003460edg.295.1595209464761; Sun, 19 Jul 2020 18:44:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595209464; cv=none; d=google.com; s=arc-20160816; b=IF/6LAZzTel3omnM/VnOseVhKylqUfYOqwk8itKTNMX0aTPbFEp/jSge1r+DmXKcq3 SeDw+jwQ3LS15BaAhzWswOccuhvuG/iSlYVyE2cLdtIyIL2WcXNwOuWPuYKbm2UyR6Q8 qShy5UcuzC8DZXcU4W3ZSjky7ee4sZvyeyk/oJdYTzJkXvXRDhTY5JbHhy+JlGKGjaRa M6/l4A5w+ra3tdJ22ucvkX073u8bUdkws7S8kZGKdX4F7PLRUHm7XRAaTnCy9ae4PcI4 nAJLUcvzFEY1a4BykZFxlucQX5PGQMma8PuqcJpAYgCxVPP6MvgHG5/1mEmahVMT6y/d 2sLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=/V56vpG6VmCA46P7nYwbFvH9ch6Jbn81Eu33ezKH4EQ=; b=hxJTJbYvTTxjDtT/cZTGS6mqIVgrIHJBCMl09MBYW13eIjNfHNs4saG84HwcZmDzGP rYdu+xuPvySchXontU27opHlgf+iLAspBR2HFoYcdrpuXN9KzJ0k5BzxbsKcJoezZDP8 MoehrBQ1apY7bTm8GvXE4o0I7/I9Jw6K3ruPbWzgbj9Iaez3Wssea1ZSZJp4JhaGRYaB dCjHPxylMHcKNS/lD7TAkE5NAIU57/0SMF82fPoM8ZPFfyIn4q6ZeCN8t74mOG1UcbgF nJrB4Q23ZuQX7MMZTVJJ0EibZa6dDBoduVUWBXmhU0djmtspNM2nM1V2fN3bwjhSsUtB 7Vgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lBjd6AuI; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r8si9924490edq.393.2020.07.19.18.44.01; Sun, 19 Jul 2020 18:44:24 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lBjd6AuI; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726654AbgGTBnF (ORCPT + 99 others); Sun, 19 Jul 2020 21:43:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726225AbgGTBnF (ORCPT ); Sun, 19 Jul 2020 21:43:05 -0400 Received: from mail-ot1-x341.google.com (mail-ot1-x341.google.com [IPv6:2607:f8b0:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 549C5C0619D2 for ; Sun, 19 Jul 2020 18:43:05 -0700 (PDT) Received: by mail-ot1-x341.google.com with SMTP id h13so10991310otr.0 for ; Sun, 19 Jul 2020 18:43:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/V56vpG6VmCA46P7nYwbFvH9ch6Jbn81Eu33ezKH4EQ=; b=lBjd6AuIheNnitCvLHRoWZ2oDqbEwOMjIx+QaJMcGw6X0fBlzO8TUsb9YNZJmWi0qe WhFmGOdgOj0RDBHIg69RfwnvOAjoOFMIVmGOdiPS/wo5GKMfoh7MgRopanvbxvSVkVgN lEw/WIITspqQd9FW7KwnuUFVoxyBh/4B3wZ4VgwPJQKpqsz5mE5HPW0hKlYaPVHwA81F 9xP4IPmxaEfWrVs8bruRr4kQkx9LcNla/scNRe4eVtu4panA3FQ//eYdpi/rMZ8i7ksK 815vh4RaKZsJpbg1eWLwgTHGrYkVdfSwUsIA5MKvcGpNRHvGf2vCZBUOxFv1xDSj+d2u uwQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/V56vpG6VmCA46P7nYwbFvH9ch6Jbn81Eu33ezKH4EQ=; b=Gct4FSVfZ0DqeyevpkvFyjAuIR7E3SnScgWdDoGOesty+f9DhJrI0o7RTu3maC+z2w VzpGI39n6+0dyxtGytgL86SnQOcWRGMhgeJotAQjqxoUdHPKZ6VaUC9exa4G+1sg5jJK zmKHqfKdlYX84JPjN2X403BzD7dAwWQKDmAx0Tkza1g+WimRGKnKILqDUiUVz79J6Qan oZ+9UynKhCdU1HatHaiwgogE8VxBppYqrQ4OI3j1dZQr6N486BTs3qYQ1dpZ1aFb+fMG NwYY+UXC/Hcl5Fkz/oWgx5BQgrC/kGHCmVBnW+WAwFFwxe8R4Qf9J+EHLziy0egar856 W/bA== X-Gm-Message-State: AOAM530gL4dsP/C9X0Qv/5B+vKAwxylI+//KPihCBhMJyyygIwjKGdgy HW3WvEYrox9CJpCQsdPUxED710ro0oz1YhSZLi0= X-Received: by 2002:a9d:6a12:: with SMTP id g18mr19272580otn.155.1595209384681; Sun, 19 Jul 2020 18:43:04 -0700 (PDT) MIME-Version: 1.0 References: <20200717040958.70561-1-ravi.bangoria@linux.ibm.com> <20200717040958.70561-7-ravi.bangoria@linux.ibm.com> In-Reply-To: <20200717040958.70561-7-ravi.bangoria@linux.ibm.com> From: Jordan Niethe Date: Mon, 20 Jul 2020 11:39:49 +1000 Message-ID: Subject: Re: [PATCH v4 06/10] powerpc/watchpoint: Set CPU_FTR_DAWR1 based on pa-features bit To: Ravi Bangoria Cc: Michael Ellerman , mikey@neuling.org, apopple@linux.ibm.com, Paul Mackerras , Nicholas Piggin , Christophe Leroy , 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, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 17, 2020 at 2:10 PM Ravi Bangoria wrote: > > As per the PAPR, bit 0 of byte 64 in pa-features property indicates > availability of 2nd DAWR registers. i.e. If this bit is set, 2nd > DAWR is present, otherwise not. Host generally uses "cpu-features", > which masks "pa-features". But "cpu-features" are still not used for > guests and thus this change is mostly applicable for guests only. > > Signed-off-by: Ravi Bangoria I checked those PAPR values are correct and checked running a powernv kernel in p10 mambo with dt_cpu_ftrs=off and it does set the CPU_FTR_DAWR1 bit. (using p10 skiboot). Tested-by: Jordan Niethe > --- > arch/powerpc/kernel/prom.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c > index 9cc49f265c86..c76c09b97bc8 100644 > --- a/arch/powerpc/kernel/prom.c > +++ b/arch/powerpc/kernel/prom.c > @@ -175,6 +175,8 @@ static struct ibm_pa_feature { > */ > { .pabyte = 22, .pabit = 0, .cpu_features = CPU_FTR_TM_COMP, > .cpu_user_ftrs2 = PPC_FEATURE2_HTM_COMP | PPC_FEATURE2_HTM_NOSC_COMP }, > + > + { .pabyte = 64, .pabit = 0, .cpu_features = CPU_FTR_DAWR1 }, > }; > > static void __init scan_features(unsigned long node, const unsigned char *ftrs, > -- > 2.26.2 >