Message ID | 20230119074738.708301-1-bjorn@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp19169wrn; Thu, 19 Jan 2023 21:11:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXs4QAm3FtOxrtdDPBmZVdfXLvdelaVXX1kjc8pVWQIEADXtITWdD59SOzOlFHXB4cpi4V29 X-Received: by 2002:a17:902:c755:b0:194:cf89:cd15 with SMTP id q21-20020a170902c75500b00194cf89cd15mr3914042plq.15.1674191493998; Thu, 19 Jan 2023 21:11:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674191493; cv=none; d=google.com; s=arc-20160816; b=T1KxSf1RswCtAck25N/BMTIOzhZbYBp/cFVmJj3Cm12Svfz/46+7C5pXJX4qWi7+HY tZ0TIHsLGZ5sw+nJOeJkv/rtePslDUX9L9aF8zIwnOio5Ggwpmua6PTl1/M5JNn4+siL X3iKFkkL4B3FBwdbVEZvRkGLGHvPJauRYVLa4z/G2seezPI5HNG5cGApvXgS57lgXpSS 25moS60PZ3cjqqpwsKia7wYEzA1CmQsqr1iIDtzXEhwqR/qOU1t42OB5NbF7H0m7JEIM YWJYv9LOXCd55pb8AoNWsnq3lBL8kgg9nDhcLZNM39qGhJRTP30iG1ZAt9ZpkPmBPqkS X+2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=knzBFRxhWP1PoTq/NJsSyHKKJZFdUIeUBZb0Z5YOWmE=; b=NVF33yCYndWfz4FpYYJuc8daX9lA/weutoa66e4ZeVdJlE9Yhb326Agy9M1JkzOdwM zhpqWwOX9juuafLi4FXSPyH7TgkliFquXbQ3x9qasM97Xbuf/6N7XY4EmQtNvPWcgvlj Jix4r375Gsbxumag6g0ykYeEtoEEB5yTL4a523O4/pu9aPfOIfA/KvsSS3dOm/6KdmfK 23TqVQJ3IxwpflB/Q4Lf2N8qhBMX+GLwUJyAqVvg3q1+6enn/+1640YEnn1wcaL/zW6K wysiUORyFS5Ye5uZMAwEDjZGkg0wiR7LWSM1PXOgcOQaMYjqHF2ad7EiMk7TDyAXOWRm noyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VFmIGrpt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g2-20020a170902c38200b0019489437a80si15489095plg.144.2023.01.19.21.11.21; Thu, 19 Jan 2023 21:11:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VFmIGrpt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230193AbjATFHE (ORCPT <rfc822;xxoosimple@gmail.com> + 99 others); Fri, 20 Jan 2023 00:07:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230004AbjATFGj (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 20 Jan 2023 00:06:39 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04131C45B7 for <linux-kernel@vger.kernel.org>; Thu, 19 Jan 2023 20:54:19 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 91DB9B82107 for <linux-kernel@vger.kernel.org>; Thu, 19 Jan 2023 07:48:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D872C433EF; Thu, 19 Jan 2023 07:48:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674114489; bh=UBy2lf9QPDUeI0P/AEbXMIS0GaU0lPZlJILHV4CWMg4=; h=From:To:Cc:Subject:Date:From; b=VFmIGrptY9lhoeESaA20rr5/B9gyn6+sATEFSRU3aF91619O2dyuZLtA4Ggyn+XQk 0XYIYgn42+x2JKX+VlHArb4bnjlYgPoNPMAip/72+dTqV5/eE5KkpdsZzFNRzg2JGp JkxEu4h0BQzBLNusHMQWihe5ix4ge0fBo2LiMI1cpfPDcnVI0sJvGzdljT3jSrjm6x hRBkp7t277aWYHKjMMqxAtS+4W671zwUz4DJ407w0uIblfuVSQiN9INl8IvC2RiqQv T542/nwJ4X4ySTV0GXKUF8ItVvz4v4zbB640zrcrLA84UsW9HbExXDIROIuogQ1iUS hiIJb9uifrb2g== From: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= <bjorn@kernel.org> To: Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, linux-riscv@lists.infradead.org Cc: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= <bjorn@rivosinc.com>, Andreas Schwab <schwab@linux-m68k.org>, Geert Uytterhoeven <geert@linux-m68k.org>, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] riscv: Dump faulting instructions in oops handler Date: Thu, 19 Jan 2023 08:47:36 +0100 Message-Id: <20230119074738.708301-1-bjorn@kernel.org> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755517019711713780?= X-GMAIL-MSGID: =?utf-8?q?1755517019711713780?= |
Series |
riscv: Dump faulting instructions in oops handler
|
|
Message
Björn Töpel
Jan. 19, 2023, 7:47 a.m. UTC
From: Björn Töpel <bjorn@rivosinc.com>
RISC-V does not dump faulting instructions in the oops handler. This
series adds "Code:" dumps to the oops output together with
scripts/decodecode support.
Thanks,
Björn
v2->v3: Simplifications/getting rid of casts (Geert)
v1->v2: Dump instructions in 16b parcels (Andreas)
Björn Töpel (2):
riscv: Add instruction dump to RISC-V splats
scripts/decodecode: Add support for RISC-V
arch/riscv/kernel/traps.c | 25 ++++++++++++++++++++++++-
scripts/decodecode | 12 +++++++++++-
2 files changed, 35 insertions(+), 2 deletions(-)
base-commit: 7287904c8771b77b9504f53623bb477065c19a58
Comments
Hello: This series was applied to riscv/linux.git (for-next) by Palmer Dabbelt <palmer@rivosinc.com>: On Thu, 19 Jan 2023 08:47:36 +0100 you wrote: > From: Björn Töpel <bjorn@rivosinc.com> > > RISC-V does not dump faulting instructions in the oops handler. This > series adds "Code:" dumps to the oops output together with > scripts/decodecode support. > > Thanks, > Björn > > [...] Here is the summary with links: - [v3,1/2] riscv: Add instruction dump to RISC-V splats https://git.kernel.org/riscv/c/eb165bfa8eaf - [v3,2/2] scripts/decodecode: Add support for RISC-V https://git.kernel.org/riscv/c/00b242509c8f You are awesome, thank you!