Proposal: mach-dt
Hello.
More and more platforms are now using devicetree.
Ideally the platform code contains only one function "of_platform_populate". My idea is to make a generic architecture (mach-dt) with the call then add support for compatible subarchitectures as they become available in "compatible"-property. Your opinion?
Thanks.
---
On 03/07/13 09:18, Alexander Shiyan wrote:
Hi Alexander,
Quoted 5 lines
More and more platforms are now using devicetree.
Ideally the platform code contains only one function "of_platform_populate". My idea is to make a generic architecture (mach-dt) with the call then add support for compatible subarchitectures as they become available in "compatible"-property. Your opinion?
Well, my (admittedly partial) opinion is that mach-virt is an incredibly nicer sounding name, 'specially as you can mistype it as mach-triv.
More seriously, arch/arm/mach-virt is probably what you need.
Cheers,
M.
Signature · 1 line
Jazz is not dead. It just smells funny...
Quoted 4 lines · Marc Zyngier
On 03/07/13 09:18, Alexander Shiyan wrote:
Hi Alexander,
Quoted 8 lines
Quoted 5 lines
More and more platforms are now using devicetree.
Ideally the platform code contains only one function "of_platform_populate". My idea is to make a generic architecture (mach-dt) with the call then add support for compatible subarchitectures as they become available in "compatible"-property. Your opinion?Well, my (admittedly partial) opinion is that mach-virt is an incredibly nicer sounding name, 'specially as you can mistype it as mach-triv.
As mentioned before, I disagree and would love to see the the virtualization-specific name replaced by something more suitably generic.
Christopher
Signature · 3 lines
Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation.
Quoted 11 lines · Christopher Covington
Quoted 10 lines · Marc Zyngier
On 03/07/13 09:18, Alexander Shiyan wrote:
Hi Alexander,
Quoted 5 lines
More and more platforms are now using devicetree.
Ideally the platform code contains only one function "of_platform_populate". My idea is to make a generic architecture (mach-dt) with the call then add support for compatible subarchitectures as they become available in "compatible"-property. Your opinion?
Quoted 5 lines
Quoted 2 lines
Well, my (admittedly partial) opinion is that mach-virt is an incredibly nicer sounding name, 'specially as you can mistype it as mach-triv.
As mentioned before, I disagree and would love to see the the virtualization-specific name replaced by something more suitably generic.
I think you're missing the point. The right fix would to remove it entirely and make it the basic default. There are patches for that already.
M.
Signature · 1 line
Jazz is not dead. It just smells funny...
Quoted 12 lines · Marc Zyngier
Quoted 11 lines · Christopher Covington
Quoted 10 lines · Marc Zyngier
On 03/07/13 09:18, Alexander Shiyan wrote:
Hi Alexander,
Quoted 5 lines
More and more platforms are now using devicetree.
Ideally the platform code contains only one function "of_platform_populate". My idea is to make a generic architecture (mach-dt) with the call then add support for compatible subarchitectures as they become available in "compatible"-property. Your opinion?
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Well, my (admittedly partial) opinion is that mach-virt is an incredibly nicer sounding name, 'specially as you can mistype it as mach-triv.
As mentioned before, I disagree and would love to see the the virtualization-specific name replaced by something more suitably generic.
I think you're missing the point. The right fix would to remove it entirely and make it the basic default. There are patches for that already.
Where?
Thanks,
Christopher
Signature · 3 lines
Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation.
Quoted 16 lines · Christopher Covington
Quoted 15 lines · Marc Zyngier
Quoted 14 lines · Christopher Covington
Quoted 12 lines · Marc Zyngier
On 03/07/13 09:18, Alexander Shiyan wrote:
Hi Alexander,
Quoted 5 lines
More and more platforms are now using devicetree.
Ideally the platform code contains only one function "of_platform_populate". My idea is to make a generic architecture (mach-dt) with the call then add support for compatible subarchitectures as they become available in "compatible"-property. Your opinion?Well, my (admittedly partial) opinion is that mach-virt is an incredibly nicer sounding name, 'specially as you can mistype it as mach-triv.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
As mentioned before, I disagree and would love to see the the virtualization-specific name replaced by something more suitably generic.
I think you're missing the point. The right fix would to remove it entirely and make it the basic default. There are patches for that already.
Where?
There were patches from Arnd (CC-ed) a while ago, moving some of the mach-virt SMP stuff to smp.c. Don't have the pointers handy, but surely Arnd knows where they are.
Once SMP is done, the rest should be pretty trivial.
M.
Signature · 1 line
Jazz is not dead. It just smells funny...
Quoted 23 lines · Marc Zyngier
Quoted 22 lines · Christopher Covington
Quoted 20 lines · Marc Zyngier
Quoted 11 lines · Christopher Covington
Quoted 10 lines · Marc Zyngier
On 03/07/13 09:18, Alexander Shiyan wrote:
Hi Alexander,
Quoted 5 lines
More and more platforms are now using devicetree.
Ideally the platform code contains only one function "of_platform_populate". My idea is to make a generic architecture (mach-dt) with the call then add support for compatible subarchitectures as they become available in "compatible"-property. Your opinion?Quoted 5 lines
Quoted 2 lines
Well, my (admittedly partial) opinion is that mach-virt is an incredibly nicer sounding name, 'specially as you can mistype it as mach-triv.
As mentioned before, I disagree and would love to see the the virtualization-specific name replaced by something more suitably generic.
I think you're missing the point. The right fix would to remove it entirely and make it the basic default. There are patches for that already.
Quoted 7 lines
Quoted 1 line
Where?
There were patches from Arnd (CC-ed) a while ago, moving some of the mach-virt SMP stuff to
smp.c. Don't have the pointers handy, but surely Arnd knows where they are.Once SMP is done, the rest should be pretty trivial.
In 3.11, mach-virt is basically empty. The SMP functions were moved out already and everything is optional, so you should not need to even build arch/arm/mach-virt/virt.c any more, except to get a particular platform name in /proc/cpuinfo.
We have a couple of real (as opposed to virtual) platforms that are almost at the same point and only have one or two functions left in them.
I'm definitely open for suggestions what to do about them. Putting all the trivial files into a shared directory would be one possibility, as would removing the files entirely by making the code more generic.
Note that arm64 platforms by definition have no such machine specific code, and they should be able to boot a 32 bit kernel as well without needing it.
Arnd