Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3607084ybh; Tue, 17 Mar 2020 03:18:07 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuH8/xAD3sw+iyEgnY3PFmPeYFeMwmExqlqnY8QcmWVc1AtQedGwy5dQgu6UDVbpQPuAc9b X-Received: by 2002:aca:3857:: with SMTP id f84mr2728611oia.150.1584440287248; Tue, 17 Mar 2020 03:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584440287; cv=none; d=google.com; s=arc-20160816; b=j8Blq55LQ1A+bF2+tP6TNgxKXJcfbgInhDPsfC/dOeVs2/biGQbOBvyxAlKfgAKnXq gJGetd+FW7E2AgY3f/ClxKUHMgRkbZVeKvRPavImpG+Ex2JDE0ic0L6kWDkj1uY1mwPi Wv6VpTzrGfwc1OgNa1L4oJnDUsdUN9DKc9cNusrMIReyDQtKFYVlrDCqsYZP0OwpsE5g hUQH3amoukr620NTy+nSjLaNSog9WvsF1GFmoYN9Ga16Ua9mtZZq6suvvlasZ7gg23Rv RKYma/ktyCUusID/c4ZtN/9XuGNfIJZQKAOnXwzJ5LyUyj8tQlYu5v4TDdoJp9Mk9//1 v1rg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=gHfeGuNMX9DiSTA3t8ffi2E0nIxwRTV7SW2fZ5cXtlo=; b=Qj4Mrw4aNlwOHVsj33U9hAiTWJiJRfTPtuK6nqNMlOTEJeu44H5nPyQUXB1pTQb00u yxjYaEdZbR5aT71sMd6BRbdlGsplwsaEIwchqHE1K5/T00gUBycEU/wXLspfgLKth/in vM5o+KXZeYRrCxAw7XoMKJRMP+ZnY90LrPjPgBP76pbYfgv+c74+8cl6r3o1jFBA8voE SqlWRUrqqL1zP+ldibuIwRRc/VYUsdNGHHnqO0esHWvH+4FB1pFzqYBGyWdlhA4ahPdh E1l0pTzJxlvex1iGmspbvvtYBer7czBgnd+vPA7ibv/mL9CqtOnNmUysFboYrdQQM1Pv 1ROg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=Y0+ClKkA; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d23si1465945oig.118.2020.03.17.03.17.53; Tue, 17 Mar 2020 03:18:07 -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; dkim=pass header.i=@c-s.fr header.s=mail header.b=Y0+ClKkA; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726016AbgCQKQk (ORCPT + 99 others); Tue, 17 Mar 2020 06:16:40 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:43087 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725794AbgCQKQj (ORCPT ); Tue, 17 Mar 2020 06:16:39 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 48hTbn465tz9txmZ; Tue, 17 Mar 2020 11:16:37 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=Y0+ClKkA; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id Aklas_zFK9XK; Tue, 17 Mar 2020 11:16:37 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 48hTbn2wrlz9txmY; Tue, 17 Mar 2020 11:16:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1584440197; bh=gHfeGuNMX9DiSTA3t8ffi2E0nIxwRTV7SW2fZ5cXtlo=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Y0+ClKkAHkAbXdn90tqR12mVHVp0XeMaovQfiDBqjooBwzvtHjR0rMk0mG+IzuOS0 8bPRYV+6KK9qTLUHnyCKT+YERwRt3+TfAVBqEXOnsHFb7IIPuczSnCxRxINs9o51s9 o/u94T8qb60NVbDyIXCJigBoqFkPXg06UqIDHD+E= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 48BD48B787; Tue, 17 Mar 2020 11:16:38 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id Ui0mrgBY-Bua; Tue, 17 Mar 2020 11:16:38 +0100 (CET) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 7F50A8B785; Tue, 17 Mar 2020 11:16:36 +0100 (CET) Subject: Re: [PATCH 02/15] powerpc/watchpoint: Add SPRN macros for second DAWR To: Ravi Bangoria , mpe@ellerman.id.au, mikey@neuling.org Cc: apopple@linux.ibm.com, paulus@samba.org, npiggin@gmail.com, naveen.n.rao@linux.vnet.ibm.com, peterz@infradead.org, jolsa@kernel.org, oleg@redhat.com, fweisbec@gmail.com, mingo@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <20200309085806.155823-1-ravi.bangoria@linux.ibm.com> <20200309085806.155823-3-ravi.bangoria@linux.ibm.com> From: Christophe Leroy Message-ID: <0a45786d-f44b-8717-3aed-dfcfcb1856bb@c-s.fr> Date: Tue, 17 Mar 2020 11:16:34 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200309085806.155823-3-ravi.bangoria@linux.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 09/03/2020 à 09:57, Ravi Bangoria a écrit : > Future Power architecture is introducing second DAWR. Add SPRN_ macros > for the same. I'm not sure this is called 'macros'. For me a macro is something more complex. For me those are 'constants'. Christophe > > Signed-off-by: Ravi Bangoria > --- > arch/powerpc/include/asm/reg.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h > index 156ee89fa9be..062e74cf41fd 100644 > --- a/arch/powerpc/include/asm/reg.h > +++ b/arch/powerpc/include/asm/reg.h > @@ -284,6 +284,7 @@ > #define CTRL_TE 0x00c00000 /* thread enable */ > #define CTRL_RUNLATCH 0x1 > #define SPRN_DAWR0 0xB4 > +#define SPRN_DAWR1 0xB5 > #define SPRN_RPR 0xBA /* Relative Priority Register */ > #define SPRN_CIABR 0xBB > #define CIABR_PRIV 0x3 > @@ -291,6 +292,7 @@ > #define CIABR_PRIV_SUPER 2 > #define CIABR_PRIV_HYPER 3 > #define SPRN_DAWRX0 0xBC > +#define SPRN_DAWRX1 0xBD > #define DAWRX_USER __MASK(0) > #define DAWRX_KERNEL __MASK(1) > #define DAWRX_HYP __MASK(2) >