Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp205420imu; Sun, 4 Nov 2018 22:39:18 -0800 (PST) X-Google-Smtp-Source: AJdET5fl/+EKlvjwmjCZjzQ8d4RYOrmwz5EkHb4ZHyYsyfJPnHFaHU9NjHrl3Egmr5osRp12wRlS X-Received: by 2002:a17:902:124:: with SMTP id 33-v6mr11448672plb.287.1541399958301; Sun, 04 Nov 2018 22:39:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541399958; cv=none; d=google.com; s=arc-20160816; b=pXc/DV/e44WR82KpmW4dKJgzGsp0HHuPKDadwhxYJOQ+OjEG5sJHNqhEWGqR5qWbcj cesGBUD1N8jzHASvsycYjlO1+B3TzJvyH4jd+qZg20pVz0nEP5+MqSNaEnAjUyHsZCBw uQxaEL+lj47CWbsyhXbtMecRkWu9Jg50qIw89jEY5cra0RnmmwYhGftgzbOpNEzImUjB hxc3sS3FnE+tcUPRYuGOQZ1Usii5S61WTApaJQaH2+O0Ft6dUc8E/4/fnnBTnOskzcvs 5qIHQBg8QVgrSZFJprPPVxZKNmZZRyZdUPMqT8mU1kAxGnwOmUN2WDRUnoq9w9UGGJdI FI/Q== 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=P2+2Fs6hgNLma+vgIXcSMFYGhj0X0V3E5ocRerrK7Qo=; b=UjH0JRzxnfzM06t5k1niKKQFV1mzWsxqU3R1D/bd0zpZIZqAgRHSnLW/B3xzQc+Gjn NImyDcuvZehcUqmtjMliAybgVywtBrADeoYKQu34ODpWs4kHN3cWxbahcDSi9ZqyE2I5 twCKyWImvYt2TTUeC+RHmrbY1OaOxFtoxydt6lHAg/aoMx+d+iui244pWatN+bRp7sL3 ePxCyMiI/4MzFblAF0VEGgu/FA7QHcbUcjda4GzeMGp9WD6m0pI726DzmqnwkqiyR3SW wVZEb/51asAWBRM7xMe7Vpl1KSy4JZaI+vzQBfcOWBZ1sCZIf9GB2vRlWVUI41cgwqKv Iegg== 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 g12-v6si21629755pla.351.2018.11.04.22.39.03; Sun, 04 Nov 2018 22:39:18 -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; 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 S1729534AbeKEP40 (ORCPT + 99 others); Mon, 5 Nov 2018 10:56:26 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45314 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729182AbeKEP40 (ORCPT ); Mon, 5 Nov 2018 10:56:26 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4485B308AA12; Mon, 5 Nov 2018 06:38:20 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-158.ams2.redhat.com [10.36.116.158]) by smtp.corp.redhat.com (Postfix) with ESMTP id E421E17AEC; Mon, 5 Nov 2018 06:38:19 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id DBF04945; Mon, 5 Nov 2018 07:38:18 +0100 (CET) Date: Mon, 5 Nov 2018 07:38:18 +0100 From: Gerd Hoffmann To: Robert Foss Cc: Emil Velikov , David Airlie , "Linux-Kernel@Vger. Kernel. Org" , ML dri-devel , "open list:VIRTIO GPU DRIVER" , Gustavo Padovan , Emil Velikov Subject: Re: [PATCH 1/5] drm/virtio: add virtio_gpu_alloc_fence() Message-ID: <20181105063818.b2yvncgzlnat5qn2@sirius.home.kraxel.org> References: <20181025183739.9375-1-robert.foss@collabora.com> <20181025183739.9375-2-robert.foss@collabora.com> <1c92b6dc-4152-c81b-5180-2f48799b959f@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1c92b6dc-4152-c81b-5180-2f48799b959f@collabora.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Mon, 05 Nov 2018 06:38:20 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > On Thu, 25 Oct 2018 at 19:38, Robert Foss wrote: > > > > > > From: Gustavo Padovan > > > > > > Refactor fence creation to remove the potential allocation failure from > > > the cmd_submit and atomic_commit paths. Now the fence should be allocated > > > first and just after we should proceed with the rest of the execution. > > > > > > > Commit does a bit more that what the above says: > > - dummy, factor out fence creation/destruction > > - use per virtio_gpu_framebuffer fence > > > > Personally I'd keep the two separate patches and elaborate on the latter. > > Obviously in that case, one will need to add 3 lines worth of > > virtio_gpu_fence_alloc() in virtio_gpu_cursor_plane_update which will be nuked > > with the next patch. > > > > Not a big deal, but it's up-to the maintainer to make the final call if it's > > worth splitting or not. > > Agreed, I'll hold off with this change until then. No need to split this, but a bit more verbose commit message would be good. cheers, Gerd