Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45B0EC433EF for ; Thu, 13 Jan 2022 17:45:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237231AbiAMRpI (ORCPT ); Thu, 13 Jan 2022 12:45:08 -0500 Received: from mail-tycjpn01on2125.outbound.protection.outlook.com ([40.107.114.125]:41291 "EHLO JPN01-TYC-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229702AbiAMRpH (ORCPT ); Thu, 13 Jan 2022 12:45:07 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Tmmg56/xi7nPjSzPZtxsarLAzrigp9dXV41LSFHfanztCpbal7F4jJ+DPTphc+1xhWCfaJWwPu++1U/NHfPZn0HukaU0NpxitoEgaqTE3BW5vsJQlPk5/2pVqQiVlsPHktwcbf5TZwB04jZwIT58aPlQoM9iODgkxe/fkmIPPUebUI5UJajpRB1vMsD+v6q+6HjHPyeJdPURT4UphORetb1I5oDvuoIgRBPXKjsaKWT/EqWw9sBvk4k72qAs2HF3ijeCRDBDFrN4eHwgeBbrPgpJ20fNAKSaWs382TRcrbNm1STQoBh46uDaM0LLUfg8s2l9cc/ZzRT4lBx/38KdyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GlvEuCk5diMjU1mmr/Fzxp8HFgEWfHaxvteL6NPrlHo=; b=X8PZ3H0N6wMqhpXgP5NBk0wtmpdnAkJjVVcMocELBY5pkYOxH0A+FBBnfMxb7qNT/+N25dR6eIEWAVHS0Skyoest2SZ6swIwfF8FDjSSA8vy4auqCqiPsPqaxER3K2HDWLs3SHSHrkrHJkHK/K5rmBPNCNH2byYY2JEn8HYdCa08Q2+SjeO/QyzEQtmACO46yMxJmS2L7DrYWISgqCVvKx8TyeOzKhx2w5a22dpzkDHRznVphvwECxrImdSs2VL+prJr+0JcfJxPL+4a2UmYqIBXzb1YqqTB6dBDNtXHtpgOomVbfzxKYbcqJI5Fr83jccGne1+F/ESgvXwyAl2PcA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=bp.renesas.com; dmarc=pass action=none header.from=bp.renesas.com; dkim=pass header.d=bp.renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bp.renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GlvEuCk5diMjU1mmr/Fzxp8HFgEWfHaxvteL6NPrlHo=; b=FNNh6yHJSZuhrmLA+S+rhA0bG/MAGiFyh5+4slhh7T5zOXVzTekWdlU1LymuW8teM79fNWiWvb8oWYIiBXZOv8cRRb22RqkUY2MYk+VIxwK1ETTZR0/FW7M+voMH6M3rDEfNWA7Skhvi0T69aYjhbyLBvX48701hksXB3hJsnl0= Received: from OS0PR01MB5922.jpnprd01.prod.outlook.com (2603:1096:604:bb::5) by TYCPR01MB5951.jpnprd01.prod.outlook.com (2603:1096:400:43::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.11; Thu, 13 Jan 2022 17:45:05 +0000 Received: from OS0PR01MB5922.jpnprd01.prod.outlook.com ([fe80::3847:4115:3fbe:619]) by OS0PR01MB5922.jpnprd01.prod.outlook.com ([fe80::3847:4115:3fbe:619%7]) with mapi id 15.20.4888.011; Thu, 13 Jan 2022 17:45:05 +0000 From: Biju Das To: Neil Armstrong , "daniel@ffwll.ch" , "Laurent.pinchart@ideasonboard.com" , "robert.foss@linaro.org" , "jonas@kwiboo.se" , "jernej.skrabec@gmail.com" CC: "martin.blumenstingl@googlemail.com" , "dri-devel@lists.freedesktop.org" , "linux-amlogic@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: dw_hdmi is showing wrong colour after commit 7cd70656d1285b79("drm/bridge: display-connector: implement bus fmts callbacks") Thread-Topic: dw_hdmi is showing wrong colour after commit 7cd70656d1285b79("drm/bridge: display-connector: implement bus fmts callbacks") Thread-Index: AdgIo2084AmwtmkvSTyKeewhRhjVqA== Date: Thu, 13 Jan 2022 17:45:05 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=bp.renesas.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6b42d319-ae7d-4434-e8db-08d9d6bc6f04 x-ms-traffictypediagnostic: TYCPR01MB5951:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:597; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /R9rAZ2g3l9BSNlDNkkXKn3ZYHfAiDlH/go9izJv7C9aHlOK4BO6GZm9saaSI0Kb3WYKmZRGe1GcVdb8BVoLFaKp+GNBN84YMvIrWk3Qy0F1I8QUvk5tdekxqRMV1Yy75b9CIZ/du9vTjav3GIAY/Dejv8hCGAXkTlcCtVkxZlgdXFwdHGlwzB+4oOCuZNYyFyPdbIO5e5MHQqAnTB/uYN3+gO2KOJkYD0kcl/RuEltkno3hPgtF42qCrIFaOjWmlZQFCntwjYZoDF/I92ZCSrZa9bGvMbiU2Rh1t3wwZUQivGLp8lV33ZPOWIsDGA95RM1bNwz1BVbvS7ITLAtyVY+8OExdGHWZ0mdbdxrG9CnXoKKKynX+axEgU4W8KLz6YWpXSiG5dTxz4vppC2OKecscW/JakzdB9EkOm7X95XzsCdoxkFXBNzIgNRlhH+CJZhDL+3RShxyJ9kUflXJzSJlx19CHBdiTMbtJFDeq0uIxMgthULNXblYA551Eanp+GXCTLXrx3XrAf6qrpYxn5NeIdmyLJvFYj7kEHG2CzYqdAMR+tvwEy0U1P4lwlXp2+YNb/p+U3aSlR1rpsgPs5g3PT2aBbTIiG0OuWWQPp/cqFrv/EsQZc9nu6WhlvvD/4yPxOarylobFEkSfyPj+nCjPVvE0jCw6EyWB0h8l8ow+SfvYzAGlmz54AZwX1n8xuP5bc5JBDpOf//WqEdh/og== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OS0PR01MB5922.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(7416002)(110136005)(54906003)(33656002)(5660300002)(52536014)(71200400001)(8936002)(9686003)(8676002)(7696005)(122000001)(6506007)(2906002)(316002)(38100700002)(4744005)(4326008)(38070700005)(186003)(86362001)(508600001)(55016003)(76116006)(26005)(66476007)(66556008)(66446008)(66946007)(64756008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?a4lcRhYZQLymtQcvirpA6C4iQvybnloFcd8ObMFI1JpFAtDYsXmFYT0Oedcz?= =?us-ascii?Q?9OTfgHlhgs6QVSEEOxTVGLciv6zmjqTX0AyIpozZKIhgKL44+zpJmkamW8yh?= =?us-ascii?Q?CxFZvgDEzs/Vj4G63giuMXilbCCUB7zkkX8EPgi01yoNsbGbyGhlzd4HasGV?= =?us-ascii?Q?HXMAxlmKWAKa5nPiJQzKFafeLDDmPXTrrJ8S0IT6aYFVuayaTchHv3XFshQj?= =?us-ascii?Q?rAcbMVb173CsTZwu1rA5eV9uKx8qtpBxb15xjlafgT2Vcis7RZZq1mh8awCf?= =?us-ascii?Q?QSwH/l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wHJoZAMfGw?= =?us-ascii?Q?lKxD0OnAYLXldTz8yBhrUz7+4y5tXT66PFtfyhapRFi9QUDQwXa+NHRwIsCb?= =?us-ascii?Q?PUyipvT1xPBmyA281E4iPHd6dEx0Abcl1067iUSHBwAZHEDvh6a3nkhN/AvD?= =?us-ascii?Q?xtI8sMN9kxnOUps4NerTtRQTIfAxMLZkfscDncsTc/Zb2PM2piIj1outvVsc?= =?us-ascii?Q?lzOBwfiWnLHGVbeRItjzwwz2wU9KqLynQoQrcR+OpbOXstVVP511JjVzWzOy?= =?us-ascii?Q?3+rMdJ95of2IcP2fLG4v6zvClCmw7yRd9NMtrhMVjDL0Zslf5KPr67lg+zDJ?= =?us-ascii?Q?xZUEFMaKtIbtGPcCJZyEngYgaoms8qlGZr7H1To+QH46KyOj+r3PLhFmlEDZ?= =?us-ascii?Q?7A1UKKbkMMTU5eUuLMMmVvkkMbQnturPYg1vGocb4ykzrQ81wcO5lnZoR5NC?= =?us-ascii?Q?mMsU6jyUckuwbN+pEfjZ0OyVkAwB4kVi8rKi4tnrJS+64e2AAPYzWNRjLROK?= =?us-ascii?Q?Z7pCWA=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: bp.renesas.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: OS0PR01MB5922.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6b42d319-ae7d-4434-e8db-08d9d6bc6f04 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jan 2022 17:45:05.3955 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: gkr6LEXrFt9057qp3TR4d2I7AJI4J6ELz/TlRgh4SREqeN1uGEzH3NUPdu94HTKnoTWNDZYbNQ2EtEPdEifaStACM6v5FMgdi1O678YteYw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB5951 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, RZ/G2{H, M, N} SoC has dw_hdmi IP and it was working ok(colour) till the co= mmit 7cd70656d1285b79("drm/bridge: display-connector: implement bus fmts callbac= ks"). After this patch, the screen becomes greenish(may be it is setting it into = YUV format??). By checking the code, previously it used to call get_input_fmt callback and= set colour as RGB24. After this commit, it calls get_output_fmt_callbck and returns 3 outputform= ats(YUV16, YUV24 and RGB24) And get_input_fmt callback, I see the outputformat as YUV16 instead of RGB2= 4. Not sure, I am the only one seeing this issue with dw_HDMI driver. Regards, Biju