Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754070AbdGCLxz (ORCPT ); Mon, 3 Jul 2017 07:53:55 -0400 Received: from mail-he1eur01on0104.outbound.protection.outlook.com ([104.47.0.104]:47739 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753341AbdGCLxt (ORCPT ); Mon, 3 Jul 2017 07:53:49 -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> From: Peter Rosin Organization: Axentia Technologies AB Message-ID: Date: Mon, 3 Jul 2017 13:53:28 +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: <20170703133102.5788d2f2@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: DB6PR07CA0160.eurprd07.prod.outlook.com (2603:10a6:6:43::14) To VI1PR0202MB2557.eurprd02.prod.outlook.com (2603:10a6:801:6::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e21a061d-36e5-4560-ee04-08d4c20a26a7 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:VI1PR0202MB2557; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0202MB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/tdge96R5ohYQQwHIqlxjamcTN8KAzR+KxgdbxKfI7rduXs70OjRPSXUlZJ5l0uY4VC3Ev2d8AEzbnQldnCv8hFpIcAGQd08IjJdi9fxdqBd/jpxuYOaxitmW8+pPJV8s5bxUriy+nbPr4O7Fto13PdF/tRPVub63Zk/e5NkRaXiy5S3F7/dfF5i1MMMvRkn83lgVFUyl7PrOeoVATDwkemm8BUEIFAi9vvNoQk1S5+x7Ubpm2cWAvyjkU70U1Pu+2lln7rNGsKtkoD9LfHP0fejxlMbskZ6yGGBADq7dcMMKs6/yP+wemcVogsTeP11RySWY3vrq66qvqsYRf8f8qQ== 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)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(3002001)(6041248)(20161123562025)(20161123555025)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(2016111802025)(20161123564025)(6043046)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:VI1PR0202MB2557;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:VI1PR0202MB2557; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtWSTFQUjAyMDJNQjI1NTc7NDpkRnFyaWZLYUg1QkoyMHNrdndkbksxaEdZ?= =?utf-8?B?cXpMSldhUGRwWkdnZlRpTTdIOVZJN0hlKzlkQjZ6Qkw2TlFLNkV4TWNja2hX?= =?utf-8?B?ejZNV1BoYUhsd0Z4WFFITmdpZldEZGhJVmNpSk0zbUMzOVlycFcxRjRUamRZ?= =?utf-8?B?ejAzalY5aXpGZ2V1MUErT1VoS2VvTTU0U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xVlpPcnZESDZaQnFOY2toYWFib1NKeWtTZDhhcGM4UEdY?= =?utf-8?B?a0JaRmhrODJsZlhNTVRsT1pvZzVLN2lzMmdDZmlHY3JhU2ZnOE4vTGhVQVZ3?= =?utf-8?B?ZG5FeWZmZk9oRDRjeEQ4bGRNQVZYbU1ZZXhzYlBVUVQ3RzZtZXNSelAzeGFI?= =?utf-8?B?c2tCTE96Z09XOUt0NlZ5ZmRDVkRMYmJsYlJQdnk2QUYzVnBmd0dxQnRPOHlp?= =?utf-8?B?Y1lxTkUrZDJ2bEFwNWZSSStOR2N0VlpDMTZYMytFMFdTN2YvZHp6NGhPUEcw?= =?utf-8?B?U1VtM1NnYnUwMG0xZGZsRC9QSnh2S0oxWTRITloyVWF2dEVjMUIzMkIveUI1?= =?utf-8?B?WmxKZ1FEWFNIajNFMytBTzhxcHM0bm5PUUtIVFd0dzBwRG9LVit4Qm9Jclh5?= =?utf-8?B?NS8wVi8vM1ZoYUN6d2JLNjNVYU9QRHM4OGtlSWNQeVQwc3FYTHpLYWo0QXVz?= =?utf-8?B?R25makM2Q1ZIeTdQWHZjbklqa01BeERTS09JSnRCSm10eHE1aFhpVWF1R2Fu?= =?utf-8?B?WjlVVWtyV3ppaDkzRlhjL2N0R0pMMzBCL201SFB1M3QxeU1icFF2c1Y3R2hV?= =?utf-8?B?Q2xSbHQ2NFlmKzBFdFRNd0ZZR2lzcG9xUU1qUVl5Q0l5SUF2V0xqbmh4VFlF?= =?utf-8?Q?x7Q9h2Igsm8/WBRYqiT0DvhYT9MYomYrEx2SYU=3D?= X-Forefront-PRVS: 035748864E X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6049001)(6009001)(39830400002)(39410400002)(39450400003)(39400400002)(24454002)(377424004)(25786009)(47776003)(66066001)(42186005)(5660300001)(6246003)(4326008)(31686004)(110136004)(77096006)(53546010)(7736002)(50466002)(2950100002)(6486002)(65826007)(229853002)(76176999)(38730400002)(83506001)(36756003)(478600001)(6916009)(81166006)(8676002)(50986999)(54356999)(6666003)(31696002)(305945005)(54906002)(230700001)(4001350100001)(86362001)(74482002)(189998001)(53936002)(117156002)(23676002)(6116002)(3846002)(2906002)(33646002)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR0202MB2557;H:[192.168.0.125];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtWSTFQUjAyMDJNQjI1NTc7MjM6R3JScU9XbHhHQ2NERXNQZTRqVzFvTGF1?= =?utf-8?B?TmdBMjZLMlVuZ0hkN1hCeWl1S1k1ZHBvY1pKcFhHSEMyOFN0QmltSExVbm0x?= =?utf-8?B?TURXZkFCZ0RmQlRBRWE4bFVKNjlMaktvRWJsT05sM1NVZmE0QkROOFdmTDJ0?= =?utf-8?B?RUF1QnhZODltMHg2UFA4RDhLR0FBRk51WmpZWSt6Z21KSTNLVjNXUkFJSmo0?= =?utf-8?B?Vm9uQXlIcG9NMVkrZ2lOR1NCZmMwcHZBc2toQ3lnVG9BTEdaaDRnWkJIOFVD?= =?utf-8?B?WkYwKzI4TkVIZkg5eGlWcEFJdE80amk3MmFQcjcxNk5yalZtQWVMUU53QUZO?= =?utf-8?B?SXBPMlhqNkk2bkJpK0xadlFBV0NtWEtvWXZLa04veVRRWmtRdzJTSWIrV2VP?= =?utf-8?B?aDk0SHVpak5UMC9UQXo0RXlHWXJleHprY3loVmc4WGo0QlQ1NVZ5R1llVy9Z?= =?utf-8?B?NzJCVkxtakwzRDF2b0ZFU1l0ei9zbllqSDJhTXhOa3FNTWdjN0xDeFY0OW5F?= =?utf-8?B?WWdtbit1U21uYTE0SlNZbC8rQkZhazIydzhIYXU0T1dxa0dOc1dMQUs1MkpV?= =?utf-8?B?MG5XYXpWOG9wTTFrSUFWUHVWcWFGWnNVNU5YT0twelBtcDhUdzJQZWx0NTV0?= =?utf-8?B?Vkw2dUlrQ3ZaN0RmcW5ONTBQWDRMaE9qV3hpKzQvTUNuNHoxME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9RUFrKOQ5kc/LTL8ODLEnDCOSsvOsvEcD9bwqYMQzzXkvmL38pDpZu0ehP4Zvdy4ty7M2Lg5Cd8cNcyUtGVkW4u7WLB+Y6CjBl/CuRJypAM5Ag5nD6GZz5JNqZqJt1Z9wVZhm51hDRPCHW32KzfNV6VfoNpPII7DqZZGGRedBMAqFrn8aCLD6yhpUBhLJsFBab75R5o= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2017 11:53:40.7933 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0202MB2557 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2369 Lines: 69 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? Cheers, peda >> + return; >> + } >> + >> lut = (struct drm_color_lut *)crtc->state->gamma_lut->data; >> >> for (idx = 0; idx < ATMEL_HLCDC_CLUT_SIZE; idx++, lut++) { >> @@ -918,6 +931,8 @@ static int atmel_hlcdc_plane_init_properties(struct atmel_hlcdc_plane *plane, >> 0x40040890); >> } >> >> + atmel_hlcdc_default_gamma_ramp(&plane->layer); >> + >> return 0; >> } >> >