Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp698768ybg; Tue, 28 Jul 2020 17:01:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUKu9AZsm6Ef6rsBRbN6wHXiudrwqnFVR3sMaSbFgPoa8rFhqWIE4WeIbEyKOr2O4hZdb9 X-Received: by 2002:a17:906:cb91:: with SMTP id mf17mr2838498ejb.527.1595980893725; Tue, 28 Jul 2020 17:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595980893; cv=none; d=google.com; s=arc-20160816; b=b+NhwiVF4nhFYeHpKQdVAp+kZxjJV1nX7aojUZ3TPCyVZee+ugs8ktUEnrcSBh9AT5 Wga4qKypQRJ6GK7N8OadfeOkShdjZdQGVMERpnqCi+BS/kRW2jjkjOSzFdqgvp8/kY8I qk1fmo66sUa+T+1fNRXMTpeFzAYGAsqhudDkW6vuq/sIlkQdM1vHcXOsPPAkaqFuj999 atnqYKP/1CtuCGYhexD2q9MF+QhzehVWukOG9Jum7swZPE7YRGX3BZWmQ5j4HJ4mlpmL 8wtri6P91kbYff4YL+0DmkY56Bl8fN2cuc19EMoZlqtq2MJcugwW3TFSbP4ASLGM832E 1Rsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=V9WqMZ97j3+53daSNfhsHBQoaaEy2kmohpeoSYJwCfQ=; b=pOVPaA+0pN8SSBhTy5PGDcof1OTnUCrd+B6cv87zBqHMooDmMKvgF1EufBB0HnTTE1 SScUMPSMyw/m1IJ7PGX6wHWryCuB1hq/KTj5qnObOU045VDyWmMryfP07ikjpaVt+1DG z6ejYX/UdMJZ6/IT7a6EKh6gm7vXj84FkQBZofATzpNnfjfd35h8nYeckmKbzE9OhiUQ oKImJYhkON+NsArUiykof8SgW2nQHuuHPjgzUpC9d1gfxKXi9eOvvoZt7Bvhynup4cGh dMwmZSuejAzSI0joFIRCEh3FjGLLY030mQRTz3MaBOK1NqJ8HfxBkgCTqttedJ+9nlMJ IQ6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h23si17586ejx.550.2020.07.28.17.01.11; Tue, 28 Jul 2020 17:01:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730434AbgG2AAg (ORCPT + 99 others); Tue, 28 Jul 2020 20:00:36 -0400 Received: from mail-il1-f196.google.com ([209.85.166.196]:41798 "EHLO mail-il1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730247AbgG2AAf (ORCPT ); Tue, 28 Jul 2020 20:00:35 -0400 Received: by mail-il1-f196.google.com with SMTP id c16so6023885ils.8 for ; Tue, 28 Jul 2020 17:00:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=V9WqMZ97j3+53daSNfhsHBQoaaEy2kmohpeoSYJwCfQ=; b=Agre9W3Adold3I3m2ju3LYZYRfBxdNMeVFgMyak8ZhPtC0o0lJEgk0S/oJndR4gyab c7y1iEPLdfTg8z68z9vqqYFUg9ML1AywQSO1Q/c9930bhds2rA4pul1i3rcEubHjWXTm JuIzAA7MZqopDojeoyDQHp+4D2dBm9qe8GaBNefWX1aLsQIQVq3YJhcMOD/c/WvQpeOH /VulwJyOSswSrPATSz+EBEO5Rm3mp4wPBmzfW8yY1qT75SlYt4qtP+psj+m8hhh1zG7/ ambn34YwcoKjHy5VHzNvQrWoNksy0v41QOBUXtL5RXzq6v739m5GjCwhGNcHrdPXEzjC Fk+w== X-Gm-Message-State: AOAM5302xCVAa9Om4QdtC7aQgh+mnS1cVldV1tPQKURPZhIAObrWglSr j1xnrZ2KNx+OJlebirIBKlmUc6F/7KI= X-Received: by 2002:a92:49c3:: with SMTP id k64mr28942967ilg.278.1595980834028; Tue, 28 Jul 2020 17:00:34 -0700 (PDT) Received: from 42.do-not-panic.com (42.do-not-panic.com. [157.230.128.187]) by smtp.gmail.com with ESMTPSA id i8sm198288ilq.67.2020.07.28.17.00.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2020 17:00:32 -0700 (PDT) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id 0E2E040945; Wed, 29 Jul 2020 00:00:31 +0000 (UTC) Date: Wed, 29 Jul 2020 00:00:30 +0000 From: Luis Chamberlain 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 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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