Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp100713rdb; Mon, 15 Jan 2024 13:52:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IGUasdZieAwUdoHlKhyYPz0OArgBXwSzrXkx49r2J7c9oEk9dIMVXoX1/tewkcHaDTBA7i2 X-Received: by 2002:a05:6a20:7f8e:b0:19a:757e:f0ef with SMTP id d14-20020a056a207f8e00b0019a757ef0efmr8609713pzj.47.1705355530535; Mon, 15 Jan 2024 13:52:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705355530; cv=pass; d=google.com; s=arc-20160816; b=OnwFEDGk1+aB7sgqUwLCKE4i1HRiID6xlShcEgQ+1VvlNOp9sL9OMGiSo27j+95mqI cMKFdyjkqAKorXsrNuU6yhlIpxkveJGG93HDR/xm7b4dBCalp1tyn9uxxNLOikJCeJdK iW+SLwsKGcRnSu4npXHgfi47ar7fSfKS8IkBP/s+pjMjouqLGKOp2rP+plw6LvjH84eB 50YRfAta5+fuAoIZlo1uakzjKBBy4vfCA5eciGDjwOfBDMu5CMuSG/BUtDnsPR8NSY80 KE/nrMfN7FqRm5rJH62DtoaPTbHzheu3f/7TpiFONmzoSdEZQxBk+GXcC0Nv9n8iG7wB m7yA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:date:message-id:dkim-signature; bh=rgw0hpYCxB9uBJgai2lu9NhUigO9+5qcBMy3/d6JAbQ=; fh=Ksv0atZH4PTEMbtsjtKzki959/8UoeODw9ZtJR/DPrk=; b=NgAYeDazTBK06T5dEhguKWC4cKYIPT7O/BzX5plsK2d5zKN6X2gaGPG53HEG58Jcii 3lyqAorSXTQw/syNACSAkLAwnsVwrLJ+aZO16pcEb8CTAPI39pXFUFS7YBhk06JXWYgl /6bS0yl7lXWK65DVq2EP0MqdRPi/btKD70FbQItzIocDhvVhQ431gDt2imJ3xrCByKgI vawVq0Egpk+gIs2Ln1uQGdyLpvzTdCX/bGD6qacofbCNm+fn7E8CVv1jHx8kgypNDysy 2sBxSVJdX28xKc0zNDmgn8MDZcI/KMa3jPSdRYfj21uYGDMkPzOOmcGaBOx7x6xDPayj oybA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=GQGYei7z; 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+bounces-26511-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26511-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2-20020a633602000000b005c6bab48f48si9795154pga.111.2024.01.15.13.52.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 13:52:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26511-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=GQGYei7z; 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+bounces-26511-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26511-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1CAF1283A68 for ; Mon, 15 Jan 2024 21:52:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 96B761B581; Mon, 15 Jan 2024 21:52:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="GQGYei7z" Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F057C101CA; Mon, 15 Jan 2024 21:51:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ges71KY6W+5GvdvPuKYLA7/kUOXKfkWQzzNb6wM36BhPxwQcNjtTl6cGlWrlrbUquStx9YSqC+oxllrdtF+9Sq0FE9/k7Ri1AkYbuvTpYuba3wRsPSGiABAq7F9PiZbYr1Ba1avryGYcmGrP9Yo1918wMUoBuzbR4gAhA7h9exa6CYNGEWFBSdYA1VeuSWKT4q4LfRiyH6MJkqjmZvk4n/+7vKia+Ghyw70zSEvuJATOjlX1FzozPcvlJuFf4Xm9JeX95qBYAvVKQiTVvAy4IHtcr/KVnKfaxjkwv+G0ATeu5/4B0wI1dvMpJXH4oAM/9gKjMZQ58pyivwb6Cg5thQ== 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=rgw0hpYCxB9uBJgai2lu9NhUigO9+5qcBMy3/d6JAbQ=; b=cGPPMtM/kvUIv6BsXJbstL3qMJ0Y37HPFGYAZjWS7ivHfNEjDZWqcGRIhluYcm6xS/wrtNFqvALp0Ck+VdFoSiLgokGsTuXHQBSZVjqErBCb2TBHay4wjeyd6GtM+MKIFi+TxYWF3a8HtQc0AoJS0uL84sXNypa3xTjBPp5RwaL3EpIdjltmdtYS7oZkUl6GKknQjyuegMXqRGtzNYfxbeMOLEA2bRLQUJoJLQXQtsUWhyL+8X4uXvW59QLTil8P6igRnFdjPoIsD42oJsnGGXypwJz/U/MUkd4PJ3MHdC+KI9ckQW/NIvWGQmblAUc7tKUPMPyCY9ULjNs8aumrPA== 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=rgw0hpYCxB9uBJgai2lu9NhUigO9+5qcBMy3/d6JAbQ=; b=GQGYei7z/Ygh1GZAhgqfjxR3Cx3No4NC0Uw7kSr41+LsE6p1PC2izeJELRNX80Gw5SaDuMLD9SORBTSgmxSj66Ma2v7mHVmIcyQycuE3yqulIvOxP5t2k2ngQgCN1clptDvWBYjIgBM2m+Sq1ZWeS/0vvj/MRTEcokTONaQai5w= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DM4PR12MB6280.namprd12.prod.outlook.com (2603:10b6:8:a2::11) by CH3PR12MB7665.namprd12.prod.outlook.com (2603:10b6:610:14a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.17; Mon, 15 Jan 2024 21:51:56 +0000 Received: from DM4PR12MB6280.namprd12.prod.outlook.com ([fe80::5358:4ba6:417e:c368]) by DM4PR12MB6280.namprd12.prod.outlook.com ([fe80::5358:4ba6:417e:c368%6]) with mapi id 15.20.7181.022; Mon, 15 Jan 2024 21:51:56 +0000 Message-ID: Date: Mon, 15 Jan 2024 16:51:52 -0500 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/amd/display: Fix a switch statement in populate_dml_output_cfg_from_stream_state() To: Christophe JAILLET , Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Roman Li , Qingqing Zhuo Cc: dri-devel@lists.freedesktop.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org References: Content-Language: en-US From: Hamza Mahfooz In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: YQBPR0101CA0287.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:6d::13) To DM4PR12MB6280.namprd12.prod.outlook.com (2603:10b6:8:a2::11) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR12MB6280:EE_|CH3PR12MB7665:EE_ X-MS-Office365-Filtering-Correlation-Id: 2478011b-54b5-4aa9-544a-08dc16143143 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7WWvo14xNw50LA/CoKUJWiXqsChm/zViNiVrmEAQdT8yHdZnkyJp9466OKYBSkTQHEub9RWv6mhj3GURlUkpnQ2/QIv04bMpQii5UF028FPNvsNFzk+NadhY0vm6m+CZ67CUbibDgwSr4aG0v6sO4olXAx9bS076MtPvss44UkDixZBcZ/upDJOoHJP5Jdn/TA8lIsQ7X8N6hj11UlUeuxtpRQTDC725mKcnsVZk9ltVb5ljFkbPp45X7A7wayPgKRXM1SU/zMR06SQzB6mu49L7Eernw606bviZkQx5zzQ7Dk7EfSS0Y3NbQDtAyFDBWxQpUWsFljUeqH3Lz+j64h22vLZHwZHWyyuLHkeNwWubwA465FubT+OOfRnPhDnsmvqLIR28YoddY8Y8FydTbSSrO4RGZP1KH/u1j1E5CCJjVKy4QiUZhQMZrlpyW3tbKP/AfC/yXx2iRquj8oo1RNiSD3rB+b81kvmhElHL0xmBV/CFKUlGPBppczRH/1sBznYwb913R+8NV+X9P0ZqCG0kK+Zq1npgBCRXsKw9hLfsWAvKedVvuzkExqgf2CcF6sEWMpJlqoZ4k7DyWOKuJxdPY4JSEVjKtGYIi4oxN1V6E3d9pxBN4YSuII8kO7ydE2QxXr/jgVa8jG/laTKrPmli7znULh5E+1AkxXy5syc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR12MB6280.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(396003)(376002)(346002)(136003)(39860400002)(230922051799003)(186009)(451199024)(1800799012)(64100799003)(2616005)(6666004)(26005)(6506007)(6512007)(53546011)(5660300002)(83380400001)(44832011)(4326008)(8936002)(2906002)(41300700001)(8676002)(6486002)(478600001)(316002)(110136005)(66556008)(66476007)(66946007)(6636002)(921011)(36756003)(31696002)(86362001)(38100700002)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?STQwcjAxTzNWQlRqRVVEL2xZVXE4WDZxbytLbDV5Q2tYbk1Ha1Z3Y3pvYlc4?= =?utf-8?B?UzdJUUpra0l2VUYvOFM5S3lGT2FzTk5neC9Ubk50cTR2eWJqc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96UGNUTk9IbEVhRzlOSjhCNHdQVC95T2JST2xwOGNhSDZTSElwME1X?= =?utf-8?B?eHFPeGIxZkQ0WGwwZW9OSDVyeVhkLzA5SkZUT2lERjNYTktJS3JqZVFsQkV6?= =?utf-8?B?L2o2eW1xVzZFMXRNVnU2RHJlVlUrVCttc0U1dVhXdUt6SFIzZUhKelZ0RUVF?= =?utf-8?B?OXBOZ1lVdEQ4OG1WWkNVYWdSTkdxTVl6NHNCUnlNSjlqeWF6dkMzL3paclh5?= =?utf-8?Q?cKV/9c8FOOWrXpIBYQaS6Q8JS?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2478011b-54b5-4aa9-544a-08dc16143143 X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB6280.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jan 2024 21:51:56.2727 (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: GoKl+UWAMNOBgh91AwoyfemAico71Uaz02/ypIQdqxpZB066bGnE7xlhfdr6DbEYxs5CC0lPy32nMOrgN8YebQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB7665 On 1/13/24 09:58, Christophe JAILLET wrote: > It is likely that the statement related to 'dml_edp' is misplaced. So move > it in the correct "case SIGNAL_TYPE_EDP". > > Fixes: 7966f319c66d ("drm/amd/display: Introduce DML2") > Signed-off-by: Christophe JAILLET Nice catch! Applied, thanks! > --- > drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c b/drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c > index fa6a93dd9629..64d01a9cd68c 100644 > --- a/drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c > +++ b/drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c > @@ -626,8 +626,8 @@ static void populate_dml_output_cfg_from_stream_state(struct dml_output_cfg_st * > if (is_dp2p0_output_encoder(pipe)) > out->OutputEncoder[location] = dml_dp2p0; > break; > - out->OutputEncoder[location] = dml_edp; > case SIGNAL_TYPE_EDP: > + out->OutputEncoder[location] = dml_edp; > break; > case SIGNAL_TYPE_HDMI_TYPE_A: > case SIGNAL_TYPE_DVI_SINGLE_LINK: -- Hamza