Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1000074rwb; Tue, 4 Oct 2022 13:54:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7xGKByXjzsav/n6ywyUODB34Q+NXM4bRccVA+Lftuxx+oRu7HjZIHfILBnxtwVlLPrUp53 X-Received: by 2002:a17:90a:8906:b0:202:d763:72ab with SMTP id u6-20020a17090a890600b00202d76372abmr1523679pjn.56.1664916863576; Tue, 04 Oct 2022 13:54:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1664916863; cv=pass; d=google.com; s=arc-20160816; b=lk9fPjkPPkVMRW2nLsg+mvaY5MCjztC2/1slPmo2f7Uow8kbIgZLx/6vjIwa1nzUXA 3HIokKkWxnm3Ue5mFa3Gqn2+jdbyZPp3u77ZQm+CMZHT77ja0AjwsMgecU+vf5CG50Of mDXEO7KN3umw34cFpADATpzBYPZrLo+4/T5MNNRQBunYWgtRd1enpC+EK58xLqRvEUGV LHKxQv0YtWNIvrAavSWPZQsRHcyWNu/GtLrpA3DcyWitN5eglb5hNS7ut5VopckpCu1q /nxKl1MALPuQKAws5CbzwkXwmTlQoQgbWHzgXnWJ2O3nhuIoLbcC123zyiihKk5jNjGK EJgw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=ks4OwvTKiwBw2ZIwzAKvBlF+TC6QLTJM4j3Jgj4qEfg=; b=SI3jt2NQL/98/6cciBYrSvK/z4XijNowQYADFBgNNXaQjGZEDZgvPjesdTHrNCkROB Oc2wl1dC4Cb7V/h/1VivyvXLIqGeuwweJd5QwsKiilsF3vNYcDwx44nec4HoZn1hXK6P 85aeMr057CYUFJuFzSvaycVRNnk4fEo5MD5mKMrWa+9znxLRHKuWtOhO4Ok9Z4s5LqBF KJuC2n3QqK2HGsxzMGhq6pBvCWqYmqbxGz83S1Huh0H71YwaJHElAB3vdMVLOOqwj8Yd KBQie01oleAKehBx+5dEmdU0cD19Zi+mIMEBGaumtk9hMD4KtndK36Pd/0cweu9qguft ShVA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=qT2UI+J5; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i64-20020a638743000000b0044af51e7d4bsi8361904pge.75.2022.10.04.13.54.09; Tue, 04 Oct 2022 13:54:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=qT2UI+J5; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229508AbiJDUqy (ORCPT + 99 others); Tue, 4 Oct 2022 16:46:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbiJDUqw (ORCPT ); Tue, 4 Oct 2022 16:46:52 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2057.outbound.protection.outlook.com [40.107.223.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37FF2696E5 for ; Tue, 4 Oct 2022 13:46:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b2xVFTq9SNO7TFCg/aqpFv6VzKANSxYuww9Yjy9SBKW8EIoceAx71u7fvIuIX9iKVcZLYZIPmcdOqo3TpuI9No9U3fdjeRSN9w/H457C81YNMjMnqgUlO4As45wtwvLu1bcJVUQ0Ud+frikmZWKOga5OxVIVRbNM6vzASgLCog/SGAl0pwFuDxVlClhgGeaQBjEGtEEQybRRqqBcbIFaCYZlb9zsMbiSwxHH4zwVyI6h+QgfbgyX1qrS7V06p9XfoB/hFjdVqip47yuuhz4luUEesKn3/XlbRPmwd7kL21EG44WsmIlrSerIAl/8G3u5PjapEDscktn1HtK8vcNC8w== 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=ks4OwvTKiwBw2ZIwzAKvBlF+TC6QLTJM4j3Jgj4qEfg=; b=UejUsGx5WlnJuNhnncTTxGSEFU9WoMnkAXpzfv+hztUqGaCyYcfDsTUFX6pyNGxVcR0/okask7aMGYllovsPSO5hNb5YFPNDCjG2dhi5jiBiENNjvh2xr0Mxv5fcjnO0uPA/zhscCyPDDjVsfnget0rNIIupTcNE85PoU2J1vDRSzCH0hYA+GD0LCV0BFOKHLihgANrh27npjzE5CgWkiTot9jrTBIDkqtYR0jRjC75C+42tKgkH0LCKu/TQf1Bjca05+GTI8BEyHJM2MSrNPt9+HZpidS+vUloRyvx0tGqrbheOcPQfiGXXNXwMKR1KVOGRx9nlppOtUAolynv9Rg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; 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=ks4OwvTKiwBw2ZIwzAKvBlF+TC6QLTJM4j3Jgj4qEfg=; b=qT2UI+J5X2Vj6dYg8DFPOJ75xJwOr4c/2QGmJzT99ZWIHFnZqWXCmFl2ykaPcpSW6PAL0ejosBIT3JbpVJpaJ0XxEzNwwOBg//LjFQvNl9XUGnyjN8MYNXB1jv6G3UzvYqXud35x8iDEexwEGT8ZFRsKvmVirfF6028Wyu2gr2Y= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from MN2PR12MB2941.namprd12.prod.outlook.com (2603:10b6:208:a9::12) by SJ0PR12MB5609.namprd12.prod.outlook.com (2603:10b6:a03:42c::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.30; Tue, 4 Oct 2022 20:46:46 +0000 Received: from MN2PR12MB2941.namprd12.prod.outlook.com ([fe80::588c:ac12:d318:bfee]) by MN2PR12MB2941.namprd12.prod.outlook.com ([fe80::588c:ac12:d318:bfee%7]) with mapi id 15.20.5676.031; Tue, 4 Oct 2022 20:46:46 +0000 Message-ID: Date: Tue, 4 Oct 2022 16:46:44 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH] drm/amdgpu/dm/mst: Fix incorrect usage of drm_dp_add_payload_part2() Content-Language: en-US To: Lyude Paul , dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org Cc: Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Fangzhi Zuo , Wayne Lin , Ian Chen , Mikita Lipski , Hamza Mahfooz , Claudio Suarez , Colin Ian King , Jani Nikula , open list References: <20221004202429.124422-1-lyude@redhat.com> From: Rodrigo Siqueira Jordao In-Reply-To: <20221004202429.124422-1-lyude@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MN2PR13CA0008.namprd13.prod.outlook.com (2603:10b6:208:160::21) To MN2PR12MB2941.namprd12.prod.outlook.com (2603:10b6:208:a9::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB2941:EE_|SJ0PR12MB5609:EE_ X-MS-Office365-Filtering-Correlation-Id: cd2af34a-b5a1-40f1-0c50-08daa6498dac X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HKLwt0E7jjqPDQmxpWPq2P0tP3lRvA87JhK8u4E11sx/jAm2EhLDMrr3tlrHI/RVkMn5ryKI7V390O/O7qpxqAJGx0SxdYa8i/ceHZ4T2k61B4vsSmUcPmYrDRFOcb6nq+hNfYow51EVTL4rnFtrFFIUosLyQDDGavDa20g4rDWTPen6mTdV5LkN+q8cbZtr2q6+35IKvbWe1RzOw4NlzNH8CO1Nrt7rfuiMFmylSQqcW89yZfm5aFSIBltPIUazGVf3zFg+FTZU1kiC2qzq7zycy7zoE1nB2sL0nISvg9r+VwaQxsXxrVgZMWZhFxz0fj1v4en+S9lysGq7CXLclarqVVjtcuU5umTf/IXXVJX2tLBcp97jw8IygEQuroQJcU5pp6Pvl9rRKsiKTcHp3XUa7oBvBlXc2KSxnfBE84HzbIfoF/4gOAIwgDJlCyOwY06C59FnTxHF7NKZrHIuIqg5bASeDth9YXN43H6ZpqZuqu94CtIKs2s/0KyF61IIuO2m4A+6dBwhB0KNcOgn4jX2TPkU0GX50XxvoetaV5B/pizTRZhLTFCy9/aQgRDNT1UER0oSTXFnWFXq3KH2oCAoEN7dYRxkP9LeqeoaW0YL2DhnGItuLO06kSaswdzXpfe8HWG6OOrP8eg84OBXIMA1I7fTPAnXQvqyb6/OItAkRF77SeZDY0QXUIJ3CkpJ8tm8vxykPVXf1HbW8fy59XnkFiTmeQ+wtJIbxUmZJ/kY9uYjUisXV+zjvTVH4OO/ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB2941.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(136003)(39860400002)(346002)(366004)(396003)(376002)(451199015)(4326008)(66556008)(8676002)(66476007)(186003)(83380400001)(41300700001)(36756003)(66946007)(6512007)(966005)(6486002)(38100700002)(26005)(53546011)(478600001)(86362001)(31696002)(6506007)(54906003)(316002)(2616005)(31686004)(2906002)(8936002)(5660300002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?amVMczhyNnZrUUVONzZoOHI0d0xTYlVuOG1PbFJDczV0NnlHRUJmMGtJSnRM?= =?utf-8?B?bjdVa09ocUZEb1piZzllYlBBK2ZnM3B3YnNHRHEzSnBSZlk4R3NadVN3TDVs?= =?utf-8?B?OUlFakszTUMxYzkxSDFhZk83MXZOaFY5Si9hZ1NEdkpqMkRaRldFdnNtR21F?= =?utf-8?B?R2hxNGRJWk9Xcnh0NTBLa3dKejZVOVFpNWQ3eS9XQURZWXBSTFhYK2JLcHZV?= =?utf-8?B?d2hKQ3RXaXY2QTlhZnEzMHRZQXAxaWZBbTZtR1RzYWxEQVdqd3ZLR3IzYWhH?= =?utf-8?B?aUtNb1FxUVB4RHZtZkRtYkRBTzd0YXByeTJBNnJkMVNYWm10Uk9OY1JNTjE3?= =?utf-8?B?bWVCb282Si9wdFBnd0l6VkZ2RXdnaURsN2ExTHMwUHFRdU1OMHBtclFWOVp6?= =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-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB2941.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2022 20:46:46.7595 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: p4Aw+IUpYpvt2/CziotvdWirUne9LQVozRkIE8xf2OcNdCelcD6CjH6bEbMFepvbSvonla+dpoLSYTJ8eRSe3g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB5609 X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-10-04 16:24, Lyude Paul wrote: > Yikes, it appears somehow I totally made a mistake here. We're currently > checking to see if drm_dp_add_payload_part2() returns a non-zero value to > indicate success. That's totally wrong though, as this function only > returns a zero value on success - not the other way around. > > So, fix that. > > Signed-off-by: Lyude Paul > Issue: https://gitlab.freedesktop.org/drm/amd/-/issues/2171 > Fixes: 4d07b0bc4034 ("drm/display/dp_mst: Move all payload info into the atomic state") > --- > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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 b8077fcd4651..00598def5b39 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 > @@ -297,7 +297,7 @@ bool dm_helpers_dp_mst_send_payload_allocation( > clr_flag = MST_ALLOCATE_NEW_PAYLOAD; > } > > - if (enable && drm_dp_add_payload_part2(mst_mgr, mst_state->base.state, payload)) { > + if (enable && drm_dp_add_payload_part2(mst_mgr, mst_state->base.state, payload) == 0) { > amdgpu_dm_set_mst_status(&aconnector->mst_status, > set_flag, false); > } else { Hi Lyude, Maybe I'm missing something, but I can't find the drm_dp_add_payload_part2() function on amd-staging-drm-next. Which repo are you using? Thanks Siqueira