Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3736570ybn; Fri, 27 Sep 2019 10:34:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXY//TTAbDLjLlzwKVKQZBNvTL3grmo7TBcfAY23c68qsEd3/875qKctYLEQPu/D9QlQjd X-Received: by 2002:a17:906:7a0d:: with SMTP id d13mr8928864ejo.242.1569605666088; Fri, 27 Sep 2019 10:34:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569605666; cv=none; d=google.com; s=arc-20160816; b=rf9Y4FYSUbayrVlLU8Hsj28JGz4LZzyWqLxbTt5ArDrkUSG9iMEx2FAn4+CxwxlIIj Ea5ESAG8/65wGwRGkAa1Geqv/0VYqR35p58Hjjs5fkzsjhhnJDv+RtmT+50KBr+YH5VX me6fceU4xXSTAmHSoqZ9OH3ZRM6Mwp4xwjgDKLXPMZ77R+BjrtYtcRMGSkxR9wpE8CUr 81GXC1CitX0PpVrd0wHojqqNLpGZxL9d/udXExQ0iDuXHfykr3t9M3w5jPJNEC9qpKcG 1dUbaQi/S1bo7xRfXICWz4bwm3OzQL8F5DdAg+DcUyMSTXO5koeKvKNpO+fHJDVMosCx brSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xCO5ciSSmIdXUVqoacYxpnyVZL078hnLTwI76k2DE7k=; b=dVfOS58VUvIsb387UU5TTEbvDJu0YKUFPmOly2I98pMuZov/MZ8R9Dh253WGulCQ1V fAvVgEu0y9JWlMOsWesXAj8CT1/CWGA5Y21NHfzrdzgaJM1U5sdcyeLKe8W0/VxivX0P HkYlNQ+nGypBFIbnNBM7ywNCTBt0ZQJDyvKlmG9rKPNwRlQ3//ataBaGvYDRO1yA+AKa +gjeKeM4YY5qKtilet5zcIcEy+2pI3MwvdwfoF0cvWcHElXQq5KnplOoOsLsyAtJe46Q sfT2gkAmZfnUWLFJ3ByFTdJM/e1lNg3jVYyWEzgMpEnvCa27JH6GER6Antq8dhnYH+BM Fsrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=cMG2MtTo; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e22si3316309ejm.72.2019.09.27.10.33.59; Fri, 27 Sep 2019 10:34:26 -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=@poorly.run header.s=google header.b=cMG2MtTo; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727904AbfI0P1n (ORCPT + 99 others); Fri, 27 Sep 2019 11:27:43 -0400 Received: from mail-yb1-f193.google.com ([209.85.219.193]:37943 "EHLO mail-yb1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727159AbfI0P1n (ORCPT ); Fri, 27 Sep 2019 11:27:43 -0400 Received: by mail-yb1-f193.google.com with SMTP id o18so2143714ybp.5 for ; Fri, 27 Sep 2019 08:27:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=xCO5ciSSmIdXUVqoacYxpnyVZL078hnLTwI76k2DE7k=; b=cMG2MtToZzs3UHpI4/HPfkMWHQsMl3J0yUvt0dq90wo0nEp75aU/LhW8CZaUkAoJux vrO0oVe7aNc9TJr2ts+E0u31AkU85ro9bfc0Baeyx5eNn88oPZq3lNiK9cEbtKAXBERq iUbcOZ2DhLUYhJkDkNnZ3iREICTGVEd6NamF4yLvSlZLhS2QU4CJzd2V0+/zAHwhn067 bSSQVZEN4GJugjJ+g9Ktr9e8jj5lTI0wDQOewqHICOYgmWh9K6EE3/FYFCYHvvx+eZuG 717osfvhyXcCzvzXBMJAholxzGNrI/rNrFDHCQZ6C0ZbCK0GGShfAsFnUCM3uvTb/Pd/ Tiaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=xCO5ciSSmIdXUVqoacYxpnyVZL078hnLTwI76k2DE7k=; b=oBG4VBJCNdVpW+pVQhyn8xRkfq0ozGim5IISS3dieZ/DsUIRCRBP9Vj4wVeQRqhBPO 3s5NkNckccEkPhCAEgSp6ZQcK3WnmOwOMrqo/VL5yuZ24h8XZNOgm4+a7Op0sYWyeUcX Zp/WCsHqhCjuhIzpp8NMXIbYwUE8kO1YZI3YuIcY9iHwwtGd5WzTtQ1BfzOh3WulIxwo ceYHp3i+bcFYS7ltftBxYu00Bxy3rS3wZ4Rhkd8eF2t1OeMiEABEgDS1t7vEfScqjN1G XuzOrUhBVbX/Yy673WaaJNq9eHAE16AF7nCzy2lCKDsxVuxWihSUWnI4TYrLIfO9hnF3 oCKQ== X-Gm-Message-State: APjAAAXsQvIH9GmwdmxySeVLIdDOZ0hUpKYGPpELJZ+9fB0EaarP5p/z XyxAdzuEgWEDD0VfhY+9611NGg== X-Received: by 2002:a25:5f10:: with SMTP id t16mr5955074ybb.25.1569598062040; Fri, 27 Sep 2019 08:27:42 -0700 (PDT) Received: from localhost ([2620:0:1013:11:89c6:2139:5435:371d]) by smtp.gmail.com with ESMTPSA id 207sm644901ywu.106.2019.09.27.08.27.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Sep 2019 08:27:41 -0700 (PDT) Date: Fri, 27 Sep 2019 11:27:41 -0400 From: Sean Paul To: Lyude Paul Cc: amd-gfx@lists.freedesktop.org, Ville =?iso-8859-1?Q?Syrj=E4l=E4?= , Harry Wentland , Leo Li , Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= , "David (ChunMing) Zhou" , David Airlie , Daniel Vetter , Nicholas Kazlauskas , David Francis , Mario Kleiner , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/6] drm/amdgpu/dm/mst: Report possible_crtcs incorrectly, for now Message-ID: <20190927152741.GU218215@art_vandelay> References: <20190926225122.31455-1-lyude@redhat.com> <20190926225122.31455-6-lyude@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190926225122.31455-6-lyude@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) 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 06:51:07PM -0400, Lyude Paul wrote: > This commit is seperate from the previous one to make it easier to > revert in the future. Basically, there's multiple userspace applications > that interpret possible_crtcs very wrong: > > https://gitlab.freedesktop.org/xorg/xserver/merge_requests/277 > https://gitlab.gnome.org/GNOME/mutter/issues/759 > > While work is ongoing to fix these issues in userspace, we need to > report ->possible_crtcs incorrectly for now in order to avoid > introducing a regression in in userspace. Once these issues get fixed, > this commit should be reverted. > > Signed-off-by: Lyude Paul > Cc: Ville Syrj?l? > --- > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > 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 b404f1ae6df7..fe8ac801d7a5 100644 > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > @@ -4807,6 +4807,17 @@ static int amdgpu_dm_crtc_init(struct amdgpu_display_manager *dm, > if (!acrtc->mst_encoder) > goto fail; > > + /* > + * FIXME: This is a hack to workaround the following issues: > + * > + * https://gitlab.gnome.org/GNOME/mutter/issues/759 > + * https://gitlab.freedesktop.org/xorg/xserver/merge_requests/277 > + * > + * One these issues are closed, this should be removed Even when these issues are closed, we'll still be introducing a regression if we revert this change. Time for actually_possible_crtcs? :) You also might want to briefly explain the u/s bug in case the links go sour. > + */ > + acrtc->mst_encoder->base.possible_crtcs = > + amdgpu_dm_get_encoder_crtc_mask(dm->adev); Why don't we put this hack in amdgpu_dm_dp_create_fake_mst_encoder()? Sean > + > return 0; > > fail: > -- > 2.21.0 > -- Sean Paul, Software Engineer, Google / Chromium OS