Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp442670ybl; Fri, 6 Dec 2019 00:02:26 -0800 (PST) X-Google-Smtp-Source: APXvYqzxYn6Bqdn/J40qLKB/1bo+SyXGUTOXmgMdRONqTVatAJW1bazVHtfwYWY5caawYg5Z28x4 X-Received: by 2002:aca:de03:: with SMTP id v3mr5758270oig.162.1575619345889; Fri, 06 Dec 2019 00:02:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575619345; cv=none; d=google.com; s=arc-20160816; b=NHcyImilj5pxUjwxYol4hfO1l8cc+wf9NL8o2lBywQcNEObQsXq0PrDkt8K0czdhOr OT22aWB7cx4maN7srSARKG6N88fvL2ThagPphzKCDSHJrADFK1OUZk8dkahZ4my5fl+J vSbg/XzqZFUZYEupg9tar6rGTDj0+W5WFRELHKFOPpzxeaKUozcDVNmNJ3Ycmlx/onFE TBtYVfNQmneXsrT3wBCQ7ePYqbIN9CRVXiM8oZK5udC838l0lyJcEBhW0XEQVcGFTxIV uSfRVSRcaKq8qfQm/Sw4Y+cCqtDW9IrJ3SafCou+fPUeuFBnLwGi11IN1VZ1E1omO4AF ArMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=1EgUIOkIOxBCz33igi7r1HkqftzoXNr9Kp6yceaT6vI=; b=FmobV89AhTMgq+WlxgyG8nsPLB4J+FcO+FQb3ek8HFnRV6AhkIgqvfiw4s43CCqrhi FTJ1yOW1llqMtrofUHFYasu2O1om1bS778yNSh5Eb4CLWWPJV9F4q8uMKAALMH5q3ffj 9SDTEFROkdNXlTLQOil80qAVuvTrYwOF+CClYE15d/YuGt2TlmAjqRL+BKlCa2MSQS/L AoIJlVzNgCouvpiqt5ZxZ9hUFJo3bpRJvHdcPfErDa7zbi2xZgDOwM4EF+WOVqfhyxSK IRicE0kVJ6JcIKa7+HuYc6f3dYqFYkEXktETgCF23LGlr1Ba2OJ9eLuwpM9TrLDDRae8 wfxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=eB7FB8k+; 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=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 y191si6437251oia.160.2019.12.06.00.02.12; Fri, 06 Dec 2019 00:02:25 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=eB7FB8k+; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726597AbfLFHxg (ORCPT + 99 others); Fri, 6 Dec 2019 02:53:36 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:46548 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726184AbfLFHxg (ORCPT ); Fri, 6 Dec 2019 02:53:36 -0500 Received: by mail-pg1-f193.google.com with SMTP id z124so2876991pgb.13 for ; Thu, 05 Dec 2019 23:53:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1EgUIOkIOxBCz33igi7r1HkqftzoXNr9Kp6yceaT6vI=; b=eB7FB8k+B+Jl6hb20SCbjEVroUS2ALBqXwUYWIDq+UgAqGhSMBSbSJc2BiER4nOoNE guUipg59Ls0JVrUgsWuliKipQ926yRWNwqUxbU2GdCHCjooDIbIlRAAySNFr+qYlcMJS QgZ9QvtNVtTwunVr5KdSwT/Ym6AbVmnscDSM5ADRDN9vilTPiiI+SCUD2FZDDSGyYu4b 1KpHP6HSc+yAK4YS+RDbTfWXjICkzDwiu5Bi3+da53j4WVZynKmebE/5LKexN45TEouE SRi2PNr9wVQa6RtFTIiwyoonPFolMStjJGOd3CfWWNyJ9wk6asTVFy2c921RWBa31K3/ Sjng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1EgUIOkIOxBCz33igi7r1HkqftzoXNr9Kp6yceaT6vI=; b=j9M1ZQbMxsdAvpOtJ1uavAP0lu3Wh9Bg4G2wr5YNYwWiI816H0ia8pfl+bHTSFas8p XVRBoumWaaJI5uo4QB6y7Zvfe5no+YuuCu9s2OOdUn7k6ae8LRGJl0xqhaqNDKLBLtkB aCzWrWXpQJYOm37g9t/nUfPLqsKYs4EWuGoL5Mh7E2qK5TYGXSwZSlxHl7Dw44pQEdfN FcGkTG02mLlHp5QoSKGqdceL+YlNZCyOLrxPN5nmpTO8LYNxFenzr3WEhChwgw9gFLFO 21El6AyNiXS11G2z//I8Y5RQU3p06kdTwklWuRVdFIC82RYxdOX+U6iFAA4bvoQzecHY lZKw== X-Gm-Message-State: APjAAAWhA9FqeY8MBff0zsU+RahvaQoLUCUZOmUmzr238pcZL8ycQPaM aqTEHDNXzWf92IfOpJuskxc= X-Received: by 2002:a62:ed0b:: with SMTP id u11mr12890108pfh.46.1575618816036; Thu, 05 Dec 2019 23:53:36 -0800 (PST) Received: from suzukaze.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.gmail.com with ESMTPSA id b129sm14876391pfb.147.2019.12.05.23.53.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2019 23:53:35 -0800 (PST) From: Chuhong Yuan Cc: Ben Skeggs , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, Chuhong Yuan Subject: [PATCH] drm/dp_mst: add missed nv50_outp_release in nv50_msto_disable Date: Fri, 6 Dec 2019 15:53:21 +0800 Message-Id: <20191206075321.18239-1-hslester96@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org nv50_msto_disable() does not call nv50_outp_release() to match nv50_outp_acquire() like other disable(). Add the missed call to fix it. Signed-off-by: Chuhong Yuan --- drivers/gpu/drm/nouveau/dispnv50/disp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c index 549486f1d937..84e1417355cc 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c @@ -862,8 +862,10 @@ nv50_msto_disable(struct drm_encoder *encoder) mstm->outp->update(mstm->outp, msto->head->base.index, NULL, 0, 0); mstm->modified = true; - if (!--mstm->links) + if (!--mstm->links) { mstm->disabled = true; + nv50_outp_release(mstm->outp); + } msto->disabled = true; } -- 2.24.0