Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2040381ybi; Thu, 4 Jul 2019 04:12:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9AK/gyJ7AjUjNIz0ixQFOWI03s59/nAx9RXkj4CnFIyo2U+TsEcDD5tmaDsA+vnLDJERm X-Received: by 2002:a65:530c:: with SMTP id m12mr43361650pgq.363.1562238765825; Thu, 04 Jul 2019 04:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562238765; cv=none; d=google.com; s=arc-20160816; b=tjnKURv+BL8CxzUefK5f7WakK/BYncRwkDh0y4rRP2RW2oV6go4qJsfhdxFNXBmj27 XxrAxgYqE8rP7QwR9IgQ8Wyk0KH5hiJ8DqJKKSebXX6JTIO1vFPf1rNWMXc60BETtg+6 WLQYhyYRmOMbcHq36uf4KyQZ0RthQ+VJcFnIDoBUTY7ewN9SSe2L3OvwXRoHKLP66LT9 ix1xEOuz8ZstGT+ZurJXhDgUggDOUMhYmhO0WaEFMsPgjrMpSAv3DLcaSr59oNaxWUC7 3uvuHqtMvlMv4y2N4naqV17JAa4v3T/2Ef1ENU6BT+/mVaaK4mWUeMDfs3vm/UHnwSym jqZw== 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; bh=9/2A1OVeOXb0y+++JHWq6RSGzgvVQ096iKTeRqxoOho=; b=0Um8H81uA1yf4OHit25BH01EmVqRiBiMbLfI6McKOvU+l0/6ipwnLCasUf2etIfBFP 93JyO0hplrlct0dowozl3w08yTa64RfwZfAj/OggRu5bMjg9amZ/1FsSKFwfn81FeApi ROQhfKuXAFOwViQVzl+8sVuTTDEe8rkH9M4ZBwgoYAs3tkgafyaXGs30neUZu+u4FDej ogC7j49k7s+tz7OZ7yViVFk3qlOSLVpm+7BfCf629v+kjbihLGE5mTnO/zBvgA0PKZaU //uw2orBnxTXAVFi69T17yluX1TtIyJRu8P+6Kq1IMPqSSVwwR7qdT2lz0lqfYAnoQ+R BNFQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si5397137pgh.524.2019.07.04.04.12.30; Thu, 04 Jul 2019 04:12:45 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727602AbfGDLKq (ORCPT + 99 others); Thu, 4 Jul 2019 07:10:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42076 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727436AbfGDLKp (ORCPT ); Thu, 4 Jul 2019 07:10:45 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7D1B53082200; Thu, 4 Jul 2019 11:10:45 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-222.ams2.redhat.com [10.36.116.222]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3397917B97; Thu, 4 Jul 2019 11:10:44 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 2264311AB5; Thu, 4 Jul 2019 13:10:43 +0200 (CEST) Date: Thu, 4 Jul 2019 13:10:43 +0200 From: Gerd Hoffmann To: Chia-I Wu Cc: ML dri-devel , Gurchetan Singh , David Airlie , Daniel Vetter , "open list:VIRTIO GPU DRIVER" , open list Subject: Re: [PATCH v6 06/18] drm/virtio: remove ttm calls from in virtio_gpu_object_{reserve,unreserve} Message-ID: <20190704111043.5ubc2yjrjphj2iec@sirius.home.kraxel.org> References: <20190702141903.1131-1-kraxel@redhat.com> <20190702141903.1131-7-kraxel@redhat.com> 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.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Thu, 04 Jul 2019 11:10:45 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > > - r = ttm_bo_reserve(&bo->tbo, true, false, NULL); > > + r = reservation_object_lock_interruptible(bo->gem_base.resv, NULL); > Can you elaborate a bit about how TTM keeps the BOs alive in, for > example, virtio_gpu_transfer_from_host_ioctl? In that function, only > three TTM functions are called: ttm_bo_reserve, ttm_bo_validate, and > ttm_bo_unreserve. I am curious how they keep the BO alive. It can't go away between reserve and unreserve, and I think it also can't be evicted then. Havn't checked how ttm implements that. cheers, Gerd