Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp714988ybl; Wed, 11 Dec 2019 06:27:34 -0800 (PST) X-Google-Smtp-Source: APXvYqxqVqZfyDXOD9wm2vGwG8QG4Ug0/8pYURRW6enx/JPfBXK8CgxljzL2r0+gWlWFANyDLMYN X-Received: by 2002:a9d:7147:: with SMTP id y7mr2320488otj.353.1576074454859; Wed, 11 Dec 2019 06:27:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576074454; cv=none; d=google.com; s=arc-20160816; b=d3CCydt61pGEp/wxZeI9V5HNZvoay2aoKTnhIM4h0jqRPFIRBBl9sTXqm38wUPp/cq G2HcSIMo+rehOni7AyMvkAyvrKaq5oOnrKvjsMTm5QKSDctgbq2L3Oa+tROZyUU5V1XW e6oIZ1n6N1mkh7hRGZy29nClxPvuOfn+BQf+teZvf/wIfFlE+C5bjU69XeU2RTO8clTy unGHWjutlB1BywCnZCYmaW+Mdkn4DSzWkbglgsfY6MlK58cqGHM36iPhb0D4vQAgSziT HtMtxLuEglXXi+JJZlshLyY6h4zIT8NRDnqOZR1K+tX7Yabp3IzgxzSXxOg8NlPRppGX eG0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Wb84NrL9fXylmGPd7Z+JuetgI0PvFn0p/Z6cgztb+3E=; b=wlbgtmwolxZ+4ZqdiXBidmJ9XITGDsnDEsCgphxKkTRwDOqFbQxg+LCPhXqEIjVPvK 8mvDEY1YywzkHjaFdMI7dxQMG2pOEmzxwrezAxgbkc+kUTZeK9+XxQcIEv4MOQsVdJGd WH91a3GHjShqRq6YGPKOQ4pbZPAp/Dczg2lJVmWxLvDs7ZhK+tfzj70ZBA8GSIDgmB4S p6dfsnNEkecCtl2WO8zdUIpAwIq2sTWDM8FJv0aX5ZUtxUoplVxBHxJ8nwmegyRWkUp/ pDu2v4C4d7MBBGq37EnTPzjJIUqxCjjeiR6BxCxVcKEyDjJrILJhUAl3zT8FeLOV1nUJ kebw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BjvxOVhS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l131si1264671oig.120.2019.12.11.06.27.21; Wed, 11 Dec 2019 06:27:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BjvxOVhS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729809AbfLKO0u (ORCPT + 99 others); Wed, 11 Dec 2019 09:26:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:60818 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727554AbfLKO0u (ORCPT ); Wed, 11 Dec 2019 09:26:50 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2E5C420836; Wed, 11 Dec 2019 14:26:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576074409; bh=Qy1znBU3pH+6omj0HjeyroPBVpb9rQjYap7r0jfAG98=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BjvxOVhSQ707fRbeqTGUXDcuhEnzOxXEY+NxteZ5p9aSm+qeQJSaibiL5kHCZ33sd Pd/bmPcoPYFx8uiwXjWgkfnXB0s+RY7apIIL5HJMwzItLR0FHncehO7FSui0mBdjxG r17SLeJRPEidTZ+Eih0GExSsMWMovYmsTKbTBCog= Date: Wed, 11 Dec 2019 15:26:47 +0100 From: Greg KH To: Thomas Renninger Cc: Thomas Gleixner , Felix Schnizlein , linux-kernel@vger.kernel.org, Felix Schnizlein , linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux@armlinux.org.uk, will.deacon@arm.com, x86@kernel.org Subject: Re: [PATCH 2/3] x86 cpuinfo: implement sysfs nodes for x86 Message-ID: <20191211142647.GB605616@kroah.com> References: <20191206162421.15050-1-trenn@suse.de> <4737004.4U1sY2OxSp@skinner.arch.suse.de> <20191211135619.GA538980@kroah.com> <22533595.7ohjOCJ8As@skinner.arch.suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <22533595.7ohjOCJ8As@skinner.arch.suse.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 11, 2019 at 03:12:51PM +0100, Thomas Renninger wrote: > On Wednesday, December 11, 2019 2:56:19 PM CET Greg KH wrote: > > On Wed, Dec 11, 2019 at 11:42:35AM +0100, Thomas Renninger wrote: > > > If Greg (and others) are ok, I would add "page size exceeding" handling. > > > Hm, quick searching for an example I realize that debugfs can exceed page > > > size. Is it that hard to expose a sysfs file larger than page size? > > > > No, there is a simple way to do it, but I'm not going to show you how as > > it is NOT how to use sysfs at all :) > > > > Why are you wanting to dump this whole mess into one file > > I wouldn't call a whitespace separated list of CPU feature flags a mess... It's a mess in that it's more than one value and you want to overflow a PAGE_SIZE sometime in the future with it :( > > and then parse > > it, it's no different from having 100+ different sysfs files and then > > doing a readdir(3) on the thing, right? > > If this is the way it "has to"/should/"is designed for" to export such > (not that complex) data via sysfs... > > I do not have such a strong opinion on the how, this is up to maintainers > to discuss. > > I hope it is agreed that this info is worth exporting via sysfs. I don't think anyone is saying it is worth exporting this information via sysfs at all here. thanks, greg k-h