Skip to contentSkip to conversation

x86: Add sysfs entries for UV v2

PATCH In review Russ Anderson 2 participants 4 messages Sep 26, 2008 – Sep 29, 2008 x86

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 x86: Add sysfs entries for UV v2

[PATCH 4/4] Add sysfs entries for UV

Create /sys/firmware/sgi_uv sysfs entries for partition_id and coherence_id. The interface is documented in Documentation/ABI/testing/sysfs-firmware-sgi_uv.

---
 arch/x86/kernel/Makefile   |    2 -
 arch/x86/kernel/uv_sysfs.c |   72 +++++++++++++++++++++++++++++++++++++++++++++
 include/asm-x86/uv/bios.h  |    1 
 3 files changed, 74 insertions(+), 1 deletion(-)
arch/x86/kernel/Makefile +1 -1
Index: linux/arch/x86/kernel/Makefile
===================================================================
@@ -107,7 +107,7 @@ obj-$(CONFIG_OLPC)		+= olpc.o
 # 64 bit specific files
 ifeq ($(CONFIG_X86_64),y)
         obj-y				+= genapic_64.o genapic_flat_64.o genx2apic_uv_x.o tlb_uv.o
-	obj-y				+= bios_uv.o
+	obj-y				+= bios_uv.o uv_sysfs.o
         obj-y				+= genx2apic_cluster.o
         obj-y				+= genx2apic_phys.o
         obj-$(CONFIG_X86_PM_TIMER)	+= pmtimer_64.o
arch/x86/kernel/uv_sysfs.c new file +72 -0

72 lines not on this page · raw message

include/asm-x86/uv/bios.h +1 -0
Index: linux/include/asm-x86/uv/bios.h
===================================================================
@@ -89,5 +89,6 @@ extern long uv_coherency_id;
 extern long uv_region_size;
 #define partition_coherence_id()	(uv_coherency_id)
 
+extern struct kobject *sgi_uv_kobj;	/* /sys/firmware/sgi_uv */
 
 #endif /* ASM_X86__UV__BIOS_H */
Signature · 2 lines
Russ Anderson, OS RAS/Partitioning Project Lead  
SGI - Silicon Graphics Inc          [email protected]
#1 lore raw
Quoted 4 lines · Russ Anderson

[PATCH 4/4] Add sysfs entries for UV

Create /sys/firmware/sgi_uv sysfs entries for partition_id and coherence_id. The interface is documented in Documentation/ABI/testing/sysfs-firmware-sgi_uv.

It is? I don't see that file in the patch:

Quoted 4 lines
 arch/x86/kernel/Makefile   |    2 -
 arch/x86/kernel/uv_sysfs.c |   72 +++++++++++++++++++++++++++++++++++++++++++++
 include/asm-x86/uv/bios.h  |    1 
 3 files changed, 74 insertions(+), 1 deletion(-)

Did you forget something?

thanks,

greg k-h

#2 lore raw
Quoted 7 lines · Greg KH
Quoted 4 lines · Russ Anderson

[PATCH 4/4] Add sysfs entries for UV

Create /sys/firmware/sgi_uv sysfs entries for partition_id and coherence_id. The interface is documented in Documentation/ABI/testing/sysfs-firmware-sgi_uv.

It is? I don't see that file in the patch:

It is already in Linus' tree.

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8b3a8944a9c0f2a3afc1678798b44f0442924a37

Quoted 10 lines
Quoted 4 lines
 arch/x86/kernel/Makefile   |    2 -
 arch/x86/kernel/uv_sysfs.c |   72 +++++++++++++++++++++++++++++++++++++++++++++
 include/asm-x86/uv/bios.h  |    1 
 3 files changed, 74 insertions(+), 1 deletion(-)

Did you forget something?

thanks,

greg k-h

Thanks,

Signature · 2 lines
Russ Anderson, OS RAS/Partitioning Project Lead  
SGI - Silicon Graphics Inc          [email protected]
#3 lore raw
Quoted 4 lines · Russ Anderson
Quoted 3 lines · Greg KH
Quoted 2 lines · Russ Anderson

[PATCH 4/4] Add sysfs entries for UV

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Create /sys/firmware/sgi_uv sysfs entries for partition_id and coherence_id. The interface is documented in Documentation/ABI/testing/sysfs-firmware-sgi_uv.

It is? I don't see that file in the patch:

It is already in Linus' tree.

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8b3a8944a9c0f2a3afc1678798b44f0442924a37

Heh you got the documentation in before the code, that seems to be an interesting trend these days :)

thanks,

greg k-h