From patchwork Wed Mar 15 23:20:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 13176753 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D22EFC61DA4 for ; Wed, 15 Mar 2023 23:22:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2w5s9Itnkpj30iuCHOhNkdhDc+klzgLQXlgTp31kcnw=; b=UAisDz521UVKda cOleJlz2UGwu4Tf32yfHVpjFxbCGbF5JtkWVSfPO6MeT5Dac6DUdD4rnjOv6RCPx543bcGwV4VxDG aWGUxGQbNAeX8Ro/DEsP1yJrJrqU9MXA9FgBUN49//Na4DN2a981fiQ8a304EPDmrIzxKprmAda95 ZZ1OsQ2hH8pTFwC8yzYyTsczYbp5rwcNDp21tA6NqBNo+4CNjAJ4DcmhKay9ljVLIpZxRJbsWCRUQ 3GBB2ad9eixRIo31k+LJ9j8aajLTnWqDWlOKHeFqmiy/IVHCqVTxkP9R0lRPuwBokC0p2WOZ/6eOh SYYbKVgKbR4iY5LiYLVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pcaR3-00EhG2-2l; Wed, 15 Mar 2023 23:21:33 +0000 Received: from mga01.intel.com ([192.55.52.88]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pcaQw-00EhDC-1d for linux-arm-kernel@lists.infradead.org; Wed, 15 Mar 2023 23:21:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678922486; x=1710458486; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=nw/5j1jSpLgBUUzdvXc7MsautacAZY58cIXNBbOwElk=; b=BMfQL+CKOMLVs8hidOXO1EkevBHBvwximzpMUIbMNDOnV/t/HX9KFXOj v9ogGhE013zjULSjtsT013+u4D+z1AEj8mSLhVQY3YJLR4sfGMGkU9AWh hQJiEfskL7eRZGzIj2c/A7rI0BrPa9QTVkLnRYJhq1x5jxP8amYsR3qQo FPtEU3ndoqgKr0URWP0sGCXxxMff6Xz1ozZ95S2bpZQJJJvecaPieIpx+ xKYOEjTqakR6V3R4NfChHgGix1ALQ4maivSTOgnHqtoj7j15U1qvAWwy9 oiei4MR8IQAioyKuiISBi670izrpeaA9J2yGPdsOepGJ77HltjOI/IM09 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10650"; a="365527060" X-IronPort-AV: E=Sophos;i="5.98,262,1673942400"; d="scan'208";a="365527060" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2023 16:21:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10650"; a="672915100" X-IronPort-AV: E=Sophos;i="5.98,262,1673942400"; d="scan'208";a="672915100" Received: from iweiny-desk3.amr.corp.intel.com (HELO localhost) ([10.212.196.133]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2023 16:21:02 -0700 From: Ira Weiny Date: Wed, 15 Mar 2023 16:20:55 -0700 Subject: [PATCH 2/3] powerpc: Remove memcpy_page_flushcache() MIME-Version: 1.0 Message-Id: <20221230-kmap-x86-v1-2-15f1ecccab50@intel.com> References: <20221230-kmap-x86-v1-0-15f1ecccab50@intel.com> In-Reply-To: <20221230-kmap-x86-v1-0-15f1ecccab50@intel.com> To: Dave Hansen , Thomas Gleixner , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Catalin Marinas , Will Deacon , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" Cc: Dan Williams , Al Viro , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, Ira Weiny X-Mailer: b4 0.13-dev-ada30 X-Developer-Signature: v=1; a=ed25519-sha256; t=1678922459; l=1774; i=ira.weiny@intel.com; s=20221222; h=from:subject:message-id; bh=nw/5j1jSpLgBUUzdvXc7MsautacAZY58cIXNBbOwElk=; b=I19fBOZllVPuww2XPYb6Yj7SCTP0c5VvdEc1+udYFhYFeIDcPWfYUR9BHff5pGr5NQfrq/2HP Ku062ohYTaOB3XapC/cKDnTRLhJb/UBQCJE0wd6lYwaIKHy2W6KvNCQ X-Developer-Key: i=ira.weiny@intel.com; a=ed25519; pk=brwqReAJklzu/xZ9FpSsMPSQ/qkSalbg6scP3w809Ec= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230315_162126_584699_7A6959F7 X-CRM114-Status: GOOD ( 11.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Commit 21b56c847753 ("iov_iter: get rid of separate bvec and xarray callbacks") removed the calls to memcpy_page_flushcache(). Remove the unnecessary memcpy_page_flushcache() call. Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: Al Viro Cc: "Dan Williams" Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Ira Weiny --- arch/powerpc/include/asm/uaccess.h | 2 -- arch/powerpc/lib/pmem.c | 7 ------- 2 files changed, 9 deletions(-) diff --git a/arch/powerpc/include/asm/uaccess.h b/arch/powerpc/include/asm/uaccess.h index 3ddc65c63a49..52378e641d38 100644 --- a/arch/powerpc/include/asm/uaccess.h +++ b/arch/powerpc/include/asm/uaccess.h @@ -361,8 +361,6 @@ copy_mc_to_user(void __user *to, const void *from, unsigned long n) extern long __copy_from_user_flushcache(void *dst, const void __user *src, unsigned size); -extern void memcpy_page_flushcache(char *to, struct page *page, size_t offset, - size_t len); static __must_check inline bool user_access_begin(const void __user *ptr, size_t len) { diff --git a/arch/powerpc/lib/pmem.c b/arch/powerpc/lib/pmem.c index eb2919ddf9b9..4e724c4c01ad 100644 --- a/arch/powerpc/lib/pmem.c +++ b/arch/powerpc/lib/pmem.c @@ -85,10 +85,3 @@ void memcpy_flushcache(void *dest, const void *src, size_t size) clean_pmem_range(start, start + size); } EXPORT_SYMBOL(memcpy_flushcache); - -void memcpy_page_flushcache(char *to, struct page *page, size_t offset, - size_t len) -{ - memcpy_flushcache(to, page_to_virt(page) + offset, len); -} -EXPORT_SYMBOL(memcpy_page_flushcache);