Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1585925lqa; Mon, 29 Apr 2024 12:42:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXS46AbnXlNzP9nrTDNlyXdrJIK42BOP0GjiGLHPhJ+rgywGMr+lCciMn6nJpUbVm8NmKnDq6+VGzHW4cP3CFEwIAC52skJADS2tam++w== X-Google-Smtp-Source: AGHT+IFb35K8H4Mm2v5dbEgO3ljLg6nEA1Kc8q0ZbjMP9m7GcAFCVF9nfLljDfAi6WKXkkZSdW8v X-Received: by 2002:ac8:7e87:0:b0:43a:b7da:ec97 with SMTP id w7-20020ac87e87000000b0043ab7daec97mr8176516qtj.50.1714419734673; Mon, 29 Apr 2024 12:42:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714419734; cv=pass; d=google.com; s=arc-20160816; b=uZBD+22JMqNqtaThQqiSHHl+htcXV6wwNcTvJrxjlyfg898Zo5VDTptpD+CHzzBxQx 9YXc3EEJttrbkSrDwsz+lD96JmbVpyob+uwdRLpv/8n4FU+AZgWwmONkUmOpdFrOrF18 te8RpAnEqgqlwdVlTLsdjDJV/dxrEEMDlRj7AKGb0cE/sh4R7UGnQOQLsjx+ggmbvxyS T6HRkU1y0b+Kx/YvPnqSqGYGTM+x0O3CB7VZK1QlXyFxO19SgKweuQj1s+aqjddQ5bi8 0kpDGLMVdNwOYWWZ8TK/8+68nmv6SmpjR+6uz2qjhT6UGCGbJ8TK8Zf54AFlwMdEj5Z9 GXfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=KB/nTGsL6ro7Z1JHc0QfHBM4CeEa1MsqmgZl/vui59g=; fh=AUe/6hsVp2akWtt4h5Rgt8xbYdrpi0efGkua45VYWXM=; b=j8BivUzD6AfvU7cGZoi/BhX9Fi3aDUsqGB9JIq3icwxg9Ntq0L5cgMIRi1sLUSE84v 32Ov0mME4HsYQwV2GfXi+DMx2jPaero2vBSj9abkBQb8Dn8iIwD9QyvkjBuHZW9AcSNB HlJn1g7VbcK/yxmGaZFJMtQI5OvOTW7PwuGqkdsPA7BM7YHEfJ6Tf/aaCeroRL+lWI4e e88IjPIjR86Dd+BapftL4zXlls7dryxH3m2tohKMMoAVDgwLPfgc5Ty/ChUEeMbYQPSd CGNZ7vvOTozv6WpgS/Xp2lOjsRT4W3uJt84Flz9CGc+qoBARlkvrfqrcCpWqwJr35SR1 m11Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kvjVylVO; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-162954-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162954-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id fy21-20020a05622a5a1500b0043a6d1e75a2si10536461qtb.221.2024.04.29.12.42.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 12:42:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162954-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kvjVylVO; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-162954-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162954-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id ADA661C21298 for ; Mon, 29 Apr 2024 19:42:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 712F21420DD; Mon, 29 Apr 2024 19:39:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kvjVylVO" Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C427913C802; Mon, 29 Apr 2024 19:39:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714419586; cv=none; b=RTPSMeFOdJP+LbchtoZnGJ99Sf3rbx83NU/tSG0Jxik3V5hDr58p88yqVkD5JItAchmv8AsjGzKVR3X+oRJVAoJHNwhX/W0jmR4Mjjcs9adZ6DA2lADQ4AQ6PGKrbgZzLIMKm+9oapaRpJYFXz3B+fkm74WMdnreOjaiqoUG6Ew= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714419586; c=relaxed/simple; bh=t2smfzCZT5AT1CfNSXC2bkjBTjyD1KLd50vVGcxUXcA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jaBDZfiMDv6A/TV2v3FR1myNM73FJS2Wy3W9l9lDyZURHaYJb8488wMnNAkOU1r9KChUHqacrvsceJF/R/hHfLBVQtBq/vXAu7jTW5d9pHHbEu4fC8hmnQoYNw3IZbgoa055vqSsUHur+HSv335dchsV54xI7kuUqrakJUlG358= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=kvjVylVO; arc=none smtp.client-ip=209.85.166.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-io1-f48.google.com with SMTP id ca18e2360f4ac-7dbc33bdf08so207971839f.1; Mon, 29 Apr 2024 12:39:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714419584; x=1715024384; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KB/nTGsL6ro7Z1JHc0QfHBM4CeEa1MsqmgZl/vui59g=; b=kvjVylVOpZoSCbSzo/DbqAZm7bhaiSV+B4THyZkumv+/6yfmGh99zzUqoFE0H4iVVc lGseCxbDWm9bpzzD8UN7WVCSeJX4T+vAsbtMLxPV/WxfG4B62sfTQ7hS0RkvR6vNhZ3Q oraAwaCxogmaJCab2RNvNHD0aKm+oBsq/XDHNzJaEqvdvqkvtGv+rhyTM33n6C/di2HZ XYY9riBn2F1NuF/TZm4k5FY7ptra+2ByXeJ2tuNbITbyJTZewJqHba8+e+qfbU0LkWHy xuyxHoLVBgqFgcUO5RPzwaRN4nV/jzldjgxNoFFnaXHBEpHKOYDyBR3mtsH3QIiouP+9 vm4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714419584; x=1715024384; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KB/nTGsL6ro7Z1JHc0QfHBM4CeEa1MsqmgZl/vui59g=; b=DoV2qqAq06Rvwigjyi3Q8Lwn57FwVXGHGcxLPpDlvUfR7bjwklTX5fXRiKNuYQXpcA YhpRUBAeqRb6abU1SmcxP3eRrNYbCSDmOyCLN9gnlpbiHEy35maNU0VAt2+Crps0uNeq luHKyqKTutlm4+TtKYSzRnX6DnVIoMRyJFTjC69EJo+ESFfYA9scbj2pJWy29j/7nYoL lcFtydQjXEZYGxVnVh9pJd9qHIBecmJXl9kj2O03UQIA543DOf1R8g1InpY54YCRZZA7 0qahMFFyXgatxCg14eZrZ4oPViQp7yN27k2rJJvE8JlsTH0ho1hakzwP7thLWf03rRmd P3kA== X-Forwarded-Encrypted: i=1; AJvYcCVB0ksxS1MgbT4A1dJN2Ic4jGcfZ9ywUvOvvi/kKuDOjEdkO3fSWTnOfCRqAIRzY/SPSzcma0sS02axQygfDWPVhBIBIw+v4Hfilyr9Vrzo6jLaRLLlrgKbwzOws7mWnaqoavio233Q X-Gm-Message-State: AOJu0YxnB4Cge3PNWpqUrw/butX6rs9OETYzTawEPM2Rrc6JeJZXJANy TnjP4LAh1rWkqBRtuBR/DaJC1GhVOMY6GDCGUMRNdFlt8zz3aWXd X-Received: by 2002:a6b:7611:0:b0:7de:a511:9edb with SMTP id g17-20020a6b7611000000b007dea5119edbmr10188869iom.10.1714419583976; Mon, 29 Apr 2024 12:39:43 -0700 (PDT) Received: from frodo.. (c-73-78-62-130.hsd1.co.comcast.net. [73.78.62.130]) by smtp.googlemail.com with ESMTPSA id y16-20020a056602165000b007de9f92dc57sm2325105iow.16.2024.04.29.12.39.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 12:39:43 -0700 (PDT) From: Jim Cromie To: jbaron@akamai.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: ukaszb@chromium.org, linux-doc@vger.kernel.org, daniel.vetter@ffwll.ch, tvrtko.ursulin@linux.intel.com, jani.nikula@intel.com, ville.syrjala@linux.intel.com, seanpaul@chromium.org, robdclark@gmail.com, groeck@google.com, yanivt@google.com, bleung@google.com, Jim Cromie Subject: [PATCH v8 33/35] drm-drivers: DRM_CLASSMAP_USE in 2nd batch of drivers, helpers Date: Mon, 29 Apr 2024 13:39:19 -0600 Message-ID: <20240429193921.66648-14-jim.cromie@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240429193921.66648-1-jim.cromie@gmail.com> References: <20240429193921.66648-1-jim.cromie@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add a DRM_CLASSMAP_USE declaration to 2nd batch of helpers and *_drv.c files. For drivers, add the decl just above the module's PARAMs, since it identifies the "inherited" drm.debug param. Note: with CONFIG_DRM_USE_DYNAMIC_DEBUG=y, a module not also declaring DRM_CLASSMAP_USE will have its class'd prdbgs stuck in the initial (disabled, but for DEBUG) state. The stuck sites are evident in /proc/dynamic_debug/control as: class:_UNKNOWN_ _id:N # control's last column rather than a proper "enumeration": class:DRM_UT_CORE TLDR: This set of updates was found by choosing M for all DRM-config items I found (not allmodconfig), building & modprobing them, and grepping "class unknown," control. There may yet be others. Signed-off-by: Jim Cromie --- drivers/gpu/drm/drm_gem_shmem_helper.c | 2 ++ drivers/gpu/drm/gud/gud_drv.c | 2 ++ drivers/gpu/drm/mgag200/mgag200_drv.c | 2 ++ drivers/gpu/drm/qxl/qxl_drv.c | 2 ++ drivers/gpu/drm/radeon/radeon_drv.c | 2 ++ drivers/gpu/drm/udl/udl_main.c | 2 ++ drivers/gpu/drm/vkms/vkms_drv.c | 2 ++ drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 2 ++ 8 files changed, 16 insertions(+) diff --git a/drivers/gpu/drm/drm_gem_shmem_helper.c b/drivers/gpu/drm/drm_gem_shmem_helper.c index e435f986cd13..066d906e3199 100644 --- a/drivers/gpu/drm/drm_gem_shmem_helper.c +++ b/drivers/gpu/drm/drm_gem_shmem_helper.c @@ -23,6 +23,8 @@ #include #include +DRM_CLASSMAP_USE(drm_debug_classes); + MODULE_IMPORT_NS(DMA_BUF); /** diff --git a/drivers/gpu/drm/gud/gud_drv.c b/drivers/gpu/drm/gud/gud_drv.c index 9d7bf8ee45f1..5b555045fce4 100644 --- a/drivers/gpu/drm/gud/gud_drv.c +++ b/drivers/gpu/drm/gud/gud_drv.c @@ -31,6 +31,8 @@ #include "gud_internal.h" +DRM_CLASSMAP_USE(drm_debug_classes); + /* Only used internally */ static const struct drm_format_info gud_drm_format_r1 = { .format = GUD_DRM_FORMAT_R1, diff --git a/drivers/gpu/drm/mgag200/mgag200_drv.c b/drivers/gpu/drm/mgag200/mgag200_drv.c index 573dbe256aa8..88c5e24cc894 100644 --- a/drivers/gpu/drm/mgag200/mgag200_drv.c +++ b/drivers/gpu/drm/mgag200/mgag200_drv.c @@ -25,6 +25,8 @@ static int mgag200_modeset = -1; MODULE_PARM_DESC(modeset, "Disable/Enable modesetting"); module_param_named(modeset, mgag200_modeset, int, 0400); +DRM_CLASSMAP_USE(drm_debug_classes); + int mgag200_init_pci_options(struct pci_dev *pdev, u32 option, u32 option2) { struct device *dev = &pdev->dev; diff --git a/drivers/gpu/drm/qxl/qxl_drv.c b/drivers/gpu/drm/qxl/qxl_drv.c index beee5563031a..1971bfa8a8a6 100644 --- a/drivers/gpu/drm/qxl/qxl_drv.c +++ b/drivers/gpu/drm/qxl/qxl_drv.c @@ -65,6 +65,8 @@ module_param_named(modeset, qxl_modeset, int, 0400); MODULE_PARM_DESC(num_heads, "Number of virtual crtcs to expose (default 4)"); module_param_named(num_heads, qxl_num_crtc, int, 0400); +DRM_CLASSMAP_USE(drm_debug_classes); + static struct drm_driver qxl_driver; static struct pci_driver qxl_pci_driver; diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index 7bf08164140e..d22308328c76 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.c +++ b/drivers/gpu/drm/radeon/radeon_drv.c @@ -247,6 +247,8 @@ int radeon_cik_support = 1; MODULE_PARM_DESC(cik_support, "CIK support (1 = enabled (default), 0 = disabled)"); module_param_named(cik_support, radeon_cik_support, int, 0444); +DRM_CLASSMAP_USE(drm_debug_classes); + static struct pci_device_id pciidlist[] = { radeon_PCI_IDS }; diff --git a/drivers/gpu/drm/udl/udl_main.c b/drivers/gpu/drm/udl/udl_main.c index 3ebe2ce55dfd..ba57c14454e5 100644 --- a/drivers/gpu/drm/udl/udl_main.c +++ b/drivers/gpu/drm/udl/udl_main.c @@ -19,6 +19,8 @@ #define NR_USB_REQUEST_CHANNEL 0x12 +DRM_CLASSMAP_USE(drm_debug_classes); + #define MAX_TRANSFER (PAGE_SIZE*16 - BULK_SIZE) #define WRITES_IN_FLIGHT (20) #define MAX_VENDOR_DESCRIPTOR_SIZE 256 diff --git a/drivers/gpu/drm/vkms/vkms_drv.c b/drivers/gpu/drm/vkms/vkms_drv.c index dd0af086e7fa..086797c4b82b 100644 --- a/drivers/gpu/drm/vkms/vkms_drv.c +++ b/drivers/gpu/drm/vkms/vkms_drv.c @@ -39,6 +39,8 @@ static struct vkms_config *default_config; +DRM_CLASSMAP_USE(drm_debug_classes); + static bool enable_cursor = true; module_param_named(enable_cursor, enable_cursor, bool, 0444); MODULE_PARM_DESC(enable_cursor, "Enable/Disable cursor support"); diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index 58fb40c93100..c159f4d186a3 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c @@ -275,6 +275,8 @@ static int vmw_probe(struct pci_dev *, const struct pci_device_id *); static int vmwgfx_pm_notifier(struct notifier_block *nb, unsigned long val, void *ptr); +DRM_CLASSMAP_USE(drm_debug_classes); + MODULE_PARM_DESC(restrict_iommu, "Try to limit IOMMU usage for TTM pages"); module_param_named(restrict_iommu, vmw_restrict_iommu, int, 0600); MODULE_PARM_DESC(force_coherent, "Force coherent TTM pages"); -- 2.44.0