diff mbox

[23/67] drm/i915/gen10: Set value of Indirect Context Offset for gen10

Message ID 1491506163-14587-23-git-send-email-rodrigo.vivi@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Rodrigo Vivi April 6, 2017, 7:15 p.m. UTC
From: Michel Thierry <michel.thierry@intel.com>

v2: rebased to intel_lr_indirect_ctx_offset

Signed-off-by: Michel Thierry <michel.thierry@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
 drivers/gpu/drm/i915/intel_lrc.c | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Tvrtko Ursulin June 2, 2017, 9:50 a.m. UTC | #1
On 06/04/2017 20:15, Rodrigo Vivi wrote:
> From: Michel Thierry <michel.thierry@intel.com>
> 

Some commit message needed just to satisfy the form.

> v2: rebased to intel_lr_indirect_ctx_offset
> 
> Signed-off-by: Michel Thierry <michel.thierry@intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
>   drivers/gpu/drm/i915/intel_lrc.c | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c
> index f2d57b4..ac38469 100644
> --- a/drivers/gpu/drm/i915/intel_lrc.c
> +++ b/drivers/gpu/drm/i915/intel_lrc.c
> @@ -209,6 +209,7 @@
>   
>   #define GEN8_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT	0x17
>   #define GEN9_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT	0x26
> +#define GEN10_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT	0x19
>   
>   /* Typical size of the average request (2 pipecontrols and a MI_BB) */
>   #define EXECLISTS_REQUEST_SIZE 64 /* bytes */
> @@ -1787,6 +1788,10 @@ static u32 intel_lr_indirect_ctx_offset(struct intel_engine_cs *engine)
>   	default:
>   		MISSING_CASE(INTEL_GEN(engine->i915));
>   		/* fall through */
> +	case 10:
> +		indirect_ctx_offset =
> +			GEN10_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT;
> +		break;
>   	case 9:
>   		indirect_ctx_offset =
>   			GEN9_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT;
> 

After some documentation and commit log traversing to find the relevant 
page, and with a short sentence in the commit message:

Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

Regards,

Tvrtko
Rodrigo Vivi June 5, 2017, 5:11 p.m. UTC | #2
On Fri, 2017-06-02 at 10:50 +0100, Tvrtko Ursulin wrote:
> On 06/04/2017 20:15, Rodrigo Vivi wrote:

> > From: Michel Thierry <michel.thierry@intel.com>

> > 

> 

> Some commit message needed just to satisfy the form.


What about:

Indirect Context Offset Pointer has changed for Cannonlake.

INDIRECT_CTX_OFFSET[15:6] valid value for CNL is 19h per Spec.

> 

> > v2: rebased to intel_lr_indirect_ctx_offset

> > 

> > Signed-off-by: Michel Thierry <michel.thierry@intel.com>

> > Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

> > ---

> >   drivers/gpu/drm/i915/intel_lrc.c | 5 +++++

> >   1 file changed, 5 insertions(+)

> > 

> > diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c

> > index f2d57b4..ac38469 100644

> > --- a/drivers/gpu/drm/i915/intel_lrc.c

> > +++ b/drivers/gpu/drm/i915/intel_lrc.c

> > @@ -209,6 +209,7 @@

> >   

> >   #define GEN8_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT	0x17

> >   #define GEN9_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT	0x26

> > +#define GEN10_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT	0x19

> >   

> >   /* Typical size of the average request (2 pipecontrols and a MI_BB) */

> >   #define EXECLISTS_REQUEST_SIZE 64 /* bytes */

> > @@ -1787,6 +1788,10 @@ static u32 intel_lr_indirect_ctx_offset(struct intel_engine_cs *engine)

> >   	default:

> >   		MISSING_CASE(INTEL_GEN(engine->i915));

> >   		/* fall through */

> > +	case 10:

> > +		indirect_ctx_offset =

> > +			GEN10_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT;

> > +		break;

> >   	case 9:

> >   		indirect_ctx_offset =

> >   			GEN9_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT;

> > 

> 

> After some documentation and commit log traversing to find the relevant 

> page, and with a short sentence in the commit message:


is the above enough?

Bspec index/11740
or CNL:BUG:1929753

> 

> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

> 

> Regards,

> 

> Tvrtko
Tvrtko Ursulin June 6, 2017, 6:48 a.m. UTC | #3
On 05/06/2017 18:11, Vivi, Rodrigo wrote:
> On Fri, 2017-06-02 at 10:50 +0100, Tvrtko Ursulin wrote:
>> On 06/04/2017 20:15, Rodrigo Vivi wrote:
>>> From: Michel Thierry <michel.thierry@intel.com>
>>>
>>
>> Some commit message needed just to satisfy the form.
> 
> What about:
> 
> Indirect Context Offset Pointer has changed for Cannonlake.
> 
> INDIRECT_CTX_OFFSET[15:6] valid value for CNL is 19h per Spec.

Completely fine.

