diff options
| author | Dave Jiang <dave.jiang@intel.com> | 2025-10-21 17:52:11 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-23 17:24:40 +0300 |
| commit | 84c3b52cf63d4ce43b6cfbbbb407719517c9b3a5 (patch) | |
| tree | 6aa0a9917cae03f6e67c974e2d110af739f8ef15 /scripts/gdb/linux/utils.py | |
| parent | c42f651a763f948b16810b864bbe1948670da5e6 (diff) | |
| download | linux-84c3b52cf63d4ce43b6cfbbbb407719517c9b3a5.tar.xz | |
cxl: Fix match_region_by_range() to use region_res_match_cxl_range()
[ Upstream commit f4d027921c811ff7fc16e4d03c6bbbf4347cf37a ]
match_region_by_range() is not using the helper function that also takes
extended linear cache size into account when comparing regions. This
causes a x2 region to show up as 2 partial incomplete regions rather
than a single CXL region with extended linear cache support. Replace
the open coded compare logic with the proper helper function for
comparison. User visible impact is that when 'cxl list' is issued,
no activa CXL region(s) are shown. There may be multiple idle regions
present. No actual active CXL region is present in the kernel.
[dj: Fix stable address]
Fixes: 0ec9849b6333 ("acpi/hmat / cxl: Add extended linear cache support for CXL")
Cc: stable@vger.kernel.org
Reviewed-by: Gregory Price <gourry@gourry.net>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
[ constify struct range ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions
