Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2970739iog; Mon, 27 Jun 2022 06:43:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uh8jB4g+OO+ueIK2rd+YqDTs50fhx2JmKC/xe3dUr+LaQQAsz2DFONR1kxqsQH7FEaN+hg X-Received: by 2002:a17:902:e381:b0:16a:1b5d:5438 with SMTP id g1-20020a170902e38100b0016a1b5d5438mr14420886ple.147.1656337419780; Mon, 27 Jun 2022 06:43:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656337419; cv=none; d=google.com; s=arc-20160816; b=tMSPMoXYAvy8aJxvegF5XIT9lTyWx3gsLDO9b1086lGqo6DDFyNM2/8rn60q93YnMN 17yzoK5DXgSX4wPqSrHFu2NJ2n46ggDmVx9REQ+QZs4bQrxdlj0YqdiMdmmUZFk9VBL0 RF8KyMZN4h6TJN3/3VpuOzXfgzxof3G5PfSKQuIzgqa3azXkgO9me6qmFAxB9ocoTrYy SKlpWR7CscVrU2uEQI/RPuFsOezz2dATnoUDIKTY8Htb/rg8mOOaX/SpqJXrhmOag6Lq yob0GXP2VG9bb3hUCDoZ1nDmWiTUQxYEr73HQeS38rk4JlDLER/zdjV9qSo5GWjQEXae gA6Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EDY2YP4Mvg1mjMy3MuB18iyPLMXVkL/qc7AYaeGjLaA=; b=zhTE7EtOfWKBnbz26DsfK/BI+8Ux34wop/jAPC1YDuxOIg5NFtmZIisqUfjimk+A89 iFd8KbLsORGIfFk+xLzFS6FcaGMfepwipJrK3ifbH6tmaQL4snbMoy8cCoYMhJLKrbxj OovTD7AGiBM8EnXAKAu4VKwb1hAGmGb0ZCizLdGb1EypOmU3TxyFW8TGrztiG3OyeABD UFXKVp/4h223KTjd/TRpxqjc7Yq8Dp+gwlpVOVHsqws5aEn0nHniYcr3ciuU3h4dbQtB 7NYWSXmA/1SImNo6U7zcKKBWWTcJ1MzTnTJvPwk90Ipr10Wt+RLykS7ecoLeO/84HVcv HQ0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DcLGnfyt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j187-20020a638bc4000000b0040cb763766fsi12558943pge.588.2022.06.27.06.43.26; Mon, 27 Jun 2022 06:43:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DcLGnfyt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234606AbiF0NCY (ORCPT + 99 others); Mon, 27 Jun 2022 09:02:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234557AbiF0NCA (ORCPT ); Mon, 27 Jun 2022 09:02:00 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABF2D120A3 for ; Mon, 27 Jun 2022 06:01:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 9CBADCE19A6 for ; Mon, 27 Jun 2022 13:00:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5C9CC341CB; Mon, 27 Jun 2022 13:00:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656334857; bh=hreBI8EgJFm06gBn+LIBkI3qYVbQdetQMsfgmAVbTvc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DcLGnfytx0Fz1gXcLEfUbJS+NsSbmkvSiV1vBZtYodFFjKyugRqV2zK+H4kqnS89j BAL2s1TclOqFwuX8Px9TvtfArm0FafMiUzgAyc0AIT3i6bRmMksDxe16zsuO0RC240 WYPaeyxdLrRUP42ajEz/ScYCgeJvmTN/iFQ2SO472YIJDdufJJxVNBRktBDnpdex3G i1aN7CAmV3aBD/5tZcQZr5VOZqd+oSaZ3VGGRRM+Wi5PKO9amyVquoHEyWMXSootJP Osyo3L8mRBgWhnLf8s/3nneh89YiOViJU+5oYn2ggQwBK5i/ylBYhgZSFPGGSBVdJk Az+KS58lj+lQw== From: Will Deacon To: Kefeng Wang , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, akpm@linux-foundation.org, catalin.marinas@arm.com Cc: kernel-team@android.com, Will Deacon , hch@infradead.org, arnd@arndb.de, linux-mm@kvack.org, anshuman.khandual@arm.com Subject: Re: [PATCH v5 0/6] arm64: Cleanup ioremap() and support ioremap_prot() Date: Mon, 27 Jun 2022 14:00:44 +0100 Message-Id: <165632887130.3614125.5739508840825390970.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220607125027.44946-1-wangkefeng.wang@huawei.com> References: <20220607125027.44946-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 7 Jun 2022 20:50:21 +0800, Kefeng Wang wrote: > 1. Enhance generic ioremap to make it more useful. > 2. Let's arm64 use GENERIC_IOREMAP to cleanup code. > 3. Support HAVE_IOREMAP_PROT on arm64, which enable generic_access_phys(), > it is useful when debug(eg, gdb) via access_process_vm device memory > infrastructure. > > v5: > - break long lines(> 80 cols), per Christoph Hellwig > - move is_vmalloc_addr() check from arm64 into generic ioremap, per > Christoph Hellwig > - make arm64's ioremap_cache as an inline function, per Christoph > - keep changes simple, make ioremap/iounmap_allowed return bool, per > Baoquan He > - simplify use 'void *' instead of 'void __iomem *' in iounmap, then > drop __force annotation > > [...] Applied to arm64 (for-next/ioremap), thanks! [1/6] ARM: mm: kill unused runtime hook arch_iounmap() https://git.kernel.org/arm64/c/d803336abdbc [2/6] mm: ioremap: Use more sensibly name in ioremap_prot() https://git.kernel.org/arm64/c/abc5992b9dd0 [3/6] mm: ioremap: Setup phys_addr of struct vm_struct https://git.kernel.org/arm64/c/a14fff1c0379 [4/6] mm: ioremap: Add ioremap/iounmap_allowed() https://git.kernel.org/arm64/c/18e780b4e6ab [5/6] arm64: mm: Convert to GENERIC_IOREMAP https://git.kernel.org/arm64/c/f23eab0bfaef [6/6] arm64: Add HAVE_IOREMAP_PROT support https://git.kernel.org/arm64/c/893dea9ccd08 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev