Skip to contentSkip to conversation

drm/i915: Fix i915_error_state_store error defination

PATCH In review Zhang Xiaoxu 4 participants 6 messages Jan 17, 2020 – Jan 18, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: Fix i915_error_state_store error defination

Since commit 742379c0c4001 ("drm/i915: Start chopping up the GPU error capture"), function 'i915_error_state_store' was defined and used with only one parameter.

But if no 'CONFIG_DRM_I915_CAPTURE_ERROR', this function was defined with two parameter.

This may lead compile error. This patch fix it.

---
 drivers/gpu/drm/i915/i915_gpu_error.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_gpu_error.h +1 -2
index 9109004956bd..41c1475e1500 100644
@@ -314,8 +314,7 @@ i915_vma_capture_finish(struct intel_gt_coredump *gt,
 }
 
 static inline void
-i915_error_state_store(struct drm_i915_private *i915,
-		       struct i915_gpu_coredump *error)
+i915_error_state_store(struct i915_gpu_coredump *error)
 {
 }
 
Signature · 6 lines
2.17.2

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw

Hi Zhang,

Quoted 10 lines · Zhang Xiaoxu

Since commit 742379c0c4001 ("drm/i915: Start chopping up the GPU error capture"), function 'i915_error_state_store' was defined and used with only one parameter.

But if no 'CONFIG_DRM_I915_CAPTURE_ERROR', this function was defined with two parameter.

This may lead compile error. This patch fix it.

I've never been a fan of non human accounts, we had this discussion already in a different mailing list. Could you please find a different way of giving credit to your CI system?

Quoted 10 lines
---
 drivers/gpu/drm/i915/i915_gpu_error.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_gpu_error.h +0 -0
index 9109004956bd..41c1475e1500 100644

drivers/gpu/drm/i915/i915_gpu_error.h i915_vma_capture_finish(struct intel_gt_coredump *gt, · line 317

Quoted 6 lines
drivers/gpu/drm/i915/i915_gpu_error.h +1 -2
@@ -314,8 +314,7 @@ i915_vma_capture_finish(struct intel_gt_coredump *gt,
 }
 
 static inline void
-i915_error_state_store(struct drm_i915_private *i915,
-		       struct i915_gpu_coredump *error)
+i915_error_state_store(struct i915_gpu_coredump *error)

ouch! that's an oversight.

Thanks for your patch,

Andi
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

maintainer
#2 lore raw
Quoted 10 lines · Andi Shyti

Hi Zhang,

Quoted 7 lines · Zhang Xiaoxu

Since commit 742379c0c4001 ("drm/i915: Start chopping up the GPU error capture"), function 'i915_error_state_store' was defined and used with only one parameter.

But if no 'CONFIG_DRM_I915_CAPTURE_ERROR', this function was defined with two parameter.

Quoted 7 lines
Quoted 3 lines

This may lead compile error. This patch fix it.

I've never been a fan of non human accounts, we had this discussion already in a different mailing list. Could you please find a different way of giving credit to your CI system?

I don't actually mind for Reported-by credits. The history is full of things like:

Care to reference the discussion?

BR,
Janid.

Quoted 25 lines
Quoted 11 lines
---
 drivers/gpu/drm/i915/i915_gpu_error.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_gpu_error.h +0 -0
index 9109004956bd..41c1475e1500 100644

drivers/gpu/drm/i915/i915_gpu_error.h i915_vma_capture_finish(struct intel_gt_coredump *gt, · line 317

Quoted 6 lines
drivers/gpu/drm/i915/i915_gpu_error.h +1 -2
@@ -314,8 +314,7 @@ i915_vma_capture_finish(struct intel_gt_coredump *gt,
 }
 
 static inline void
-i915_error_state_store(struct drm_i915_private *i915,
-		       struct i915_gpu_coredump *error)
+i915_error_state_store(struct i915_gpu_coredump *error)

ouch! that's an oversight.

Thanks for your patch,

Andi

Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw

Hi Jani,

Quoted 11 lines
Quoted 5 lines
Quoted 1 line

I've never been a fan of non human accounts, we had this discussion already in a different mailing list. Could you please find a different way of giving credit to your CI system?

I don't actually mind for Reported-by credits. The history is full of things like:

That's just commit log unnecessary pollution, unwanted mail reference... no one will ever answer at [email protected], why reference it, then?

Quoted 1 line

Care to reference the discussion?

Here in the Samsung list we had a discussion with another Huawei developer about the Hulk Robot:

https://lkml.org/lkml/2019/9/4/635

Andi
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

maintainer
#4 lore raw
Quoted 11 lines · Andi Shyti

Hi Jani,

Quoted 9 lines
Quoted 5 lines
Quoted 1 line

I've never been a fan of non human accounts, we had this discussion already in a different mailing list. Could you please find a different way of giving credit to your CI system?

I don't actually mind for Reported-by credits. The history is full of things like:

Quoted 6 lines
Quoted 2 lines

That's just commit log unnecessary pollution, unwanted mail reference... no one will ever answer at [email protected], why reference it, then?

It's not about that, it's about giving credit to whom credit is due.

Quoted 6 lines
Quoted 1 line

Care to reference the discussion?

Here in the Samsung list we had a discussion with another Huawei developer about the Hulk Robot:

https://lkml.org/lkml/2019/9/4/635

Well, there's no consensus there either.

Again, if they want to use that Reported-by: line, I'm fine with it.

BR,
Jani.

Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#5 lore raw

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Fix i915_error_state_store error defination

In reply to Zhang Xiaoxu
== Series Details ==

== Series Details ==

Series: drm/i915: Fix i915_error_state_store error defination
URL : https://patchwork.freedesktop.org/series/72220/
State : failure

== Summary ==

Applying: drm/i915: Fix i915_error_state_store error defination Using index info to reconstruct a base tree...
M drivers/gpu/drm/i915/i915_gpu_error.h
Falling back to patching base and 3-way merge...
No changes -- Patch already applied.

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx