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: 13171901 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C4B4C6FD19 for ; Sun, 12 Mar 2023 23:42:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C9B7A6B0071; Sun, 12 Mar 2023 19:42:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C24C16B0072; Sun, 12 Mar 2023 19:42:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A9E5D8E0001; Sun, 12 Mar 2023 19:42:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 94E086B0071 for ; Sun, 12 Mar 2023 19:42:33 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 6E8C31C5C51 for ; Sun, 12 Mar 2023 23:42:33 +0000 (UTC) X-FDA: 80561872986.10.C76E2AB Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by imf18.hostedemail.com (Postfix) with ESMTP id B8A371C0003 for ; Sun, 12 Mar 2023 23:42:31 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=qQg5I0l+; spf=pass (imf18.hostedemail.com: domain of lstoakes@gmail.com designates 209.85.128.51 as permitted sender) smtp.mailfrom=lstoakes@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1678664551; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=L6L1zRMn7RXTj0YSorRi36CoIbvbTpqPl5G6frS5ebk=; b=p7FZbMAx8XmN2jhhUqzxnARbupSofGssDtEji05NSzb5DUn4GYGRcCAm/LC39Q8NYbNcJJ KIMLrOfR1u7/VbLX4HPPo83AKwmF0RqX9diKjOWjkncT0JorMaCqvJP8R8PZRaeh6R4dH8 3mDV/3Ri0GK1FKnaYWbo233kabnqOVI= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=qQg5I0l+; spf=pass (imf18.hostedemail.com: domain of lstoakes@gmail.com designates 209.85.128.51 as permitted sender) smtp.mailfrom=lstoakes@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1678664551; a=rsa-sha256; cv=none; b=ABnoFvwfcy9ylLrv4vhw+y8IkOhxcEyYk8WklalfwO4+7qnjhQ+dKDpCKrlk61HdNbvQr5 6vy/+Dj86W9HqpMw5swVQpDcNzNYCitNtq4d6F5az1oj2aVaL6Fdjrr/i9sWB6tlmlk54p zzagPYKGIuV5Mi/S02/p8hXQ57ZeiHM= Received: by mail-wm1-f51.google.com with SMTP id j19-20020a05600c191300b003eb3e1eb0caso9755818wmq.1 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=nx7yzzocqmw4o2T4FrEOnSnKYC2FL6dHiVBpW9Qg+hY+5FBfqQOadfQEjXHP2BBrnE 8cX1XJAxWIzO1NpVkFc/QyGOuBdBK2VonHRZBAXzxzK7ehPo3JYrpqKX2lLjmpY7RTWl DrkRUO2lcJpHdXo7on+cctusXJmsRkO+5om01kvS46XZFBcC5emyfPeOavYn+iptUsMH HvKzEL7isizeAutF/6nulC25FKJ+/As+VkFHnY66dqgobT+epjBp55ue8hy/FDNm3pxb fgQDhJo/lmt2so9dFBzy+X2LxMaS1E33K8e9WaAGTRXKJNiU3xiFl3bsW9S9v78VGuDD cd1g== X-Gm-Message-State: AO0yUKVut5Tm2AWYljLfUTCIS5XKzUXcO4o9XugFhrWBMtdhbolgv2bS nrfZ0QN/zw6oHyuyGU22TJipHyFk/XI= X-Google-Smtp-Source: AK7set9huZg1uC2jiFvA8tejOk5vnpUPfNGhGVQes4FSQiIZC2Akfq9gFzeIDZNfFBKRRWYv67YeUQ== 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-Rspam-User: X-Rspamd-Server: rspam03 X-Stat-Signature: rn76cspwk6pw8q7x9zuhg37pw549se1g X-Rspamd-Queue-Id: B8A371C0003 X-HE-Tag: 1678664551-245068 X-HE-Meta: U2FsdGVkX1/YDnEIPfq3VLkQyr+HgVZC8z/KcqW+aCgL2ZpTBejonxRmg8lodN+ZxPXX6VKNAmgkgj/XNsewWwlUKO38cgqEGhzOo+HE2r4khr1jNQfkQXFmAqjzooytQmAA7L3AZ6uHkmlIJW/vOIN39hPMRnExJ+M8ZnSDo42kqlSGwmLXuK7rGewjm1/IltqEC9j956dbHpTUns3BKZBrk0M+T7VHUHga9KdYBhNH+onYQHuTliOAGcfXVoraQXK/+eCNwelx9aX0oDMv+WgTmdd46d3pCHpZsVYL1Eph9KcIOvnqdCMM9vTOdVp8MLWvVZGyCPMX1HVP9O1xRnoze0U7Rwxz9gHxZvLQYviq5G3PFI1IxHuaOzhEgjVIdwkiGiQ30ZZgaB7h+ZAq12/OCxTwt2FdsO25kA0wV07drWS2t6xVrdOzVpb8mKRDDriSporgnOdGGqIVNjE6GcHt6BHuWKtdAlowxokUp7H1bj4ng+PtK2BjfQnUJntB1n4BHJMW5OHHUKav2lRdGwhib2KPatF5KNbR8zP2K8EBvo096RwOiy2+tKN8oIGHfLbVqq+gZ1ykTUaPKfV3IWQLW9odjCxasJMc2QhdQHwxtEoHMCcNDt0juEYrXeWpVxcZqpRBfxCTwyoRiIrDZUxfgtvYS56iArXEcB57iBXXqkohfIgJuvoXi/t1Pi6z0xq/Rutm12NDASJgiU9jOazxlKrQyA9E2OHWS9e7RK7HaEW3b8NkRkt4vcKKujF+AHJS5yiPD9PWQKqS7e3aWiwMCLD16tBAXfgrnDr6dEi9ha5eiMhwchmggvHACjaH0YeQH1Xp358w5L9N3Hpl5TjJHns3k66FM5XYrDQZoBn6s1CcThXqjPc4S42Cjw4QE8WalHKqwgGiF4dX+/fNqk7riCwA1jtumRyWuM4l7UdOP3sP/J6ZnY+7+kjIQL8fgVCzT6SYFPXhSNnHA8w lt1lOzeu 8H1FrhRaoFe29Kc8lR3D/NXR7z+FPhxH4coU1ARZxWwzCJ/VohWTvmqbY77oKmvH+aKQoep5Amm2BZQoHBzYl9QHOPJWlqbCD0bplGOWnioOs2uFsUaU3CTIBjxD60KWMqIbJO824o1/pm2jZX+GVx+twbKhOvCpQxQOY+FbQSy+AROJWN/uXqmvEiYyso/PlodNCjxt0ANN4qwIqoKbZA+gmg7UtJeoitUNXaw92v29QAgVb/bFLoN0dkzIAny22Qz5l4xKzLToHg0STfmCkZbzrUcCM2tFNHvV8WQce/HuzRLilINYLfZR6mIPbawhGWWPaPA8N5KBPDFPmIbXOIh0xIxnOGh9NNoEGQHsCAUa4UQcFTJx9zWGKbsVjw6n5J+2LMb9lnsyIikUfh9DBm7CEOgbjcEP332CC77ihRtU1QEMuZaujkjj1rg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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