The only thing that worries me about a patch like this is that it encourages people to write arch-specific tools that have no chance of working on multiple platforms. Right now, on ppc64, we have a system for making direct calls into the firmware, as well as a copy of the firmware's device-tree exported to userspace. This means that we have userspace applications that do very generic things like counting CPUs, or activating memory in very arch-specific ways. Creating more of these interfaces encourages more of these arch-specific applications, and what we end up with are lots of tools that only work on Intel platforms or IBM ppc, but not Linux in general. So, what kinds of generic, arch-independent interfaces should we implement in the kernel that would reduce the need for something like your driver? -- Dave - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to XXXX@XXXXX.COM More majordomo info at http://www.**--****.com/ Please read the FAQ at http://www.**--****.com/
I agree with your intent, but I'm not sure a common kernel interface is feasible or desired. This driver would be much more useful if it was cleverly abstracted by a userspace library. Should we try to make the common layer be the library interface? Obviously the more similar the kernel interface, the easier, but I'm not ready to sign-up to architect a generic interface. The ACPI interface could be used to do everything from switching a laptop display between the interfaces to listing and configuring/de- configuring specific pieces of hardware. There will be a set of functionality that's common across multiple interfaces, but I don't want to prevent the usage that is very specific to the underlying implementation. Alex -- Alex Williamson HP Linux & Open Source Lab - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to XXXX@XXXXX.COM More majordomo info at http://www.**--****.com/ Please read the FAQ at http://www.**--****.com/
Instead of architecting a generic interface, might you simply exclude access from your driver to things that already have generic interfaces? I think there are things that we exclude from /proc/device-tree on ppc64 because there's a generic equivalent elsewhere. There are certainly some very platform-specific things that obviously need to be done with direct access to the firmware, and that we don't want to pollute the kernel with. Parsing some of the firmware error logs on ppc64 comes to mind. You just need to be *very* careful with the application authors because it's such a big gun :) -- Dave - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to XXXX@XXXXX.COM More majordomo info at http://www.**--****.com/ Please read the FAQ at http://www.**--****.com/
The access interfaces I'm exposing are pretty simple building block type features. It's a toolset to poke at namespace, not a predefined set of device specific functions. I'm sure you can mix them all together and duplicate something that already exists, but trying to kludge in limitations sounds futile and would reduce the usefulness of the entire interface. Besides, given a choice, I kinda doubt people are going to choose to implement something that requires them to know about ACPI ;^) This is certainly a big gun, but in the software world, I'd rather have a big gun available than no gun at all. Thanks for the comments, Alex -- Alex Williamson HP Linux & Open Source Lab - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to XXXX@XXXXX.COM More majordomo info at http://www.**--****.com/ Please read the FAQ at http://www.**--****.com/
I'm sorry if I didn't speak up at the time, but I still think that your sysfs patches were the right way to go. Why do you think they don't keep with the spirit of sysfs? Do you have a pointer to your last patch that exported the acpi table info through sysfs? thanks, greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to XXXX@XXXXX.COM More majordomo info at http://www.**--****.com/ Please read the FAQ at http://www.**--****.com/
1.Userspace ACPI interpreter ( was [ACPI] [RFC] dev_acpi: support for userspace access to acpi)
2.Userspace ACPI interpreter ( was [ACPI] [RFC] dev_acpi: support for userspace access to acpi)
3.Userspace ACPI interpreter ( was [ACPI] [RFC] dev_acpi: support for userspace access to acpi)
4.[ACPI] [RFC] dev_acpi: support for userspace access to acpi
5.[RFC] dev_acpi: support for userspace access to acpi
6. [ACPI] [PATCH/RFC 0/4]Bind physical devices with ACPI devices
7. [RFC] Pushing device/driver binding decisions to userspace
Users browsing this forum: No registered users and 31 guest