Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp147741pxf; Wed, 31 Mar 2021 19:43:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSNNcnZHY/62DujciiqC9K37OB7WHMzxRaIXhOpUZxlD2CnA3f0dVL6l1FOuHz8dEF2e83 X-Received: by 2002:a05:6402:3049:: with SMTP id bu9mr7547977edb.104.1617245002600; Wed, 31 Mar 2021 19:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617245002; cv=none; d=google.com; s=arc-20160816; b=v1h2FaA27ITmy3E6AfDpMFom+HNX8cIgP00AY1GD8NI3KnpYSrKpLpycGsT2wmjoed IJMeePrYvuJY3Gu7LxlYlrRAYiMJeBVtKa2NytudWhqIKEk+t/gxMXXv0zVijZWcniGj iHqN/K8YTgWEzn6bVybMOD3WVd8I4DtoC++KY/87oEeeRR2m7w6eVBskYXd2F+bpnDyU xp+r/vISnXVyluY2rYSrWaLEEdnGI6ta5oXPDJKQS8azcN3CjpbU6XVGzEOdPngbkVAW 85JPqFAWf308wrGAMgHGHd5G6Yqf62V9lp7SM8mX1i9U0zBlRva5/y1CHIEwtB4yWYCg i6lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=xnFZk+qGpXbBb0LeyZ96bx2PF/L0NmOGOZToIq2PtVY=; b=Ph9Ih1M9D+SCazdkES/oL3HBTG8PHPBHPD6Hy/1IFEIV2qMYvYvuRvLKMwqFk5fylx qyt52L8OYyREonmZPWh3aP9DpnhwrudQQf0dsPwNeNWn0K3t0TfA87zBGdR+WNFdvUw3 Mpl3z5Ocf1KnzDgClln1Mf8D1kAYx2o0tMmDvWmcLgnCTgijwXrW2doQxhMKiAdcO9qy c20YIKHSAD5hETG16Ph2UcdLTuBF0rmPoqpWDSylJd7VdsB6xvFbt5mNCAZCM7bX6fLw T5dF8VaU4tAS1TOXwTvBCZIWhX+pCTvG+1fv4VeDB878kM6oXhhTWfrBnzVLQcFFe/u1 y/7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=DqclO1Od; 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 e1si3019506ejq.139.2021.03.31.19.43.00; Wed, 31 Mar 2021 19:43:22 -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=@ellerman.id.au header.s=201909 header.b=DqclO1Od; 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 S233102AbhDACkA (ORCPT + 99 others); Wed, 31 Mar 2021 22:40:00 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:58649 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbhDACjk (ORCPT ); Wed, 31 Mar 2021 22:39:40 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4F9nT03JYsz9sWw; Thu, 1 Apr 2021 13:39:32 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1617244778; bh=jF35UQXWV9ftup/kWbiFuhxrt8LNtzRK24u+5NfY62w=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=DqclO1OdkHC0HIyU55+U/3XcCUj81LZgSGICQJPeG655bzU+Kfn7sgMhOXVk588kr /RNXh7SMzPQg9w+ycpvXiJYPzSMsUPXgTNaq+lLam/2Hi6NoAhKyAipl8Pn9qoSLDk qA1j7sQL6q1sSnRcCQHQ2ml1w+YPDpUP8KsQC4MqrTP+xBcHnSr+VneuRaWCJ/c9sO JQS2YPJNnuIJ8CvhMpXwLplqRqcTByd40L476kgI5KDf/q3Z+7uScinxejVBJ++xxD l//mTD2CWZARwb1Z+kVGSfooQ/uFVb7Rj8QtZPUxt6A7Q+e87O+Jl8WQ1e29ewe7TA 0AjEBrKse/ySA== From: Michael Ellerman To: Segher Boessenkool Cc: Xiongwei Song , benh@kernel.crashing.org, paulus@samba.org, oleg@redhat.com, npiggin@gmail.com, christophe.leroy@csgroup.eu, msuchanek@suse.de, aneesh.kumar@linux.ibm.com, ravi.bangoria@linux.ibm.com, mikey@neuling.org, haren@linux.ibm.com, alistair@popple.id.au, jniethe5@gmail.com, peterz@infradead.org, leobras.c@gmail.com, akpm@linux-foundation.org, rppt@kernel.org, peterx@redhat.com, atrajeev@linux.vnet.ibm.com, maddy@linux.ibm.com, kjain@linux.ibm.com, kan.liang@linux.intel.com, aik@ozlabs.ru, pmladek@suse.com, john.ogness@linutronix.de, Xiongwei Song , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, kvm-ppc@vger.kernel.org Subject: Re: [PATCH v2] powerpc/traps: Enhance readability for trap types In-Reply-To: <20210331212550.GD13863@gate.crashing.org> References: <20210330150425.10145-1-sxwjean@me.com> <875z17y79i.fsf@mpe.ellerman.id.au> <20210331212550.GD13863@gate.crashing.org> Date: Thu, 01 Apr 2021 13:39:28 +1100 Message-ID: <87im5620f3.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Segher Boessenkool writes: > On Wed, Mar 31, 2021 at 08:58:17PM +1100, Michael Ellerman wrote: >> So perhaps: >> >> EXC_SYSTEM_RESET >> EXC_MACHINE_CHECK >> EXC_DATA_STORAGE >> EXC_DATA_SEGMENT >> EXC_INST_STORAGE >> EXC_INST_SEGMENT >> EXC_EXTERNAL_INTERRUPT >> EXC_ALIGNMENT >> EXC_PROGRAM_CHECK >> EXC_FP_UNAVAILABLE >> EXC_DECREMENTER >> EXC_HV_DECREMENTER >> EXC_SYSTEM_CALL >> EXC_HV_DATA_STORAGE >> EXC_PERF_MONITOR > > These are interrupt (vectors), not exceptions. It doesn't matter all > that much, but confusing things more isn't useful either! There can be > multiple exceptions that all can trigger the same interrupt. Yeah I know, but I think that ship has already sailed as far as the naming we have in the kernel. We have over 250 uses of "exc", and several files called "exception" something. Using "interrupt" can also be confusing because Linux uses that to mean "external interrupt". But I dunno, maybe INT or VEC is clearer? .. or TRAP :) cheers