Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1985006imu; Tue, 6 Nov 2018 07:22:29 -0800 (PST) X-Google-Smtp-Source: AJdET5fx/7BzYyocdjPYDMAiDlocvPOs0qk7svVFfS7bvVGgTzjFJn9Dp/pP5l4gS2YbYxybscok X-Received: by 2002:a63:df50:: with SMTP id h16mr24275145pgj.421.1541517749750; Tue, 06 Nov 2018 07:22:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541517749; cv=none; d=google.com; s=arc-20160816; b=XTFVII7hwUjy9KjXVcRv1IdhNQ5u01P27CrbC1ecyjPFo9eW/nboTEpzO6GwZFdOMy VZTv9wz4wV6gJMMdaZDFLdutvzG9OG+v271EZYvmco7TGLaoERMdQKzCetGWo9BdH0ne sCzvjz2ZILD7OMBrEKLjK0rYO08uXiz3GnTka1GXZ7PASUj+xSAZCWvL33JiUCu2RM6z EgIZYojCPjPs2VjYYxi+qPTs6s9Pzw0TotMKp597H5oqxSAV+ztmda5Y20AqutUEuO8B QhFqP+DyFkbIw4smy8EuzBndCdfUDqcvZtM7Db+lluybFowbesb7hdAHRTmi9mu8WtXU Czqg== 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:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=CT7v4DQ09v3qvwbCogv4FsUWAqnPJyTXp0JhFTTMed4=; b=inPpSK9s2g7QE1L4YSGCxOKIhLRwB54eLaRyYCCk9jUgDptuirmKSO2m1EiFyTIip/ DY9xtPDcrXJDUziWUypahKNX6AXkhjiC55TRAsOAUjfqLr/+xB4Ayk324T2Kq4IxNhAB TKOOPTuXNpB5MDTj72jIcGh9ZZjU50kj3zF9iqTS6z4QC7zQSfIIyHhGYYQt08riIwAu MkD9F/obd07QQxH4npXO8xazQtIKLSf7LMVfNiFRp8AH/lPnmdTjDAbi89NjdhasbqcG 2DudcudUMwG9ZeczQXt8awJ9ePsToBwJfMdxOfRNZSzwPKxogtzrIhRQA+C7TyAUX+m2 iZTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IqmxIbmk; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v66-v6si42731446pgv.289.2018.11.06.07.22.04; Tue, 06 Nov 2018 07:22:29 -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=@chromium.org header.s=google header.b=IqmxIbmk; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730605AbeKGApG (ORCPT + 99 others); Tue, 6 Nov 2018 19:45:06 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:35074 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729574AbeKGApG (ORCPT ); Tue, 6 Nov 2018 19:45:06 -0500 Received: by mail-ot1-f68.google.com with SMTP id 81so11750712otj.2 for ; Tue, 06 Nov 2018 07:19:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=CT7v4DQ09v3qvwbCogv4FsUWAqnPJyTXp0JhFTTMed4=; b=IqmxIbmkn9dUfkcnvsYUEFL4EldPsXQ5y4nzzMeUYmy5KJTVFBx8OktDujcvringmR zX7Kc+jzfXKkLN3tHu5OorqFJvU+gWKiSuc0gZvqFI70IG4VNmKbYOUPUr6P1Pdvaznv EzoqpE0LeRTCMq1Jn0pjqTVjVNEqp6wk5Jd9o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=CT7v4DQ09v3qvwbCogv4FsUWAqnPJyTXp0JhFTTMed4=; b=MPJnrAgwBpClGAS4JAnoGYJTgKTsbwJB+74Ir0Mqcm/gscwlOZBjIb9Zd0uyzU8DOL rVaVOMitpGLE2ld6rBJKIxzil1vXdZpzjQuH65kg7XkFcaNZbHBAXpnQySDfpXeX5Xt7 Aliy1Q4x9aiSUZS50aYCJZtbZdz8nH6/1ly2R8AdB4TjMOjnViNmj5G2x+EONSz2lGZs 5Svg5XNxwCNBO/WU6TasUeWrGdoE0lIYJoxmNWkauVn0YM+cytqXkQufNVW7PFJcnnFJ iPX7rhK1BOo4maSFvXgDzbJT86xExdaH+JI+N0uj2N6v2D6HXAWIgRFVgy1XhC0frcSy Jf3A== X-Gm-Message-State: AGRZ1gJBrLkxra+kbUlZiT8DRhAxB0esVr+ty8b2I9JSL5egnGj13o7M IuH4qY6t8RDXLvjHc1kX/pCZPoLCB4cKNleBswiCRF4= X-Received: by 2002:a9d:738a:: with SMTP id j10mr16742980otk.188.1541517563761; Tue, 06 Nov 2018 07:19:23 -0800 (PST) MIME-Version: 1.0 References: <20181106093100.71829-1-vovoy@chromium.org> <20181106105406.GO21967@phenom.ffwll.local> In-Reply-To: <20181106105406.GO21967@phenom.ffwll.local> From: Kuo-Hsin Yang Date: Tue, 6 Nov 2018 23:19:12 +0800 Message-ID: Subject: Re: [PATCH v6] mm, drm/i915: mark pinned shmemfs pages as unevictable To: linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-mm@kvack.org, Chris Wilson , Joonas Lahtinen , Peter Zijlstra , Andrew Morton , Dave Hansen , Michal Hocko Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 6, 2018 at 6:54 PM Daniel Vetter wrote: > There was ages ago some planes to have our own i915fs, so that we could > overwrite the address_space hooks for page migration and eviction and tha= t > sort of thing, which would make all these pages evictable. Atm you have t= o > =C4=A5ope our shrinker drops them on the floor, which I think is fairly > confusing to core mm code (it's kinda like page eviction worked way back > before rmaps). > Thanks for the explanation. Your blog posts helped a lot to get me started on hacking drm/i915 driver. > Just an side really. > -Daniel > > -- > Daniel Vetter > Software Engineer, Intel Corporation > http://blog.ffwll.ch