From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44079C3A5A8 for ; Sun, 1 Sep 2019 17:23:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2469822CE9 for ; Sun, 1 Sep 2019 17:23:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729015AbfIARX0 (ORCPT ); Sun, 1 Sep 2019 13:23:26 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:38900 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728570AbfIARXZ (ORCPT ); Sun, 1 Sep 2019 13:23:25 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 642C880B29; Sun, 1 Sep 2019 19:23:10 +0200 (CEST) Date: Sun, 1 Sep 2019 19:23:23 +0200 From: Pavel Machek To: Akinobu Mita Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Jacek Anaszewski , Dan Murphy Subject: Re: [PATCH] leds: remove PAGE_SIZE limit of /sys/class/leds//trigger Message-ID: <20190901172323.GB1005@bug> References: <1567090164-6819-1-git-send-email-akinobu.mita@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1567090164-6819-1-git-send-email-akinobu.mita@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > Reading /sys/class/leds//trigger returns all available LED triggers. > However, the size of this file is limited to PAGE_SIZE because of the > limitation for sysfs attribute. > > Enabling LED CPU trigger on systems with thousands of CPUs easily hits > PAGE_SIZE limit, and makes it impossible to see all available LED triggers > and which trigger is currently activated. > > This converts /sys/class/leds//trigger to bin attribute and removes > the PAGE_SIZE limitation. > > Cc: Jacek Anaszewski Nothing obviously wrong from a quick look... Acked-by: Pavel Machek Thanks a lot for doing this! I believe we should cc Greg here. BTW if you care about cpuled trigger... it would be cool to turn it into one trigger and pass a cpu number as a parameter. It is good to see this limit fixed, but real solution is to register one trigger per driver. Best regards, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html