Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp45266ioo; Fri, 20 May 2022 13:30:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeTu/NZ4w6xUwkQEiYYYV2mhDciCV18gEXcBMTqT7JCJJjMT6YmkEhj42aL0qbWfltF54x X-Received: by 2002:a63:8ac8:0:b0:3f7:ecb7:9261 with SMTP id y191-20020a638ac8000000b003f7ecb79261mr3829100pgd.38.1653078642079; Fri, 20 May 2022 13:30:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653078642; cv=none; d=google.com; s=arc-20160816; b=huhPoFz+xRdOhehx5q/8sgQqYqQ3VQdESSPNJYchMkbDCY3lnhUy7tUU6HCjlRoLI5 JtCgz8oJzy6ozFIxBCzMVEj/ze7yA4MsX8B0lrm93ciwa76y7hXrVQJFrBQzfm0BSiXa 3EVrkf/5HDnsLpQm7ccrVJUSqpx0d3DVe0DlSYQuR9hn416hhYqQ1EpyhQIhSUVW07KP Fxg/RcJ0hwH3y/Ta5B/TSid8Vy9jgvFefjKf1lWwRUmWV5A9dvOrLdo+X/VyWFSWQ8sp 6kcPlYRbhU3QCd2WENn8l2hkFhOIS0UXbfW5s9GjZieTX/ldaYq/UMOZi2cDywjjMT+5 7yXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:cc:content-transfer-encoding :mime-version:message-id:date:subject:dkim-signature; bh=gs3k/28itFHvJXmdsRExbdUsV2UQMie33SCkn2ny4ZU=; b=fOGhbB/Ztc5OuRFG9cqBKgFxF/eQFJIYuro/7LQ3aUV5noO3jmKwioWSdDSpS4Rccr bke4OAOXLyKZFOPkhfipN8TUKGLsb4J9PAEN9GpdfDjX13diuxyWZ4h2c0FRcgJkxSHo zzBqHODScSZO9VzJsuSJ1JD9EKwu1m+PaSaW9WiJmV1aKqa0IUeNXgc6oulRmHIvYXsr le8mmv37WAhYJ3Xew7jOh1hGkeHXrX99VC/IzY/5sBk5qOAcnS8vgHNC2PBptodqrji0 eijWIEY3mzvVO5h6t1qMrgtr8grC2txcDjMjfs03RKvFWhLC1sMcuPxdr4Sl8sU/CKpO x4Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b="0L8NTjV/"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q15-20020a056a0002af00b0050dc2c62201si3545529pfs.65.2022.05.20.13.30.25; Fri, 20 May 2022 13:30:42 -0700 (PDT) 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=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b="0L8NTjV/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351107AbiETPpm (ORCPT + 99 others); Fri, 20 May 2022 11:45:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351036AbiETPp0 (ORCPT ); Fri, 20 May 2022 11:45:26 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C74C41796F4 for ; Fri, 20 May 2022 08:45:23 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id a11so8097489pff.1 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=pHNGFA8P7+w6e52Fg/YbXtyVGdyh0GGm2u2IIDPhnCYKu15QeYASZmmK5TmKu9zpZE VJje4qayVG9pbNIt+ayp5VVA8iKuNs48833Rau9gNVYqCahnu3NGePoF3U0ec3vKgSe6 ylMxe5D1ValUpGprgT8KJmeqnsEr1E87fx9WE2hefvYF9WnJFxIfTxHr9KzjYizDdn20 8FIXXo6ecQauoud8pr343BXCuVDJ7RYoPtmDhEGN8oZZ/CCJJ7LdyxywAtkVdHn1kh1N RL1gu0ZP99M3sF0DnADX4hJm5zzDM4J0G7JBQqCSVShOI93aPyWr75NdcdW4zEWPq5IS dMNQ== X-Gm-Message-State: AOAM532YCBC/KyUHrOzbjf4vW5GhfpojAoRC8QyF4o0aBThKwVTTTPll l0f2+sCxnRV/9WRCa13yVRcpHA== 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 Content-Transfer-Encoding: 8bit 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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@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/