Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp950418pxb; Thu, 19 Aug 2021 15:40:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEgNY+8qgjkRwgPdJcjazIF4+05/ximU3eGypTEInLOC6cuoqd/R5cl/RQmh5EDFQlo4TD X-Received: by 2002:a17:906:2ad5:: with SMTP id m21mr18077650eje.88.1629412824756; Thu, 19 Aug 2021 15:40:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629412824; cv=none; d=google.com; s=arc-20160816; b=boE/L132G78D2Z7JN6W+aUH7tcjsqtPhp0U0FJ9HoWIfnfkFwGi1rlpAfv4bbcrPvK npLjBE3u9Oj58JgCVrbFuiWuqMnhkHM86aVAvKVs7HCSW/0ekTqicyIPitCZmgrYHQlj cMWR4F+ERGlARroGw478PZWIo4jHu4fle7O7U4tKe0C5EgNYULl3w78UDd7U1WaoNp2V 8dHFf/E2+D4uxOPa86RhStQ1jovXC1fRmTWFp7+8kwLvEC8dbbkWxBRJXKetNKjtLmxb Q8AjQfHvBeK6zCQPtNm/yr7OFWuZ5LC9atPZqlUali6AcHUoDBuaW3630WjSEhjDhtn7 jKHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=t8ET6ZqpGohuI1LpyMYfGU1oNLAPij+Feib416LW61E=; b=reAnoYl8eL/x8PeaekiXfwYpHd53uKAeKziSXaNw4k6c+YpyheSBVsBMnaaWoqR+lb GTKr8zcQu2D+IPAdmBRP+0LWQ+swuZxP5fVfNDWNPGlmcSlf5IDgNq3aC/5jZgCo9+mG qiQsEq9+eEVXqT0GhvCBBdGaeKtQye6PD0x8IF/LdXjXWM9sX3Lmdf+AXcKDohGpDByn B5S0iQ9OeokuDDokpsgNstoRd2WMMQtsmXeusvmwiykHxB7tylvTXAZZKEy11kot6BPu 8BAL/6bcdmxF1ioWXQ5JQOOereVlOVDyM6ivvIpUBoU4Ll3FTcATtqPYmvdfirKF3uVY hNyw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cox.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ne20si4567927ejc.429.2021.08.19.15.39.59; Thu, 19 Aug 2021 15:40:24 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cox.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235700AbhHSWjJ (ORCPT + 99 others); Thu, 19 Aug 2021 18:39:09 -0400 Received: from omta016.useast.a.cloudfilter.net ([34.195.253.207]:46559 "EHLO omta016.useast.a.cloudfilter.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229532AbhHSWjI (ORCPT ); Thu, 19 Aug 2021 18:39:08 -0400 Received: from cxr.smtp.a.cloudfilter.net ([10.0.16.208]) by cmsmtp with ESMTP id GefKmBbEQMRfUGqgBm8hw3; Thu, 19 Aug 2021 22:38:31 +0000 Received: from ws ([24.255.45.226]) by cmsmtp with ESMTPSA id Gqg7mujOYGuc7Gqg9mu6bO; Thu, 19 Aug 2021 22:38:31 +0000 Authentication-Results: cox.net; auth=pass (LOGIN) smtp.auth=j.duncan@cox.net X-Authority-Analysis: v=2.4 cv=fKP8YbWe c=1 sm=1 tr=0 ts=611edd67 a=rsvNbDP3XdDalhZof1p64w==:117 a=rsvNbDP3XdDalhZof1p64w==:17 a=kj9zAlcOel0A:10 a=1fMUTEkdAAAA:8 a=pGLkceISAAAA:8 a=kviXuzpPAAAA:8 a=GrN4TtxLF5UlEiDcx2YA:9 a=CjuIK1q_8ugA:10 a=kXTuJJ3fruM0IRz_0_AM:22 a=qrIFiuKZe2vaD64auk6j:22 Date: Thu, 19 Aug 2021 15:38:26 -0700 From: Duncan To: lnx7586@gregdf.com Cc: mikpelinux@gmail.com, daniel.vetter@ffwll.ch, dri-devel@lists.freedesktop.org, jason@jlekstrand.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/ttm: allow debugfs_create_file() to fail in ttm_global_init() Message-ID: <20210819153826.460b9c11@ws> In-Reply-To: <20210816143046.3320-1-lnx7586@gregdf.com> References: <20210816143046.3320-1-lnx7586@gregdf.com> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.29; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfCtUxm8u7SxW4XPKllZefbNT+mD/lU+MRYFCROUjQvA3TCyuPsw6R/VZUY5w//Uw6HGgSaUHc9IDPNtXKgkkXGGwWIb7vdw5oH43KLhM4WbXX2codFuj c/M5tnvlEMFRxVD+/sds4NrKxQQkvTHPQF0Yy4upOzT1DJSS2zhecwr7NldSBjOpbT2pfgVZP79E4FGebFB0/djb5bd+tTWHXlJtkw8hbJv3k8YKjyMfvFBF pehxLvpQ9BXppshs+0Ca3u4s/8gmuvmiYFyz4wl4BsqgHiV/MH+87UBmp+hvjHCtPHiaL8iy2PiU3IArQOBhAw4Lb5qwlwRmFIf9uLxCkB5R/p0+in67zz1p AnvdkiaH Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 16 Aug 2021 16:30:46 +0200 lnx7586@gregdf.com wrote: > From: Greg Depoire--Ferrer > > Commit 69de4421bb4c ("drm/ttm: Initialize debugfs from > ttm_global_init()") unintentionally made ttm_global_init() return > early with an error when debugfs_create_file() fails. When > CONFIG_DEBUG_FS is disabled, debugfs_create_file() returns a ENODEV > error so the TTM device would fail to initialize. > > Instead of returning early with the error, print it and continue. > ENODEV can be ignored because it just means that CONFIG_DEBUG_FS is > disabled. > > Fixes: 69de4421bb4c ("drm/ttm: Initialize debugfs from ttm_global_init()") > Reported-by: Mikael Pettersson > Reported-by: Duncan > Signed-off-by: Greg Depoire--Ferrer > --- > Hi, I had this bug as well with the nouveau driver after updating. > This patch fixes it for me. > > drivers/gpu/drm/ttm/ttm_device.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) This fixes the problem here, too. Running it now. Tested-by: Duncan -- Duncan - HTML messages treated as spam "They that can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety." Benjamin Franklin