From patchwork Fri Sep 28 16:35:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kristian Hogsberg X-Patchwork-Id: 1520291 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id A134D3FDAE for ; Fri, 28 Sep 2012 16:36:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A2E1EA0FBC for ; Fri, 28 Sep 2012 09:36:01 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qc0-f177.google.com (mail-qc0-f177.google.com [209.85.216.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 4BCBAA0FAF for ; Fri, 28 Sep 2012 09:34:48 -0700 (PDT) Received: by qcsu28 with SMTP id u28so2653196qcs.36 for ; Fri, 28 Sep 2012 09:34:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=k+tc68JbDb4AI/CDKQGpsIW96ogHeawjKc7RvoV5ahw=; b=NRsac7nAdEaMMGz+0DMCVbRS733gcoufqTWUbAuqFmxZy8d7pu9rFKdu36JsK1J/Cz hnH4vzhbdUb7/r4UXaiO8jrX5uaGhfjXog2Afdb9zVnC8lPh/RF4dH3gLRPBiuV4eeQR cVozy+j5p6hJBLbSQmcnwlcOlW1UG+X3Mo8q0/J0M8TMKJJR4n1eJEmBdIKt2AO4Ag6c AI7fFDXYU196dyO9+WStAeyeRE3QorU44UiSFpQeejy7uzxWueladHOsDUlA/vYnuEBa X4QtzppUfDmLyPHNrf/SlVZC1QXU/+bDid8VniHEhqJhbaq+DJG/m8ARx7c9uQbcXzMC 42FQ== Received: by 10.229.171.221 with SMTP id i29mr4869986qcz.15.1348850087628; Fri, 28 Sep 2012 09:34:47 -0700 (PDT) Received: from localhost.localdomain (c-67-186-132-98.hsd1.ma.comcast.net. [67.186.132.98]) by mx.google.com with ESMTPS id o17sm13129341qao.14.2012.09.28.09.34.46 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 28 Sep 2012 09:34:47 -0700 (PDT) From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/3] drm: Fix DRM_MINOR limits for control and render nodes Date: Fri, 28 Sep 2012 12:35:57 -0400 Message-Id: <1348850159-3956-2-git-send-email-krh@bitplanet.net> X-Mailer: git-send-email 1.7.10.2 In-Reply-To: <1348850159-3956-1-git-send-email-krh@bitplanet.net> References: <1348850159-3956-1-git-send-email-krh@bitplanet.net> MIME-Version: 1.0 Cc: daniel.vetter@ffwll.ch, martin.peres@labri.fr 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+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org We got the minor number base right, but limit is too big and causes the minor numer ranges for the control and render nodes to overlap. Signed-off-by: Kristian Høgsberg --- drivers/gpu/drm/drm_stub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_stub.c b/drivers/gpu/drm/drm_stub.c index 21bcd4a..d6d5160 100644 --- a/drivers/gpu/drm/drm_stub.c +++ b/drivers/gpu/drm/drm_stub.c @@ -107,10 +107,10 @@ static int drm_minor_get_id(struct drm_device *dev, int type) if (type == DRM_MINOR_CONTROL) { base += 64; - limit = base + 127; + limit = base + 64; } else if (type == DRM_MINOR_RENDER) { base += 128; - limit = base + 255; + limit = base + 64; } again: