Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5034078pxj; Wed, 26 May 2021 00:53:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyyPY7hw9vbF2aWgJTzShnoA539pXx5ztHnl6miU3HlVB4uvi9LIEAy2El6+pevahEHpdX X-Received: by 2002:a02:8787:: with SMTP id t7mr1851119jai.53.1622015600523; Wed, 26 May 2021 00:53:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622015600; cv=none; d=google.com; s=arc-20160816; b=h0oXQDkkvdqPhLVgtnGnRd1hOSfS0B3oJKog8KzIE+sym6yqeiadDWjhR0tqkyXGPG ZXGuDiie0a53bAmYEP34ayQsfuXQaSXrhHN0SdqLZ/OdzGKE5CRF2qdVrtAuVbUsIQj0 fM/zqyiUsWCwKccnRYOGQkyiwcBxc/1WJCu6ARHGgUohDHoOSqY+tI4IFWuvlv53daQD wLRwx6erWiJh34G6+aeQLvSXAN0s+7xwn+XPm6Y0KsdY0JYZoChSDC4ul6JCfeZYuClq mRb0mgL2F1xsYBFR9N040M0ndvymaN+k8lJ0IZCW/e8rGe4kmjCenu3ilCZwpWbBd2PD CF/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=u3EyFhbYYnVpqUS9Cn2C4IlMjPL7DouNalgxMX59h4U=; b=N/ltydBWhT8u6ve0aCT2Ldg/Lc+sT5FJsCP+5ubvWPF6Jri5D1IXlzeq/1oY1bNDyP WBezJDg5/OA18smGT1tNXDW4FVCHUy1Blm/r6EebTJaz0DoFofNW1bWpt7LQFKDQm4LJ JNPEPG/gwPzKCxAVbrSLOzwyrzJ98rvkByAGdeT9UJdsg/cMhdROFqFc45kUELm96zWl cne67sL92JKq/v0jIxUz0YrbvBbjkyJwdbbDR43Wsx8ZG4lvms2C+BCLzD5iP2YvhzcG ezpNb9DNdIh8KTIsuUuOpjD6oWoXrtq2qkzHzh2vvMhgxH5LCDI/VXTzfqFwamH4ju6I dPVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=It70ferE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d25si18603739jam.64.2021.05.26.00.53.06; Wed, 26 May 2021 00:53:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=It70ferE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231961AbhEZFsV (ORCPT + 99 others); Wed, 26 May 2021 01:48:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:46990 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbhEZFsU (ORCPT ); Wed, 26 May 2021 01:48:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 58489606A5; Wed, 26 May 2021 05:46:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622008009; bh=ilgmusErlwIFJYQRA3ardBcRg28msFxATNE31YLfrxc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=It70ferE7CzZH35zUGnfY4vR7J2/q46na1wowciyqZDlCYeFhcGLU9Sgb0CDo/Soz 2nT1Lt2PnTH50AKmMkS4MfZ1TvhcmNgNDNuGZ/UZ5/6RCBG+puDp3yiTMp0I2ADz5J A5m67QniO9tSXr8PNiYJ4yAJFZXpK+s/VJhtqYDF4PuEJyoeNDRx8zqQ6aLjM7yD4T 3qPw6wRgU3eGFrn91k2CNcC3EYrkfNKj7WxKb2zHGznt8+L5ZNoF3G3xfwL4QhKDw5 igyepZ7OO4SodAXOVA7ZCFziFLjSrIz6uawXkFc4nKQtjO9EtymWg479xlUVTEyZ3L rTUh2Mgcom8Dw== Date: Wed, 26 May 2021 11:16:46 +0530 From: Vinod Koul To: Jeffrey Hugo Cc: Rob Clark , DTML , Jonathan Marek , David Airlie , MSM , lkml , Abhinav Kumar , Bjorn Andersson , Rob Herring , "open list:DRM PANEL DRIVERS" , Daniel Vetter , Dmitry Baryshkov , freedreno Subject: Re: [Freedreno] [RFC PATCH 00/13] drm/msm: Add Display Stream Compression Support Message-ID: References: <20210521124946.3617862-1-vkoul@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Jeff, On 21-05-21, 08:09, Jeffrey Hugo wrote: > On Fri, May 21, 2021 at 6:50 AM Vinod Koul wrote: > > > > Display Stream Compression (DSC) compresses the display stream in host which > > is later decoded by panel. This series enables this for Qualcomm msm driver. > > This was tested on Google Pixel3 phone which use LGE SW43408 panel. > > > > The changes include adding DT properties for DSC then hardware blocks support > > required in DPU1 driver and support in encoder. We also add support in DSI > > and introduce required topology changes. > > > > In order for panel to set the DSC parameters we add dsc in drm_panel and set > > it from the msm driver. > > > > Complete changes which enable this for Pixel3 along with panel driver (not > > part of this series) and DT changes can be found at: > > git.linaro.org/people/vinod.koul/kernel.git pixel/dsc_rfc > > > > Comments welcome! > > This feels backwards to me. I've only skimmed this series, and the DT > changes didn't come through for me, so perhaps I have an incomplete > view. Not sure why, I see it on lore: https://lore.kernel.org/dri-devel/20210521124946.3617862-3-vkoul@kernel.org/ > DSC is not MSM specific. There is a standard for it. Yet it looks > like everything is implemented in a MSM specific way, and then pushed > to the panel. So, every vendor needs to implement their vendor > specific way to get the DSC info, and then push it to the panel? > Seems wrong, given there is an actual standard for this feature. I have added slice and bpp info in the DT here under the host and then pass the generic struct drm_dsc_config to panel which allows panel to write the pps cmd Nothing above is MSM specific.. It can very well work with non MSM controllers too. I didn't envision DSC to be a specific thing, most of the patches here are hardware enabling ones for DSC bits for MSM hardware. > Additionally, we define panel properties (resolution, BPP, etc) at the > panel, and have the display drivers pull it from the panel. However, > for DSC, you do the reverse (define it in the display driver, and push > it to the panel). If the argument is that DSC properties can be > dynamic, well, so can resolution. Every panel for MSM MTPs supports > multiple resolutions, yet we define that with the panel in Linux. I dont have an answer for that right now, to start with yes the properties are in host but I am okay to discuss this and put wherever we feel is most correct thing. I somehow dont like that we should pull from panel DT and program host with that. Here using struct drm_dsc_config allows me to configure panel based on resolution passed > Finally, I haven't seen the DT bits, but I'm concerned about using DT > for this. It inherently excludes ACPI systems. You appear to have > sdm845 support in this series, but what about ACPI boot on the Lenovo > C630 for example? Or any of the 8cx laptops? We don't read the panel > resolution, etc from DT, so why the DSC? But you must read from somewhere like ACPI tables. I think ACPI systems would have some ACPI table info out there which would help on this. Yes that is another task which we need to start with once we enable OF systems. Thanks -- ~Vinod