Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2330868lqo; Mon, 20 May 2024 02:25:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUu9SR0w9f+MU5MPPwcinn49LkUmKzAHRyKBXynH6RqzW8ZTQxXbz88iLpvtoIct6BBDAREYO9MU5XKZRVm4z7UsMxbFSSBDP/GLw91AA== X-Google-Smtp-Source: AGHT+IFiDoehWa0hPFowP2LSt6M5wd5q44UXdeToUxopCounsz52L6wYZiHZNYBHQVjk6I0+rVKG X-Received: by 2002:a50:d74e:0:b0:56e:2b31:b111 with SMTP id 4fb4d7f45d1cf-5734d5be7camr17283684a12.7.1716197159616; Mon, 20 May 2024 02:25:59 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-574e9f56482si7140985a12.423.2024.05.20.02.25.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 02:25:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183531-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Td1P9Ika; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-183531-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183531-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2B0091F212E5 for ; Mon, 20 May 2024 09:25:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 264CD1CA9E; Mon, 20 May 2024 09:25:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="Td1P9Ika" Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2077.outbound.protection.outlook.com [40.107.13.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8911DFC1D for ; Mon, 20 May 2024 09:25:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.13.77 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716197153; cv=fail; b=P6I1CoV/ndHwaWPEFVTdTmJJYv/9rRJ0tARqZtUnCf4wowvU8xkTjxgzKK1+TgRGa2AxWIJkFYcIw39rkOdVg2z2TvwpMRDByF0ZM+mnEsI8QOKNRVjVHCTlNiI9QmUODJeldfUwixBrKtTid51d05Po5G+BI/ucp627nZjZB60= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716197153; c=relaxed/simple; bh=rxXIFgLoR6LxVYmkGvrlz+Idhc5ruyhkyTonK/lVBYs=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=kfdwOEqIb7BQm79yjkfZExc+O580pIPLVyz/F6RKAn5kvvFunMqE0k2Fn1VbPrPH8/0bu/lsqJ3sD8IVp9twY/c8LemXDtVJbREb0ykPCvZiVvBFhNqdcjuSVn2UmjKtdH1q3gXmYr37+mXwjAAWJo7SGoFMt/K78kNjyZQV5Cs= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=Td1P9Ika; arc=fail smtp.client-ip=40.107.13.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IxvwWQqekCEEfa/BJB4F2e+4sVigcUl+5yrk7g5NWuMvobLImYiRM7lZHkg/7z6ZPoTG7+wmYxO2C3yYK18sPmFf58pBNrJhQ55/9vNlKDi43yjKrgJP+kveJr44wiGYaR1dotQ6Mm8a1kFDLf8PdhwxfNj/buxQhQCF53XpobZhvx/iaVhlJb0ZZkp/tmemDGgoZxwd11bnqqyzz7Cg4V+CHYa7WfKYZpyP84ZIcAZ3VG/gDmHvKJ8GQYaeXRyZkk0QU1TRm2ezM3jvc6U0TZfAPNGF+aAvNMYDRcgBGovuunt+WQgckz7I68+3wNRZS+i0wdbDuxR7wJx7vRGwzQ== 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=jLDYfw8FIOA2IXt8jrgZGy63ET9E3BtraZLh5uP3s54=; b=O8A0J3LPQ8bb9vBQI2ivDhfKFowYRzFNaPrW4O0AlqxOEyje6/teIH+hcFMWzfQFlukBz1MCyxySfpMoEuWtuG7zjExrvv3o5eD60n+Takvyy6RzYumjY3cUo63XR6rufAmW/2FGVpQsbWaFewrrnwno0M/6Fkz7dsyk04BUn//9fvfGHdzK7KKD4Du0XLJ/YLzoNSKtXXD+bAh95P8F3ZLNpCK6+EZN/gEIDPpiX5RGCRDrr/+4tWqblXds6Yk9w5LGTSrzYDop8RBjhQZ9JwIj6RwYr/BkFhTPHXfAGEDm2EWXgPJrplC0gCcQYY6NycmhDp3RCQ7SN3F9auTW2w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jLDYfw8FIOA2IXt8jrgZGy63ET9E3BtraZLh5uP3s54=; b=Td1P9IkandXX9VWOIuw11OB86cCHEV/42hCE4qnAXY0E3vgpfTezsErhd2dGMIb+YKv24QNrXqyt8mAu0xo2Rm5cj9dkZ6TswY6a4D03KLbTnZO0HIQDW7VZugzSLdkxHa8WSTuZJZTzo7gvgFT4nM+HrZyPTDiKCsxn/lb+MDQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by DBBPR04MB7691.eurprd04.prod.outlook.com (2603:10a6:10:201::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.35; Mon, 20 May 2024 09:25:47 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90%3]) with mapi id 15.20.7587.030; Mon, 20 May 2024 09:25:47 +0000 Message-ID: <2f41a890-915b-4859-8ac9-5436da14fe22@nxp.com> Date: Mon, 20 May 2024 17:26:05 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/bridge: adv7511: Exit interrupt handling when necessary To: Dmitry Baryshkov , aford173@gmail.com Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, andrzej.hajda@intel.com, neil.armstrong@linaro.org, rfoss@kernel.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, biju.das.jz@bp.renesas.com, u.kleine-koenig@pengutronix.de, jani.nikula@intel.com, bli@bang-olufsen.dk, sui.jingfeng@linux.dev References: <20240516101006.2388767-1-victor.liu@nxp.com> <5efe29a7-441f-4d70-b17c-5327c0a9f600@nxp.com> Content-Language: en-US From: Liu Ying In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SG3P274CA0004.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::16) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|DBBPR04MB7691:EE_ X-MS-Office365-Filtering-Correlation-Id: 6d589888-911b-4276-36ef-08dc78aed49f X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|376005|7416005|1800799015; X-Microsoft-Antispam-Message-Info: =?utf-8?B?TUk0Y0Fjei9XYTJUYmJ4Uk5PRWVyWGxxd0tJUEhtSlZwUGRudWhuVGdiU0pz?= =?utf-8?B?am4rcHdIVFJ5WVZoL1M2SnE3eUxRdnJvRmE3b3JvWjAvZVQwVFp5SUgyNllj?= =?utf-8?B?RnBhOXNzMTdBUE1qazdmM2hFaCtKcm5XYjVJVjlDU2poU0JaZjJYZjMwUVMx?= =?utf-8?B?b3BvZUdkT0lDMHRna3EveUQ2eVdYQlgvT0g4TFY4TS9xZndla25XcHQ2Q2Zi?= =?utf-8?B?OE9pbUxjR3dPd3haNmtTSjl4cXlQYk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EhSOW1iSDU2dE1veU1hb3MxVUsvQWxDa0RCa1lrc0dQ?= =?utf-8?B?NWJLOTNmaE1TV3dtU0ZJUnlzcFlzV2FKdGYzaCtIN05mNEttV1Rqd3BiMFZP?= =?utf-8?B?TG8rR2NXa2JPWDdiMGNFOENxbHJOOWptQkg3MEhGTGtjOW56blZTTGY1QXFP?= =?utf-8?B?WkNnVjdGMzQ4ekYxYm1xcFNhL1NNeW1waER6QTA5QzNpMjVHK2drcm92S1do?= =?utf-8?B?eUM2U01wekZwQ2UyMVZmc01NTmJoZTJIbXd0Q2ltQ1RKMEp6eFllTGtMam1C?= =?utf-8?B?b0dxdjJNWDFKTTdpekliQXdJYUdPYXpGcCtvWXJYQnFwNXd4MndmR21nbzBB?= =?utf-8?B?VWhlWDJXSDVEN2tQUjBVMzdZQStyaUZRMXBadDhlanNSSDJ2Szg5bGRqMXJz?= =?utf-8?B?R0E5SWNVNSthQzVsRTFHcjhRR1lpM0ZlUWU3SFA1YzZ4Vm5hRzVPOWErM0ps?= =?utf-8?B?RCt6dVdQSzJZN3RDOUxvUkdSaGJxQnk1dmZkcXh0RVVNc0o0cE9UWXpCNElX?= =?utf-8?B?ZHlMV1VpdGVwZnJ3cEptU2FZelpGc0ZMb1Q3TVpzR3puR2R3S1VtVFl3PT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM7PR04MB7046.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(376005)(7416005)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?V0hzTDM2L1RCRktPZjRjQ1E3aUh4amhwcThzaG5Ba1JVcnB5NkZwM01HWmVy?= =?utf-8?B?UitxWit0UDFLV3d4QzBZRHI0UWEvS1BwaU1FQms4NGhvUVluZGpqOGR6cVZx?= =?utf-8?B?Uko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VsZFNMdHNxVHlEbEIz?= =?utf-8?B?aEhZdVpuTTMzZGs0aDEwZzNEWWErUi83cDAyclhFa1lHOVhwenNiN0pvOHkz?= =?utf-8?B?dXB5TVFwYUxQMFNOb0ptQzlwYWlwdUVFLzducXdYMW9TOTA3cXUvZktJVmRX?= =?utf-8?B?WmYvcjBNZ2VZK3RYVCtJWE1oSlo4SWkvQ2phMGdad3hJMWRuUFkvSk5tV3JP?= =?utf-8?Q?NjwQhIt1laMvvH0D+e0ULX3Ze?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6d589888-911b-4276-36ef-08dc78aed49f X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2024 09:25:46.9755 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CbkWxNxCd3b+bE1oNa1XoeCMPiIgiV/A6mnaTc/lLif0cRNMxMXbF47SzjMtJkg+AXtiLqMcDr9KJqx+byQ1iA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7691 On 5/20/24 17:08, Dmitry Baryshkov wrote: > On Mon, 20 May 2024 at 06:29, Liu Ying wrote: >> >> On 5/20/24 06:11, Dmitry Baryshkov wrote: >>> On Thu, May 16, 2024 at 06:10:06PM +0800, Liu Ying wrote: >>>> Commit f3d9683346d6 ("drm/bridge: adv7511: Allow IRQ to share GPIO pins") >>>> fails to consider the case where adv7511->i2c_main->irq is zero, i.e., >>>> no interrupt requested at all. >>>> >>>> Without interrupt, adv7511_wait_for_edid() could return -EIO sometimes, >>>> because it polls adv7511->edid_read flag by calling adv7511_irq_process() >>>> a few times, but adv7511_irq_process() happens to refuse to handle >>>> interrupt by returning -ENODATA. Hence, EDID retrieval fails randomly. >>>> >>>> Fix the issue by checking adv7511->i2c_main->irq before exiting interrupt >>>> handling from adv7511_irq_process(). >>>> >>>> Fixes: f3d9683346d6 ("drm/bridge: adv7511: Allow IRQ to share GPIO pins") >>>> Signed-off-by: Liu Ying >>>> --- >>>> drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 3 ++- >>>> 1 file changed, 2 insertions(+), 1 deletion(-) >>>> >>>> diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c >>>> index 6089b0bb9321..2074fa3c1b7b 100644 >>>> --- a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c >>>> +++ b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c >>>> @@ -479,7 +479,8 @@ static int adv7511_irq_process(struct adv7511 *adv7511, bool process_hpd) >>>> return ret; >>>> >>>> /* If there is no IRQ to handle, exit indicating no IRQ data */ >>>> - if (!(irq0 & (ADV7511_INT0_HPD | ADV7511_INT0_EDID_READY)) && >>>> + if (adv7511->i2c_main->irq && >>>> + !(irq0 & (ADV7511_INT0_HPD | ADV7511_INT0_EDID_READY)) && >>>> !(irq1 & ADV7511_INT1_DDC_ERROR)) >>>> return -ENODATA; >>> >>> I think it might be better to handle -ENODATA in adv7511_wait_for_edid() >>> instead. WDYT? >> >> Then, adv7511_cec_irq_process() will have less chance to be called from >> adv7511_irq_process() (assuming CONFIG_DRM_I2C_ADV7511_CEC is defined) >> if adv7511->i2c_main->irq is zero. >> >> But, anyway, it seems that commit f3d9683346d6 ("drm/bridge: adv7511: >> Allow IRQ to share GPIO pins") is even more broken to handle the CEC case, >> as adv7511_cec_adap_enable() may enable some interrupts for CEC. >> >> This is a bit complicated. Thoughts? > > Send a revert and do it properly? Good idea. Adam, can you do that?