Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp968892pxk; Fri, 25 Sep 2020 02:43:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA/UDOqbIustoNI1gVI9oySxavbV0BjYf1m+ZGig7BqDnIL3y65uW1CQmH24q8GyNz6PJt X-Received: by 2002:a17:906:cf8b:: with SMTP id um11mr1913250ejb.540.1601027002727; Fri, 25 Sep 2020 02:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601027002; cv=none; d=google.com; s=arc-20160816; b=rFO4YlqMDfz59IQZkp1v5z4lBQwLk1AwrHjBubsYpTimH3JmrqDxrp2WxFKIPSkqgv i8h7iZncnK+CZcGgtF3SDPGRkq37jmdg7CE0q5NZKJhknp5u37/U+/04IopfkKvt/Goh R2AbjxwmD/THYOqQ7wwheX4lREHv8wBWxA4t7vE5TsnVuzQdEM62zRmw6qaUv62HqtyE aou4Wr+w7ngtO2wPeBLPCnSVvaaGl6QetKG3E9i6T2uVY+0YLbwhAtXUpFTGqY8BluvS QUqLGIFx83uCtJiXUR3QaFeJN4RtQ+qRuHiCerOXPAdA4ojJS95cg4nRm98oSq4Mtb2y VbSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=+HunfcENkqgY5uSzGTorRHSXlf2sbRglayoTF91tIXo=; b=yxKx4lbre/HmoXTGDSlvDHLpI4dloC0t3VOJ/gBG0WYVqIeJXCpFo7dsB/nPjW1aVg 9fQg/4WOX+xtZQGUtm+tFqV0856pVONNBrQ91nzx/0A0qbxrnivy/QPEtovFAANSdvaf nxZOC1qYU3c8OZAtEfqSxj6u7363mr7gw7kWBzwmkkvRAAAUps8VM68PSFqU4ejFkQsy GLW9DL+1mK70JFKrSviUnXzilnO009NsHSQa44a5dbcGr8KhHFqtfgPhif/p3NU/ukav 3P+T/cTSbcwEdytIcEd1GjF+Q0NczUD/uUvqrxl0bEpHR5Oy38DX04S4tRwrY5uknKXR d9GQ== 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 a12si1523379eds.181.2020.09.25.02.42.59; Fri, 25 Sep 2020 02:43: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 S1727827AbgIYJkn (ORCPT + 99 others); Fri, 25 Sep 2020 05:40:43 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:44980 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727346AbgIYJkn (ORCPT ); Fri, 25 Sep 2020 05:40:43 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 94B6E1C0C44; Fri, 25 Sep 2020 11:40:39 +0200 (CEST) Date: Fri, 25 Sep 2020 11:40:38 +0200 From: Pavel Machek To: Jacek Anaszewski Cc: linux-leds@vger.kernel.org, dmurphy@ti.com, "linux-kernel@vger.kernel.org" Subject: Re: ledtrig-cpu: Limit to 4 CPUs Message-ID: <20200925094038.GC20659@amd> References: <20200919093833.GA14326@duo.ucw.cz> <27e19ac9-4bc0-2945-3985-6cd6bb5407df@gmail.com> <20200920183401.GA21494@duo.ucw.cz> <781dcb5e-7bad-f740-5914-778ec8a7306b@gmail.com> <20200921224212.GA13299@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="p2kqVDKq5asng8Dg" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --p2kqVDKq5asng8Dg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > >>So.. no, it is not causing kernel crashes or something. But it is > >>example of bad interface, and _that_ is causing problems. (And yes, if > >>I realized it is simply possible to limit it, maybe the BIN_ATTR > >>conversion would not be neccessary...) > > > >The limitation you proposed breaks the trigger on many plafforms. >=20 > Actually it precludes its use. >=20 > I still see the patch in your linux-next, so I reserve myself the > right to comment on your pull request. You are free to comment on anything. I believe probability someone uses that with more than 4 CPUs is < 5%. Probability that someone uses it with more than 100 CPUs is << 1% I'd say. Systems just don't have that many LEDs. I'll take the risk. If I broke someone's real, existing setup, I'll raise the limit. (With exception of uled setups. In such cases, I'll just laugh.) If you know or can find out someone using it with more than 4 CPUs, I can obviously raise the limit before the merge. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --p2kqVDKq5asng8Dg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl9tuxYACgkQMOfwapXb+vImXACfYPwAMqlGN0lqrqh4tyHCfT1y ee0AnjtjP7rVsDsuXcoRM+lmZlxIgYkB =GgT7 -----END PGP SIGNATURE----- --p2kqVDKq5asng8Dg--