From patchwork Tue Jan 7 06:40:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hyungwon Hwang X-Patchwork-Id: 3445931 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B000FC02DC for ; Tue, 7 Jan 2014 06:41:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E3E1A20109 for ; Tue, 7 Jan 2014 06:41:04 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id A650520103 for ; Tue, 7 Jan 2014 06:41:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9C17611D817; Mon, 6 Jan 2014 22:40:59 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by gabe.freedesktop.org (Postfix) with ESMTP id E866411D80C for ; Mon, 6 Jan 2014 22:40:56 -0800 (PST) Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MZ00071QQK6Q100@mailout4.samsung.com> for dri-devel@lists.freedesktop.org; Tue, 07 Jan 2014 15:40:54 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.112]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 04.A8.09028.671ABC25; Tue, 07 Jan 2014 15:40:54 +0900 (KST) X-AuditID: cbfee68e-b7f566d000002344-3f-52cba1766648 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id F7.DE.29263.671ABC25; Tue, 07 Jan 2014 15:40:54 +0900 (KST) Received: from hwh-ubuntu ([10.252.81.131]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MZ0001GAQK6TU41@mmp1.samsung.com>; Tue, 07 Jan 2014 15:40:54 +0900 (KST) Date: Tue, 07 Jan 2014 15:40:54 +0900 From: Hyungwon Hwang To: dri-devel@lists.freedesktop.org, inki.dae@samsung.com, sw0312.kim@samsung.com, dh09.lee@samsung.com, human.hwang@samsung.com Subject: [patch] tests/kmstest: support exynos Message-id: <20140107154054.77daf1c5@hwh-ubuntu> Organization: Samsung Electronics. X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.10; i686-pc-linux-gnu) MIME-version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplkeLIzCtJLcpLzFFi42JZI2JSoFu28HSQweqFhhbXz9tZXPn6ns1i 6Yw+VotJ9yewWMyY/JLNgdXjfvdxJo++LasYA5iiuGxSUnMyy1KL9O0SuDLunfjMVvCKq2Lx pQdsDYz3OLoYOTkkBEwketefYIawxSQu3FvP1sXIxSEksJRR4tXlI+xdjBxgRXf/R0DEFzFK rGlfwgLh/GaU+LzoOCtIN4uAqsSyH6vAJrEJ6EksuPaDHaRIRKAJaNL0ZWAJYaDE+ofXwWxe AQOJyd/usYPY/AJKEjdbJ0KdYSNx718LC0SNoMSPyffAbGYBLYnN25pYIWx5ic1r3kLVT2aX uLgxCuIIAYlvkw+xQFwtK7HpAFSJpMTBFTdYJjCKzEIydRaSqbOQTF3AyLyKUTS1ILmgOCm9 yEivODG3uDQvXS85P3cTIzAqTv971reD8eYB60OMyUArJzJLiSbnA6MqryTe0NjMyMLUxNTY yNzSjDRhJXHeRQ+TgoQE0hNLUrNTUwtSi+KLSnNSiw8xMnFwSjUwrp2rXM/z/HfKgwPyU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TR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP tests/kmstest: support exynos Add exynos to list of kmstest supported modules. Signed-off-by: Hyungwon Hwang Reviewed-by: Jakob Bornecrantz Signed-off-by: Inki dae signed-off-by: Inki Dae --- libkms/internal.h | 2 ++ libkms/linux.c | 4 ++++ tests/kmstest/main.c | 1 + 3 files changed, 7 insertions(+) diff --git a/libkms/internal.h b/libkms/internal.h index 5e2501e..f831b57 100644 --- a/libkms/internal.h +++ b/libkms/internal.h @@ -74,4 +74,6 @@ int nouveau_create(int fd, struct kms_driver **out); int radeon_create(int fd, struct kms_driver **out); +int exynos_create(int fd, struct kms_driver **out); + #endif diff --git a/libkms/linux.c b/libkms/linux.c index fc4f205..2de0145 100644 --- a/libkms/linux.c +++ b/libkms/linux.c @@ -115,6 +115,10 @@ linux_from_sysfs(int fd, struct kms_driver **out) else if (!strcmp(name, "radeon")) ret = radeon_create(fd, out); #endif +#ifdef HAVE_EXYNOS + else if (!strcmp(name, "exynos")) + ret = exynos_create(fd, out); +#endif else ret = -ENOSYS; diff --git a/tests/kmstest/main.c b/tests/kmstest/main.c index 5df0a38..449d75f 100644 --- a/tests/kmstest/main.c +++ b/tests/kmstest/main.c @@ -61,6 +61,7 @@ char *drivers[] = { "radeon", "nouveau", "vmwgfx", + "exynos", NULL };