From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0558BC433E0 for ; Tue, 9 Feb 2021 13:54:46 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8605764EE1 for ; Tue, 9 Feb 2021 13:54:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8605764EE1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=nyc5y8V9XNWZ37TKKoHCuUVQJUWmdcw2lnXd205J9oA=; b=LFjqlxwjrwieNNw1R1KRL8NWx 4XmhGQ2fa5uP2Ni2MYEfUt8Fu6FCD3r5rjj37062fhxhVhf4xkIot2+1wFhGXrFvwILjo5xgLinGc 4GSIWrfhh5ypoOowUZ76QFHed84lTNtQEMjRdaOCX/gpPcTuYpanqCdOxbC7bRtBfh9kEKsuuebVp sp/TJ9QUJ/UScEEhGdM0pAZF8Q9jOHbXw1nu3bGDxDJNzg8zrlKf2hZb/7s5NgB1E9M39og1CM+or 9DvyTZxrNu+pwes033nwYr2jm8IVagkSgSpxt/A38NtuXo6gDYoEE2AyXxgkmSgpuBOiJXjUfZ6hR ZYLL3pboA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l9TST-0004Iv-0I; Tue, 09 Feb 2021 13:53:37 +0000 Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l9TSR-0004IK-Cm for linux-arm-kernel@lists.infradead.org; Tue, 09 Feb 2021 13:53:36 +0000 Received: by mail-qk1-x72b.google.com with SMTP id r77so17883643qka.12 for ; Tue, 09 Feb 2021 05:53:34 -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=c7MIJzA4NNB9mb6npzUPKpXo1t+eqp1t0tnlkGinw7/QxVVwrzyFoxHH6lbSpC4d1A eg748hl7U7BG1iBw4ffSsBmlbu9NEUh4jzZTtJL4KNGaHRlLQrDMD0LJiVViZewF2uzp s3DJ3wo10IuMQF76cCDeK17L+SvdADVFS7K+pXmFfW5TTKNMhG+5ztECw14+XAj+0cLL WZt3Geylnx260HBdgn/pOzoLBSCUOjVrjxyNXEmaa3w3wbgY7gYmnkA6J/wgqE5spDO6 TNQqbWiPriJcIgA/+prfYCJ64lPTf7zn2YBE/tKT+MkjHzYb4rOQDUivt37yM2HkT7M7 7y8w== X-Gm-Message-State: AOAM53195CDnjr2ZSA9KJZeMr+C3u0kqJRhb5xeXj4s+VYEQwBq50QvK E791tI5KY9E8KSauonbObsdLjA== X-Google-Smtp-Source: ABdhPJx3et279cgNvk+uqR894IQLoOIQFoSZDGEjQvDKhVHg09126LSd7Y8VSphbQdCDRlOdHVR86w== 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)" 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-Disposition: inline In-Reply-To: <0868d209d7424942a46d1238674cf75d@hisilicon.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210209_085335_465827_C294A186 X-CRM114-Status: GOOD ( 10.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "jean-philippe@linaro.org" , "kevin.tian@intel.com" , "chensihang \(A\)" , David Hildenbrand , "linux-api@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "linux-mm@kvack.org" , "Wangzhou \(B\)" , Alexander Viro , "eric.auger@redhat.com" , "gregkh@linuxfoundation.org" , "zhangfei.gao@linaro.org" , Andrew Morton , "Liguozhu \(Kenneth\)" , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel