Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp96631rwb; Sun, 6 Nov 2022 03:15:56 -0800 (PST) X-Google-Smtp-Source: AMsMyM6mFp6ZPTJyxB64VnTN40m2GzDiMuPHwV/8IlXjR3BaijIOOKmoUnMg1VzGJOsD3bcfoN8y X-Received: by 2002:a63:106:0:b0:460:64ce:51c4 with SMTP id 6-20020a630106000000b0046064ce51c4mr38066949pgb.17.1667733356008; Sun, 06 Nov 2022 03:15:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667733356; cv=none; d=google.com; s=arc-20160816; b=XWZUzQ5KTAUxoURwVan7nCDX5HP6Sp4UVyRubD7gGPCQsoytJoqLNSbFPYy3YzPcTq J89mKSatfPYUgy5qBayId6/2kz3HAsZ/Lc30t8ADqws5nnyDmeaEYEfBUoPiYqG+sCwG 9yWs677vE9SdNmJgyBlYcjIwADOKyKZYYP2yiz4vu95/Nq6VNsvQW6c+MzIB8iu+3VNl EfNwEBvYg0GpZzRBo4pUeA6ryMvFGHfnuXkTYX476cPzU4QcvUZG9yc4RfSldno3mFSL dtmJsXueU6EcWV1vVbKc2TDG3GDdKStZJGLwEitk9W9iaD7Np2Zt38TsJofJA+znOF3F heXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=9gMl9D6SFj7n1zt03mGjKMEo9dbi48n7KoVyZkEKmrk=; b=YjpS6/BMbHpeQp5iAeBXDwGuizhVlt40Jzqc/Vc3/uaR44Eu+BwGoHi7IlxrAi1Z4h 7ayLHKYBMancs4GyzoNzz/d+QZBwkLsLWuKIV+TAlknbU4yuzZA6I98HiXvVRxcEiTRs XNTyI0H9o8BpE9uaAYhmnqgtL/0xEh9bJr18dOoqMXYvQWagWxZ7suavWYgAomkfcchn N84TqhEbKkEEZZ6Li/lhOIbz9PYotAb8XxiwyZyvADKcsv4O/a8f+FeUE78/m7jAXwlg xmKoXaJqOS0nydGG3Uv/oANvBVw49e/FgfjCjIsyJ6D+Nu8ynbwLB4msdyHH8C3bPEn9 ZW4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aPwkX6c6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u13-20020a170903124d00b001781c1abee9si7510397plh.587.2022.11.06.03.15.43; Sun, 06 Nov 2022 03:15:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aPwkX6c6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229853AbiKFK40 (ORCPT + 96 others); Sun, 6 Nov 2022 05:56:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229581AbiKFK4Y (ORCPT ); Sun, 6 Nov 2022 05:56:24 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F31EC3B for ; Sun, 6 Nov 2022 02:56:24 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AFF3460BED for ; Sun, 6 Nov 2022 10:56:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF6CBC433D6 for ; Sun, 6 Nov 2022 10:56:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667732183; bh=P5+oK5y1DwgK+cZ5FV6rwH5/YDmYJLDEYA0g/u08A8E=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=aPwkX6c6CUAG++Y/NFl1aCaJL4kAldL8ZfDAbrBpQSHavM4g2AHZ1twp8lcCazMh5 ZFUGOuL0JxDyfkIq/AqGxKaRtGC8ZwolOW8dS9l0pU2r7AFj/XVcdVHgsP8AI1NpmP sJdSEEnCiAd0bmoh1KYmrYaSn54czDN+caHmaD+azD9NDru+1STH/6mZAh5g6aDnwv 5rDSMKCP7H6zHRU5rszvLWGbvjEcTVHVpBTh9R6Pr1zBCMAkjnLmS+EwXoAJ1rSSlz q/gQDcxwok8ldw9azBb7QkBJzfez2gpfi9dvATFaCpZ827L0Ic67vQW8FmYtjS7zkt I5y8fmeq57YcQ== Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-333a4a5d495so80429707b3.10 for ; Sun, 06 Nov 2022 02:56:22 -0800 (PST) X-Gm-Message-State: ACrzQf2HsIjtxUCAbNZZeut+TPhN7q/dzZALdALLI9f46mUzkkT4aw3Z lC8ya/rbkgQS6zCQZhDHRFc3oBQ9fZaaZueDC1c= X-Received: by 2002:a0d:f445:0:b0:345:89a2:9a8d with SMTP id d66-20020a0df445000000b0034589a29a8dmr41906097ywf.107.1667732182083; Sun, 06 Nov 2022 02:56:22 -0800 (PST) MIME-Version: 1.0 References: <20221102203405.1797491-1-ogabbay@kernel.org> <20221102203405.1797491-4-ogabbay@kernel.org> In-Reply-To: From: Oded Gabbay Date: Sun, 6 Nov 2022 12:55:55 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH v2 3/3] drm: initialize accel framework To: Jeffrey Hugo Cc: David Airlie , Daniel Vetter , Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Jason Gunthorpe , John Hubbard , Alex Deucher , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Yuji Ishikawa , Jiho Chu , Daniel Stone , Tvrtko Ursulin , Christoph Hellwig , Kevin Hilman , Jagan Teki , Jacek Lawrynowicz , Maciej Kwapulinski Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 2, 2022 at 11:30 PM Jeffrey Hugo wrote: > > On 11/2/2022 2:34 PM, Oded Gabbay wrote: > > @@ -163,7 +174,11 @@ static int drm_minor_register(struct drm_device *dev, unsigned int type) > > > > ret = drm_debugfs_init(minor, minor->index, drm_debugfs_root); > > if (ret) { > > - DRM_ERROR("DRM: Failed to initialize /sys/kernel/debug/dri.\n"); > > + if (minor->type == DRM_MINOR_ACCEL) > > + DRM_ERROR("DRM: Failed to initialize /sys/kernel/debug/accel.\n"); > > + else > > + DRM_ERROR("DRM: Failed to initialize /sys/kernel/debug/dri.\n"); > > + > > goto err_debugfs; > > } > > > > This doesn't look right. Don't you need to call drm_debugfs_init() with > accel_debugfs_root for the case - minor->type == DRM_MINOR_ACCEL? > Unless I fail to understand something, this will put all the accel > devices under /sys/kernel/debug/dri ofc, you are correct. Will be fixed in v3. Thanks, Oded