From patchwork Sun Feb 19 20:35:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 59205 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp996039wrn; Sun, 19 Feb 2023 12:42:26 -0800 (PST) X-Google-Smtp-Source: AK7set8Xn8LCMKnOkTFX3XtDbq4LDhQ9rx3u/z7O00/ZoWo+u2b94W4cM8L64UGFoTm8euIEV03R X-Received: by 2002:aa7:d509:0:b0:4a0:af87:b3ab with SMTP id y9-20020aa7d509000000b004a0af87b3abmr2292948edq.36.1676839346233; Sun, 19 Feb 2023 12:42:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676839346; cv=none; d=google.com; s=arc-20160816; b=AdnEOyQwFPSWTpRoU2ZgNPWldA31Z/ifT7NzaDy6OGfTfU1qOJkVnvh+HRoMBJdiaG rtL+Cls71AA5CWB5k5JHKvhVFLBrnEXg5BHWdEAElgqo+D0GvsJ61+9rvvJsRMe/b0gD 9GrleXTAcyP6TgIzVrP6VIWOUabqeJMD+cfW6AvnlIQ8D6taiUbjSUFdBQt9vW5m4GVQ b/oTXKhB8QNF9XG8QqaOIQeloArkstXCylZXMMKnggUHpJgopGO37FWwjrXnt4DEsd/Z skbRcvtxIF+U5cgojYUefJes2It+SOzPt2zKiF3+zC0uWuGo1TWiW2lmug/UM9mJHQKp qUmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=XNFoYkLdQGAYbCO6Cz194SggiqspOYW+cT3O5G/GHEw=; b=Hui4mP3vytajRqwoPVa9mM7tTwu9Dal8kUi+N1BF8gl0QJiYYZ0RafFygv55kBxyl4 XoHXBpTw7Nuac3Y6Gw3ygk3ayp+WL+Qosw3hjiCRxp29kUZM/vldYvA+sAclODg6mCi2 VTykUxTeEx5KdqgTEPwolqmHJQ0odkyBlrTRHwDUlnZ/4rhQ5KpKKAw33nlq3IAzpl4Z wzxkkO+ILHPMRQGhfBwnA+kG68aO9C/L2jPG/MGdbxq5j1nSV+HPTmKt8eircHlb63gP MvlK3fUVL1JRMvbifbP/+31FCnCxTAV429C9KD48P4LVUSXqdV1lm3mB6JML8Mt0Jg5z emEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uepmuSJ3; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o8-20020aa7d3c8000000b004acdca43498si1671679edr.564.2023.02.19.12.42.03; Sun, 19 Feb 2023 12:42:26 -0800 (PST) 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=@linaro.org header.s=google header.b=uepmuSJ3; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231473AbjBSUff (ORCPT + 99 others); Sun, 19 Feb 2023 15:35:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbjBSUf3 (ORCPT ); Sun, 19 Feb 2023 15:35:29 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 528E717CF5 for ; Sun, 19 Feb 2023 12:35:20 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id t5so1404446lfe.11 for ; Sun, 19 Feb 2023 12:35:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=XNFoYkLdQGAYbCO6Cz194SggiqspOYW+cT3O5G/GHEw=; b=uepmuSJ316HFby/v1zLnAZKSIJ9rWKyYvQpyvOxba3h6EvU+l6GK/Uu7BuXmFnq1hF kAnEx6DcmrmtZbgXSDuZ0cWv5hmpEk9hg16ciGeZSQ8mP0Nz68P6v9n3pSyp/YB0KQNn TqCF036OZQnAAObkxNNbHJPKFLlpSfYJetH0Cu3QrpHs580ID7dqRBmsFmiBkHC8B/+Z G9gckrCjYyXBRKrOg3SfzHT/BqpVlMUledGZhoHl6JpBthWBKH3N+I73eBi0jEoIH9E2 OVJ/hUBQJn+TfszgH8vdehAR8nYGSHIyWgf96vsRC/g0KkXyOhg1TEa+yi2KM/KdnNIw XcoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XNFoYkLdQGAYbCO6Cz194SggiqspOYW+cT3O5G/GHEw=; b=ia+Kc29yvi9S6xgVl/ZuNYjLyqNSm4yWcV2CVpWV/Xarfo5c9js+bfHtWph3SCPngR C2LLyk60cX5lDb++JlKyBcZ3jJF46Z44SJQnLziQH79cCagsPbIxu6lpElHmc0WFZPe3 cLzyQENmS+/htCDEZpm3SVmpjg2rtuRLC64WDQhdvFS84Wz+g5NX6ZEic7DmXL/+zAj6 H9C6lwZ58GbcS/2O2QApC+NOhtdfQVDPFlVBXtGCfTq4G0HMDwFaCAWFkWBCqdsOpchU ZOD2VoHaaxQh9LbgUAJqY2DhBSZC9RZZoLToM4u1BadHEPcS798Q5VQ6t4aL04iE8dFs IaUg== X-Gm-Message-State: AO0yUKWE7yjnrmt+Q6NEIDk4oL7hbuZw5x/LGP5ycVa20alGds22cvUW x0sG0xk3cn9hXiWNASAP9lCJEA== X-Received: by 2002:a05:6512:15a:b0:4cc:a166:e27f with SMTP id m26-20020a056512015a00b004cca166e27fmr537470lfo.3.1676838918463; Sun, 19 Feb 2023 12:35:18 -0800 (PST) Received: from rayden (h-46-59-78-111.A175.priv.bahnhof.se. [46.59.78.111]) by smtp.gmail.com with ESMTPSA id n8-20020a2e9048000000b002934fce87bfsm286710ljg.108.2023.02.19.12.35.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Feb 2023 12:35:18 -0800 (PST) Date: Sun, 19 Feb 2023 21:35:16 +0100 From: Jens Wiklander To: Linus Torvalds Cc: Linux Kernel Mailing List , op-tee@lists.trustedfirmware.org Subject: [GIT PULL] Remove get_kernel_pages() for v6.3 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758293494502166803?= X-GMAIL-MSGID: =?utf-8?q?1758293494502166803?= Hi Linus, Please pull these patches which clean up shm_get_kernel_pages() in the TEE subsystem and ultimately remove get_kernel_pages(). The patches have only been in linux-next for close to a week but you told me it was OK to send them anyway. I'm normally sending my pull requests to arm-soc, but with the short time in linux-next and everything I decided to send it directly to you this time. Thanks, Jens The following changes since commit ceaa837f96adb69c0df0397937cd74991d5d821a: Linux 6.2-rc8 (2023-02-12 14:10:17 -0800) are available in the Git repository at: https://git.linaro.org/people/jens.wiklander/linux-tee.git tags/remove-get_kernel_pages-for-6.3 for you to fetch changes up to 816477edfba6e7ab9411acec5f07cfa00e0882f7: mm: Remove get_kernel_pages() (2023-02-13 14:16:41 +0100) ---------------------------------------------------------------- Remove get_kernel_pages() Vmalloc page support is removed from shm_get_kernel_pages() and the get_kernel_pages() call is replaced by calls to get_page(). With no remaining callers of get_kernel_pages() the function is removed. ---------------------------------------------------------------- Ira Weiny (4): highmem: Enhance is_kmap_addr() to check kmap_local_page() mappings tee: Remove vmalloc page support tee: Remove call to get_kernel_pages() mm: Remove get_kernel_pages() drivers/tee/tee_shm.c | 37 ++++++++++--------------------------- include/linux/highmem-internal.h | 5 ++++- include/linux/mm.h | 2 -- mm/swap.c | 30 ------------------------------ 4 files changed, 14 insertions(+), 60 deletions(-)