Skip to content

Commit 864e029

Browse files
committed
Merge tag 'drm-intel-fixes-2023-07-13' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
- Don't preserve dpll_hw_state for slave crtc in Bigjoiner (Stanislav Lisovskiy) - Consider OA buffer boundary when zeroing out reports [perf] (Umesh Nerlige Ramappa) - Remove dead code from gen8_pte_encode (Tvrtko Ursulin) - Fix one wrong caching mode enum usage (Tvrtko Ursulin) Signed-off-by: Dave Airlie <[email protected]> From: Tvrtko Ursulin <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/ZK+nHLCltaxoxVw/@tursulin-desk
2 parents b7a5738 + 113899c commit 864e029

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

drivers/gpu/drm/i915/display/intel_display.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4564,7 +4564,6 @@ copy_bigjoiner_crtc_state_modeset(struct intel_atomic_state *state,
45644564
saved_state->uapi = slave_crtc_state->uapi;
45654565
saved_state->scaler_state = slave_crtc_state->scaler_state;
45664566
saved_state->shared_dpll = slave_crtc_state->shared_dpll;
4567-
saved_state->dpll_hw_state = slave_crtc_state->dpll_hw_state;
45684567
saved_state->crc_enabled = slave_crtc_state->crc_enabled;
45694568

45704569
intel_crtc_free_hw_state(slave_crtc_state);

drivers/gpu/drm/i915/gt/gen8_ppgtt.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ static u64 gen8_pte_encode(dma_addr_t addr,
3737
if (unlikely(flags & PTE_READ_ONLY))
3838
pte &= ~GEN8_PAGE_RW;
3939

40-
if (flags & PTE_LM)
41-
pte |= GEN12_PPGTT_PTE_LM;
42-
4340
/*
4441
* For pre-gen12 platforms pat_index is the same as enum
4542
* i915_cache_level, so the switch-case here is still valid.

drivers/gpu/drm/i915/gt/intel_gtt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ __vm_create_scratch_for_read(struct i915_address_space *vm, unsigned long size)
670670
if (IS_ERR(obj))
671671
return ERR_CAST(obj);
672672

673-
i915_gem_object_set_cache_coherency(obj, I915_CACHING_CACHED);
673+
i915_gem_object_set_cache_coherency(obj, I915_CACHE_LLC);
674674

675675
vma = i915_vma_instance(obj, vm, NULL);
676676
if (IS_ERR(vma)) {

drivers/gpu/drm/i915/i915_perf.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,8 +868,17 @@ static int gen8_append_oa_reports(struct i915_perf_stream *stream,
868868
oa_report_id_clear(stream, report32);
869869
oa_timestamp_clear(stream, report32);
870870
} else {
871+
u8 *oa_buf_end = stream->oa_buffer.vaddr +
872+
OA_BUFFER_SIZE;
873+
u32 part = oa_buf_end - (u8 *)report32;
874+
871875
/* Zero out the entire report */
872-
memset(report32, 0, report_size);
876+
if (report_size <= part) {
877+
memset(report32, 0, report_size);
878+
} else {
879+
memset(report32, 0, part);
880+
memset(oa_buf_base, 0, report_size - part);
881+
}
873882
}
874883
}
875884

0 commit comments

Comments
 (0)