Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761311AbbKUPW4 (ORCPT ); Sat, 21 Nov 2015 10:22:56 -0500 Received: from mail-bl2on0099.outbound.protection.outlook.com ([65.55.169.99]:19328 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753074AbbKUPWy (ORCPT ); Sat, 21 Nov 2015 10:22:54 -0500 X-Greylist: delayed 3623 seconds by postgrey-1.27 at vger.kernel.org; Sat, 21 Nov 2015 10:22:53 EST Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Christian.Koenig@amd.com; Subject: Re: [PATCH] drm/radeon: Retry DDC probing on DVI on failure if we got an HPD interrupt To: Daniel Stone References: <1448034740-30193-1-git-send-email-cpaul@redhat.com> <56507E0F.7030009@amd.com> CC: , Alex Deucher , David Airlie , dri-devel , "Linux Kernel Mailing List" , Jerome Glisse , Benjamin Tissoires From: =?UTF-8?Q?Christian_K=c3=b6nig?= Message-ID: <56508C34.1030909@amd.com> Date: Sat, 21 Nov 2015 16:22:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [2a02:908:f673:17e1:3543:c961:35cf:61cf] X-ClientProxiedBy: DB4PR01CA0023.eurprd01.prod.exchangelabs.com (10.242.152.13) To CY1PR12MB0134.namprd12.prod.outlook.com (25.161.173.16) X-Microsoft-Exchange-Diagnostics: 1;CY1PR12MB0134;2:ZYUqfMbqZI0E2qVeNvmKqnRUKcA252cmfJgUgFdfBez/p8Yt0Rm25noU+R0O85pjw5dHcmNkt4Q7rcE+9Ds7EW8IyPSYyCprlEdsG/iJBntIyWCzCmmRQOPEuuZlDxizcAzKTomO590gSue7E+5OdQ==;3:foE2ISaXOr1V374wPCizmnhqEcaqq93ORy+w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LGr9No8euYENFa233jh+eBD7HXK6ixAq/VpYt08dO3jYwaw2LqSWtjCbTejOQNGciWToBBQ4LLijnspP2VkLzZVK4DOtT9ioL+4ZtJQ72lUl15F75T4UWiL56ErMfq07WflBG6eBEvvPOgpbDGH33jqbF0JMm3IS+cLTZH9x43sAGURghTjec+b8J+C5jwsbljtep4ByhF6YPt9zI4jjAsKqmEH98MAP3y6EjZgoMich0x4+no22B3zyd+1IbRmDJAM22qo2dYfqTREHesemW6JEkbIdDdrRusI+S1ALRFrSmPYPmnUsnwqpmxTHa4M= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(10201501046)(3002001);SRVR:CY1PR12MB0134;BCL:0;PCL:0;RULEID:;SRVR:CY1PR12MB0134; X-Forefront-PRVS: 076777155F X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(199003)(189002)(24454002)(85664002)(5004730100002)(106356001)(586003)(5007970100001)(101416001)(40100003)(92566002)(81156007)(122386002)(87976001)(99136001)(83506001)(5008740100001)(59896002)(36756003)(23676002)(65816999)(4001350100001)(6116002)(97736004)(50466002)(77096005)(2950100001)(33656002)(64126003)(189998001)(105586002)(50986999)(19580405001)(54356999)(76176999)(47776003)(86362001)(42186005)(19580395003)(65956001)(110136002)(5001960100002)(5001920100001)(65806001)(87266999)(80316001)(3826002)(5001840100002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR12MB0134;H:[IPv6:2a02:908:f673:17e1:3543:c961:35cf:61cf];FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjEyTUIwMTM0OzIzOmxkWG1VS3BwTFB3TW1JZms5M0ZWUktzZERa?= =?utf-8?B?bTVkN0pjUnVKNGk3bXJEUFNROE1tbDdjM2EzazFtSFhlaUdB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gLM/BXNFm0fh/R4X/flxpK+xjDxZlmII4aX2W7Kgx6HtbOiKdv2Byc2BEXRGgAfZK1/wyw==;24:HUShEo+aNPyum/K46JDrnXNzARCvS/ZGMrFdPkd0J+I3dQ5vM4DoHaHRevnQsGF1uNIxic6xxBbJ3/KnUaoHe5GJrxJs04KIlc7bv7JFb14=;20:aRH5oT9/9fG41Utic7B4fehzX/L98ORwejhzWi5XM/WFMJ+Zl9SXsb8ZJwd2caC3VrgJJuYUSSdIDkBbRHMWtOWBYD/TyX9CgiLoCx4dwJzfmguu+GZPvP5o4OZSeybV3YHJ/883oopsleG86RfS13MASjW520CG32EK5WY+dM34irLKFDLVzYbmKiZeq2n3lb9SpCUtckv1e5zUqwAfXwjqoUZzJSu30nb6Qh3JiBkvrbIHA05prldb6PqRKGr0 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Nov 2015 15:22:47.4354 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR12MB0134 X-Microsoft-Exchange-Diagnostics: 1;CY1PR12MB0043;2:He8pqAUMgvm5XI7G7SVJZk4ExhIVg2jw/w4Q5DMDqkKGJrEhYhJZBgMbUdcJJg/OILJgrFiFDHzqzYkXyE+X1Ad2YBVU2f8dQu39X5WSIBFGcX+0UzYgr1syrWOwfkr2r9NqUdfcnqZ588f49FqfWPOUhg2I+ZhEpSbDd3WuOm8=;23:2Jx5uL6VhLJYgXoRV8O8CY+xR1vDYRTf+y5owK3kuENajGf1g7+X3lIOqS8SaYpFTzl/9DS7PpQ7IiuBB+56YVVfzb+HVGw6bjkEhEFlTpjP+m3zu8LqIDS1YUPkB6XTR0tM/FFRW8SI0GM5rCBvtzS8sywsCjf6XYhfsI3GGVh/sb7/3HPAIo+/B4/078tY X-OriginatorOrg: amd.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2145 Lines: 51 On 21.11.2015 15:49, Daniel Stone wrote: > Hi, > > On 21 November 2015 at 14:22, Christian König wrote: >> On 20.11.2015 16:52, cpaul@redhat.com wrote: >>> This is somewhat rare on most cards (depending on what angle you plug >>> the DVI connector in), but on some cards it happens constantly. The >>> Radeon R5 on the machine used for testing this patch for instance, runs >>> into this issue just about every time I try to hotplug a DVI monitor and >>> as a result hotplugging almost never works. >>> >>> Rescheduling the hotplug work for a second when we run into an HPD >>> signal with a failing DDC probe usually gives enough time for the rest >>> of the connector's pins to make contact, and fixes this issue. >>> >>> Signed-off-by: Stephen Chandler Paul >> >> Yeah, that's something I always wondered a about bit as well. >> >> Debouncing is something very common done in electronics, but as far as I >> know the HPD pins don't necessary have an RC circuit so we might need to >> handle this case in software here. >> >> A delay of something between 10-30ms between the last HPD interrupt and >> further processing of the signal doesn't sounds like such a bad idea. >> >> Retrying on the other hand doesn't necessarily improve the situation cause >> the delay introduced by this might not be enough. >> >> So I would rather vote for a fixed delay between an HPD interrupt and >> actually starting to process anything. > Yes-ish. Debouncing is useful, and ignoring buggy devices (e.g. those > on marginal power) which send you HPD storms as well. But DP relies on > 'short HPD' pulses which can be as brief as 2ms. So attempting to > totally debounce all HPD won't work. Well the discussion so far was about HPD on DVI only. I'm not so deep into DP, but why should it uses HPD pulses of less than 2ms? Regards, Christian. > > Cheers, > Daniel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/