diff mbox series

[1/2] drm/i915/mtl: Add the missing CPU transcoder mask in intel_device_info

Message ID 20230420221248.2511314-1-radhakrishna.sripada@intel.com (mailing list archive)
State New, archived
Headers show
Series [1/2] drm/i915/mtl: Add the missing CPU transcoder mask in intel_device_info | expand

Commit Message

Sripada, Radhakrishna April 20, 2023, 10:12 p.m. UTC
CPU transcoder mask is used to iterate over the available
CPU transcoders in the macro for_each_cpu_transcoder().

The macro is broken on MTL and got highlighted when audio
state was being tracked for each transcoder added in [1].

Add the missing CPU transcoder mask which is similar to ADL-P
mask but without DSI transcoders.

[1]: https://patchwork.freedesktop.org/patch/523723/

Fixes: 7835303982d1 ("drm/i915/mtl: Add MeteorLake PCI IDs")
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
---
 drivers/gpu/drm/i915/i915_pci.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Gustavo Sousa April 26, 2023, 12:48 p.m. UTC | #1
Quoting Radhakrishna Sripada (2023-04-20 19:12:47)
>CPU transcoder mask is used to iterate over the available
>CPU transcoders in the macro for_each_cpu_transcoder().
>
>The macro is broken on MTL and got highlighted when audio
>state was being tracked for each transcoder added in [1].
>
>Add the missing CPU transcoder mask which is similar to ADL-P
>mask but without DSI transcoders.
>
>[1]: https://patchwork.freedesktop.org/patch/523723/
>
>Fixes: 7835303982d1 ("drm/i915/mtl: Add MeteorLake PCI IDs")
>Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
>Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>

Acked-by: Gustavo Sousa <gustavo.sousa@intel.com>

>---
> drivers/gpu/drm/i915/i915_pci.c | 2 ++
> 1 file changed, 2 insertions(+)
>
>diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c
>index d64e074d7457..847057569796 100644
>--- a/drivers/gpu/drm/i915/i915_pci.c
>+++ b/drivers/gpu/drm/i915/i915_pci.c
>@@ -1135,6 +1135,8 @@ static const struct intel_gt_definition xelpmp_extra_gt[] = {
> static const struct intel_device_info mtl_info = {
>        XE_HP_FEATURES,
>        XE_LPDP_FEATURES,
>+  .__runtime.cpu_transcoder_mask = BIT(TRANSCODER_A) | BIT(TRANSCODER_B) |
>+                         BIT(TRANSCODER_C) | BIT(TRANSCODER_D),
>        /*
>         * Real graphics IP version will be obtained from hardware GMD_ID
>         * register.  Value provided here is just for sanity checking.
>-- 
>2.34.1
>
Kalvala, Haridhar April 26, 2023, 12:57 p.m. UTC | #2
On 4/21/2023 3:42 AM, Radhakrishna Sripada wrote:
> CPU transcoder mask is used to iterate over the available
> CPU transcoders in the macro for_each_cpu_transcoder().
>
> The macro is broken on MTL and got highlighted when audio
> state was being tracked for each transcoder added in [1].
>
> Add the missing CPU transcoder mask which is similar to ADL-P
> mask but without DSI transcoders.
>
> [1]:https://patchwork.freedesktop.org/patch/523723/
>
> Fixes: 7835303982d1 ("drm/i915/mtl: Add MeteorLake PCI IDs")
> Cc: Ville Syrjälä<ville.syrjala@linux.intel.com>
> Signed-off-by: Radhakrishna Sripada<radhakrishna.sripada@intel.com>

Acked-by: Haridhar Kalvala <haridhar.kalvala@intel.com>

> ---
>   drivers/gpu/drm/i915/i915_pci.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c
> index d64e074d7457..847057569796 100644
> --- a/drivers/gpu/drm/i915/i915_pci.c
> +++ b/drivers/gpu/drm/i915/i915_pci.c
> @@ -1135,6 +1135,8 @@ static const struct intel_gt_definition xelpmp_extra_gt[] = {
>   static const struct intel_device_info mtl_info = {
>   	XE_HP_FEATURES,
>   	XE_LPDP_FEATURES,
> +	.__runtime.cpu_transcoder_mask = BIT(TRANSCODER_A) | BIT(TRANSCODER_B) |
> +			       BIT(TRANSCODER_C) | BIT(TRANSCODER_D),
>   	/*
>   	 * Real graphics IP version will be obtained from hardware GMD_ID
>   	 * register.  Value provided here is just for sanity checking.
Gustavo Sousa April 26, 2023, 7:23 p.m. UTC | #3
Quoting Gustavo Sousa (2023-04-26 09:48:09)
>Quoting Radhakrishna Sripada (2023-04-20 19:12:47)
>>CPU transcoder mask is used to iterate over the available
>>CPU transcoders in the macro for_each_cpu_transcoder().
>>
>>The macro is broken on MTL and got highlighted when audio
>>state was being tracked for each transcoder added in [1].
>>
>>Add the missing CPU transcoder mask which is similar to ADL-P
>>mask but without DSI transcoders.
>>
>>[1]: https://patchwork.freedesktop.org/patch/523723/
>>
>>Fixes: 7835303982d1 ("drm/i915/mtl: Add MeteorLake PCI IDs")
>>Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
>>Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
>
>Acked-by: Gustavo Sousa <gustavo.sousa@intel.com>

Promoting this to a

Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>

>
>>---
>> drivers/gpu/drm/i915/i915_pci.c | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>>diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c
>>index d64e074d7457..847057569796 100644
>>--- a/drivers/gpu/drm/i915/i915_pci.c
>>+++ b/drivers/gpu/drm/i915/i915_pci.c
>>@@ -1135,6 +1135,8 @@ static const struct intel_gt_definition xelpmp_extra_gt[] = {
>> static const struct intel_device_info mtl_info = {
>>        XE_HP_FEATURES,
>>        XE_LPDP_FEATURES,
>>+  .__runtime.cpu_transcoder_mask = BIT(TRANSCODER_A) | BIT(TRANSCODER_B) |
>>+                         BIT(TRANSCODER_C) | BIT(TRANSCODER_D),
>>        /*
>>         * Real graphics IP version will be obtained from hardware GMD_ID
>>         * register.  Value provided here is just for sanity checking.
>>-- 
>>2.34.1
>>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c
index d64e074d7457..847057569796 100644
--- a/drivers/gpu/drm/i915/i915_pci.c
+++ b/drivers/gpu/drm/i915/i915_pci.c
@@ -1135,6 +1135,8 @@  static const struct intel_gt_definition xelpmp_extra_gt[] = {
 static const struct intel_device_info mtl_info = {
 	XE_HP_FEATURES,
 	XE_LPDP_FEATURES,
+	.__runtime.cpu_transcoder_mask = BIT(TRANSCODER_A) | BIT(TRANSCODER_B) |
+			       BIT(TRANSCODER_C) | BIT(TRANSCODER_D),
 	/*
 	 * Real graphics IP version will be obtained from hardware GMD_ID
 	 * register.  Value provided here is just for sanity checking.