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=-2.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_NEOMUTT autolearn=ham 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 B802BECE562 for ; Wed, 19 Sep 2018 11:38:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 79DC72150B for ; Wed, 19 Sep 2018 11:38:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 79DC72150B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731571AbeISRPk (ORCPT ); Wed, 19 Sep 2018 13:15:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55238 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727820AbeISRPk (ORCPT ); Wed, 19 Sep 2018 13:15:40 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 68F9E32B66D; Wed, 19 Sep 2018 11:38:09 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-56.phx2.redhat.com [10.3.116.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0B2565FC24; Wed, 19 Sep 2018 11:38:09 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id D78F49B31F; Wed, 19 Sep 2018 13:38:07 +0200 (CEST) Date: Wed, 19 Sep 2018 13:38:07 +0200 From: Gerd Hoffmann To: Jiandi An Cc: Dave Airlie , dri-devel , "virtio-dev@lists.oasis-open.org" , Dave Airlie , "open list:VIRTIO CORE, NET..." , LKML , "Lendacky, Thomas" , "Singh, Brijesh" Subject: Re: [virtio-dev] [PATCH 2/2] drm/virtio: add iommu support. Message-ID: <20180919113807.6mwqxkdg6f55h6fg@sirius.home.kraxel.org> References: <20180829122026.27012-1-kraxel@redhat.com> <20180829122026.27012-3-kraxel@redhat.com> <9bf20fa1-3752-edd1-588c-e38cd166c3af@amd.com> <20180912072541.nagfrr2dgy34szcx@sirius.home.kraxel.org> <5684a3fc-3605-7bb0-b0be-418c2ae702b5@amd.com> <20180919044600.utvnu5l6fvvi2qi4@sirius.home.kraxel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 19 Sep 2018 11:38:09 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > >> Once display manger is kicked off for example (sudo systemctl start lightdm.service) and > >> resource id 3 gets created from user space down, it still gives a blank black screen. > > > > Hmm. I'd suspect there is simply a code path missing. Can you send the > > patch you have? > > > > cheers, > > Gerd > > > > I sent the patch. For now it does dma_sync_sg on the pages in > TRANSFER_TO_HOST_2D/3D when use_dma_api is true. > > https://lore.kernel.org/lkml/20180919070931.91168-1-jiandi.an@amd.com/ Hmm, the way it is hooked up it should not miss any resource update. So not sure why it isn't working. Pushed the patch nevertheless as it is clearly a step into the right direction. cheers, Gerd