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=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER,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 5DAF4C433E0 for ; Fri, 5 Feb 2021 15:43:42 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 E5065650EC for ; Fri, 5 Feb 2021 15:43:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E5065650EC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nvidia.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 30E506E0A5; Fri, 5 Feb 2021 15:43:41 +0000 (UTC) Received: from hqnvemgate25.nvidia.com (hqnvemgate25.nvidia.com [216.228.121.64]) by gabe.freedesktop.org (Postfix) with ESMTPS id B0F186E0A5 for ; Fri, 5 Feb 2021 15:43:40 +0000 (UTC) Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Fri, 05 Feb 2021 07:43:40 -0800 Received: from HKMAIL103.nvidia.com (10.18.16.12) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 5 Feb 2021 15:43:39 +0000 Received: from HKMAIL104.nvidia.com (10.18.16.13) by HKMAIL103.nvidia.com (10.18.16.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 5 Feb 2021 15:43:22 +0000 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.173) by HKMAIL104.nvidia.com (10.18.16.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 5 Feb 2021 15:43:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QLPc14JRGk9osdF8al+KQrI6xvqk184p+bySjZkgaUF/RkrYFWnI6qujcksa8p1ZKZmioqjt3tGEDjVJbPRyjCfoNslAR4LJGEkjvifneX+jrvfJu73Z8ZxnmtmSlPS5+PwEpLrfJ9ATfWWFKxfm2jVmPbMmTRCZj0OTMvymag3kRWCvCx4JtOy5ZQ6MC/PytQgN9dwTtcmvqxS74vzRHuenyrkcmreV5kdE+jw0v6habxFxu5G4ow/dWyAPvRFXEq2jt00yuimElcfhiV7UoTBhC2fYAwQbkpW74skBfR6Mhe/GF/roD7AxyWWhktrLXCBGyxzuNvSaNbGz2P+bWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o5nvQcFjkPrpkYsoHOqqaQBVuitGxCjp6YMX41Wo4c4=; b=SvFR2h7NJwBbVvDyDetCHgJqpICqhQutiejRlv5BxZ2wfQhQu9ERjBOgwqO5LJv6jd8h3fKVAO7omHpA+wcpvLYr80lhENS7QSmEBcohF6yeMiW55YDmA+lSWPPB0QoSklZIyuwPesx6QAx/WlV0PkJdGMS5o+oaPeukUQ+WkEyAe3OFLV0UqIVpiTNFAGaoxraGoqeTgTWl7KQBW0kCAs5BRZoTHhr+K4FN29YoYcZTE+t5eR3QVtqnlH8b3gaIPZs7IBnFfrL2a4sZrxULXRE1IHvwIxNYlxIJtYd80Afv4hZj6+8RzvMiJUbU5NivZfZrdDrUt8LXIlwuua3wOg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from DM6PR12MB3834.namprd12.prod.outlook.com (2603:10b6:5:14a::12) by DM6PR12MB2938.namprd12.prod.outlook.com (2603:10b6:5:18a::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.27; Fri, 5 Feb 2021 15:43:20 +0000 Received: from DM6PR12MB3834.namprd12.prod.outlook.com ([fe80::d6b:736:fa28:5e4]) by DM6PR12MB3834.namprd12.prod.outlook.com ([fe80::d6b:736:fa28:5e4%7]) with mapi id 15.20.3825.025; Fri, 5 Feb 2021 15:43:20 +0000 Date: Fri, 5 Feb 2021 11:43:19 -0400 From: Jason Gunthorpe To: Daniel Vetter Subject: Re: [PATCH v16 0/4] RDMA: Add dma-buf support Message-ID: <20210205154319.GT4247@nvidia.com> References: <1608067636-98073-1-git-send-email-jianxin.xiong@intel.com> <5e4ac17d-1654-9abc-9a14-bda223d62866@nvidia.com> <20210204182923.GL4247@nvidia.com> <8e731fce-95c1-4ace-d8bc-dc0df7432d22@nvidia.com> Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: MN2PR05CA0032.namprd05.prod.outlook.com (2603:10b6:208:c0::45) To DM6PR12MB3834.namprd12.prod.outlook.com (2603:10b6:5:14a::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from mlx.ziepe.ca (142.162.115.133) by MN2PR05CA0032.namprd05.prod.outlook.com (2603:10b6:208:c0::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.11 via Frontend Transport; Fri, 5 Feb 2021 15:43:20 +0000 Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1l83GR-003stn-60; Fri, 05 Feb 2021 11:43:19 -0400 X-Header: ProcessedBy-CMR-outbound DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1612539820; bh=o5nvQcFjkPrpkYsoHOqqaQBVuitGxCjp6YMX41Wo4c4=; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Date: From:To:CC:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:X-ClientProxiedBy:MIME-Version: X-MS-Exchange-MessageSentRepresentingType:X-Header; b=HTPX+FAfWdlJeqzvHloI7vH2Xllwt9hSqHi/4sWqWnSMyUdDklCHJ1VbLxOjJSDsr e/iLDK9lIcWzUasXO8bllcnVbalrPlSxFAMnBsVY5+0f6NBtOEsvFtNp7hnLBRTQO1 WF3aTB3QRG8TCfpcBaUCianxQU/MfDv6lQuCQHZvvtMNaY2McaRCN65RfaJKwHoD/M 7sIGCRmAMSZlLx8HD15QMZyu0dKGtOhCKVGLDNly4CAZSX5Z+cVcCCuSBMwaeQgRNa D/GsQ1tNnKE403JXSIKBWsBreOaut0QC8uBH3GAz/9OiShQL+ClhshKMWxJSc8Du6p NnYpJ9FcNH50w== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Leon Romanovsky , linux-rdma , John Hubbard , Maling list - DRI developers , Doug Ledford , Daniel Vetter , Christian Koenig , Jianxin Xiong Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Fri, Feb 05, 2021 at 04:39:47PM +0100, Daniel Vetter wrote: > > And again, for slightly older hardware, without pinning to VRAM there is > > no way to use this solution here for peer-to-peer. So I'm glad to see that > > so far you're not ruling out the pinning option. > > Since HMM and ZONE_DEVICE came up, I'm kinda tempted to make ZONE_DEVICE > ZONE_MOVEABLE (at least if you don't have a pinned vram contigent in your > cgroups) or something like that, so we could benefit from the work to make > sure pin_user_pages and all these never end up in there? ZONE_DEVICE should already not be returned from GUP. I've understood in the hmm casse the idea was a CPU touch of some ZONE_DEVICE pages would trigger a migration to CPU memory, GUP would want to follow the same logic, presumably it comes for free with the fault handler somehow Jason _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel