Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4008461imj; Tue, 19 Feb 2019 13:31:59 -0800 (PST) X-Google-Smtp-Source: AHgI3IY8XevvpAnQa3lEWnHqL96WSO9uzHba4npMLYAwMLHnDbneY5/NZ/ZP7DOKq7JSjkv/SZY3 X-Received: by 2002:a62:e910:: with SMTP id j16mr17863447pfh.44.1550611919343; Tue, 19 Feb 2019 13:31:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550611919; cv=none; d=google.com; s=arc-20160816; b=ZerLc8HxJWBqeSpV3xcxbL4hXo4SS/Ch26R9G5ifYuFl7e9udOECnau48vAHHxaVy4 dt3k4t5qMlU+dTHoMF5wgxUL6Q0n1iorVOFQQNEe2LeoPo3/XegD5kcXLWxcPinTJcNi k0Um/D686ZX5TSfz4OWByG5tjOTS0CHuF5bj0/F84kPBR3aAlkbQiU40HO5RTYK4vkg2 iwA0qXL5nB2Z8pUKYuRaLJT4/HMpGIK+LjD5WSK/v0QcNhZrmY/IPcfw/QF4MnRrpU1j pqdNTp6GimW7j7kdAFttQAAaZqrrW31hpD0eVgrOUjxf8kFEJvosbGD0MS3hZ+ez8wvC cXNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=fo6JVnvUDOer6RG7RmKUqWZEBs/Ae/uZfSRiwK8Zn2w=; b=oHZ+JzbHXog2G5Rf7aO86Zdaop/APQemhHg8vr4h/MsbKB5UJT+NaOJdLlg/+LxFFF ayYVpXGAWYS+zBcZdl3hcgCix8D9Ecx8FDQP9bXvvu1pTlpbNPSYI2tbYMdMPVdNbPUz oLvABpxGzzlWvg0IZsli7YFw3oiwp7V7czP2NJRN7ADiAIcwTXufaoydmF4RRuhO5MVJ 6T/SmPP14+ap+HrOYGTV9u+bCdKdrxzFfmZwe9EbhTCtaC56nlFSRHYKDqXZQVduzxrC NXYj10349mk9zmWaWtG7mKpv/hepBaRNJ/yfhuXfgENB1rUE0sb4/7jx08++kndhQ8yI 6g0w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f20si17882117plr.419.2019.02.19.13.31.43; Tue, 19 Feb 2019 13:31:59 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729641AbfBSVar (ORCPT + 99 others); Tue, 19 Feb 2019 16:30:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55262 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727736AbfBSVar (ORCPT ); Tue, 19 Feb 2019 16:30:47 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 332EDC007325; Tue, 19 Feb 2019 21:30:46 +0000 (UTC) Received: from redhat.com (ovpn-122-134.rdu2.redhat.com [10.10.122.134]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C5FB060BE8; Tue, 19 Feb 2019 21:30:35 +0000 (UTC) Date: Tue, 19 Feb 2019 16:30:33 -0500 From: Jerome Glisse To: Dan Williams Cc: Linux MM , Andrew Morton , Linux Kernel Mailing List , Christian =?iso-8859-1?Q?K=F6nig?= , Joonas Lahtinen , Jani Nikula , Rodrigo Vivi , Jan Kara , Andrea Arcangeli , Peter Xu , Felix Kuehling , Jason Gunthorpe , Ross Zwisler , Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , Michal Hocko , Ralph Campbell , John Hubbard , KVM list , Maling list - DRI developers , linux-rdma , linux-fsdevel , Arnd Bergmann Subject: Re: [PATCH v5 0/9] mmu notifier provide context informations Message-ID: <20190219213032.GE3959@redhat.com> References: <20190219200430.11130-1-jglisse@redhat.com> <20190219203032.GC3959@redhat.com> <20190219205751.GD3959@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 19 Feb 2019 21:30:46 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 19, 2019 at 01:19:09PM -0800, Dan Williams wrote: > On Tue, Feb 19, 2019 at 12:58 PM Jerome Glisse wrote: > > > > On Tue, Feb 19, 2019 at 12:40:37PM -0800, Dan Williams wrote: > > > On Tue, Feb 19, 2019 at 12:30 PM Jerome Glisse wrote: > > > > > > > > On Tue, Feb 19, 2019 at 12:15:55PM -0800, Dan Williams wrote: > > > > > On Tue, Feb 19, 2019 at 12:04 PM wrote: > > > > > > > > > > > > From: J?r?me Glisse > > > > > > > > > > > > Since last version [4] i added the extra bits needed for the change_pte > > > > > > optimization (which is a KSM thing). Here i am not posting users of > > > > > > this, they will be posted to the appropriate sub-systems (KVM, GPU, > > > > > > RDMA, ...) once this serie get upstream. If you want to look at users > > > > > > of this see [5] [6]. If this gets in 5.1 then i will be submitting > > > > > > those users for 5.2 (including KVM if KVM folks feel comfortable with > > > > > > it). > > > > > > > > > > The users look small and straightforward. Why not await acks and > > > > > reviewed-by's for the users like a typical upstream submission and > > > > > merge them together? Is all of the functionality of this > > > > > infrastructure consumed by the proposed users? Last time I checked it > > > > > was only a subset. > > > > > > > > Yes pretty much all is use, the unuse case is SOFT_DIRTY and CLEAR > > > > vs UNMAP. Both of which i intend to use. The RDMA folks already ack > > > > the patches IIRC, so did radeon and amdgpu. I believe the i915 folks > > > > were ok with it too. I do not want to merge things through Andrew > > > > for all of this we discussed that in the past, merge mm bits through > > > > Andrew in one release and bits that use things in the next release. > > > > > > Ok, I was trying to find the links to the acks on the mailing list, > > > those references would address my concerns. I see no reason to rush > > > SOFT_DIRTY and CLEAR ahead of the upstream user. > > > > I intend to post user for those in next couple weeks for 5.2 HMM bits. > > So user for this (CLEAR/UNMAP/SOFTDIRTY) will definitly materialize in > > time for 5.2. > > > > ACKS AMD/RADEON https://lkml.org/lkml/2019/2/1/395 > > ACKS RDMA https://lkml.org/lkml/2018/12/6/1473 > > Nice, thanks! > > > For KVM Andrea Arcangeli seems to like the whole idea to restore the > > change_pte optimization but i have not got ACK from Radim or Paolo, > > however given the small performance improvement figure i get with it > > i do not see while they would not ACK. > > Sure, but no need to push ahead without that confirmation, right? At > least for the piece that KVM cares about, maybe that's already covered > in the infrastructure RDMA and RADEON are using? The change_pte() for KVM is just one bit flag on top of the rest. So i don't see much value in saving this last patch. I will be working with KVM folks to merge KVM bits in 5.2. If they do not want that then removing that extra flags is not much work. But if you prefer than Andrew can drop the last patch in the serie. Cheers, J?r?me