Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp523197rwi; Wed, 2 Nov 2022 14:57:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4hugSOaopZFcwV3KZI0q1mWHXDAxMajwIJkazjPXnERWUW+g5NeA5ShDc+ynLAFEJO6fnV X-Received: by 2002:a17:906:591:b0:73d:c3ef:84ae with SMTP id 17-20020a170906059100b0073dc3ef84aemr25876206ejn.155.1667426278358; Wed, 02 Nov 2022 14:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667426278; cv=none; d=google.com; s=arc-20160816; b=BoeGSizzL5A5K7FRFACbqUfRNMdoi0GprHdfzhUYLVAa/IPTusQNGQzegqX/sTiZ0l xxe72evBKA/D6kPAiLF9Pb4BLNMSdg+FfRZ/qVSZC1ZqY5yvROslnDYoxcyyLHppJ6BE EFK/3D7QhdP37bnuBpN5iKjLUXJdPn8Q2ajqEdQhc5oAmao5HJj4SFAPD1Zu71+t3cQ9 3sl7lIpO60VUFQ2C7xkF25tIAsnWTszg/SSWXBI6Y0Kg/mSRzXmQdR+NhPW7kjmZJzdH sfCoovDipE/wYRjBSMpCKc3/hj94etVy8sAAX8vWsLZkYM3rxGh6rweBZDWz7ykVDiBa pabA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=8M4oNJWBxl6J9cF9aFri0vLNH3Y5FE7K8nXrAL0guLc=; b=L5M2J2E/WmTt6AqD4V2PBlroibqNHEM5ACHqjIMtBv22G9ZBcz160EoDHQZlZj/KSj sKpXexDdJxrDM7rBUQ7k84VgknWCYSSnRQWVrdCjQJ+IlJu4t9rpc40wVZHDkgdoO37n 5+K9Ui0lKYmTbj2ib99UNGNxnB5zPzo8nBrGrkyYcXf2cn2sNnnNkduE4v3ENEaULEL4 l4u/w1waTHYzSucQUIsQxaSivbWmOoiNBmhE7LqDTD4s3IgG7In3oODmjTCRna3t5DTZ +DD+82PMkHQhlVHazKnOm1XhmoUKUJq2NHgXx8UMQ+yNlAoOD98h3+9XutSZgs+POo92 UcsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=i1L6aPKt; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id be7-20020a1709070a4700b0078bec673145si18445182ejc.519.2022.11.02.14.57.33; Wed, 02 Nov 2022 14:57:58 -0700 (PDT) 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=@quicinc.com header.s=qcppdkim1 header.b=i1L6aPKt; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230199AbiKBVbI (ORCPT + 97 others); Wed, 2 Nov 2022 17:31:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230106AbiKBVbG (ORCPT ); Wed, 2 Nov 2022 17:31:06 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6271EDF31 for ; Wed, 2 Nov 2022 14:31:02 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2A2LQbru031291; Wed, 2 Nov 2022 21:30:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=8M4oNJWBxl6J9cF9aFri0vLNH3Y5FE7K8nXrAL0guLc=; b=i1L6aPKtVZRGXOQMyvSgw4r0vkHAQ0rhXQFGFiBvfrXtC25bD2qm1jopOdWisdqVuA/x RZItexTxAwyCTqZ85eBoCu9jobTy6KWvxPxqMJdMhbPTh4dEM3abXM0unkDPY8PGz8BQ YDVdRRvHgpEuteKLtjPwhCKcMEEZiz9T9t714g73PigK5St/LI3EtqEx/3wqtGDfOQN7 T4X2rOCj9A9/A0VAlOokkSlDicsrLHWKEPQbvf+M4Y3baITZ46kzb9qT1FLrRUcDn/Vz iksmgNUmYt6RR8RKEmu53YUvBffqVbtNySzr/1gv8fa8J3EOiaCNQh4sggx8p75yGkzj Tw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3kkw41gsdt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 02 Nov 2022 21:30:30 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 2A2LUTNe005843 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 2 Nov 2022 21:30:29 GMT Received: from [10.226.59.182] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Wed, 2 Nov 2022 14:30:28 -0700 Message-ID: Date: Wed, 2 Nov 2022 15:30:27 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [RFC PATCH v2 3/3] drm: initialize accel framework Content-Language: en-US To: Oded Gabbay , David Airlie , Daniel Vetter , Arnd Bergmann , Greg Kroah-Hartman , , , Jason Gunthorpe , John Hubbard , Alex Deucher CC: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Yuji Ishikawa , Jiho Chu , Daniel Stone , Tvrtko Ursulin , Christoph Hellwig , Kevin Hilman , Jagan Teki , Jacek Lawrynowicz , Maciej Kwapulinski References: <20221102203405.1797491-1-ogabbay@kernel.org> <20221102203405.1797491-4-ogabbay@kernel.org> From: Jeffrey Hugo In-Reply-To: <20221102203405.1797491-4-ogabbay@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 1ML62Efs16CUbymup6sHIAEFHeWbnW3l X-Proofpoint-GUID: 1ML62Efs16CUbymup6sHIAEFHeWbnW3l X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-02_15,2022-11-02_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 phishscore=0 mlxlogscore=999 mlxscore=0 priorityscore=1501 bulkscore=0 clxscore=1015 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211020142 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 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