Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp392834ima; Fri, 1 Feb 2019 05:05:57 -0800 (PST) X-Google-Smtp-Source: ALg8bN5Le0nWhXJvlzsOTeKwj4s5ns+X0AoJG9yoguLf6/uWVX73uC8xJKbKhqW4SxN1TNgr92j8 X-Received: by 2002:a17:902:654a:: with SMTP id d10mr38555387pln.324.1549026357046; Fri, 01 Feb 2019 05:05:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549026357; cv=none; d=google.com; s=arc-20160816; b=qD5sVNKA1dqY9C/zPqOI8pvuWqTcxtCWLOBanelCEErEkaJ4W2mMzL5q0OUqFgkpQK sKb2FymnH1SBtBlXb1Z3b8mu579HTXhNMUt6NAMtnMEAz1eQY35Uh+bUGnmZwO5hfjHI ClO2NvEZmiCr306ZRoBfpxCmMDL9oyumMj3uIJYGh6WdcgIOXizWFsYx0l/vKg8gLmVX f4SfmygF6RZ82juVQCe2gXVZ0eh1sFqDHcnFVQjMjIUUxssUqnH5XN0pURDeigvdQTSr LjRE2sYSXgW0+LXEyeGXKUwuF0DAYa5nkiNe/MiMOX3MbUi6JJssYVbuiLJhf5w2nrHo 5sBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FA5f7YY6n6QegB8E6sgW5d/K980UEuX80JV8baCFznE=; b=sh7aP8kQbjVCUlKhq5vODtuxXbu8YzQIjQsN1lwuWje6PYclUAQj5KHlhwKhyu1v+I OmtqzsCvLtyz8sZ6AXwLRYu1eAxztWAR3VQySD2g5/qQuNP21KU5g67IZShiWwg2SyoA fmkTUzAdY2i35cfaaCvtcvbnFt47qZQgl3hZ/BQzzk4u0dkg9ek8zJuJ4PgjJEzK7WWP hIUDl4+POPzV8sV7GdH5yvDXlddecolFOZnAEV32NSXI+BeTQzKSob4c7GI+exTl97iZ 6okXgVvJfvWA5+llwZgyNO4+CfOfWQVyN1l/UQP1rA/ZUD+E4aeOMd6/D2EAuk/z98VA CJXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GQmlKMug; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si7178859pfh.147.2019.02.01.05.05.31; Fri, 01 Feb 2019 05:05:57 -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=@gmail.com header.s=20161025 header.b=GQmlKMug; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729932AbfBAMiS (ORCPT + 99 others); Fri, 1 Feb 2019 07:38:18 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:43077 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726270AbfBAMiS (ORCPT ); Fri, 1 Feb 2019 07:38:18 -0500 Received: by mail-lj1-f194.google.com with SMTP id q2-v6so5633836lji.10; Fri, 01 Feb 2019 04:38:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FA5f7YY6n6QegB8E6sgW5d/K980UEuX80JV8baCFznE=; b=GQmlKMugZ3bwsuMyb/P7aK4QpswXwaapZ4DsT1fvEZI+8XD1CmbdiMhQQwRT/xvM41 FyfIcL0N8bcp4jvn7Rwk4vJw0vHXWdS7oie1el+Hqn231IBHDAw6eD5+PSU6PWH0Kbrr wm+pUxdv5ycyzateCY5dPVP85pDjE5NPJhuXBBI7CzvL35940bts/64hf3iffhDjUWvh aAfcvwWtLCX3818splV9Mc9NtipwQGWQLvOX+l8X2NO6NQvDm+wMZsoF4pTdPcv7ZRCS kdZcReWw7MN1tXv1r24u+YCF2/21n4WrFhEUHRDayakh1YVkONA2gIIQdAHiNaJw54K/ eeLA== 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:cc; bh=FA5f7YY6n6QegB8E6sgW5d/K980UEuX80JV8baCFznE=; b=CU27SZv9uulMGNZEhfX7T1iYgsnrj2e/L4hKysbNZFXG90Sh22HoWV43DFPmpPxITM 4XfMJ9zIiy3LY+gEzBZWHhi53shQ3njO7a0oGbK5agiKoqFGc2YJGCi0bf48t8WxNL0S DDJijDgppN4DEguJ8EIWBEB+ZWlGZQLVcibOgfsOBKgvbdanakXMkKIzKlWz4mGdioy4 +OmPkmYWcRIB+nUTb2rDJALUEZmT1V0wAiUBUn8qFt4tyaLyX1QlKKwPreTqPlCRR6r0 iuAMgoXqMHOzfR5WW7HAS+jlfaqO1AC8ul+4uYqFCPxqyGp8MkRPibQEkg+hSwAP/2M6 JVCA== X-Gm-Message-State: AJcUukc98Gdxq6L1ZxzMLtdlu//xZ7WYwZ4Nh+DvkvKW7hovQXh7dA0N Ji3izTwgcL7hAoOq4t0nv8pUaQfEUKxmmp00e9U= X-Received: by 2002:a2e:9849:: with SMTP id e9-v6mr31185303ljj.9.1549024695704; Fri, 01 Feb 2019 04:38:15 -0800 (PST) MIME-Version: 1.0 References: <20190131030812.GA2174@jordon-HP-15-Notebook-PC> <1701923.z6LKAITQJA@phil> <1572595.mVW1PIlZyR@phil> In-Reply-To: <1572595.mVW1PIlZyR@phil> From: Souptick Joarder Date: Fri, 1 Feb 2019 18:08:04 +0530 Message-ID: Subject: Re: [PATCHv2 1/9] mm: Introduce new vm_insert_range and vm_insert_range_buggy API To: Heiko Stuebner Cc: hjc@rock-chips.com, Andrew Morton , Matthew Wilcox , Michal Hocko , "Kirill A. Shutemov" , vbabka@suse.cz, Rik van Riel , Stephen Rothwell , rppt@linux.vnet.ibm.com, Peter Zijlstra , Russell King - ARM Linux , robin.murphy@arm.com, airlied@linux.ie, oleksandr_andrushchenko@epam.com, joro@8bytes.org, pawel@osciak.com, Kyungmin Park , mchehab@kernel.org, Boris Ostrovsky , Juergen Gross , linux-kernel@vger.kernel.org, Linux-MM , linux-arm-kernel@lists.infradead.org, linux1394-devel@lists.sourceforge.net, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, xen-devel@lists.xen.org, iommu@lists.linux-foundation.org, linux-media@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 31, 2019 at 6:04 PM Heiko Stuebner wrote: > > Am Donnerstag, 31. Januar 2019, 13:31:52 CET schrieb Souptick Joarder: > > On Thu, Jan 31, 2019 at 5:37 PM Heiko Stuebner wrote: > > > > > > Am Donnerstag, 31. Januar 2019, 04:08:12 CET schrieb Souptick Joarder: > > > > Previouly drivers have their own way of mapping range of > > > > kernel pages/memory into user vma and this was done by > > > > invoking vm_insert_page() within a loop. > > > > > > > > As this pattern is common across different drivers, it can > > > > be generalized by creating new functions and use it across > > > > the drivers. > > > > > > > > vm_insert_range() is the API which could be used to mapped > > > > kernel memory/pages in drivers which has considered vm_pgoff > > > > > > > > vm_insert_range_buggy() is the API which could be used to map > > > > range of kernel memory/pages in drivers which has not considered > > > > vm_pgoff. vm_pgoff is passed default as 0 for those drivers. > > > > > > > > We _could_ then at a later "fix" these drivers which are using > > > > vm_insert_range_buggy() to behave according to the normal vm_pgoff > > > > offsetting simply by removing the _buggy suffix on the function > > > > name and if that causes regressions, it gives us an easy way to revert. > > > > > > > > Signed-off-by: Souptick Joarder > > > > Suggested-by: Russell King > > > > Suggested-by: Matthew Wilcox > > > > > > hmm, I'm missing a changelog here between v1 and v2. > > > Nevertheless I managed to test v1 on Rockchip hardware > > > and display is still working, including talking to Lima via prime. > > > > > > So if there aren't any big changes for v2, on Rockchip > > > Tested-by: Heiko Stuebner > > > > Change log is available in [0/9]. > > Patch [1/9] & [4/9] have no changes between v1 -> v2. > > I never seem to get your cover-letters, so didn't see that, sorry. I added you in sender list for all cover-letters but it didn't reach your inbox :-) Thanks for reviewing and validating the patch. > > But great that there weren't changes then :-) > > Heiko > >