Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp975158ybh; Wed, 22 Jul 2020 19:07:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbSLUFzGngg7biyQHWvxMV3EfJExhp1vzwJqKe4eURz7QZRSzogJROJDE/kH1VOPIsxUjG X-Received: by 2002:a50:9f8c:: with SMTP id c12mr2086858edf.149.1595470060001; Wed, 22 Jul 2020 19:07:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595470059; cv=none; d=google.com; s=arc-20160816; b=OvRsQnH9IvQAIiB6tKIj6wJQSRcQT6vV9EqHQm5eOIX0e0+Rfm9kL/4PCs4k2TXnlw diOfMQS2CLk2RfzAFn/XvpzCtIAEn1eN1o1VfYn2JQzXSDz2V3zzCXC6gWKYx+9DsCqM wFc9PJZQLPGNHzwIx+W8WOMae/VsKaDNNz8kGm0tcbmggVqzRNgpu4FRXsiWLWbxhWx6 Bzugrj4pJH9zRsnxo/UWv6aFswzXzYCTIK8FZZQGa01HYU0pOnKEwsBG7aO0x0bl6Z1q RxtaMIpNLulYAM3ITj3fX5/280dck6Z8GTEnVGNO3xj6MNzn2lLoYcOLPYVAyrVwdR5S DfZg== 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=PQR+pTRUJr2p2puT6kEgda5uTBofuzbyJhCIDKViHyo=; b=HzJdrD1qBPNNicYW4awvF4WrHIH1+V6EhRTwxE11lxqg8Vw7vV/t6OeiYZ2s2JNllv 7u8xVZSGh//yBJVpb39VtPehnNpY3xRCA1h68QmbKGqKEYAc3xmoRkb+DavByCr5K5s7 onqs+ghl2ADZh6Gr7m+I8RebAdEfkVF5hzbLc/X1qwDbLf5qJykosHmZb9XcCGgAKzzp sCceanxghDGMFhMzD7xRSFtudU4EeXHlJrQohiEiaM/Rz8cI6r+6Ce/3Y+pheIJFNjcQ sCJACa9d7zwXafuKQCnU4Gdn9OfdAB7748z9/o+hQLLVMclQKbs141W7Zk9b4iL6TUHA z6hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=UrrfWmEM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id r22si1063786edm.474.2020.07.22.19.07.17; Wed, 22 Jul 2020 19:07:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=UrrfWmEM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2387753AbgGWCFC (ORCPT + 99 others); Wed, 22 Jul 2020 22:05:02 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:28225 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2387744AbgGWCFA (ORCPT ); Wed, 22 Jul 2020 22:05:00 -0400 X-UUID: 5da1960f1fef4b059b4fae46f302f882-20200723 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=PQR+pTRUJr2p2puT6kEgda5uTBofuzbyJhCIDKViHyo=; b=UrrfWmEM8lHzjImmf5k9oRlssqM9kbkRKdL1PjMoNJACRgWsxIppljhHsuYVMuly0vjp4hvVOtswkMh0vwrR3ao50pjbP6W58y3oUOONsa1tDfd/6Fq1Ryjd1noOIy1ZMp8SsmqRLBfZ+p6sb2iK0Ll5JTk0NqyYHcLsts4Gvvw=; X-UUID: 5da1960f1fef4b059b4fae46f302f882-20200723 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 928054689; Thu, 23 Jul 2020 10:04:55 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 23 Jul 2020 10:04:54 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 23 Jul 2020 10:04:49 +0800 From: Yongqiang Niu To: CK Hu , Philipp Zabel , Rob Herring , Matthias Brugger CC: David Airlie , Daniel Vetter , Mark Rutland , , , , , , Yongqiang Niu Subject: [v7, PATCH 6/7] drm/mediatek: add fifo_size into rdma private data Date: Thu, 23 Jul 2020 10:03:17 +0800 Message-ID: <1595469798-3824-7-git-send-email-yongqiang.niu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1595469798-3824-1-git-send-email-yongqiang.niu@mediatek.com> References: <1595469798-3824-1-git-send-email-yongqiang.niu@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 dGhlIGZpZm8gc2l6ZSBvZiByZG1hIGluIG10ODE4MyBpcyBkaWZmZXJlbnQuDQpyZG1hMCBmaWZv IHNpemUgaXMgNWsNCnJkbWExIGZpZm8gc2l6ZSBpcyAyaw0KDQpTaWduZWQtb2ZmLWJ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