* [PATCH] drm/i915/guc/slpc: Use wrapper for reading RP_STATE_CAP
@ 2022-02-16 2:58 ` Vinay Belgaumkar
0 siblings, 0 replies; 5+ messages in thread
From: Vinay Belgaumkar @ 2022-02-16 2:58 UTC (permalink / raw)
To: intel-gfx, dri-devel; +Cc: Vinay Belgaumkar
This will ensure correct values for Gen12+ platforms.
Cc: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
---
drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c b/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
index 13b27b8ff74e..cf075e726699 100644
--- a/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
+++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
@@ -6,6 +6,7 @@
#include "i915_drv.h"
#include "intel_guc_slpc.h"
#include "gt/intel_gt.h"
+#include "gt/intel_rps.h"
static inline struct intel_guc *slpc_to_guc(struct intel_guc_slpc *slpc)
{
@@ -574,10 +575,10 @@ static int slpc_use_fused_rp0(struct intel_guc_slpc *slpc)
static void slpc_get_rp_values(struct intel_guc_slpc *slpc)
{
+ struct intel_rps *rps = &slpc_to_gt(slpc)->rps;
u32 rp_state_cap;
- rp_state_cap = intel_uncore_read(slpc_to_gt(slpc)->uncore,
- GEN6_RP_STATE_CAP);
+ rp_state_cap = intel_rps_read_state_cap(rps);
slpc->rp0_freq = REG_FIELD_GET(RP0_CAP_MASK, rp_state_cap) *
GT_FREQUENCY_MULTIPLIER;
--
2.34.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Intel-gfx] [PATCH] drm/i915/guc/slpc: Use wrapper for reading RP_STATE_CAP
@ 2022-02-16 2:58 ` Vinay Belgaumkar
0 siblings, 0 replies; 5+ messages in thread
From: Vinay Belgaumkar @ 2022-02-16 2:58 UTC (permalink / raw)
To: intel-gfx, dri-devel
This will ensure correct values for Gen12+ platforms.
Cc: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
---
drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c b/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
index 13b27b8ff74e..cf075e726699 100644
--- a/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
+++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
@@ -6,6 +6,7 @@
#include "i915_drv.h"
#include "intel_guc_slpc.h"
#include "gt/intel_gt.h"
+#include "gt/intel_rps.h"
static inline struct intel_guc *slpc_to_guc(struct intel_guc_slpc *slpc)
{
@@ -574,10 +575,10 @@ static int slpc_use_fused_rp0(struct intel_guc_slpc *slpc)
static void slpc_get_rp_values(struct intel_guc_slpc *slpc)
{
+ struct intel_rps *rps = &slpc_to_gt(slpc)->rps;
u32 rp_state_cap;
- rp_state_cap = intel_uncore_read(slpc_to_gt(slpc)->uncore,
- GEN6_RP_STATE_CAP);
+ rp_state_cap = intel_rps_read_state_cap(rps);
slpc->rp0_freq = REG_FIELD_GET(RP0_CAP_MASK, rp_state_cap) *
GT_FREQUENCY_MULTIPLIER;
--
2.34.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915/guc/slpc: Use wrapper for reading RP_STATE_CAP
2022-02-16 2:58 ` [Intel-gfx] " Vinay Belgaumkar
(?)
@ 2022-02-17 2:42 ` Patchwork
-1 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2022-02-17 2:42 UTC (permalink / raw)
To: Vinay Belgaumkar; +Cc: intel-gfx
== Series Details ==
Series: drm/i915/guc/slpc: Use wrapper for reading RP_STATE_CAP
URL : https://patchwork.freedesktop.org/series/100217/
State : failure
== Summary ==
Applying: drm/i915/guc/slpc: Use wrapper for reading RP_STATE_CAP
Using index info to reconstruct a base tree...
M drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
Falling back to patching base and 3-way merge...
Auto-merging drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
CONFLICT (content): Merge conflict in drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 drm/i915/guc/slpc: Use wrapper for reading RP_STATE_CAP
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/i915/guc/slpc: Use wrapper for reading RP_STATE_CAP
2022-02-16 2:58 ` [Intel-gfx] " Vinay Belgaumkar
@ 2022-02-17 6:25 ` Matt Roper
-1 siblings, 0 replies; 5+ messages in thread
From: Matt Roper @ 2022-02-17 6:25 UTC (permalink / raw)
To: Vinay Belgaumkar; +Cc: intel-gfx, dri-devel
On Tue, Feb 15, 2022 at 06:58:17PM -0800, Vinay Belgaumkar wrote:
> This will ensure correct values for Gen12+ platforms.
>
> Cc: Matt Roper <matthew.d.roper@intel.com>
> Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
> ---
> drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c b/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
> index 13b27b8ff74e..cf075e726699 100644
> --- a/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
> +++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
> @@ -6,6 +6,7 @@
> #include "i915_drv.h"
> #include "intel_guc_slpc.h"
> #include "gt/intel_gt.h"
> +#include "gt/intel_rps.h"
>
> static inline struct intel_guc *slpc_to_guc(struct intel_guc_slpc *slpc)
> {
> @@ -574,10 +575,10 @@ static int slpc_use_fused_rp0(struct intel_guc_slpc *slpc)
>
> static void slpc_get_rp_values(struct intel_guc_slpc *slpc)
> {
> + struct intel_rps *rps = &slpc_to_gt(slpc)->rps;
> u32 rp_state_cap;
>
> - rp_state_cap = intel_uncore_read(slpc_to_gt(slpc)->uncore,
> - GEN6_RP_STATE_CAP);
> + rp_state_cap = intel_rps_read_state_cap(rps);
>
> slpc->rp0_freq = REG_FIELD_GET(RP0_CAP_MASK, rp_state_cap) *
> GT_FREQUENCY_MULTIPLIER;
> --
> 2.34.0
>
--
Matt Roper
Graphics Software Engineer
VTT-OSGC Platform Enablement
Intel Corporation
(916) 356-2795
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Intel-gfx] [PATCH] drm/i915/guc/slpc: Use wrapper for reading RP_STATE_CAP
@ 2022-02-17 6:25 ` Matt Roper
0 siblings, 0 replies; 5+ messages in thread
From: Matt Roper @ 2022-02-17 6:25 UTC (permalink / raw)
To: Vinay Belgaumkar; +Cc: intel-gfx, dri-devel
On Tue, Feb 15, 2022 at 06:58:17PM -0800, Vinay Belgaumkar wrote:
> This will ensure correct values for Gen12+ platforms.
>
> Cc: Matt Roper <matthew.d.roper@intel.com>
> Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
> ---
> drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c b/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
> index 13b27b8ff74e..cf075e726699 100644
> --- a/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
> +++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
> @@ -6,6 +6,7 @@
> #include "i915_drv.h"
> #include "intel_guc_slpc.h"
> #include "gt/intel_gt.h"
> +#include "gt/intel_rps.h"
>
> static inline struct intel_guc *slpc_to_guc(struct intel_guc_slpc *slpc)
> {
> @@ -574,10 +575,10 @@ static int slpc_use_fused_rp0(struct intel_guc_slpc *slpc)
>
> static void slpc_get_rp_values(struct intel_guc_slpc *slpc)
> {
> + struct intel_rps *rps = &slpc_to_gt(slpc)->rps;
> u32 rp_state_cap;
>
> - rp_state_cap = intel_uncore_read(slpc_to_gt(slpc)->uncore,
> - GEN6_RP_STATE_CAP);
> + rp_state_cap = intel_rps_read_state_cap(rps);
>
> slpc->rp0_freq = REG_FIELD_GET(RP0_CAP_MASK, rp_state_cap) *
> GT_FREQUENCY_MULTIPLIER;
> --
> 2.34.0
>
--
Matt Roper
Graphics Software Engineer
VTT-OSGC Platform Enablement
Intel Corporation
(916) 356-2795
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-02-17 6:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-16 2:58 [PATCH] drm/i915/guc/slpc: Use wrapper for reading RP_STATE_CAP Vinay Belgaumkar
2022-02-16 2:58 ` [Intel-gfx] " Vinay Belgaumkar
2022-02-17 2:42 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for " Patchwork
2022-02-17 6:25 ` [PATCH] " Matt Roper
2022-02-17 6:25 ` [Intel-gfx] " Matt Roper
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.