Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1544259pxf; Fri, 9 Apr 2021 10:58:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsBauQ+AotGuReS3LGSErPXRwhbgjyUvKJbXKzDzzLdJSd4bNEXR1RSBwmsVa6DfAUi6zH X-Received: by 2002:a17:90b:3b8c:: with SMTP id pc12mr15470739pjb.208.1617991122497; Fri, 09 Apr 2021 10:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617991122; cv=none; d=google.com; s=arc-20160816; b=gOrI2aL7EBxEAyHhmU4NXZTyf4HLE1VR8sQUtx5zgzD6wn37I4+ZIKrvfGtQs6MEnM CWMm1TfKGdtqUX7qi3HxMki5yFq0ZZLTpYRopfHYdwQ954A5wLFUSwY6yKNfjOtxhfc4 l7zJM5vl/FxJw1zeqBK6EVvH2b8YAuri4GLKKWFKdn9INN4z2dyFsUhEvb7BtNgKxl3D aGTHD19arKulJGfSb7mpkj3O4E3hlwa2JC33LriDmS27mcPG1Wq6TCmL7bIXl+3OJleq ey6vIClTRUudhsfZoVDXWBDtWq6aoO9haIU574amgZI4uCBio1zWZkgYSlnQDp+jcqCb XI3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=8l6WvDG4kyGiX4sAkSiygy0vll+xYlQPYEysPTaaUi0=; b=vPwLiT2lSOtpj17VG6sYpq/NWSvp0QUqk42xIf3Z4NtooHMezSMmRgCMf69FfuOjgm zhoZPKdNI8G0GcNlzCzzbQXlhPIJ0m0nrf0cnchqmLkt8Nu51U0yLzV/qZUqkMwTlQGc SMs8ya6RdzSeyicnAymZFJ3UXepG4icWIzFkguAfawoUVr5p8I5/Eg79POsZjWSr5uQ5 /A7vx5eq3nWcFBkYD+OLs1UO1D8ZWgeiEwTn7vKxks3H/UH9IbpnEd6arwgGbiCqJpNh XdqHDOuc1lv8JyVRLlruDMACwUZtrkQmsLKdX6TmqCyXGg3p1ySOre/0p8kR75XDI2Bq 7Pew== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r10si3378501pjq.95.2021.04.09.10.58.30; Fri, 09 Apr 2021 10:58:42 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234427AbhDIR5t (ORCPT + 99 others); Fri, 9 Apr 2021 13:57:49 -0400 Received: from gate.crashing.org ([63.228.1.57]:54049 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234409AbhDIR5s (ORCPT ); Fri, 9 Apr 2021 13:57:48 -0400 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 139HjBG4002289; Fri, 9 Apr 2021 12:45:11 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 139Hj6hE002280; Fri, 9 Apr 2021 12:45:06 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Fri, 9 Apr 2021 12:45:06 -0500 From: Segher Boessenkool To: Christophe Leroy Cc: Xiongwei Song , mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org, oleg@redhat.com, npiggin@gmail.com, aneesh.kumar@linux.ibm.com, ravi.bangoria@linux.ibm.com, mikey@neuling.org, haren@linux.ibm.com, akpm@linux-foundation.org, rppt@kernel.org, jniethe5@gmail.com, atrajeev@linux.vnet.ibm.com, maddy@linux.ibm.com, peterz@infradead.org, kjain@linux.ibm.com, kan.liang@linux.intel.com, aik@ozlabs.ru, alistair@popple.id.au, pmladek@suse.com, john.ogness@linutronix.de, Xiongwei Song , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] powerpc/traps: Enhance readability for trap types Message-ID: <20210409174506.GH26583@gate.crashing.org> References: <20210408140750.26832-1-sxwjean@me.com> <70ece993-12bd-335c-d246-914564eb51dd@csgroup.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <70ece993-12bd-335c-d246-914564eb51dd@csgroup.eu> User-Agent: Mutt/1.4.2.3i Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 09, 2021 at 06:14:19PM +0200, Christophe Leroy wrote: > >+#define INTERRUPT_SYSTEM_RESET 0x100 > > INT_SRESET SRESET exists on many PowerPC, it means "soft reset". Not the same thing at all. I think "INT" is not a great prefix fwiw, there are many things you can abbr to "INT". > >+#define INTERRUPT_DATA_SEGMENT 0x380 > > INT_DSEG exceptions-64s.S calls this "DSLB" (I remember "DSSI" though -- but neither is a very official name). It probably is a good idea to look at that existing code, not make up even more new names :-) > >+#define INTERRUPT_DOORBELL 0xa00 > > INT_DBELL That saves three characters and makes it very not understandable. Segher