Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3490734ybn; Fri, 27 Sep 2019 07:09:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyxAqJUcw+t/9Mrt1i1HQ5d52ERj7Ele/RCcdnqukmCVagH8TjGGRR+ICFzB8k9SrRE6GvC X-Received: by 2002:a05:6402:184d:: with SMTP id v13mr4927741edy.56.1569593379542; Fri, 27 Sep 2019 07:09:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569593379; cv=none; d=google.com; s=arc-20160816; b=mgK6Y+7On4ie0VWZ9m4NThp+4MyFM9JZE5468l1yCA0GGnFJWUrJhpRW3Dq3O250fO VhQlK81541+3TzX60OSI2ENQMFciSiQB5Gehi2YcGehNFL9o5aTBe8UZVlQLKj69qxtU sLWWgxXi0NqQx33eVgNA9X1tRZcjjKK7W9WxYNPgL3vqyBjAMGl4VMeFQ5HSaMYEHQtk yAxHPDCfG0h+c3aZ1+x7wZxrxnAH36A2BMnzyVq9pd6psNHyzE3WD89KSui7auQu5hQA G2JWD8kUUhPz2gFTOvdi7GNOiIuNZYmbbaFzOWm8d/YRmiqpRWDrpyeephJhPZDI9o4T g4PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=NZyHHXgc6Q6QHdwP79gBuKFm4KM2rxomgIQZLm0ILgc=; b=OHqIDgFZwK3/jLww8nFH4cxBLs9+FSV27I1924bpCaLcE0hByEDB/0hoQ6kNsmYGf8 Bk882tMozDYfmGiIOCZoH6kDOBqlgrXwMiKbSOTszCbQcYwO511gUuMdbg/ZWEVG5KPl vPEUh/LlIwZyoHhSwwsZNWGCD0TXRNi5rE89s0q9vQIIabm0/eMkKYQXlnqggIA+SHta 940JIsPbt2BXZJPiocMOVzFvCrXJ40ApovNFT3wcZWTZj9gKqZLS7Trz9AyFldXUwQdA T5kxFIqUigqQvxCz05svd9icn6Mhz8QJC7tHo2gR0lZGQbsy4ej430h5KMwr2sotRTv8 BkYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BTLnsP7d; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o22si2753249ejb.285.2019.09.27.07.09.14; Fri, 27 Sep 2019 07:09:39 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BTLnsP7d; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727587AbfI0OGr (ORCPT + 99 others); Fri, 27 Sep 2019 10:06:47 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:40549 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726163AbfI0OGr (ORCPT ); Fri, 27 Sep 2019 10:06:47 -0400 Received: by mail-wr1-f66.google.com with SMTP id l3so2889601wru.7 for ; Fri, 27 Sep 2019 07:06:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NZyHHXgc6Q6QHdwP79gBuKFm4KM2rxomgIQZLm0ILgc=; b=BTLnsP7dW8o4gwHZC4JoyArRZUQGEtx1FGV9PwHc3LuTfw1k2sbcRFk2KSXi23XVZr +RiZ+LdgyQO6DM+uiEwR+lBCfCDatjQgvjElYjbAj4qeCpq0rrn/zeehaEQ1tAf/Epav vrML0LRv82+mPY4f2XP+aaZf3y9jRCZqBb5UxxUUvnDwUyErgbC1X1wpmece42AXyKyk UM2v7Bc7NFkGS1qO0qdl4VhR67DrJ8vg9hKUj44sRToNMRmKF1QZZUV3GKF6dmhCToAw MahDlccmDua4sa2+UP+2ybRgTqmxN/OEftpRRhIJHEuueJyOnISJpstcrRNmSuRqy3ci VY+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NZyHHXgc6Q6QHdwP79gBuKFm4KM2rxomgIQZLm0ILgc=; b=Sq5hOI2EH4qqAT79y3+0ebQulwGFquzKmy+mvncL71A1oBWGVlHwLrXhq9216W9XEl B6u1H84wItKbiwod6MYjfrtB6cy4YRHawbTUNYqvkv6vn+LN4/ea4JYypR4/mCBdwi+H 2txXyHqsduXeKMq/H1MurD/D1+0iQ+Es8XN/FhTmq2UeNbruPivNvAT4wxJtpSaNshgm NiX8+jIZeSSr8Q57Rw3X6mgVnOCYqEIolVOWPmRZbLoszlq3ZaEIYIn/WGFY/waHefZd invfSIcqodZDg1F7dvzGphsXN4f/1N5K3DuJpDntSoKXIyKyHtfKFd5D1kysDX4+UHFr N4dA== X-Gm-Message-State: APjAAAWrdP4eCj1Cnkfu1pS9xny+CQ71WW44nnyQ+mm1x6peskGnoWbL 34ZPMaE55ABax6Ctc2rURftoinJ5ob45jv1YafA= X-Received: by 2002:adf:e9c5:: with SMTP id l5mr3146924wrn.40.1569593205209; Fri, 27 Sep 2019 07:06:45 -0700 (PDT) MIME-Version: 1.0 References: <20190926225122.31455-1-lyude@redhat.com> <20190926225122.31455-4-lyude@redhat.com> In-Reply-To: <20190926225122.31455-4-lyude@redhat.com> From: Alex Deucher Date: Fri, 27 Sep 2019 10:06:33 -0400 Message-ID: Subject: Re: [PATCH 3/6] drm/amdgpu/dm/mst: Use ->atomic_best_encoder To: Lyude Paul Cc: amd-gfx list , "David (ChunMing) Zhou" , Thomas Lim , Leo Li , David Francis , LKML , Maling list - DRI developers , David Airlie , "Jerry (Fangzhi) Zuo" , Daniel Vetter , Alex Deucher , Harry Wentland , =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 26, 2019 at 6:52 PM Lyude Paul wrote: > > We are supposed to be atomic after all. We'll need this in a moment for > the next commit. > > Signed-off-by: Lyude Paul Acked-by: Alex Deucher > --- > .../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 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx