Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2369808ybt; Fri, 3 Jul 2020 07:33:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYCImIWSu2oinbmdjouIPPM68gb7AZ/sNXuSOmzm6s8fmm91rlS1i2MQ7OTdBOhJUscjng X-Received: by 2002:a17:906:1db1:: with SMTP id u17mr26182959ejh.72.1593786782467; Fri, 03 Jul 2020 07:33:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593786782; cv=none; d=google.com; s=arc-20160816; b=rf78/kvKqvZT/ZSFilecE4bZ3/6Qx/ZOXv1cAyUQBNy22ZYDuRdilQD/tDFbl8KerV xtT5NMUY0nOx1NtsCdks+iZERaVeWmp/zidKDOBevVPpiO5SMb62l7HvenSzBOxOU0by fm4a/flYLmj/Hv2hiJL+SiL6VL0gM4F+J27ZoBUNwa2Czk53gKa55EoKW1wvYQEd/l7+ bz99vadA0nKBjFuh0tZ+jGhG/34VJnK+kZt2dUGm7oBCu8tqiIrTNGaCGHQxOsUhPBKM Sju1jn2fTVf7ajTHRy9FuI0Aw4qg8obh+Gcil9mAkLQp4qiZ/1RsVFqm+LJbLxoBZgKp rFBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=OzlzAAz+/SISuSOQtnW+LQ/qmDlnKcYE8vjztwYaJOo=; b=dlCPA4JxUsagn0DuH06JFrOzC8+Tvq/8UxQhuvCnVh0IMPhBq0hszzSkW1x4ynar9P QYNASLNm2nHFJZZwRQicoGI1WTI9HOB9bgU69SvmJvTXBkhLi9g1F9z/dk4rXpa+X/TZ tr1L0HybfKFUyMggVWCD+bMlbxfl/tUMMTesqkmJi2AqrtvxoCcsyIrfGPKd6jCfTOOe uTc19QOaXg93soNQ38F+cv2zqSjNNfp3XHlpswKBrs+t/gw4kg31FXvS+bKGAGQioJgx R60VJ5WiuIzohGFD7Icl3gtEtsUZzrHRlF/FLILygyRfxTApC3paxtY1sMN1V5Y3qZgC zS5w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si8233892edv.266.2020.07.03.07.32.38; Fri, 03 Jul 2020 07:33:02 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726546AbgGCO3s (ORCPT + 99 others); Fri, 3 Jul 2020 10:29:48 -0400 Received: from mx3.molgen.mpg.de ([141.14.17.11]:50927 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726048AbgGCO3q (ORCPT ); Fri, 3 Jul 2020 10:29:46 -0400 Received: from hopp.molgen.mpg.de (hopp.molgen.mpg.de [141.14.25.186]) by mx.molgen.mpg.de (Postfix) with ESMTP id A5F59206442E7; Fri, 3 Jul 2020 16:29:45 +0200 (CEST) From: Paul Menzel To: Linus Torvalds , =?UTF-8?q?Christian=20K=C3=B6nig?= , Alex Deucher Cc: Paul Menzel , amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/3] drm/amdgpu: Change type of module param `ppfeaturemask` to hexint Date: Fri, 3 Jul 2020 16:29:39 +0200 Message-Id: <20200703142939.28663-3-pmenzel@molgen.mpg.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200703142939.28663-1-pmenzel@molgen.mpg.de> References: <20200703142939.28663-1-pmenzel@molgen.mpg.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The newly added hexint helper is more convenient for bitmasks. Before: $ more /sys/module/amdgpu/parameters/ppfeaturemask 4294950911 After: $ more /sys/module/amdgpu/parameters/ppfeaturemask 0xffffbfff Cc: amd-gfx@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Paul Menzel --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 126e74758a34..5c4263335cba 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c @@ -391,12 +391,12 @@ MODULE_PARM_DESC(sched_hw_submission, "the max number of HW submissions (default module_param_named(sched_hw_submission, amdgpu_sched_hw_submission, int, 0444); /** - * DOC: ppfeaturemask (uint) + * DOC: ppfeaturemask (hexint) * Override power features enabled. See enum PP_FEATURE_MASK in drivers/gpu/drm/amd/include/amd_shared.h. * The default is the current set of stable power features. */ MODULE_PARM_DESC(ppfeaturemask, "all power features enabled (default))"); -module_param_named(ppfeaturemask, amdgpu_pp_feature_mask, uint, 0444); +module_param_named(ppfeaturemask, amdgpu_pp_feature_mask, hexint, 0444); /** * DOC: forcelongtraining (uint) -- 2.26.2