Received: by 10.192.165.148 with SMTP id m20csp674178imm; Fri, 20 Apr 2018 13:25:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx49nSBoKqa5bR7pD7cb3RLy/8pDeJxWQNuNQVadw2dyeyl6HkmNtxeFG75UmArMH733QHdMX X-Received: by 2002:a17:902:7185:: with SMTP id b5-v6mr11287939pll.221.1524255959200; Fri, 20 Apr 2018 13:25:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524255959; cv=none; d=google.com; s=arc-20160816; b=d3wW8+poraMNOBNSaWhApHGhrk1ts5AGccuRouc8X4lrmP/PUgpBR10jklaE80vEck oHqI6+XlnxWaBWdQ1R878tcnRvNMqFafqvFRdS6hZpDQITWo9XM5i1OGBcUDpg619LEF 7EN+llctwe687Da8Tq2xHUzwFcf4tEmuXTYIETxAKBDMZ2AlcuVZPfB0CdBYH/KxKStF v2Nw47HXtq6pedNurG+EWnL+ddeMs1A281gTKNp7BYLZWrrVLkpCPVnHrFe+ynd2r3OB z3vDPWMatk9NnirMAmAE5KUrb9WR3eTZ8xwFV4pYXC/SgiKgQIRMet93h+SBxjHfAJS7 uCBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature :arc-authentication-results; bh=PTX8uaSx/zq6oHC6LXZsPbhtdDtEcdOFjcnvXqH69YY=; b=MWwYc8EW24lDeMfU6xR3L8HYNEu1pQjYT8pmMA/I/197ElmTpWWff/41X0qvf3QUD9 meckSJNKWkmpQXxlVrA+PdLTuW1ZuN+hdNnAU+7yGSpm4bYyOk+qnd08gOjfJHtwDqPZ qyWnPsLEmr82KUtDxHA+di2oV8WyasTqEhavbLKy0XUKC8RiyCEG0eIe2lg3qOIXRx71 FXi/sn8ddqDDZV637a5Z+3XyyzloAo0jfGeaYtLqk+eAAdLP1+cQmpMtFOGc/nblbT2l TrdeXpEti36RvQwxiHBYFu8vKiEJ9SoY7Xs0Lu4dTC67INJcb81clx8QQtnJpn65A3A3 jWIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=DVv+kgWU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w12si5291708pgs.191.2018.04.20.13.25.20; Fri, 20 Apr 2018 13:25:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=DVv+kgWU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752496AbeDTUWc (ORCPT + 99 others); Fri, 20 Apr 2018 16:22:32 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:35658 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752306AbeDTUW3 (ORCPT ); Fri, 20 Apr 2018 16:22:29 -0400 Received: by mail-pl0-f68.google.com with SMTP id w21-v6so5837329plq.2 for ; Fri, 20 Apr 2018 13:22:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=PTX8uaSx/zq6oHC6LXZsPbhtdDtEcdOFjcnvXqH69YY=; b=DVv+kgWUEPJ2mtI1jPFDyggfhAaHc+jEAFrxghho9ANuLP0mef0N5g0fdaaf5PTQE6 PCu+yXD66M6EmfusQ1G/XYcZTwyf4xQo8/TlqrV5K3jRX/jk83Wr2AVgp3dNqHgKzj7z fv/tRhZrIys+XfNbys3ocpSZH2rbVEES2LVgzQHXsZ13e/kvZKkmJ+YfiEKUDjvNc2uY OSyoqpmGtvlfkN+Os2j5dBNT+Csuf1Z2yuH5sza9c4EcgYGi+/H+57PXb4XFyfke1d/t frDQrncFBQGHNO9FEJpuVrQ33j6JuX3E6+8DkxbhPs6UKyuqS/JGFbC3pKEbtRb8d23U fJmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=PTX8uaSx/zq6oHC6LXZsPbhtdDtEcdOFjcnvXqH69YY=; b=ZCafLkixK+V9bBapS/gCzorJWo8vFHS8ncIEL+oniwQJhUOAkbBPt+NCCMddI6RoLd zqdtSPAYOalSdHmC8/SQYyvV1C4bUNAp4L+EbNJkYvHF3eJmdrNfZ6uJkSieE+yOl7lS FQUbRuWIPIvzZX34/Va/f6ghZCziwYfC/r8dn+iXSZg68ELD5DD8uKhK35NqyEWZgksR UHFAdGJOuDJFGCuk6SoCwTcSOoM5lGWJnWs4/3N3/Ie/RpMYhMzPe72XkpyTQwUwfnLS bbycR5NkZLJobGI0CdV3wszZX3HyMUAPewf2mRwKlvIKYGHigo2BeEUn1hT8fckT0hXb j1hw== X-Gm-Message-State: ALQs6tAjO76yYXMh3MkpHqh0Kh7AUueoTNR+2id8NrOJKRv98mRb2MYl 57yxm5YP+2FS2o7mCEcwlr1xKw== X-Received: by 2002:a17:902:4301:: with SMTP id i1-v6mr3707499pld.280.1524255749183; Fri, 20 Apr 2018 13:22:29 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id s189sm6164608pgc.39.2018.04.20.13.22.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Apr 2018 13:22:28 -0700 (PDT) Date: Fri, 20 Apr 2018 13:22:28 -0700 (PDT) X-Google-Original-Date: Fri, 20 Apr 2018 13:22:11 PDT (-0700) Subject: Re: [PATCH v6 01/16] initrd: Add weakly-linked generic free_initrd_mem. In-Reply-To: <87tvs8rcrr.fsf@xps13.shealevy.com> CC: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: shea@shealevy.com, Arnd Bergmann , Olof Johansson Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 18 Apr 2018 04:10:16 PDT (-0700), shea@shealevy.com wrote: > Hi all, > > Shea Levy writes: > >> This function is effectively identical across 14 architectures, and >> the generic implementation is small enough to be negligible in the >> architectures that do override it. Many of the remaining divergent >> implementations can be included in the common code path in future, >> further reducing code duplication and sharing improvements between >> architectures. >> >> Series boot-tested on RISC-V (which now uses the generic >> implementation) and x86_64 (which doesn't). >> >> v6: Add information about build/run testing. >> v5: Add more complete commit messages. >> v4: Use weak symbols instead of Kconfig. >> v3: Make the generic path opt-out instead of opt-in. >> v2: Mark generic free_initrd_mem __init. >> >> Signed-off-by: Shea Levy >> --- >> init/initramfs.c | 5 +++++ >> 1 file changed, 5 insertions(+) >> >> diff --git a/init/initramfs.c b/init/initramfs.c >> index 7e99a0038942..c8fe150f958a 100644 >> --- a/init/initramfs.c >> +++ b/init/initramfs.c >> @@ -526,6 +526,11 @@ extern unsigned long __initramfs_size; >> #include >> #include >> >> +void __init __weak free_initrd_mem(unsigned long start, unsigned long end) >> +{ >> + free_reserved_area((void *)start, (void *)end, -1, "initrd"); >> +} >> + >> static void __init free_initrd(void) >> { >> #ifdef CONFIG_KEXEC_CORE >> -- >> 2.16.2 > > This series has been quiet for a few weeks other than picking up some > arch-specific acks. What is the next step here? I'm not sure. I don't really think it's sane for the RISC-V tree because it touches so many architectures -- I haven't looked closely, though. IIRC there's a slight behavior change to the RISC-V port, which I'd be OK taking through my tree (and then obviously the RISC-V cleanup as well, unless it goes in as a whole patch set). For the IRQ cleanup I currently have in flight * Add the generic support * Move every arch over (RISC-V is in, the rest aren't yet) * Clean up a bit now that everyone is generic That lets all the arch-specific patches go in parallel, but can be a bit of a headache to manage. I'm adding Arnd and Olof, as they know a lot more about Linux than I do. Here's the top-level of the v4 patch set: https://lkml.org/lkml/2018/3/28/744