Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3483734ima; Tue, 23 Oct 2018 06:42:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV62ALykr60KyrSbNLYydvRoPjHKhqGnqiXGb5lcskf32sTIiqbyV1FAAoBtsi3Ku5vQrrz6B X-Received: by 2002:a63:4454:: with SMTP id t20-v6mr46038312pgk.102.1540302175983; Tue, 23 Oct 2018 06:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540302175; cv=none; d=google.com; s=arc-20160816; b=wSedT826lRt1Hcos33s7V9qdDliE9sN0ZjbRRPNFbkX8LrJny7ZMEUsTXsNl+8Kffx AuUdLloTYkfG0x4vn3WhoOU2XIsvqZ1mnrbQ6HbFrD3/+utwGkjaf0gtf+ZuGWFpoOLT xfUhRs7Mg+gEKp4H0EGKdOjuYPp8SRkDPP5kIxdH+p6004glUM96zouJ/J0qo3Bc5ds2 K7yIhzeMnjL5lj+s028AmzomaG87CmuvExUA1OHpEsxVF2pL7U5B8jnmbwqnF596zx6a CYBIf/v6o4sDGAtgXG3T+iY0nweTCISGn6qZ82Iuk9O8fe1Aj398wSb5XnFzJY7KHeIZ CFtQ== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=fP1++GP6Qvp0pjdsuFyG5LSW6guXoD+iihM0y8mWSZI=; b=tlgJWrIEad3UsnM0NGFECU/mtMATRq9cr7qlQv1IDWBRp0cUDRsXiLaXim5317UW5C TiFDZvOA0y9fb0JvoyQ+EMdFoFflpzSxzoWuZroyuJxkfr0GhrusEO+v5P+ku08EeA8i wplUfKUFC49crJhLhupXf/Vy2+oSJsSZoGdnU5BJ75tbFOJ4VMzZeYs0n01nDNc7smGG hYLt6krRAXiB7AqVr85cifARDrEvRex6Ij63ycx6V4JKFrmKJoeEkbpE6FgET47GYau8 UbFg5nbyHRk8YnNr1oJJD58le8y1N95bVnRTsna8qMZNHi/JUpBOEvtXPhEMPtIjnkK5 i68g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=fDQhMITC; 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 y136-v6si1404852pfg.52.2018.10.23.06.42.40; Tue, 23 Oct 2018 06:42:55 -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; dkim=fail header.i=@ffwll.ch header.s=google header.b=fDQhMITC; 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 S1728112AbeJWWFh (ORCPT + 99 others); Tue, 23 Oct 2018 18:05:37 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:37000 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726277AbeJWWFh (ORCPT ); Tue, 23 Oct 2018 18:05:37 -0400 Received: by mail-ed1-f68.google.com with SMTP id c15-v6so1675155eds.4 for ; Tue, 23 Oct 2018 06:42:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=fP1++GP6Qvp0pjdsuFyG5LSW6guXoD+iihM0y8mWSZI=; b=fDQhMITCnwbcfTP52XID1evT3XSDSFV96EEVT+usROZfY3U9F8uaouDVouHMpXD8Ut 9PoWPKwfR5+kUS8xv14wAzZV+5Kr150xlP9/Z5LJhKsEg56riRilwgHBW/wDb/VbI2C8 2ag9SgHLWwBbIZtUGZnrjW9lTaJc9ZN+gv5eI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=fP1++GP6Qvp0pjdsuFyG5LSW6guXoD+iihM0y8mWSZI=; b=pNDxYGlqTgqhydTSBx9qOUcUsZmCWWqZBYMDtd+3i6BWmnjpi2lZEYZAOEFfglFd0z 5RGtf4cIbJm6sXnewuisW1shecmhElTyobNgXX4arbnVzV3nEsDjolWXjhx7Nh2hYQ7q PRgI9gHbsvMQTPH9PqIXbM1GzaiSRwNrKxH+T7gT2+v+2f031g2lbcSoVW8jWH6AqPB2 CU3sKGiYNx5qP9ebuuTwnxfc0/596PRbVQ6B4OTwEHhgcc682VbL75kO5toCnz3Tb2RI MDwmdLxO9Fs7f0zeUGGJ6J0key9Vbd2YIJnq6SWojFvC/phMUlGUgN1wHUrlck0mo++l TFmA== X-Gm-Message-State: ABuFfojUKJUeiDhYQTLCfHXxxjBgHrcCdfRp5z3TksMXKlay17fhdT5h k9BO+/eStl74D5JxMrKGjaQExQ== X-Received: by 2002:a17:906:d81:: with SMTP id m1-v6mr940808eji.16.1540302125528; Tue, 23 Oct 2018 06:42:05 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:569e:0:3106:d637:d723:e855]) by smtp.gmail.com with ESMTPSA id br14-v6sm397509ejb.17.2018.10.23.06.42.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Oct 2018 06:42:04 -0700 (PDT) Date: Tue, 23 Oct 2018 15:42:02 +0200 From: Daniel Vetter To: Eugeniy Paltsev Cc: "dri-devel@lists.freedesktop.org" , "airlied@linux.ie" , "linux-kernel@vger.kernel.org" , "daniel.vetter@ffwll.ch" , "linux-snps-arc@lists.infradead.org" , "stable@vger.kernel.org" , "marcheu@chromium.org" , Alexey Brodkin , "maarten.lankhorst@linux.intel.com" , "gustavo@padovan.org" , "sean@poorly.run" Subject: Re: [PATCH] DRM: UDL: get rid of useless vblank initialization Message-ID: <20181023134202.GP324@phenom.ffwll.local> Mail-Followup-To: Eugeniy Paltsev , "dri-devel@lists.freedesktop.org" , "airlied@linux.ie" , "linux-kernel@vger.kernel.org" , "linux-snps-arc@lists.infradead.org" , "stable@vger.kernel.org" , "marcheu@chromium.org" , Alexey Brodkin , "maarten.lankhorst@linux.intel.com" , "gustavo@padovan.org" , "sean@poorly.run" References: <20180928144126.21598-1-Eugeniy.Paltsev@synopsys.com> <1540292472.19916.13.camel@synopsys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1540292472.19916.13.camel@synopsys.com> X-Operating-System: Linux phenom 4.18.0-2-amd64 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 23, 2018 at 11:01:14AM +0000, Eugeniy Paltsev wrote: > Hi David, > > Maybe you have any comments or remarks about this patch? > And if you don't could you please apply it. Thanks! Hm I hoped Sean would pick this up. I stuffed it into drm-misc-next now, and Sean owes me one. Generally pinging Dave is a last resort in dri-devel (and doesn't work too well). Thanks for your patch. -Daniel > > On Fri, 2018-09-28 at 17:41 +0300, Eugeniy Paltsev wrote: > > UDL doesn't support vblank functionality so we don't need to > > initialize vblank here (we are able to send page flip > > completion events even without vblank initialization) > > > > Moreover current drm_vblank_init call with num_crtcs > 0 causes > > sending DRM_EVENT_FLIP_COMPLETE event with zero timestamp every > > time. This breaks userspace apps (for example weston) which > > relies on timestamp value. > > > > Reviewed-by: Daniel Vetter > > Cc: stable@vger.kernel.org > > Signed-off-by: Eugeniy Paltsev > > --- > > drivers/gpu/drm/udl/udl_main.c | 7 +------ > > 1 file changed, 1 insertion(+), 6 deletions(-) > > > > diff --git a/drivers/gpu/drm/udl/udl_main.c b/drivers/gpu/drm/udl/udl_main.c > > index f455f095a146..1b014d92855b 100644 > > --- a/drivers/gpu/drm/udl/udl_main.c > > +++ b/drivers/gpu/drm/udl/udl_main.c > > @@ -350,15 +350,10 @@ int udl_driver_load(struct drm_device *dev, unsigned long flags) > > if (ret) > > goto err; > > > > - ret = drm_vblank_init(dev, 1); > > - if (ret) > > - goto err_fb; > > - > > drm_kms_helper_poll_init(dev); > > > > return 0; > > -err_fb: > > - udl_fbdev_cleanup(dev); > > + > > err: > > if (udl->urbs.count) > > udl_free_urb_list(dev); > -- > Eugeniy Paltsev -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch