Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp983853pxb; Fri, 15 Apr 2022 17:23:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyukNHwlPTXtbwAliZCqL0cWPl19u04y355qxx/HnLpSyQpy+43rw14bfL4G1bET3xX5pv4 X-Received: by 2002:a17:90b:1642:b0:1c7:2497:3807 with SMTP id il2-20020a17090b164200b001c724973807mr6730501pjb.176.1650068635251; Fri, 15 Apr 2022 17:23:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650068635; cv=none; d=google.com; s=arc-20160816; b=M9/ZMX4K5M7ZOKellUqhTOwwn36+h6pbYDM3gbD4bG59XkNhOkY4MnF4TRVZ+2obCs 4SsIRn/scmDEWcVzYkqruCbsD96/y7kpzD8jsV44ugD9FizkQDraiCTbumkUm1R+zcfC wl6RBf5to2GB+7eKIoelBwguwukCcHPQ11BOuz0LdYKutV48cm9+osoR+qnv9y4u0EHq gwS5J/Uvwj6fIqzVEG/SJtj+GXyN+Y/OninalmcVoF6XArAvtqgUr20+nrSgwCcV10YT Al9eFzOzwKAj3b/5n1eUS04WOdqkDvOwZHJsYhPNLkNDE9cS4UgpTmcDVzODLN7A7tOD B5LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from:dkim-signature; bh=8Iy66koUo97xe27miyANwDYZkgKLkFq1MrlCLuqJ4YY=; b=mooZVugXIZmiF/5xR+sCXCqMDUpryQlDLxGILRaGP0Wz3LE4arAe0NOtbTEV9G9/HY 6lW/6w2U43PA3cfFhayAXa9z+8APxvuVRGCtZ+xziuoe29VFdkVlFn7LlFPFAZp3/1Wy EzLtRd0xxueSHuuGYD4pYUXv6X7pcq5bXU2D7CrhOoXf/ltFoEhJpNmAGNVxRK5H3UE0 uEkI2e2ICZMaSKlpxV505QLErRfC7CLLAXAtYYUETW4l2rThxDBonZURelOf05O9JgSS Z0EF8mRfozuVAuRl5g2XjKZmaLiASiA2JoyqAfmUftpgnPq+1Fw4QrCWOXhukdyirvxm Eg0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BAuk0CLR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y6-20020a17090322c600b0015884706ccasi2990676plg.6.2022.04.15.17.23.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 17:23:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BAuk0CLR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8B64FE38B4; Fri, 15 Apr 2022 17:22:38 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346776AbiDNPjX (ORCPT + 99 others); Thu, 14 Apr 2022 11:39:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352018AbiDNObq (ORCPT ); Thu, 14 Apr 2022 10:31:46 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 492F3C12F1 for ; Thu, 14 Apr 2022 07:22:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649946170; x=1681482170; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=wcOZ08M12WSd63gaezIShH6Ul4Xo33/RqAiEoJUbfpM=; b=BAuk0CLRAF68TyhSajEVm41chwDHij6U3D6swD+wNJQF2QLFHCcSiQrH eYZy+66ZDjJ4eGVx3qx+t6Eku2HiPg+Wc1fz6PdfOz82UTz3fLicTmk0q iWeE1zQkHN9MjXx3ObL3euDXerQpoROdmTMkPY85Di+LvT/CfqBRq7uYV /149n+CcmE+xqToJFaquQfAGzXlOEDqydbl0bY6SYOlhiF2KaTuqx/JnM WJN198PEVpp77XMqnNBe5qLY7nIzqRfHUoPwGkn0NVi2dx7DE74/8oLhC bAMdEyiAzxyGR5n7rfFMYhwfbj+94Cz7z/fKX45jnmPh1IpY9DtmPO8W8 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10317"; a="262383629" X-IronPort-AV: E=Sophos;i="5.90,259,1643702400"; d="scan'208";a="262383629" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2022 07:22:50 -0700 X-IronPort-AV: E=Sophos;i="5.90,259,1643702400"; d="scan'208";a="573817803" Received: from nplaweck-mobl.ger.corp.intel.com (HELO localhost) ([10.249.149.236]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2022 07:22:47 -0700 From: Jani Nikula To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Andrew Morton , Lucas De Marchi Subject: Re: [PATCH 0/1] add support for enum module parameters In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20220414123033.654198-1-jani.nikula@intel.com> Date: Thu, 14 Apr 2022 17:22:47 +0300 Message-ID: <87a6cneoco.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, 14 Apr 2022, Greg Kroah-Hartman wrote: > On Thu, Apr 14, 2022 at 03:30:32PM +0300, Jani Nikula wrote: >> Hey, I've sent this before, ages ago, but haven't really followed >> through with it. I still think it would be useful for many scenarios >> where a plain number is a clumsy interface for a module param. >> >> Thoughts? > > We should not be adding new module parameters anyway (they operate on > code, not data/devices), so what would this be used for? I think it's just easier to use names than random values, and this also gives you range check on the input. I also keep telling people not to add new module parameters, but it's not like they're going away anytime soon. If there's a solution to being able to pass device specific debug parameters at probe time, I'm all ears. At least i915 has a bunch of things which can't really be changed after probe, when debugfs for the device is around. Module parameters aren't ideal, but debugfs doesn't work for this. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center