Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1812662rwd; Mon, 15 May 2023 03:29:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ43QJXblSGtW6rOJxHbolyRZIUkIqbjcmq5jj1a8Vy070CIoYXlk5gHtXf0Dm8sc7SGbOKW X-Received: by 2002:a05:6a20:4408:b0:101:6be3:f675 with SMTP id ce8-20020a056a20440800b001016be3f675mr27350639pzb.17.1684146581966; Mon, 15 May 2023 03:29:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684146581; cv=none; d=google.com; s=arc-20160816; b=06WCmCsoKBKBYkvBcs5lMfnBD8wPs3iyzX05qWp4hiqV/UlCSIqvdC07huMhcntrzF /tM2/TnhkdTH1r33MMjPqovEX9dbEs7DhjlfIlmaQFIdKKwZkxseCv+ALMe005gO+zcF wNC5YNTBDbI0tO0p+G6RwZdGGvJhgf+RuUNj7TsdwEsa72KyXWJQKElu/Xle6x47h8g5 CvVLUrRFaA6anLTNOmUVyuxEp/lDbqujikMxrOgAZm21RK2GGRnm/OQJ5Wmf+ChI/uvu 4T0oIGALXkvfz/Dx5unJDMr9Mk+IZ3Ei+x7zPjoNYkGG7TpoEm2PQqLw52q+5yCzz/k+ /vwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=ChA3AWIkAe0sJn6fwRjlWS0wpSRN1HN9NZ79QAwkmsk=; b=i9kpmR+gv1pkV/w2Ofj69lIuBGXYBQuZuXdkkV7b24+KVyBfEqcgx5wJVig42KDmzt UG7MEPgpKSkgCLr0e13dNXMccNdcLfsrC1LgqkX+Q2hitMCfe9avDANxPRdG5piX0m1o uS4ojsDt367OHjUrR9T2+1H59Y2HPf/n6m49Tcpzs6T+1aEk4rBxaisp6jqx08mBNvLf eWNydkbT7soeDffEFilFxYvFyDIq9nyK040Vlryzd1AH5fD2f/q66j89rnQHFPTh/Snj G+j77RZFkhNNfhd2RI9K20Rm2IIZda6RD+n9sKxQvL2KEiisHNdCfhIzmoa1aVABApQc /t9g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s69-20020a632c48000000b0051909d663d8si15790185pgs.656.2023.05.15.03.29.29; Mon, 15 May 2023 03:29:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237581AbjEOKLw convert rfc822-to-8bit (ORCPT + 99 others); Mon, 15 May 2023 06:11:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238353AbjEOKLu (ORCPT ); Mon, 15 May 2023 06:11:50 -0400 Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com [209.85.219.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8717B13A for ; Mon, 15 May 2023 03:11:49 -0700 (PDT) Received: by mail-yb1-f169.google.com with SMTP id 3f1490d57ef6-ba7854ff5abso2635298276.2 for ; Mon, 15 May 2023 03:11:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684145508; x=1686737508; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8RSc3ehTcfUtTwTGi8/DXlWstgHILWkp+xdTMczEuPw=; b=ROlKWKsU7jw7wFBe5rkYyccyGWgKcnHgBRWPWTFCC3fPVkE6AeO0xEAfbROtRCpJfg dhQv9VyVQDqacCRgRghA1hUh0kxh6u1rjySMFPuBLruIGp2wvRchwLe3CFTrOJ/QTpvw Fxl+I5xGhxmHeIrwmNyoYudQxoe14KBF8D+s8rFgvqRoptS2DnDv9+1twNklQNm1s1mR B6d99JqrIu5fZCX1BRw9sNhsCLQZ7zG1bJFU0Nw5DA9fYDE3ADyvfhQvlFkzcEr7B9Ga pqCdjtspMug4AE6CHo0VYTxvPeZLTi0drGpeByTepOYEg+VR92f/ZDDTi/2fQIY8LEKl 8ixQ== X-Gm-Message-State: AC+VfDzt4x0NvaCWchb4/SpiJjeBWiSXFfefretcYVtKPnY0DFMWqm0k h+zYDhYyMTLhgPAX+UoGq3EaNFPZdFhhkw== X-Received: by 2002:a81:8490:0:b0:560:e0ce:ac7c with SMTP id u138-20020a818490000000b00560e0ceac7cmr14043032ywf.43.1684145508511; Mon, 15 May 2023 03:11:48 -0700 (PDT) Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com. [209.85.219.169]) by smtp.gmail.com with ESMTPSA id h123-20020a0df781000000b0055a382ae26fsm6807510ywf.49.2023.05.15.03.11.47 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 May 2023 03:11:48 -0700 (PDT) Received: by mail-yb1-f169.google.com with SMTP id 3f1490d57ef6-ba7bf25a010so1518507276.3 for ; Mon, 15 May 2023 03:11:47 -0700 (PDT) X-Received: by 2002:a81:6689:0:b0:55a:8c02:bfea with SMTP id a131-20020a816689000000b0055a8c02bfeamr32799250ywc.19.1684145507540; Mon, 15 May 2023 03:11:47 -0700 (PDT) MIME-Version: 1.0 References: <1296c4d691bba057291246f067c191ef8a88531c.1680667933.git.fthain@linux-m68k.org> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 15 May 2023 12:11:36 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4] nubus: Don't list slot resources by default To: Finn Thain Cc: Brad Boyer , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, 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 Hi Finn, On Mon, May 15, 2023 at 11:44 AM Geert Uytterhoeven wrote: > On Wed, Apr 5, 2023 at 6:19 AM Finn Thain wrote: > > Some Nubus card ROMs contain many slot resources. A single Radius video > > card produced well over a thousand entries under /proc/bus/nubus/. > > Populating /proc/bus/nubus/ on a slow machine with several such cards > > installed takes long enough that the user may think that the system is > > wedged. All those procfs entries also consume significant RAM though > > they are not normally needed (except by developers). > > Omit these resources from /proc/bus/nubus/ by default and add a kernel > > parameter to enable them when needed. > > On the test machine, this saved 300 kB and 10 seconds. > > > > Cc: Brad Boyer > > Tested-by: Stan Johnson > > Signed-off-by: Finn Thain > > --- > > Changed since v3: > > - Better commentary. > > Changed since v2: > > - Added commentary. > > - Moved declaration to nubus.h. > > Changed since v1: > > - Expanded to cover all slot resources in procfs. > > Reviewed-by: Geert Uytterhoeven > i.e. will queue in the m68k for-v6.5 branch. Upon second look, "populate_procfs" is too generic for a global variable. Please add a "nubus_"-prefix, and use module_param_named() instead. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds