From patchwork Thu Jan 7 20:53:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Siqueira Jordao X-Patchwork-Id: 12004891 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E0AAC4332B for ; Thu, 7 Jan 2021 20:53:52 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 39CE22311E for ; Thu, 7 Jan 2021 20:53:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 39CE22311E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=amd.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 37B5B6E527; Thu, 7 Jan 2021 20:53:44 +0000 (UTC) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2077.outbound.protection.outlook.com [40.107.92.77]) by gabe.freedesktop.org (Postfix) with ESMTPS id A07406E524; Thu, 7 Jan 2021 20:53:41 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=enJf5BJKUw6x1ucICd09KMsh900rbdjh1ON/q0mUZ3nBViXjLyPDEjAgIbZOno9HMrC7UEfSmzk1eo43SZoOTS4KSIfwtQLG5nJ0EuOW3/1WYddYJBCyiaIC8KZoQ6x4esiLilB4p8Qs1L/Mkxj4movvhNv63uyUlCg68uY23yvjVc1dO3P2ioIiU2/aqhC8mH1FDAlx75mzZU0W1aNJavwrWAvZHazmW/aAI6Og2M2NogD0O2Nj2rkWQfHa57igLmWt8VgvEuUN3gvk+Xft+/I72+eF8qrCWM6T6C6sBIn0+trgJwS9n/goL23OS5lAW0iAL49aP8e13AtwirJX0w== 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-SenderADCheck; bh=LSIuqWUtn+1C3xEqIGAlaDZFM60Pkt6rV+C8VWATRs8=; b=npcCUvJhL8cSpnjIkmCH4vlMtIautHenLFBKUBNLPdTzr26SzKuCKze9Tz5CkEObXr5AYuGKEbs61qCwWpkTSd+YTGk2CdW30gSn9OlRN5QIWrFHGr4sG8NkbiLv2+JXMLX7HA43qZaiYv2WM2BEjcQdK6/To/gn+/NQRZoagyLAD3gzwh+nWyTQ7seFZaQOnWU1rO79in1oYtv5BIWNgRcOH8p9geh4msgpo+CoqRqo8UyFZltQKcCEU+jt21M1jxy0rC0yGURp7aFr/d0C3yFc619xcgzVzTvEOYNNcUcOpiow8y6ooixhbIoZ9o2DOtibbEe5vOoY/LLjeJl7uA== 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=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LSIuqWUtn+1C3xEqIGAlaDZFM60Pkt6rV+C8VWATRs8=; b=g4xQrBK7FnnSipsXXUrKuf83T4NR0Ma9p09MBq8+pUbB+84ltx7w0Hy8GS44cKkuOq2OpdBLSMSSj7lMPSdXmMpZHUgGxB/ciW2ToAaUXx8m89HovzZh0R/hfyuWe+JvpRUpFtPSaU74tUciXJ87YnFZaEjRurTkRAx7/5KyqkE= Authentication-Results: lists.freedesktop.org; dkim=none (message not signed) header.d=none; lists.freedesktop.org; dmarc=none action=none header.from=amd.com; Received: from DM5PR12MB1753.namprd12.prod.outlook.com (2603:10b6:3:10d::16) by DM6PR12MB3595.namprd12.prod.outlook.com (2603:10b6:5:118::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.6; Thu, 7 Jan 2021 20:53:39 +0000 Received: from DM5PR12MB1753.namprd12.prod.outlook.com ([fe80::1cf5:9c9e:7374:4540]) by DM5PR12MB1753.namprd12.prod.outlook.com ([fe80::1cf5:9c9e:7374:4540%12]) with mapi id 15.20.3742.006; Thu, 7 Jan 2021 20:53:39 +0000 From: Rodrigo Siqueira To: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH 1/3] Revert "drm/amd/display: Fix unused variable warning" Date: Thu, 7 Jan 2021 15:53:19 -0500 Message-Id: <20210107205321.166698-2-Rodrigo.Siqueira@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210107205321.166698-1-Rodrigo.Siqueira@amd.com> References: <20210107205321.166698-1-Rodrigo.Siqueira@amd.com> X-Originating-IP: [2607:fea8:56e0:6d60:2ddc:b09e:3e2e:10b3] X-ClientProxiedBy: BN9PR03CA0064.namprd03.prod.outlook.com (2603:10b6:408:fc::9) To DM5PR12MB1753.namprd12.prod.outlook.com (2603:10b6:3:10d::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from atma2.hitronhub.home (2607:fea8:56e0:6d60:2ddc:b09e:3e2e:10b3) by BN9PR03CA0064.namprd03.prod.outlook.com (2603:10b6:408:fc::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.6 via Frontend Transport; Thu, 7 Jan 2021 20:53:38 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d1525d0c-13b1-4ca1-1ce6-08d8b34e4faa X-MS-TrafficTypeDiagnostic: DM6PR12MB3595: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:108; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vMBb0LGk+B4kyvi1AE8zwmBMZ8yHehNFpa+Ws9rxd51W3d9x7RQpY+dOIkkRyTeYGZz+Z1De//mKFOXRJdU09pikyb/i/DPk7FGNtG8/717/36xVrrDBxAi4sILtLP+BZJcROqylIP0kddcdDK9L4wimKHJ1dSA+HRdwbzpTkPiTWjJJTXSTEWMY9NF49ELhJHVuMIQu/rFBbqrVuimlfzojj8yhg8P+/vYxolOiWhYrwzReDzsBhx+WN8PKSe2KHnesY8huzX5ea3Otfyt0FlgIIHo19/zIZsaN7EEBkh2A1HGjTXLZot2zGQySOreQFKglXrlp2oUw4qqblQffRt7dtCbdYjxK9nOqMhxaYeOctZM/HywPVd/uconFKQ8Gyiszt/WG2pFgOhKG5590Wg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR12MB1753.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(39860400002)(136003)(396003)(366004)(2906002)(86362001)(6512007)(6666004)(478600001)(4326008)(8676002)(54906003)(5660300002)(66946007)(2616005)(66556008)(66476007)(1076003)(83380400001)(186003)(6486002)(16526019)(52116002)(8936002)(316002)(6506007)(36756003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: +vNwnoUK5ddV0sn6ec/TN4xQv/ooRPQmjxXzOHbD7kQYpxSVpOoH4QBN87QCCJ2sens9rldQD/k0RbMNRNtBVJDOeVu8bPByTC1v6yYUnZSlT2qi1yUWEt3bgKld4v54J8YSHlB6DUBx2i80R2jcZw2x4zBZINRJdbAJLepN8oyif51Uyt7aQn2DY0Ap+Rnufsl5JhYdZLzk83l9gNN6PiVmkPLBEljTBP0m3s+6ZVSUB72ae/ZzZ/PDMaxGdvPVzwReaPoF9sFzdoa72HmJalKAfIHDoJOJkk/p9XYzlwpMzqoD5FmUt7HzKKluxQRYWhVYnR5W3tG3N3dtQIvh4UIEsWu4Xw0I0B3sk0b/rDBU8ciAsd0CehmkXoZJ4Rz5LzVKwAGAo3ggWpteLS6LvGORte15afLF6MxqGofpCSVBl11KBfgHBnoRu9KOAtIXbxc+AGqPsqAUyGk56Ob9rsjVjlI8aRwXJPzL98/KoB6GqQa8g7HMJnrYQficoju7+k952eNseBbnmYhwNYrEz+nIGeHHYxMnt7JECOHq7HwL04hwERcKWMiaya7QPEAKu4vt7LAYhuHQ9w7GHp6Fm5hLDrl+Xl/U7Bs5xsaoahA7heKM7D1dBVKsa7qE17KMho52LvOym3Dq+kzaGcw3j/pPbJ/2j+r9pGl6Gp3/ANuxnKIVy4a1PxKBb3/iXSyzFMnj46dNPJlQFAPARgxWGoQn2+U9FoTmSv7Rb4RJhPhkKVkmzRdafMEz3pV3DIBlLyptB6saxvJzagWLyWVe/bcPJZXOqbOCMRRiX67C8CKE7xX6U7bXligWP/9k5CXq29I9dw91VD1eNNJx2GPHOcDhUYAJ9NRKGbFOky+9O1MHCaPy14XtMKRytpnMP6GwFCqg+1zqA4mh8vh7YTODkuP8FyqDrm0GDMwn9eSz/XWhiAP74Te1NtKj1zEFN7GXaC6zt7t9MMIBO530g09GMjjL02E4ZyVd8k7+bmphyfAYhJ5Vmr8t2gzGolmT4/8jto2kwEob5dUEDWBONXIl620/dCUGqomFBG5w1jWWub6GAQ4ufAS56nXRADUEmVIk X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthSource: DM5PR12MB1753.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jan 2021 20:53:39.7355 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-Network-Message-Id: d1525d0c-13b1-4ca1-1ce6-08d8b34e4faa X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: xqxzBZxCB3IaqUf5FXqKd8jj5uoOLcSKRCCTG2i+3rHWutPjUDTD0Tr9BcFZpedd0LfbtWSqpf4QUgwYwRLrdg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3595 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: Roman Li , Wayne Lin , Alexander Deucher , Bindu R Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This reverts commit b5d8f1d02ba7021cad1bd5ad8460ce5611c479d8. Cc: Wayne Lin Cc: Alexander Deucher Cc: Harry Wentland Cc: Roman Li Cc: Bindu R Cc: Daniel Vetter Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 +++- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.h | 2 +- 2 files changed, 4 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 99c7f9eb44aa..a06554745238 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -8549,7 +8549,8 @@ static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state) acrtc->dm_irq_params.stream = dm_new_crtc_state->stream; manage_dm_interrupts(adev, acrtc, true); } - if (IS_ENABLED(CONFIG_DEBUG_FS) && new_crtc_state->active && +#ifdef CONFIG_DEBUG_FS + if (new_crtc_state->active && amdgpu_dm_is_valid_crc_source(dm_new_crtc_state->crc_src)) { /** * Frontend may have changed so reapply the CRC capture @@ -8570,6 +8571,7 @@ static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state) amdgpu_dm_crtc_configure_crc_source( crtc, dm_new_crtc_state, dm_new_crtc_state->crc_src); } +#endif } for_each_new_crtc_in_state(state, crtc, new_crtc_state, j) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.h b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.h index eba2f1d35d07..0235bfb246e5 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.h +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.h @@ -46,13 +46,13 @@ static inline bool amdgpu_dm_is_valid_crc_source(enum amdgpu_dm_pipe_crc_source } /* amdgpu_dm_crc.c */ +#ifdef CONFIG_DEBUG_FS bool amdgpu_dm_crc_window_is_default(struct dm_crtc_state *dm_crtc_state); bool amdgpu_dm_crc_window_changed(struct dm_crtc_state *dm_new_crtc_state, struct dm_crtc_state *dm_old_crtc_state); int amdgpu_dm_crtc_configure_crc_source(struct drm_crtc *crtc, struct dm_crtc_state *dm_crtc_state, enum amdgpu_dm_pipe_crc_source source); -#ifdef CONFIG_DEBUG_FS int amdgpu_dm_crtc_set_crc_source(struct drm_crtc *crtc, const char *src_name); int amdgpu_dm_crtc_verify_crc_source(struct drm_crtc *crtc, const char *src_name, From patchwork Thu Jan 7 20:53:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Siqueira Jordao X-Patchwork-Id: 12004895 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3197C433DB for ; Thu, 7 Jan 2021 20:53:50 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 62BA42311E for ; Thu, 7 Jan 2021 20:53:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 62BA42311E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=amd.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E45226E520; Thu, 7 Jan 2021 20:53:42 +0000 (UTC) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2077.outbound.protection.outlook.com [40.107.92.77]) by gabe.freedesktop.org (Postfix) with ESMTPS id D89F56E526; Thu, 7 Jan 2021 20:53:41 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xf+rHWgOZfSngJ4ztjssx1Q4kENTSnhA3u5VzVWputPeEpn/DAYWoxS90YSqZiT7KMOxbUZ25GcXqNXaERlYmQgHUpaGsWaXcfLLSYHzzUdfe5FMzw8EChyaPRdkJR3RtrLeZC7umhmkleQ9ZFg9ozai1G4MJ0yoA9aWZ1G+xiQBvw3OgFtqkduw2D7CIvm4SMJ2mzeu/X/KHXY+et7XT6TQZVGLVv0oXlVm8K4YW2wtgDykI3qtp5QNV3xe6jhHeYhKtBJRPHkuaytBhzhReEQi/noZyljc/aKCQw3Gcrz1/JWq2lgaHaBQxlkaiKfzvEB5iHkdhJEvAP1C+onn3A== 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-SenderADCheck; bh=jygytPtqLUAKdZPwRtSA7V8nxQlKACwrLurzehMkRG4=; b=Kh0WwzLLlE6cAMjr8sjCSJiRA7/QpSZc/mTUn/hNA0vJgMIR2NPY8GoK6dWNAgXjawRAHIvWMQ4bPHfUCp6bQap5oZcQ1V5MPOdPctOe+onrans8I4xwp5M0iDCKPpCwit19QcGKyBjWNuWGM8HTxb3dgFMMO3nA/5PwNZH2NWY3Iq2Dh+NAdrAPiFa8Rhq3Ppo07GfELQ3L1SoYH03gVSlgSLZl7ht+SOUVy3c9nYq1r4tVOp9M2ezKVwlYSYhd44lQ6SMEjWXFT2HMVZ5l5BYgAIWStJLndc2S+x68Ns7M/6t0gWG8CIhWNB8DOZRRdcXrasV6Jel3154m84DYag== 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=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jygytPtqLUAKdZPwRtSA7V8nxQlKACwrLurzehMkRG4=; b=eboGfU9nNK3Kniht9umNpq4jCX+Rwx7yL7wJmWrqRNHwbw0kYKegDWwg7vBWoqRU94DzzYdtnKmqWpZvH6fR7CQaHzzmEfydsrFzKPMwpZGDr2T/y8F7tMkFQI7sbutSmGn+uHJQdm82kXYQk902Y4KPsa3+aMT368bhvc3Luyc= Authentication-Results: lists.freedesktop.org; dkim=none (message not signed) header.d=none; lists.freedesktop.org; dmarc=none action=none header.from=amd.com; Received: from DM5PR12MB1753.namprd12.prod.outlook.com (2603:10b6:3:10d::16) by DM6PR12MB3595.namprd12.prod.outlook.com (2603:10b6:5:118::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.6; Thu, 7 Jan 2021 20:53:41 +0000 Received: from DM5PR12MB1753.namprd12.prod.outlook.com ([fe80::1cf5:9c9e:7374:4540]) by DM5PR12MB1753.namprd12.prod.outlook.com ([fe80::1cf5:9c9e:7374:4540%12]) with mapi id 15.20.3742.006; Thu, 7 Jan 2021 20:53:41 +0000 From: Rodrigo Siqueira To: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH 2/3] Revert "drm/amdgpu/disply: fix documentation warnings in display manager" Date: Thu, 7 Jan 2021 15:53:20 -0500 Message-Id: <20210107205321.166698-3-Rodrigo.Siqueira@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210107205321.166698-1-Rodrigo.Siqueira@amd.com> References: <20210107205321.166698-1-Rodrigo.Siqueira@amd.com> X-Originating-IP: [2607:fea8:56e0:6d60:2ddc:b09e:3e2e:10b3] X-ClientProxiedBy: BN9PR03CA0064.namprd03.prod.outlook.com (2603:10b6:408:fc::9) To DM5PR12MB1753.namprd12.prod.outlook.com (2603:10b6:3:10d::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from atma2.hitronhub.home (2607:fea8:56e0:6d60:2ddc:b09e:3e2e:10b3) by BN9PR03CA0064.namprd03.prod.outlook.com (2603:10b6:408:fc::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.6 via Frontend Transport; Thu, 7 Jan 2021 20:53:40 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 9e09b6a0-d549-43af-36a8-08d8b34e5072 X-MS-TrafficTypeDiagnostic: DM6PR12MB3595: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:131; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iPac5Go7hsEjth0k2vJwxIZIxCCTTq5Ty6vkPx1HtcuaglCjLbyWUhzR3uctmObDn32kZxGlyACnonsY7LZjlftmXFS/XJu6nPtbxV0bxFeIiOfwyuWP2XQ+U+DDf6amIyOe3AG9jT3W3UO+xeofQbrmpUgAMa1LIgdF7qAHDDmiQYs8pch7asRgOy42MoTnB3OHqV0FPwiJaakHQNmLAs3huMaXhFzv8AwH90ubPDfbVBLKHTlfbf/Szdzsp3uYQDzHmJjbFFXA2Vj+7Q/UQuMz9bI0Czr3Nvq/of6waHhHVvdA44zZyJ0VLAeRYXBHqhZF+Gcb/88a2ORKijsh2uVUkB5FCWp+q3y6RBFn5Znq5II6fYdIyJAAMd4Va5QP+s3vNM/XknDqpzj9z6Kl6A== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR12MB1753.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(39860400002)(136003)(396003)(366004)(2906002)(86362001)(6512007)(6666004)(478600001)(4326008)(8676002)(54906003)(5660300002)(66946007)(2616005)(66556008)(66476007)(1076003)(83380400001)(186003)(6486002)(16526019)(52116002)(8936002)(316002)(6506007)(36756003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: sJaeU0b+G85qkevYBMpr0SWFKO2ENPCjl5HO2Ci6vN0Kvu3qZ9WcVeKkQIXOIdUdZq/swRMmQzRP9nXK5FKoOWM8wcHW3azJWS2ME2DCaHOMtDdCI/HUfRw7Aw2kuEcHbAatwrxZvssdzcV3sMf1zD6N8h9+y30E4xY/xy8uboyoXlEcQSkKtaisTSkP7kjBLzyVDXt1nnllv4qCLRE1dfuhQkKwY2VVIiBy6A3lHm62DYZxYYpHxn2nvNPIk62MYnDu8UEY5JbGx+m40eV4t7mJ8NIRoPGCrFxixoQHjlqKngxQg1rpsDHc+FP6uHTbwgQYPGgxWsowCyzrutBu2FcwSm5jBkxn1XTAdxXdxtPg7rMdAybYK0m/VLEj0E10wr695AKF/Zp6TLfkm3VD7+iTJ8kAOlyXWuoiRY0+SUzJC1KtrQobRi49sHea3js0f6ZsLAp8ALIn1txuu767piVV8I7IoKsiR1D4FQ6fZCFtHzXQZ+KIjZY5BQIWlfovkH35hDSHkHYJ/ACR+RRXCE3UcQJHXinyEu9xN7D4N7tMm9iERIba9OlshQua2pGjcipXZBlbYA+pqalNYo9ZJI2oUrlqIsqThDI3zh4t+WGE0+ELuzegDGF8jzOCm+Eb32Uz1PRScZ5LXg6pZ7CdVtp+T+0boa4TO0FqqC1w2VCELINGJUef0FO6r2oEQcWPgg//0e3xJHYxT7N4qTXixIqxlb5o9K4Ara9JwEbjATjm2fcmf3R8efRXvjbW5MyPJWev9APRAzd8UFhIPwiRaSXusOqlX/uH/QNjN7gLx4169t5BDWWL0PAMLaZ75SjxZdmZwN0Sqxf7KON5ULZHyUOF/rVpBsTQ9r+6jejgewzumSzroocRqu0j3XaXQRpzgyZmP9ryR9AhtaLbsQytt3mg4DSi99Wjbxfimc3RFF3BboDuBgyk47LuI+HJDmnLhzVrD8bOfP/asxYFHqR+vP+2ofSBdqfl6UNr3sMLFs14+7jbk3D+FoKIY1GOd3uqpw0tmBfIBDNRlOn7pd97SgxBXAt10PqKYpuRWq65ae4kXWqMSqFzIb/oAoRW4Ct5 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthSource: DM5PR12MB1753.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jan 2021 20:53:41.0279 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-Network-Message-Id: 9e09b6a0-d549-43af-36a8-08d8b34e5072 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 3eBllebjnbmVkRzPL+2Zdb/TFWfUMDU7IqYHmgnMzzD4ZkFuILPYCHmy48wI8RhdtzX2cQBqI77lfRpNdtqgjg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3595 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: Roman Li , Wayne Lin , Alexander Deucher , Bindu R Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This reverts commit 1206904465c8a9eebff9ca5a65effc8cf8f3cb84. Cc: Wayne Lin Cc: Alexander Deucher Cc: Harry Wentland Cc: Roman Li Cc: Bindu R Cc: Daniel Vetter Signed-off-by: Rodrigo Siqueira --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 21 +------------------ 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h index 27b32ce7b6c9..ef394e941d9d 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h @@ -344,29 +344,10 @@ struct amdgpu_display_manager { uint32_t active_vblank_irq_count; #ifdef CONFIG_DEBUG_FS - /** - * @crc_win_x_start_property: - * - * X start of the crc calculation window - */ + /* set the crc calculation window*/ struct drm_property *crc_win_x_start_property; - /** - * @crc_win_y_start_property: - * - * Y start of the crc calculation window - */ struct drm_property *crc_win_y_start_property; - /** - * @crc_win_x_end_property: - * - * X end of the crc calculation window - */ struct drm_property *crc_win_x_end_property; - /** - * @crc_win_y_end_property: - * - * Y end of the crc calculation window - */ struct drm_property *crc_win_y_end_property; #endif /** From patchwork Thu Jan 7 20:53:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Siqueira Jordao X-Patchwork-Id: 12004893 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B70EC433E6 for ; Thu, 7 Jan 2021 20:53:54 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id D495B2311E for ; Thu, 7 Jan 2021 20:53:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D495B2311E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=amd.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 51D046E529; Thu, 7 Jan 2021 20:53:46 +0000 (UTC) Received: from NAM04-SN1-obe.outbound.protection.outlook.com (mail-eopbgr700071.outbound.protection.outlook.com [40.107.70.71]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5A7566E529; Thu, 7 Jan 2021 20:53:44 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kMXJUHxamb2PWEI0hjvRxSwpIQijrOZ0o7/qKuK/hokmHKBydELIClVVVpFTHQQf7o3vOy4gC7GvU1dxK5X6J0gEO1k53TdGGNjrjRHiklNxT2zoldvIt0bfjBL4TNlEFLr5jSEvqdRl+A7uIf5egZAsevoJvA4/NuHJoCZpXxyHk+/qmPD5Q7+h4XMaFvT5qFXLnQH+OCndz1GiNd4NurNUJVauZTUR+L4KQboZrzVXf0rdlWCAU/JjFTdFycnGZV1h906NmD7OILDFO9LuBPYxEX6J+z2tFv5/cVvzMstwRCBIgZ1JrcKgqfBKDOKdc2SDBpthjD4web+/6vYkMQ== 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-SenderADCheck; bh=EucwKT9gyEaB0xeAE02TNpSnrMWUqQd/tVquW8VUE5Y=; b=HvCRkT0s9+gq8IeSY94atb6wcCrgzmNH0gLji/kFay7YbWabx3nblcDLpvh8BFzaXje7gaTG7wrd+SW43WO5wTFnQchbtgwQKcLr4SEf6Nu9P3HQemOrvsJC6aSKBoMPb2hJ8NgUSEmnxZZHIWvkvs5FvfYHvqNte6tY07Au4jc+VoTwR68eVDc12Qi6AvdKKooAyyi/qblMaPtC++2ggzx7VV4uGqs9FXmG60GRfo0waQQtglhPahw109NOM6REG5U9ZK/Fr1yzraRLxr7PRyGD7RRZzNOnfDytQ5LitU1iM9i55PerURJ6WNJJp1Vow0ccBxVx7lSr90Qhx5oBfQ== 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=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EucwKT9gyEaB0xeAE02TNpSnrMWUqQd/tVquW8VUE5Y=; b=AAoBHjoJ7+8xlGwtYbIoYUvHX8PyKvTamrwzP6ueA0AkKW4Qz6okqOgLvwwXVCDr/54OXB01NU/FtgnP/IMFjcKJcSqYXRGxUfwsSckYjTULzOj5eLgZWk8quuRpNNvQrSI1ClsZARxLBtKOE3PCZK+V+x/LnrCeOGhEhzBXCEs= Authentication-Results: lists.freedesktop.org; dkim=none (message not signed) header.d=none; lists.freedesktop.org; dmarc=none action=none header.from=amd.com; Received: from DM5PR12MB1753.namprd12.prod.outlook.com (2603:10b6:3:10d::16) by DM6PR12MB3210.namprd12.prod.outlook.com (2603:10b6:5:185::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.6; Thu, 7 Jan 2021 20:53:42 +0000 Received: from DM5PR12MB1753.namprd12.prod.outlook.com ([fe80::1cf5:9c9e:7374:4540]) by DM5PR12MB1753.namprd12.prod.outlook.com ([fe80::1cf5:9c9e:7374:4540%12]) with mapi id 15.20.3742.006; Thu, 7 Jan 2021 20:53:42 +0000 From: Rodrigo Siqueira To: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH 3/3] Revert "drm/amd/display: Expose new CRC window property" Date: Thu, 7 Jan 2021 15:53:21 -0500 Message-Id: <20210107205321.166698-4-Rodrigo.Siqueira@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210107205321.166698-1-Rodrigo.Siqueira@amd.com> References: <20210107205321.166698-1-Rodrigo.Siqueira@amd.com> X-Originating-IP: [2607:fea8:56e0:6d60:2ddc:b09e:3e2e:10b3] X-ClientProxiedBy: BN9PR03CA0064.namprd03.prod.outlook.com (2603:10b6:408:fc::9) To DM5PR12MB1753.namprd12.prod.outlook.com (2603:10b6:3:10d::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from atma2.hitronhub.home (2607:fea8:56e0:6d60:2ddc:b09e:3e2e:10b3) by BN9PR03CA0064.namprd03.prod.outlook.com (2603:10b6:408:fc::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.6 via Frontend Transport; Thu, 7 Jan 2021 20:53:41 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 79c3ebd0-6165-41fa-6150-08d8b34e5144 X-MS-TrafficTypeDiagnostic: DM6PR12MB3210: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:469; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LKKBWt2pBIeFng7PmVlGI2BrVKkSetrxiGMQVGO+w+gZoYXTR9F6AohCcwUWbPw41JnYHTk+TofedoL1CsFO8JaoVM4aUBqHZ4PiGhT40gKbP8NH8+jwbuMUEbHmv+11WU8la9Qeod/KEFIHuJO3SA3U/JbotPZ9d9WAi+M0sC7Rz6ZrmethfShY88mvUk2WKTyVL11WMQHS6Hwjkwa2LYjvaEhOhVCBFXzKMfD8Xhr85DZKRKSyTnXJeXWBo6Ffj5v++NjZcLUUxMVs2uBc8kN+ucZh3CxhPizAwU6uTXgSV8ur0imTgN8Nx/4q2H34cgmeANbC7qPwf97mfdk9/BA6NwoLedoDDJf5lupY6ttgMbDLFPuLbKpxZbwhit3ByHxucmor2igpFmoP16lSMg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR12MB1753.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(346002)(396003)(136003)(376002)(39860400002)(54906003)(316002)(30864003)(36756003)(8936002)(2906002)(8676002)(83380400001)(6512007)(6506007)(66556008)(16526019)(66946007)(5660300002)(478600001)(6666004)(66476007)(2616005)(52116002)(6486002)(86362001)(1076003)(186003)(4326008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: Uu7wdO0Ibcf/wCn0QJINYhjebxtIIbuFgTg4X1F2r+5sdzD7LDe7mK5kgIXKSNhbabmHP5pB/V/ArwIr9/wTOlWCRyNczTQFBWFIq4VTnkLnCMwBDLlc7SrO0bLnb6tQF7lKhMqnZQs+8RYv6C9nvm83mbs5xnYWw18rXJ+FxSybft+X2KjSbq7GzcF2Azp162PdW7hYUrw0SxA5D3HoTFNAIQQErW0QYYitHwc08kt03jSDtGjahMYmUkXmikn72XHSkGEBKcny0HHrCqXaSjU0X8MUNjsnvsQZ3wdxEjUn6UGuOGFHeRRGipEgXcXjB/QZk+RuHwkfhlI8U8+FHjeato7mMSnoqTmPQyHUbh81pc5jjtKfStPdLnU875W52HU9NPUBjlhEC6zwsyKu18BjrMCGnoEL0musoCYa1T4N5i/16k8ABoszbUvc7ZzhsSbyuBllvEoYeF/nfG8QIIHm0rhC51uN/4BMR5BPwFK2bSux3g1QrxQwnCpE/5+Vgczanc51pvMrX9QQiCpSJeMcu+1qL/3XQr/p1VXWvDQ/NN/Ho2UP2s2ug8qXvU3ev+p+g7YgYXNrfIeREKV8LQMKvgPmx6FRAMx4YgFpkGzcU9qJXpy//sTc6klIct1ZwTFAS2hDbdFgcKRTCrPhldDQVIM+8CO6cGJRkHRATClBak5Xh/hDdn1NIse3eam5/MKP6DmNR1RNdsxjC7LXkeBKT5+OQz68jZ6LtRsHPpQ2L+aHcfZgkuyqyQo1OesFGHlStCiuffS2PeDHJDGKPR90BeHObiy16b1d4EJ+RMQGpfS/QkAd9EqXpvoRiWt6z5i7K2fvl2gwqkGpQx4srUK/6BHWhU3oz5CLcpTqOi7nujYGp1DysZWmu6vR6rbQHgxsu0OR4xUDJ0jGRZzFo7K24G983bDqFusO/ibkEniZxGmS/61lSau7ZXK+tIL0X2B/L8bPHhGoA7lfvQAdieIK9oSF/uRyVWfI8Z6MYSahfRLauyCfJ+wXmQ7lrw5B4ZltPmMO+55dtwVvULRLfRF1TA8G5TDWlsiEiR/ZFLYKeJLMSF9W2IUFw9B0MdFs X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthSource: DM5PR12MB1753.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jan 2021 20:53:42.3432 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-Network-Message-Id: 79c3ebd0-6165-41fa-6150-08d8b34e5144 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 88q1+d3XuWmBFeDrdivn4X6GYb7DCPB3KUIAERo88sI37yyEs2GyTONYaB07FH5LQxraHdNMFxj2jGw3FaZ7Vw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3210 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: Roman Li , Wayne Lin , Alexander Deucher , Bindu R Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This reverts commit 110d586ba77ed573eb7464ca69b6490ec0b70c5f. Cc: Wayne Lin Cc: Alexander Deucher Cc: Harry Wentland Cc: Roman Li Cc: Bindu R Cc: Daniel Vetter Signed-off-by: Rodrigo Siqueira --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 142 +----------------- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 19 --- .../drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c | 56 +------ .../drm/amd/display/amdgpu_dm/amdgpu_dm_crc.h | 3 - drivers/gpu/drm/amd/display/dc/core/dc_link.c | 2 + 5 files changed, 12 insertions(+), 210 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 a06554745238..0515ed0d125c 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -938,41 +938,6 @@ static void mmhub_read_system_context(struct amdgpu_device *adev, struct dc_phy_ } #endif -#ifdef CONFIG_DEBUG_FS -static int create_crtc_crc_properties(struct amdgpu_display_manager *dm) -{ - dm->crc_win_x_start_property = - drm_property_create_range(adev_to_drm(dm->adev), - DRM_MODE_PROP_ATOMIC, - "AMD_CRC_WIN_X_START", 0, U16_MAX); - if (!dm->crc_win_x_start_property) - return -ENOMEM; - - dm->crc_win_y_start_property = - drm_property_create_range(adev_to_drm(dm->adev), - DRM_MODE_PROP_ATOMIC, - "AMD_CRC_WIN_Y_START", 0, U16_MAX); - if (!dm->crc_win_y_start_property) - return -ENOMEM; - - dm->crc_win_x_end_property = - drm_property_create_range(adev_to_drm(dm->adev), - DRM_MODE_PROP_ATOMIC, - "AMD_CRC_WIN_X_END", 0, U16_MAX); - if (!dm->crc_win_x_end_property) - return -ENOMEM; - - dm->crc_win_y_end_property = - drm_property_create_range(adev_to_drm(dm->adev), - DRM_MODE_PROP_ATOMIC, - "AMD_CRC_WIN_Y_END", 0, U16_MAX); - if (!dm->crc_win_y_end_property) - return -ENOMEM; - - return 0; -} -#endif - static int amdgpu_dm_init(struct amdgpu_device *adev) { struct dc_init_data init_data; @@ -1119,10 +1084,6 @@ static int amdgpu_dm_init(struct amdgpu_device *adev) dc_init_callbacks(adev->dm.dc, &init_params); } -#endif -#ifdef CONFIG_DEBUG_FS - if (create_crtc_crc_properties(&adev->dm)) - DRM_ERROR("amdgpu: failed to create crc property.\n"); #endif if (amdgpu_dm_initialize_drm_device(adev)) { DRM_ERROR( @@ -5456,64 +5417,12 @@ dm_crtc_duplicate_state(struct drm_crtc *crtc) state->crc_src = cur->crc_src; state->cm_has_degamma = cur->cm_has_degamma; state->cm_is_degamma_srgb = cur->cm_is_degamma_srgb; -#ifdef CONFIG_DEBUG_FS - state->crc_window = cur->crc_window; -#endif + /* TODO Duplicate dc_stream after objects are stream object is flattened */ return &state->base; } -#ifdef CONFIG_DEBUG_FS -static int amdgpu_dm_crtc_atomic_set_property(struct drm_crtc *crtc, - struct drm_crtc_state *crtc_state, - struct drm_property *property, - uint64_t val) -{ - struct drm_device *dev = crtc->dev; - struct amdgpu_device *adev = drm_to_adev(dev); - struct dm_crtc_state *dm_new_state = - to_dm_crtc_state(crtc_state); - - if (property == adev->dm.crc_win_x_start_property) - dm_new_state->crc_window.x_start = val; - else if (property == adev->dm.crc_win_y_start_property) - dm_new_state->crc_window.y_start = val; - else if (property == adev->dm.crc_win_x_end_property) - dm_new_state->crc_window.x_end = val; - else if (property == adev->dm.crc_win_y_end_property) - dm_new_state->crc_window.y_end = val; - else - return -EINVAL; - - return 0; -} - -static int amdgpu_dm_crtc_atomic_get_property(struct drm_crtc *crtc, - const struct drm_crtc_state *state, - struct drm_property *property, - uint64_t *val) -{ - struct drm_device *dev = crtc->dev; - struct amdgpu_device *adev = drm_to_adev(dev); - struct dm_crtc_state *dm_state = - to_dm_crtc_state(state); - - if (property == adev->dm.crc_win_x_start_property) - *val = dm_state->crc_window.x_start; - else if (property == adev->dm.crc_win_y_start_property) - *val = dm_state->crc_window.y_start; - else if (property == adev->dm.crc_win_x_end_property) - *val = dm_state->crc_window.x_end; - else if (property == adev->dm.crc_win_y_end_property) - *val = dm_state->crc_window.y_end; - else - return -EINVAL; - - return 0; -} -#endif - static inline int dm_set_vupdate_irq(struct drm_crtc *crtc, bool enable) { enum dc_irq_source irq_source; @@ -5599,10 +5508,6 @@ static const struct drm_crtc_funcs amdgpu_dm_crtc_funcs = { .enable_vblank = dm_enable_vblank, .disable_vblank = dm_disable_vblank, .get_vblank_timestamp = drm_crtc_vblank_helper_get_vblank_timestamp, -#ifdef CONFIG_DEBUG_FS - .atomic_set_property = amdgpu_dm_crtc_atomic_set_property, - .atomic_get_property = amdgpu_dm_crtc_atomic_get_property, -#endif }; static enum drm_connector_status @@ -6829,25 +6734,6 @@ static int amdgpu_dm_plane_init(struct amdgpu_display_manager *dm, return 0; } -#ifdef CONFIG_DEBUG_FS -static void attach_crtc_crc_properties(struct amdgpu_display_manager *dm, - struct amdgpu_crtc *acrtc) -{ - drm_object_attach_property(&acrtc->base.base, - dm->crc_win_x_start_property, - 0); - drm_object_attach_property(&acrtc->base.base, - dm->crc_win_y_start_property, - 0); - drm_object_attach_property(&acrtc->base.base, - dm->crc_win_x_end_property, - 0); - drm_object_attach_property(&acrtc->base.base, - dm->crc_win_y_end_property, - 0); -} -#endif - static int amdgpu_dm_crtc_init(struct amdgpu_display_manager *dm, struct drm_plane *plane, uint32_t crtc_index) @@ -6895,9 +6781,7 @@ static int amdgpu_dm_crtc_init(struct amdgpu_display_manager *dm, drm_crtc_enable_color_mgmt(&acrtc->base, MAX_COLOR_LUT_ENTRIES, true, MAX_COLOR_LUT_ENTRIES); drm_mode_crtc_set_gamma_size(&acrtc->base, MAX_COLOR_LEGACY_LUT_ENTRIES); -#ifdef CONFIG_DEBUG_FS - attach_crtc_crc_properties(dm, acrtc); -#endif + return 0; fail: @@ -8538,7 +8422,6 @@ static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state) */ for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { struct amdgpu_crtc *acrtc = to_amdgpu_crtc(crtc); - bool configure_crc = false; dm_new_crtc_state = to_dm_crtc_state(new_crtc_state); @@ -8548,30 +8431,21 @@ static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state) dc_stream_retain(dm_new_crtc_state->stream); acrtc->dm_irq_params.stream = dm_new_crtc_state->stream; manage_dm_interrupts(adev, acrtc, true); - } + #ifdef CONFIG_DEBUG_FS - if (new_crtc_state->active && - amdgpu_dm_is_valid_crc_source(dm_new_crtc_state->crc_src)) { /** * Frontend may have changed so reapply the CRC capture * settings for the stream. */ dm_new_crtc_state = to_dm_crtc_state(new_crtc_state); - dm_old_crtc_state = to_dm_crtc_state(old_crtc_state); - - if (amdgpu_dm_crc_window_is_default(dm_new_crtc_state)) { - if (!old_crtc_state->active || drm_atomic_crtc_needs_modeset(new_crtc_state)) - configure_crc = true; - } else { - if (amdgpu_dm_crc_window_changed(dm_new_crtc_state, dm_old_crtc_state)) - configure_crc = true; - } - if (configure_crc) + if (amdgpu_dm_is_valid_crc_source(dm_new_crtc_state->crc_src)) { amdgpu_dm_crtc_configure_crc_source( - crtc, dm_new_crtc_state, dm_new_crtc_state->crc_src); - } + crtc, dm_new_crtc_state, + dm_new_crtc_state->crc_src); + } #endif + } } for_each_new_crtc_in_state(state, crtc, new_crtc_state, j) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h index ef394e941d9d..9d22d62ac2d1 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h @@ -343,13 +343,6 @@ struct amdgpu_display_manager { */ uint32_t active_vblank_irq_count; -#ifdef CONFIG_DEBUG_FS - /* set the crc calculation window*/ - struct drm_property *crc_win_x_start_property; - struct drm_property *crc_win_y_start_property; - struct drm_property *crc_win_x_end_property; - struct drm_property *crc_win_y_end_property; -#endif /** * @mst_encoders: * @@ -436,15 +429,6 @@ struct dm_plane_state { struct dc_plane_state *dc_state; }; -#ifdef CONFIG_DEBUG_FS -struct crc_rec { - uint16_t x_start; - uint16_t y_start; - uint16_t x_end; - uint16_t y_end; - }; -#endif - struct dm_crtc_state { struct drm_crtc_state base; struct dc_stream_state *stream; @@ -467,9 +451,6 @@ struct dm_crtc_state { struct dc_info_packet vrr_infopacket; int abm_level; -#ifdef CONFIG_DEBUG_FS - struct crc_rec crc_window; -#endif }; #define to_dm_crtc_state(x) container_of(x, struct dm_crtc_state, base) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c index 7b886a779a8c..c29dc11619f7 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c @@ -81,41 +81,6 @@ const char *const *amdgpu_dm_crtc_get_crc_sources(struct drm_crtc *crtc, return pipe_crc_sources; } -static void amdgpu_dm_set_crc_window_default(struct dm_crtc_state *dm_crtc_state) -{ - dm_crtc_state->crc_window.x_start = 0; - dm_crtc_state->crc_window.y_start = 0; - dm_crtc_state->crc_window.x_end = 0; - dm_crtc_state->crc_window.y_end = 0; -} - -bool amdgpu_dm_crc_window_is_default(struct dm_crtc_state *dm_crtc_state) -{ - bool ret = true; - - if ((dm_crtc_state->crc_window.x_start != 0) || - (dm_crtc_state->crc_window.y_start != 0) || - (dm_crtc_state->crc_window.x_end != 0) || - (dm_crtc_state->crc_window.y_end != 0)) - ret = false; - - return ret; -} - -bool amdgpu_dm_crc_window_changed(struct dm_crtc_state *dm_new_crtc_state, - struct dm_crtc_state *dm_old_crtc_state) -{ - bool ret = false; - - if ((dm_new_crtc_state->crc_window.x_start != dm_old_crtc_state->crc_window.x_start) || - (dm_new_crtc_state->crc_window.y_start != dm_old_crtc_state->crc_window.y_start) || - (dm_new_crtc_state->crc_window.x_end != dm_old_crtc_state->crc_window.x_end) || - (dm_new_crtc_state->crc_window.y_end != dm_old_crtc_state->crc_window.y_end)) - ret = true; - - return ret; -} - int amdgpu_dm_crtc_verify_crc_source(struct drm_crtc *crtc, const char *src_name, size_t *values_cnt) @@ -140,7 +105,6 @@ int amdgpu_dm_crtc_configure_crc_source(struct drm_crtc *crtc, struct dc_stream_state *stream_state = dm_crtc_state->stream; bool enable = amdgpu_dm_is_valid_crc_source(source); int ret = 0; - struct crc_params *crc_window = NULL, tmp_window; /* Configuration will be deferred to stream enable. */ if (!stream_state) @@ -149,25 +113,9 @@ int amdgpu_dm_crtc_configure_crc_source(struct drm_crtc *crtc, mutex_lock(&adev->dm.dc_lock); /* Enable CRTC CRC generation if necessary. */ - if (dm_is_crc_source_crtc(source) || source == AMDGPU_DM_PIPE_CRC_SOURCE_NONE) { - if (!enable) - amdgpu_dm_set_crc_window_default(dm_crtc_state); - - if (!amdgpu_dm_crc_window_is_default(dm_crtc_state)) { - crc_window = &tmp_window; - - tmp_window.windowa_x_start = dm_crtc_state->crc_window.x_start; - tmp_window.windowa_y_start = dm_crtc_state->crc_window.y_start; - tmp_window.windowa_x_end = dm_crtc_state->crc_window.x_end; - tmp_window.windowa_y_end = dm_crtc_state->crc_window.y_end; - tmp_window.windowb_x_start = dm_crtc_state->crc_window.x_start; - tmp_window.windowb_y_start = dm_crtc_state->crc_window.y_start; - tmp_window.windowb_x_end = dm_crtc_state->crc_window.x_end; - tmp_window.windowb_y_end = dm_crtc_state->crc_window.y_end; - } - + if (dm_is_crc_source_crtc(source)) { if (!dc_stream_configure_crc(stream_state->ctx->dc, - stream_state, crc_window, enable, enable)) { + stream_state, NULL, enable, enable)) { ret = -EINVAL; goto unlock; } diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.h b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.h index 0235bfb246e5..f7d731797d3f 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.h +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.h @@ -47,9 +47,6 @@ static inline bool amdgpu_dm_is_valid_crc_source(enum amdgpu_dm_pipe_crc_source /* amdgpu_dm_crc.c */ #ifdef CONFIG_DEBUG_FS -bool amdgpu_dm_crc_window_is_default(struct dm_crtc_state *dm_crtc_state); -bool amdgpu_dm_crc_window_changed(struct dm_crtc_state *dm_new_crtc_state, - struct dm_crtc_state *dm_old_crtc_state); int amdgpu_dm_crtc_configure_crc_source(struct drm_crtc *crtc, struct dm_crtc_state *dm_crtc_state, enum amdgpu_dm_pipe_crc_source source); diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c index f4a2088ab179..da292cea0f56 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -3272,6 +3272,8 @@ void core_link_enable_stream( } } + dc->hwss.enable_audio_stream(pipe_ctx); + /* turn off otg test pattern if enable */ if (pipe_ctx->stream_res.tg->funcs->set_test_pattern) pipe_ctx->stream_res.tg->funcs->set_test_pattern(pipe_ctx->stream_res.tg,