Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752226AbdFOWkT (ORCPT ); Thu, 15 Jun 2017 18:40:19 -0400 Received: from mail-he1eur01on0101.outbound.protection.outlook.com ([104.47.0.101]:47840 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751546AbdFOWkR (ORCPT ); Thu, 15 Jun 2017 18:40:17 -0400 Authentication-Results: lists.freedesktop.org; dkim=none (message not signed) header.d=none;lists.freedesktop.org; dmarc=none action=none header.from=axentia.se; Subject: Re: [PATCH] drm: atmel-hlcdc: sama5d4 does not have overlay2 To: Boris Brezillon , Peter Rosin , Nicolas Ferre Cc: linux-kernel@vger.kernel.org, David Airlie , dri-devel@lists.freedesktop.org References: <1497518653-2788-1-git-send-email-peda@lysator.liu.se> <20170615113748.1c98f898@bbrezillon> From: Peter Rosin Organization: Axentia Technologies AB Message-ID: <08a95adb-90af-1439-73be-4f992d433d1d@axentia.se> Date: Fri, 16 Jun 2017 00:40:08 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20170615113748.1c98f898@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: DB6PR07CA0091.eurprd07.prod.outlook.com (2603:10a6:6:2b::29) To AM5PR0202MB2547.eurprd02.prod.outlook.com (2603:10a6:203:6d::8) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM5PR0202MB2547: X-MS-Office365-Filtering-Correlation-Id: a0b7c377-e8b9-4e3f-b6c1-08d4b43f7cea X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075);SRVR:AM5PR0202MB2547; X-Microsoft-Exchange-Diagnostics: 1;AM5PR0202MB2547;3:SrkI2ig7NtxGcnT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2k6w6OIMRL7v7AL0rwvEZtXSBEJw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123564025)(2016111802025)(20161123562025)(20161123560025)(6072148)(6043046)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:AM5PR0202MB2547;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:AM5PR0202MB2547; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTVQUjAyMDJNQjI1NDc7NDpmUHJxKzYwNkE4MHNqT0xUTmNxb3Y4cW4y?= =?utf-8?B?YnBPaDlURC9XaVJmV3ZycHdCWDY4TUt3VE5HblFLR2tnUk8wZmlmV1dBZ1la?= =?utf-8?B?Ym5TL0g4TThHTVNqbzhPTEJ3bitxQjYvNU5oODlzaU5kc1JtbTJReHRwQVNm?= =?utf-8?B?MmNFc3R3aXJiNVJDcHJoRTJiZFdHUGJzK1pSS1BucGJ6TlBXaU1xSk5GSnpQ?= =?utf-8?B?ZHRPSnR6NUsrNlJTdi9KWTMwVkhMOGNsK3NVT0RxaW13WjR0OUpXRU5wQ055?= =?utf-8?B?dmI5d2NxUWV6YWpXdG8zTjltS1htMEY2VU52Vkg1RGk2cTZiall5UjFFN05t?= =?utf-8?B?Q25weldBUGVEcGR4UkhCVGJjNUZhaDZuVDd5ZmJVZkFvbGxPb1FnSDRMVXVP?= =?utf-8?B?ZitJcUwvSmlaWWxmMXFsdm5KaDkzc0xSbGpqVThlRkpMV05Kc0ZoUkJNaFNW?= =?utf-8?B?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5JSFJK?= =?utf-8?B?ZTNZbHFWWUhDMjRMNGxGT1ZwTlRtVHVFNzluMnEzRHgxRjNSWlVjdFAyM3V6?= =?utf-8?B?bWkxMFAzMmxDOWRnNDNjaHpMZVFWcDNibXJYbGRYcUJVb3h5Qk1DOGtSY25u?= =?utf-8?B?WmhNOGdCRjNuNU5rQkxERUEyTERxakt5VlJMbnMrOUZia2ZibmtKRVM3L0hv?= =?utf-8?B?UTRia0lseUJEZ0pDR04ySWNyTlUvZS8xU1NybnA5TStqVWlQcGxNNlFXd2lW?= =?utf-8?Q?H3xCDnpwydqBL+HbR8zgA?= X-Forefront-PRVS: 0339F89554 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6049001)(6009001)(39400400002)(39830400002)(39450400003)(39410400002)(377424004)(24454002)(8676002)(50986999)(54356999)(6116002)(3846002)(229853002)(47776003)(478600001)(66066001)(117156002)(76176999)(189998001)(2906002)(50466002)(33646002)(5660300001)(83506001)(81166006)(36756003)(38730400002)(86362001)(7736002)(230700001)(6486002)(77096006)(53936002)(64126003)(31696002)(53546009)(3260700006)(25786009)(4001350100001)(65826007)(23676002)(31686004)(4326008)(42186005)(74482002)(6666003)(305945005)(2950100002)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:AM5PR0202MB2547;H:[192.168.0.125];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTVQUjAyMDJNQjI1NDc7MjM6MStudmJmMVp2M3E2aHhPK1FUZTljcUlD?= =?utf-8?B?Y1paZndiS1llakw0QjFCdzBSNnhaUXUwakloWHBWeStxNEhKdlQ0UTA4WEFQ?= =?utf-8?B?T1dSNFRrWHJtdFM5VXN1SW9FK1FwaFMzK1B2RW9yK3JDdmlwT0UrVWd0S3gw?= =?utf-8?B?MXR3L0pBMG81dGpTZEx2a2ZLR2QyMitpbDJTSDlzWGg4NmNEdm52R0F3WEJ4?= =?utf-8?B?VWx5STZtVlBw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okEI5P7bQliRVBguQJnRtNVr2aMJPqkvjgvlvksAQN5F7moafbRusbtTwU23vkjaIArL9bztRecW84JRgc+umdr7G/0dXJx5L0zXqPx3dZnrLmTy8oAbL6M3ql9j4pOLhrrL8gc6NwQMEa37SdQScQVwWYsZhAj7KuhNUlcuZSIQ+REMDm00R9GoJf4BsmKF/HRxgMpIPhyr2q+JToG8A3jg== X-Microsoft-Exchange-Diagnostics: 1;AM5PR0202MB2547;5:Zkvo+IoJJiQ34QKQDPUqWKxkMZPbFXcpT1cwJ8Lll0neTw0iNAzUW3H5u4dvcqHKHYvTP1NoMdEhnNm3f5h8ajpgat9gvIPvKKN3hLRfBAtYz+WuLjnKGefsC+ZYd/Hg84FuRHDquudGm+93h6HTwNPJDdYgmABo3S6Tq4d19UZlwrbgBzBM18kWEI2kkQWxsqfqbX4Bin6wws0/4QumE3cddFIA0XvQFtu8g7FH3yLtCoXuLaKVZ9I+XxyWNbOhyvO+T7qF30wrnItUYQeyqriFB+DcXT5TyWfN8+zNjxahyNdZIBiQdiiJnQzddFxm5z466mG3kLNL1AHBecFz3mRgbCp7VGAdSOJ8t+SVqEbgu60r06ehS04FwbUDgc1d7OzXLdiu4KSN1norl+B24pL9uRscFulnzEKn2+66H1XZkKISGBoHmcliI3goTUTF/ayWBdWeAPO0fkIFWnOMd5KQ7ghYZ9e2iOq8xTxlwepoX4lZRHLPFfT3cuLAPhhQ;24:ifXlhYVcDNkdqcfH8VUAmphGQwtJpliZWZok1S2VDh8p8bwPxgGAjprPXwzHWsz8UmpGm8HBKMNKv0+MkSDj90GHq6/QMI4qWhHCGVqoJ+0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;AM5PR0202MB2547;7:8w1rucXPsEErl359CJ+bmq8oUwLt8xjYCn+xooDv/OxQIJAm2MYZxJe6RIa5I144+pfJD0OSDs/7dv0cdBxsBiLb/mvzFV6l5fMOd3J4/nhGO5YB4VnBtltUTf4kBq0PFf2fbJgixsd74NoKHRnCkC5lpNS23RVndTCBmWMVxHMNIswSg0HVSy3T1c7l71mymW2tWtUwZczYY5UFdmVh5Raw9sdo43imSHoEuC0lub98EnvQCnY1LT3dlV1QXmw6AF/8uLez2mjrclTsPEYTZ5MezQxMkeBs1LPg4eAU/7+Smeer4IpuKQ54A/tNsJOivLrVVT1Oh6S3aRRgp7f4Kg== X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2017 22:40:12.9341 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0202MB2547 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1915 Lines: 68 On 2017-06-15 11:37, Boris Brezillon wrote: > On Thu, 15 Jun 2017 11:24:13 +0200 > Peter Rosin wrote: > >> From: Peter Rosin >> >> Remove the layer. > > Duh. It was present in the datasheet I had. Just downloaded last > version of the datasheet and it's no longer there. Heh. > Nicolas, there's still a reference to OVR2 in the block diagram > (Section "31.3 Block Diagram"), can ask fix that (or ask someone who > can). Also, on page 2 (the Features chapter under peripherals) there's: "LCD TFT Controller with 4 overlays..." I think it should be three? Cheers, peda >> >> Fixes: 5b9fb5e6c6c7 ("drm: atmel-hlcdc: add support for sama5d4 SoCs") >> Signed-off-by: Peter Rosin >> --- >> drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 20 +------------------- >> 1 file changed, 1 insertion(+), 19 deletions(-) >> >> diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c >> index 30dbffd..888524a 100644 >> --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c >> +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c >> @@ -295,28 +295,10 @@ static const struct atmel_hlcdc_layer_desc atmel_hlcdc_sama5d4_layers[] = { >> }, >> }, >> { >> - .name = "overlay2", >> - .formats = &atmel_hlcdc_plane_rgb_formats, >> - .regs_offset = 0x240, >> - .id = 2, >> - .type = ATMEL_HLCDC_OVERLAY_LAYER, >> - .cfgs_offset = 0x2c, >> - .layout = { >> - .pos = 2, >> - .size = 3, >> - .xstride = { 4 }, >> - .pstride = { 5 }, >> - .default_color = 6, >> - .chroma_key = 7, >> - .chroma_key_mask = 8, >> - .general_config = 9, >> - }, >> - }, >> - { >> .name = "high-end-overlay", >> .formats = &atmel_hlcdc_plane_rgb_and_yuv_formats, >> .regs_offset = 0x340, >> - .id = 3, >> + .id = 2, >> .type = ATMEL_HLCDC_OVERLAY_LAYER, >> .cfgs_offset = 0x4c, >> .layout = { >