From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luis Chamberlain Subject: Re: Add and use a generic version of devmem_is_allowed() Date: Wed, 29 Jul 2020 00:00:30 +0000 Message-ID: <20200729000030.GI4332@42.do-not-panic.com> References: <20200709211925.1926557-1-palmer@dabbelt.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-pf1-f194.google.com ([209.85.210.194]:46923 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729819AbgG2AAf (ORCPT ); Tue, 28 Jul 2020 20:00:35 -0400 Received: by mail-pf1-f194.google.com with SMTP id 74so3701063pfx.13 for ; Tue, 28 Jul 2020 17:00:35 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20200709211925.1926557-1-palmer@dabbelt.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Palmer Dabbelt Cc: zong.li@sifive.com, linux-riscv@lists.infradead.org, rppt@linux.ibm.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, Paul Walmsley , aou@eecs.berkeley.edu, gxt@pku.edu.cn, Arnd Bergmann , linus.walleij@linaro.org, akpm@linux-foundation.org, mchehab+samsung@kernel.org, gregory.0xf0@gmail.com, masahiroy@kernel.org, Nick Desaulniers , bgolaszewski@baylibre.com, steve@sk2.org, tglx@linutronix.de, keescook@chromium.org, alex@ghiti.fr, mark.rutland@arm.com, james.morse@arm.com, alex.shi@linux.alibaba.com, andriy.shevchenko@linux.intel.com, broonie@kernel.org, rdunlap@infradead.org, davem@davemloft.net, rostedt@goodmis.org, dan.j.williams@intel.com, mhiramat@kernel.org, krzk@kernel.org, zaslonko On Thu, Jul 09, 2020 at 02:19:20PM -0700, Palmer Dabbelt wrote: > As part of adding STRICT_DEVMEM support to the RISC-V port, Zong provided an > implementation of devmem_is_allowed() that's exactly the same as the version in > a handful of other ports. Rather than duplicate code, I've put a generic > version of this in lib/ and used it for the RISC-V port. > > I've put those first two patches on riscv/for-next, which I'm targeting for 5.9 > (though this is the first version, so they're unreviewed). The other three > obviously depend on the first one going on, but I'm not putting them in the > RISC-V tree as I don't want to step on anyone's toes. If you want me to take > yours along with the others then please say something, as otherwise I'll > probably forget. > > I've put the whole thing at > ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git -b > generic-devmem . Reviewed-by: Luis Chamberlain Luis From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-f194.google.com ([209.85.210.194]:46923 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729819AbgG2AAf (ORCPT ); Tue, 28 Jul 2020 20:00:35 -0400 Received: by mail-pf1-f194.google.com with SMTP id 74so3701063pfx.13 for ; Tue, 28 Jul 2020 17:00:35 -0700 (PDT) Date: Wed, 29 Jul 2020 00:00:30 +0000 From: Luis Chamberlain Subject: Re: Add and use a generic version of devmem_is_allowed() Message-ID: <20200729000030.GI4332@42.do-not-panic.com> References: <20200709211925.1926557-1-palmer@dabbelt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200709211925.1926557-1-palmer@dabbelt.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Palmer Dabbelt Cc: zong.li@sifive.com, linux-riscv@lists.infradead.org, rppt@linux.ibm.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, Paul Walmsley , aou@eecs.berkeley.edu, gxt@pku.edu.cn, Arnd Bergmann , linus.walleij@linaro.org, akpm@linux-foundation.org, mchehab+samsung@kernel.org, gregory.0xf0@gmail.com, masahiroy@kernel.org, Nick Desaulniers , bgolaszewski@baylibre.com, steve@sk2.org, tglx@linutronix.de, keescook@chromium.org, alex@ghiti.fr, mark.rutland@arm.com, james.morse@arm.com, alex.shi@linux.alibaba.com, andriy.shevchenko@linux.intel.com, broonie@kernel.org, rdunlap@infradead.org, davem@davemloft.net, rostedt@goodmis.org, dan.j.williams@intel.com, mhiramat@kernel.org, krzk@kernel.org, zaslonko@linux.ibm.com, matti.vaittinen@fi.rohmeurope.com, uwe@kleine-koenig.org, clabbe@baylibre.com, changbin.du@intel.com, Greg KH , paulmck@kernel.org, pmladek@suse.com, brendanhiggins@google.com, glider@google.com, elver@google.com, davidgow@google.com, ardb@kernel.org, takahiro.akashi@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, kernel-team@android.com Message-ID: <20200729000030.ArSytGeLWXAA0ycsah8TjEZ334FjMt13QfaXAN13Blk@z> On Thu, Jul 09, 2020 at 02:19:20PM -0700, Palmer Dabbelt wrote: > As part of adding STRICT_DEVMEM support to the RISC-V port, Zong provided an > implementation of devmem_is_allowed() that's exactly the same as the version in > a handful of other ports. Rather than duplicate code, I've put a generic > version of this in lib/ and used it for the RISC-V port. > > I've put those first two patches on riscv/for-next, which I'm targeting for 5.9 > (though this is the first version, so they're unreviewed). The other three > obviously depend on the first one going on, but I'm not putting them in the > RISC-V tree as I don't want to step on anyone's toes. If you want me to take > yours along with the others then please say something, as otherwise I'll > probably forget. > > I've put the whole thing at > ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git -b > generic-devmem . Reviewed-by: Luis Chamberlain Luis