Received: by 10.213.65.68 with SMTP id h4csp2341248imn; Mon, 9 Apr 2018 01:41:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+zE7wkg/WMH5HRcktgbEVx3IjbUyNw5o1z1ckLQRrzfPrfir4USwZ1Kf+tV307VOceyrp2 X-Received: by 2002:a17:902:1744:: with SMTP id i62-v6mr38141036pli.62.1523263260742; Mon, 09 Apr 2018 01:41:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523263260; cv=none; d=google.com; s=arc-20160816; b=UPzDVMF4zOax58wkJQfaiOX+YcUru1kwGEULp4nAvJT5o3IS2sHEpUztrmsgf17D36 ZQpdw8h+vvKsp3oUhdTZ8VSNSae0KFC4x0JhsN6UYh/KN7RZYWJEES7rlsBAazm8JYPH rCiRND9qA95tptyuyAab5Qn04mvFFNGWfXeMwjXsOYVN2fY6gu4ASOpz+KYKlDOSr9Ad w/XvV0l7fou9HCR/IBjOJUhbwXR6z0SvjmhFJm2yojOrLHoxgN1xpbxrn736kO1TKBuy nJN3S+jqezA9MTE4QgQgoleVM/N/4eVbJtUT/KqzsN8hCRIQn2iRUcOILnI1gCOwRnED wFgA== 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 :arc-authentication-results; bh=iF8Tyv9yHEGX1ahUSW3BSR3dPwKj9/4CupCmU2dm4cA=; b=DF7glm+hTPVA1+UxLlzgRd9sFDGO1gmeBYYMR+sOoSqqw7Sg+cmvmYUGHKrKaGverh NwVJzJPH23uFwEqiKxc+mOhBmKUk0LMJyC3I1x1kFthi1jdpyggvpFa8O7EFxP70RXUY NfGhN+5FbdVtBsQv/07s5oZnWyF42ucjgVb17fkI6Zgb8MW53t0VVRckC8SoFYYrSahs 7DEBBKDkr6qPTET5sEWw+MS6cZMXRBah3vd+uBdMjWi2THRetWPuljZCrC8RrkcXr9qV ET6I3uXOJGJTSHJa2+OSJ5l5g65Lu3fDlVlQgaPZF2KS3noubutxBpQL18VQrzGtV7tw 6RpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=Sr0pEZLH; 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 f14si6557681pgn.597.2018.04.09.01.40.23; Mon, 09 Apr 2018 01:41:00 -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=Sr0pEZLH; 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 S1751968AbeDIIgy (ORCPT + 99 others); Mon, 9 Apr 2018 04:36:54 -0400 Received: from mail-wm0-f53.google.com ([74.125.82.53]:37197 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751416AbeDIIfd (ORCPT ); Mon, 9 Apr 2018 04:35:33 -0400 Received: by mail-wm0-f53.google.com with SMTP id r131so14853495wmb.2 for ; Mon, 09 Apr 2018 01:35:33 -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=iF8Tyv9yHEGX1ahUSW3BSR3dPwKj9/4CupCmU2dm4cA=; b=Sr0pEZLHghzHESR2yxgeFpqbrA0EBJP/Hp5uSYVchGVPQL8AbcYlBVkW0TlZG65qR1 QONWgDcJg3gyxzuuMRX3axlxUSUa/8PZZNK+lp3trhIYfrhJSbK3OYeQ3JSfkLShKz2F l/PlYkjpMNk1uNZMVE9HdKKd+suDW2eUt6414= 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=iF8Tyv9yHEGX1ahUSW3BSR3dPwKj9/4CupCmU2dm4cA=; b=KKXuI8t6klZf8Zcvs3iyHEMdCGLgW69Yz+raKvUrXFATSR6exmV1Vc7kATA8AHIKEw GSveKDE28eW05RgnUN1IynRsJ+a8ZtA05w+Hlz8znfI0E+Zuyf4RBWPRlNH2/Hd0E94H /JzA8us3WUm3I+kHEAmfrwb8h0J47z0cDwK+10OvvSuRrU97q7Y2Gng1LLCCUD2hvvWV fPViLFU0AbhLgyvEfPFXsmhIJ3q5vxrbkLMOx1F0lAdxC4QGgs9Zk6rVe4igCjAM9ji3 q+Pp7LUFg0Sgl8lgOysTYj2hMw10qRjq8zC7Yv62rC06VDbzOiJvV9T8sX/exbMWLPPO WgXg== X-Gm-Message-State: ALQs6tDLcx2HN0CXPkmHtgwm65pxM7/BM7Hz/WswOji0XzmWOtWec17v 6atG7g92yj9QltbL5NS0X6Ljzw== X-Received: by 10.80.222.9 with SMTP id z9mr8128854edk.245.1523262932690; Mon, 09 Apr 2018 01:35:32 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:5635:0:39d2:f87e:2033:9f6]) by smtp.gmail.com with ESMTPSA id d6sm75050edc.22.2018.04.09.01.35.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Apr 2018 01:35:32 -0700 (PDT) Date: Mon, 9 Apr 2018 10:35:29 +0200 From: Daniel Vetter To: Deepak Singh Rawat Cc: Thomas Hellstrom , "dri-devel@lists.freedesktop.org" , Sinclair Yeh , linux-graphics-maintainer , "ville.syrjala@linux.intel.com" , "lukasz.spintzyk@displaylink.com" , "noralf@tronnes.org" , "robdclark@gmail.com" , "gustavo@padovan.org" , "maarten.lankhorst@linux.intel.com" , "seanpaul@chromium.org" , "airlied@linux.ie" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC 2/3] drm: Add helper iterator functions to iterate over plane damage. Message-ID: <20180409083529.GN31310@phenom.ffwll.local> Mail-Followup-To: Deepak Singh Rawat , Thomas Hellstrom , "dri-devel@lists.freedesktop.org" , Sinclair Yeh , linux-graphics-maintainer , "ville.syrjala@linux.intel.com" , "lukasz.spintzyk@displaylink.com" , "noralf@tronnes.org" , "robdclark@gmail.com" , "gustavo@padovan.org" , "maarten.lankhorst@linux.intel.com" , "seanpaul@chromium.org" , "airlied@linux.ie" , "linux-kernel@vger.kernel.org" References: <1522885748-67122-1-git-send-email-drawat@vmware.com> <1522885748-67122-3-git-send-email-drawat@vmware.com> <20180405075205.GQ3881@phenom.ffwll.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 4.15.0-1-amd64 User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 05, 2018 at 11:59:57PM +0000, Deepak Singh Rawat wrote: > > plane damage. > > > > On 04/05/2018 09:52 AM, Daniel Vetter wrote: > > > > > > TYPE_PLANE I have no idea who needs that. I suggest we just drop it. > > > > I'm assuming CRTC plane coordinates here. They are used for uploading > > contents of hardware planes. Like, in the simplest case, cursor images. > > Yes they are CRTC plane coordinates, so is TYPE_PLANE naming confusing ? > And should be named to TYPE_CRTC_PLANE but then it is confusing with > TYPE_CRTC. Yeah, I think TYPE_PLANE is really confusing, and too much aimied at your vmwgfx special case (where the virtual hw requires that this all lines up properly). I think providing FB coordinates, and doing the vmwgfx-specific remapping in vmwgfx code is better. And someone else can then figure out how to handle CRTC overall damage for physical devices. As mentioned by me (and Rob Clark too), most hw only allows for 1 (or maybe 2) overall damage rects, so that helper would need to combine all the damge rects into 1. Plus take stuff like gamma/ctm/alpha into account too. Better we leave that to someone who needs it. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch