Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1041121ybp; Wed, 9 Oct 2019 08:03:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwhokwlsi5aiwvoZd/ITo0IauW514nklfgejslruF1badH9er+i9rdUWv7othLLy8ziRsg X-Received: by 2002:a05:6402:1252:: with SMTP id l18mr3430097edw.64.1570633382229; Wed, 09 Oct 2019 08:03:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570633382; cv=none; d=google.com; s=arc-20160816; b=hpRic6lle5FYvAAqvKiXIcXf/z9RPDrUFvn3+gLOdEDQKG6K802Zadl5dvhpObmY4O PAbEwq+Lr/MLwTM2r4MT2Yeuob7J7sGe/EkdXyU/io4utqdek8KE7uihsPqAyUReqZfP vk3Y2uQQ0qwxkWW08a5nangfBnUN2m9ciH3iN8wkFTsDjfDtCwG0ioOfSQ8aMM5QvQ7g dZa1QYhBZQMJB+nc0Djgyyiz979pVd0HCpJbi9dR5z7wtYouTobNahVZxmUVzwDHZ3G0 sDub4XHYuGL0L0sSiz5kD0o8LcMRtOv//Zvf8rZzDWUJJ2n5NgHFs5hjrcmWUgX2L+AH Thhg== 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:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=yyvcYwcZMjLvzOg82pdsNDaaC7kmo5LxgAiQA0bNidE=; b=I0gXY1MbYIKwUt1nolHhdBgvOivYNJRLULsutyjU3jxzLg/ccsfVjzat/mQHaV9dj8 W3PRMEnNpB8JybShYpcbMzcr+AST+T9/XO75oL9td5h1CWbGmy6JrHJ2IhEvlRtH/p+k RQgA3zIcmWFvnJc3j+E6WMAuP4j8zz5fANSz1khtlbF2b4WUxp7vVMI36/+OodRpFKdm IW3gSkZJxXt37ShDXwPIv45LqBkN4lwpiR5MqL+ckOrfzj9sLsToEhORPzFY9iEMb7mv WHic5KLdYoa7zl1eRbU71trcyLOpyofBXzdSyrWm1mDVqYkJD7Z3LN4mCjKmqSsXcqzE DZ+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=gYe64hQi; 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 g11si1340816ejc.366.2019.10.09.08.02.22; Wed, 09 Oct 2019 08:03:02 -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=fail header.i=@ffwll.ch header.s=google header.b=gYe64hQi; 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 S1731637AbfJIPCD (ORCPT + 99 others); Wed, 9 Oct 2019 11:02:03 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:46605 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731343AbfJIPCC (ORCPT ); Wed, 9 Oct 2019 11:02:02 -0400 Received: by mail-ed1-f68.google.com with SMTP id t3so2298400edw.13 for ; Wed, 09 Oct 2019 08:02:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=yyvcYwcZMjLvzOg82pdsNDaaC7kmo5LxgAiQA0bNidE=; b=gYe64hQiSH9s0AJCdM7d1Bpyt8JKFCNdMMrjjOcAJi8DHx8XJgIrh57L+Ua+aOEDF3 tDEDdsqQtlX72bjr6UtMaozSyJBPTTbaEmX2NDhel45HJY+/8NLQeeGyBEW28ALnz25W IzDdms1jqdIXYegTRSGBxksi1VQ7WtffxRg+8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=yyvcYwcZMjLvzOg82pdsNDaaC7kmo5LxgAiQA0bNidE=; b=WwTcR5DbqBdgZ35my57R3XKED+JELAs/s4rcMvlksaoOXDPjaKCvAlDS/JNljbi2H3 ckmtrFE+yy3ITwd/E7oFOu9ox9Ujm+udarvXxwBZ8LKwPvstNeB8LemkTUtB1pQEostX 7f/FNNLMLvBWrkjR9ddMZtI45fX2uYSYtJw+sv3Rgdkt/jzBPtr/lh/XJSPNC3/Dfa/3 H22+b4Gtbvf7Dn7js93gdNp9PPUD1PK3qo7xwzYnlHFlurDQD3fQ4Wgj9Hvc31ZnFmpJ QEI6QeYtRu38A5fdbTb3tLNiWQ+qPftf3VKC76fgPMV/exC83QC0R6CM5KbZeFQ9ZDei R4MA== X-Gm-Message-State: APjAAAVif+0TZnjS9sBbxQ99I/nz0OyBEfsadp1FQPxGAl9PSYNfHDN3 Ub+ea47uPrgYmqgW5M23sc1rpQ== X-Received: by 2002:a05:6402:3c5:: with SMTP id t5mr3299252edw.125.1570633320982; Wed, 09 Oct 2019 08:02:00 -0700 (PDT) Received: from phenom.ffwll.local (212-51-149-96.fiber7.init7.net. [212.51.149.96]) by smtp.gmail.com with ESMTPSA id fx25sm279855ejb.19.2019.10.09.08.01.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 08:01:59 -0700 (PDT) Date: Wed, 9 Oct 2019 17:01:55 +0200 From: Daniel Vetter To: Sean Paul Cc: Lyude Paul , 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: <20191009150155.GD16989@phenom.ffwll.local> Mail-Followup-To: Sean Paul , Lyude Paul , 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 , Nicholas Kazlauskas , David Francis , Mario Kleiner , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20190926225122.31455-1-lyude@redhat.com> <20190926225122.31455-6-lyude@redhat.com> <20190927152741.GU218215@art_vandelay> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190927152741.GU218215@art_vandelay> X-Operating-System: Linux phenom 5.2.0-2-amd64 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 Fri, Sep 27, 2019 at 11:27:41AM -0400, Sean Paul wrote: > 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()? If we don't have the same hack for i915 mst I think we shouldn't merge this ... broken userspace is broken. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch