Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3986489pxk; Tue, 22 Sep 2020 07:42:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0l+FfxalUeJ8RWOGtV/nR2aV14qGNX81BRIt8/8Dn/1dhbkitUisvchaKqGSJUyaGRn4M X-Received: by 2002:a05:6402:b9a:: with SMTP id cf26mr4083691edb.375.1600785730411; Tue, 22 Sep 2020 07:42:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600785730; cv=none; d=google.com; s=arc-20160816; b=dN/GYGBj6CN8mzdbx/uAz3h6R4K4M25NwEyL3GN4wpXxp/32WO09KjGxm4MDxJZHug +1trOqYfAa8Q5Xb0x3tEujauQP3XecAETQVvCpmPZAC5shPeScQaFYwMfcrS9vg8H1xP ecp3x/M4HHVaoKSHm77wUdWNdqfOdVPInShJMqZgBRgnTY6oTWETbdDkjuC96Cx/tnrT 6ufSYomBx4y5xWknb8iHOzdqQ33akrbqdAiKbRxLNdZU02Jd5qh1t9Y2UfojGjKnlGFI cdEHAGdF12m0+wdo2vwpE9myhryjLIOSabqGV1tC823CWbLrp0+1L+54Kp/FemBSed4E Zrxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=mH6FgcsW0dM3l6QwbZ5OC8Bz90Z9I0cWV1exadVtlVI=; b=OZ4vEKPL7+KuialBVvRTexyATLuEKX4vLSBVgeg0g+KxOOwtzdVRcUGjAOjfIe2wH7 xgSsX1tPxXNgPklD++AKlxlgFfTRyDUmGltOJ2tpQRRinJLKq/ayppw9GmiARIep6Bi2 RMWapC4sM0rge5m/Dh1QDQtXU/WVzNSMH/1MA4971qfN83iCYhkjL/7DB4NDONMMhACl hW/JmKWM6pBPuisx1SHNnMUsY/3y+LRd/tomfOty9GvDP2VAp3bE2r8GYWQZs1xzLegW jl1N3YqMp+l4XNy1LrhC/YKpVyYrlVUEC/nil44wG1GN27LyKCi0UBVA8ZjYLeJ4anDg izKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ap10si11178601ejc.106.2020.09.22.07.41.46; Tue, 22 Sep 2020 07:42:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726632AbgIVOjL (ORCPT + 99 others); Tue, 22 Sep 2020 10:39:11 -0400 Received: from verein.lst.de ([213.95.11.211]:44925 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726507AbgIVOjK (ORCPT ); Tue, 22 Sep 2020 10:39:10 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id CD86767373; Tue, 22 Sep 2020 16:39:06 +0200 (CEST) Date: Tue, 22 Sep 2020 16:39:06 +0200 From: Christoph Hellwig To: Matthew Wilcox Cc: Christoph Hellwig , Andrew Morton , Peter Zijlstra , Boris Ostrovsky , Juergen Gross , Stefano Stabellini , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Minchan Kim , Nitin Gupta , x86@kernel.org, xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-mm@kvack.org Subject: Re: [PATCH 3/6] drm/i915: use vmap in shmem_pin_map Message-ID: <20200922143906.GB26664@lst.de> References: <20200918163724.2511-1-hch@lst.de> <20200918163724.2511-4-hch@lst.de> <20200921191157.GX32101@casper.infradead.org> <20200922062249.GA30831@lst.de> <20200922112144.GB32101@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200922112144.GB32101@casper.infradead.org> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 22, 2020 at 12:21:44PM +0100, Matthew Wilcox wrote: > Actually, vfree() will work today; I cc'd you on a documentation update > to make it clear that this is permitted. vfree calls __free_pages, the i915 and a lot of other code calls put_page. They are mostly the same, but not quite and everytime I look into that mess I'm more confused than before. Can someone in the know write sensible documentation on when to use __free_page(s) vs put_page?