Re: [PATCH] sparc64: Expose mdesc to sysfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/19/2017 08:43 AM, Eric Saint Etienne wrote:
> I am sorry for every Sparc users because it was a chance for them to
> easily explore and use machine description without having to install
> an external tool and a scripting language plus dependencies (potentially
> a lot of dependency). Users may also not know about /dev/mdesc whereas
> a mere "grep -ri cache /sys" would be fruitful.

I agree and I found your argumentation very reasonable and convincing.

Users are looking for hardware information below /sysfs, not somewhere
in /dev. /dev would actually be the last location I'd ever expect to
provide hardware information.

It also shouldn't be necessary to install a special tool to be able
to parse hardware information. /dev/mdesc sounds like a relict from
the old Linux days to me which should be superceded by sysfs.

Wasn't it a goal to eventually move all system information to sysfs
and even removing the remains from /proc in the distant future as
/proc is actually the process filesystem and not for system information?

> Also mdesc is root accessible only. Exposing all or even just a selection
> of machine description nodes to users via sysfs provides them with the
> visibility of for instance TLBs and Caches (number, size, and more
> importantly how they are organized in the processor).

That's even worse. Users should be able to retrieve system information
without being the root user.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@xxxxxxxxxx
`. `'   Freie Universitaet Berlin - glaubitz@xxxxxxxxxxxxxxxxxxx
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux