Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp86735ybh; Sat, 11 Jul 2020 23:12:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/tWuajIBhKqzPXRAjjOlj1v/89GRB8v8lmaxivgmoia96dCjtTKqjoiil92yfL2SFTij/ X-Received: by 2002:a50:d0cc:: with SMTP id g12mr86609209edf.57.1594534367832; Sat, 11 Jul 2020 23:12:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594534367; cv=none; d=google.com; s=arc-20160816; b=gICnAX8TR4foNDqBI43VX5H7A8A5QZHmgQAUuUcsO+iT5E1hXoSKTPF3yHX++uDYtB zsk0ZAo3sQ6gLqrc1DwS0U89z0r7Z9DT3nZvDyokLgX3gK2zy9qq01nxxBY5PWBeRnsl k4r35+kD+WPSHqx6DFAkP7tK2bC6S5Nn0OIRU5SUw1b8c9kLSB3+tbjsrTWRGS0U6wWt H37/hxZ7ri+bbTGKuQ9JtwHObBAAFWNauu0VZGBAUo3Cuq7vYc96Ao0r5k06A/R1xJHx 71ofSrXnP+WYRbCrI1xOKVFHJYPOLTdHo7BYV8kqaW9UWaBq3raaqA7wim7I3kTDgsxw jmiw== 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=iob3ydEAwVYVzl/qiwbIGHIB0Efye2uv3b9fd8vuXz8=; b=QSFeUjizRZ2BnH1suuEQqiqrGDIQiZfkBHGZ7yGo6rxfQehafcKS1lFf8v9ew0vENw WCh899b8N22/60M/yMRycEH5+ROPjZqzKuNH26VILljrvyKLIwHlFfMUKhpL7/3F3Br4 gAwc+X6rKSic5lFzEz8aBmh47sPmlaSuychM2aTU13+ZVFIWyr00BuUWirRz0PF6bHlH 4/0qJ0KiuT7NcGkXRQJrOlhOHHP2n4Rh/AkD9dNG6WxzYqHSkqa2RB3lUrnuIucnvIxu meQWcT2tYWaN+zdMpbg3giLCBCfdpe70HCLUoB+GqdHpwtrZU3Oxjfj3g8nrCxSxRqFB /vwQ== 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rn4si7117280ejb.658.2020.07.11.23.12.24; Sat, 11 Jul 2020 23:12:47 -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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728265AbgGLGLN (ORCPT + 99 others); Sun, 12 Jul 2020 02:11:13 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:14926 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728198AbgGLGLM (ORCPT ); Sun, 12 Jul 2020 02:11:12 -0400 Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06C63FmQ121057; Sun, 12 Jul 2020 02:09:43 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 327u1fhwuq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 12 Jul 2020 02:09:43 -0400 Received: from m0127361.ppops.net (m0127361.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 06C63Qvo121566; Sun, 12 Jul 2020 02:09:42 -0400 Received: from ppma06fra.de.ibm.com (48.49.7a9f.ip4.static.sl-reverse.com [159.122.73.72]) by mx0a-001b2d01.pphosted.com with ESMTP id 327u1fhwu5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 12 Jul 2020 02:09:42 -0400 Received: from pps.filterd (ppma06fra.de.ibm.com [127.0.0.1]) by ppma06fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 06C628b0007626; Sun, 12 Jul 2020 06:09:40 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma06fra.de.ibm.com with ESMTP id 327p0vr4ju-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 12 Jul 2020 06:09:40 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 06C69clI2031964 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 12 Jul 2020 06:09:38 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4098BAE051; Sun, 12 Jul 2020 06:09:38 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 41FB9AE04D; Sun, 12 Jul 2020 06:09:33 +0000 (GMT) Received: from linux.ibm.com (unknown [9.145.40.119]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Sun, 12 Jul 2020 06:09:33 +0000 (GMT) Date: Sun, 12 Jul 2020 09:09:31 +0300 From: Mike Rapoport To: Palmer Dabbelt Cc: zong.li@sifive.com, linux-riscv@lists.infradead.org, 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, 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-arch@vger.kernel.org, kernel-team@android.com Subject: Re: Add and use a generic version of devmem_is_allowed() Message-ID: <20200712060931.GM781326@linux.ibm.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> X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-07-11_17:2020-07-10,2020-07-11 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 spamscore=0 priorityscore=1501 clxscore=1011 mlxlogscore=764 suspectscore=2 phishscore=0 bulkscore=0 impostorscore=0 mlxscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007120047 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. For the series Acked-by: Mike Rapoport > I've put the whole thing at > ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git -b > generic-devmem . > > Changes since v1 [<20200709200552.1910298-1-palmer@dabbelt.com]: > > * Don't have GENERIC_LIB_DEVMEM_IS_ALLOWED select ARCH_HAS_DEVMEM_IS_ALLOWED, > instead just adapt the users. > * Remove ARCH_HAS_DEVMEM_IS_ALLOWED from the arch Kconfigs, as I forgot to do > so the first time. > > -- Sincerely yours, Mike.