>>
>>> v2: rebased to intel_lr_indirect_ctx_offset
>>>
>>> Signed-off-by: Michel Thierry <michel.thierry@intel.com>
>>> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
>>> ---
>>>    drivers/gpu/drm/i915/intel_lrc.c | 5 +++++
>>>    1 file changed, 5 insertions(+)
>>>
>>> diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c
>>> index f2d57b4..ac38469 100644
>>> --- a/drivers/gpu/drm/i915/intel_lrc.c
>>> +++ b/drivers/gpu/drm/i915/intel_lrc.c
>>> @@ -209,6 +209,7 @@
>>>    
>>>    #define GEN8_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT	0x17
>>>    #define GEN9_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT	0x26
>>> +#define GEN10_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT	0x19
>>>    
>>>    /* Typical size of the average request (2 pipecontrols and a MI_BB) */
>>>    #define EXECLISTS_REQUEST_SIZE 64 /* bytes */
>>> @@ -1787,6 +1788,10 @@ static u32 intel_lr_indirect_ctx_offset(struct intel_engine_cs *engine)
>>>    	default:
>>>    		MISSING_CASE(INTEL_GEN(engine->i915));
>>>    		/* fall through */
>>> +	case 10:
>>> +		indirect_ctx_offset =
>>> +			GEN10_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT;
>>> +		break;
>>>    	case 9:
>>>    		indirect_ctx_offset =
>>>    			GEN9_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT;
>>>
>>
>> After some documentation and commit log traversing to find the relevant
>> page, and with a short sentence in the commit message:
> 
> is the above enough?
> 
> Bspec index/11740
> or CNL:BUG:1929753

If we have decided to start putting in those that's fine by me.

Regards,

Tvrtko

> 
>>
>> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>>
>> Regards,
>>
>> Tvrtko
>
Rodrigo Vivi June 6, 2017, 3:18 p.m. UTC | #4
On Tue, 2017-06-06 at 07:48 +0100, Tvrtko Ursulin wrote:
> On 05/06/2017 18:11, Vivi, Rodrigo wrote:

> > On Fri, 2017-06-02 at 10:50 +0100, Tvrtko Ursulin wrote:

> >> On 06/04/2017 20:15, Rodrigo Vivi wrote:

> >>> From: Michel Thierry <michel.thierry@intel.com>

> >>>

> >>

> >> Some commit message needed just to satisfy the form.

> > 

> > What about:

> > 

> > Indirect Context Offset Pointer has changed for Cannonlake.

> > 

> > INDIRECT_CTX_OFFSET[15:6] valid value for CNL is 19h per Spec.

> 

> Completely fine.

> 

> >>

> >>> v2: rebased to intel_lr_indirect_ctx_offset

> >>>

> >>> Signed-off-by: Michel Thierry <michel.thierry@intel.com>

> >>> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

> >>> ---

> >>>    drivers/gpu/drm/i915/intel_lrc.c | 5 +++++

> >>>    1 file changed, 5 insertions(+)

> >>>

> >>> diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c

> >>> index f2d57b4..ac38469 100644

> >>> --- a/drivers/gpu/drm/i915/intel_lrc.c

> >>> +++ b/drivers/gpu/drm/i915/intel_lrc.c

> >>> @@ -209,6 +209,7 @@

> >>>    

> >>>    #define GEN8_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT	0x17

> >>>    #define GEN9_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT	0x26

> >>> +#define GEN10_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT	0x19

> >>>    

> >>>    /* Typical size of the average request (2 pipecontrols and a MI_BB) */

> >>>    #define EXECLISTS_REQUEST_SIZE 64 /* bytes */

> >>> @@ -1787,6 +1788,10 @@ static u32 intel_lr_indirect_ctx_offset(struct intel_engine_cs *engine)

> >>>    	default:

> >>>    		MISSING_CASE(INTEL_GEN(engine->i915));

> >>>    		/* fall through */

> >>> +	case 10:

> >>> +		indirect_ctx_offset =

> >>> +			GEN10_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT;

> >>> +		break;

> >>>    	case 9:

> >>>    		indirect_ctx_offset =

> >>>    			GEN9_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT;

> >>>

> >>

> >> After some documentation and commit log traversing to find the relevant

> >> page, and with a short sentence in the commit message:

> > 

> > is the above enough?

> > 

> > Bspec index/11740

> > or CNL:BUG:1929753

> 

> If we have decided to start putting in those that's fine by me.


No, I don't believe it is good to add those...
Just sent for your quickly reference/access to the spec...

> 

> Regards,

> 

> Tvrtko

> 

> > 

> >>

> >> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

> >>

> >> Regards,

> >>

> >> Tvrtko

> >
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c
index f2d57b4..ac38469 100644
--- a/drivers/gpu/drm/i915/intel_lrc.c
+++ b/drivers/gpu/drm/i915/intel_lrc.c
@@ -209,6 +209,7 @@ 
 
 #define GEN8_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT	0x17
 #define GEN9_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT	0x26
+#define GEN10_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT	0x19
 
 /* Typical size of the average request (2 pipecontrols and a MI_BB) */
 #define EXECLISTS_REQUEST_SIZE 64 /* bytes */
@@ -1787,6 +1788,10 @@  static u32 intel_lr_indirect_ctx_offset(struct intel_engine_cs *engine)
 	default:
 		MISSING_CASE(INTEL_GEN(engine->i915));
 		/* fall through */
+	case 10:
+		indirect_ctx_offset =
+			GEN10_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT;
+		break;
 	case 9:
 		indirect_ctx_offset =
 			GEN9_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT;