Message ID | 20240719023947.112609-3-jamestiotio@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=JEZxJmWq; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=nKMwqdHL; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WQDRV2mDnz1yXp for <incoming@patchwork.ozlabs.org>; Fri, 19 Jul 2024 12:40:06 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zddro/WZHx/BaI62je1E6TZ0lg4vQwzOiSW9lsLVnr4=; b=JEZxJmWq/STAon V33N0I+nbcmKWoT/ChE50ek1VBkbBv9UKvoIHYZE3JU8KqH2NbCZRbg0xXNj4HUuEuVaUQpg1DSf5 8qFIIe2TNvu09VVjuRf7E/07Bb4HT0rAPgqOs2jlgA3oK9KTwayTZnvpulgPBje5/5hTFH/ZaRSpb COnq/Ngl6eSjNxlY0PPy65or1WsnlU92evl7DvPl3FdFNwkAbsNL3qJ4tXyLSiYynlIbwBk42VZn+ GGOGzHBLE386cceDnYq8oadgCmwNl/5/BQDD2tY4PUFpuj7TpeLL1khXXcBrTykKy70nYImjkGJVw 0VsJXPA37z4xX2NvGWiw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUdXR-00000001LGQ-0J94; Fri, 19 Jul 2024 02:40:05 +0000 Received: from mail-oi1-x236.google.com ([2607:f8b0:4864:20::236]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUdXO-00000001LEr-0hZg for kvm-riscv@lists.infradead.org; Fri, 19 Jul 2024 02:40:03 +0000 Received: by mail-oi1-x236.google.com with SMTP id 5614622812f47-3dab336717fso888260b6e.0 for <kvm-riscv@lists.infradead.org>; Thu, 18 Jul 2024 19:40:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721356801; x=1721961601; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YOqEXJYpkIexGhOwSJXzU52SvIkIRl2QtZdZCBi6Nm8=; b=nKMwqdHL6595jfSXgIW5nb/JwvnXO9Iphh7uCNn57ZFubD+b+pdu8RbvLEjaZ8JFBN H6YJreyvNIZ7cDnlSFk9nqP5R10VAXA2ym5Eohn0iWDoNE2IjNXvqjxTeg4a0qWNbfc+ 6LJdy8QZP9ppIdeKZ5OU14o/401x7Y/iYCMv2WKM5uf1etQ1aIKmXXyj6WR7I0Jfa/0G KxAiER/r89XhCeWM3PfYdnY2MB2in5Mr64R9+6Ao0RE1fhLF1t57hJZggY0fI1l9TC7H S9CgqGNjgdaE440w0tPBEpEDGgmiSegyx22J47VdkT+iVpwQ416EmHcCw5wNsmOavuhs IIVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721356801; x=1721961601; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YOqEXJYpkIexGhOwSJXzU52SvIkIRl2QtZdZCBi6Nm8=; b=eauw1f3Ro5drqF71mzhXh++8HSL4qZhpq2vPYXe/qgWfiAI1xOkwk7uoIcml+TkDbm F/ZXSkNSLdrCprBksIMc2CxtED3m4ZfvJEdnm64eRW5l1COLHppBODYvNZiPgmDtyflV jwaiKbtJH0jP5Icukp+zAzC7daxXDv8qGe990tsdNPKhATkOciIxtn8Rq+1tPqK3ViJx firA4IR4yS5G37UGj3+Vw1IrkLCMuHpj1PA5OWsGT+pIaz3ILGWRu0t14kCPM1tbRXIT EEfrnZqEtJBYPzqEAQFlSU0ief+v6LiUITk8uT/QkWjhON5WhXsDcdcCUX6B8sJVAA4n 1OsA== X-Forwarded-Encrypted: i=1; AJvYcCWuj2aPLmrdzpD0DL1WGQVxNBKZ5xTAkCwfxbaW5WHCWtAYnCPEYY5tq2BH7lUNdocxIBDBqdKDZ0VmRMa57exelPfBJXf7OvS97e44KA== X-Gm-Message-State: AOJu0YwqVr9G2fG2d7cD7GaXBm+zbpF+BoJyHP6oNuPZKGYDo35WFSmX j+yu97PlYGMDiFu5qFcC9edgoad+HVVBxCfjrTgN4sMQddAofI2F X-Google-Smtp-Source: AGHT+IEgSdUOdRVWVRUT3GsQg5RO6N/d5Cu5ZrjCn7Ff/U+19qpx6zxyOovgaJBR5b8ea7A23+A4+Q== X-Received: by 2002:a05:6808:1395:b0:3d6:2e85:5c34 with SMTP id 5614622812f47-3dad9a2d485mr4024788b6e.38.1721356800727; Thu, 18 Jul 2024 19:40:00 -0700 (PDT) Received: from JRT-PC.. ([202.166.44.78]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70cff491231sm234930b3a.31.2024.07.18.19.39.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jul 2024 19:40:00 -0700 (PDT) From: James Raphael Tiovalen <jamestiotio@gmail.com> To: kvm@vger.kernel.org, kvm-riscv@lists.infradead.org Cc: andrew.jones@linux.dev, atishp@rivosinc.com, cade.richard@berkeley.edu, James Raphael Tiovalen <jamestiotio@gmail.com> Subject: [kvm-unit-tests PATCH v3 2/5] riscv: Update exception cause list Date: Fri, 19 Jul 2024 10:39:44 +0800 Message-ID: <20240719023947.112609-3-jamestiotio@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240719023947.112609-1-jamestiotio@gmail.com> References: <20240719023947.112609-1-jamestiotio@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240718_194002_384259_2E34080A X-CRM114-Status: GOOD ( 10.09 ) X-Spam-Score: -2.1 (--) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Update the list of exception and interrupt causes to follow the latest RISC-V privileged ISA specification (version 20240411 section 18.6.1). Reviewed-by: Andrew Jones Signed-off-by: James Raphael Tiovalen --- lib/riscv/asm/csr.h | 10 ++++++++++ lib/riscv/asm/processor.h | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) Content analysis details: (-2.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:236 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [jamestiotio(at)gmail.com] X-BeenThere: kvm-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <kvm-riscv.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/kvm-riscv>, <mailto:kvm-riscv-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/kvm-riscv/> List-Post: <mailto:kvm-riscv@lists.infradead.org> List-Help: <mailto:kvm-riscv-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/kvm-riscv>, <mailto:kvm-riscv-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kvm-riscv" <kvm-riscv-bounces@lists.infradead.org> Errors-To: kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
[kvm-unit-tests,v3,1/5] riscv: Extend exception handling support for interrupts
|
expand
|
diff --git a/lib/riscv/asm/csr.h b/lib/riscv/asm/csr.h index d6909d93..ba810c9f 100644 --- a/lib/riscv/asm/csr.h +++ b/lib/riscv/asm/csr.h @@ -36,6 +36,16 @@ #define EXC_VIRTUAL_INST_FAULT 22 #define EXC_STORE_GUEST_PAGE_FAULT 23 +/* Interrupt causes */ +#define IRQ_S_SOFT 1 +#define IRQ_VS_SOFT 2 +#define IRQ_S_TIMER 5 +#define IRQ_VS_TIMER 6 +#define IRQ_S_EXT 9 +#define IRQ_VS_EXT 10 +#define IRQ_S_GEXT 12 +#define IRQ_PMU_OVF 13 + #ifndef __ASSEMBLY__ #define csr_swap(csr, val) \ diff --git a/lib/riscv/asm/processor.h b/lib/riscv/asm/processor.h index 6451adb5..4c9ad968 100644 --- a/lib/riscv/asm/processor.h +++ b/lib/riscv/asm/processor.h @@ -4,7 +4,7 @@ #include <asm/csr.h> #include <asm/ptrace.h> -#define EXCEPTION_CAUSE_MAX 16 +#define EXCEPTION_CAUSE_MAX 24 #define INTERRUPT_CAUSE_MAX 16 typedef void (*exception_fn)(struct pt_regs *);