From patchwork Tue Jun 23 09:48:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 6659401 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 656AE9F380 for ; Tue, 23 Jun 2015 09:46:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 957432069A for ; Tue, 23 Jun 2015 09:46:04 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 890FA2064E for ; Tue, 23 Jun 2015 09:46:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4E89D6E91C; Tue, 23 Jun 2015 02:46:02 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by gabe.freedesktop.org (Postfix) with ESMTP id A95F76E91C for ; Tue, 23 Jun 2015 02:46:00 -0700 (PDT) Received: by wicgi11 with SMTP id gi11so11006356wic.0 for ; Tue, 23 Jun 2015 02:46:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=S32VCthNwOMKvZUtc5Txcq41Nl1bvS17Ju376kgkDbI=; b=jDaMlHuX4IzqTIp8Q4aVQu/dzeCjwGgyXrI7KoMlRl7Gh9o5W0b+HR9ke+Zqra5MpD ZMPr83PtrblLJM2qqW/GRScdJP2z5+a0FBQ2WXvN73QjUKR8Nx8aPdyv0RDC4zUbgFm2 K1X+H1B6JQiHGv5M//DfMn80KLzhjXzWpbr2U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=S32VCthNwOMKvZUtc5Txcq41Nl1bvS17Ju376kgkDbI=; b=BzADESWtKrS0Vj0SviY0EjE+c439Yg6zmuQ2ltNmSZVPTEY/hPLrAlFE3MWv+0EhYh yhoyfZbH70rVmDLxtDF4uE4JwORKKFTcuEuVYVuSG3pU5oeGo2er8ayFgQMGbPMs0aFo mCwXXKh3knDUEshZqtQsFnMYiz+b1qlcc0MoLin4b7c+LEfnp/9C7LVcQ8IGJ4STwZP7 4pMLts9CUagrGi14gdt3Z+NTfAgYGBlCFpWyUc0H2qPvCpV3YnwPoueraVYPcD793Grz mdaupDLj3UitybGC+8sDxebhxtJnb8YNebhBMfMSGRVs4nJWNbf0OULa7vKny1Z3QNhv 8X0Q== X-Gm-Message-State: ALoCoQnvwe5J6F5Ucm0E2I3mXTiHHtWSyZddS/K2qhs7O/OKGIHMPVFxZpNYResMVCFLWy3jfQ6R X-Received: by 10.180.75.48 with SMTP id z16mr1725084wiv.49.1435052760024; Tue, 23 Jun 2015 02:46:00 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:56c9:0:22cf:30ff:fe4c:37d6]) by mx.google.com with ESMTPSA id gj7sm21486492wib.4.2015.06.23.02.45.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jun 2015 02:45:59 -0700 (PDT) Date: Tue, 23 Jun 2015 11:48:47 +0200 From: Daniel Vetter To: Daniel Stone Subject: Re: Linux 4.1 WARNING in drm_ioctl.c Message-ID: <20150623094847.GR25769@phenom.ffwll.local> Mail-Followup-To: Daniel Stone , Fabio Coatti , David Airlie , dri-devel , kernel list References: <34169093.qYXxFR1FLt@calvin> <20150623063947.GN25769@phenom.ffwll.local> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 4.0.0-rc3+ User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dri-devel , Fabio Coatti , kernel list X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,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 On Tue, Jun 23, 2015 at 08:27:13AM +0100, Daniel Stone wrote: > Hi, > > On 23 June 2015 at 07:39, Daniel Vetter wrote: > > Which drm driver are you using? I didn't spot anything in your module list > > but might have missed it. Booting with drm.debug=0xe and grabbing dmesg > > will tell us for sure. > > That'd be vgem. If so then the below diff should help. -Daniel diff --git a/drivers/gpu/drm/vgem/vgem_drv.c b/drivers/gpu/drm/vgem/vgem_drv.c index 7a207ca547be..b491fb32cddb 100644 --- a/drivers/gpu/drm/vgem/vgem_drv.c +++ b/drivers/gpu/drm/vgem/vgem_drv.c @@ -328,6 +328,8 @@ static int __init vgem_init(void) goto out; } + drm_dev_set_unique(drm, "vgem"); + ret = drm_dev_register(vgem_device, 0); if (ret)