Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp354993imm; Mon, 1 Oct 2018 10:59:28 -0700 (PDT) X-Google-Smtp-Source: ACcGV62+6kGF0GM1jkQMKP3QzXSPUUJ8mNFGwRRvp2nmR8P/9r6eDW3YR/5D56yUgujGka757YeJ X-Received: by 2002:a62:c6d7:: with SMTP id x84-v6mr12635244pfk.174.1538416768872; Mon, 01 Oct 2018 10:59:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538416768; cv=none; d=google.com; s=arc-20160816; b=k/JTbU0Sl3D/m4zC/9xZGUfLRTuvUMQyevCWe65jI9EVDl0OS8VfOKkFKxUSpOBl1N 2TDSFmnjYhIhcfA1w1+H8GEYnlNbHBJpkYEUefNdTsegLC6xP93nIKp7jpAzgRSPDguC Xcc1ARtIK1zPSXOvOJyU1fEczDJCJnAWrrQU+1VIIp3qhmh0JXB76e7YkpMRP7ODRlo9 bVQNqhCFOabFLm5cbtIicd1GBG+S051XMSWK/tHNBTFSY6F51l7YthOz2XYX9uWEzAfU IvmDH+tIJHCJzpn3W64QXKIdWJf6snwE7FZSc9j7kIWTvFZg3Q0zwKf6LQVKHOdals/n unbg== 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:cc:to:from:dkim-signature; bh=+sf2qpwdduLxk0SLY+c4uiB9i35zOOSrTwM5H0xSWcU=; b=mVkZOL4yCNEcPsgQgjCFJdb9N7MWu4GRkJjduPQwonWl6yW+rfayo99pp1QD6a+UvN ZQGB/Zz6myE9Hf+eBag1nHT0AxsNEg6k/6RQkWVvoMGWLmbIkx2DTIy+5tfMy5jRYsS6 EjxZ4frjLDdbhTdKuvFmcCRLsGxYiLos0syFWAvCPHX2TvsXYgzDFoPVE6XBB0U/nz1d 378KvG5kxNSfbQu2jvKMul6Vw6M4aFOBjEVZPUxg4//o8GBYoSjDELOpT9aUugI7XTxF HPdDH64T990AiMjopSLBZlQ2gYILOeIUf5iaVImRF/5L/LPaEHoX5mU//v7p6okLimaI HHMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@android.com header.s=20161025 header.b=dXsEfLIt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=android.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 59-v6si12937398plp.87.2018.10.01.10.59.13; Mon, 01 Oct 2018 10:59:28 -0700 (PDT) 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=@android.com header.s=20161025 header.b=dXsEfLIt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=android.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726391AbeJBAiA (ORCPT + 99 others); Mon, 1 Oct 2018 20:38:00 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:45558 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725740AbeJBAiA (ORCPT ); Mon, 1 Oct 2018 20:38:00 -0400 Received: by mail-pg1-f193.google.com with SMTP id t70-v6so9979921pgd.12 for ; Mon, 01 Oct 2018 10:59:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=android.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+sf2qpwdduLxk0SLY+c4uiB9i35zOOSrTwM5H0xSWcU=; b=dXsEfLItOcXZI+xJxEme8AJSk/3ZR+BBd/1aFRrbU+4UO0fHSElUuUwN7varuyVVVr 3zoQtHrGP0zQOICSIBVPvCWLlBz1SGlxMEnrSRhLaEhRQ5im+HcT7ed3orVwmWBAh6eC QbecpcjtDSq6fZRL/l/L6tAAkOYXLo0RkmMtNwWWcslrrfPxRlXtdkL7CV9/4XJtnNcm eH4KBhGzLcK13FTiBXkv+/Ys0oCih4rvomQcORyk3k5TZctzHLxrXEeDdXpNJboTap/i h5tsuwW8zqqv2dvDn/EYSwEtrM1/PNP95GGHqiuEju+CT3hrhn+4DhVsk0OU4BcmICgF nbBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+sf2qpwdduLxk0SLY+c4uiB9i35zOOSrTwM5H0xSWcU=; b=K3QrBrTIdU08NBNu7AwOIpmEMjgzGMw8Rp2uQr+mfv8V6HeOVp1+Hj68xJxMZaRGtV zXnk4/UjlhdyBmU/X7fbHp1l6MWv2VUsg3cCJNKS+tLO1nWnsf49EgcWgBeW92cuH+7y 1jz23DpnKz10i9OKlbyyl77N07NW2dli4NND+G1LGrRYErkn36Z/zvtL5cx3hGbW0dKb VC4ZAD45aPjYbtmj8Zeb6y6eivD94RST0FdfcgHTGAJzRzO6bQ8IG1ULBfrv4hlVqOaY 0iV1cINOmnb9+vZOeUPk0b3S4E1DJ6s9bti8dOA9Q0iTYXW2UgBGZR3kiPPkrRwxPYQ2 u93g== X-Gm-Message-State: ABuFfoj2CqKeLP0BjcQzvry5gSj/tc/qLDMfytZJfncQfhG1NOEVMEr/ 3GLOWJI3ScHcsRSkO2l4RLIY8PhzoZw= X-Received: by 2002:a62:985a:: with SMTP id q87-v6mr12650755pfd.64.1538416743123; Mon, 01 Oct 2018 10:59:03 -0700 (PDT) Received: from nebulus.mtv.corp.google.com ([2620:0:1000:1612:b4fb:6752:f21f:3502]) by smtp.gmail.com with ESMTPSA id d186-v6sm24469261pfg.173.2018.10.01.10.59.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Oct 2018 10:59:02 -0700 (PDT) From: Mark Salyzyn To: linux-kernel@vger.kernel.org Cc: Mark Salyzyn , James Morse , Russell King , Catalin Marinas , Will Deacon , Andy Lutomirski , Dmitry Safonov , John Stultz , Mark Rutland , Laura Abbott , Kees Cook , Ard Biesheuvel , Andy Gross , Kevin Brodsky , Andrew Pinski , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Jeremy Linton , android-kernel@android.com Subject: RESEND and REBASE arm+arm64+aarch32 vdso rewrite Date: Mon, 1 Oct 2018 10:58:20 -0700 Message-Id: <20181001175845.168430-1-salyzyn@android.com> X-Mailer: git-send-email 2.19.0.605.g01d371f741-goog 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 Last sent 23 Nov 2016. The following 23 patches are rebased and resent, and represent a rewrite of the arm and arm64 vDSO into C, adding support for arch32 (32-bit user space hosted 64-bit kernels) and into a common library that other (arm, or non-arm) architectures may utilize. [PATCH v5 01/12] arm: vdso: rename vdso_datapage variables [PATCH v5 02/12] arm: vdso: add include file defining __get_datapage() [PATCH v5 03/12] arm: vdso: inline assembler operations to compiler.h [PATCH v5 04/12] arm: vdso: do calculations outside reader loops [PATCH v6 05/12] arm: vdso: Add support for CLOCK_MONOTONIC_RAW [PATCH v5 06/12] arm: vdso: add support for clock_getres [PATCH v5 07/12] arm: vdso: disable profiling [PATCH v5 08/12] arm: vdso: Add ARCH_CLOCK_FIXED_MASK [PATCH v5 09/12] arm: vdso: move vgettimeofday.c to lib/vdso/ [PATCH v5 10/12] arm64: vdso: replace gettimeofday.S with global vgettimeofday.C [PATCH v6 11/12] lib: vdso: Add support for CLOCK_BOOTTIME [PATCH v5 12/12] lib: vdso: do not expose gettimeofday, if no arch supported timer [PATCH] lib: vdso: add support for time [PATCH v2 1/3] arm64: compat: Split the sigreturn trampolines and kuser helpers (C sources) [PATCH v2 2/3] arm64: compat: Split the sigreturn trampolines and kuser helpers (assembler sources) [PATCH v2 3/3] arm64: compat: Add CONFIG_KUSER_HELPERS [PATCH] arm64: compat: Expose offset to registers in sigframes [PATCH 1/6] arm64: compat: Use vDSO sigreturn trampolines if available [PATCH 2/6] arm64: elf: Set AT_SYSINFO_EHDR in compat processes [PATCH 3/6] arm64: Refactor vDSO init/setup [PATCH v2 4/6] arm64: compat: Add a 32-bit vDSO [PATCH 5/6] arm64: compat: 32-bit vDSO setup [PATCH 6/6] arm64: Wire up and expose the new compat vDSO This patch series' above has been applied to the latest Pixel phones and resulted in a 0.4% battery improvement. Signed-off-by: Mark Salyzyn Tested-by: Mark Salyzyn Cc: James Morse Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon Cc: Andy Lutomirski Cc: Dmitry Safonov Cc: John Stultz Cc: Mark Rutland Cc: Laura Abbott Cc: Kees Cook Cc: Ard Biesheuvel Cc: Andy Gross Cc: Kevin Brodsky Cc: Andrew Pinski Cc: Thomas Gleixner Cc: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: Jeremy Linton Cc: android-kernel@android.com