Message ID | 1453500449-9224-6-git-send-email-harry.wentland@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4CB5D9F744 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 22 Jan 2016 22:08:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7D2AC205BD for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 22 Jan 2016 22:08:43 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 9216D205BB for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 22 Jan 2016 22:08:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DEB527A014; Fri, 22 Jan 2016 14:08:41 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0083.outbound.protection.outlook.com [157.56.110.83]) by gabe.freedesktop.org (Postfix) with ESMTPS id E4BFD7A014 for <dri-devel@lists.freedesktop.org>; Fri, 22 Jan 2016 14:08:38 -0800 (PST) Received: from CY1PR1201CA0014.namprd12.prod.outlook.com (10.169.17.152) by BN4PR12MB0851.namprd12.prod.outlook.com (10.164.59.13) with Microsoft SMTP Server (TLS) id 15.1.390.13; Fri, 22 Jan 2016 22:08:36 +0000 Received: from BY2NAM03FT057.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e4a::200) by CY1PR1201CA0014.outlook.office365.com (2a01:111:e400:5b9a::24) with Microsoft SMTP Server (TLS) id 15.1.390.13 via Frontend Transport; Fri, 22 Jan 2016 22:08:36 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.221) smtp.mailfrom=amd.com; lists.freedesktop.org; dkim=none (message not signed) header.d=none;lists.freedesktop.org; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from atltwp01.amd.com (165.204.84.221) by BY2NAM03FT057.mail.protection.outlook.com (10.152.85.149) with Microsoft SMTP Server id 15.1.390.12 via Frontend Transport; Fri, 22 Jan 2016 22:08:36 +0000 X-WSS-ID: 0O1DK6A-07-DMG-02 X-M-MSG: Received: from satlvexedge01.amd.com (satlvexedge01.amd.com [10.177.96.28]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by atltwp01.amd.com (Axway MailGate 5.3.1) with ESMTPS id 2431512C12C1 for <dri-devel@lists.freedesktop.org>; Fri, 22 Jan 2016 17:08:34 -0500 (EST) Received: from SATLEXDAG05.amd.com (10.181.40.11) by satlvexedge01.amd.com (10.177.96.28) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 22 Jan 2016 16:08:41 -0600 Received: from STOREXDAG02.amd.com (10.1.13.11) by satlexdag05.amd.com (10.181.40.11) with Microsoft SMTP Server (TLS) id 14.3.266.1; Fri, 22 Jan 2016 17:08:33 -0500 Received: from cnhwentlanub.amd.com (172.29.225.36) by storexdag02.amd.com (10.1.13.11) with Microsoft SMTP Server id 14.3.266.1; Fri, 22 Jan 2016 17:08:32 -0500 From: Harry Wentland <harry.wentland@amd.com> To: <dri-devel@lists.freedesktop.org> Subject: [PATCH 5/5] drm/dp/mst: Reverse order of MST enable and clearing VC payload table. Date: Fri, 22 Jan 2016 17:07:29 -0500 Message-ID: <1453500449-9224-6-git-send-email-harry.wentland@amd.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1453500449-9224-1-git-send-email-harry.wentland@amd.com> References: <1453500449-9224-1-git-send-email-harry.wentland@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:165.204.84.221; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(428002)(199003)(189002)(53416004)(36756003)(19580395003)(106466001)(229853001)(19580405001)(105586002)(2351001)(2950100001)(4326007)(92566002)(101416001)(586003)(33646002)(77096005)(76176999)(87936001)(50986999)(2906002)(189998001)(5003600100002)(97736004)(110136002)(47776003)(5003940100001)(5008740100001)(50226001)(50466002)(11100500001)(48376002)(86362001)(450100001)(1096002)(1220700001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN4PR12MB0851; H:atltwp01.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN4PR12MB0851; 2:VxrPWpyA1GHfopM9toh4d31DF/WHbsZ0f2lG+W3oAHBSUaS9OydheBozmsZaEAII3cZzKK76puiwsh7nnko3wGCMkviTVrUoFsLwWtiYfAKW2Q9VagJgF5uCkeJzLjqSqkeb18FYmxeM57MAQ4zJoA==; 3:xbpECza+fj8xdSRDzBN5R6gAjpgo3IEbSVgbNOjsq9BCaC1h37WCyQ4GRk+1qKlyqfchl3iX5BqIHszbkP/cirws+51SdlGtCodMqMY+fIn33mQ5CH7RxUM0tKMkUaMS4tFyrVmPUJ0U6LFBtW7MhYXhJ7XjQw5eEC4RgrCuqiMTpWjH5iWGbkvDo0eQb2vy9Z1ZqamDv6Od0R8e6wNy3CVSobxovtqniEEQYS/Ymto=; 25:TVnuaNPnNSj4jsLvFZFEf8QSKlshr4pqTWziLps70XGK47Bx/qua8rbAbtzayuIr6eRO5lMNCGgVB/Wv/92AnHTCiotPQECNGvpAK+y5/1iZPBwybThzkci/gsemQqib5tO3RMNCZRjqZNvs0HdXGwSzo/GD6vxLeuLzecr1oP+QsZz0j1r+GCwOHmbehKgPG39pLdkjSO2kF2iuH+Ghf0hei7a0VIccDqxWnPjO6NxS41n1V1310L7D/D3I3K98 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN4PR12MB0851; X-MS-Office365-Filtering-Correlation-Id: ec55bdec-5b23-4618-3aec-08d323789360 X-Microsoft-Exchange-Diagnostics: 1; BN4PR12MB0851; 20:WYNgzlW5QL6HJ+wa8UfD+1TycV2q6v+ynbEOVzI9qNSX/DBwZgndKv+6HYiQC7/j59doRqRhxmbZIndj7hejJnf6niz8SdF3qvelTd8fTXL57S3IAIbJU47Ziss+bzMMzU98wA59dvOd7Y6tvZ/rIlWecANbPIRj5Yjkao+WPwZNQxNg7HcbzGktxfO6owgCbVexnwKJupsFmgpkpKKYcujfSuKOQdvUR9XNpl2o9VPzlj+Hl+UNe+7QlSxffetdXEk4tgLgTk2nKcJS75dUx00GINpXQINnU4S4NwCrAehEm1n06+9GT3NcxmiCyD2DFI3zlaU7WkyEmkNqSSENitIbqygJ6B5hSo50i/eBoHaCK7PseH76sZ6vvemwTXYfQYf1zHTQdP2xFoJKtrJu7q5Uxe7RJenGUaJuBE/cPF4bbYLnYxLc2dhyGZkrF7U+4DRtMf7llXr2GHgsCsKRQ24ZLl6wLpL6FUuPcZQD9RysB3XDC486KsySxGMjMOzt X-Microsoft-Antispam-PRVS: <BN4PR12MB085114458ACC503EE36C7CDC8CC40@BN4PR12MB0851.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(123027)(601004)(2401047)(13018025)(520078)(13023025)(13015025)(13017025)(8121501046)(13024025)(5005006)(3002001)(10201501046); SRVR:BN4PR12MB0851; BCL:0; PCL:0; RULEID:; SRVR:BN4PR12MB0851; X-Microsoft-Exchange-Diagnostics: 1; BN4PR12MB0851; 4:ircAV1MSihh+pEXhSccHvkuL3oK3MBNCrf9GpDD2CwHEF8MteatmsczTRQFKtMQMuRKHaFEwvnAkb0gcBzqvDDEeCU6dVeHZUFHeixVuh+BcNO3T4UBIQ4HJG2cc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97jEg4Pm/rY7GbaeMZadrmY4oEcF6C2dyVT5wN42V6XygLl90FwnM9gmhn+03jfMhVhuyaGMFTUHpuD8+6WHoXl4n+IDtWMN8Ru5mDNlbiTPd4G3DoJjvBqrGePMBmxWf2/uvbOqQ7BwhBuZbwdUOIWnCX02ldm9ArplDIOMIW7I5cnKZJ+IOlw/6mdCK SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jan 2016 22:08:36.2945 (UTC) 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.221]; Helo=[atltwp01.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN4PR12MB0851 Cc: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <http://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <http://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <http://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c index 01a7d0198e15..fc589265068b 100644 --- a/drivers/gpu/drm/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/drm_dp_mst_topology.c @@ -1998,6 +1998,12 @@ int drm_dp_mst_topology_mgr_set_mst(struct drm_dp_mst_topology_mgr *mgr, bool ms mgr->mst_primary = mstb; kref_get(&mgr->mst_primary->kref); + ret = drm_dp_dpcd_writeb(mgr->aux, DP_MSTM_CTRL, + DP_MST_EN | DP_UP_REQ_EN | DP_UPSTREAM_IS_SRC); + if (ret < 0) { + goto out_unlock; + } + { struct drm_dp_payload reset_pay; reset_pay.start_slot = 0; @@ -2005,12 +2011,6 @@ int drm_dp_mst_topology_mgr_set_mst(struct drm_dp_mst_topology_mgr *mgr, bool ms drm_dp_dpcd_write_payload(mgr, 0, &reset_pay); } - ret = drm_dp_dpcd_writeb(mgr->aux, DP_MSTM_CTRL, - DP_MST_EN | DP_UP_REQ_EN | DP_UPSTREAM_IS_SRC); - if (ret < 0) { - goto out_unlock; - } - queue_work(system_long_wq, &mgr->work); ret = 0;