Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3826867ybc; Mon, 25 Nov 2019 22:31:59 -0800 (PST) X-Google-Smtp-Source: APXvYqx7RHG3YfOO+EywH3mEfobmfCO653FXYOGOM1kkvsSj4Kj8OIia0haeCxGnqgre4QD4+nBB X-Received: by 2002:a17:907:43ef:: with SMTP id ol23mr23466157ejb.264.1574749919466; Mon, 25 Nov 2019 22:31:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574749919; cv=none; d=google.com; s=arc-20160816; b=O57aqIZ/PGaKhPkGir2a9vdFg4MC7nXv7tNaX6K9SNB1Xf47GEA/YIOp+1ObMh55hE pA5MiKJXFlESVpyBS4CtRLfGeqqsPGeenS0QNkePrS9LTEndMLqCbg/Vggd24XwqNrHV kDSLtFDBqn9rYhi666vmA1acCIl6kLWL75oeWstEpjomD6AbJmVW5GFecINH3nEx9OV6 HLHTZ1jKCyk3hsLmY7DQylFKnLyxNO9FsBHNeYswvKHdHFmADrIQJn7d9OwASK90Nvo5 W+JTCPbUW92lVK+3bkp54U7ufcQz3/9KASj29ZVxFcXuZMJ7gceKrYCjpR5x6wwKFoae zFYQ== 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 :dkim-signature; bh=WLsOap9fWJYafOkS1p7359AjO4uwjv05Y5EjbgsSZb0=; b=qpMRQmEEGCl/G32vTrc2hqlSGoM2QBq5j+OPZEZEnFifkuqyb0kR/8sEcJvnCvKUnI TnBZkQuQmCv/XPzRmHQCREynlzWYr3NB8b8WO6Qf/VBE/ItanPenPq3onp8na1900LZS HGjaoik0lM8hnBOvaZb/Dls53+0VqTi5b4U3ry3Or/sy2GX3R3f+Mti5o5XZ5s/cTLN2 XfY50DBLjlP3pMGimgZkofELu8foTlJe36umHYdca1649M2TAY5ocEe1HM3cc13dP5dw WyU6aLbIADjSz3xdfPGOBGoZWZ1MB0D1Y2D/qeXsXZYn8Afya4j5zMRko1cIuLXkTO+0 6phA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=asxpaMpd; 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=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10si8094637edn.266.2019.11.25.22.31.36; Mon, 25 Nov 2019 22:31:59 -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=pass header.i=@mediatek.com header.s=dk header.b=asxpaMpd; 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=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727305AbfKZG3q (ORCPT + 99 others); Tue, 26 Nov 2019 01:29:46 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:5690 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725802AbfKZG3o (ORCPT ); Tue, 26 Nov 2019 01:29:44 -0500 X-UUID: 065145835e3f4d979df0916bcc3d5723-20191126 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=WLsOap9fWJYafOkS1p7359AjO4uwjv05Y5EjbgsSZb0=; b=asxpaMpdTNLpqGcr7ad0oBaQwDY7UcceyLDI3uR2N4wqZFCrzbyp8JRlFZzBHuuuholIseLCWbNveMpXrCa439BnKqrT7qA3XyAeOtLX3nshcIB+RseWxNDatGAYmHB6tYfFvmNXuHLE/YbwOc3jiBo5+G/2badymVIwUEBUikM=; X-UUID: 065145835e3f4d979df0916bcc3d5723-20191126 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 827858419; Tue, 26 Nov 2019 14:29:35 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 26 Nov 2019 14:29:22 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 26 Nov 2019 14:29:14 +0800 From: Bibby Hsieh To: David Airlie , Matthias Brugger , Daniel Vetter , , CC: Philipp Zabel , YT Shen , Thierry Reding , CK Hu , , , , , , Bibby Hsieh Subject: [PATCH 1/7] drm/mediatek: fix atomic_state reference counting Date: Tue, 26 Nov 2019 14:29:26 +0800 Message-ID: <20191126062932.19773-2-bibby.hsieh@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20191126062932.19773-1-bibby.hsieh@mediatek.com> References: <20191126062932.19773-1-bibby.hsieh@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhlIERSTSBjb3JlIHRha2VzIGNhcmUgb2YgYWxsIGF0b21pYyBzdGF0ZSByZWZjb3VudGluZy4N Ckhvd2V2ZXIsIG1lZGlhdGVrIGRybSBkZWZlcnMgc29tZSB3b3JrIHRoYXQgYWNjZXNzZXMgcGxh bmVzDQphbmQgcGxhbmVfc3RhdGVzIG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