Skip to content

Commit

Permalink
Merge tag 'cxl-fixes-6.5-rc4' of git://git.kernel.org/pub/scm/linux/k…
Browse files Browse the repository at this point in the history
…ernel/git/cxl/cxl

Pull cxl fixes from Vishal Verma:

 - Update MAINTAINERS for cxl

 - A few static analysis fixes

 - Fix a Kconfig dependency for CONFIG_FW_LOADER

* tag 'cxl-fixes-6.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl:
  tools/testing/cxl: Remove unused SZ_512G macro
  cxl/acpi: Return 'rc' instead of '0' in cxl_parse_cfmws()
  cxl/acpi: Fix a use-after-free in cxl_parse_cfmws()
  cxl: Update MAINTAINERS
  cxl/mem: Fix a double shift bug
  cxl: fix CONFIG_FW_LOADER dependency
  • Loading branch information
torvalds committed Jul 28, 2023
2 parents c442a95 + 70d49bb commit f24767c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
4 changes: 3 additions & 1 deletion MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -5149,10 +5149,12 @@ S: Maintained
F: include/linux/compiler_attributes.h

COMPUTE EXPRESS LINK (CXL)
M: Davidlohr Bueso <[email protected]>
M: Jonathan Cameron <[email protected]>
M: Dave Jiang <[email protected]>
M: Alison Schofield <[email protected]>
M: Vishal Verma <[email protected]>
M: Ira Weiny <[email protected]>
M: Ben Widawsky <[email protected]>
M: Dan Williams <[email protected]>
L: [email protected]
S: Maintained
Expand Down
3 changes: 2 additions & 1 deletion drivers/cxl/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
menuconfig CXL_BUS
tristate "CXL (Compute Express Link) Devices Support"
depends on PCI
select FW_LOADER
select FW_UPLOAD
select PCI_DOE
help
CXL is a bus that is electrically compatible with PCI Express, but
Expand Down Expand Up @@ -82,7 +84,6 @@ config CXL_PMEM
config CXL_MEM
tristate "CXL: Memory Expansion"
depends on CXL_PCI
select FW_UPLOAD
default CXL_BUS
help
The CXL.mem protocol allows a device to act as a provider of "System
Expand Down
5 changes: 2 additions & 3 deletions drivers/cxl/acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,8 @@ static int cxl_parse_cfmws(union acpi_subtable_headers *header, void *arg,
else
rc = cxl_decoder_autoremove(dev, cxld);
if (rc) {
dev_err(dev, "Failed to add decode range [%#llx - %#llx]\n",
cxld->hpa_range.start, cxld->hpa_range.end);
return 0;
dev_err(dev, "Failed to add decode range: %pr", res);
return rc;
}
dev_dbg(dev, "add: %s node: %d range [%#llx - %#llx]\n",
dev_name(&cxld->dev),
Expand Down
2 changes: 1 addition & 1 deletion drivers/cxl/cxlmem.h
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ struct cxl_mbox_activate_fw {

/* FW state bits */
#define CXL_FW_STATE_BITS 32
#define CXL_FW_CANCEL BIT(0)
#define CXL_FW_CANCEL 0

/**
* struct cxl_fw_state - Firmware upload / activation state
Expand Down
4 changes: 0 additions & 4 deletions tools/testing/cxl/test/cxl.c
Original file line number Diff line number Diff line change
Expand Up @@ -999,10 +999,6 @@ static void mock_companion(struct acpi_device *adev, struct device *dev)
#define SZ_64G (SZ_32G * 2)
#endif

#ifndef SZ_512G
#define SZ_512G (SZ_64G * 8)
#endif

static __init int cxl_rch_init(void)
{
int rc, i;
Expand Down

0 comments on commit f24767c

Please sign in to comment.