Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp382174pxb; Thu, 23 Sep 2021 02:06:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBjWuXuLLTxok60Sn5QGNdAQg8bJzFpQ6ROYpnZ+xnqEuvhwzLtf+HUsxmnpQ4+siKHEuR X-Received: by 2002:a05:6638:224c:: with SMTP id m12mr3148766jas.39.1632388012110; Thu, 23 Sep 2021 02:06:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1632388012; cv=pass; d=google.com; s=arc-20160816; b=PL6A+Ud4/l6KL8Gk8yeRNyBZBkQ32SXHu9Le2nCaSQGvMvDC4Gl0iNBPu1frQxyjvH lePQSFrr2Z83XiHnVZd/Ll0wKqQ+DIjpnEiFNm32YfE1YVD5J9lT4+20JunU3GLpON0G Sdn0te6bnXJIaRvDyifbOKJGjrDIP1HHUd+qpAOrLbGGox9g+Feu2EX99W5oA3gQKMQw XG5jrvJkmdr7K6SfvlBdrnTRSI6+iPqix4FOklxxCLSZaYqVpYhWDFgjhFWTpgN+GIAF SKwU/dylxuLXBimcNkRwP/ZzzRjfDoOrE7hEy4e+N48GE6HjjL6EPorvXf3tMiOvZyw/ Hgng== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Z5IvkNW+PQl5XE+cn9sNi/+NRSmilfcnoHM0rpMFc3g=; b=1KB/J8yXzeoif1W7HCJVVS+QYntfA920qcBmQ2aLER+abqvv/hh39RsouBU60NEaGJ wkg4ctIhUc1COGPQ4IbrFhAwXqsw6YW/bQEN5/LZhM/LYyFaBaA+TUno2QeV/NkI6zd4 /waTSROZSZBdVmu99RSOZe3+bmLCPx6nZGB9avFnPe4ZME42bp4gTGs0qrrL08ojrdgh +f8Kc2UoWQFLUdwSgFGPEHfGv6MzIg/p0/gTi10elb5r4rFhUQi2JeBdycr7w1Rdrx0W ztiII54Ic67WY9Kg1Bs6404XJwXo8sMZBTcN6RNzmWqxupTrOlXHg2mo+fFoV3fFLw6A 1Hnw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=XV303PX1; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q10si6031338ilu.41.2021.09.23.02.06.03; Thu, 23 Sep 2021 02:06:52 -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=@amd.com header.s=selector1 header.b=XV303PX1; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240075AbhIWJFJ (ORCPT + 99 others); Thu, 23 Sep 2021 05:05:09 -0400 Received: from mail-dm6nam11on2086.outbound.protection.outlook.com ([40.107.223.86]:14976 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S239985AbhIWJFI (ORCPT ); Thu, 23 Sep 2021 05:05:08 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ki0+SDyMVV3AfDFMWKdEwnLfQ7C0TwzFLBesBomnbP9DbJN0V7qz+6iUrYGKwIGYNXGdNfEgwi1Us2q7mcG2KZLCAjoPWNf+UfdLh0M+OO99UhXuc3IFuF0owQ9hnzmAb5mbQJnb5bpNQU4+Pk2XVOr2dmOQDcN63AAgA6/0uymJJwLsTz3Y6JYlqnPjG+q9oQprEydc9dYBtJ19octNybRULFhx0ZqKFYe0VUkfW0rGvD6PYIUmLqkL+HlTQ+i+t/0ZBySeBOp/d0nEVSlkvIcA/smoc1bkHsRh9B+nSUd0ouU6FwTJSI56rTGN4afSxBWb1xNWUu1gGTAkaTlujw== 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; bh=Z5IvkNW+PQl5XE+cn9sNi/+NRSmilfcnoHM0rpMFc3g=; b=nyTA9XqWcP2kufF0nfrmZv7oVeGrVyf7pKMB3xsynsPR2GS55cdpAqCVIU4vdVUuMXteWBM13VhDRinOdBI95PSrSNdfrocRdkxDsfqjyLMOH0DDwm20CdulUQVYz0uThixKyALZ7A7kQiLlGuTPirqfzIPBp3rRkLqPfZtcGCGJQDMcitoYj7UyNEXwYRL9jSQLiAlsm1A5+2unHTnHJeQx8RIr5QcRXmyPWVxL1pNTWX5uhBQ14G8dj1i0MRG3XPX09HKFxYL+B0zGmvxB9/t46MMyKIHS5ep9y/q/Qpm+B+DHv6O4rNiH+jOfmtXCDgNSxvQYOVKwEPl42t/GWw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linux.ie smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Z5IvkNW+PQl5XE+cn9sNi/+NRSmilfcnoHM0rpMFc3g=; b=XV303PX18FvfHYqbfVQVvQdiX7WOpuSoZ8xcqbKFTVe5iGlh5ka2M8TTZ5yzQLnk9IuWmv7obaGCyQVa+UZIZlM3hc9nK/Auy3vBWwuqaZq2lb3ldgnS4ipueIQghcw1gyTcvpTviV3B6KEfWsBM7xVXNiJfNzwRiHnfeYV0iAo= Received: from DM5PR1401CA0006.namprd14.prod.outlook.com (2603:10b6:4:4a::16) by BL0PR12MB4740.namprd12.prod.outlook.com (2603:10b6:208:84::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.18; Thu, 23 Sep 2021 09:03:35 +0000 Received: from DM6NAM11FT057.eop-nam11.prod.protection.outlook.com (2603:10b6:4:4a:cafe::a1) by DM5PR1401CA0006.outlook.office365.com (2603:10b6:4:4a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13 via Frontend Transport; Thu, 23 Sep 2021 09:03:35 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; linux.ie; dkim=none (message not signed) header.d=none;linux.ie; dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; Received: from SATLEXMB03.amd.com (165.204.84.17) by DM6NAM11FT057.mail.protection.outlook.com (10.13.172.252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4544.13 via Frontend Transport; Thu, 23 Sep 2021 09:03:35 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Thu, 23 Sep 2021 04:03:34 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Thu, 23 Sep 2021 04:03:34 -0500 Received: from jasdv6.amd.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2308.8 via Frontend Transport; Thu, 23 Sep 2021 04:03:29 -0500 From: To: , , , , , , , , , , , , , , , , , CC: , , , "Yipeng Chen (Jasber)" , Roman Li Subject: [PATCH] drm/amd/display: Fix randomly flicking on overlay with enabled ABM Date: Thu, 23 Sep 2021 17:02:32 +0800 Message-ID: <20210923090232.61559-1-yipeng.chen@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4ee36f0d-0d0b-42ae-4146-08d97e71069e X-MS-TrafficTypeDiagnostic: BL0PR12MB4740: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2887; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Q0TQyc+kODCMTuTwfSA3lsIiWmMC+dPz3epT/Vru8rd7jUR3MeCnz88sNyiz7qawobBbLZUkFcvCdg49W8XpUTpg0mXQpFWkoHftQcH1zvk4XPJA+b+HvIIcqKgaKZpLfP83QdCVtECjStmresMR0Jr71D6tXbMQJEKiF++qv7NR6S/fM2wZRUjH5IlFrfGByH/8N4dGcZtHr3ZcTQ/a0sU5LEYa/Rq+J93RC/gSrAuM+pBsJ9Da9utWM9jbscnlQ3kXU91k5EiHG/e7h7g5rx9fV1PlzYiZWDsU9+FrhJj48oIykEevKMb6GYaEXSzyGoaBINus5WEnerJbbknP3zMn2kDIUBHK3ATErCRCdTyaONAT3R7C1uBrwzqwfn5JcycH7e3OWKEIFISSw7CoLD6xg5WzLOqgLFE3U0j5vxaPccwB/4r8LXwLB4c7wxDNMIYujTN1Oev7cvui6oANr8Fw66+LwuMGz8Na3y5PIYzvrVF+vnmKBekrv4B9DdwUJExbvbFNhuMH+2qrpNBsqU4MK66TzINjPvDXwITK4yDXRcTEvroWgTRVSwkGpttHsAUHOo+vWBJ8FcIrR/oYM4EI6OV2gp01pejn0fSX1HvuQ1LnHqBtV63TtBDTL3s6irr0ab1VvkCe3kh3SX9z2UYsTH0oSmKotYdK7Tmn/a5L7vciUGepkCsAJvA/8DMrUWjQGj8NjjFWM5wdGjcTPO1s6pExE61sb939RhAeMYmYxaOs1TWxL8Eo4gTKjTtb X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(46966006)(36840700001)(54906003)(2876002)(1076003)(316002)(426003)(4326008)(47076005)(36756003)(2616005)(2906002)(508600001)(36860700001)(356005)(110136005)(8676002)(6666004)(186003)(6636002)(8936002)(81166007)(921005)(7696005)(83380400001)(82310400003)(86362001)(26005)(5660300002)(336012)(70586007)(70206006)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Sep 2021 09:03:35.6235 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4ee36f0d-0d0b-42ae-4146-08d97e71069e X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT057.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB4740 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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