Received: by 10.223.185.116 with SMTP id b49csp919186wrg; Fri, 23 Feb 2018 08:50:01 -0800 (PST) X-Google-Smtp-Source: AH8x225MA8uYiaY9FX8UYBiEc/gyWheEeA3ANWqNl7/b+MMErKlYnDZKOUyVecfdmYLXqCQolumj X-Received: by 10.99.120.199 with SMTP id t190mr1891493pgc.72.1519404601200; Fri, 23 Feb 2018 08:50:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519404601; cv=none; d=google.com; s=arc-20160816; b=w2ZXhs08/2HpmxLwYKZv6mma7WKcz6roevuxQP2Dn98d27vNLPmJMwXr0QRZlgWaxM yy2pMsAz0Mqw0bWSBUd7gXV1pqMLazytxnfv3Yv61cTRCLGZMsXJFqLH/dJwLNd3/R2p XeQ36RmBhpliKN7jLTIl1FGupdgxM2jIEqyF1jn4/0jAcLX8JsktwQa4nwOKbnxK+gZs +RYBVCT7YHFQuQENRoHwSPxblFkdlPBSuabGZBNL4pvtkCHVlH9V1jA6z1mJNdd00lQN 74UvQXH/ZORM6ae0Bm3RGUUSFswX5NFp1kgnBR+/wks4UGWh7uZ5YvBGiWyqgsFAljXi FrKg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=zapgIzzHuOtOWTi71lT6vgR8ctm0WCFLDgPMotb9QL4=; b=CcFgghLJULM6Vjxe29D6z0f5Bj6vT9FOJHUfg/mfmfyyeYHB+peND6hj+fZbdd6JlK lehVixVQetQOadHBQYHiPB2TFvsBNQMger6ark1hp6tjSpcISQ6b1tz/xpNVme36SMzN YLCnbgUnpzyW9EoP3jDTgEyoRdoYUOKsUFKcVNZogVftOyxuwFw22H8+fuaZJWAvUFhr vrTEl+DKRPGpSqxSatJY9dJUeEh8BbUq8IOjIY5tGhTQTgHVNowvx49MqQcUQ89w6/Db 76tQbXwAYz6ZKVu7Kofvrdf3+QeZlLHli/Lxx0mVsHCNcxn+Euzk15uGEX29XrONNU1y NL3Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s22si2047095pfh.340.2018.02.23.08.49.45; Fri, 23 Feb 2018 08:50:01 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752042AbeBWQtE (ORCPT + 99 others); Fri, 23 Feb 2018 11:49:04 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:58250 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751366AbeBWQtB (ORCPT ); Fri, 23 Feb 2018 11:49:01 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CB78E1529; Fri, 23 Feb 2018 08:49:00 -0800 (PST) Received: from e110455-lin.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9A6433F25C; Fri, 23 Feb 2018 08:49:00 -0800 (PST) Received: by e110455-lin.cambridge.arm.com (Postfix, from userid 1000) id EAFBE680367; Fri, 23 Feb 2018 16:48:58 +0000 (GMT) Date: Fri, 23 Feb 2018 16:48:58 +0000 From: Liviu Dudau To: Sean Paul Cc: Rob Clark , dri-devel , freedreno , linux-arm-msm , Brian Starkey , Mihail Atanassov , Gustavo Padovan , Maarten Lankhorst , David Airlie , Jonathan Corbet , linux-doc@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [RFC 1/4] drm: Add writeback connector type Message-ID: <20180223164858.GY9111@e110455-lin.cambridge.arm.com> References: <20180223131758.18362-1-robdclark@gmail.com> <20180223131758.18362-2-robdclark@gmail.com> <20180223155935.GJ223881@art_vandelay> <20180223164329.GO223881@art_vandelay> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180223164329.GO223881@art_vandelay> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 23, 2018 at 11:43:29AM -0500, Sean Paul wrote: > On Fri, Feb 23, 2018 at 11:25:11AM -0500, Rob Clark wrote: > > On Fri, Feb 23, 2018 at 10:59 AM, Sean Paul wrote: > > > > > > Have we considered hiding writeback behind a client cap instead? > > > > It is kinda *almost* unneeded, since the connector reports itself as > > disconnected. > > > > I'm not sure what the reason was to drop the cap, but I think it would > > be better to have a cap so WB connectors don't show up in, for ex, > > xrandr > > Yeah, the disconnected hack is kind of gross, IMO. I hate to introduce churn in > the patch series given that it was initially introduced with the client cap. Haha, that's the reverse of Daniel's position: https://lists.freedesktop.org/archives/dri-devel/2016-October/120519.html > > There are also cases where we might want to make writeback unavailable, such as > when content protection is enabled. In those cases, it's conceivable that we > might want to use disconnected as a signal to u/s. I suppose we could also just > fail the check, so most of this is just academic. Not sure what other hardware out there does, but on Mali DP's case you would be outputing the protected content by putting the display processor in secure mode, which automatically disables writeback for us. Or to put in another way, you don't need a writeback framebuffer if you are in non-secure mode as you can get access to the framebuffer used for the plane anyway. Best regards, Liviu > > Sean > > > > > > BR, > > -R > > -- > Sean Paul, Software Engineer, Google / Chromium OS -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