Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp545011pxb; Thu, 23 Sep 2021 05:58:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkN9leW3ayMqKWqZ+GIazh4Hlo6fhRsewovUXM+MvCQydX0eLEe9uIFusN7pUfhdtSWL2a X-Received: by 2002:a6b:d915:: with SMTP id r21mr3721317ioc.76.1632401888975; Thu, 23 Sep 2021 05:58:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632401888; cv=none; d=google.com; s=arc-20160816; b=EAdftKdv8MUVa7y477T7kbu5rYAHVQvOltE2hLDhOUY/ZCNcV7pgZxzGRGdZ7ZrTSH MtkTEdidejg2zscXB6Obu0oLg/wZ1Chc69IRPVh+h23R+O2nNIRRlnyyjeXwRuZINK/N KTbeQV6Xv5dOpkVVotG+uNqiMKyPiehQwP7dwW25ASBgc0vxmIBQc0lJA0Is01Vkwy3Y S57CqCl8CoIuMf+BMDAR554XxMODSsrSC0O+aoMVaAKw5TPWkgsl5Pf7fBwTIJon/8+U 7nc/wTk1Ie/G+8nUL1IuHZfMZghPx4cDeX/Pr9GuiSsGT7QyWTNyJsPCWkSNdFasq4rW PFRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=GVXu7kjSXu+P/8oGmOO5Kp7VFy7hdCAFq/98GJCuVfU=; b=uWwYP0aDQoWKjP8TOhk+INuQJ2qtPkkyNKuGaVM5z+TI3UHx/ybTsjvr7rWM+jGl3t /Fu7odmvAva07R15XS9TkbKXerf7GFXs7o8pKI6hr53JZFayIETOdusSL8OImaZJgiNI IgHvW/OTfhXLogL+Hi84Zq8UHxTrhBTtqORWT58rKaGGR+9dP+HiVmm4eNIo55L6JDPw Tb1lX7CYvaVv6el82WS0J7ZeQ4UEMSND8Jx4ICsJRnCh34hjiNa1b73M0MSJqmNgIZT+ f9gw6oAClkET15mqK/agUZMHOcf/siexr4o1xD4A77iywx72m8XTh/9vV6MnbqK5DpN5 HSFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gNu2dzSv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l13si5939591ilh.150.2021.09.23.05.57.38; Thu, 23 Sep 2021 05:58:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gNu2dzSv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241133AbhIWM6L (ORCPT + 99 others); Thu, 23 Sep 2021 08:58:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240787AbhIWM6L (ORCPT ); Thu, 23 Sep 2021 08:58:11 -0400 Received: from mail-oo1-xc29.google.com (mail-oo1-xc29.google.com [IPv6:2607:f8b0:4864:20::c29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A996EC061574 for ; Thu, 23 Sep 2021 05:56:39 -0700 (PDT) Received: by mail-oo1-xc29.google.com with SMTP id n4-20020a4aa7c4000000b002adb4997965so421271oom.10 for ; Thu, 23 Sep 2021 05:56:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GVXu7kjSXu+P/8oGmOO5Kp7VFy7hdCAFq/98GJCuVfU=; b=gNu2dzSvL+TfeLTj9hs9GpoKvriXkgOe2vM7Mq4Y/HBCJ5pWQxL5fr7L72Ldx2188w 7J5iYp7gQGXBOZ7wkPQ2OZs9ItXBkJLc1aEWmsmxt0w9NzRjq1qNdgt6p+u1zEkQ8UPe nMjuluGGLMbjtUtl8a3Y2yC50cwpeZQSVQEf6eG96KAWm5TmGxgT4xJocX40XSBPVadp hoehV+YiPiKZ62wihEw7M4U6+m57nFpOwkJDK4xgHOQX6T4tBn4FJSCLfxHJtrUtAk7W Utj0Ao8MRe0YkU1+bdUZ9A+3wZLWDigymvsvav6IcU+cOaNJBWQpte+NyF3Fg6EvsZ9S F/SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GVXu7kjSXu+P/8oGmOO5Kp7VFy7hdCAFq/98GJCuVfU=; b=PGTcSsIiWycescmTZlqrmTpkMUXelTS3yKg8geyjhXPP47+nR2RejWwE9aHEERKy9J QuUWjdlYNPmqAss8lDPJdTEB/80tgqYm789nwG+89JgkRbZMW5JKQ66sYWL+q973tgpL 8fhjFy/6DlQvty8LbyYPvy3zTht85iyb4BopFVKvRMdQbAi/mMaeZ4RkvY1ZKWY5y3jd WzNaRUT2sl35IpwwRKHVwBhrigX92CleLCagRKQywJhAs22iOj2eBY7LEOnZl3qekHzy nCTSiBSKhZv8X0RpDedRPQsgVjLjGnqf5yR9alc4bSp9DnyV9jF+4wIjbryD3g92aNQs 9G9Q== X-Gm-Message-State: AOAM530b0hRRGMMjLVmWYbNDlaV+UagYnBN+BTrXZCH9p/8BazrTJEaM gNgt6kLDkjTjN8FZkrxVH4gkanNqA7XPNQv14ok= X-Received: by 2002:a4a:d794:: with SMTP id c20mr3562114oou.23.1632401798852; Thu, 23 Sep 2021 05:56:38 -0700 (PDT) MIME-Version: 1.0 References: <20210923090232.61559-1-yipeng.chen@amd.com> In-Reply-To: <20210923090232.61559-1-yipeng.chen@amd.com> From: Alex Deucher Date: Thu, 23 Sep 2021 08:56:27 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/display: Fix randomly flicking on overlay with enabled ABM To: yipeng.chen@amd.com Cc: "Wentland, Harry" , "Leo (Sunpeng) Li" , "Deucher, Alexander" , Christian Koenig , Dave Airlie , Daniel Vetter , Qingqing Zhuo , "Cyr, Aric" , Anson Jacob , Bindu Ramamurthy , Martin Tsai , bing.guo@amd.com, roy.chan@amd.com, George Shen , Joshua Aberback , Ashley Thomas , Jing.Zhou@amd.com, dale.zhao@amd.com, amd-gfx list , Maling list - DRI developers , LKML , Roman Li Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 23, 2021 at 5:03 AM wrote: > > From: "Yipeng Chen (Jasber)" > > [Why] > Enabled ABM (level != 0) would raise short pluse irq DC_IRQ_SOURCE_HPD1RX > randomly with PSR error LINK_CRC_ERROR. Actually there is no hot plugging > on EDP panel. After correcting CRC error, there is no need to send drm > hotplug event. > > [How] > Returning false would skip doing hot-plug when handle_hpd_irq_psr_sink() > handled irq. Hot-plug process causes visible flicking on overlay. > > Signed-off-by: Yipeng Chen (Jasber) > Reviewed-by: Roman Li > Anthony Koo Each reviewer should be called out on a separate line E.g., Reviewed-by: Roman Li Reviewed-by: Anthony Koo > --- > drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c > index 1e4794e2825c..9b9fbe5e9bd4 100644 > --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c > +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c > @@ -3007,7 +3007,7 @@ bool dc_link_handle_hpd_rx_irq(struct dc_link *link, union hpd_irq_data *out_hpd > > if (handle_hpd_irq_psr_sink(link)) > /* PSR-related error was detected and handled */ > - return true; > + return false; > > /* If PSR-related error handled, Main link may be off, > * so do not handle as a normal sink status change interrupt. > -- > 2.25.1 >