Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp22507ybt; Thu, 9 Jul 2020 14:22:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOim32IM8vBIIK7D/35Ena1t1v7NjtzVXlEZFEco6beQmpS4GkjzHXvePV9oVQh4gw5LcW X-Received: by 2002:a17:906:d78f:: with SMTP id pj15mr61606200ejb.283.1594329724987; Thu, 09 Jul 2020 14:22:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594329724; cv=none; d=google.com; s=arc-20160816; b=P9Z5yWw+LTNoesm3pqsghhl0v7/Fj5gvKvYL3LSp0z28ksslerNVxC4oFK2moxlyvu tUxRpuhmQCROTCLA3UsaLepenyyxY4cKL4KZ1bT68UCm9FLizCNywhGuqibXYW8so6m7 Dx7cGWcm4CkxS3tADQhEFHhSTKqpHAKPawWfpckgT8mDGNL71YdVpboJ2yCZm+yXZV0c duKdEdac5d1+P1EA4pL8JYWZIr27n9PIx0G3jaAcDXXU7hDeDvikFAFiWsQPrZpmsY8L UHp3Lsi0m9pphhQflq+2IVGyd3M7MX49dXd1WzqiqB2hEVMZCMidHSyXV3qpTlcMg9Ak NC0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:cc:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject :dkim-signature; bh=n3uMLnloJ4eoHyrHmlqZET1T4BdruPnLDoTh0ErPA48=; b=adTAQxF4eXibdnl4m1WTOY09sj2pEr+qx0NboDTeJP83NfopsanIYoDanKChvxX4+r jjZhHmweZo5+N68zVLrnE6TY3y7DjBYoN+dGY30/YtAhYa5r0Tbe0szb+k3jq1gFk2Jb e9qxk5UCAefTQ+w9vFckd7+OfyQldlZKG+xCtL/4X187yhQmUWAxQ8+cBZyD+M34w40P CNVRz13BfGW4tvqO+vrLI0kNuyN0FKXizeFBfrUUD1M0ZhMGHYHkwL/TDo44P+SMyPem 2nUXkxJ3ZlwdO/JlfglLNzbo1zh0LzicW+r9zpxUSs+SBItAeSIOnmJ3AUVVaSU6RosV Vt5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=Ti4pfq5h; 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 ck17si2384121edb.508.2020.07.09.14.21.42; Thu, 09 Jul 2020 14:22:04 -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; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=Ti4pfq5h; 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 S1726756AbgGIVUa (ORCPT + 99 others); Thu, 9 Jul 2020 17:20:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726367AbgGIVUZ (ORCPT ); Thu, 9 Jul 2020 17:20:25 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A53EDC08C5CE for ; Thu, 9 Jul 2020 14:20:25 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id e18so1522771pgn.7 for ; Thu, 09 Jul 2020 14:20:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding:cc:from:to; bh=n3uMLnloJ4eoHyrHmlqZET1T4BdruPnLDoTh0ErPA48=; b=Ti4pfq5hVT7B54E4TaVMVrAeYHki2ArpgjGeSYrfCb/iDXle+vyTyvA31jiZOyXBgH lmiJDL4QhUKORseAo9uCFC/RcRTq82RhEBkOgw9HsNYg/iY5PfxwXLnbbitN9Lo5KUsv jQ9IwmWEyi7fpghdnLVek5+NXVFPmumgd0ODHdxhTr01UfTuHtHNvwO+dc9ZgNDonQl0 HnnjedGHGBDZOylRUIXE7Mz0VZ8i/azvN0xXdnAQ/oNHMowrSHWERiG/zIRTcVCRijMZ y6PonQUen8yRH6LrlgjRpn7SMjeQxjsFeCDvNqHhm9pnLKmGNeT/EEdGPxO5tev+ny6W gdVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:cc:from:to; bh=n3uMLnloJ4eoHyrHmlqZET1T4BdruPnLDoTh0ErPA48=; b=ApKFZg90MNjI3B5X3x3eYxPg5JaKJfqsULVsHUSN0k3au3hUp5YXanp9Q1fTelBINK 4YS+rQEzIwMkR183S1ILSRzkY1W6OBU3G+7GQKqjEVGF0FZNigv0bTLz9/9y/IiQGj04 JTD2an0CmEBCVDwCMOogcVqVfOOnKnR93HnRJ1UX7pQxOoxb2gRC+8Tv6aChWS/+mdO2 NxN8jcBvUT8Z4ZsjkwjRtWG1DhFfMsBx1aV5Cdqag/g7Vf+U3YuFkNGT8CPUQiHnMM/O 5wtggTvUlLh5a+OtuEdeGcxs3O0h188q4pRuDEnuXapGJLAnxO/vSeCvdVxXuL/4ssYL J86w== X-Gm-Message-State: AOAM533TMzSIET9+N3FUc2GmhJF7hR2mpL0L6QgeqEQczYcTkiqqlDE9 8UM4X3NmO7tyhNv0MdiVQjtBVg== X-Received: by 2002:a62:7505:: with SMTP id q5mr56034672pfc.262.1594329625096; Thu, 09 Jul 2020 14:20:25 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id d65sm3660443pfc.97.2020.07.09.14.20.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 14:20:24 -0700 (PDT) Subject: [PATCH v2 2/5] RISC-V: Use the new generic devmem_is_allowed() Date: Thu, 9 Jul 2020 14:19:22 -0700 Message-Id: <20200709211925.1926557-3-palmer@dabbelt.com> X-Mailer: git-send-email 2.27.0.383.g050319c2ae-goog In-Reply-To: <20200709211925.1926557-1-palmer@dabbelt.com> References: <20200709211925.1926557-1-palmer@dabbelt.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, Paul Walmsley , Palmer Dabbelt , 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, mcgrof@kernel.org, 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-riscv@lists.infradead.org, linux-arch@vger.kernel.org, kernel-team@android.com, Palmer Dabbelt From: Palmer Dabbelt To: zong.li@sifive.com, linux-riscv@lists.infradead.org, rppt@linux.ibm.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Palmer Dabbelt This allows us to enable STRICT_DEVMEM. Signed-off-by: Palmer Dabbelt --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 089293e4ad46..8ff368a65a07 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -37,6 +37,7 @@ config RISCV select GENERIC_IOREMAP select GENERIC_IRQ_MULTI_HANDLER select GENERIC_IRQ_SHOW + select GENERIC_LIB_DEVMEM_IS_ALLOWED select GENERIC_PCI_IOMAP select GENERIC_PTDUMP if MMU select GENERIC_SCHED_CLOCK -- 2.27.0.383.g050319c2ae-goog