Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2337199ybt; Fri, 3 Jul 2020 06:50:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYTxAjvUVlEb8MxKwPIfIS3uqjwYLiocR14QlsJ/EgDa9zH9TfoSN5GPpfx/N34WqSlimx X-Received: by 2002:a05:6402:174e:: with SMTP id v14mr26201438edx.153.1593784222779; Fri, 03 Jul 2020 06:50:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593784222; cv=none; d=google.com; s=arc-20160816; b=GnQYvjwEPQttCx+8rgy4vxOXiCPpv5pOLyEjIQp0mkYKJZSCFvTue3MsEQKKIC1vH5 mV/R2fnxA4IwrGa9sHV6KRAYcaaA0VJsunfdbaRcGnDyAXanxjmtWCVW63M/MpzQq7Z8 Dg09eD7AtTZ4YMLCGiRA8/jrBGjpD4r/WjxGOiF61Ymnun35iZAquFFg//cG8BPsXB9s lGaHasnqXX1lMlZQTQCr2vgT/HdB5/QnhFo4pk8tca4YHWX/pHwNeCnTZ/1pSAyB/B44 eGu/fgphxx3SIzGs6NRta2mtSCiMjEJZm78oi7X0DHGkKb0zAlr0bXIIpEQQjPSn6LVt EAzA== 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=pyVp15T36+zd3mAB/qChWMxGmo0EEVn0hDL+zX8FplU=; b=C6N7GbS7/HYtTxCQ2FpoaqaOBE5pv5MVcRiF7SEHfxySNjskYvK428fIP+zF9aN0em qFwJOTxIADgramRiJLUvnA5sqKDp++dU08W33e9mmiSE48tfqtizbuVL3L5JEYVmpptK PcNdA+n6KezANIz8DaQQflNDaxKyiuBb/pxkY/x6zwRxOWEzokThX5DzJvCoROx35bgn bQR9pXewsNtPeE5JfK5Iafk0AITjjSGBdvROQcJpEgVwkkG0wMT6Dtsr9QP/Fd/r833n bmCotK0/6SFxPhaNpN1JuQO/TdYdfsyoVm3Eu4dSM6rGLwUxLxZOHeV8ZFEd2UPwancL iw5w== 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 t12si7826635ejr.551.2020.07.03.06.49.58; Fri, 03 Jul 2020 06:50:22 -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 S1726310AbgGCNts (ORCPT + 99 others); Fri, 3 Jul 2020 09:49:48 -0400 Received: from mx3.molgen.mpg.de ([141.14.17.11]:42991 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726272AbgGCNtq (ORCPT ); Fri, 3 Jul 2020 09:49: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 2EAF420646DD9; Fri, 3 Jul 2020 15:49:45 +0200 (CEST) From: Paul Menzel To: Linus Torvalds , =?UTF-8?q?Christian=20K=C3=B6nig?= Cc: Paul Menzel , amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] drm/amdgpu: Change type of module param `ppfeaturemask` to hexint Date: Fri, 3 Jul 2020 15:49:40 +0200 Message-Id: <20200703134940.27054-2-pmenzel@molgen.mpg.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200703134940.27054-1-pmenzel@molgen.mpg.de> References: <20200703134940.27054-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 --- v2: Use new name hexint 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