Skip to contentSkip to conversation

Conform L3 Cache Index Disable to Linux standards

PATCH In review Mark Langsdorf 2 participants 2 messages Mar 11, 2009 – Mar 12, 2009 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Conform L3 Cache Index Disable to Linux standards

Add ABI Documentation entry and fix some /sys directory formating issues with the L3 Cache Index Disable feature for future AMD processors. Add a check to disable it for family 0x10 models that do not support it yet.

Documentation/ABI/testing/sysfs-devices-cache_disable new file +18 -0
new file mode 100644
index 0000000..c7d9174
@@ -0,0 +1,18 @@
+What:	    /sys/devices/system/cpu/cpu*/cache/index*/cache_disable_X
+Date:	    August 2008
+KernelVersion:  2.6.27
+Contact:	 [email protected]
+Description:    These files exist in every cpu's cache index directories.
+		 There are currently 2 cache_disable_# files in each
+		 directory.  Reading from these files on a supported
+		 processor will return that cache disable index value
+		 for that processor and node.  Writing to one of these
+		 files will cause the specificed cache index to be disabled.
+
+		 Currently, only AMD Family 10h Processors support cache index
+		 disable, and only for their L3 caches.  See the BIOS and
+		 Kernel Developer's Guide at
+		 http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/31116-Public-GH-BKDG_3.20_2-4-09.pdf
+		 for formatting information and other details on the
+		 cache index disable.
+Users:	   [email protected]
arch/x86/kernel/Makefile +1 -1
index 72c65bc..2547807 100644
@@ -81,7 +81,7 @@ obj-$(CONFIG_EARLY_PRINTK)	+= early_printk.o
 
 obj-$(CONFIG_HPET_TIMER) 	+= hpet.o
 
-obj-$(CONFIG_K8_NB)		+= k8.o
+obj-y				+= k8.o
 obj-$(CONFIG_MGEODE_LX)		+= geode_32.o mfgpt_32.o
 obj-$(CONFIG_DEBUG_RODATA_TEST)	+= test_rodata.o
 obj-$(CONFIG_DEBUG_NX_TEST)	+= test_nx.o
arch/x86/kernel/cpu/intel_cacheinfo.c +74 -102

218 lines not on this page · raw message

-------------------------------------------------------

#1 lore raw
Quoted 6 lines · Mark Langsdorf

Add ABI Documentation entry and fix some /sys directory formating issues with the L3 Cache Index Disable feature for future AMD processors. Add a check to disable it for family 0x10 models that do not support it yet.

Hi there,

This patch fails to build with "make allnoconfig":

/home/hpa/kernel/linux-2.6-tip.cache/arch/x86/kernel/k8.c: In function ‘next_k8_northbridge’:
/home/hpa/kernel/linux-2.6-tip.cache/arch/x86/kernel/k8.c:34: error:
implicit declaration of function ‘pci_match_id’

-hpa

Signature · 2 lines
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.