From patchwork Thu Jul 4 19:05:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Leo Li X-Patchwork-Id: 11031845 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4574A912 for ; Thu, 4 Jul 2019 19:06:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2D6F328A78 for ; Thu, 4 Jul 2019 19:06:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2028228A7E; Thu, 4 Jul 2019 19:06:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 90F9C28A78 for ; Thu, 4 Jul 2019 19:06:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 513AC6E3AE; Thu, 4 Jul 2019 19:06:23 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM04-SN1-obe.outbound.protection.outlook.com (mail-eopbgr700077.outbound.protection.outlook.com [40.107.70.77]) by gabe.freedesktop.org (Postfix) with ESMTPS id A0D596E3AE; Thu, 4 Jul 2019 19:06:22 +0000 (UTC) Received: from BN8PR12CA0009.namprd12.prod.outlook.com (2603:10b6:408:60::22) by BN6PR12MB1841.namprd12.prod.outlook.com (2603:10b6:404:103::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2032.20; Thu, 4 Jul 2019 19:06:21 +0000 Received: from DM3NAM03FT017.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::204) by BN8PR12CA0009.outlook.office365.com (2603:10b6:408:60::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2032.17 via Frontend Transport; Thu, 4 Jul 2019 19:06:20 +0000 Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by DM3NAM03FT017.mail.protection.outlook.com (10.152.82.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2052.18 via Frontend Transport; Thu, 4 Jul 2019 19:06:20 +0000 Received: from localhost.localdomain (10.180.168.240) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server id 14.3.389.1; Thu, 4 Jul 2019 14:06:19 -0500 From: To: , Subject: [PATCH 00/10] Enable MST Aux devices (v2) Date: Thu, 4 Jul 2019 15:05:09 -0400 Message-ID: <20190704190519.29525-1-sunpeng.li@amd.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(376002)(136003)(396003)(346002)(2980300002)(428003)(53754006)(199004)(189003)(5820100001)(6666004)(356004)(47776003)(478600001)(86362001)(2876002)(305945005)(1076003)(8676002)(53936002)(81156014)(81166006)(72206003)(426003)(70586007)(26005)(54906003)(126002)(5660300002)(186003)(50226002)(2906002)(316002)(77096007)(68736007)(8936002)(2616005)(50466002)(486006)(4326008)(70206006)(476003)(2870700001)(36756003)(110136005)(49486002)(336012)(23676004); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR12MB1841; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cf1f90f9-fef5-4457-13d5-08d700b2b31d X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328); SRVR:BN6PR12MB1841; X-MS-TrafficTypeDiagnostic: BN6PR12MB1841: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-Forefront-PRVS: 0088C92887 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: Oaj//xcd9X/T4RZw1rKYYCEHCd42s6EQPkLp4TT8v7k/Qeme8ELngsXSnN7MFlOI33pZ2ue1mZyItXkMBGQ7+OmHmw1BeLtDcq5s39tOe5Hd20J/kDJoXqfxcRcEop3fi5ysLDGqIGHJHFYfAxjGRHNL/+4Cz79Qr+Lo4eb5UAxSioty3pgkMZmq+KZ46lC+zfN7TT5wJ3ctfkiIyG3iNMxluhE7BX0AmNiqLWyU0TigukhjQfJUjku1JsHiY1igSJD92AzE3XWhZl4M0Ele1rPWskGsJZkz95S3kYWCPcbYuNHpGJYn4PVE7zNzethShE6bCudaYSmNUhKxs4qiGecRHaOK2XnJioCDzOVumtYgQZ8RS0nVJ8ej+IppKkff2rxRF72BkMcBcaBJ2g7MfPzK/+NrhecLzmF9wGcRIvA= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2019 19:06:20.2508 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cf1f90f9-fef5-4457-13d5-08d700b2b31d 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.17]; Helo=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1841 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qi8ZeDBProilqFYO+bSNQQII9lQsOzp3DUmrK3KRsqc=; b=LroZ9Xoqr7JyXmBZB017miOFsL8b8R74zab3xuZ9U/n8vz4pAetXNL64fD0o8nru28vViZJ6l/IVOAVM1zBkJ8AtrFvPF8rkclNvCSlqXkAlHpJe5/4gXbNoV+jPIz4w8llyI/VQ+tDl443x4R2UUCMVRIlhm4G66S3uNYedh18= X-Mailman-Original-Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=permerror action=none header.from=amd.com; X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Leo Li Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Leo Li Hi all, Here's the second revision of patches to enable mst aux devices. v2 fixes an aux device unregistration issue during driver unload. See patch 2/10 for details. Consequently, drivers supporting mst are modified to use the new mst connector late register and early unregister helpers. Thanks, Leo Leo Li (9): drm/dp: Use non-cyclic idr drm/sysfs: Add mstpath attribute to connector devices drm/nouveau: Use connector kdev as aux device parent drm/bridge/analogix-anx78xx: Use connector kdev as aux device parent drm/amd/display: Use connector kdev as aux device parent drm/i915: Implement MST Aux device registration drm/nouveau/kms/nv50: Implement MST Aux device registration drm/radeon: Implement MST Aux device registration drm/amd/display: Implement MST Aux device registration Ville Syrjälä (1): drm/dp_mst: Enable registration of AUX devices for MST ports .../display/amdgpu_dm/amdgpu_dm_mst_types.c | 26 +++- drivers/gpu/drm/bridge/analogix-anx78xx.c | 22 +-- drivers/gpu/drm/drm_dp_aux_dev.c | 19 ++- drivers/gpu/drm/drm_dp_mst_topology.c | 137 ++++++++++++++++-- drivers/gpu/drm/drm_sysfs.c | 23 +++ drivers/gpu/drm/i915/display/intel_dp_mst.c | 29 +++- drivers/gpu/drm/nouveau/dispnv50/disp.c | 20 +++ drivers/gpu/drm/nouveau/nouveau_connector.c | 2 +- drivers/gpu/drm/radeon/radeon_dp_mst.c | 22 +++ include/drm/drm_dp_helper.h | 4 + include/drm/drm_dp_mst_helper.h | 11 ++ 11 files changed, 285 insertions(+), 30 deletions(-)