From patchwork Sun Mar 12 23:40:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Stoakes X-Patchwork-Id: 6498 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp925956wrd; Sun, 12 Mar 2023 16:57:19 -0700 (PDT) X-Google-Smtp-Source: AK7set95T+KZQCDpaQztHto7i0vO39RCbDSKyi0pkfmUUIipKqhOhbLRY/F84kAP6V0UN+77EeoC X-Received: by 2002:a17:90b:3b90:b0:234:b35b:f905 with SMTP id pc16-20020a17090b3b9000b00234b35bf905mr35073486pjb.2.1678665439485; Sun, 12 Mar 2023 16:57:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678665439; cv=none; d=google.com; s=arc-20160816; b=tWBcTM2dEK0dwK7bp0SC+DH1JfHOyiZjN1XYtoVfJ/N2aoDpkKqchHRSnSFpmEQoOo s3ncrWjpnrgAKmVFomMXn18ArHjdfPn3yXZH8GuE6/VDH7kQrvBBSbW9LKYIv2MGMJeA B1E3Ul4PrvqVpAHSJwTz52eXq/EjsZiMGfgQ4GNXWbJua0WU3J8+Z3Q2YgMghDZ42xEM SRNeF7po+cqBqNTYpR/bxAca3NTOWeMRdDJwzNn9KitaX12IZ6Qay5xSDfmyik5fgUoU kSexiQVYD7i4rHg2cixkup6i/uRvMhyywRGXXu4jiZqhRe2dD/PHgdN9c4u8Te7TDCW5 qDNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=L6L1zRMn7RXTj0YSorRi36CoIbvbTpqPl5G6frS5ebk=; b=jWgOyJ2Tbz1KaNfvJYyHHCiQDgJh6HZmJ/VEPd4K7D/K3RR2aHqKNR2sh2yiucD+fy sm+ndXNyiBIxk+AIJy4KAPoK9yxwHQs5zJ5u+AV7/+whpYbYIF8DHj+Tji33/HZdrJp1 58qVCUPxQmNx8zwKKrQFowo9zq8KJMHQMTsTKAvlHy638xprGvx3MF6Kl4rx1SaIBzP5 DptN4pRPHTZL6YI0RHG2h2Eg/5gjWTjQajbrEhSqFdGoAJocxBhFM7rGhpt/GaP5P9s8 jZ0NErArMWc24BQJIOzrcMIlERLi3oCx6BPk7Ud5OOKtqcN1e44Y0aD+m7FphP92gmuD lTEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qQg5I0l+; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s5-20020a17090a948500b0023d15ee1d3csi394209pjo.19.2023.03.12.16.57.01; Sun, 12 Mar 2023 16:57:19 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=qQg5I0l+; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229636AbjCLXme (ORCPT + 99 others); Sun, 12 Mar 2023 19:42:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbjCLXmc (ORCPT ); Sun, 12 Mar 2023 19:42:32 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 623672B9DD for ; Sun, 12 Mar 2023 16:42:31 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id x22so1311847wmj.3 for ; Sun, 12 Mar 2023 16:42:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678664550; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=L6L1zRMn7RXTj0YSorRi36CoIbvbTpqPl5G6frS5ebk=; b=qQg5I0l+XsWhkDyOnPm9+bat+WJLhznZxrD+/AauSstkSUaUO+3O5SNlzswUyoV3iS frZg8lBxQJys363RY7R2XM23j56Q+9K9YCBPNCObWsd3Kx1idDKRRx1+zyt71g+YeCza yvRi0TGXqt6cxRMKeBwLqSKAx1zU4aaJ5Z1RnWBWJyqwrVrKdN91fbYHn9KijJvfxySF 2g1EUb2P80R1Oi1wS2lJaZ9VRmlfSZfDmqMok5JOasDjScVWK+Quy2ThrF3wdvZ7PlGd gj1yoSVo1WbbUWQj30k899w0uM9Glb4b9h82LyrHbWv1UavkbsZqU5C5vS9+o/cGSchT gcDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678664550; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=L6L1zRMn7RXTj0YSorRi36CoIbvbTpqPl5G6frS5ebk=; b=0v8fjaHM29ogopRBZzN2aRFThkdNmDZ+dlRIbumzDffP2o864SJKbC/uplPv7lv7ou Ps5+iJfOH+YLjCNcgtqJAjg18lZvgfV+0FtTKxPPnkzgx55lXTY1Bgur0ljy9AXQDhKd FeyTbJ6IqQYixzbPmbCKBAz3qwTJNJdurpWRpLqsytpxLco9IGHfle5siWAaSoUA4rIk 9VwVRDFAVm4uN9LTzUzPwtWWNeunkakcqxsqrf1O64kmF1ozbZhSbPb2I1ZfOt7CuQEx 9NWky+T9A2a0um9ZGeByf8e1jR7mWqmFgZreBS9Z1KeE0fiXE6sbXAaXS/z0SkkbnZ8H yIvw== X-Gm-Message-State: AO0yUKURLXN4AvO+1YV2h46gIpB39cQMeTTFBzptrG6JqGIGnGd8n7bN WnyHz3nH7bWj8Hqs+o8B27c= X-Received: by 2002:a05:600c:4fcf:b0:3eb:29fe:f911 with SMTP id o15-20020a05600c4fcf00b003eb29fef911mr8980719wmq.13.1678664549671; Sun, 12 Mar 2023 16:42:29 -0700 (PDT) Received: from lucifer.home (host86-146-209-214.range86-146.btcentralplus.com. [86.146.209.214]) by smtp.googlemail.com with ESMTPSA id iz20-20020a05600c555400b003ed201ddef2sm3698376wmb.2.2023.03.12.16.42.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 16:42:28 -0700 (PDT) From: Lorenzo Stoakes To: linux-mm@kvack.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Andrew Morton Cc: Thomas Hellstrom , Christian Konig , Matthew Wilcox , Michal Hocko , "Kirill A . Shutemov" , Dan Williams , Jason Gunthorpe , Lorenzo Stoakes Subject: [PATCH 0/3] Remove drm/ttm-specific mm changes Date: Sun, 12 Mar 2023 23:40:12 +0000 Message-Id: X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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?1760208291715930752?= X-GMAIL-MSGID: =?utf-8?q?1760208291715930752?= Functionality was added specifically for the DRM TTM driver to support mapping memory for VM_MIXEDMAP VMAs with customised protection flags, however this has now been rolled back as issues were found with this approach. This series removes the mm changes too, retaining some of the useful comments. Lorenzo Stoakes (3): mm: remove unused vmf_insert_mixed_prot() mm: Remove vmf_insert_pfn_xxx_prot() for huge page-table entries drm/ttm: Remove comment referencing now-removed vmf_insert_mixed_prot() drivers/gpu/drm/ttm/ttm_bo_vm.c | 2 +- include/linux/huge_mm.h | 39 ++-------------------- include/linux/mm.h | 2 -- include/linux/mm_types.h | 7 +--- mm/huge_memory.c | 31 ++++++++---------- mm/memory.c | 57 +++++++++++---------------------- 6 files changed, 35 insertions(+), 103 deletions(-) --- 2.39.2