Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
de5512b2
Commit
de5512b2
authored
Oct 31, 2023
by
Dan Williams
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-6.7/cxl' into cxl/next
Pickup some misc. CXL updates for v6.7.
parents
624eda92
fae6389f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
5 deletions
+12
-5
MAINTAINERS
MAINTAINERS
+1
-0
drivers/cxl/core/mbox.c
drivers/cxl/core/mbox.c
+1
-2
drivers/cxl/core/port.c
drivers/cxl/core/port.c
+5
-1
drivers/cxl/core/region.c
drivers/cxl/core/region.c
+1
-1
drivers/cxl/pci.c
drivers/cxl/pci.c
+4
-1
No files found.
MAINTAINERS
View file @
de5512b2
...
...
@@ -5183,6 +5183,7 @@ L: linux-cxl@vger.kernel.org
S: Maintained
F: drivers/cxl/
F: include/uapi/linux/cxl_mem.h
F: tools/testing/cxl/
COMPUTE EXPRESS LINK PMU (CPMU)
M: Jonathan Cameron <jonathan.cameron@huawei.com>
...
...
drivers/cxl/core/mbox.c
View file @
de5512b2
...
...
@@ -1249,8 +1249,7 @@ int cxl_mem_create_range_info(struct cxl_memdev_state *mds)
return
0
;
}
cxlds
->
dpa_res
=
(
struct
resource
)
DEFINE_RES_MEM
(
0
,
mds
->
total_bytes
);
cxlds
->
dpa_res
=
DEFINE_RES_MEM
(
0
,
mds
->
total_bytes
);
if
(
mds
->
partition_align_bytes
==
0
)
{
rc
=
add_dpa_res
(
dev
,
&
cxlds
->
dpa_res
,
&
cxlds
->
ram_res
,
0
,
...
...
drivers/cxl/core/port.c
View file @
de5512b2
...
...
@@ -1522,7 +1522,11 @@ int devm_cxl_enumerate_ports(struct cxl_memdev *cxlmd)
struct
cxl_dport
*
dport
;
struct
cxl_port
*
port
;
if
(
!
dport_dev
)
/*
* The terminal "grandparent" in PCI is NULL and @platform_bus
* for platform devices
*/
if
(
!
dport_dev
||
dport_dev
==
&
platform_bus
)
return
0
;
uport_dev
=
dport_dev
->
parent
;
...
...
drivers/cxl/core/region.c
View file @
de5512b2
...
...
@@ -123,7 +123,7 @@ static int cxl_region_invalidate_memregion(struct cxl_region *cxlr)
{
if
(
!
cpu_cache_has_invalidate_memregion
())
{
if
(
IS_ENABLED
(
CONFIG_CXL_REGION_INVALIDATION_TEST
))
{
dev_
warn
_once
(
dev_
info
_once
(
&
cxlr
->
dev
,
"Bypassing cpu_cache_invalidate_memregion() for testing!
\n
"
);
return
0
;
...
...
drivers/cxl/pci.c
View file @
de5512b2
...
...
@@ -85,6 +85,10 @@ static int cxl_pci_mbox_wait_for_doorbell(struct cxl_dev_state *cxlds)
status & CXLMDEV_DEV_FATAL ? " fatal" : "", \
status & CXLMDEV_FW_HALT ? " firmware-halt" : "")
/*
* Threaded irq dev_id's must be globally unique. cxl_dev_id provides a unique
* wrapper object for each irq within the same cxlds.
*/
struct
cxl_dev_id
{
struct
cxl_dev_state
*
cxlds
;
};
...
...
@@ -95,7 +99,6 @@ static int cxl_request_irq(struct cxl_dev_state *cxlds, int irq,
struct
device
*
dev
=
cxlds
->
dev
;
struct
cxl_dev_id
*
dev_id
;
/* dev_id must be globally unique and must contain the cxlds */
dev_id
=
devm_kzalloc
(
dev
,
sizeof
(
*
dev_id
),
GFP_KERNEL
);
if
(
!
dev_id
)
return
-
ENOMEM
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment