drm: Add function to convert rect in 16.16 fixed format to regular format
PATCH v7 1/5 drm: Add function to convert rect in 16.16 fixed format to regular format
Much more clear to read one function call than four lines doing this conversion.
v7:
- function renamed
- calculating width and height before truncate
- inlined
--- include/drm/drm_rect.h | 13 +++++++++++++ 1 file changed, 13 insertions(+)
include/drm/drm_rect.h +13 -0
@@ -206,6 +206,19 @@ static inline bool drm_rect_equals(const struct drm_rect *r1, r1->y1 == r2->y1 && r1->y2 == r2->y2; } +/** +* drm_rect_fp_to_int - Convert a rect in 16.16 fixed point form to int form. +* @destination: rect to be stored the converted value +* @source: rect in 16.16 fixed point form +*/ +static inline void drm_rect_fp_to_int (struct drm_rect *destination, +const struct drm_rect *source) +{ +drm_rect_init (destination, source->x1 >>16 , source->y1 >>16 , +drm_rect_width (source) >>16 , +drm_rect_height (source) >>16 ); +} +bool drm_rect_intersect (struct drm_rect *r,const struct drm_rect *clip);bool drm_rect_clip_scaled (struct drm_rect *src,struct drm_rect *dst,const struct drm_rect *clip);
Signature · 6 lines
2.29.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 2/5 drm/i915/display/psr: Use plane damage clips to calculate damaged area
Now using plane damage clips property to calcualte the damaged area. Selective fetch only supports one region to be fetched so software needs to calculate a bounding box around all damage clips.
Now that we are not complete fetching each plane, there is another loop needed as all the plane areas that intersect with the pipe damaged area needs to be fetched from memory so the complete blending of all planes can happen.
v2:
- do not shifthing new_plane_state->uapi.dst only src is in 16.16 format
v4:
- setting plane selective fetch area using the whole pipe damage area
- mark the whole plane area damaged if plane visibility or alpha changed
v5:
- taking in consideration src.y1 in the damage coordinates
- adding to the pipe damaged area planes that were visible but are invisible in the new state
v6:
- consider old state plane coordinates when visibility changes or it moved to calculate damaged area
- remove from damaged area the portion not in src clip
v7:
- intersec every damage clip with src to minimize damaged area
v8:
- adjust pipe_damaged area to 4 lines grouping
- adjust calculation now that is understood that uapi.src is the framebuffer coordinates that plane will start to fetch from
--- drivers/gpu/drm/i915/display/intel_psr.c | 105 ++++++++++++++++++++--- 1 file changed, 91 insertions(+), 14 deletions(-)
drivers/gpu/drm/i915/display/intel_psr.c +91 -14
@@ -1242,9 +1242,11 @@ static void psr2_man_trk_ctl_calc(struct intel_crtc_state *crtc_state,if (clip->y1 ==-1 ) goto exit; +drm_WARN_ON (crtc_state->uapi.crtc->dev, clip->y1 %4 || clip->y2 %4 ); + val |=PSR2_MAN_TRK_CTL_SF_PARTIAL_FRAME_UPDATE ; val |=PSR2_MAN_TRK_CTL_SU_REGION_START_ADDR (clip->y1 /4 +1 ); - val |=PSR2_MAN_TRK_CTL_SU_REGION_END_ADDR (DIV_ROUND_UP (clip->y2,4 ) +1 ); + val |=PSR2_MAN_TRK_CTL_SU_REGION_END_ADDR (clip->y2 /4 +1 ); exit: crtc_state->psr2_man_track_ctl = val; }
@@ -1269,8 +1271,8 @@ int intel_psr2_sel_fetch_update(struct intel_atomic_state *state, struct intel_crtc *crtc) {struct intel_crtc_state *crtc_state =intel_atomic_get_new_crtc_state (state, crtc); +struct drm_rect pipe_clip = { .x1 =0 , .y1 =-1 , .x2 =INT_MAX , .y2 =-1 };struct intel_plane_state *new_plane_state, *old_plane_state; -struct drm_rect pipe_clip = { .y1 =-1 };struct intel_plane *plane;bool full_update = false;int i, ret;
@@ -1282,9 +1284,17 @@ int intel_psr2_sel_fetch_update(struct intel_atomic_state *state,if (ret)return ret; +/* +* Calculate minimal selective fetch area of each plane and calculate +* the pipe damaged area. +* In the next loop the plane selective fetch area will actually be set +* using whole pipe damaged area. +*/ for_each_oldnew_intel_plane_in_state (state, plane, old_plane_state, new_plane_state, i) { -struct drm_rect *sel_fetch_area, temp; +struct drm_rect src, damaged_area = { .y1 =-1 }; +struct drm_mode_rect *damaged_clips; +u32 num_clips, j;if (new_plane_state->uapi.crtc != crtc_state->uapi.crtc)continue ;
@@ -1300,23 +1310,90 @@ int intel_psr2_sel_fetch_update(struct intel_atomic_state *state,break ; } -if (!new_plane_state->uapi.visible) -continue ; + num_clips =drm_plane_get_damage_clips_count (&new_plane_state->uapi);/* -* For now doing a selective fetch in the whole plane area, -* optimizations will come in the future. +* If visibility or plane moved, mark the whole plane area as +* damaged as it needs to be complete redraw in the new and old +* position. */ - sel_fetch_area = &new_plane_state->psr2_sel_fetch_area; - sel_fetch_area->y1 = new_plane_state->uapi.src.y1 >>16 ; - sel_fetch_area->y2 = new_plane_state->uapi.src.y2 >>16 ; +if (new_plane_state->uapi.visible != old_plane_state->uapi.visible || + !drm_rect_equals (&new_plane_state->uapi.dst, + &old_plane_state->uapi.dst)) { + damaged_area.y1 = old_plane_state->uapi.dst.y1; + damaged_area.y2 = old_plane_state->uapi.dst.y2; +clip_area_update (&pipe_clip, &damaged_area); + + damaged_area.y1 = new_plane_state->uapi.dst.y1; + damaged_area.y2 = new_plane_state->uapi.dst.y2; +clip_area_update (&pipe_clip, &damaged_area); +continue ; + }else if (new_plane_state->uapi.alpha != old_plane_state->uapi.alpha || + (!num_clips && + new_plane_state->uapi.fb != old_plane_state->uapi.fb)) { +/* +* If the plane don't have damaged areas but the +* framebuffer changed or alpha changed, mark the whole +* plane area as damaged. +*/ + damaged_area.y1 = new_plane_state->uapi.dst.y1; + damaged_area.y2 = new_plane_state->uapi.dst.y2; +clip_area_update (&pipe_clip, &damaged_area); +continue ; + } + +drm_rect_fp_to_int (&src, &new_plane_state->uapi.src); + damaged_clips =drm_plane_get_damage_clips (&new_plane_state->uapi); + +for (j =0 ; j < num_clips; j++) { +struct drm_rect clip; + + clip.x1 = damaged_clips[j].x1; + clip.y1 = damaged_clips[j].y1; + clip.x2 = damaged_clips[j].x2; + clip.y2 = damaged_clips[j].y2; +if (drm_rect_intersect (&clip, &src)) +clip_area_update (&damaged_area, &clip); + } + +if (damaged_area.y1 ==-1 ) +continue ; + + damaged_area.y1 += new_plane_state->uapi.dst.y1 - src.y1; + damaged_area.y2 += new_plane_state->uapi.dst.y1 - src.y1; +clip_area_update (&pipe_clip, &damaged_area); + } + +if (full_update) + goto skip_sel_fetch_set_loop; - temp = *sel_fetch_area; - temp.y1 += new_plane_state->uapi.dst.y1; - temp.y2 += new_plane_state->uapi.dst.y2; -clip_area_update (&pipe_clip, &temp); +/* It must be aligned to 4 lines */ + pipe_clip.y1 -= pipe_clip.y1 %4 ; +if (pipe_clip.y2 %4 ) + pipe_clip.y2 = ((pipe_clip.y2 /4 ) +1 ) *4 ; + +/* +* Now that we have the pipe damaged area check if it intersect with +* every plane, if it does set the plane selective fetch area. +*/ +for_each_oldnew_intel_plane_in_state (state, plane, old_plane_state, + new_plane_state, i) { +struct drm_rect *sel_fetch_area, inter; + +if (new_plane_state->uapi.crtc != crtc_state->uapi.crtc || + !new_plane_state->uapi.visible) +continue ; + + inter = pipe_clip; +if (!drm_rect_intersect (&inter, &new_plane_state->uapi.dst)) +continue ; + + sel_fetch_area = &new_plane_state->psr2_sel_fetch_area; + sel_fetch_area->y1 = inter.y1 - new_plane_state->uapi.dst.y1; + sel_fetch_area->y2 = inter.y2 - new_plane_state->uapi.dst.y1; } +skip_sel_fetch_set_loop:psr2_man_trk_ctl_calc (crtc_state, &pipe_clip, full_update);return 0 ; }
Signature · 6 lines
2.29.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH v7 2/5] drm/i915/display/psr: Use plane damage clips to calculate damaged area
Quoted 11 lines · José Roberto de Souza
Now using plane damage clips property to calcualte the damaged area. Selective fetch only supports one region to be fetched so software needs to calculate a bounding box around all damage clips.
Now that we are not complete fetching each plane, there is another loop needed as all the plane areas that intersect with the pipe damaged area needs to be fetched from memory so the complete blending of all planes can happen.
v2:
- do not shifthingnew_plane_state->uapi.dstonly src is in 16.16
Hi,
typo here, shifthing -> shifting
Quoted 39 lines
format
v4:
- setting plane selective fetch area using the whole pipe damage area
- mark the whole plane area damaged if plane visibility or alpha changedv5:
- taking in consideration src.y1 in the damage coordinates
- adding to the pipe damaged area planes that were visible but are invisible in the new statev6:
- consider old state plane coordinates when visibility changes or it moved to calculate damaged area
- remove from damaged area the portion not in src clipv7:
- intersec every damage clip with src to minimize damaged areav8:
- adjustpipe_damagedarea to 4 lines grouping
- adjust calculation now that is understood that uapi.src is the framebuffer coordinates that plane will start to fetch fromCc Ville Syrjälä <[email protected]>Cc Gwan-gyeong Mun <[email protected]>Signed-off-by José Roberto de Souza <[email protected]>--- drivers/gpu/drm/i915/display/intel_psr.c | 105 ++++++++++++++++++++- -- 1 file changed, 91 insertions(+), 14 deletions(-)drivers/gpu/drm/i915/display/intel_psr.c +0
-0
drivers/gpu/drm/i915/display/intel_psr.c static void psr2_man_trk_ctl_calc(struct · line 1247
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_psr.c +1
-0@@ -1242,9 +1242,11 @@ static void psr2_man_trk_ctl_calc(struct intel_crtc_state *crtc_state, if (clip->y1 == -1) goto exit; +drm_WARN_ON (crtc_state->uapi.crtc->dev, clip->y1 %4 || clip- >y2 % 4);
why do you check this line?
drivers/gpu/drm/i915/display/intel_psr.c static void psr2_man_trk_ctl_calc(struct intel_crtc_state *crtc_state, · line 1249
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_psr.c +2
-1+ val |=PSR2_MAN_TRK_CTL_SF_PARTIAL_FRAME_UPDATE ; val |=PSR2_MAN_TRK_CTL_SU_REGION_START_ADDR (clip->y1 /4 +1 ); - val |=PSR2_MAN_TRK_CTL_SU_REGION_END_ADDR (DIV_ROUND_UP (clip- >y2, 4) + 1); + val |=PSR2_MAN_TRK_CTL_SU_REGION_END_ADDR (clip->y2 /4 +1 );
PSR2_MAN_TRK_CTL's the programming note of bspec describes as,
The frame is divided into blocks of four scan lines each. The blocks are addressed starting from 1 for the first block of the frame and ending with ROUNDUP[(TRANS_VTOTAL Vertical Active + 1) / 4]for the last block of the frame.
Software must provide the starting and ending block address of the selective update region.
The SU Region Start Address is programmed to the first block of the selective update region.
The SU Region End Address is programmed to the final block of the selective update region + 1.
There can be only one selective update region in a frame.
To disable selective update, set the selective update region to the full frame by programming SU Region Start Address to the startof the frame and SU Region End Address to the end of the frame.
if the why not you did not set like this?
val |= PSR2_MAN_TRK_CTL_SU_REGION_END_ADDR(clip->y2 / 4 + 2);
drivers/gpu/drm/i915/display/intel_psr.c int intel_psr2_sel_fetch_update(struct · line 1276
Quoted 10 lines
exit:
drivers/gpu/drm/i915/display/intel_psr.c +1
-0crtc_state->psr2_man_track_ctl = val; }@@ -1269,8 +1271,8 @@ int intel_psr2_sel_fetch_update(structintel_atomic_state *state, struct intel_crtc *crtc) { struct intel_crtc_state *crtc_state =intel_atomic_get_new_crtc_state (state, crtc); + struct drm_rect pipe_clip = { .x1 = 0, .y1 = -1, .x2 = INT_MAX,
why don't you use crtc_state->uapi.adjusted_mode.crtc_hdisplay for setting x2?
Quoted 57 lines
drivers/gpu/drm/i915/display/intel_psr.c +0
-1.y2 = -1 };struct intel_plane_state *new_plane_state, *old_plane_state; -struct drm_rect pipe_clip = { .y1 =-1 };drivers/gpu/drm/i915/display/intel_psr.c +2
-0struct intel_plane *plane;bool full_update = false;int i, ret;@@ -1282,9 +1284,17 @@ int intel_psr2_sel_fetch_update(struct intel_atomic_state *state, if (ret) return ret; +/* +* Calculate minimal selective fetch area of each plane and calculate
drivers/gpu/drm/i915/display/intel_psr.c +2
-0+* the pipe damaged area. +* In the next loop the plane selective fetch area will actually be set
drivers/gpu/drm/i915/display/intel_psr.c +2
-0+* using whole pipe damaged area. +*/ for_each_oldnew_intel_plane_in_state(state, plane,
old_plane_state,drivers/gpu/drm/i915/display/intel_psr.c +3
-1new_plane_state, i) { - struct drm_rect *sel_fetch_area, temp; + struct drm_rect src, damaged_area = { .y1 = -1 }; + struct drm_mode_rect *damaged_clips; + u32 num_clips, j; if (new_plane_state->uapi.crtc != crtc_state-Quoted 1 line
uapi.crtc)
drivers/gpu/drm/i915/display/intel_psr.c +2
-4continue ;@@ -1300,23 +1310,90 @@ int intel_psr2_sel_fetch_update(structintel_atomic_state *state, break; } -if (!new_plane_state->uapi.visible) -continue ; + num_clips =drm_plane_get_damage_clips_count (&new_plane_state->uapi);/* -* For now doing a selective fetch in the whole plane area, -* optimizations will come in the future. +* If visibility or plane moved, mark the whole plane area as
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+* damaged as it needs to be complete redraw in the new and old
drivers/gpu/drm/i915/display/intel_psr.c +1
-2+* position. */ - sel_fetch_area = &new_plane_state->psr2_sel_fetch_area; - sel_fetch_area->y1 = new_plane_state->uapi.src.y1 >>16;
drivers/gpu/drm/i915/display/intel_psr.c +0
-1- sel_fetch_area->y2 = new_plane_state->uapi.src.y2 >>16;
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+ if (new_plane_state->uapi.visible != old_plane_state-Quoted 1 line
uapi.visible ||
drivers/gpu/drm/i915/display/intel_psr.c int intel_psr2_sel_fetch_update(struct intel_atomic_state *state, · line 1330
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_psr.c +10
-0+ !drm_rect_equals(&new_plane_state->uapi.dst, + &old_plane_state->uapi.dst)) { + damaged_area.y1 = old_plane_state->uapi.dst.y1; + damaged_area.y2 = old_plane_state->uapi.dst.y2; +clip_area_update (&pipe_clip, &damaged_area); + + damaged_area.y1 = new_plane_state->uapi.dst.y1; + damaged_area.y2 = new_plane_state->uapi.dst.y2; +clip_area_update (&pipe_clip, &damaged_area); +continue ;
if (new_plane_state->uapi.visible != old_plane_state->uapi.visible) {
if (new_plane_state->uapi.visible) {
damaged_area.y1 = new_plane_state->uapi.dst.y1;
damaged_area.y2 = new_plane_state->uapi.dst.y2;
} else {
damaged_area.y1 = old_plane_state->uapi.dst.y1;
damaged_area.y2 = old_plane_state->uapi.dst.y2;
}
clip_area_update(&pipe_clip, &damaged_area);
continue;
} else if (!drm_rect_equals(&new_plane_state->uapi.dst,
&old_plane_state->uapi.dst) {
damaged_area.y1 = old_plane_state->uapi.dst.y1;
damaged_area.y2 = old_plane_state->uapi.dst.y2;
clip_area_update(&pipe_clip, &damaged_area);
damaged_area.y1 = new_plane_state->uapi.dst.y1;
damaged_area.y2 = new_plane_state->uapi.dst.y2;
clip_area_update(&pipe_clip, &damaged_area);
continue;
}Quoted 10 lines
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+ } else if (new_plane_state->uapi.alpha !=
old_plane_state->uapi.alpha||drivers/gpu/drm/i915/display/intel_psr.c +2
-0+ (!num_clips && + new_plane_state->uapi.fb !=
old_plane_state->uapi.fb)) {drivers/gpu/drm/i915/display/intel_psr.c +2
-0+/* +* If the plane don't have damaged areas but the
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+* framebuffer changed or alpha changed, mark the whole
drivers/gpu/drm/i915/display/intel_psr.c int intel_psr2_sel_fetch_update(struct intel_atomic_state *state, · line 1344
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_psr.c +8
-0+* plane area as damaged. +*/ + damaged_area.y1 = new_plane_state->uapi.dst.y1; + damaged_area.y2 = new_plane_state->uapi.dst.y2; +clip_area_update (&pipe_clip, &damaged_area); +continue ; + } +
if the num_clips is over 0, we need to do the below section,
Quoted 4 lines
drivers/gpu/drm/i915/display/intel_psr.c +2
-0+drm_rect_fp_to_int (&src, &new_plane_state->uapi.src); + damaged_clips =
drm_plane_get_damage_clips(&new_plane_state->uapi); +
need to initialize damaged_area rect here too.
Quoted 23 lines
drivers/gpu/drm/i915/display/intel_psr.c +15
-0+for (j =0 ; j < num_clips; j++) { +struct drm_rect clip; + + clip.x1 = damaged_clips[j].x1; + clip.y1 = damaged_clips[j].y1; + clip.x2 = damaged_clips[j].x2; + clip.y2 = damaged_clips[j].y2; +if (drm_rect_intersect (&clip, &src)) +clip_area_update (&damaged_area, &clip); + } + +if (damaged_area.y1 ==-1 ) +continue ; + + damaged_area.y1 += new_plane_state->uapi.dst.y1 -src.y1;
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+ damaged_area.y2 += new_plane_state->uapi.dst.y1 -src.y1;
drivers/gpu/drm/i915/display/intel_psr.c +5
-0+clip_area_update (&pipe_clip, &damaged_area); + } + +if (full_update) + goto skip_sel_fetch_set_loop;
drivers/gpu/drm/i915/display/intel_psr.c int intel_psr2_sel_fetch_update(struct intel_atomic_state *state, · line 1374
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_psr.c +5
-4- temp = *sel_fetch_area; - temp.y1 += new_plane_state->uapi.dst.y1; - temp.y2 += new_plane_state->uapi.dst.y2; -clip_area_update (&pipe_clip, &temp); +/* It must be aligned to 4 lines */ + pipe_clip.y1 -= pipe_clip.y1 %4 ; +if (pipe_clip.y2 %4 ) + pipe_clip.y2 = ((pipe_clip.y2 /4 ) +1 ) *4 ; +
which spec describes that we have to align by 4 for SelectiveUpdate?
Quoted 24 lines
drivers/gpu/drm/i915/display/intel_psr.c +2
-0+/* +* Now that we have the pipe damaged area check if it intersect with
drivers/gpu/drm/i915/display/intel_psr.c +3
-0+* every plane, if it does set the plane selective fetch area. +*/ + for_each_oldnew_intel_plane_in_state(state, plane,
old_plane_state,drivers/gpu/drm/i915/display/intel_psr.c +4
-0+ new_plane_state, i) { +struct drm_rect *sel_fetch_area, inter; + + if (new_plane_state->uapi.crtc != crtc_state->uapi.crtc||
drivers/gpu/drm/i915/display/intel_psr.c +5
-0+ !new_plane_state->uapi.visible) +continue ; + + inter = pipe_clip; + if (!drm_rect_intersect(&inter, &new_plane_state-Quoted 1 line
uapi.dst))
drivers/gpu/drm/i915/display/intel_psr.c +4
-0+continue ; + + sel_fetch_area = &new_plane_state->psr2_sel_fetch_area; + sel_fetch_area->y1 = inter.y1 - new_plane_state-Quoted 1 line
uapi.dst.y1;
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+ sel_fetch_area->y2 = inter.y2 - new_plane_state-
Quoted 1 line
Quoted 1 line
uapi.dst.y1;
struct drm_rect src;drm_rect_fp_to_int(&src, &new_plane_state->uapi.src); sel_fetch_area = &new_plane_state->psr2_sel_fetch_area; sel_fetch_area->x1 = src.x1;sel_fetch_area->x2 = src.x2;sel_fetch_area->y1 = inter.y1 - new_plane_state->uapi.dst.y1 + src.y1; sel_fetch_area->y2 = inter.y2 - new_plane_state->uapi.dst.y1 + src.y1;
drivers/gpu/drm/i915/display/intel_psr.c int intel_psr2_sel_fetch_update(struct intel_atomic_state *state, · line 1399
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_psr.c +1
-0} +skip_sel_fetch_set_loop:psr2_man_trk_ctl_calc (crtc_state, &pipe_clip, full_update);return 0 ; }
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH v7 2/5] drm/i915/display/psr: Use plane damage clips to calculate damaged area
Quoted 64 lines · Gwan-gyeong
Quoted 11 lines · José Roberto de Souza
Now using plane damage clips property to calcualte the damaged area. Selective fetch only supports one region to be fetched so software needs to calculate a bounding box around all damage clips.
Now that we are not complete fetching each plane, there is another loop needed as all the plane areas that intersect with the pipe damaged area needs to be fetched from memory so the complete blending of all planes can happen.
v2:
- do not shifthingnew_plane_state->uapi.dstonly src is in 16.16Hi,
typo here, shifthing -> shiftingQuoted 50 lines
format
v4:
- setting plane selective fetch area using the whole pipe damage area
- mark the whole plane area damaged if plane visibility or alpha changedv5:
- taking in consideration src.y1 in the damage coordinates
- adding to the pipe damaged area planes that were visible but are invisible in the new statev6:
- consider old state plane coordinates when visibility changes or it moved to calculate damaged area
- remove from damaged area the portion not in src clipv7:
- intersec every damage clip with src to minimize damaged areav8:
- adjustpipe_damagedarea to 4 lines grouping
- adjust calculation now that is understood that uapi.src is the framebuffer coordinates that plane will start to fetch fromCc Ville Syrjälä <[email protected]>Cc Gwan-gyeong Mun <[email protected]>Signed-off-by José Roberto de Souza <[email protected]>---
drivers/gpu/drm/i915/display/intel_psr.c | 105 ++++++++++++++++++++- --1 file changed, 91 insertions(+), 14 deletions(-)drivers/gpu/drm/i915/display/intel_psr.c +0
-0@@ -1242,9 +1242,11 @@ static void psr2_man_trk_ctl_calc(struct intel_crtc_state *crtc_state, if (clip->y1 == -1) goto exit;
Quoted 3 lines
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+ drm_WARN_ON(crtc_state->uapi.crtc->dev, clip->y1 % 4 || clip-Quoted 1 line
y2 % 4);
why do you check this line?
To make sure that clip->y1 and y2 can divide by 4, otherwise PSR2_MAN_TRK_CTL will be programmed with truncated values.
Quoted 23 lines
drivers/gpu/drm/i915/display/intel_psr.c static void psr2_man_trk_ctl_calc(struct intel_crtc_state *crtc_state, · line 1249
Quoted 6 lines
+
val |=PSR2_MAN_TRK_CTL_SF_PARTIAL_FRAME_UPDATE;
val |=PSR2_MAN_TRK_CTL_SU_REGION_START_ADDR(clip->y1 / 4 + 1);drivers/gpu/drm/i915/display/intel_psr.c +0
-1- val |= PSR2_MAN_TRK_CTL_SU_REGION_END_ADDR(DIV_ROUND_UP(clip-Quoted 1 line
y2, 4) + 1);
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+ val |=PSR2_MAN_TRK_CTL_SU_REGION_END_ADDR (clip->y2 /4 +1 );PSR2_MAN_TRK_CTL's the programming note of bspec describes as,
The frame is divided into blocks of four scan lines each. The blocks are addressed starting from 1 for the first block of the frame and ending with ROUNDUP[(TRANS_VTOTAL Vertical Active + 1) / 4]for the last block of the frame.
Software must provide the starting and ending block address of the selective update region.
The SU Region Start Address is programmed to the first block of the selective update region.
The SU Region End Address is programmed to the final block of the selective update region + 1.
There can be only one selective update region in a frame.
To disable selective update, set the selective update region to the full frame by programming SU Region Start Address to the startof the frame and SU Region End Address to the end of the frame.
Quoted 2 lines
if the why not you did not set like this?
val |=PSR2_MAN_TRK_CTL_SU_REGION_END_ADDR(clip->y2 / 4 + 2);
Imagine that clip->y2 = 800.
800 / 4 + = 202
Now if you convert it back to pixel:
# it starts on 1 202 - 1 = 201 201 * 4 = 804
The roundup in the description above is because of cases like clip->y2 = 799, in this case the "+2" would work but it will not for numbers that divide by 4.
Quoted 13 lines
drivers/gpu/drm/i915/display/intel_psr.c
Quoted 11 lines
exit:
crtc_state->psr2_man_track_ctl= val;
}drivers/gpu/drm/i915/display/intel_psr.c +0
-0@@ -1269,8 +1271,8 @@ int intel_psr2_sel_fetch_update(struct intel_atomic_state *state, struct intel_crtc *crtc) {struct
intel_crtc_state*crtc_state=intel_atomic_get_new_crtc_state(state, crtc);drivers/gpu/drm/i915/display/intel_psr.c +1
-0+struct drm_rect pipe_clip = { .x1 =0 , .y1 =-1 , .x2 =INT_MAX ,why don't you use
crtc_state->uapi.adjusted_mode.crtc_hdisplayfor setting x2?
Because it do not matters if it is equals to uapi.adjusted_mode.crtc_hdisplay or larger, we will not use X values to program registers, using the line above would only add one more line of code.
Quoted 128 lines
Quoted 117 lines
.y2 = -1 };
structintel_plane_state*new_plane_state,*old_plane_state;drivers/gpu/drm/i915/display/intel_psr.c +0
-1-struct drm_rect pipe_clip = { .y1 =-1 };struct
intel_plane*plane;
boolfull_update= false;
int i, ret;drivers/gpu/drm/i915/display/intel_psr.c +0
-0@@ -1282,9 +1284,17 @@ int intel_psr2_sel_fetch_update(structintel_atomic_state *state, if (ret) return ret;drivers/gpu/drm/i915/display/intel_psr.c +2
-0+/* +* Calculate minimal selective fetch area of each plane and calculate
drivers/gpu/drm/i915/display/intel_psr.c +2
-0+* the pipe damaged area. +* In the next loop the plane selective fetch area will actually be set
drivers/gpu/drm/i915/display/intel_psr.c +2
-0+* using whole pipe damaged area. +*/ for_each_oldnew_intel_plane_in_state(state, plane,
old_plane_state,
new_plane_state, i) {drivers/gpu/drm/i915/display/intel_psr.c +3
-1-struct drm_rect *sel_fetch_area, temp; +struct drm_rect src, damaged_area = { .y1 =-1 }; +struct drm_mode_rect *damaged_clips; +u32 num_clips, j;if (
new_plane_state->uapi.crtc!= crtc_state-Quoted 1 line
uapi.crtc)
continue;
drivers/gpu/drm/i915/display/intel_psr.c +0
-0@@ -1300,23 +1310,90 @@ int intel_psr2_sel_fetch_update(struct intel_atomic_state *state, break; }drivers/gpu/drm/i915/display/intel_psr.c +1
-2-if (!new_plane_state->uapi.visible) -continue ; + num_clips =
drm_plane_get_damage_clips_count(&new_plane_state->uapi);/*
drivers/gpu/drm/i915/display/intel_psr.c +0
-1-* For now doing a selective fetch in the whole plane area,
drivers/gpu/drm/i915/display/intel_psr.c +1
-1-* optimizations will come in the future. +* If visibility or plane moved, mark the whole plane area as
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+* damaged as it needs to be complete redraw in the new and old
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+* position. */
drivers/gpu/drm/i915/display/intel_psr.c +0
-2- sel_fetch_area = &new_plane_state->psr2_sel_fetch_area; - sel_fetch_area->y1 = new_plane_state->uapi.src.y1 >>16;
drivers/gpu/drm/i915/display/intel_psr.c +0
-1- sel_fetch_area->y2 = new_plane_state->uapi.src.y2 >>16;
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+ if (new_plane_state->uapi.visible != old_plane_state-Quoted 1 line
uapi.visible ||
drivers/gpu/drm/i915/display/intel_psr.c int intel_psr2_sel_fetch_update(struct intel_atomic_state *state, · line 1330
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_psr.c +10
-0+ !drm_rect_equals(&new_plane_state->uapi.dst, + &old_plane_state->uapi.dst)) { + damaged_area.y1 = old_plane_state->uapi.dst.y1; + damaged_area.y2 = old_plane_state->uapi.dst.y2; +clip_area_update (&pipe_clip, &damaged_area); + + damaged_area.y1 = new_plane_state->uapi.dst.y1; + damaged_area.y2 = new_plane_state->uapi.dst.y2; +clip_area_update (&pipe_clip, &damaged_area); +continue ;if (new_plane_state->uapi.visible != old_plane_state->uapi.visible) {
Quoted 8 lines
if (new_plane_state->uapi.visible) {
damaged_area.y1 = new_plane_state->uapi.dst.y1;
damaged_area.y2 = new_plane_state->uapi.dst.y2;
} else {
damaged_area.y1 = old_plane_state->uapi.dst.y1;
damaged_area.y2 = old_plane_state->uapi.dst.y2;
}
clip_area_update(&pipe_clip, &damaged_area);The invisible state will have dst.y1/y2 set to 0, so we can optimize and use the same code for visibiltiy change and move.
Quoted 23 lines
continue; } else if (!drm_rect_equals(&new_plane_state->uapi.dst, &old_plane_state->uapi.dst) { damaged_area.y1 = old_plane_state->uapi.dst.y1; damaged_area.y2 = old_plane_state->uapi.dst.y2; clip_area_update(&pipe_clip, &damaged_area); damaged_area.y1 = new_plane_state->uapi.dst.y1; damaged_area.y2 = new_plane_state->uapi.dst.y2; clip_area_update(&pipe_clip, &damaged_area); continue; }Quoted 11 lines
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+ } else if (new_plane_state->uapi.alpha !=
old_plane_state->uapi.alpha||drivers/gpu/drm/i915/display/intel_psr.c +2
-0+ (!num_clips && + new_plane_state->uapi.fb !=
old_plane_state->uapi.fb)) {drivers/gpu/drm/i915/display/intel_psr.c +2
-0+/* +* If the plane don't have damaged areas but the
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+* framebuffer changed or alpha changed, mark the whole
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+* plane area as damaged.
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_psr.c int intel_psr2_sel_fetch_update(struct intel_atomic_state *state, · line 1344
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_psr.c +7
-0+*/ + damaged_area.y1 = new_plane_state->uapi.dst.y1; + damaged_area.y2 = new_plane_state->uapi.dst.y2; +clip_area_update (&pipe_clip, &damaged_area); +continue ; + } +if the
num_clipsis over 0, we need to do the below section,
What section?
Quoted 5 lines
Quoted 4 lines
drivers/gpu/drm/i915/display/intel_psr.c +2
-0+drm_rect_fp_to_int (&src, &new_plane_state->uapi.src); + damaged_clips =
drm_plane_get_damage_clips(&new_plane_state->uapi); +need to initialize
damaged_arearect here too.
It is initialized.
struct drm_rect src, damaged_area = { .y1 = -1 };
Quoted 87 lines
Quoted 87 lines
drivers/gpu/drm/i915/display/intel_psr.c +15
-0+for (j =0 ; j < num_clips; j++) { +struct drm_rect clip; + + clip.x1 = damaged_clips[j].x1; + clip.y1 = damaged_clips[j].y1; + clip.x2 = damaged_clips[j].x2; + clip.y2 = damaged_clips[j].y2; +if (drm_rect_intersect (&clip, &src)) +clip_area_update (&damaged_area, &clip); + } + +if (damaged_area.y1 ==-1 ) +continue ; + + damaged_area.y1 += new_plane_state->uapi.dst.y1 -src.y1;
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+ damaged_area.y2 += new_plane_state->uapi.dst.y1 -src.y1;
drivers/gpu/drm/i915/display/intel_psr.c +5
-0+clip_area_update (&pipe_clip, &damaged_area); + } + +if (full_update) + goto skip_sel_fetch_set_loop;
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_psr.c int intel_psr2_sel_fetch_update(struct intel_atomic_state *state, · line 1374
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_psr.c +5
-4- temp = *sel_fetch_area; - temp.y1 += new_plane_state->uapi.dst.y1; - temp.y2 += new_plane_state->uapi.dst.y2; -clip_area_update (&pipe_clip, &temp); +/* It must be aligned to 4 lines */ + pipe_clip.y1 -= pipe_clip.y1 %4 ; +if (pipe_clip.y2 %4 ) + pipe_clip.y2 = ((pipe_clip.y2 /4 ) +1 ) *4 ; +which spec describes that we have to align by 4 for SelectiveUpdate?
"For PSR2 selective update, the frame is divided into blocks of four scan lines each. The update region must be expanded so it aligns to the 4 line groups of transcoder vertical active."
BSpec 55229
Quoted 24 lines
Quoted 24 lines
drivers/gpu/drm/i915/display/intel_psr.c +2
-0+/* +* Now that we have the pipe damaged area check if it intersect with
drivers/gpu/drm/i915/display/intel_psr.c +3
-0+* every plane, if it does set the plane selective fetch area. +*/ + for_each_oldnew_intel_plane_in_state(state, plane,
old_plane_state,drivers/gpu/drm/i915/display/intel_psr.c +4
-0+ new_plane_state, i) { +struct drm_rect *sel_fetch_area, inter; + + if (new_plane_state->uapi.crtc != crtc_state->uapi.crtcQuoted 1 line
Quoted 1 line
drivers/gpu/drm/i915/display/intel_psr.c +5
-0+ !new_plane_state->uapi.visible) +continue ; + + inter = pipe_clip; + if (!drm_rect_intersect(&inter, &new_plane_state-Quoted 1 line
uapi.dst))
drivers/gpu/drm/i915/display/intel_psr.c +4
-0+continue ; + + sel_fetch_area = &new_plane_state->psr2_sel_fetch_area; + sel_fetch_area->y1 = inter.y1 - new_plane_state-Quoted 1 line
uapi.dst.y1;
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+ sel_fetch_area->y2 = inter.y2 - new_plane_state-
Quoted 8 lines
Quoted 1 line
Quoted 1 line
uapi.dst.y1;
struct
drm_rectsrc;drm_rect_fp_to_int(&src, &new_plane_state->uapi.src);sel_fetch_area=&new_plane_state->psr2_sel_fetch_area;sel_fetch_area->x1= src.x1;sel_fetch_area->x2= src.x2;sel_fetch_area->y1= inter.y1 -new_plane_state->uapi.dst.y1+ src.y1;sel_fetch_area->y2= inter.y2 -new_plane_state->uapi.dst.y1+ src.y1;
PLANE_SEL_FETCH_POS needs to be programmed without the fb offset.
That is why we do the bellow in intel_psr2_program_plane_sel_fetch():
y = (plane_state->uapi.src.y1 >> 16) + clip->y1;
ret = skl_calc_main_surface_offset(plane_state, &x, &y, &offset); if (ret)
drm_warn_once(&dev_priv->drm, "skl_calc_main_surface_offset() returned %i\n", ret); val = y << 16 | x; intel_de_write_fw(dev_priv, PLANE_SEL_FETCH_OFFSET(pipe, plane->id), val);
Quoted 129 lines
Quoted 129 lines
}
Quoted 4 lines
Quoted 4 lines
+skip_sel_fetch_set_loop:
psr2_man_trk_ctl_calc(crtc_state, &pipe_clip, full_update); return 0;
}
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH v7 2/5] drm/i915/display/psr: Use plane damage clips to calculate damaged area
Quoted 263 lines · José Roberto de Souza
Quoted 64 lines · Gwan-gyeong
Quoted 11 lines · José Roberto de Souza
Now using plane damage clips property to calcualte the damaged area. Selective fetch only supports one region to be fetched so software needs to calculate a bounding box around all damage clips.
Now that we are not complete fetching each plane, there is another loop needed as all the plane areas that intersect with the pipe damaged area needs to be fetched from memory so the complete blending of all planes can happen.
v2:
- do not shifthingnew_plane_state->uapi.dstonly src is in 16.16Hi,
typo here, shifthing -> shiftingQuoted 50 lines
format
v4:
- setting plane selective fetch area using the whole pipe damage area
- mark the whole plane area damaged if plane visibility or alpha changedv5:
- taking in consideration src.y1 in the damage coordinates
- adding to the pipe damaged area planes that were visible but are invisible in the new statev6:
- consider old state plane coordinates when visibility changes or it moved to calculate damaged area
- remove from damaged area the portion not in src clipv7:
- intersec every damage clip with src to minimize damaged areav8:
- adjustpipe_damagedarea to 4 lines grouping
- adjust calculation now that is understood that uapi.src is the framebuffer coordinates that plane will start to fetch fromCc Ville Syrjälä <[email protected]>Cc Gwan-gyeong Mun <[email protected]>Signed-off-by José Roberto de Souza <[email protected]>---
drivers/gpu/drm/i915/display/intel_psr.c | 105 ++++++++++++++++++++- --1 file changed, 91 insertions(+), 14 deletions(-)drivers/gpu/drm/i915/display/intel_psr.c +0
-0@@ -1242,9 +1242,11 @@ static void psr2_man_trk_ctl_calc(struct intel_crtc_state *crtc_state, if (clip->y1 == -1) goto exit;Quoted 3 lines
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+ drm_WARN_ON(crtc_state->uapi.crtc->dev, clip->y1 % 4 || clip-Quoted 1 line
y2 % 4);
why do you check this line?
To make sure that
clip->y1and y2 can divide by 4, otherwisePSR2_MAN_TRK_CTLwill be programmed with truncated values.Quoted 23 lines
drivers/gpu/drm/i915/display/intel_psr.c static void psr2_man_trk_ctl_calc(struct intel_crtc_state *crtc_state, · line 1249
Quoted 6 lines
+
val |=PSR2_MAN_TRK_CTL_SF_PARTIAL_FRAME_UPDATE;
val |=PSR2_MAN_TRK_CTL_SU_REGION_START_ADDR(clip->y1 / 4 + 1);drivers/gpu/drm/i915/display/intel_psr.c +0
-1- val |= PSR2_MAN_TRK_CTL_SU_REGION_END_ADDR(DIV_ROUND_UP(clip-Quoted 1 line
y2, 4) + 1);
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+ val |=PSR2_MAN_TRK_CTL_SU_REGION_END_ADDR (clip->y2 /4 +1 );PSR2_MAN_TRK_CTL's the programming note of bspec describes as,
The frame is divided into blocks of four scan lines each. The blocks are addressed starting from 1 for the first block of the frame and ending with ROUNDUP[(TRANS_VTOTAL Vertical Active + 1) / 4]for the last block of the frame.
Software must provide the starting and ending block address of the selective update region.
The SU Region Start Address is programmed to the first block of the selective update region.
The SU Region End Address is programmed to the final block of the selective update region + 1.
There can be only one selective update region in a frame.
To disable selective update, set the selective update region to the full frame by programming SU Region Start Address to the startof the frame and SU Region End Address to the end of the frame.Quoted 2 lines
if the why not you did not set like this?
val |=PSR2_MAN_TRK_CTL_SU_REGION_END_ADDR(clip->y2 / 4 + 2);Imagine that
clip->y2= 800.800 / 4 + = 202
Now if you convert it back to pixel:# it starts on 1 202 - 1 = 201 201 * 4 = 804The roundup in the description above is because of cases like
clip->y2= 799, in this case the "+2" would work but it will not for numbers that divide by 4.Quoted 13 lines
drivers/gpu/drm/i915/display/intel_psr.c
Quoted 11 lines
exit:
crtc_state->psr2_man_track_ctl= val;
}drivers/gpu/drm/i915/display/intel_psr.c +0
-0@@ -1269,8 +1271,8 @@ int intel_psr2_sel_fetch_update(struct intel_atomic_state *state, struct intel_crtc *crtc) {struct
intel_crtc_state*crtc_state=intel_atomic_get_new_crtc_state(state, crtc);drivers/gpu/drm/i915/display/intel_psr.c +1
-0+struct drm_rect pipe_clip = { .x1 =0 , .y1 =-1 , .x2 =INT_MAX ,why don't you use
crtc_state->uapi.adjusted_mode.crtc_hdisplayfor setting x2?Because it do not matters if it is equals to uapi.adjusted_mode.crtc_hdisplay or larger, we will not use X values to program registers, using the line above would only add one more line of code.
Quoted 128 lines
Quoted 117 lines
.y2 = -1 };
structintel_plane_state*new_plane_state,*old_plane_state;drivers/gpu/drm/i915/display/intel_psr.c +0
-1-struct drm_rect pipe_clip = { .y1 =-1 };struct
intel_plane*plane;
boolfull_update= false;
int i, ret;drivers/gpu/drm/i915/display/intel_psr.c +0
-0@@ -1282,9 +1284,17 @@ int intel_psr2_sel_fetch_update(structintel_atomic_state *state, if (ret) return ret;drivers/gpu/drm/i915/display/intel_psr.c +2
-0+/* +* Calculate minimal selective fetch area of each plane and calculate
drivers/gpu/drm/i915/display/intel_psr.c +2
-0+* the pipe damaged area. +* In the next loop the plane selective fetch area will actually be set
drivers/gpu/drm/i915/display/intel_psr.c +2
-0+* using whole pipe damaged area. +*/ for_each_oldnew_intel_plane_in_state(state, plane,
old_plane_state,
new_plane_state, i) {drivers/gpu/drm/i915/display/intel_psr.c +3
-1-struct drm_rect *sel_fetch_area, temp; +struct drm_rect src, damaged_area = { .y1 =-1 }; +struct drm_mode_rect *damaged_clips; +u32 num_clips, j;if (
new_plane_state->uapi.crtc!= crtc_state-Quoted 1 line
uapi.crtc)
continue;
drivers/gpu/drm/i915/display/intel_psr.c +0
-0@@ -1300,23 +1310,90 @@ int intel_psr2_sel_fetch_update(struct intel_atomic_state *state, break; }drivers/gpu/drm/i915/display/intel_psr.c +1
-2-if (!new_plane_state->uapi.visible) -continue ; + num_clips =
drm_plane_get_damage_clips_count(&new_plane_state->uapi);/*
drivers/gpu/drm/i915/display/intel_psr.c +0
-1-* For now doing a selective fetch in the whole plane area,
drivers/gpu/drm/i915/display/intel_psr.c +1
-1-* optimizations will come in the future. +* If visibility or plane moved, mark the whole plane area as
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+* damaged as it needs to be complete redraw in the new and old
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+* position. */
drivers/gpu/drm/i915/display/intel_psr.c +0
-2- sel_fetch_area = &new_plane_state->psr2_sel_fetch_area; - sel_fetch_area->y1 = new_plane_state->uapi.src.y1 >>16;
drivers/gpu/drm/i915/display/intel_psr.c +0
-1- sel_fetch_area->y2 = new_plane_state->uapi.src.y2 >>16;
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+ if (new_plane_state->uapi.visible != old_plane_state-Quoted 1 line
uapi.visible ||
drivers/gpu/drm/i915/display/intel_psr.c int intel_psr2_sel_fetch_update(struct intel_atomic_state *state, · line 1330
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_psr.c +10
-0+ !drm_rect_equals(&new_plane_state->uapi.dst, + &old_plane_state->uapi.dst)) { + damaged_area.y1 = old_plane_state->uapi.dst.y1; + damaged_area.y2 = old_plane_state->uapi.dst.y2; +clip_area_update (&pipe_clip, &damaged_area); + + damaged_area.y1 = new_plane_state->uapi.dst.y1; + damaged_area.y2 = new_plane_state->uapi.dst.y2; +clip_area_update (&pipe_clip, &damaged_area); +continue ;if (new_plane_state->uapi.visible != old_plane_state->uapi.visible) {Quoted 8 lines
if (new_plane_state->uapi.visible) { damaged_area.y1 = new_plane_state->uapi.dst.y1; damaged_area.y2 = new_plane_state->uapi.dst.y2; } else { damaged_area.y1 = old_plane_state->uapi.dst.y1; damaged_area.y2 = old_plane_state->uapi.dst.y2; } clip_area_update(&pipe_clip, &damaged_area);
Quoted 1 line
The invisible state will have dst.y1/y2 set to 0, so we can optimize and use the same code for visibiltiy change and move.
Okay, the dst.y1 = dst.y2 = 0 of the invisible state will cause the damaged_area.y1 to always be 0. New version being send in a few minutes
Quoted 186 lines
Quoted 24 lines
continue; } else if (!drm_rect_equals(&new_plane_state->uapi.dst, &old_plane_state->uapi.dst) { damaged_area.y1 = old_plane_state->uapi.dst.y1; damaged_area.y2 = old_plane_state->uapi.dst.y2; clip_area_update(&pipe_clip, &damaged_area); damaged_area.y1 = new_plane_state->uapi.dst.y1; damaged_area.y2 = new_plane_state->uapi.dst.y2; clip_area_update(&pipe_clip, &damaged_area); continue; }Quoted 11 lines
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+ } else if (new_plane_state->uapi.alpha !=
old_plane_state->uapi.alpha||drivers/gpu/drm/i915/display/intel_psr.c +2
-0+ (!num_clips && + new_plane_state->uapi.fb !=
old_plane_state->uapi.fb)) {drivers/gpu/drm/i915/display/intel_psr.c +2
-0+/* +* If the plane don't have damaged areas but the
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+* framebuffer changed or alpha changed, mark the whole
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+* plane area as damaged. Quoted 8 lines
drivers/gpu/drm/i915/display/intel_psr.c int intel_psr2_sel_fetch_update(struct intel_atomic_state *state, · line 1344
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_psr.c +7
-0+*/ + damaged_area.y1 = new_plane_state->uapi.dst.y1; + damaged_area.y2 = new_plane_state->uapi.dst.y2; +clip_area_update (&pipe_clip, &damaged_area); +continue ; + } +if the
num_clipsis over 0, we need to do the below section,What section?
Quoted 5 lines
Quoted 4 lines
drivers/gpu/drm/i915/display/intel_psr.c +2
-0+drm_rect_fp_to_int (&src, &new_plane_state->uapi.src); + damaged_clips =
drm_plane_get_damage_clips(&new_plane_state->uapi); +need to initialize
damaged_arearect here too.It is initialized.
struct
drm_rectsrc,damaged_area= { .y1 = -1 };Quoted 87 lines
Quoted 87 lines
drivers/gpu/drm/i915/display/intel_psr.c +15
-0+for (j =0 ; j < num_clips; j++) { +struct drm_rect clip; + + clip.x1 = damaged_clips[j].x1; + clip.y1 = damaged_clips[j].y1; + clip.x2 = damaged_clips[j].x2; + clip.y2 = damaged_clips[j].y2; +if (drm_rect_intersect (&clip, &src)) +clip_area_update (&damaged_area, &clip); + } + +if (damaged_area.y1 ==-1 ) +continue ; + + damaged_area.y1 += new_plane_state->uapi.dst.y1 -src.y1;
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+ damaged_area.y2 += new_plane_state->uapi.dst.y1 -src.y1;
drivers/gpu/drm/i915/display/intel_psr.c +5
-0+clip_area_update (&pipe_clip, &damaged_area); + } + +if (full_update) + goto skip_sel_fetch_set_loop;Quoted 10 lines
drivers/gpu/drm/i915/display/intel_psr.c int intel_psr2_sel_fetch_update(struct intel_atomic_state *state, · line 1374
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_psr.c +5
-4- temp = *sel_fetch_area; - temp.y1 += new_plane_state->uapi.dst.y1; - temp.y2 += new_plane_state->uapi.dst.y2; -clip_area_update (&pipe_clip, &temp); +/* It must be aligned to 4 lines */ + pipe_clip.y1 -= pipe_clip.y1 %4 ; +if (pipe_clip.y2 %4 ) + pipe_clip.y2 = ((pipe_clip.y2 /4 ) +1 ) *4 ; +which spec describes that we have to align by 4 for SelectiveUpdate?
"For PSR2 selective update, the frame is divided into blocks of four scan lines each. The update region must be expanded so it aligns to the 4 line groups of transcoder vertical active."
BSpec 55229
Quoted 24 lines
Quoted 24 lines
drivers/gpu/drm/i915/display/intel_psr.c +2
-0+/* +* Now that we have the pipe damaged area check if it intersect with
drivers/gpu/drm/i915/display/intel_psr.c +3
-0+* every plane, if it does set the plane selective fetch area. +*/ + for_each_oldnew_intel_plane_in_state(state, plane,
old_plane_state,drivers/gpu/drm/i915/display/intel_psr.c +4
-0+ new_plane_state, i) { +struct drm_rect *sel_fetch_area, inter; + + if (new_plane_state->uapi.crtc != crtc_state->uapi.crtcQuoted 1 line
Quoted 1 line
drivers/gpu/drm/i915/display/intel_psr.c +5
-0+ !new_plane_state->uapi.visible) +continue ; + + inter = pipe_clip; + if (!drm_rect_intersect(&inter, &new_plane_state-Quoted 1 line
uapi.dst))
drivers/gpu/drm/i915/display/intel_psr.c +4
-0+continue ; + + sel_fetch_area = &new_plane_state->psr2_sel_fetch_area; + sel_fetch_area->y1 = inter.y1 - new_plane_state-Quoted 1 line
uapi.dst.y1;
drivers/gpu/drm/i915/display/intel_psr.c +1
-0+ sel_fetch_area->y2 = inter.y2 - new_plane_state-Quoted 8 lines
Quoted 1 line
Quoted 1 line
uapi.dst.y1;
struct
drm_rectsrc;drm_rect_fp_to_int(&src, &new_plane_state->uapi.src);sel_fetch_area=&new_plane_state->psr2_sel_fetch_area;sel_fetch_area->x1= src.x1;sel_fetch_area->x2= src.x2;sel_fetch_area->y1= inter.y1 -new_plane_state->uapi.dst.y1+ src.y1;sel_fetch_area->y2= inter.y2 -new_plane_state->uapi.dst.y1+ src.y1;
PLANE_SEL_FETCH_POSneeds to be programmed without the fb offset.That is why we do the bellow in
intel_psr2_program_plane_sel_fetch():
Quoted 142 lines
y = (
plane_state->uapi.src.y1>> 16) +clip->y1;
ret =skl_calc_main_surface_offset(plane_state, &x, &y, &offset); if (ret)drm_warn_once(&dev_priv->drm, "skl_calc_main_surface_offset() returned %i\n", ret); val = y << 16 | x; intel_de_write_fw(dev_priv, PLANE_SEL_FETCH_OFFSET(pipe, plane->id), val);Quoted 133 lines
Quoted 133 lines
}
+skip_sel_fetch_set_loop:
psr2_man_trk_ctl_calc(crtc_state, &pipe_clip, full_update); return 0;
}
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 3/5 drm/i915/display: Split and export main surface calculation from skl_check_main_surface()
In reply to José Roberto de SouzaThe calculation the offsets of the main surface will be needed by PSR2 selective fetch code so here splitting and exporting it.
No functional changes were done here.
v3: Rebased
--- drivers/gpu/drm/i915/display/intel_display.c | 78 ++++++++++++-------- drivers/gpu/drm/i915/display/intel_display.h | 2 + 2 files changed, 51 insertions(+), 29 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +49 -29
@@ -3821,33 +3821,19 @@ static int intel_plane_max_height(struct intel_plane *plane,return INT_MAX ; } -static int skl_check_main_surface (struct intel_plane_state *plane_state) +int skl_calc_main_surface_offset (const struct intel_plane_state *plane_state, +int *x,int *y,u32 *offset) {struct intel_plane *plane =to_intel_plane (plane_state->uapi.plane);struct drm_i915_private *dev_priv =to_i915 (plane->base.dev);const struct drm_framebuffer *fb = plane_state->hw.fb; -unsigned int rotation = plane_state->hw.rotation; -int x = plane_state->uapi.src.x1 >>16 ; -int y = plane_state->uapi.src.y1 >>16 ; -int w =drm_rect_width (&plane_state->uapi.src) >>16 ; -int h =drm_rect_height (&plane_state->uapi.src) >>16 ; -int min_width =intel_plane_min_width (plane, fb,0 , rotation); -int max_width =intel_plane_max_width (plane, fb,0 , rotation); -int max_height =intel_plane_max_height (plane, fb,0 , rotation); -int aux_plane =intel_main_to_aux_plane (fb,0 ); -u32 aux_offset = plane_state->color_plane[aux_plane].offset; -u32 alignment, offset; +const int aux_plane =intel_main_to_aux_plane (fb,0 ); +const u32 aux_offset = plane_state->color_plane[aux_plane].offset; +const u32 alignment =intel_surf_alignment (fb,0 ); +const int w =drm_rect_width (&plane_state->uapi.src) >>16 ; -if (w > max_width || w < min_width || h > max_height) { -drm_dbg_kms (&dev_priv->drm, -"requested Y/RGB source size %dx%d outside limits (min: %dx1 max: %dx%d)\n" , - w, h, min_width, max_width, max_height); -return -EINVAL ; - } - -intel_add_fb_offsets (&x, &y, plane_state,0 ); - offset =intel_plane_compute_aligned_offset (&x, &y, plane_state,0 ); - alignment =intel_surf_alignment (fb,0 ); +intel_add_fb_offsets (x, y, plane_state,0 ); + *offset =intel_plane_compute_aligned_offset (x, y, plane_state,0 );if (drm_WARN_ON (&dev_priv->drm, alignment && !is_power_of_2 (alignment)))return -EINVAL ;
@@ -3856,9 +3842,10 @@ static int skl_check_main_surface(struct intel_plane_state *plane_state)* main surface offset, and it must be non-negative. Make * sure that is what we will get. */ -if (aux_plane && offset > aux_offset) - offset =intel_plane_adjust_aligned_offset (&x, &y, plane_state,0 , - offset, aux_offset & ~(alignment -1 )); +if (aux_plane && *offset > aux_offset) + *offset =intel_plane_adjust_aligned_offset (x, y, plane_state,0 , + *offset, + aux_offset & ~(alignment -1 ));/* * When using an X-tiled surface, the plane blows up
@@ -3869,18 +3856,51 @@ static int skl_check_main_surface(struct intel_plane_state *plane_state)if (fb->modifier ==I915_FORMAT_MOD_X_TILED ) {int cpp = fb->format->cpp[0 ]; -while ((x + w) * cpp > plane_state->color_plane[0 ].stride) { -if (offset ==0 ) { +while ((*x + w) * cpp > plane_state->color_plane[0 ].stride) { +if (*offset ==0 ) {drm_dbg_kms (&dev_priv->drm,"Unable to find suitable display surface offset due to X-tiling\n" );return -EINVAL ; } - offset =intel_plane_adjust_aligned_offset (&x, &y, plane_state,0 , - offset, offset - alignment); + *offset =intel_plane_adjust_aligned_offset (x, y, plane_state,0 , + *offset, + *offset - alignment); } } +return 0 ; +} + +static int skl_check_main_surface (struct intel_plane_state *plane_state) +{ +struct intel_plane *plane =to_intel_plane (plane_state->uapi.plane); +struct drm_i915_private *dev_priv =to_i915 (plane->base.dev); +const struct drm_framebuffer *fb = plane_state->hw.fb; +const unsigned int rotation = plane_state->hw.rotation; +int x = plane_state->uapi.src.x1 >>16 ; +int y = plane_state->uapi.src.y1 >>16 ; +const int w =drm_rect_width (&plane_state->uapi.src) >>16 ; +const int h =drm_rect_height (&plane_state->uapi.src) >>16 ; +const int min_width =intel_plane_min_width (plane, fb,0 , rotation); +const int max_width =intel_plane_max_width (plane, fb,0 , rotation); +const int max_height =intel_plane_max_height (plane, fb,0 , rotation); +const int aux_plane =intel_main_to_aux_plane (fb,0 ); +const u32 alignment =intel_surf_alignment (fb,0 ); +u32 offset; +int ret; + +if (w > max_width || w < min_width || h > max_height) { +drm_dbg_kms (&dev_priv->drm, +"requested Y/RGB source size %dx%d outside limits (min: %dx1 max: %dx%d)\n" , + w, h, min_width, max_width, max_height); +return -EINVAL ; + } + + ret =skl_calc_main_surface_offset (plane_state, &x, &y, &offset); +if (ret) +return ret; +/* * CCS AUX surface doesn't have its own x/y offsets, we must make sure * they match with the main surface x/y offsets.
drivers/gpu/drm/i915/display/intel_display.h +2 -0
@@ -630,6 +630,8 @@ u32 skl_plane_ctl_crtc(const struct intel_crtc_state *crtc_state);u32 skl_plane_stride (const struct intel_plane_state *plane_state,int plane);int skl_check_plane_surface (struct intel_plane_state *plane_state); +int skl_calc_main_surface_offset (const struct intel_plane_state *plane_state, +int *x,int *y,u32 *offset);int i9xx_check_plane_surface (struct intel_plane_state *plane_state);int skl_format_to_fourcc (int format,bool rgb_order,bool alpha); unsigned int i9xx_plane_max_stride(struct intel_plane *plane,
Signature · 6 lines
2.29.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 4/5 drm/i915/display/psr: Program plane's calculated offset to plane SF register
In reply to José Roberto de SouzaIt programs Plane's calculated x, y, offset to Plane SF register. It does the calculation of x and y offsets using skl_calc_main_surface_offset().
v3: Update commit message
--- drivers/gpu/drm/i915/display/intel_psr.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/display/intel_psr.c +10 -4
@@ -1186,7 +1186,8 @@ void intel_psr2_program_plane_sel_fetch(struct intel_plane *plane,struct drm_i915_private *dev_priv =to_i915 (plane->base.dev);enum pipe pipe = plane->pipe;const struct drm_rect *clip; -u32 val; +u32 val, offset; +int ret, x, y;if (!crtc_state->enable_psr2_sel_fetch)return ;
@@ -1203,9 +1204,14 @@ void intel_psr2_program_plane_sel_fetch(struct intel_plane *plane, val |= plane_state->uapi.dst.x1;intel_de_write_fw (dev_priv,PLANE_SEL_FETCH_POS (pipe, plane->id), val); -/* TODO: consider tiling and auxiliary surfaces */ - val = (clip->y1 + plane_state->color_plane[color_plane].y) <<16 ; - val |= plane_state->color_plane[color_plane].x; +/* TODO: consider auxiliary surfaces */ + x = plane_state->uapi.src.x1 >>16 ; + y = (plane_state->uapi.src.y1 >>16 ) + clip->y1; + ret =skl_calc_main_surface_offset (plane_state, &x, &y, &offset); +if (ret) +drm_warn_once (&dev_priv->drm,"skl_calc_main_surface_offset() returned %i\n" , + ret); + val = y <<16 | x;intel_de_write_fw (dev_priv,PLANE_SEL_FETCH_OFFSET (pipe, plane->id), val);
Signature · 6 lines
2.29.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 5/5 HAX/DO_NOT_MERGE_IT: drm/i915/display: Enable PSR2 selective fetch for testing
In reply to José Roberto de SouzaEnabling it to check if it causes regressions in CI but the feature is still not ready to be enabled by default.
--- drivers/gpu/drm/i915/i915_params.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_params.h +1 -1
@@ -54,7 +54,7 @@ struct drm_printer; param(int, enable_fbc, -1, 0600) \ param(int, enable_psr, -1, 0600) \ param(bool, psr_safest_params, false, 0600) \ - param(bool, enable_psr2_sel_fetch, false, 0600) \ + param(bool, enable_psr2_sel_fetch, true, 0600) \ param(int, disable_power_well, -1, 0400) \ param(int, enable_ips, 1, 0600) \param (int, invert_brightness,0 ,0600 ) \
Signature · 6 lines
2.29.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [v7,1/5] drm: Add function to convert rect in 16.16 fixed format to regular format
In reply to José Roberto de Souza== Series Details ==
== Series Details ==
Series: series starting with [v7,1/5] drm: Add function to convert rect in 16.16 fixed format to regular format
URL : https://patchwork.freedesktop.org/series/85049/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately. +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +./drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgv_sriovmsg.h:261:49: error: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1398:25: error: incompatible types in comparison expression (different address spaces): +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1398:25: struct dma_fence * +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1398:25: struct dma_fence [noderef] __rcu * +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1399:17: error: incompatible types in comparison expression (different address spaces): +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1399:17: struct dma_fence * +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1399:17: struct dma_fence [noderef] __rcu * +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1458:17: error: incompatible types in comparison expression (different address spaces): +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1458:17: struct dma_fence * +drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1458:17: struct dma_fence [noderef] __rcu * +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:285:16: error: incompatible types in comparison expression (different type sizes): +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:285:16: unsigned long * +drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:285:16: unsigned long long * +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:276:25: error: incompatible types in comparison expression (different address spaces): +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:276:25: struct dma_fence * +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:276:25: struct dma_fence [noderef] __rcu * +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:277:17: error: incompatible types in comparison expression (different address spaces): +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:277:17: struct dma_fence * +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:277:17: struct dma_fence [noderef] __rcu * +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:331:17: error: incompatible types in comparison expression (different address spaces): +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:331:17: struct dma_fence * +drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c:331:17: struct dma_fence [noderef] __rcu * +drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.h:92:56: error: marked inline, but without a definition +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:257:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" +drivers/gpu/drm/amd/amdgpu/amd
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [v7,1/5] drm: Add function to convert rect in 16.16 fixed format to regular format
In reply to José Roberto de Souza== Series Details ==
== Series Details ==
Series: series starting with [v7,1/5] drm: Add function to convert rect in 16.16 fixed format to regular format
URL : https://patchwork.freedesktop.org/series/85049/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_9500 -> Patchwork_19169
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_19169 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_19169, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19169/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_19169:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live@evict:
- fi-tgl-y: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9500/fi-tgl-y/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19169/fi-tgl-y/igt@i915_selftest@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- fi-tgl-y: [PASS][3] -> [FAIL][4] +3 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9500/fi-tgl-y/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19169/fi-tgl-y/igt@[email protected]
* igt@kms_cursor_legacy@basic-flip-before-cursor-legacy:
- fi-tgl-u2: [PASS][5] -> [FAIL][6] +3 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9500/fi-tgl-u2/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19169/fi-tgl-u2/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_19169 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_mmap_gtt@basic:
- fi-tgl-y: [PASS][7] -> [DMESG-WARN][8] ([i915#402]) +3 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9500/fi-tgl-y/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19169/fi-tgl-y/igt@[email protected]
* igt@i915_module_load@reload:
- fi-tgl-u2: [PASS][9] -> [DMESG-WARN][10] ([i915#402] / [k.org#205379])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9500/fi-tgl-u2/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19169/fi-tgl-u2/igt@[email protected]
* igt@i915_selftest@live@reset:
- fi-tgl-y: [PASS][11] -> [INCOMPLETE][12] ([i915#402])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9500/fi-tgl-y/igt@i915_selftest@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19169/fi-tgl-y/igt@i915_selftest@[email protected]
* igt@kms_flip@basic-flip-vs-wf_vblank@b-edp1:
- fi-tgl-u2: [PASS][13] -> [DMESG-WARN][14] ([i915#402]) +12 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9500/fi-tgl-u2/igt@kms_flip@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19169/fi-tgl-u2/igt@kms_flip@[email protected]
* igt@kms_psr@primary_page_flip:
- fi-tgl-u2: [PASS][15] -> [SKIP][16] ([i915#668]) +3 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9500/fi-tgl-u2/igt@kms_psr@primary_page_flip.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19169/fi-tgl-u2/igt@kms_psr@primary_page_flip.html
#### Possible fixes ####
* igt@gem_flink_basic@basic:
- fi-tgl-y: [DMESG-WARN][17] ([i915#402]) -> [PASS][18] +2 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9500/fi-tgl-y/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19169/fi-tgl-y/igt@[email protected]
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
[i915#668]: https://gitlab.freedesktop.org/drm/intel/issues/668
[k.org#205379]: https://bugzilla.kernel.org/show_bug.cgi?id=205379
Participating hosts (43 -> 39)
------------------------------
Missing (4): fi-ilk-m540 fi-bsw-cyan fi-bdw-samus fi-hsw-4200u
Build changes
-------------
* Linux: CI_DRM_9500 -> Patchwork_19169
CI-20190529: 20190529
CI_DRM_9500: b6187a4ba065777110747954d4b46a511b0a6031 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5907: ff747ef212f95e5a66bef553187e131cf1c53af1 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_19169: 2cda2f0bfd0804bdcf549958794848a29d1ebef4 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
2cda2f0bfd08 HAX/DO_NOT_MERGE_IT: drm/i915/display: Enable PSR2 selective fetch for testing 8a2bc8b36f10 drm/i915/display/psr: Program plane's calculated offset to plane SF register cb713a9df239 drm/i915/display: Split and export main surface calculation from skl_check_main_surface() 37c173b9a72c drm/i915/display/psr: Use plane damage clips to calculate damaged area 802c17bdaf1d drm: Add function to convert rect in 16.16 fixed format to regular format
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19169/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx