From patchwork Mon Aug 7 02:56:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wayne Lin X-Patchwork-Id: 13342977 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DC9F2C00528 for ; Mon, 7 Aug 2023 02:57:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DF77910E1BB; Mon, 7 Aug 2023 02:57:11 +0000 (UTC) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2081.outbound.protection.outlook.com [40.107.94.81]) by gabe.freedesktop.org (Postfix) with ESMTPS id 960EA10E1B8; Mon, 7 Aug 2023 02:57:07 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eHDcMKnI4qUkzqYm3I/ivaeMItW16/HZdwyD3GyPxouFXNfEMBu3rwag3fV6PxP6UWDbZZocLnkglbXAamxtVxoxNm4gGpMxoTZGdEbb3l6WQ14RSFIfhY6wcqCek+dlBZ/Xaa3vxv2asV+QFD3nEpHMa010WlQpkGhRWMGm53Hnm/SV+89wLM78PMuRCXIt89/7PnN1ZYWjtNXFzAUGE96ydGp27txxxGA2Ysb55OHFLOjJkfisotKVmTo+L3f/8SvO/5+2SXKfl2P/IrazJwuygZNcCbb0zp+zbASaujZjGzuWDoEQnMx2cI3Tboc/B+0OiYkYvcstlvIvoCuG5A== 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=U1rLM7pRRdclg7ZxHP0bHOOyThCMqY2rP9cAv9ORl7o=; b=empuiKokm2xZqTLPSLDV4N3lWse1iun3zKWJfKRIXhj+fpaxusLtGURz2P6WIkBqZGA6mdPZ+N9skth2ZR0yRQwKYWURQcWCj49d8wuVcg1KeWKiTnyo1FWuivMRTUS6fmcE4Y7YGhAXsBaPwM9N+6a1OO5Mzho7i246D2A69K/ZWdpSa/QRKfZUm4kk202GkZI1eB6WiIk3zhPjaxyCeK48Sz7oZAqLKfMBwDj6KK9dTaGJjuNC2cN3OTAAX1ytkdYLWhHNLP+mLLv+S7HRks2G0lt7sM3z/CHXgqvJbuPzyKl/cvGcVXBP98jlWjY6uzR8RxIL7RL4k6bP/MOQVw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.freedesktop.org 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=U1rLM7pRRdclg7ZxHP0bHOOyThCMqY2rP9cAv9ORl7o=; b=JTspYG6dfPeB0emSRLizOWVizd/RJos3/hUfvv2WjYFS1G7A5FAqKjVmbcVa93Ahdnqip7QyjYRJD4LXT04VKtOOl00VbhOSiZTArXYnSfuXq5zluaJsnjQf18OeKTsCHdGx3gvR4Y2mt4muyY1Zflvoc2/LIZVAm3iBMxbR5mM= Received: from MW4PR03CA0217.namprd03.prod.outlook.com (2603:10b6:303:b9::12) by CY8PR12MB7220.namprd12.prod.outlook.com (2603:10b6:930:58::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.26; Mon, 7 Aug 2023 02:57:02 +0000 Received: from MWH0EPF000989E9.namprd02.prod.outlook.com (2603:10b6:303:b9:cafe::67) by MW4PR03CA0217.outlook.office365.com (2603:10b6:303:b9::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.26 via Frontend Transport; Mon, 7 Aug 2023 02:57:04 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;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; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by MWH0EPF000989E9.mail.protection.outlook.com (10.167.241.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6652.19 via Frontend Transport; Mon, 7 Aug 2023 02:57:04 +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.2507.27; Sun, 6 Aug 2023 21:57:03 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) 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.2507.27; Sun, 6 Aug 2023 21:57:02 -0500 Received: from wayne-dev-lnx.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.27 via Frontend Transport; Sun, 6 Aug 2023 21:56:59 -0500 From: Wayne Lin To: , Subject: [Patch v2 3/3] drm/mst: adjust the function drm_dp_remove_payload_part2() Date: Mon, 7 Aug 2023 10:56:39 +0800 Message-ID: <20230807025639.1612361-4-Wayne.Lin@amd.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20230807025639.1612361-1-Wayne.Lin@amd.com> References: <20230807025639.1612361-1-Wayne.Lin@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWH0EPF000989E9:EE_|CY8PR12MB7220:EE_ X-MS-Office365-Filtering-Correlation-Id: d9776e8d-bede-43c5-18c1-08db96f1facd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vjSMrQUBXiGe+6Fjz7cMBpYK6KPHw5ah+9hRDa/m0ajMSshm5yRgRM/vjreRtyMzxYj8j8DfExxhjTZK5zMrDY7hkR2hMtXc32ROE3Zs49mwNFjn0Ym37leKs/k/wqAWS/05Ll0rUnin/y9j/7a6xmi+LapmW+L0WT42jLbXyfb1BYhcvJBRSlNLxo6pmiznTm5Wer7n7fKZbXzg1f8mMl7xONTlyku6Y7VyPhebnskXYu3v4c24qmSnWYblAnNGNU+uLOIoIebP5Vz2CQtZtZzz2JfpNDyMuGdRMNA4aOZRa8xB4fd+n/9VTUsXjQAboLaZQMZqWWCkx42cfG1olJWuhEwwJZLAWGR3RadviFi3y8F5X7nA1DttHBeGjAonYRNAysVYljb+rx7tZZlmqTVjFZOd6Tcu1y2bGzzpXTyiu0lXsvIxOwivgnasI1ZJQNH5I+90Uk/6d+XFtM6AXoCqBassJz0tgLGyQwiRU3G8cvY1lBNtERMEHy9LiZ/UBV/iAJ6s0Unvs/cHjvnmmBhbk87wTDcDU1KlVOYHdCByK8KFa7j+x33PB93UeGkzSdzRCFJ2tm307w30aIXdoVrbfVYKNHypoQtdmcXhyTGuPv8exakDNLGmiHjayxvt+P0sKqLi1DaGKQprbPFOttra3GA/2T8fUtiieuR7SzGnG1bzOqBk92O479SuVlgqreBfdDU4Z14VFJTAO/n6gj18I0TjBk0cXYXSqh4iqVljHzHcdYb2AsA/JGgHl1gmXc0CiBL6kbWPAJN8lM4Owg== 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:(13230028)(4636009)(136003)(396003)(39860400002)(376002)(346002)(451199021)(82310400008)(186006)(1800799003)(40470700004)(46966006)(36840700001)(40480700001)(336012)(40460700003)(2616005)(36756003)(4326008)(316002)(86362001)(478600001)(81166007)(110136005)(54906003)(356005)(70206006)(6666004)(70586007)(7696005)(82740400003)(41300700001)(1076003)(26005)(426003)(8936002)(8676002)(47076005)(36860700001)(2906002)(30864003)(83380400001)(5660300002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2023 02:57:04.0524 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d9776e8d-bede-43c5-18c1-08db96f1facd 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: MWH0EPF000989E9.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7220 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jani.nikula@intel.com, jerry.zuo@amd.com, Wayne Lin Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" [Why] Now in drm_dp_remove_payload_part2(), it utilizes the time slot number of the payload in old state to represent the one in the payload table at the moment. It would be better to clarify the idea by using the latest allocated time slot number for the port at the moment instead and which info is already included in new mst_state. By this, we can also remove redundant workaround for amdgpu driver. [How] Remove "old_payload" input of drm_dp_remove_payload_part2() and get the latest number of allocated time slot for the port from new mst_state instead. Signed-off-by: Wayne Lin --- .../amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 70 ++++--------------- drivers/gpu/drm/display/drm_dp_mst_topology.c | 32 ++++++--- drivers/gpu/drm/i915/display/intel_dp_mst.c | 7 +- drivers/gpu/drm/nouveau/dispnv50/disp.c | 6 +- include/drm/display/drm_dp_mst_helper.h | 9 ++- 5 files changed, 40 insertions(+), 84 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c index 9ad509279b0a..e852da686c26 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c @@ -203,40 +203,6 @@ void dm_helpers_dp_update_branch_info( const struct dc_link *link) {} -static void dm_helpers_construct_old_payload( - struct dc_link *link, - int pbn_per_slot, - struct drm_dp_mst_atomic_payload *new_payload, - struct drm_dp_mst_atomic_payload *old_payload) -{ - struct link_mst_stream_allocation_table current_link_table = - link->mst_stream_alloc_table; - struct link_mst_stream_allocation *dc_alloc; - int i; - - *old_payload = *new_payload; - - /* Set correct time_slots/PBN of old payload. - * other fields (delete & dsc_enabled) in - * struct drm_dp_mst_atomic_payload are don't care fields - * while calling drm_dp_remove_payload_part2() - */ - for (i = 0; i < current_link_table.stream_count; i++) { - dc_alloc = - ¤t_link_table.stream_allocations[i]; - - if (dc_alloc->vcp_id == new_payload->vcpi) { - old_payload->time_slots = dc_alloc->slot_count; - old_payload->pbn = dc_alloc->slot_count * pbn_per_slot; - break; - } - } - - /* make sure there is an old payload*/ - ASSERT(i != current_link_table.stream_count); - -} - /* * Writes payload allocation table in immediate downstream device. */ @@ -248,7 +214,7 @@ bool dm_helpers_dp_mst_write_payload_allocation_table( { struct amdgpu_dm_connector *aconnector; struct drm_dp_mst_topology_state *mst_state; - struct drm_dp_mst_atomic_payload *target_payload, *new_payload, old_payload; + struct drm_dp_mst_atomic_payload *payload; struct drm_dp_mst_topology_mgr *mst_mgr; aconnector = (struct amdgpu_dm_connector *)stream->dm_stream_context; @@ -262,27 +228,20 @@ bool dm_helpers_dp_mst_write_payload_allocation_table( mst_mgr = &aconnector->mst_root->mst_mgr; mst_state = to_drm_dp_mst_topology_state(mst_mgr->base.state); - new_payload = drm_atomic_get_mst_payload_state(mst_state, aconnector->mst_output_port); - - if (enable) { - target_payload = new_payload; + payload = drm_atomic_get_mst_payload_state(mst_state, aconnector->mst_output_port); + if (enable) /* It's OK for this to fail */ - drm_dp_add_payload_part1(mst_mgr, mst_state, new_payload); - } else { - /* construct old payload by VCPI*/ - dm_helpers_construct_old_payload(stream->link, mst_state->pbn_div, - new_payload, &old_payload); - target_payload = &old_payload; + drm_dp_add_payload_part1(mst_mgr, mst_state, payload); + else - drm_dp_remove_payload_part1(mst_mgr, mst_state, new_payload); - } + drm_dp_remove_payload_part1(mst_mgr, mst_state, payload); /* mst_mgr->->payloads are VC payload notify MST branch using DPCD or * AUX message. The sequence is slot 1-63 allocated sequence for each * stream. AMD ASIC stream slot allocation should follow the same * sequence. copy DRM MST allocation to dc */ - fill_dc_mst_payload_table_from_drm(stream->link, enable, target_payload, proposed_table); + fill_dc_mst_payload_table_from_drm(stream->link, enable, payload, proposed_table); return true; } @@ -341,7 +300,7 @@ bool dm_helpers_dp_mst_send_payload_allocation( struct amdgpu_dm_connector *aconnector; struct drm_dp_mst_topology_state *mst_state; struct drm_dp_mst_topology_mgr *mst_mgr; - struct drm_dp_mst_atomic_payload *new_payload, *old_payload; + struct drm_dp_mst_atomic_payload *payload; enum mst_progress_status set_flag = MST_ALLOCATE_NEW_PAYLOAD; enum mst_progress_status clr_flag = MST_CLEAR_ALLOCATED_PAYLOAD; int ret = 0; @@ -354,20 +313,17 @@ bool dm_helpers_dp_mst_send_payload_allocation( mst_mgr = &aconnector->mst_root->mst_mgr; mst_state = to_drm_dp_mst_topology_state(mst_mgr->base.state); - new_payload = drm_atomic_get_mst_payload_state(mst_state, aconnector->mst_output_port); + payload = drm_atomic_get_mst_payload_state(mst_state, aconnector->mst_output_port); if (!enable) { set_flag = MST_CLEAR_ALLOCATED_PAYLOAD; clr_flag = MST_ALLOCATE_NEW_PAYLOAD; } - if (enable) { - ret = drm_dp_add_payload_part2(mst_mgr, mst_state->base.state, new_payload); - } else { - dm_helpers_construct_old_payload(stream->link, mst_state->pbn_div, - new_payload, old_payload); - drm_dp_remove_payload_part2(mst_mgr, mst_state, old_payload, new_payload); - } + if (enable) + ret = drm_dp_add_payload_part2(mst_mgr, mst_state->base.state, payload); + else + drm_dp_remove_payload_part2(mst_mgr, mst_state, payload); if (ret) { amdgpu_dm_set_mst_status(&aconnector->mst_status, diff --git a/drivers/gpu/drm/display/drm_dp_mst_topology.c b/drivers/gpu/drm/display/drm_dp_mst_topology.c index e04f87ff755a..4270178f95f6 100644 --- a/drivers/gpu/drm/display/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/display/drm_dp_mst_topology.c @@ -3382,8 +3382,7 @@ EXPORT_SYMBOL(drm_dp_remove_payload_part1); * drm_dp_remove_payload_part2() - Remove an MST payload locally * @mgr: Manager to use. * @mst_state: The MST atomic state - * @old_payload: The payload with its old state - * @new_payload: The payload with its latest state + * @payload: The payload with its latest state * * Updates the starting time slots of all other payloads which would have been shifted towards * the start of the payload ID table as a result of removing a payload. Driver should call this @@ -3392,25 +3391,36 @@ EXPORT_SYMBOL(drm_dp_remove_payload_part1); */ void drm_dp_remove_payload_part2(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_topology_state *mst_state, - const struct drm_dp_mst_atomic_payload *old_payload, - struct drm_dp_mst_atomic_payload *new_payload) + struct drm_dp_mst_atomic_payload *payload) { struct drm_dp_mst_atomic_payload *pos; + u8 time_slots_to_remove; + u8 next_payload_vc_start = mgr->next_start_slot; + + /* Find the current allocated time slot number of the payload */ + list_for_each_entry(pos, &mst_state->payloads, next) { + if (pos != payload && + pos->vc_start_slot > payload->vc_start_slot && + pos->vc_start_slot < next_payload_vc_start) + next_payload_vc_start = pos->vc_start_slot; + } + + time_slots_to_remove = next_payload_vc_start - payload->vc_start_slot; /* Remove local payload allocation */ list_for_each_entry(pos, &mst_state->payloads, next) { - if (pos != new_payload && pos->vc_start_slot > new_payload->vc_start_slot) - pos->vc_start_slot -= old_payload->time_slots; + if (pos != payload && pos->vc_start_slot > payload->vc_start_slot) + pos->vc_start_slot -= time_slots_to_remove; } - new_payload->vc_start_slot = -1; + payload->vc_start_slot = -1; mgr->payload_count--; - mgr->next_start_slot -= old_payload->time_slots; + mgr->next_start_slot -= time_slots_to_remove; - if (new_payload->delete) - drm_dp_mst_put_port_malloc(new_payload->port); + if (payload->delete) + drm_dp_mst_put_port_malloc(payload->port); - new_payload->payload_allocation_status = DRM_DP_MST_PAYLOAD_ALLOCATION_NONE; + payload->payload_allocation_status = DRM_DP_MST_PAYLOAD_ALLOCATION_NONE; } EXPORT_SYMBOL(drm_dp_remove_payload_part2); /** diff --git a/drivers/gpu/drm/i915/display/intel_dp_mst.c b/drivers/gpu/drm/i915/display/intel_dp_mst.c index 5f73cdabe7a1..91750c1dfc48 100644 --- a/drivers/gpu/drm/i915/display/intel_dp_mst.c +++ b/drivers/gpu/drm/i915/display/intel_dp_mst.c @@ -583,12 +583,8 @@ static void intel_mst_post_disable_dp(struct intel_atomic_state *state, struct intel_dp *intel_dp = &dig_port->dp; struct intel_connector *connector = to_intel_connector(old_conn_state->connector); - struct drm_dp_mst_topology_state *old_mst_state = - drm_atomic_get_old_mst_topology_state(&state->base, &intel_dp->mst_mgr); struct drm_dp_mst_topology_state *new_mst_state = drm_atomic_get_new_mst_topology_state(&state->base, &intel_dp->mst_mgr); - const struct drm_dp_mst_atomic_payload *old_payload = - drm_atomic_get_mst_payload_state(old_mst_state, connector->port); struct drm_dp_mst_atomic_payload *new_payload = drm_atomic_get_mst_payload_state(new_mst_state, connector->port); struct drm_i915_private *dev_priv = to_i915(connector->base.dev); @@ -611,8 +607,7 @@ static void intel_mst_post_disable_dp(struct intel_atomic_state *state, wait_for_act_sent(encoder, old_crtc_state); - drm_dp_remove_payload_part2(&intel_dp->mst_mgr, new_mst_state, - old_payload, new_payload); + drm_dp_remove_payload_part2(&intel_dp->mst_mgr, new_mst_state, new_payload); intel_ddi_disable_transcoder_func(old_crtc_state); diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c index bba01fa0780c..0d4286d0d872 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c @@ -889,17 +889,13 @@ nv50_msto_cleanup(struct drm_atomic_state *state, struct nouveau_drm *drm = nouveau_drm(msto->encoder.dev); struct drm_dp_mst_atomic_payload *new_payload = drm_atomic_get_mst_payload_state(new_mst_state, msto->mstc->port); - struct drm_dp_mst_topology_state *old_mst_state = - drm_atomic_get_old_mst_topology_state(state, mgr); - const struct drm_dp_mst_atomic_payload *old_payload = - drm_atomic_get_mst_payload_state(old_mst_state, msto->mstc->port); NV_ATOMIC(drm, "%s: msto cleanup\n", msto->encoder.name); if (msto->disabled) { msto->mstc = NULL; msto->disabled = false; - drm_dp_remove_payload_part2(mgr, new_mst_state, old_payload, new_payload); + drm_dp_remove_payload_part2(mgr, new_mst_state, new_payload); } else if (msto->enabled) { drm_dp_add_payload_part2(mgr, state, new_payload); msto->enabled = false; diff --git a/include/drm/display/drm_dp_mst_helper.h b/include/drm/display/drm_dp_mst_helper.h index 4429d3b1745b..3f8ad28c77b1 100644 --- a/include/drm/display/drm_dp_mst_helper.h +++ b/include/drm/display/drm_dp_mst_helper.h @@ -853,12 +853,11 @@ int drm_dp_add_payload_part2(struct drm_dp_mst_topology_mgr *mgr, struct drm_atomic_state *state, struct drm_dp_mst_atomic_payload *payload); void drm_dp_remove_payload_part1(struct drm_dp_mst_topology_mgr *mgr, - struct drm_dp_mst_topology_state *mst_state, - struct drm_dp_mst_atomic_payload *payload); + struct drm_dp_mst_topology_state *mst_state, + struct drm_dp_mst_atomic_payload *payload); void drm_dp_remove_payload_part2(struct drm_dp_mst_topology_mgr *mgr, - struct drm_dp_mst_topology_state *mst_state, - const struct drm_dp_mst_atomic_payload *old_payload, - struct drm_dp_mst_atomic_payload *new_payload); + struct drm_dp_mst_topology_state *mst_state, + struct drm_dp_mst_atomic_payload *payload); int drm_dp_check_act_status(struct drm_dp_mst_topology_mgr *mgr);