Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp212404imu; Thu, 20 Dec 2018 20:31:19 -0800 (PST) X-Google-Smtp-Source: ALg8bN6vm7r9sHfss7U8tWSUO5LWzmf+3VKROB3k0tRt5PA0kApn/C1uy3NMLZ9qAFDNVH8ACSC3 X-Received: by 2002:a17:902:9345:: with SMTP id g5mr1004262plp.148.1545366679668; Thu, 20 Dec 2018 20:31:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545366679; cv=none; d=google.com; s=arc-20160816; b=g9F8Wg8Pg/t9LkA4SDsKQ9oPSNHg+E/O2eqBdsoRfym6ulTGSim42FFxtG/kwhA2eb me/Yi/eIHZnHD4ZP497wA0fvtgaF/EYzSzQY/o8A6LZZp2uuTOSC3XBgd8BzSoAyolH1 Qcbaqj71D/53sF193coRcIvPOVI9/Sj0nHcXdGo3yXXefxKiUiE7/rbEW2Qp60kypq9t /VZWc9gC75FwUJ1JI/rnFudoZp9fIboVztpoXqgOr661GClF16YfhiWW5h1fPOKpeWEY K3/ijNr2QHAYvdcinUcvu6ElsVJ0gFqjjUYMDs0BVwudyESADK5qYlOPx9evVAk4Itde Vr+w== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zWmImtXqeGkHvkoyDwKHxzBwzs1ZAXYh07e9ywdlueU=; b=MV7/Xx103oBlMjK68K+8IUPD+kee7AvGxr/Ml4mTVAfpyHom/94HTikQ7iUu3NmB0W xQ8yOOuS/4Xrh/hi+mMenAWBGsbzFXIQ2JPEpLTwabNaxj3E3zBC1eXmdiU4IjC0wYn8 /9y2TAFcTXrxtSWZdlQ6jVsyIlzg8BKaRjKCmiTMtZfvc9hXttpJQ0pjEggQkIqpShpJ NY94HBhViYPQDxuQLUbRKiJ1aiGzQwumendDRyMqQvbx4zxGXlR9X0+jW8kV4OZ8/yZN d6vj00bASUlTIdcfE22ThDpWh5zYQK979tW4TnymTj+Y+euG3allpBMH6aJKOj58v0Ki 6/jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=iVTpVsWN; 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 i12si18819612pgq.466.2018.12.20.20.31.04; Thu, 20 Dec 2018 20:31:19 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=iVTpVsWN; 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 S2388960AbeLTSdQ (ORCPT + 99 others); Thu, 20 Dec 2018 13:33:16 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:49996 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730556AbeLTSdP (ORCPT ); Thu, 20 Dec 2018 13:33:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=zWmImtXqeGkHvkoyDwKHxzBwzs1ZAXYh07e9ywdlueU=; b=iVTpVsWNGKhInzhT4FZQZfSxM r8e8WfaFO9H2N5Qu+9zsmvgvsKCzPRuzJR19wWQmV8jUgzVyYTYb/b+VEklSZdUj/lhq+j8J4iDkd jzvG2vmovGtxgZMPq2ArT1O6o1HUipsbNJrPHcL1fTk9m3TLWWgx8f9TfdMMPf4Hnaij+PplHSX8Z HvZ/2EbOZrkPsAw11IuMbQ8zlOtrHF5bcnOLBv7SPzDLyeOOoqkm1WQWUhPcVgUldipKFNWMXCCBZ BV3A67K/16dhdiIfHvyXmZ2RCMymyoRoCgj8cHDLGM26EeuWyR9DeNzd1vX2G9L1A3HazlaQlYQ1H nBPnrWPRg==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1ga38C-0005OU-2z; Thu, 20 Dec 2018 18:33:12 +0000 Date: Thu, 20 Dec 2018 10:33:11 -0800 From: Christoph Hellwig To: Daniel Vetter Cc: Christoph Hellwig , Oleksandr Andrushchenko , Juergen Gross , Oleksandr Andrushchenko , Linux Kernel Mailing List , dri-devel , Daniel Vetter , xen-devel@lists.xenproject.org, boris.ostrovsky@oracle.com Subject: Re: [PATCH] drm/xen-front: Make shmem backed display buffer coherent Message-ID: <20181220183311.GA30801@infradead.org> References: <20181127103252.20994-1-andr2000@gmail.com> <17640791-5306-f7e4-8588-dd39c14e975b@tronnes.org> <20181220153646.GA22997@infradead.org> <20181220173950.GA19641@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 20, 2018 at 07:29:37PM +0100, Daniel Vetter wrote: > What we most definitely not want to end up with though is actually > streaming dma, because with that all the zero copy buffer sharing > tricks become pointless. There's pretty epic amounts of hacks to work > around this, I have no idea what's supposed to give here. Err, with streaming DMA buffer sharing is trivial. The coherent DMA allocator is what causes all kinds of horrible hacks that can't actually work on various platforms.