Skip to content

Commit 553ceb4

Browse files
committed
Merge branch 'for-6.7/cxl' into cxl/next
Pickup some misc. CXL updates for v6.7.
2 parents 9f39bd0 + fae6389 commit 553ceb4

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5183,6 +5183,7 @@ L: linux-cxl@vger.kernel.org
51835183
S: Maintained
51845184
F: drivers/cxl/
51855185
F: include/uapi/linux/cxl_mem.h
5186+
F: tools/testing/cxl/
51865187

51875188
COMPUTE EXPRESS LINK PMU (CPMU)
51885189
M: Jonathan Cameron <jonathan.cameron@huawei.com>

drivers/cxl/core/mbox.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,8 +1249,7 @@ int cxl_mem_create_range_info(struct cxl_memdev_state *mds)
12491249
return 0;
12501250
}
12511251

1252-
cxlds->dpa_res =
1253-
(struct resource)DEFINE_RES_MEM(0, mds->total_bytes);
1252+
cxlds->dpa_res = DEFINE_RES_MEM(0, mds->total_bytes);
12541253

12551254
if (mds->partition_align_bytes == 0) {
12561255
rc = add_dpa_res(dev, &cxlds->dpa_res, &cxlds->ram_res, 0,

drivers/cxl/core/port.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,11 @@ int devm_cxl_enumerate_ports(struct cxl_memdev *cxlmd)
15221522
struct cxl_dport *dport;
15231523
struct cxl_port *port;
15241524

1525-
if (!dport_dev)
1525+
/*
1526+
* The terminal "grandparent" in PCI is NULL and @platform_bus
1527+
* for platform devices
1528+
*/
1529+
if (!dport_dev || dport_dev == &platform_bus)
15261530
return 0;
15271531

15281532
uport_dev = dport_dev->parent;

drivers/cxl/core/region.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static int cxl_region_invalidate_memregion(struct cxl_region *cxlr)
123123
{
124124
if (!cpu_cache_has_invalidate_memregion()) {
125125
if (IS_ENABLED(CONFIG_CXL_REGION_INVALIDATION_TEST)) {
126-
dev_warn_once(
126+
dev_info_once(
127127
&cxlr->dev,
128128
"Bypassing cpu_cache_invalidate_memregion() for testing!\n");
129129
return 0;

drivers/cxl/pci.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ static int cxl_pci_mbox_wait_for_doorbell(struct cxl_dev_state *cxlds)
8585
status & CXLMDEV_DEV_FATAL ? " fatal" : "", \
8686
status & CXLMDEV_FW_HALT ? " firmware-halt" : "")
8787

88+
/*
89+
* Threaded irq dev_id's must be globally unique. cxl_dev_id provides a unique
90+
* wrapper object for each irq within the same cxlds.
91+
*/
8892
struct cxl_dev_id {
8993
struct cxl_dev_state *cxlds;
9094
};
@@ -95,7 +99,6 @@ static int cxl_request_irq(struct cxl_dev_state *cxlds, int irq,
9599
struct device *dev = cxlds->dev;
96100
struct cxl_dev_id *dev_id;
97101

98-
/* dev_id must be globally unique and must contain the cxlds */
99102
dev_id = devm_kzalloc(dev, sizeof(*dev_id), GFP_KERNEL);
100103
if (!dev_id)
101104
return -ENOMEM;

0 commit comments

Comments
 (0)