Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 96B0536F for ; Thu, 6 Oct 2022 06:32:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A966FC433D6; Thu, 6 Oct 2022 06:32:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1665037960; bh=QPMJFooJTr6EOzcnJDVXxYbqDFz5t2GLsNU9+P46b7g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=anV9MWKFIAUwGYCF11N8RcB4wFaZSs5lx4htFdPmjT5P1sv218TcZlS1zMsxNBy9e wPBjfW4LKNGlKddEnGuAj8dCo53F4Yy3i7CEwkSxGZPzUMaVIILkiPClo9vpE+J25Y aQFP65J65mf5/ffnTQFSjSFMKHYj4ZCmE05EXnEI= Date: Thu, 6 Oct 2022 08:33:19 +0200 From: Greg KH To: Julius Werner Cc: Jack Rosenthal , LKML , chrome-platform@lists.linux.dev, Stephen Boyd , Tzung-Bi Shih , Guenter Roeck Subject: Re: [PATCH v12] firmware: google: Implement cbmem in sysfs driver Message-ID: References: <20221004003811.4075765-1-jrosenth@chromium.org> Precedence: bulk X-Mailing-List: chrome-platform@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Oct 05, 2022 at 04:26:55PM -0700, Julius Werner wrote: > > If the kernel is reporting a value, that value needs to be documented > > somewhere. If the kernel is acting on that value, it needs to know what > > those values are. > > > > In this specific instance it seems that the kernel knows a subset of the > > values, and some random userspace tool knows all of them? Think about > > what you would want to see here if you knew nothing about this at all. > > The kernel doesn't know any of the values. The kernel is just telling > userspace that spaces with these IDs exist and providing an interface > to access them, it's not supposed to know what any of them mean. Ah, ok, that was not obvious to me, sorry. If the kernel is just a pass-through, no objections. thanks, greg k-h