Received: by 10.192.165.148 with SMTP id m20csp777945imm; Fri, 20 Apr 2018 15:53:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/nzQZq6InMi+lUu+XyxNW0VTNycPiztdhoNZESc6j28fGt3gr6zPD/KpQTLsNxY6y+QBCe X-Received: by 2002:a17:902:5a5:: with SMTP id f34-v6mr11624235plf.288.1524264809231; Fri, 20 Apr 2018 15:53:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524264809; cv=none; d=google.com; s=arc-20160816; b=oVTLtt2AFbnudjcikhGi4sTKu81cdVRtJGyaWcVRBpnad0KpDVAxSO6j8+v0Q3Mbrc TGIFmySML8fbpsgNkgOfw+UoFguZjlSBl7oMLE52htuE6Rffcxku2F7EGcFB14JW9o6R iQRAB14lZf7MLB1AZehR76p8XaHFxrjl+tILuIFPaH2NxLcCkvsGbH433gYjcCLc3qwb +RrvIkgv0JpCk0Q0vvc9Hda5VjttQO6+WKKEk3ANcAE0nARY4C6UL+jNn1dVrAJg8+Aq okaqzwvvN35+vXvWqU7wI9f1TPNmwPCSwPQRxe9rBuGwZpFT2og3u6HG9baww+kCDZuw p0qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=wbs/MIbh3GCPB/cwrh2DotRq/3Czvs8TtjIQAXtaBIk=; b=SvzZ+Cj4LWa3CkYHsDUIN2uuvmZ9qskxm7Qs2EXNdaABKeO9axdEPTHJs2NOUv9D2X m02PZoEysVQNQPgdR71B7tmqQGjn3E36wQZoPBzFs0Mc6j+sh3rg71urpyYoUW5P24E+ 96BLkK/vW1zZCAAhsUy1hunzcX3fWNclFtHvL98Oc23hpIGpulQCgEwu1HfqlqXJLfEh anis5FluSMBUvAnZtFOs/0kWUZfj6MRw4Uuel7J+tYt1X3CYcbbkUDEOUymgkVnjg9+k hGXrzEle9hsFxsOhIFu6hRAHNkkviLiJICnM7cGd6I34rDrYmVyTLANQPpxg76CPy/i3 BoKw== ARC-Authentication-Results: i=1; mx.google.com; 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 g12-v6si6653966pll.184.2018.04.20.15.52.51; Fri, 20 Apr 2018 15:53:29 -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; 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 S1752485AbeDTWuO (ORCPT + 99 others); Fri, 20 Apr 2018 18:50:14 -0400 Received: from smtprelay0151.hostedemail.com ([216.40.44.151]:56500 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752144AbeDTWuN (ORCPT ); Fri, 20 Apr 2018 18:50:13 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id 4AC03180A8137; Fri, 20 Apr 2018 22:50:12 +0000 (UTC) X-Session-Marker: 7368656140736865616C6576792E636F6D X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,shea@shealevy.com,:::::::::,RULES_HIT:41:355:379:599:800:871:960:965:966:967:973:988:989:1000:1260:1313:1314:1345:1359:1437:1516:1518:1535:1543:1575:1605:1711:1730:1747:1777:1792:1978:1981:2194:2196:2198:2199:2200:2201:2393:2525:2553:2561:2564:2682:2685:2859:2892:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4321:4385:4390:4395:4605:5007:6119:6261:6506:6747:7281:7903:7909:7974:9025:9036:10004:10848:11026:11232:11473:11658:11914:12043:12050:12555:12663:12740:12895:13149:13161:13229:13230:14096:14180:14181:14721:21060:21080:21325:21433:21451:21627:30012:30054:30056:30070:30075:30090:30091,0,RBL:71.235.10.46:@shealevy.com:.lbl8.mailshell.net-62.14.0.191 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:21,LUA_SUMMARY:none X-HE-Tag: knife70_59035d7417a54 X-Filterd-Recvd-Size: 5166 Received: from localhost (c-71-235-10-46.hsd1.nh.comcast.net [71.235.10.46]) (Authenticated sender: shea@shealevy.com) by omf13.hostedemail.com (Postfix) with ESMTPA; Fri, 20 Apr 2018 22:50:11 +0000 (UTC) From: Shea Levy To: Palmer Dabbelt , Arnd Bergmann , Olof Johansson Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 01/16] initrd: Add weakly-linked generic free_initrd_mem. In-Reply-To: References: Date: Fri, 20 Apr 2018 18:50:09 -0400 Message-ID: <87muxx1oim.fsf@xps13.shealevy.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Palmer, Palmer Dabbelt writes: > 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 >>>=20=20 >>> +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 >>> --=20 >>> 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=20 > touches so many architectures -- I haven't looked closely, though. Yeah, I think that makes sense. > IIRC=20 > there's a slight behavior change to the RISC-V port, which I'd be OK taki= ng=20 > through my tree (and then obviously the RISC-V cleanup as well, unless it= goes=20 > in as a whole patch set). > So currently the behavior for RISC-V is changed by simply deleting the arch-specific free_initrd_mem, which was a noop. Would you like me to first submit a patch to have the arch-specific free_initrd_mem and then change that in this series? > > 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=20 > headache to manage. With the current series, the first patch could go in on its own and all of the arch-specific patches can go in in parallel if we wanted to, but beyond the above-suggested implementation of the RISC-V free_initrd_mem there's no real reordering meaningful here. > > I'm adding Arnd and Olof, as they know a lot more about Linux than I do.= =20=20 > Here's the top-level of the v4 patch set: https://lkml.org/lkml/2018/3/28= /744 And here's the top-level of v6, the latest: https://lkml.org/lkml/2018/4/1/= 50 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE6ESKvwKkwnxgMLnaXAvWlX2G/icFAlrabqEACgkQXAvWlX2G /ifgqxAAjC5L2OT4nPpqrl/EjvM/XDJrX8RoUK+9gQehQvzHvbf1kHYN/htRHd4m 4g78tcFpJzyJPdPkVwXuVa/kg7bs229+c5sg81/brfHsj4J8oRCTt94johmDy+sT Gd4ESra2b5WbC5w31CvTiwgGnlQgH47D8O4Vgs3X+X2OQqRTTEzmHP6iEtCSh+6k BcVMw44lN731OlG0Bg7pMWY9QMu7mQ9VxksIBkEpFNWU3Rrn+ikXuLXhgaOZ5euL yUmC/XYiqldRcIDhJooQmzm6zBZaBVtIvdiBAzzYsC5B0sSCqb4X+922WjIwLDte 9IxYUekCfbbeIRUb1gnGmVw+bIWdXre/h5sbkmjnZCuUIXYXRvgVKxH9Gljp/lcH Tn91t2ajNJkQVgqoCNW23osRBwzND6DAF3cMIjHm4g8xBYkP+S0nF/sDmGs0oNLv aHg3ma51NJwPc0eXP35iyCQJ5uEmilwW4DeM7FzhjJ+iZuTDzbCidDqrSDvCyN1Y Z0JgivNuM88yhDDkRunb3YtO3BCi1uNtEn+TYhMz4ztWfijVoC/dhbOyPqmMD15Z 5VrjbQYpSLEI49RM/3IwuHHEoUkvCtqWwUlRuUlp+58NPEYlOWFfdwLiOgzp37AA Z4Sk6AXtpoZvhQvmamj97hiw4RYtXG4J/2CIo+Sxf2JIboxFyf0= =OpA3 -----END PGP SIGNATURE----- --=-=-=--