From patchwork Fri May 20 15:44:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 574675 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEBC6C433FE for ; Fri, 20 May 2022 15:45:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351063AbiETPpn (ORCPT ); Fri, 20 May 2022 11:45:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351039AbiETPp0 (ORCPT ); Fri, 20 May 2022 11:45:26 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C35FD1796DE for ; Fri, 20 May 2022 08:45:23 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id r71so8090619pgr.0 for ; Fri, 20 May 2022 08:45:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=subject:date:message-id:mime-version:content-transfer-encoding:cc :from:to; bh=gs3k/28itFHvJXmdsRExbdUsV2UQMie33SCkn2ny4ZU=; b=0L8NTjV/6EsGEzTVPkwaauu66xx4YsEzUoOBnKyeT8AKQ+eiucSVQznEY4zduqcyDi 0CLs1ZMX4LtInxWYR0lOUHXiLuT12sMMkriI+yvKElKS9UMbR0JE+OaI+76C2qdfF3Hy jZtun6jyoo7julKaC4P4QdqO9PLV/Vg5jCN1X0S47LZt+9QFApjRdLCcdWX62xXndUY2 nQnxou1/l4hl7wb+KaYWLjGwV7izEFK3VT+KEM82NspqCBHbsTa80DQ5q+k3u7jsgDO7 h/fFQFJjvATlEy9anqSgbM0MJQYkuyscPwNW5Es94zhcTICI8DGnphfk4ySh06KjrZAa zQ/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:date:message-id:mime-version :content-transfer-encoding:cc:from:to; bh=gs3k/28itFHvJXmdsRExbdUsV2UQMie33SCkn2ny4ZU=; b=vx0iimPXYnfa6wys8iiV4/n535zVdHUZePnV1RvnAJZN2rNYL3eSXhvL3DCPpLzC6l X7zNidnOnrrrikuxxN1nTpcH95OH4H9ujXPrMCf4lhQo8nU9v2guplc+tUNkNd1yXrG6 ivVYhA6WwpVpKz29aMGHWot5s1cFfklLaskfVHWspUghwHHL4k+bGLunUaiDItxb9l2p zYMsINO/YUZiS0S3VhdLzf0pGAVJZiguImIOBpODlKStpvmoifTl7lUCW5EK9PoQCIvk I9/r5PHRtBXKJ6cUh+Rlq+0dUa8gAcX8Rvi0sNZmh17sgKE+BBg29+bRtL+w8OvdClj8 aDww== X-Gm-Message-State: AOAM5303RNnRYGzA3eAwFpMTIfQIY1qB+RJibJqBWt8PubnhCPsDYsjG BLtQYifUiF/wmtTEm9OUfaPDIg== X-Google-Smtp-Source: ABdhPJwZQuyWJmMpMf/TR7lpahjw2nquTx9J7AVvExgDhp9Su6K3b7Yem6V1CcSf9pHCcHH0pCVRBw== X-Received: by 2002:a63:488:0:b0:3f5:e6da:4619 with SMTP id 130-20020a630488000000b003f5e6da4619mr8966800pge.6.1653061523297; Fri, 20 May 2022 08:45:23 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id k18-20020a170902ce1200b0015e8d4eb1easm5838502plg.52.2022.05.20.08.45.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 08:45:22 -0700 (PDT) Subject: [PATCH v1 0/5] Support kexec_file on 32-bit RISC-V Date: Fri, 20 May 2022 08:44:26 -0700 Message-Id: <20220520154430.18593-1-palmer@rivosinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Cc: Paul Walmsley , Palmer Dabbelt , aou@eecs.berkeley.edu, robh+dt@kernel.org, frowand.list@gmail.com, zohar@linux.ibm.com, dmitry.kasatkin@gmail.com, jmorris@namei.org, serge@hallyn.com, liaochang1@huawei.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux@rivosinc.com From: Palmer Dabbelt To: lizhengyu3@huawei.com Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org kexec_file() support was recently added for RISC-V [1], which triggered a handful of build issues on rv32. These all seemed pretty minor, but it looks like this is the only 32-bit platform that has attempted to build the kexec IMA support before so I'm not sure if there's something more complicated going on that I'm missing (I haven't tested any of this). The rv64 support was just merged into kernel.org/riscv/linux/for-next as 83a7a614ce58 ("riscv: kexec: add kexec_file_load() support"). I've put these on top of the pre-merged version at kernel.org/palmer/linux/riscv-kexec_file-rv32 if that helps anyone. 1: https://lore.kernel.org/all/20220408100914.150110-1-lizhengyu3@huawei.com/