Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5870324ybc; Wed, 27 Nov 2019 10:46:26 -0800 (PST) X-Google-Smtp-Source: APXvYqwxrvTovxgJrfmAxznTgw2u/b6tOMoIHtJXZ/JNm3Cy1SJyTCtb6sXQCDjdeMGeww5OeQUH X-Received: by 2002:a17:906:f2c4:: with SMTP id gz4mr8341689ejb.39.1574880386743; Wed, 27 Nov 2019 10:46:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574880386; cv=none; d=google.com; s=arc-20160816; b=IPWbUg8uUOzChcEUDoCyN8RJVtQy3+R4dYi5L2Igc773MWf8YwyZNdI/1QzMJHKijZ qChuaEIfkDtn2gXzgilrhWlzywjyZE8lhT6YP8NATEpfIUdyEpOyWSbwEUy4yfLLWAtl l1p5wV5dZ9E87tvVypKBIzLssUaTkjAZR0U9nQXN1Zq45vQEbKBnpjLYhoecb1Gufql0 Py8RPIoGkUfgT2OTr5fHrI1ZaAZYT0Ndg8cJlGIbALQga+DhWToUrNX/tLBOy+ILpWTX ZhigwitXDkK1QtxTxhJrwpM7vPT8lil/AEvWFuY2mZSgYi4NgDRmVs+MkV9T5ldD82tI Wgsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=F/n86b6Kh7/7bx65ohsSuhkfsrRS1fX/ghGHBMXhZiA=; b=xb0su+N8zL/bv0nvxB6kc/3VuTQh5lRPwiEFiqMWDhYdL0ReUVuc8aB4+MMOeVrvoa pZdEMgWj0VcdPCd83NCZMYdM//TL8lyvlpSV6LRh0yJi+XbGwocNMImb6nsL4KXwjupZ WhN6wePdcxoYSH+QwQr8JCtpjl3UwkhxAOBNlunuvh8ti9FGn0Uou93DJbztyWPQkADr JW+nPUGbCQBSCu02Y8vPRCxN1rRspJPQNoTS/0V4NF/c0E4hvnnKSr1q16AOK+/qgQ+i xFkbPA575EotmoPAsIqtjbQRTqlQgrTzYAJ89ZsSgFWlIC8P/Z3npfs9LsPQbtsED7OG E70A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=iY3WGmb4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i46si11350820eda.88.2019.11.27.10.46.02; Wed, 27 Nov 2019 10:46:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=iY3WGmb4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727166AbfK0So5 (ORCPT + 99 others); Wed, 27 Nov 2019 13:44:57 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:41294 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726593AbfK0So5 (ORCPT ); Wed, 27 Nov 2019 13:44:57 -0500 Received: by mail-qk1-f195.google.com with SMTP id m125so20429252qkd.8 for ; Wed, 27 Nov 2019 10:44:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=F/n86b6Kh7/7bx65ohsSuhkfsrRS1fX/ghGHBMXhZiA=; b=iY3WGmb47fenakYk1z1uQ4/43MV+16v1SYdlJk6JAl3euekC4kAR8C4/ECW6Rz4kVJ cLsUVHWp7fiU24FpQ96I3EO48/XAQq9zOHMo6Z88+oUoYA2qxHZj0u0HXL9lEU30dY8Y ep/6IBJL7UCp1cC77ME+6B+78g9QNgLonOnUPH9yYuQX/6yAiB2YXbytWuONSaskHBTl LO+aA8Fj3N/cz2+KGHOx7EUjM4pzrKWWB8RcJjxbmMvaWHLPjAHHqiyL6s8xsKcjinzu dxrpdBh9lEOmwBD1CeekX+TeZn/pMfMPeKE4YXl9vgLYYwvwh9btiumNMmwMJzXJJu62 L9bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=F/n86b6Kh7/7bx65ohsSuhkfsrRS1fX/ghGHBMXhZiA=; b=EjI7tGBUuxGsP73IYzNNLF4PmaG7151AipKo5dz5QJ1DfqL1iAXSGSF5YeMWAIUkpf 739puu9imNjcSkXxu/ER+McouUY32HPnsbAFV5tr19VgXgXred+1jQfvaeBfrpQnlqKx 0EyPtjetqWQWhqczGS1Sw9hA+kLyNc7Ihu+dA2gqO6j5qaCyBzDSBmKUkJJZ6pOjgk/c ELp9y7LmUjTqc42eLaxWGdtrY9/cSEdSJaqHdBuUoVnjxcrcYqoKEVea1ZAPskDegSnI ehbIv3rDibat05h99g304thXlx/DNXxZsrh7BHt+xQMGywF1JiWV2fhI1hGBdqK9FXg5 g6bg== X-Gm-Message-State: APjAAAX4OAyoiB7pQCA311tTbOhkzyVb6QER2wnkAhvpUu5O7n9x0j+S 8KCtlVNVk791fbVIFhvxX9uCww== X-Received: by 2002:a37:bd06:: with SMTP id n6mr5990382qkf.286.1574880295965; Wed, 27 Nov 2019 10:44:55 -0800 (PST) Received: from localhost.localdomain (c-73-69-118-222.hsd1.nh.comcast.net. [73.69.118.222]) by smtp.gmail.com with ESMTPSA id o62sm2748024qte.76.2019.11.27.10.44.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2019 10:44:55 -0800 (PST) From: Pavel Tatashin To: pasha.tatashin@soleen.com, jmorris@namei.org, sashal@kernel.org, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, steve.capper@arm.com, linux-arm-kernel@lists.infradead.org, marc.zyngier@arm.com, james.morse@arm.com, vladimir.murzin@arm.com, mark.rutland@arm.com, tglx@linutronix.de, gregkh@linuxfoundation.org, allison@lohutok.net, info@metux.net, alexios.zavras@intel.com, sstabellini@kernel.org, boris.ostrovsky@oracle.com, jgross@suse.com, stefan@agner.ch, yamada.masahiro@socionext.com, xen-devel@lists.xenproject.org, linux@armlinux.org.uk Subject: [PATCH 0/3] Use C inlines for uaccess Date: Wed, 27 Nov 2019 13:44:50 -0500 Message-Id: <20191127184453.229321-1-pasha.tatashin@soleen.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changelog v3: - Added Acked-by from Stefano Stabellini - Addressed comments from Mark Rutland v2: - Addressed Russell King's concern by not adding uaccess_* to ARM. - Removed the accidental change to xtensa Convert the remaining uaccess_* calls from ASM macros to C inlines. These patches apply against linux-next. I boot tested ARM64, and compile tested ARM change Pavel Tatashin (3): arm/arm64/xen: use C inlines for privcmd_call arm64: remove uaccess_ttbr0 asm macros from cache functions arm64: remove the rest of asm-uaccess.h arch/arm/include/asm/assembler.h | 2 +- arch/arm/include/asm/xen/hypercall.h | 10 +++++ arch/arm/xen/enlighten.c | 2 +- arch/arm/xen/hypercall.S | 4 +- arch/arm64/include/asm/asm-uaccess.h | 61 -------------------------- arch/arm64/include/asm/cacheflush.h | 39 ++++++++++++++-- arch/arm64/include/asm/xen/hypercall.h | 28 ++++++++++++ arch/arm64/kernel/entry.S | 27 +++++++++++- arch/arm64/lib/clear_user.S | 2 +- arch/arm64/lib/copy_from_user.S | 2 +- arch/arm64/lib/copy_in_user.S | 2 +- arch/arm64/lib/copy_to_user.S | 2 +- arch/arm64/mm/cache.S | 42 ++++++------------ arch/arm64/mm/flush.c | 2 +- arch/arm64/xen/hypercall.S | 19 +------- include/xen/arm/hypercall.h | 12 ++--- 16 files changed, 130 insertions(+), 126 deletions(-) delete mode 100644 arch/arm64/include/asm/asm-uaccess.h -- 2.24.0