Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit 3b4287f

Browse files
Merge remote-tracking branch 'drm-misc/drm-misc-next' into drm-tip
# Conflicts: # drivers/gpu/drm/radeon/radeon_sync.c
2 parents 339d270 + 40f458b commit 3b4287f

File tree

121 files changed

+2076
-1557
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+2076
-1557
lines changed

Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ maintainers:
1313
properties:
1414
compatible:
1515
enum:
16+
- sinowealth,sh1106-i2c
1617
- solomon,ssd1305fb-i2c
1718
- solomon,ssd1306fb-i2c
1819
- solomon,ssd1307fb-i2c
@@ -131,6 +132,18 @@ required:
131132
- reg
132133

133134
allOf:
135+
- if:
136+
properties:
137+
compatible:
138+
contains:
139+
const: sinowealth,sh1106-i2c
140+
then:
141+
properties:
142+
solomon,dclk-div:
143+
default: 1
144+
solomon,dclk-frq:
145+
default: 5
146+
134147
- if:
135148
properties:
136149
compatible:

Documentation/devicetree/bindings/vendor-prefixes.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,8 @@ patternProperties:
11301130
description: Sinlinx Electronics Technology Co., LTD
11311131
"^sinovoip,.*":
11321132
description: SinoVoip Co., Ltd
1133+
"^sinowealth,.*":
1134+
description: SINO WEALTH Electronic Ltd.
11331135
"^sipeed,.*":
11341136
description: Shenzhen Sipeed Technology Co., Ltd.
11351137
"^sirf,.*":

drivers/dma-buf/dma-buf.c

+19-5
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ static bool dma_buf_poll_add_cb(struct dma_resv *resv, bool write,
216216
struct dma_fence *fence;
217217
int r;
218218

219-
dma_resv_for_each_fence(&cursor, resv, write, fence) {
219+
dma_resv_for_each_fence(&cursor, resv, dma_resv_usage_rw(write),
220+
fence) {
220221
dma_fence_get(fence);
221222
r = dma_fence_add_callback(fence, &dcb->cb, dma_buf_poll_cb);
222223
if (!r)
@@ -660,12 +661,24 @@ static struct sg_table * __map_dma_buf(struct dma_buf_attachment *attach,
660661
enum dma_data_direction direction)
661662
{
662663
struct sg_table *sg_table;
664+
signed long ret;
663665

664666
sg_table = attach->dmabuf->ops->map_dma_buf(attach, direction);
667+
if (IS_ERR_OR_NULL(sg_table))
668+
return sg_table;
669+
670+
if (!dma_buf_attachment_is_dynamic(attach)) {
671+
ret = dma_resv_wait_timeout(attach->dmabuf->resv,
672+
DMA_RESV_USAGE_KERNEL, true,
673+
MAX_SCHEDULE_TIMEOUT);
674+
if (ret < 0) {
675+
attach->dmabuf->ops->unmap_dma_buf(attach, sg_table,
676+
direction);
677+
return ERR_PTR(ret);
678+
}
679+
}
665680

666-
if (!IS_ERR_OR_NULL(sg_table))
667-
mangle_sg_table(sg_table);
668-
681+
mangle_sg_table(sg_table);
669682
return sg_table;
670683
}
671684

@@ -1124,7 +1137,8 @@ static int __dma_buf_begin_cpu_access(struct dma_buf *dmabuf,
11241137
long ret;
11251138

11261139
/* Wait on any implicit rendering fences */
1127-
ret = dma_resv_wait_timeout(resv, write, true, MAX_SCHEDULE_TIMEOUT);
1140+
ret = dma_resv_wait_timeout(resv, dma_resv_usage_rw(write),
1141+
true, MAX_SCHEDULE_TIMEOUT);
11281142
if (ret < 0)
11291143
return ret;
11301144

0 commit comments

Comments
 (0)