Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5017307rdb; Fri, 15 Sep 2023 22:37:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHcueuaR3Z3cSdBjJSjTR8CFfH6vnFw/VxIwlrHe1lsc2h6bLnOzZGjpPxGzlIp6DWE66e3 X-Received: by 2002:a05:6a20:f3b0:b0:153:81a6:b171 with SMTP id qr48-20020a056a20f3b000b0015381a6b171mr3794181pzb.38.1694842674056; Fri, 15 Sep 2023 22:37:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1694842674; cv=pass; d=google.com; s=arc-20160816; b=gzU7evQ3nPvMeIoavcFLYIOk5ITwDvijHZeJksOQqQZEBFwxrmu8itcBlOg8Q0HVqs /NWbpD/sIzCLOmr/1OAEGtzK4BIi5cxbkuD/aReJhSwkbp8ITgJAnHf5qc9FeiZ+pY3D DpULz34jbc6CcWPs5kASlDOYOl5n/jfNfQwM9m2dolx0BkuLY+l+Pe3zZJa7iOgc7tUo XbGD0i9tm9Zn+KGBuKEFZYS9maF6OmGG5LXI4tqexxT/PlwVmmPcw8KveX7eI/+bSuzo cjKj+JhPy3T3g0V1fdLCphYPEApzhGkLpIQ8DVv0eZZiif9AYJtDzVGhiB3rnOCHGs5K oDVA== 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=M7GKTeesLukhp0emuGe/ao4XZWmhl0e24sIAHlaCGlE=; fh=KNx8JjLdUWTHVYGW2IR4UIp2NlYZAO/oCjvW0ey71QM=; b=R6gxz7WQNNXb5649QgDO0fS10I7YamEJVKG+cM06c5EF0nfyxtOfVMAK5FiB4yKL57 wVL56mFJKi13rhCtznvYagYZSTt9ah/GI1CT1s0F32HfZGzIzYM0BSuRvoJ3QActDY+r N+8RXGZuEl3kwTZ3I+fYn7zEJkKhPq8evEPgKOfPtl+V9JF+VZxdCFwMyATgDioiJlI+ nbtTQBCv4gSGfEVCdJ0fySP5rslCSiui+LBnlKyGOQhjlT4ZhkpMxaLfo+f4yEwEcooV UY3KEGCZhi0hRuDhCQNApaH+GeTq7RB7PkV78PXOh8uIRFYuR0O/YOJDkXuhu5tSZ6C0 OIJA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=OYILhAv9; 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 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id p12-20020a170902c70c00b001b8b7460620si4382150plp.181.2023.09.15.22.37.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 22:37:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=OYILhAv9; 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 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9A5CA820DA13; Fri, 15 Sep 2023 11:12:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236319AbjIOSL3 (ORCPT + 99 others); Fri, 15 Sep 2023 14:11:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236321AbjIOSLG (ORCPT ); Fri, 15 Sep 2023 14:11:06 -0400 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2059.outbound.protection.outlook.com [40.107.101.59]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E8031FD6; Fri, 15 Sep 2023 11:11:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F1v13VKAPc+Txzxgo2Hv1PvRH9yGFCXkEj6yeAb93b9X010o5/k5OKuPJ5Ap9wHAcTl8Na56IrJFgnwqC6wyFTMsuG93U8u+YGn2r9eGnvEmVF10EYXPEHa5qGR/vuiFxw+wta3dyKiLpZ5h3yHJhvFLPn/iEiH4IHamy+8cbiFmdGJYCFxWW6ZtJuMeT7qW2y6FiNhEuziOzwt+PXCkJjLmF9Zeet3snZPiW+3UKRK26RUbZ516wE76bVMYVR4J0Zs6TpkNm8qScAevdu5KbPcu63JMRimWnZHdp+ZQc8RlJBZWGJDT3/ezZq7shRBhlIyjvRYuiIe1+zMKiHPSTQ== 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=M7GKTeesLukhp0emuGe/ao4XZWmhl0e24sIAHlaCGlE=; b=HTMGJBPLo3bJI5zuocp73jrZ59dBfuczKfLmjamwYFf7vQhr9KmIVeYsj6Hpn/PzqLwMRH6lP3K0wbtOSW/cECphXnHp9zrjyPjTOBUzYydkbB6qjamHupyZ3q9It6MtujmTZJ9c/U4u5VRg+J8t8LStGf7IBg+3dTV9xuHKkBPZSQgeoPl2m22vx/Mnprmm2xUrj3JG7WtOIJGOGWume0tiWTfz45JH2Wx+JxK+e5trOQ9OMadrXtTe3hgvN+ePZRZ2dMYfE29YA9SZ0683ctwis4JJkGmf3EqnCnneXoNlF8HM3qwiW7n9dXx/GJbQHPkultMTNLug9o0EulKwug== 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=M7GKTeesLukhp0emuGe/ao4XZWmhl0e24sIAHlaCGlE=; b=OYILhAv9tCPqSeJYdIdNWMesx16uGM5z6zwwwlsazTyQP0x9X0AIhIUt+8IPspzl99BlpCyffqg0s2kveNMS05cYR5LidqN2p53FtavadcvVatxdaThviXYyI5iVR+8hzNO4DWgS2PzMvqqhcpXML2dOZFikshQ1OUNw7K//G9Q= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CO6PR12MB5427.namprd12.prod.outlook.com (2603:10b6:5:358::13) by MW4PR12MB6778.namprd12.prod.outlook.com (2603:10b6:303:1e8::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.30; Fri, 15 Sep 2023 18:10:59 +0000 Received: from CO6PR12MB5427.namprd12.prod.outlook.com ([fe80::121e:5e68:c78a:1f2f]) by CO6PR12MB5427.namprd12.prod.outlook.com ([fe80::121e:5e68:c78a:1f2f%3]) with mapi id 15.20.6792.020; Fri, 15 Sep 2023 18:10:59 +0000 Message-ID: <5536b749-4db2-467d-875f-410c4a4a0e9c@amd.com> Date: Fri, 15 Sep 2023 14:10:54 -0400 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/amd/display: fix the ability to use lower resolution modes on eDP Content-Language: en-US To: Hamza Mahfooz , amd-gfx@lists.freedesktop.org Cc: Stylon Wang , Alan Liu , Srinivasan Shanmugam , Leo Li , Qingqing Zhuo , "Pan, Xinhui" , Rodrigo Siqueira , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Aurabindo Pillai , Hersen Wu , dri-devel@lists.freedesktop.org, Wayne Lin , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , Joshua Ashton References: <20230914175354.102709-1-hamza.mahfooz@amd.com> <3630bc42-c04c-4c22-99f2-5dc6bd5d8e2f@amd.com> <290648a9-4882-4228-bdbd-1045e20b71f7@amd.com> From: Harry Wentland In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: YT4P288CA0044.CANP288.PROD.OUTLOOK.COM (2603:10b6:b01:d3::26) To CO6PR12MB5427.namprd12.prod.outlook.com (2603:10b6:5:358::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR12MB5427:EE_|MW4PR12MB6778:EE_ X-MS-Office365-Filtering-Correlation-Id: 30002e78-2fa5-42a8-e106-08dbb6171ceb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QGIG+S3aCEsqEpq3okUgv/p97aLWs2boP3xCN9DX8RcHAM+UD47yTX5/tv2/In+/CfaNyBlZQwocpwD5z/NhJCsBoTdVDZ3svXAivH2kTYKsASEEHMNRvszCPIGgOwFQ/zZEHJw+TCmdwnAKMQ4mzq+YILK8HdRXmALkODaofW1qNrrSLa0G/4rTP1pbrHaQSxVj13GAO4Isq2jX/1XO5RHnLjLSFG/R9AscrtfC2IL/c/iSp292+EpUfms38MlXeAhK7B42LE0g9PnGeUAhpyb2UdBRpUt6OHLB5Tuq/NAc+XGf8PhFwDIsli6P12jnYHFXEdotsB5TK0PTwzh1VLCXJzaiGpC+VTjL1c/odESp3TaLT3BJx5VFWupezanMIB2B/tmvQcPDkrUqm+MobRkXztUp2CygAlEQxiFWdS+AvsbhBmG/5BLIX5zZtKLMo5pF2FTRMObuw+UhacJs8lsVWZEieKJbn6PVMdt8Uh4JYUbeEJrYT0YQqtgMfZjTY0CFe1pEM0iLpVTTYlqwnt1l5GAk7ZVOrMbrZqj8AjFI7uDnBkSxEmzb+z0dHMsqYLbjC7TzhFpW3SHNSZxMWutPyv6kLG2VJFwjvHuVLZK/zIe2JxVzdH5WVNasNEoX X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR12MB5427.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(366004)(346002)(39860400002)(396003)(136003)(451199024)(186009)(1800799009)(31686004)(6666004)(6486002)(53546011)(41300700001)(38100700002)(6512007)(6506007)(83380400001)(36756003)(31696002)(66556008)(86362001)(4326008)(478600001)(2906002)(26005)(8936002)(2616005)(966005)(54906003)(5660300002)(44832011)(66476007)(316002)(8676002)(66946007)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RnJUTzhRNGRBNDBXanFYY2lzdnYxN3BEUWhOa2VQU0dBZEI0YkRwK0VDeGlw?= =?utf-8?B?SzRHeVF2aFRMb1pybzU0WTAzL2FQRUpxUW1McndneWNPT0RZZVBMUEw0OHA0?= =?utf-8?B?dmRNcWxrUkhUNjNkaUF2TmFWUlZaVzExeXpCNmZrOHBVWkVuZW4rU0xZc1Vq?= =?utf-8?B?dWJxUWRxOGJjZFNEVGtlS1k0UHQ4RThnOHdoVzZKd216R0g5SmN5cnk2QUR0?= =?utf-8?B?eVVmOVBQZERydmVBOWd3MU1YaE5YemtxaXBRZWpLSVFlc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PWEVCVll0SDUzdzVnQndOcmpzdEhzRGhHVlIwaU03UEpxc3pCQUl3?= =?utf-8?Q?nVp8/3e4+AwW0E+8IHscEYQ1K?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 30002e78-2fa5-42a8-e106-08dbb6171ceb X-MS-Exchange-CrossTenant-AuthSource: CO6PR12MB5427.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2023 18:10:59.0893 (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: /epAu+FJfZkYujyeQSrkuU7GKefU/SMC81+46KUQvLejCrQI+0VHADbUq7q9aDnK7lYeBoVVmTKL+CJ82uqzIg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB6778 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 15 Sep 2023 11:12:03 -0700 (PDT) On 2023-09-14 17:12, Hamza Mahfooz wrote: > > On 9/14/23 17:04, Hamza Mahfooz wrote: >> >> On 9/14/23 16:40, Harry Wentland wrote: >>> On 2023-09-14 13:53, Hamza Mahfooz wrote: >>>> On eDP we can receive invalid modes from dm_update_crtc_state() for >>>> entirely new streams for which drm_mode_set_crtcinfo() shouldn't be >>>> called on. So, instead of calling drm_mode_set_crtcinfo() from within >>>> create_stream_for_sink() we can instead call it from >>>> amdgpu_dm_connector_mode_valid(). Since, we are guaranteed to only call >>>> drm_mode_set_crtcinfo() for valid modes from that function (invalid >>>> modes are rejected by that callback) and that is the only user >>>> of create_validate_stream_for_sink() that we need to call >>>> drm_mode_set_crtcinfo() for (as before commit cb841d27b876 >>>> ("drm/amd/display: Always pass connector_state to stream validation"), >>>> that is the only place where create_validate_stream_for_sink()'s >>>> dm_state was NULL). >>>> >>> >>> I don't seem to see how a NULL dm_state in >>> create_validate_stream_for_sink() (or create_stream_for_sink() for that >>> matter) has an impact on the drm_mode_set_crtcinfo() call. That one depends >>> on !old_stream and &mode. >> >> If we look back to commit 4a2df0d1f28e ("drm/amd/display: Fixed >> non-native modes not lighting up") it seems like the intent was to only >> have drm_mode_set_crtcinfo() called for >> amdgpu_dm_connector_mode_valid(). Since, even if we go that far back >> create_stream_for_sink()'s dm_state was only NULL when it was called >> from amdgpu_dm_connector_mode_valid(). >> >>> >>> It does look like &mode is an empty mode if we can't find a preferred_mode, >>> though. Not sure if that can cause an issue. >> >> I don't think it should be an issue, since before commit 4a2df0d1f28e >> ("drm/amd/display: Fixed non-native modes not lighting up") we always > > I meant to refer to commit bd49f19039c1 ("drm/amd/display: Always set > crtcinfo from create_stream_for_sink") here. > >> called drm_mode_set_crtcinfo() in the aforementioned case (and only for that case). >> That's quite the tale of patches upon patches making things slightly worse until it no longer works right. Thanks for untangling this all the way back to 2018. It makes sense now. Reviewed-by: Harry Wentland Harry >>> >>> Harry >>> >>>> Cc: stable@vger.kernel.org >>>> Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2693 >>>> Fixes: cb841d27b876 ("drm/amd/display: Always pass connector_state to stream validation") >>>> Signed-off-by: Hamza Mahfooz >>>> --- >>>>   drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++-- >>>>   1 file changed, 2 insertions(+), 2 deletions(-) >>>> >>>> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c >>>> index 933c9b5d5252..beef4fef7338 100644 >>>> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c >>>> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c >>>> @@ -6128,8 +6128,6 @@ create_stream_for_sink(struct amdgpu_dm_connector *aconnector, >>>>       if (recalculate_timing) >>>>           drm_mode_set_crtcinfo(&saved_mode, 0); >>>> -    else if (!old_stream) >>>> -        drm_mode_set_crtcinfo(&mode, 0); >>>>       /* >>>>        * If scaling is enabled and refresh rate didn't change >>>> @@ -6691,6 +6689,8 @@ enum drm_mode_status amdgpu_dm_connector_mode_valid(struct drm_connector *connec >>>>           goto fail; >>>>       } >>>> +    drm_mode_set_crtcinfo(mode, 0); >>>> + >>>>       stream = create_validate_stream_for_sink(aconnector, mode, >>>>                            to_dm_connector_state(connector->state), >>>>                            NULL); >>>