Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7072484imu; Thu, 31 Jan 2019 04:35:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN54eo6beViHLSfndJLaFI9pFKisRDP+AWoaxB4UMAMpiqIM8pkK9jRp6LawzV2hYEIYKa94 X-Received: by 2002:a62:9657:: with SMTP id c84mr35493093pfe.77.1548938142361; Thu, 31 Jan 2019 04:35:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548938142; cv=none; d=google.com; s=arc-20160816; b=Ty0w2oKDhd2eZ5zaxNaxq0OxThr+zjMwnoWE5kym9aCRgwVEO75+G15Gk7yDVDamps V8Pl4N9hjWikM4qsJ+9/L1rA8RGWQitwDoOKor0OGg0eVfug6QeYbaQYkIQ8pEklZ8ix LERlFURUQAQz4JypwZUOo3warPC6H6hF4nxoBI0dc1WGBr78MFcetRkZkPtZJVz7SsO/ wWoZsy+4I/d6wvoZhzNjg5assgTQV+Q6vbGPPoGhaKdats3NC5AGl6+vafNIjlwnyROT /9on5SKNdeb0J/M2GzTe9M4z8yCSQl4kPSIlmC0m1GJPtO0pvQaS2wV9IFfzela5qlOn 0LEw== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=TFdjjFspTO7k4Rr4U9dNbgOJ/P8JG66BvAdwr8rFGGc=; b=ys+oUspAunpzoVUJOQRqfZC29F2PV//ToQA7+eoHQxvKqeSUHo69BFei03kzK9IQAC zjZqk3nxlHJu3+D7e3ep63f/dt6B3L0XPvhpXV7splW57mPSwNp8NbjT4opbyV+FeDxu yy6nFTf/TXQpPdaUzCWtj++EHQ6kFlfZpJc5cG3PS/ez7cPhDKJ6whNRkTeZucOjwuyt kkGQqZlHiTosXqrx6kB3XjITLawOX8iwnAv68Ahq4ZzBsTYBA0D3OOiwgKymNi9XBKfg dPVVhbYqrocg0o/4sI9bFlJnsaEHlR7kVfBQTjwQZZidcavpajxpZosX2pOMnj4+3NAp JvAw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m15si4948678pfd.3.2019.01.31.04.35.26; Thu, 31 Jan 2019 04:35:42 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732954AbfAaMfA (ORCPT + 99 others); Thu, 31 Jan 2019 07:35:00 -0500 Received: from gloria.sntech.de ([185.11.138.130]:56394 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726153AbfAaMfA (ORCPT ); Thu, 31 Jan 2019 07:35:00 -0500 Received: from wf0848.dip.tu-dresden.de ([141.76.183.80] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gpBXj-000441-H7; Thu, 31 Jan 2019 13:34:07 +0100 From: Heiko Stuebner To: Souptick Joarder , hjc@rock-chips.com Cc: 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 Subject: Re: [PATCHv2 1/9] mm: Introduce new vm_insert_range and vm_insert_range_buggy API Date: Thu, 31 Jan 2019 13:34:10 +0100 Message-ID: <1572595.mVW1PIlZyR@phil> In-Reply-To: References: <20190131030812.GA2174@jordon-HP-15-Notebook-PC> <1701923.z6LKAITQJA@phil> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. But great that there weren't changes then :-) Heiko