Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753364AbdGCU7s (ORCPT ); Mon, 3 Jul 2017 16:59:48 -0400 Received: from mail-eopbgr50133.outbound.protection.outlook.com ([40.107.5.133]:60996 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753174AbdGCU7q (ORCPT ); Mon, 3 Jul 2017 16:59:46 -0400 Authentication-Results: ffwll.ch; dkim=none (message not signed) header.d=none;ffwll.ch; dmarc=none action=none header.from=axentia.se; Subject: Re: [PATCH] drm: atmel-hlcdc: use a default gamma ramp if none is specified To: Boris Brezillon Cc: linux-kernel@vger.kernel.org, David Airlie , dri-devel@lists.freedesktop.org, Alexandre Belloni , Nicolas Ferre , Daniel Vetter References: <1499074930-10187-1-git-send-email-peda@axentia.se> <20170703133102.5788d2f2@bbrezillon> <20170703140235.53329a09@bbrezillon> From: Peter Rosin Organization: Axentia Technologies AB Message-ID: Date: Mon, 3 Jul 2017 22:59:36 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170703140235.53329a09@bbrezillon> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [81.224.171.159] X-ClientProxiedBy: VI1PR0802CA0008.eurprd08.prod.outlook.com (2603:10a6:800:aa::18) To DB6PR0202MB2552.eurprd02.prod.outlook.com (2603:10a6:4:1b::10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fdb9de33-9715-4daa-02b5-08d4c2566c91 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DB6PR0202MB2552; X-Microsoft-Exchange-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VR2w/rEk/PYekSFPZqZk+5YnL0EuJY6TNAhVCYhe904YwEJ9bduM1lEu8OQNnEAHUfUPSIIoehJAkCA0J4kJ+xw4c8sNqHrjT2bmYW3yeCAHiPHojrGXTXVIf9AM0JOGgJk10Ew4QpfgIUYZscUmoNNi8zvwIMuNsrPcMTyBrYQFn0huvMVW/3S4hYHsC4kEQUtA0VA0A/VXLMmm+Sdop1+rRZmHCHmKiEZjdgjorO6BtUuGVLIY42JLrYwWQ+V8u1FhFhMm1SsO/HvTnfZCe5y59KZ7WUBeIC1YLqjIj7aC8UTspKizRi5IomDUo5TInbnontgDn3ETIoi/atAREZjScYeHxW95lFNZ9SLh86C9ksSqeh9TXT0rXw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(133145235818549)(236129657087228)(167848164394848); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123555025)(2016111802025)(20161123560025)(20161123558100)(6072148)(6043046)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DB6PR0202MB2552;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DB6PR0202MB2552; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjZQUjAyMDJNQjI1NTI7NDpDOTNqYmw0eWNucFBYR3EwSnE1bVNJRkdY?= =?utf-8?B?Z0JMVW1yZElGU3dsRVVYVjA4eTVZNCtSTkswcW9nME0ySlRpOTc2elRWczBz?= =?utf-8?B?L0RtQ1BoZHFQQWowbUhPa2pQVEVNVmxxSlIvOVRoaTNLN2ViUXJ3RFlmZ3pC?= =?utf-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UNGZSTlJYV2lMZ2ozaE9E?= =?utf-8?B?cTFqa05JRnVpR3pYNmpDNlYvRGhWVGc1WFp4VWZmcmtlREJ6dHJTcUgvRHlk?= =?utf-8?B?T2ZVN1lnYno0VFBFaVJGcDludjFqaTVKbkwxOVlJMVM1WGNLdkpXMVozSTFk?= =?utf-8?B?R1RwL3ROVWdHU2krbS8xaEJPT3NDVmxpL24xRnR6K0pXa21tN29XZk1XYVhK?= =?utf-8?B?ZVg1djNYMmdzVHc2ZUhjL3NicDBCWHhWekRPVi9DVU52VGh0a0o1VWRwWFdJ?= =?utf-8?B?NnhhRW43dzNDckN5Rk9Oakg1aVRzd3VucnYwdkNxRTBPTVY0TFNiZkVlL21N?= =?utf-8?B?Z205WkV5aVNJTUZKYlpLbDQ5eWltVFZic01pcjVDRmNETmlRbHdHR3BPYXZR?= =?utf-8?B?R2hxU1luN0I4S0VaUTBsY3RVamoybmNiYkJ2RjdqS1pNd1NJVkcxZVZBbmVX?= =?utf-8?B?Uzg1ajVZY0pBOGQ2L0ZzaitoK2p1QTVoekVkTUZ4YjFWRVJQU05lUHJwT3lC?= =?utf-8?B?V1A0MzNtWWFGbkg1L3Baa3MyeEl0dTU4R0kvalVrWGh6MlVXYmFiSVRkUjFX?= =?utf-8?B?ODFmb2c5eUFRU1pUbUNuSWZSK2VIRHcvL2pQSnprT3dKWkExdWtXUWt1R3VF?= =?utf-8?B?TVc5Nm1XNkphT2h1YVA1dGEyOU40WEEyVDI3dUxrTW5nR3V0U0ptaytxRUw4?= =?utf-8?Q?iyRpv4mHT1CCHUm0XGGXjD7WMiKTJCNPYiNKRo=3D?= X-Forefront-PRVS: 035748864E X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(6049001)(39830400002)(39400400002)(39410400002)(39450400003)(24454002)(377424004)(478600001)(5890100001)(77096006)(81166006)(4001350100001)(47776003)(229853002)(6486002)(7736002)(2950100002)(6666003)(6916009)(305945005)(83506001)(8676002)(31696002)(53546010)(36756003)(66066001)(65956001)(65806001)(65826007)(5660300001)(86362001)(189998001)(2906002)(50986999)(54356999)(110136004)(3260700006)(25786009)(6246003)(53936002)(38730400002)(117156002)(54906002)(42186005)(4326008)(31686004)(23676002)(74482002)(33646002)(230700001)(50466002)(93886004)(3846002)(76176999)(6116002)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:DB6PR0202MB2552;H:[192.168.0.125];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjZQUjAyMDJNQjI1NTI7MjM6b0JlVXRCUGpxODViZGtPU2FQcGVxYko4?= =?utf-8?B?Ryt1WFBzWU5uRCt4aU1pcTJzNmxFSFdSajByNnNrTzBEM2daY2tWa0hxRjFl?= =?utf-8?B?aTR2SDJRcXhwTTJYQ0t0SGlCSzRCT1A0RlBzRnJuNmpiOHQzNW90cTlNRHhR?= =?utf-8?B?RWdkd2UvU05nQTNlRWcyQTNhTTNXRVNGdk5BUCtSdVVsREp6VjFQMmNhQXB5?= =?utf-8?B?aXBUMmR3QjJuMXFGc3I0QzlWZU1sZHJma0R3N0lpMU4wcjNZWE5OTW55cjJk?= =?utf-8?B?dmNmNzZXUGpRU0lyYTdjMFFOWUliWHlBa2h2ckZsU09XWlFOVGwxUWpHWWkv?= =?utf-8?B?eVU4ZDdCTmFoajY4eStLSm1ENkFMRmVwN3lVZ2FXRXpZRWJGcnIzNjBCNUY5?= =?utf-8?B?V0x6NnF4RlRKWUFNUW1ONHhHRkJLZ1hzYzhwd2pyRThHZWhDVXgvN2laT3NO?= =?utf-8?B?NDNHM1ZOQ1VvSDJCOWpRRGdJNGlOejlFMU5mNThrNG5WQ3NkWFpuS3lmVEJI?= =?utf-8?B?b2lqMm5pL1NIWktPV051WkZkaHNmZTRUTStlcjVpMjM0RGQwak9WcXFsRWZ2?= =?utf-8?B?dTJpMDJzbWQrRFc4YUNWZEEzb2M5WFBid1prVTQzM2YzTDdwS2lURURjQW9k?= =?utf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qQehjkraRihYSWbNLz8njcFgSrN4f1ukCkJnx/biaefvzu/vm+Q53o7eNi8GKOK8T0vFMTh1H+JucZV8j5Gec2Y96Sxns+HG26Q0RuhO+qSN3QuHedV++NIjZgHzQFpIz9WhI17N2f+0FBG0rhw0On5+w0EUMdvmTw8UkyBZlrf2t5/3fJY3SU89DU5n8HoSn34Khp7Ln2DFQuS3tthBH6NMnvcoD/1pc8DnYa3SZTkp+IBxDxrT4rpZMqV1HWSZAYRajKswMiruLyASYYTFqdzPHNlQvBwIKhk5ZEzKZPMFfVvybv++21UgYehYNv9uXUXeLatInfO+v5Rd5/IFOhuBeMn3WG+1upc96tVFoM6BPYUsOQq8xVvsOhN6/iqBwDdxqZLNRrgF16abC/3958ifFcJp/witymdWZsHKmSSU9/zINXJIldPDSIYoQea2tKg6ejixvrQAa5FBAOg2PlD2HHP2n0rNmJvc06L0UB2PYNLl4Y= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2017 20:59:39.9719 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0202MB2552 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3198 Lines: 78 On 2017-07-03 14:02, Boris Brezillon wrote: > On Mon, 3 Jul 2017 13:53:28 +0200 > Peter Rosin wrote: > >> On 2017-07-03 13:31, Boris Brezillon wrote: >>> On Mon, 3 Jul 2017 11:42:10 +0200 >>> Peter Rosin wrote: >>> >>>> At init and if the gamma_lut property is ever removed, the clut >>>> registers must be programmed with a default gamma ramp instead of >>>> being left in some unknown state. >>>> >>>> Fixes: 364a7bf574eb ("drm: atmel-hlcdc: add support for 8-bit color lookup table mode") >>>> Signed-off-by: Peter Rosin >>>> --- >>>> drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 17 ++++++++++++++++- >>>> 1 file changed, 16 insertions(+), 1 deletion(-) >>>> >>>> diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c >>>> index b5bd9b0..0ccd93c 100644 >>>> --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c >>>> +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c >>>> @@ -429,6 +429,14 @@ static void atmel_hlcdc_plane_update_format(struct atmel_hlcdc_plane *plane, >>>> ATMEL_HLCDC_LAYER_FORMAT_CFG, cfg); >>>> } >>>> >>>> +static void atmel_hlcdc_default_gamma_ramp(struct atmel_hlcdc_layer *layer) >>>> +{ >>>> + int idx; >>>> + >>>> + for (idx = 0; idx < ATMEL_HLCDC_CLUT_SIZE; idx++) >>>> + atmel_hlcdc_layer_write_clut(layer, idx, idx * 0x10101); >>>> +} >>>> + >>>> static void atmel_hlcdc_plane_update_clut(struct atmel_hlcdc_plane *plane) >>>> { >>>> struct drm_crtc *crtc = plane->base.crtc; >>>> @@ -438,9 +446,14 @@ static void atmel_hlcdc_plane_update_clut(struct atmel_hlcdc_plane *plane) >>>> if (!crtc || !crtc->state) >>>> return; >>>> >>>> - if (!crtc->state->color_mgmt_changed || !crtc->state->gamma_lut) >>>> + if (!crtc->state->color_mgmt_changed) >>>> return; >>>> >>>> + if (!crtc->state->gamma_lut) { >>>> + atmel_hlcdc_default_gamma_ramp(&plane->layer); >>> >>> Hm, I'd prefer to have state->gamma_lut properly initialized in >>> atmel_hlcdc_crtc_reset(), this way you don't have to do that in the >>> update path. >> >> The gamma_lut property can be removed, so you have to handle it here anyway. No? > > Hm, what do you mean by removed? AFAICT, a property, once attached to > a DRM object, exists until the DRM object is destroyed. The data > attached to this property (here, the gamma_lut array) can be NULL, but > once you have allocated the data container, it will be duplicated (and > possibly updated) every time an atomic operation is triggered. By remove I meant someone somehow triggering a call like this: drm_atomic_crtc_set_property(crtc, ...->gamma_lut_property, 0); By the looks of it, that is not happening? But I'm not sure of that, and even if it's not happening today, that may change... > By initializing this field in crtc->reset(), you enforce the > default/reset state, which IIUC, is what you want here. Agreed, if it is not possible to remove/clear out the gamma_lut property, then the only thing needed is to initialize the hw clut registers to the linear ramp somewhere early. But is it indeed a fact that there is no way to clear out the gamma_lut prop? Cheers, peda