forked from freebsd/drm-kmod
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drm/i915/pxp: Add MTL hw-plumbing enabling for KCR operation
Add MTL hw-plumbing enabling for KCR operation under PXP which includes: 1. Updating 'pick-gt' to get the media tile for KCR interrupt handling 2. Adding MTL's KCR registers for PXP operation (init, status-checking, etc.). While doing freebsd#2, lets create a separate registers header file for PXP to be consistent with other i915 global subsystems. Signed-off-by: Alan Previn <[email protected]> Reviewed-by: Daniele Ceraolo Spurio <[email protected]> Signed-off-by: Radhakrishna Sripada <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
- Loading branch information
1 parent
b5c9fd0
commit 29ba1ad
Showing
5 changed files
with
58 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* SPDX-License-Identifier: MIT */ | ||
/* | ||
* Copyright(c) 2023, Intel Corporation. All rights reserved. | ||
*/ | ||
|
||
#ifndef __INTEL_PXP_REGS_H__ | ||
#define __INTEL_PXP_REGS_H__ | ||
|
||
#include "i915_reg_defs.h" | ||
|
||
/* KCR subsystem register base address */ | ||
#define GEN12_KCR_BASE 0x32000 | ||
#define MTL_KCR_BASE 0x386000 | ||
|
||
/* KCR enable/disable control */ | ||
#define KCR_INIT(base) _MMIO((base) + 0xf0) | ||
|
||
/* Setting KCR Init bit is required after system boot */ | ||
#define KCR_INIT_ALLOW_DISPLAY_ME_WRITES REG_BIT(14) | ||
|
||
/* KCR hwdrm session in play status 0-31 */ | ||
#define KCR_SIP(base) _MMIO((base) + 0x260) | ||
|
||
/* PXP global terminate register for session termination */ | ||
#define KCR_GLOBAL_TERMINATE(base) _MMIO((base) + 0xf8) | ||
|
||
#endif /* __INTEL_PXP_REGS_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters