Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2073890ybi; Thu, 4 Jul 2019 04:48:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGPBlwRIxfn+qvbjsfHZ9BasatqM5qGG+9wzSxqWQHAZ6lnZeFbrbniV70nI8vC9qjV3pZ X-Received: by 2002:a63:6d8d:: with SMTP id i135mr20582532pgc.303.1562240930005; Thu, 04 Jul 2019 04:48:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562240929; cv=none; d=google.com; s=arc-20160816; b=tW9caPL/KIGnL97HRYtf9guEmRIHYxTfCM2eshZvRcNmizKUA/xufH0iRmq+9blLko g/oFspLFKDGV0HKU7ZbqWaf0+3+Vku2/SgTARuYSWu7nvqdZ2+kowsVSrz+LEf/mk0BK CYf3ck0T4FI6/zeLlhnfubys+5VfS6QSpwnwvqc7OJ3CuIPTaglhUIfOYM+Z3k3Z4E6k 0m/e+oqvjxTqU5DTqIKhSupJjzQRfv0OorCJce8PnrCufZ+jAboQ8G8j5dCWv8LLcp4/ VYLw4NBhzcG0XWpjc5kosm6OTr5pWqAg3EiYIoOA2lrff03/n6eaUZD/4zJ2ODM+/bZj Zrxw== 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=c2oXwlUp7Eoewx3gOA2OyW7Lj/0M5cwYN/CLNVyZOQM=; b=ZgjJe5qsnZacobBfdP+FKPxz+nH8PZRw/IO9GzNSZzkINHD8LxQwbqJvdMQplj+rI+ 0u7PL0LjLO8zZOBtTah7JHaxJiCA/5ywxhI2bYNbdCWmK5R1rRcoT4lBbQmtMHZBSWWF sOuCyrCsVhVH1agzKFVe00MTCnxiyrW2vMsehJtqpks/lu5ukQT1T40evSGr7FUmQ0Cr 3b8/oxRG6p+iFj9i+isYPxvZJlFmQJXJYgkp5Nk7/+0P070bW39i7nPZD7199p/vIinB 466mUD54S1zuX7lLzveXl6t3pzIwZK5WLy2AhKiMnwZfnxaVknBMAZZhmqNAI6G92tCW qnog== 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 p10si5066339plk.9.2019.07.04.04.48.35; Thu, 04 Jul 2019 04:48:49 -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 S1727627AbfGDLsE (ORCPT + 99 others); Thu, 4 Jul 2019 07:48:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56750 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727436AbfGDLsE (ORCPT ); Thu, 4 Jul 2019 07:48:04 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1DDA0C057F3C; Thu, 4 Jul 2019 11:47:58 +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 BE0381001925; Thu, 4 Jul 2019 11:47:57 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id E47B811AB8; Thu, 4 Jul 2019 13:47:56 +0200 (CEST) Date: Thu, 4 Jul 2019 13:47:56 +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 14/18] drm/virtio: rework virtio_gpu_transfer_from_host_ioctl fencing Message-ID: <20190704114756.eavkszsgsyymns3m@sirius.home.kraxel.org> References: <20190702141903.1131-1-kraxel@redhat.com> <20190702141903.1131-15-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.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Thu, 04 Jul 2019 11:48:04 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 03, 2019 at 01:05:12PM -0700, Chia-I Wu wrote: > On Tue, Jul 2, 2019 at 7:19 AM Gerd Hoffmann wrote: > > > > Switch to the virtio_gpu_array_* helper workflow. > (just repeating my question on patch 6) > > Does this fix the obj refcount issue? When was the issue introduced? obj refcount should be fine in both old and new code. old code: drm_gem_object_lookup drm_gem_object_put_unlocked new code: virtio_gpu_array_from_handles virtio_gpu_array_put_free (in virtio_gpu_dequeue_ctrl_func). Or did I miss something? cheers, Gerd