Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp75378imu; Tue, 22 Jan 2019 14:08:48 -0800 (PST) X-Google-Smtp-Source: ALg8bN78/XXO1HgMIEHQoQM03sGZ6TPLiw1rkAjXGOgQ5n5oK6lqfx35PJkN8Oah87Nn1VI1ulzh X-Received: by 2002:a62:56c7:: with SMTP id h68mr36562506pfj.134.1548194928502; Tue, 22 Jan 2019 14:08:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548194928; cv=none; d=google.com; s=arc-20160816; b=kK2yURNsUFqvWsIgB054T4K2u6JebPyy/+j0Kl90XrRJD5MedN/c0e7tFerrPllFhS qcB/6+UyOqJPhNtlzxQV2pgpOJ744UqtDNnneyRV5UXHYNax/Epm9TbwaH3fazGBoEVo z5VAgByWaKliW1bgThyqh9nLGmC9sR2gsB/Q6RsqnW6zf/3ADafWkJyJA2vfHwqla1Pl ypVVLF9kBue8eyhEVOYCATj+qAYW89YJMndbi0MYP3i9vIWMgLEBfL7V84ly5w5cjhgs lVvqcbITyGdZj6JZIddBbt21nrZugSexP5ifhuYujMheBLms49+0P194iHieHt+1b3kf evUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date; bh=rF7BiAx3EZmsHXzQae86yl1yJwdPxKemYPSUYsYm+2s=; b=Dnv0wFwVqnaCnVP/1HBFdzHaaSRpMFNHknkYoG1aNE5AT0mA4+Qtgx4WSRqU/T88Ii I5TePSJfXu2LBvPkTjGwicrV9kCeXi0efnmOK388VbJvNSeepqArx+KokhGY1yxehjii gtkOklD9qngfzJ48y/uQVs2D/aNn7pPN9FxVUmrtvptht3ASKUonaXcUb8oYsJF+wSsE qhafrbKSmbbchsYQIo+yIWm7tu7URPTu7NL7UCmqS38K4iTKmnirF4bGv++WDyF3w1IO ABSiDr0p7ETj4Hb/qKLiKLQolpxEw3E8jPBUwj9O6o0QttEST8KOtNHvDlKHxP5kFK+G fFSA== 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 h8si16149615plr.343.2019.01.22.14.08.31; Tue, 22 Jan 2019 14:08:48 -0800 (PST) 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 S1726813AbfAVWFm (ORCPT + 99 others); Tue, 22 Jan 2019 17:05:42 -0500 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:38886 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726724AbfAVWFm (ORCPT ); Tue, 22 Jan 2019 17:05:42 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by kvm5.telegraphics.com.au (Postfix) with ESMTP id 085AC29B17; Tue, 22 Jan 2019 17:05:35 -0500 (EST) Date: Wed, 23 Jan 2019 09:06:30 +1100 (AEDT) From: Finn Thain To: Greg Kroah-Hartman cc: Arnd Bergmann , "James E.J. Bottomley" , "Martin K. Petersen" , Michael Schmitz , Geert Uytterhoeven , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Bartlomiej Zolnierkiewicz , Joshua Thompson , linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linuxppc-dev@lists.ozlabs.org, linux-scsi@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH v9 00/22] Re-use nvram module In-Reply-To: <20190122092234.GA15813@kroah.com> Message-ID: References: <20190122092234.GA15813@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 22 Jan 2019, Greg Kroah-Hartman wrote: > On Tue, Jan 15, 2019 at 03:18:56PM +1100, Finn Thain wrote: > > The "generic" NVRAM module, drivers/char/generic_nvram.c, implements a > > /dev/nvram misc device. This module is used only by 32-bit PowerPC > > platforms. > > > > The RTC "CMOS" NVRAM module, drivers/char/nvram.c, also implements a > > /dev/nvram misc device. This module is now used only by x86 and m68k > > thanks to commit 3ba9faedc180 ("char: nvram: disable on ARM"). > > > > The "generic" module cannot be used by x86 or m68k platforms because it > > cannot co-exist with the "CMOS" module. One reason for that is the > > CONFIG_GENERIC_NVRAM kludge in drivers/char/Makefile. Another reason is > > that automatically loading the appropriate module would be impossible > > because only one module can provide the char-major-10-144 alias. > > > > A multi-platform kernel binary needs a single, generic module. With this > > patch series, drivers/char/nvram.c becomes more generic and some of the > > arch-specific code gets moved under arch/. The nvram module is then > > usable by all m68k, powerpc and x86 platforms. > > > > This allows for removal of drivers/char/generic_nvram.c as well as a > > duplicate in arch/powerpc/kernel/nvram_64.c. By reducing the number of > > /dev/nvram char misc device implementations, the number of bugs and > > inconsistencies is also reduced. > > > > This approach reduces inconsistencies between PPC32 and PPC64 and also > > between PPC_PMAC and MAC. A uniform API has benefits for userspace. > > > > For example, some error codes for some ioctl calls become consistent > > across PowerPC platforms. The uniform API can potentially benefit any > > bootloader that works across the various platforms having XPRAM > > (e.g. Emile). > > > > This patch series was tested on Atari, Mac, PowerMac (both 32-bit and > > 64-bit) and ThinkPad hardware. AFAIK, it has not yet been tested on > > pSeries or CHRP. > > > > I think there are two possible merge strategies for this patch series. > > The char misc maintainer could take the entire series. Alternatively, > > the m68k maintainer could take patches 1 thru 16 (though some of these > > have nothing to do with m68k) and after those patches reach mainline > > the powerpc maintainer could take 17 thru 22. > > I just took the whole series, thanks for doing this, looks good. > Thanks, Greg. I haven't seen any acks from powerpc maintainers yet... -- > greg k-h >