Message ID | 20240925132420.821473-1-jvetter@kalrayinc.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 02724CF58C7 for <linux-arm-kernel@archiver.kernel.org>; Wed, 25 Sep 2024 13:28:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: Content-Transfer-Encoding:Message-ID:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=kMEgvJFKFqDrV18lig9ZekYMNCjW6s3gxtl2Zuk1OKw=; b=hwNQi1281vMjeJsa2WyQdFu4fQ 90fAgJ4j1SO5EtjJgIOBwfYy+UDwLloCAe7cWjViPZYnjRpetQX/azo8NpDiZnE3tag2h+lJMrZM5 nm7u9dPpjm1bxG+WUMopv4Ft/H1r1Ak3CSi8a/I0aLzas6baOsZbT0s6SJP9eaz/UYaXTX5EX6twR TvVYvpQSgSSROCTr/N+cLpz87yuxYcbIJw57+KAHW/lkiXhcF/0mhWlRLZSOHa+HJ9nZIvkuBb5VL uF5MjFRByFQwRxP0ZEqObBBGioi3616+8y/iCvAi6J36S6hhVZh0+AUlYnUV1bOgkCcqOGQPHbEk9 HNzH7NKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stS3z-00000005NJI-0XKR; Wed, 25 Sep 2024 13:28:15 +0000 Received: from smtpout144.security-mail.net ([85.31.212.144]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stS0W-00000005MPx-3Ow0 for linux-arm-kernel@lists.infradead.org; Wed, 25 Sep 2024 13:24:45 +0000 Received: from localhost (fx601.security-mail.net [127.0.0.1]) by fx601.security-mail.net (Postfix) with ESMTP id 1E54F3496AE for <linux-arm-kernel@lists.infradead.org>; Wed, 25 Sep 2024 15:24:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kalrayinc.com; s=sec-sig-email; t=1727270676; bh=8lEi+VuejbU/yw6FJTZvefT4xKEhJd0dp0LwFqP0BmU=; h=From:To:Cc:Subject:Date; b=QDA/+wZAAHf8y1xIHFixTWFHNNkH4pqVzSO13NjFE23kwqrpvhRqTtlqVqWYF93NP qw5QpYkB8UO8GNq23MZonVb5aCDdeIXPkbokADqsUVPleJzoRjSo/RXw6AlaF6Z2ID 5rsYrxCu+iaFdajbuJ4PhI/8auAn9Moaepr5pZ74= Received: from fx601 (fx601.security-mail.net [127.0.0.1]) by fx601.security-mail.net (Postfix) with ESMTP id EAB2C34969D; Wed, 25 Sep 2024 15:24:35 +0200 (CEST) Received: from PR0P264CU014.outbound.protection.outlook.com (mail-francecentralazlp17012048.outbound.protection.outlook.com [40.93.76.48]) by fx601.security-mail.net (Postfix) with ESMTPS id 1BBE634962F; Wed, 25 Sep 2024 15:24:35 +0200 (CEST) Received: from PAYP264MB3766.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:118::6) by PAZP264MB2543.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:1f1::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.27; Wed, 25 Sep 2024 13:24:33 +0000 Received: from PAYP264MB3766.FRAP264.PROD.OUTLOOK.COM ([fe80::6fc2:2c8c:edc1:f626]) by PAYP264MB3766.FRAP264.PROD.OUTLOOK.COM ([fe80::6fc2:2c8c:edc1:f626%4]) with mapi id 15.20.7982.022; Wed, 25 Sep 2024 13:24:33 +0000 X-Secumail-id: <ab3.66f40f13.1a33d.0> ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BaKTfohv74X/62JrQF5/bzq3xqxMYtmYrhH6CIzFBhVR/nt+xsFrf3ThMzi4z9hfegp/UOG5Cxc5gIY8j8O05nsIukpoCdfmB8td5aT1iUV/HRUlw6sv1QihqFuNTGlG/LVjH5+keMd2y8HphdejX9ThjaGPUcuvcnrozdTtM1uIYus272Npu3cA0Q3uDmKAi1WNy1FUdJpluLmqv+9wtX1awoNhvFk6X/Te2hfBL+V7jvbNUAYIklvjj7KnqWxQjMSPmVb7rNGTu+0gcN4HzktRHnu3VR8nXtZUg7O9WqSg8pz4/DSe3D/BcboCtmZZh2sdwY/OYn/6pTKh4MChiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kMEgvJFKFqDrV18lig9ZekYMNCjW6s3gxtl2Zuk1OKw=; b=XAz1FMtgHoFatZRDvMaBeSVWHNF+fgzfwLxjEexJbMyjv8jMmvnoh4iD9mB2duwxxYRL52I4OIVtAJnDhaknVDYebl/hwtYLGXK32GUARlIsers6i7zpo0D9lzfCLzJkNhb+RDKEzAQTUI1YzCiKJ6/1jJlc+7iSo4yy0hBo0cTUd8qJPhps/p5X7NwX8CriJ0zcyRzgfOs4i88PPsbuLanUax1MpA0T3IVhLKl0WSO3SmYgh3HqBx3VsLIofeh3/lcGBZgnlXb7drH9E9Yk/re/E1+Q5lx8Z0y7MDCLPdK4treaRrXKSAGAskqqCX+K114ffqnBka2Ccmak6VDp9g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=kalrayinc.com; dmarc=pass action=none header.from=kalrayinc.com; dkim=pass header.d=kalrayinc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kalrayinc.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kMEgvJFKFqDrV18lig9ZekYMNCjW6s3gxtl2Zuk1OKw=; b=RBrFgkOUjJYr8perRyLPD//gymdTO+NHVOvLXiOAZFsS4ywsHvNaxqY9FuuWeOIw2bXeIXgWGYYv6ZqRAT/B+21rk+XVT0LbfVfeW/hLP0oSdUll+bUgbopNuYG/9pgb8J5Pn91qPIOer5QonWiv09hTLBKBX9n8RkoSSDtYU/panrUo33AQDCTqQwmGHkIecYl1zebxkFkW6On1mR4LpiovK8c4/t516aZKQAPJGiPuQY3tohqjgcNhhRBFwUcz/JkFJAJzuNStVWv4AZ24e30uyU2GeCLVxcuaKDECNHSxLNg10v1QpL+gwp0y8TqnxKtnFdPBsDg+lxia7ic/WA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=kalrayinc.com; From: Julian Vetter <jvetter@kalrayinc.com> To: Arnd Bergmann <arnd@arndb.de>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Guo Ren <guoren@kernel.org>, Huacai Chen <chenhuacai@kernel.org>, WANG Xuerui <kernel@xen0n.name>, Andrew Morton <akpm@linux-foundation.org> Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, loongarch@lists.linux.dev, Yann Sionneau <ysionneau@kalrayinc.com>, Julian Vetter <jvetter@kalrayinc.com> Subject: [PATCH v6 0/5] Consolidate IO memcpy functions Date: Wed, 25 Sep 2024 15:24:15 +0200 Message-ID: <20240925132420.821473-1-jvetter@kalrayinc.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: AM0PR06CA0138.eurprd06.prod.outlook.com (2603:10a6:208:ab::43) To PAYP264MB3766.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:118::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAYP264MB3766:EE_|PAZP264MB2543:EE_ X-MS-Office365-Filtering-Correlation-Id: c055267f-1a92-4285-cb48-08dcdd6564de X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|7416014|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: ChIVTiwMfI4r3TRBtZ/iCVDcAPsH9qibf5JuiQ8HqIZAYU7p+gPzufCU5JDq9jHBV1mcNG/1UD9kmOZfLSZ0uwtVzNnLXxSKjecTcfwOnEicfH5TGoEGrKcTPPc8U0zPoYlBDdnHpGBaxN1fMD/Fvab3LGCFNi55aXeBENDo1UaQnrkq8NJza0q/VhV45Qm4n49f3rYOLLZJkKm/m88JAdJJ/kdrBGQnsKHLTnN2VsCovZlhQ9rxRg2mG8fsroFfkZDWZXCkAGjPxVRF+q8ytUmQ5P8OdPoUJWa8rOIOYQVwoKmC7X8Us4qn+KntVPYkkpCqGsy6WoXDLoL3ZpESCxOvikjlKU/NfuRWQILKpawuzo1hx9GkTBJUhmYkq+ClvIbhma6BGdooJkJq3xETqLabbJ+tntkrlh6vr6CItsYGH/gw5r0ke1GUSAW2LTKSmk4QZtIOhOJQkzjMZqNR3YyfUVBPrpWqnVxhzsuy4fNGidFNxkLwhNWmvlLx7wn1pxUleFFTpvw7T8onI+Fq5kprXQLflpzl5yUEfU3vt/OzQnRBGayTSpd7uTcTw0BJ0FjGSi6R3st0fqLz/1EZpMaAEMpHh0yJ1SFOj59opuRGM+Yrvzb0JBkC0L38IR1rZYfl5991VE0LpNoJKMwU4pJfCiVYFTF0vJm8k0fbaX0DCqSEvxaUjeq6v8Tfj5D7dcYaMUh3lUM3qdyH/eaOM60HB8K3fQtDEQEud4whpx9ZUJZSjRuh55lWM2hNw7wYt+3wpkkEzRvVTBD4rJKSOs2VanORReskcNIaI1wtKqK6S0yCrkFPIkHqqxCul363jkIvCBm2zWYx2UG8hPxBft6HyHr8hxHJH5WapSXNlbTd5OWHwaUQ6Xy8YJumjj9eCT6sKluxG2hhU2e1LhPC/480sU/+9EPW5tqGfsuPd7Xd5VM0iSvPSPLdmPiOfNNclWb /axxkX7qSSn04GYZPTKVnX2T9xdCcI41B4Vei7jlShDfBimhmPHKRbBWbRhkwGrIgZ1wqjrNjrTLx1bzo8AG2j1+gurA4chZ9iFhwMUSPsH0eUam1xUBceaoddzmBRej94zwSslYFtCf+hBbfd8Q6RWZB6+AdJmvpG/2IVafDeKTtoJp7Lf3E7rsady7qiAsF3C2U1t8W9CWgbBy9ls8bkHq95xn3GXYPu1hNpZ0MqnKi0tND+uzXiH7kCxJGi3mLxd9Tbdl8RMKFYChM/L1OPAmhV34vtE26Xj9YjVyLOYThkHyWf+WzCHzjN0x1sj6MjFEjEgM3duI4DHniKy5c5oSVNSeVcDMZpTzKHXHZDl8BDMeZKTMuRBMitBv193JZvwLeRo0Zsk20xKngHeU2aO8V8jsDMRvhctyOU/AsegoKaaiOJjxZhZ1W+8EIHILoM8x7lfTCXdtJN5IY7g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAYP264MB3766.FRAP264.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(7416014)(376014)(52116014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 8TZoXZ2OvSiK2X6C1ldAqCYJDUT+EYKXlLlQ9k4ouTc4FRVkiUSP7RniSKLKy/n5nMyehhGCgkhPvBHOrhpBTSJZgA4glPl84Njih6pIDT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cw920mCvlgH4DBRipcdJZvl+nCpiGpzvDXcPXv5D5X+CClQhXHM+QuxhqZWueLmgvj2zUo/J0htaJf/uIb2+3JiSxY0bnRza5XiuOGLgbjY5jFc/2pMbpxkM+X+xdWe8E5ss42W/5EN+3YEH0lY41aL/r32IMd5bAMyL1BCsqYA1EPNYoGBye70L69Tt8OU9dC2+bUfJkRCsRShtSrUleOMBZO01u/BMPJvPVp+VvynFoSP6wByHLQklrKeteg47zS03t10++OmwUMaZPqtoLy1iz62gbbO//gehOp2QWWRzYkmIvSvO8IXXTwqYFvILL7Zy4JhM3r6oz32LaO+yJSCajU4czptYZXW8oNKUrr5NwLaiU2KQnT6eqlAz8NK5x59ynypVy0sFqjhmq2JT+p+ X-OriginatorOrg: kalrayinc.com X-MS-Exchange-CrossTenant-Network-Message-Id: c055267f-1a92-4285-cb48-08dcdd6564de X-MS-Exchange-CrossTenant-AuthSource: PAYP264MB3766.FRAP264.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2024 13:24:33.4977 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8931925d-7620-4a64-b7fe-20afd86363d3 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OJTlAFWqv6T+I6RhfcGDRNXZQvSko4PirvdN9FIwhGvib7NU699XR070fk+FNZvycVhGr35CcX77GNC7rlwMXw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAZP264MB2543 Content-Type: text/plain; charset=utf-8 X-ALTERMIMEV2_out: done X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_062441_890504_8229837D X-CRM114-Status: GOOD ( 11.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Consolidate IO memcpy functions
|
expand
|
Thank you Catalin for the feedback. It's not a nitpick. I have addressed it, and added the architecture before the message for the 3 commits that modify arch code. Signed-off-by: Julian Vetter <jvetter@kalrayinc.com> --- Changes for v6: - Added include of linux/align.h to fix build on arm arch - Replaced compile-time check by ifdef for the CONFIG_64BIT otherwise we get a warning for the 'qc << 32' for archs with 32bit int types - Suffixed arch commits by arch name --- Julian Vetter (5): Consolidate __memcpy_{to,from}io and __memset_io into iomap_copy.c Replace generic memcpy and memset by IO memcpy functions arm64: Use generic io memcpy functions csky: Use generic io memcpy functions loongarch: Use generic io memcpy functions arch/arm64/kernel/io.c | 87 -------------------------- arch/csky/kernel/Makefile | 2 +- arch/csky/kernel/io.c | 91 --------------------------- arch/loongarch/kernel/Makefile | 2 +- arch/loongarch/kernel/io.c | 94 ---------------------------- include/asm-generic/io.h | 18 +++++- lib/iomap_copy.c | 109 +++++++++++++++++++++++++++++++++ 7 files changed, 126 insertions(+), 277 deletions(-) delete mode 100644 arch/csky/kernel/io.c delete mode 100644 arch/loongarch/kernel/io.c