Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2673687ybn; Thu, 26 Sep 2019 15:54:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzhPJr+c0AFfWO/jIW6o1JzpllvH7feRK8/AhbhGpgBIiY0plbvmOtRdYOGJC6m9QUBGOlS X-Received: by 2002:a17:906:2542:: with SMTP id j2mr5441321ejb.278.1569538467928; Thu, 26 Sep 2019 15:54:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569538467; cv=none; d=google.com; s=arc-20160816; b=L/+Hh7qGncuUNrslM8/NYw2QLjT750VIUPuvNC2KOBg3v7MW9LRXRJXFHcayabXJXQ jNXiAP58o0kaLHlvOY/QJGKTeBRiLdZ5m2ZRmTK2hmIUlgcNcbY8y7A4CQmEVtvgfJFa V9Mm+cI7LzvMhMK46DMSxB55rhLl08GxJwmZmsBzHNOCPpzY8xrjy0gZ25W801jdVQDv blvJZfQ/1t6whOrl2guVXAIil4gi9IdrQFrPdeeKymC2s5YF5IeXmcmi2u2VIktGKEm2 Nc4oSMtnBLgGO7g8SeeNAM6B4hVETUITGIKrb8rCZFesR/UdFoQYB/OqJ/Fm9e7lnC7b PpWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=uSjZBoZsp8XphPgkYPGgtyRyqVxUsz2HKOzgQXInoYo=; b=VKi7DBe+ZGmo3v4xny9HDVs7Paj5pAdhTvzqh9eORBcuikhKhfQC+CUWGOhS0Rayjn G3CyWJl5NBeKFhRVN6AWDe8FQwQ/s374i1VObjc3GfhlatonFjdKkc20W7OxULoMBqtx iHFnN2jK0RC+mUP5rvgJu66/kAlm9G0MHMZaWPUJWBnRxXEFCk/haqNnEaBxdJ02Ml1b iFfY5A+mAWtHEeeggjZXHhpzH+v9HL9/SOft8i9dbBnOJ2XwP538XUE2pMd1K0v2o3se JLmAReDjVHWegpI8Ms+20LT+KPjxHBW6CiNMxgLh4QRAtx0rEUmUCWSYSHZXjCQl2UUK mitw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oq3si1856537ejb.220.2019.09.26.15.54.04; Thu, 26 Sep 2019 15:54:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728643AbfIZWwF (ORCPT + 99 others); Thu, 26 Sep 2019 18:52:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47404 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728564AbfIZWwD (ORCPT ); Thu, 26 Sep 2019 18:52:03 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CE359300603C; Thu, 26 Sep 2019 22:52:02 +0000 (UTC) Received: from malachite.bss.redhat.com (dhcp-10-20-1-34.bss.redhat.com [10.20.1.34]) by smtp.corp.redhat.com (Postfix) with ESMTP id 97851600C1; Thu, 26 Sep 2019 22:52:01 +0000 (UTC) From: Lyude Paul To: amd-gfx@lists.freedesktop.org Cc: Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "David (ChunMing) Zhou" , David Airlie , Daniel Vetter , "Jerry (Fangzhi) Zuo" , Thomas Lim , David Francis , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] drm/amdgpu/dm/mst: Use ->atomic_best_encoder Date: Thu, 26 Sep 2019 18:51:05 -0400 Message-Id: <20190926225122.31455-4-lyude@redhat.com> In-Reply-To: <20190926225122.31455-1-lyude@redhat.com> References: <20190926225122.31455-1-lyude@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Thu, 26 Sep 2019 22:52:02 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We are supposed to be atomic after all. We'll need this in a moment for the next commit. Signed-off-by: Lyude Paul --- .../drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c index a398ddd1f306..d9113ce0be09 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c @@ -243,17 +243,17 @@ static int dm_dp_mst_get_modes(struct drm_connector *connector) return ret; } -static struct drm_encoder *dm_mst_best_encoder(struct drm_connector *connector) +static struct drm_encoder * +dm_mst_atomic_best_encoder(struct drm_connector *connector, + struct drm_connector_state *connector_state) { - struct amdgpu_dm_connector *amdgpu_dm_connector = to_amdgpu_dm_connector(connector); - - return &amdgpu_dm_connector->mst_encoder->base; + return &to_amdgpu_dm_connector(connector)->mst_encoder->base; } static const struct drm_connector_helper_funcs dm_dp_mst_connector_helper_funcs = { .get_modes = dm_dp_mst_get_modes, .mode_valid = amdgpu_dm_connector_mode_valid, - .best_encoder = dm_mst_best_encoder, + .atomic_best_encoder = dm_mst_atomic_best_encoder, }; static void amdgpu_dm_encoder_destroy(struct drm_encoder *encoder) -- 2.21.0