Message ID | FD5696F5CDD4B04D92C97DB96167DECA1619BBF0@SCYBEXDAG04.amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9BE75C0020 for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 28 May 2015 09:00:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9F0ED206A0 for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 28 May 2015 09:00:24 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 047F820693 for <patchwork-dri-devel@patchwork.kernel.org>; Thu, 28 May 2015 09:00:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0A3356EB35; Thu, 28 May 2015 02:00:21 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bbn0109.outbound.protection.outlook.com [157.56.111.109]) by gabe.freedesktop.org (Postfix) with ESMTP id 3CCC16EB35 for <dri-devel@lists.freedesktop.org>; Thu, 28 May 2015 02:00:20 -0700 (PDT) Received: from BY2PR02CA0059.namprd02.prod.outlook.com (10.141.216.49) by BLUPR02MB068.namprd02.prod.outlook.com (10.242.187.154) with Microsoft SMTP Server (TLS) id 15.1.172.22; Thu, 28 May 2015 09:00:18 +0000 Received: from BL2FFO11FD030.protection.gbl (2a01:111:f400:7c09::176) by BY2PR02CA0059.outlook.office365.com (2a01:111:e400:2c40::49) with Microsoft SMTP Server (TLS) id 15.1.172.22 via Frontend Transport; Thu, 28 May 2015 09:00:17 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.222) smtp.mailfrom=amd.com; gmail.com; dkim=none (message not signed) header.d=none; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from atltwp02.amd.com (165.204.84.222) by BL2FFO11FD030.mail.protection.outlook.com (10.173.161.40) with Microsoft SMTP Server id 15.1.184.11 via Frontend Transport; Thu, 28 May 2015 09:00:15 +0000 X-WSS-ID: 0NP1YCC-08-Z86-02 X-M-MSG: Received: from satlvexedge01.amd.com (satlvexedge01.amd.com [10.177.96.28]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by atltwp02.amd.com (Axway MailGate 5.3.1) with ESMTPS id 27A37D32001; Thu, 28 May 2015 05:00:11 -0400 (EDT) Received: from SATLEXDAG03.amd.com (10.181.40.7) by satlvexedge01.amd.com (10.177.96.28) with Microsoft SMTP Server (TLS) id 14.3.195.1; Thu, 28 May 2015 04:00:33 -0500 Received: from SCYBEXDAG02.amd.com (10.34.11.12) by satlexdag03.amd.com (10.181.40.7) with Microsoft SMTP Server (TLS) id 14.3.195.1; Thu, 28 May 2015 05:00:12 -0400 Received: from SCYBEXDAG04.amd.com ([169.254.4.81]) by SCYBEXDAG02.amd.com ([169.254.2.240]) with mapi id 14.03.0195.001; Thu, 28 May 2015 17:00:09 +0800 From: "Zhou, Jammy" <Jammy.Zhou@amd.com> To: Joonyoung Shim <jy0922.shim@samsung.com>, "dri-devel@lists.freedesktop.org" <dri-devel@lists.freedesktop.org> Subject: RE: [PATCH] xf86drm: remove to open the DRM device unnecessarily Thread-Topic: [PATCH] xf86drm: remove to open the DRM device unnecessarily Thread-Index: AQHQmOFX6m7DDVk2JEKjgWezMRy3uZ2RF4ZQ Date: Thu, 28 May 2015 09:00:09 +0000 Message-ID: <FD5696F5CDD4B04D92C97DB96167DECA1619BBF0@SCYBEXDAG04.amd.com> References: <1432774660-9772-1-git-send-email-jy0922.shim@samsung.com> In-Reply-To: <1432774660-9772-1-git-send-email-jy0922.shim@samsung.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.237.168.199] MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD030; 1:nWHtRXD1VH6kHPxE0C46nMKPcyiRfOizukUj9FA2yhIgTnAiL3S2OySNfc6aQl2P0ltIPsRXBA1bcqtAhkpUW0hA9SVgpPm4PYX6Ez0yY2Xfni0z7eq51jZD/LLRUPhXTcYOFkZx7dZkYmNEiBQOjVJZNxGAjg4cUZsoLJ7zLYCwr1AlO3feXnGy11pGaYvTFg2BxMFFYl7js6ldt3rIvr1qt0cKW6W/a1f4Kf3ERXMzjUKMquWzzJcjUFh/T1+ASfs+MkEfFjrR8WUzp/d34kjhz5pwducczHDmNYjoWi73dPs9UYls5ptZKHh0Q7hl X-Forefront-Antispam-Report: CIP:165.204.84.222; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(428002)(189002)(13464003)(199003)(377454003)(55846006)(2656002)(64706001)(2501003)(2950100001)(4001540100001)(189998001)(33656002)(15975445007)(1720100001)(102836002)(68736005)(54356999)(2900100001)(2920100001)(5001860100001)(5001830100001)(106466001)(47776003)(5001770100001)(101416001)(86362001)(97736004)(106116001)(62966003)(50466002)(105586002)(19580405001)(23676002)(50986999)(76176999)(53416004)(87936001)(46102003)(92566002)(77156002)(19580395003); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR02MB068; H:atltwp02.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; MX:3; A:1; LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR02MB068; X-Microsoft-Antispam-PRVS: <BLUPR02MB068BE9EDCBEFCE86AA03EA889CA0@BLUPR02MB068.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(520003)(5005006)(3002001); SRVR:BLUPR02MB068; BCL:0; PCL:0; RULEID:; SRVR:BLUPR02MB068; X-Forefront-PRVS: 0590BBCCBC X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2015 09:00:15.5065 (UTC) X-MS-Exchange-CrossTenant-Id: fde4dada-be84-483f-92cc-e026cbee8e96 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fde4dada-be84-483f-92cc-e026cbee8e96; Ip=[165.204.84.222]; Helo=[atltwp02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR02MB068 Cc: "emil.l.velikov@gmail.com" <emil.l.velikov@gmail.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <http://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <http://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <http://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_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 |
diff --git a/xf86drm.c b/xf86drm.c index b5a174b..900e4b1 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -725,7 +725,7 @@ int drmOpen(const char *name, const char *busid) */ int drmOpenWithType(const char *name, const char *busid, int type) { - if (!drmAvailable() && name != NULL && drm_server_info) { + if (name != NULL && drm_server_info && !drmAvailable()) { /* try to load the kernel module */ if (!drm_server_info->load_module(name)) { drmMsg("[drm] failed to load kernel module \"%s\"\n", name); -- 1.9.1