Skip to content

Conversation

@Avenger-285714
Copy link
Member

No description provided.

Signed-off-by: WangYuli <wangyuli@uniontech.com>
@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from avenger-285714. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@deepin-ci-robot
Copy link

deepin pr auto review

diff --git a/drivers/gpu/drm/arise/linux/gf_splice.c b/drivers/gpu/drm/arise/linux/gf_splice.c
index 8a8b8a8a8a8a8..8a8b8a8a8a8a8 100644
--- a/drivers/gpu/drm/arise/linux/gf_splice.c
+++ b/drivers/gpu/drm/arise/linux/gf_splice.c
@@ -4,6 +4,7 @@
#include <linux/splice.h>
#include <linux/dma-buf.h>
#include <linux/dma-mapping.h>
+#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/pci.h>
#include <linux/pci-p2pdma.h>
@@ -516,6 +517,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
pipe->bufs[pipe->buf_index].buf = buf;
pipe->bufs[pipe->buf_index].buf_index = buf_index;
pipe->bufs[pipe->buf_index].buf_size = buf_size;

  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_OUT;
    @@ -531,6 +533,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -547,6 +550,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -563,6 +567,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -579,6 +584,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -595,6 +601,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -611,6 +618,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -627,6 +635,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -643,6 +652,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -659,6 +669,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -675,6 +686,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -691,6 +703,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -707,6 +720,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -723,6 +737,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -739,6 +754,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -755,6 +771,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -771,6 +788,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -787,6 +805,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -803,6 +822,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -819,6 +839,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -835,6 +856,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -851,6 +873,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -867,6 +890,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->buf_index].buf_addr = buf_addr;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_VALID;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    pipe->bufs[pipe->buf_index].buf_flags |= GF_SPICE_BUF_FLAG_DIR_IN;
    @@ -883,6 +907,7 @@ static int gf_splice_to_pipe(struct gf_splice_pipe *pipe, struct gf_splice_buf *
    pipe->bufs[pipe->buf_index].buf_index = buf_index;
    pipe->bufs[pipe->buf_index].buf_size = buf_size;
    pipe->bufs[pipe->buf_index].buf_flags = buf_flags;
  • pipe->bufs[pipe->

@Avenger-285714 Avenger-285714 changed the title [Glenfly] drm/arise: Upgrade Glenfly Arise driver to 25.00.36 [WIP] [Glenfly] drm/arise: Upgrade Glenfly Arise driver to 25.00.36 Nov 25, 2024
@Avenger-285714 Avenger-285714 changed the title [WIP] [Glenfly] drm/arise: Upgrade Glenfly Arise driver to 25.00.36 [Glenfly] drm/arise: Upgrade Glenfly Arise driver to 25.00.36 Nov 28, 2024
@Avenger-285714 Avenger-285714 merged commit 57c7784 into deepin-community:linux-6.6.y Nov 28, 2024
3 of 5 checks passed
Avenger-285714 pushed a commit to KernelSIG-cn/Linux-LTS-CN-6.6-dev that referenced this pull request Dec 29, 2024
[Glenfly]:
This version driver is the initial version for linux kernel 6.6,
and added basic arch support for amd64/arm64/loongarch64.

Test pass on deepin V23.

Version: 25.00.36.

Link: deepin-community/kernel#333
Link: https://gitee.com/openkylin/linux/pulls/241
Link: deepin-community/kernel#390
Link: deepin-community/kernel#490
Link: deepin-community/kernel#496
Link: deepin-community/kernel#509
Co-developed-by: WangYuli <wangyuli@uniontech.com>
Signed-off-by: WangYuli <wangyuli@uniontech.com>
Signed-off-by: brightyi <brightyi@glenfly.com>
Signed-off-by: WangYuli <wangyuli@uniontech.com>
Avenger-285714 pushed a commit to KernelSIG-cn/Linux-LTS-CN-6.6-dev that referenced this pull request Jan 4, 2025
[Glenfly]:
This version driver is the initial version for linux kernel 6.6,
and added basic arch support for amd64/arm64/loongarch64.

Test pass on deepin V23.

Version: 25.00.36.

Link: deepin-community/kernel#333
Link: https://gitee.com/openkylin/linux/pulls/241
Link: deepin-community/kernel#390
Link: deepin-community/kernel#490
Link: deepin-community/kernel#496
Link: deepin-community/kernel#509
Co-developed-by: WangYuli <wangyuli@uniontech.com>
Signed-off-by: WangYuli <wangyuli@uniontech.com>
Signed-off-by: brightyi <brightyi@glenfly.com>
Signed-off-by: WangYuli <wangyuli@uniontech.com>
@Avenger-285714 Avenger-285714 deleted the upgrade-glenfly branch February 28, 2025 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants