Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp500712pxb; Tue, 9 Feb 2021 05:57:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCBHw/uSJZ9i35uTlgbQg6bsL6qw6yg5mSyGGD+tjNOgnfJiX60945tnRnemB7E1BnHoj8 X-Received: by 2002:a50:e80d:: with SMTP id e13mr22554954edn.251.1612879067710; Tue, 09 Feb 2021 05:57:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612879067; cv=none; d=google.com; s=arc-20160816; b=ZxGM1rBO3vlNIpjrdq3vg0t3tJZ8S50E34zfeON2mwDMxQwB74QLpUgTjnxAIAAOh7 ojWDgja+h0nBCs1H+8/VQ5kqa0m4KN9F3AbaiebWZUFiCqMMrBydKU8ZkJ9VQlbCdp+5 fz+cXkJADO0In6Dtr5hwzSIhZY4bcfxw8PI8iGHLNLzGiMYfCDkKqyJQoTKbqIZLS/gR CoyFr1d2vY+EzSFWiFLSRwWlI6RqdwsdkHJx48TADpWdsB1qazoWa8W7NHZ0tKhVTiym YKKsKsTFx1He8xRDOEaq9xta8o8wVGlIkuexFXz4Zui6/n1TslyTklJRxztCdjXeN0m1 GCvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=T8f8DDfwXSd9VRLmEP8P3umzAghI6Kqw6/qy/jeS5Qo=; b=XL7zcNiErw45cJa9xBR3GkspmUJVUltRjtfQjS9So/q9Td0i95HGK4OjrWq+hIEzEI PVltWtXiBttdugoBiqQrp/EYyFC7pCDQaA/hWHZzYP20x7d/B57Hmk8RA3eGD8SqSiry nJY/5OnGIIiAq482F5p1RNoU5STFEt6OyLuZtiROH+rffpwVCGqJ+EzamNaK2U16k4Lx R/kDu5moHZVvLRFkoQi+WC8aguS3Z+UeJ3GQImidVG8mq2GYTwKOY5uQSjfeIjSnPS6V 3i4H64N+trHzZtaEmEq5ahpQsyEG6Yef5miICjAVWJXE1ZdPLm69w65yw+KluEiGUR/Q irVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=gh04iuWW; 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 re9si7479101ejb.135.2021.02.09.05.57.23; Tue, 09 Feb 2021 05:57:47 -0800 (PST) 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; dkim=pass header.i=@ziepe.ca header.s=google header.b=gh04iuWW; 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 S232091AbhBINzG (ORCPT + 99 others); Tue, 9 Feb 2021 08:55:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232049AbhBINyc (ORCPT ); Tue, 9 Feb 2021 08:54:32 -0500 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6788CC061793 for ; Tue, 9 Feb 2021 05:53:33 -0800 (PST) Received: by mail-qk1-x72a.google.com with SMTP id m144so2136517qke.10 for ; Tue, 09 Feb 2021 05:53:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=T8f8DDfwXSd9VRLmEP8P3umzAghI6Kqw6/qy/jeS5Qo=; b=gh04iuWWyfXXLlaV1RWSVt6ZQHHbXgL+7SqTdgohcZssGB7SFCglc2Da1zz58QYygR 9tVoLF0GKpMU5fAKOJUQeZbKmiZNBpriOh6NJ88Z8/8Oiy+02484H0DfDsD9oLpEdCJB iqbllGJHAulzwrFuz8zaWKtRoDWR91pkLeY3goABlW/bNnl7a7ucWFWFLWHoTWeFdCfi E81odK7NiX2mIG23/RyV6fotvVvwHXBJ3/Y6NQ+7HvCiAyAGmRSY3kUdW52i458n5RX4 NyglMvima/h3o9mIMHNuMfUszee7pZjUtNzI0o4O78Zz7zTTtKPysaZeIPpMxYD972RH nQ7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=T8f8DDfwXSd9VRLmEP8P3umzAghI6Kqw6/qy/jeS5Qo=; b=KvqjKDg2Xm2miGXJcaAgeLakw+VCay1ao94WgP1goI3uj29S9eZ5iPRvds2dlClF2T zivsBgM0y0CFTPYDUTtw+gkp5WsrRyqTaI2rFRqPc+mrbmg4Ul0NeWe625JEKgxbPLSe 4H+rhi2mv63K5onjS5t97HegFwsVQ3YWb8IlwuuT6FUXXMjSgTz0zWXe7dtzQ4R82tyu emDWsvndrM9d/7jteJdZ63kfkPTDFbLEEHCuB8yrrKn4nBvXa3hPz9pRKWguwkLLIumL qWgqX0KNKImTDOIwIlqhbCA9bXgfLcnRDCUx/3TTqLPlrqvG7gpvzGkceH/FDjpvrYO3 9cIg== X-Gm-Message-State: AOAM531LgEZtzREIHKg+ykNnRs5OfwhUjLZiI70FRtCO7loZ53YZxcg4 Ay0GAyw3qedbwnaufoVtOWx7AA== X-Received: by 2002:ae9:e80e:: with SMTP id a14mr11633708qkg.103.1612878812715; Tue, 09 Feb 2021 05:53:32 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-162-115-133.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.115.133]) by smtp.gmail.com with ESMTPSA id d16sm17820271qka.44.2021.02.09.05.53.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Feb 2021 05:53:32 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1l9TSN-005RZu-ON; Tue, 09 Feb 2021 09:53:31 -0400 Date: Tue, 9 Feb 2021 09:53:31 -0400 From: Jason Gunthorpe To: "Song Bao Hua (Barry Song)" Cc: David Hildenbrand , "Wangzhou (B)" , "linux-kernel@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "linux-mm@kvack.org" , "linux-arm-kernel@lists.infradead.org" , "linux-api@vger.kernel.org" , Andrew Morton , Alexander Viro , "gregkh@linuxfoundation.org" , "kevin.tian@intel.com" , "jean-philippe@linaro.org" , "eric.auger@redhat.com" , "Liguozhu (Kenneth)" , "zhangfei.gao@linaro.org" , "chensihang (A)" Subject: Re: [RFC PATCH v3 1/2] mempinfd: Add new syscall to provide memory pin Message-ID: <20210209135331.GF4718@ziepe.ca> References: <1612685884-19514-1-git-send-email-wangzhou1@hisilicon.com> <1612685884-19514-2-git-send-email-wangzhou1@hisilicon.com> <20210208183348.GV4718@ziepe.ca> <0dca000a6cd34d8183062466ba7d6eaf@hisilicon.com> <20210208213023.GZ4718@ziepe.ca> <0868d209d7424942a46d1238674cf75d@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0868d209d7424942a46d1238674cf75d@hisilicon.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 09, 2021 at 03:01:42AM +0000, Song Bao Hua (Barry Song) wrote: > On the other hand, wouldn't it be the benefit of hardware accelerators > to have a lower and more stable latency zip/encryption than CPU? No, I don't think so. If this is an important problem then it should apply equally to CPU and IO jitter. Honestly I find the idea that occasional migration jitters CPU and DMA to not be very compelling. Such specialized applications should allocate special pages to avoid this, not adding an API to be able to lock down any page Jason