Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7171852imu; Tue, 22 Jan 2019 01:24:44 -0800 (PST) X-Google-Smtp-Source: ALg8bN5qiVaEs9kiZVlhPDyF/Tx2wGc85YYh0CGOHZliMdM0bQ3MjWppj3mjc50fkBdrjbARCcYF X-Received: by 2002:a17:902:bd86:: with SMTP id q6mr32577233pls.16.1548149084466; Tue, 22 Jan 2019 01:24:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548149084; cv=none; d=google.com; s=arc-20160816; b=DuXQH0iIoWfwW2vNj30/mlly6aGxee3ibIiDV4Qwogk6MhWkJlEc2kne5v3ki9rn2M RCaarxBZuEXB8UkCguLoZ00HwM4KW0QH4ojRXn45MjZnGgDtmWz2+3C9KUmDyLjlaSXC jW18vZbkqS8vp3zP5cpDrdiJ4emHQhQWRyy5U0IvIOZRP4nuhgrv1rNGkHgAnemJRjjK VGfLGRmKC4WO4MjSfGPKfd7e+rZBnCJGEflNLZtgc9O0c3Kd2Al0cEpLVNp2P9TvKLxE O70FbIlq98Hnpr4KTr3Q57rYqXh6//sJk5BJL/ed7b3u8kuHszeV1LKk8x7EzfXc6d1u hZIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=oUxZI9I3wrOyl5UXlDwlDvP95NLSJJLcg/w70OmSzgI=; b=qBigJMkcW7s92in9PQWoORyLlHM3T1zAIych2Ty/K42Pe6ZZpImaqnQ+Y/BI8gHRo8 e07AG/DMeBdXaad8/BMbh9L6GX2YpdZEng0zc+GGtD7CDkFQumMgOuiM9xe5tZpJuzKT /sTS9kv1AklmPazK7m2glA1Zg40XP8GURrUUJgUmEqYBymym2hvg4ZBaKv/l7D1pgaVw EgC4kFzxh4HjyyvCIIayK7Sir4iPWVaodWI2EPJK2cQ/n1FxSFLjCxENRaFWYWPZTZ3m 9plWdSEcBXkJ0orfdsOD2j5cKlfn4FLG46uIKAq+MuKB/j2b+KFNQC4HU9FzsxIYS/cN fmTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FiR3edAX; 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 y17si9108662pgh.353.2019.01.22.01.24.28; Tue, 22 Jan 2019 01:24:44 -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; dkim=pass header.i=@kernel.org header.s=default header.b=FiR3edAX; 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 S1727726AbfAVJXY (ORCPT + 99 others); Tue, 22 Jan 2019 04:23:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:47216 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727509AbfAVJXX (ORCPT ); Tue, 22 Jan 2019 04:23:23 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E8847218D4; Tue, 22 Jan 2019 09:23:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548149002; bh=tvfSfixV9M/zFUAZ25eiE9ftJmocefhGyeG7bJ1p+wc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FiR3edAXBVFUN7hzroBaOdWPtGHJ4PvajGPuamdx3G45qsVh4pQCSBGYHxHhWCvGG UcxdFStjA+N+NgMGE/+jFBsRbGP+55MuNl0zqtSVFzpqWRf+oOcWl4sK+Qh8NEzL9d 5uAQ8uVHQZ3QkihfTDVeHr2RmnOHtQsEHcXatTxU= Date: Tue, 22 Jan 2019 10:22:34 +0100 From: Greg Kroah-Hartman To: Finn Thain 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 Message-ID: <20190122092234.GA15813@kroah.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. greg k-h