Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3530946pxk; Mon, 21 Sep 2020 16:51:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4RK1BlNIol8l0NK3Caq5yct9Hg4P+ETVJPmRpvzijoND+Wxcs4f6+srknBjpTXj2+pYyM X-Received: by 2002:aa7:da48:: with SMTP id w8mr1289638eds.165.1600732299191; Mon, 21 Sep 2020 16:51:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600732299; cv=none; d=google.com; s=arc-20160816; b=R+hpneTpEm2E/FQauu0dvw6e5/yzDK2uXWH8eGYVgfKzmYdSo9rTfrB3fFf5yB5Tav sy3ha8LmXC/Na9hDLB/GFJE29Qif2a+kv/nAeXVhWhaWZEAmLtWxSskm1KggdrAeXEih G1OYLFDBer7MshOGoZUqHWq3y6xYVa5JBSwQ7hcL7MN8jZL8NY6hsA11fVIJbAh8VCf2 xAyvEku6u/AT3qECJHWp1+0rEuvAuJxk+cTzOx7gzaJiVkD18xjs5TQwnlr6jWKNaaeb BlBrBXAVWRe6cBqX6nSZFGVkLFpY4Qcf/evjF0/xsR2sQlBvzrEL4skJDvtcI8HYEA1c LTow== 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=5ug2K06sJKwUkrni4A5YfVqYQXvi/QEz5PeYJ5iR7I8=; b=pzHsgOskwes4oB6XoVX19n4HQbdZh16uFURAxyky1nHRbiMlFJlXSXYxwZoK7yLV/R YvrYy/qOA66ompmAVshLlFBCkp4wy2eWHHI17nmHr+TWP0+XqMG+htuDABYctcILq4Kk e8YL86o1k0wNGopct/V1fjf9a3W2x1wWgrjQdn4i3v2w45fr/2I5NZjID1gKDZt72ugK iXplFZXRPPjmrUoBDM3kZjSCPMBdxuLdWJnEbdXw+sHi44v3L0F1Bh3PR06VwBbc9sp1 fhtSA/Uered1V1oua6upx0a4I7mn+55B4RBDTHL84z6aiS1068qVc4WA718vpON2yfNF NBoA== 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 cf27si9311434edb.506.2020.09.21.16.51.16; Mon, 21 Sep 2020 16:51:39 -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 S1728596AbgIUWmQ (ORCPT + 99 others); Mon, 21 Sep 2020 18:42:16 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:56078 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728591AbgIUWmQ (ORCPT ); Mon, 21 Sep 2020 18:42:16 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 5CFFB1C0B8C; Tue, 22 Sep 2020 00:42:13 +0200 (CEST) Date: Tue, 22 Sep 2020 00:42:12 +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: <20200921224212.GA13299@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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline In-Reply-To: <781dcb5e-7bad-f740-5914-778ec8a7306b@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > >Can I get details of your setup? >=20 > I don't use this trigger, but I can imagine that someone does. Well, if someone exists, we can increase the limit, or convince them to change their setup. > >What CPU type that is, and how are you mapping CPU activity to LEDs? >=20 > The type of CPU is irrelevant here. What is important is the fact > that with this trigger it is possible to visually monitor CPU core > online state. Probably it would be good to ask the author of that > trigger about his use case. It is relevant -- cpu trigger never worked on x86. I had patch fixing it, but got pushback. > I have spoken up, because I don't get the reason for your patch. > This driver was reworked year ago to remove PAGE_SIZE limit, > and I even applied it to my for-next tree, but that was at > the time of handling maintainership to yourself, and you > seem to not have picked that commit. >=20 > Was that intentional? We had even Greg's ack [0]. I checked, and I believe the commit is in: #ifdef CONFIG_LEDS_TRIGGERS static BIN_ATTR(trigger, 0644, led_trigger_read, led_trigger_write, 0); static struct bin_attribute *led_trigger_bin_attrs[] =3D { 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...) Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl9pLEQACgkQMOfwapXb+vKQkQCdEHZE9Urf7rCD0NLk6hcOgiU4 nEoAnArg8S/GPNjmuPSxEBm8aYRiOAed =Kd18 -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP--