Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1697868pxu; Sun, 13 Dec 2020 00:09:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgP+31AwB6DaY6ZzoxwCA/ME47dceqpEzJPNLRzip/3joT/t40hZTEyjMPYB7drx48URPO X-Received: by 2002:a17:906:a8f:: with SMTP id y15mr17902566ejf.552.1607846996576; Sun, 13 Dec 2020 00:09:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607846996; cv=none; d=google.com; s=arc-20160816; b=TjPibS99kkEwcpOa6QVtsL6+Fem/QHONibIvfvGrMSfHNOSVZtts0DRczyM+j24pq+ p3JtO5X3FeSOWQNPery1HvMEIWxzywLCK0uzquwVvoQsUH10OCE6LPkFizKH8KN0yzfH ODdBgRUrASxRxJY1qo1l2hAZyXfAeKOUy+i2Ec6GKZ9Y3ojxnNZWlZHWYmKvKHi7ArFi +ii9OYuN+VCQbQahNS3z8s33BGkA1UQLgBHDVZGPmsXeqDmPbz08erpPYYGURe66ed7a Ncz/PBz2sR+N+ek4XSQBXquGd31887JFbVD6UFvnT8206b7ZPbkcuGVrKbjvw0OgcHdY j56w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=8W3/RL0f9oAdrIxjf8Wk4dr9AqOCR7oiy6Dk2qCm7R4=; b=zNm9pmuK48cAqiDLnZxcthL/wbrCFvZfUudJE3SyvEDRkv3iSlAHphoaD3gAveZ++G r904wE5CK3uXqi5IQGUUEDlPy/2nWPdxIHxaw+AZtcw07nVnVk7dpv1S/dUoApDEaypN uJHM4vCy5vTSev0pU0Iz5eqOBev4FZB/3x3GRao2Zs8rVhzQlEPXbiFsZ9oR5fY+guXm BLLGut6PJxFiScyX3fDqTTGOUlPVUNnL8WqZ8JquStAsm93/aQlOEmh2nlBG1mtdiv0X WLhPI8BFtnrZD8UjmXG2AaXfBLGfjYf05PurcEl/ZKrbLgezlkmYV9Cz7w/2aHOiArqW o0rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b="kVr/+Nim"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u4si4523575edo.323.2020.12.13.00.08.52; Sun, 13 Dec 2020 00:09:56 -0800 (PST) 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; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b="kVr/+Nim"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390603AbgLKUdb (ORCPT + 99 others); Fri, 11 Dec 2020 15:33:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388317AbgLKUcw (ORCPT ); Fri, 11 Dec 2020 15:32:52 -0500 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16DA6C0613D6 for ; Fri, 11 Dec 2020 12:32:12 -0800 (PST) Received: by mail-pg1-x52b.google.com with SMTP id x24so2069924pgf.0 for ; Fri, 11 Dec 2020 12:32:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=8W3/RL0f9oAdrIxjf8Wk4dr9AqOCR7oiy6Dk2qCm7R4=; b=kVr/+Nim2nL0QsMtIjlrxXUxggHwMco9JmUhn39E47IrJZQPf1fk17INy3gRCDSY6g yxdd+cLlSoMNdCrS2SnzRplLf22ex4ZehwgzDwAb6t6F8ZCiWV3zRrZ6AysxKbSAYRkc pxZnpNi/EWlDxgSCsLOzZFNeHYIv4SycNtlKjce65owcduBpVcJKz9IXuIY1O4/g2Syq Qokp0xW3WrAf7bkV6cOQV6BKm4vuyCWEDBEaB6DR1ERREMwmEqkuFkdF04fOkoCQGwRl ROSzA0jT6QH+8N8YXQKc0RDdb4wwSVIjFpAu9eTswtKvklNUXPMn0KFXmffOwRWRLqVT aAWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=8W3/RL0f9oAdrIxjf8Wk4dr9AqOCR7oiy6Dk2qCm7R4=; b=HhX63KL4WY7tgL9jJ6aFCHJgPhQ1iwLCaPPeCcMPTzFyr+G+RdoJGmbgx/XMjtHLXP qp2QSjLVRv84jV+rnLokUJuwSrNEeYc9PIsCxoMwf61HhIzROTTRTp7+52M8vRNaWZ9M ArXFH5K8Sq5MlPpHlp+JZmI4gKJTzLFrPFqIWudg7ilrhX3sBqFhzKvVIsqeWwq5y8jJ mmc99E5PJhyzX+XzYbmysiCFh1ifNzzwmN8PD1TetC5g74RZxSZLe4/e0IX7aVR8YdDL d/zRaa/tKSI8RaavZTIa+AKXYSsgtJGyGUGSlrtDcY+bB7lffXrxtgA/qyHv/dRbuGVu v6rg== X-Gm-Message-State: AOAM530oyh9SA6gP3C12qtLZrja+LiN5nGOLsFipEoLCojUTn4thBFS7 SZKUMRCIo53XPKfeOGNLLFb7+Q== X-Received: by 2002:a63:5d05:: with SMTP id r5mr13431438pgb.442.1607718731584; Fri, 11 Dec 2020 12:32:11 -0800 (PST) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id y27sm11640213pfr.78.2020.12.11.12.32.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Dec 2020 12:32:10 -0800 (PST) Date: Fri, 11 Dec 2020 12:32:10 -0800 (PST) X-Google-Original-Date: Fri, 11 Dec 2020 12:32:07 PST (-0800) Subject: Re: Add and use a generic version of devmem_is_allowed() In-Reply-To: <20200729000030.GI4332@42.do-not-panic.com> 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 From: Palmer Dabbelt To: mcgrof@kernel.org Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 Jul 2020 17:00:30 PDT (-0700), mcgrof@kernel.org wrote: > 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 Thanks. Davoid pointed out that I forgot about this, so I just rebased it onto 5.9 and merged it into my for-next.