Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP5:Update
powerpc-utils
lsslot-fix-reporting-of-L3-caches-with-b-option...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lsslot-fix-reporting-of-L3-caches-with-b-option.patch of Package powerpc-utils
From 2f0bdb051fe70fbd6cb608ea1b63a75223dc44a4 Mon Sep 17 00:00:00 2001 From: Tyrel Datwyler <tyreld@linux.ibm.com> Date: Tue, 6 Feb 2024 16:58:12 -0800 Subject: [PATCH 3/3] lsslot: fix reporting of L3 caches with -b option Currently if a L2 cache has an associated dependent L3 cache the lsslot command for cpu connector types will fail to report the L3 cache when using the -b option. This is due to a typo such that the check is made between the the L2 caches l2-cache property value and its own ibm,phandle property. The check should be against the L3 caches ibm,phandle property as the l2-cache property contains the phandle of the dependent cache. Without patch: ./src/drmgr/lsslot -c cpu -b drc-name OFDT-node drc_index thread id(s) l2-cache l3-cache CPU 1 PowerPC,POWER8@0 10000000 0 1 2 3 4 5 6 7 l2-cache@200a N/A With patch: ./src/drmgr/lsslot -c cpu -b drc-name OFDT-node drc_index thread id(s) l2-cache l3-cache CPU 1 PowerPC,POWER8@0 10000000 0 1 2 3 4 5 6 7 l2-cache@200a l3-cache@310a Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com> --- src/drmgr/common_cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drmgr/common_cpu.c b/src/drmgr/common_cpu.c index 03a51ec..5bfd708 100644 --- a/src/drmgr/common_cpu.c +++ b/src/drmgr/common_cpu.c @@ -414,7 +414,7 @@ cache_get_dependent_cache(struct cache_info *cache, struct dr_info *dr_info) if (cache->removed) continue; - if (cache->phandle == cache->l2cache) { + if (c->phandle == cache->l2cache) { say(EXTRA_DEBUG, "found cache %s for cache %s\n", c->name, cache->name); return c; -- 2.43.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor