Skip to contentSkip to conversation

drm/i915: Compile fix for 64b dma-fence seqno

PATCH In review Mika Kuoppala 4 participants 6 messages Dec 7, 2018

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

PATCH 1/1 drm/i915: Compile fix for 64b dma-fence seqno

Many errs of the form:
drivers/gpu/drm/i915/selftests/intel_hangcheck.c: In function ‘__igt_reset_evict_vma’:
./include/linux/kern_levels.h:5:18: error: format ‘%x’ expects argument of type ‘unsigned int’, but argum

Fixes b312d8ca3a7c ("dma-buf: make fence sequence numbers 64 bit v2")
Cc Christian König <[email protected]>
Cc Chunming Zhou <[email protected]>
Cc Chris Wilson <[email protected]>
Cc Joonas Lahtinen <[email protected]>
---
 drivers/gpu/drm/i915/i915_gem.c                  |  4 ++--
 drivers/gpu/drm/i915/i915_gem_context.c          |  8 ++++----
 drivers/gpu/drm/i915/i915_request.c              | 12 ++++++------
 drivers/gpu/drm/i915/intel_lrc.c                 |  6 +++---
 drivers/gpu/drm/i915/selftests/intel_hangcheck.c | 14 +++++++-------
 5 files changed, 22 insertions(+), 22 deletions(-)
drivers/gpu/drm/i915/i915_gem.c +2 -2
index d36a9755ad91..649847b87e41 100644
@@ -3187,7 +3187,7 @@ i915_gem_reset_request(struct intel_engine_cs *engine,
 	 */
 
 	if (i915_request_completed(request)) {
-		GEM_TRACE("%s pardoned global=%d (fence %llx:%d), current %d\n",
+		GEM_TRACE("%s pardoned global=%d (fence %llx:%lld), current %d\n",
 			  engine->name, request->global_seqno,
 			  request->fence.context, request->fence.seqno,
 			  intel_engine_get_seqno(engine));
@@ -3311,7 +3311,7 @@ static void nop_submit_request(struct i915_request *request)
 {
 	unsigned long flags;
 
-	GEM_TRACE("%s fence %llx:%d -> -EIO\n",
+	GEM_TRACE("%s fence %llx:%lld -> -EIO\n",
 		  request->engine->name,
 		  request->fence.context, request->fence.seqno);
 	dma_fence_set_error(&request->fence, -EIO);
drivers/gpu/drm/i915/i915_gem_context.c +4 -4
index 371c07087095..4ec386950f75 100644
@@ -649,7 +649,7 @@ last_request_on_engine(struct i915_timeline *timeline,
 	rq = i915_gem_active_raw(&timeline->last_request,
 				 &engine->i915->drm.struct_mutex);
 	if (rq && rq->engine == engine) {
-		GEM_TRACE("last request for %s on engine %s: %llx:%d\n",
+		GEM_TRACE("last request for %s on engine %s: %llx:%llu\n",
 			  timeline->name, engine->name,
 			  rq->fence.context, rq->fence.seqno);
 		GEM_BUG_ON(rq->timeline != timeline);
@@ -686,14 +686,14 @@ static bool engine_has_kernel_context_barrier(struct intel_engine_cs *engine)
 		 * switch-to-kernel-context?
 		 */
 		if (!i915_timeline_sync_is_later(barrier, &rq->fence)) {
-			GEM_TRACE("%s needs barrier for %llx:%d\n",
+			GEM_TRACE("%s needs barrier for %llx:%lld\n",
 				  ring->timeline->name,
 				  rq->fence.context,
 				  rq->fence.seqno);
 			return false;
 		}
 
-		GEM_TRACE("%s has barrier after %llx:%d\n",
+		GEM_TRACE("%s has barrier after %llx:%lld\n",
 			  ring->timeline->name,
 			  rq->fence.context,
 			  rq->fence.seqno);
@@ -749,7 +749,7 @@ int i915_gem_switch_to_kernel_context(struct drm_i915_private *i915)
 			if (prev->gem_context == i915->kernel_context)
 				continue;
 
-			GEM_TRACE("add barrier on %s for %llx:%d\n",
+			GEM_TRACE("add barrier on %s for %llx:%lld\n",
 				  engine->name,
 				  prev->fence.context,
 				  prev->fence.seqno);
drivers/gpu/drm/i915/i915_request.c +6 -6
index ca95ab2f4cfa..cefefc11d922 100644
@@ -270,7 +270,7 @@ static void free_capture_list(struct i915_request *request)
 static void __retire_engine_request(struct intel_engine_cs *engine,
 				    struct i915_request *rq)
 {
-	GEM_TRACE("%s(%s) fence %llx:%d, global=%d, current %d\n",
+	GEM_TRACE("%s(%s) fence %llx:%lld, global=%d, current %d\n",
 		  __func__, engine->name,
 		  rq->fence.context, rq->fence.seqno,
 		  rq->global_seqno,
@@ -332,7 +332,7 @@ static void i915_request_retire(struct i915_request *request)
 {
 	struct i915_gem_active *active, *next;
 
-	GEM_TRACE("%s fence %llx:%d, global=%d, current %d\n",
+	GEM_TRACE("%s fence %llx:%lld, global=%d, current %d\n",
 		  request->engine->name,
 		  request->fence.context, request->fence.seqno,
 		  request->global_seqno,
@@ -395,7 +395,7 @@ void i915_request_retire_upto(struct i915_request *rq)
 	struct intel_ring *ring = rq->ring;
 	struct i915_request *tmp;
 
-	GEM_TRACE("%s fence %llx:%d, global=%d, current %d\n",
+	GEM_TRACE("%s fence %llx:%lld, global=%d, current %d\n",
 		  rq->engine->name,
 		  rq->fence.context, rq->fence.seqno,
 		  rq->global_seqno,
@@ -436,7 +436,7 @@ void __i915_request_submit(struct i915_request *request)
 	struct intel_engine_cs *engine = request->engine;
 	u32 seqno;
 
-	GEM_TRACE("%s fence %llx:%d -> global=%d, current %d\n",
+	GEM_TRACE("%s fence %llx:%lld -> global=%d, current %d\n",
 		  engine->name,
 		  request->fence.context, request->fence.seqno,
 		  engine->timeline.seqno + 1,
@@ -486,7 +486,7 @@ void __i915_request_unsubmit(struct i915_request *request)
 {
 	struct intel_engine_cs *engine = request->engine;
 
-	GEM_TRACE("%s fence %llx:%d <- global=%d, current %d\n",
+	GEM_TRACE("%s fence %llx:%lld <- global=%d, current %d\n",
 		  engine->name,
 		  request->fence.context, request->fence.seqno,
 		  request->global_seqno,
@@ -961,7 +961,7 @@ void i915_request_add(struct i915_request *request)
 	struct i915_request *prev;
 	u32 *cs;
 
-	GEM_TRACE("%s fence %llx:%d\n",
+	GEM_TRACE("%s fence %llx:%lld\n",
 		  engine->name, request->fence.context, request->fence.seqno);
 
 	lockdep_assert_held(&request->i915->drm.struct_mutex);
drivers/gpu/drm/i915/intel_lrc.c +3 -3
index 3a47a4732fae..d2be283c45cc 100644
@@ -455,7 +455,7 @@ static void execlists_submit_ports(struct intel_engine_cs *engine)
 			desc = execlists_update_context(rq);
 			GEM_DEBUG_EXEC(port[n].context_id = upper_32_bits(desc));
 
-			GEM_TRACE("%s in[%d]:  ctx=%d.%d, global=%d (fence %llx:%d) (current %d), prio=%d\n",
+			GEM_TRACE("%s in[%d]:  ctx=%d.%d, global=%d (fence %llx:%lld) (current %d), prio=%d\n",
 				  engine->name, n,
 				  port[n].context_id, count,
 				  rq->global_seqno,
@@ -748,7 +748,7 @@ execlists_cancel_port_requests(struct intel_engine_execlists * const execlists)
 	while (num_ports-- && port_isset(port)) {
 		struct i915_request *rq = port_request(port);
 
-		GEM_TRACE("%s:port%u global=%d (fence %llx:%d), (current %d)\n",
+		GEM_TRACE("%s:port%u global=%d (fence %llx:%lld), (current %d)\n",
 			  rq->engine->name,
 			  (unsigned int)(port - execlists->port),
 			  rq->global_seqno,
@@ -976,7 +976,7 @@ static void process_csb(struct intel_engine_cs *engine)
 						EXECLISTS_ACTIVE_USER));
 
 		rq = port_unpack(port, &count);
-		GEM_TRACE("%s out[0]: ctx=%d.%d, global=%d (fence %llx:%d) (current %d), prio=%d\n",
+		GEM_TRACE("%s out[0]: ctx=%d.%d, global=%d (fence %llx:%lld) (current %d), prio=%d\n",
 			  engine->name,
 			  port->context_id, count,
 			  rq ? rq->global_seqno : 0,
drivers/gpu/drm/i915/selftests/intel_hangcheck.c +7 -7
index 60a4bd9405be..805e40aff407 100644
@@ -450,7 +450,7 @@ static int __igt_reset_engine(struct drm_i915_private *i915, bool active)
 				if (!wait_until_running(&h, rq)) {
 					struct drm_printer p = drm_info_printer(i915->drm.dev);
 
-					pr_err("%s: Failed to start request %x, at %x\n",
+					pr_err("%s: Failed to start request %llx, at %x\n",
 					       __func__, rq->fence.seqno, hws_seqno(&h, rq));
 					intel_engine_dump(engine, &p,
 							  "%s\n", engine->name);
@@ -551,7 +551,7 @@ static int active_request_put(struct i915_request *rq)
 		return 0;
 
 	if (i915_request_wait(rq, 0, 5 * HZ) < 0) {
-		GEM_TRACE("%s timed out waiting for completion of fence %llx:%d, seqno %d.\n",
+		GEM_TRACE("%s timed out waiting for completion of fence %llx:%lld, seqno %d.\n",
 			  rq->engine->name,
 			  rq->fence.context,
 			  rq->fence.seqno,
@@ -728,7 +728,7 @@ static int __igt_reset_engines(struct drm_i915_private *i915,
 				if (!wait_until_running(&h, rq)) {
 					struct drm_printer p = drm_info_printer(i915->drm.dev);
 
-					pr_err("%s: Failed to start request %x, at %x\n",
+					pr_err("%s: Failed to start request %llx, at %x\n",
 					       __func__, rq->fence.seqno, hws_seqno(&h, rq));
 					intel_engine_dump(engine, &p,
 							  "%s\n", engine->name);
@@ -927,7 +927,7 @@ static int igt_reset_wait(void *arg)
 	if (!wait_until_running(&h, rq)) {
 		struct drm_printer p = drm_info_printer(i915->drm.dev);
 
-		pr_err("%s: Failed to start request %x, at %x\n",
+		pr_err("%s: Failed to start request %llx, at %x\n",
 		       __func__, rq->fence.seqno, hws_seqno(&h, rq));
 		intel_engine_dump(rq->engine, &p, "%s\n", rq->engine->name);
 
@@ -1106,7 +1106,7 @@ static int __igt_reset_evict_vma(struct drm_i915_private *i915,
 	if (!wait_until_running(&h, rq)) {
 		struct drm_printer p = drm_info_printer(i915->drm.dev);
 
-		pr_err("%s: Failed to start request %x, at %x\n",
+		pr_err("%s: Failed to start request %llx, at %x\n",
 		       __func__, rq->fence.seqno, hws_seqno(&h, rq));
 		intel_engine_dump(rq->engine, &p, "%s\n", rq->engine->name);
 
@@ -1301,7 +1301,7 @@ static int igt_reset_queue(void *arg)
 			if (!wait_until_running(&h, prev)) {
 				struct drm_printer p = drm_info_printer(i915->drm.dev);
 
-				pr_err("%s(%s): Failed to start request %x, at %x\n",
+				pr_err("%s(%s): Failed to start request %llx, at %x\n",
 				       __func__, engine->name,
 				       prev->fence.seqno, hws_seqno(&h, prev));
 				intel_engine_dump(engine, &p,
@@ -1412,7 +1412,7 @@ static int igt_handle_error(void *arg)
 	if (!wait_until_running(&h, rq)) {
 		struct drm_printer p = drm_info_printer(i915->drm.dev);
 
-		pr_err("%s: Failed to start request %x, at %x\n",
+		pr_err("%s: Failed to start request %llx, at %x\n",
 		       __func__, rq->fence.seqno, hws_seqno(&h, rq));
 		intel_engine_dump(rq->engine, &p, "%s\n", rq->engine->name);
 
Signature · 6 lines
2.17.1

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

✗ Fi.CI.BAT: failure for drm/i915: Compile fix for 64b dma-fence seqno

== Series Details ==

== Series Details ==

Series: drm/i915: Compile fix for 64b dma-fence seqno
URL : https://patchwork.freedesktop.org/series/53750/
State : failure

== Summary ==

CALL scripts/checksyscalls.sh
DESCEND objtool
CHK include/generated/compile.h
CC [M] drivers/gpu/drm/i915/i915_gem_context.o
In file included from ./include/linux/list.h:9:0,

                 from ./include/linux/agp_backend.h:33,
                 from ./include/drm/drmP.h:35,
                 from drivers/gpu/drm/i915/i915_gem_context.c:89:
drivers/gpu/drm/i915/i915_gem_context.c: In function ‘last_request_on_engine’:
drivers/gpu/drm/i915/i915_gem_context.c:652:13: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘unsigned int’ [-Werror=format=]
   GEM_TRACE("last request for %s on engine %s: %llx:%llu\n",
             ^
drivers/gpu/drm/i915/i915_gem_context.c:654:25:
      rq->fence.context, rq->fence.seqno);
                         ~~~~~~~~~~~
./include/linux/kernel.h:682:33: note: in definition of macro ‘__trace_printk_check_format’
   ____trace_printk_check_format(fmt, ##args);  \
                                 ^~~

./include/linux/kernel.h:719:3: note: in expansion of macro ‘do_trace_printk’
do_trace_printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_gem.h:66:24: note: in expansion of macro ‘trace_printk’

 #define GEM_TRACE(...) trace_printk(__VA_ARGS__)
                        ^~~~~~~~~~~~

drivers/gpu/drm/i915/i915_gem_context.c:652:3: note: in expansion of macro ‘GEM_TRACE’
GEM_TRACE("last request for %s on engine %s: %llx:%llu\n",
^~~~~~~~~
drivers/gpu/drm/i915/i915_gem_context.c:652:13: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 6 has type ‘unsigned int’ [-Werror=format=]
GEM_TRACE("last request for %s on engine %s: %llx:%llu\n",

             ^
drivers/gpu/drm/i915/i915_gem_context.c:654:25:
      rq->fence.context, rq->fence.seqno);
                         ~~~~~~~~~~~
./include/linux/kernel.h:735:29: note: in definition of macro ‘do_trace_printk’
   __trace_printk(_THIS_IP_, fmt, ##args);   \
                             ^~~
drivers/gpu/drm/i915/i915_gem.h:66:24: note: in expansion of macro ‘trace_printk’
 #define GEM_TRACE(...) trace_printk(__VA_ARGS__)
                        ^~~~~~~~~~~~

drivers/gpu/drm/i915/i915_gem_context.c:652:3: note: in expansion of macro ‘GEM_TRACE’
GEM_TRACE("last request for %s on engine %s: %llx:%llu\n",
^~~~~~~~~
drivers/gpu/drm/i915/i915_gem_context.c: In function ‘engine_has_kernel_context_barrier’:
drivers/gpu/drm/i915/i915_gem_context.c:689:14: error: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘unsigned int’ [-Werror=format=]
GEM_TRACE("%s needs barrier for %llx:%lld\n",
^
drivers/gpu/drm/i915/i915_gem_context.c:692:7:

       rq->fence.seqno);
       ~~~~~~~~~~~
./include/linux/kernel.h:682:33: note: in definition of macro ‘__trace_printk_check_format’
   ____trace_printk_check_format(fmt, ##args);  \
                                 ^~~

./include/linux/kernel.h:719:3: note: in expansion of macro ‘do_trace_printk’
do_trace_printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_gem.h:66:24: note: in expansion of macro ‘trace_printk’

 #define GEM_TRACE(...) trace_printk(__VA_ARGS__)
                        ^~~~~~~~~~~~

drivers/gpu/drm/i915/i915_gem_context.c:689:4: note: in expansion of macro ‘GEM_TRACE’
GEM_TRACE("%s needs barrier for %llx:%lld\n",
^~~~~~~~~
drivers/gpu/drm/i915/i915_gem_context.c:689:14: error: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘unsigned int’ [-Werror=format=]
GEM_TRACE("%s needs barrier for %llx:%lld\n",
^
drivers/gpu/drm/i915/i915_gem_context.c:692:7:

       rq->fence.seqno);
       ~~~~~~~~~~~
./include/linux/kernel.h:735:29: note: in definition of macro ‘do_trace_printk’
   __trace_printk(_THIS_IP_, fmt, ##args);   \
                             ^~~
drivers/gpu/drm/i915/i915_gem.h:66:24: note: in expansion of macro ‘trace_printk’
 #define GEM_TRACE(...) trace_printk(__VA_ARGS__)
                        ^~~~~~~~~~~~

drivers/gpu/drm/i915/i915_gem_context.c:689:4: note: in expansion of macro ‘GEM_TRACE’
GEM_TRACE("%s needs barrier for %llx:%lld\n",
^~~~~~~~~
drivers/gpu/drm/i915/i915_gem_context.c:696:13: error: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘unsigned int’ [-Werror=format=]
GEM_TRACE("%s has barrier after %llx:%lld\n",

             ^
drivers/gpu/drm/i915/i915_gem_context.c:699:6:
      rq->fence.seqno);
      ~~~~~~~~~~~
./include/linux/kernel.h:682:33: note: in definition of macro ‘__trace_printk_check_format’
   ____trace_printk_check_format(fmt, ##args);  \
                                 ^~~

./include/linux/kernel.h:719:3: note: in expansion of macro ‘do_trace_printk’
do_trace_printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_gem.h:66:24: note: in expansion of macro ‘trace_printk’

 #define GEM_TRACE(...) trace_printk(__VA_ARGS__)
                        ^~~~~~~~~~~~

drivers/gpu/drm/i915/i915_gem_context.c:696:3: note: in expansion of macro ‘GEM_TRACE’
GEM_TRACE("%s has barrier after %llx:%lld\n",
^~~~~~~~~
drivers/gpu/drm/i915/i915_gem_context.c:696:13: error: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘unsigned int’ [-Werror=format=]
GEM_TRACE("%s has barrier after %llx:%lld\n",

             ^
drivers/gpu/drm/i915/i915_gem_context.c:699:6:
      rq->fence.seqno);
      ~~~~~~~~~~~
./include/linux/kernel.h:735:29: note: in definition of macro ‘do_trace_printk’
   __trace_printk(_THIS_IP_, fmt, ##args);   \
                             ^~~
drivers/gpu/drm/i915/i915_gem.h:66:24: note: in expansion of macro ‘trace_printk’
 #define GEM_TRACE(...) trace_printk(__VA_ARGS__)
                        ^~~~~~~~~~~~

drivers/gpu/drm/i915/i915_gem_context.c:696:3: note: in expansion of macro ‘GEM_TRACE’
GEM_TRACE("%s has barrier after %llx:%lld\n",
^~~~~~~~~
drivers/gpu/drm/i915/i915_gem_context.c: In function ‘i915_gem_switch_to_kernel_context’:
drivers/gpu/drm/i915/i915_gem_context.c:752:14: error: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘unsigned int’ [-Werror=format=]
GEM_TRACE("add barrier on %s for %llx:%lld\n",
^
drivers/gpu/drm/i915/i915_gem_context.c:755:7:

       prev->fence.seqno);
       ~~~~~~~~~~~~~
./include/linux/kernel.h:682:33: note: in definition of macro ‘__trace_printk_check_format’
   ____trace_printk_check_format(fmt, ##args);  \
                                 ^~~

./include/linux/kernel.h:719:3: note: in expansion of macro ‘do_trace_printk’
do_trace_printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_gem.h:66:24: note: in expansion of macro ‘trace_printk’

 #define GEM_TRACE(...) trace_printk(__VA_ARGS__)
                        ^~~~~~~~~~~~

drivers/gpu/drm/i915/i915_gem_context.c:752:4: note: in expansion of macro ‘GEM_TRACE’
GEM_TRACE("add barrier on %s for %llx:%lld\n",
^~~~~~~~~
drivers/gpu/drm/i915/i915_gem_context.c:752:14: error: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘unsigned int’ [-Werror=format=]
GEM_TRACE("add barrier on %s for %llx:%lld\n",
^
drivers/gpu/drm/i915/i915_gem_context.c:755:7:

       prev->fence.seqno);
       ~~~~~~~~~~~~~
./include/linux/kernel.h:735:29: note: in definition of macro ‘do_trace_printk’
   __trace_printk(_THIS_IP_, fmt, ##args);   \
                             ^~~
drivers/gpu/drm/i915/i915_gem.h:66:24: note: in expansion of macro ‘trace_printk’
 #define GEM_TRACE(...) trace_printk(__VA_ARGS__)
                        ^~~~~~~~~~~~

drivers/gpu/drm/i915/i915_gem_context.c:752:4: note: in expansion of macro ‘GEM_TRACE’
GEM_TRACE("add barrier on %s for %llx:%lld\n",
^~~~~~~~~
cc1: all warnings being treated as errors
scripts/Makefile.build:291: recipe for target 'drivers/gpu/drm/i915/i915_gem_context.o' failed make[4]: *** [drivers/gpu/drm/i915/i915_gem_context.o] Error 1 scripts/Makefile.build:516: recipe for target 'drivers/gpu/drm/i915' failed make[3]: *** [drivers/gpu/drm/i915] Error 2
scripts/Makefile.build:516: recipe for target 'drivers/gpu/drm' failed
make[2]: *** [drivers/gpu/drm] Error 2
scripts/Makefile.build:516: recipe for target 'drivers/gpu' failed
make[1]: *** [drivers/gpu] Error 2
Makefile:1060: recipe for target 'drivers' failed
make: *** [drivers] Error 2

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

#2 lore raw

Re: ✗ Fi.CI.BAT: failure for drm/i915: Compile fix for 64b dma-fence seqno

Quoted 13 lines · Patchwork

== Series Details ==

Series: drm/i915: Compile fix for 64b dma-fence seqno
URL : https://patchwork.freedesktop.org/series/53750/
State : failure

== Summary ==

CALL scripts/checksyscalls.sh
DESCEND objtool
CHK include/generated/compile.h
CC [M] drivers/gpu/drm/i915/i915_gem_context.o
In file included from ./include/linux/list.h:9:0,

Quoted 7 lines
                 from ./include/linux/agp_backend.h:33,
                 from ./include/drm/drmP.h:35,
                 from drivers/gpu/drm/i915/i915_gem_context.c:89:
drivers/gpu/drm/i915/i915_gem_context.c: In function ‘last_request_on_engine’:
drivers/gpu/drm/i915/i915_gem_context.c:652:13: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘unsigned int’ [-Werror=format=]
   GEM_TRACE("last request for %s on engine %s: %llx:%llu\n",
             ^

Please BAT, fast forward to present?
-Mika
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw

Re: ✗ Fi.CI.BAT: failure for drm/i915: Compile fix for 64b dma-fence seqno

Quoting Mika Kuoppala (2018-12-07 12:43:43)

Quoted 23 lines
Quoted 13 lines · Patchwork

== Series Details ==

Series: drm/i915: Compile fix for 64b dma-fence seqno
URL : https://patchwork.freedesktop.org/series/53750/
State : failure

== Summary ==

CALL scripts/checksyscalls.sh
DESCEND objtool
CHK include/generated/compile.h
CC [M] drivers/gpu/drm/i915/i915_gem_context.o
In file included from ./include/linux/list.h:9:0,

Quoted 7 lines
                 from ./include/linux/agp_backend.h:33,
                 from ./include/drm/drmP.h:35,
                 from drivers/gpu/drm/i915/i915_gem_context.c:89:
drivers/gpu/drm/i915/i915_gem_context.c: In function ‘last_request_on_engine’:
drivers/gpu/drm/i915/i915_gem_context.c:652:13: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘unsigned int’ [-Werror=format=]
   GEM_TRACE("last request for %s on engine %s: %llx:%llu\n",
             ^
Quoted 1 line

Please BAT, fast forward to present?

Takes manual intervention to restore compilation it seems.

Applied to drm-misc-next, thanks for the fixup.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#4 lore raw
In reply to Mika Kuoppala

Am 07.12.18 um 13:34 schrieb Mika Kuoppala:

Quoted 10 lines

Many errs of the form:
drivers/gpu/drm/i915/selftests/intel_hangcheck.c: In function ‘__igt_reset_evict_vma’:
./include/linux/kern_levels.h:5:18: error: format ‘%x’ expects argument of type ‘unsigned int’, but argum

Fixes b312d8ca3a7c ("dma-buf: make fence sequence numbers 64 bit v2")
Cc Christian König <[email protected]>
Cc Chunming Zhou <[email protected]>
Cc Chris Wilson <[email protected]>
Cc Joonas Lahtinen <[email protected]>

Ah, crap! No I see my mistake.

I searched for dereferences of a fence object, but in this case the fence object is embedded in a parent object.

Patch is Acked-by: Christian König <[email protected]>, but there are probably a couple of more cases like this I missed.

Christian.

Quoted 217 lines
---
  drivers/gpu/drm/i915/i915_gem.c                  |  4 ++--
  drivers/gpu/drm/i915/i915_gem_context.c          |  8 ++++----
  drivers/gpu/drm/i915/i915_request.c              | 12 ++++++------
  drivers/gpu/drm/i915/intel_lrc.c                 |  6 +++---
  drivers/gpu/drm/i915/selftests/intel_hangcheck.c | 14 +++++++-------
  5 files changed, 22 insertions(+), 22 deletions(-)
drivers/gpu/drm/i915/i915_gem.c +2 -2
index d36a9755ad91..649847b87e41 100644
@@ -3187,7 +3187,7 @@ i915_gem_reset_request(struct intel_engine_cs *engine,
  	 */
 
  	if (i915_request_completed(request)) {
-		GEM_TRACE("%s pardoned global=%d (fence %llx:%d), current %d\n",
+		GEM_TRACE("%s pardoned global=%d (fence %llx:%lld), current %d\n",
  			  engine->name, request->global_seqno,
  			  request->fence.context, request->fence.seqno,
  			  intel_engine_get_seqno(engine));
@@ -3311,7 +3311,7 @@ static void nop_submit_request(struct i915_request *request)
  {
  	unsigned long flags;
 
-	GEM_TRACE("%s fence %llx:%d -> -EIO\n",
+	GEM_TRACE("%s fence %llx:%lld -> -EIO\n",
  		  request->engine->name,
  		  request->fence.context, request->fence.seqno);
  	dma_fence_set_error(&request->fence, -EIO);
drivers/gpu/drm/i915/i915_gem_context.c +4 -4
index 371c07087095..4ec386950f75 100644
@@ -649,7 +649,7 @@ last_request_on_engine(struct i915_timeline *timeline,
  	rq = i915_gem_active_raw(&timeline->last_request,
  				 &engine->i915->drm.struct_mutex);
  	if (rq && rq->engine == engine) {
-		GEM_TRACE("last request for %s on engine %s: %llx:%d\n",
+		GEM_TRACE("last request for %s on engine %s: %llx:%llu\n",
  			  timeline->name, engine->name,
  			  rq->fence.context, rq->fence.seqno);
  		GEM_BUG_ON(rq->timeline != timeline);
@@ -686,14 +686,14 @@ static bool engine_has_kernel_context_barrier(struct intel_engine_cs *engine)
  		 * switch-to-kernel-context?
  		 */
  		if (!i915_timeline_sync_is_later(barrier, &rq->fence)) {
-			GEM_TRACE("%s needs barrier for %llx:%d\n",
+			GEM_TRACE("%s needs barrier for %llx:%lld\n",
  				  ring->timeline->name,
  				  rq->fence.context,
  				  rq->fence.seqno);
  			return false;
  		}
 
-		GEM_TRACE("%s has barrier after %llx:%d\n",
+		GEM_TRACE("%s has barrier after %llx:%lld\n",
  			  ring->timeline->name,
  			  rq->fence.context,
  			  rq->fence.seqno);
@@ -749,7 +749,7 @@ int i915_gem_switch_to_kernel_context(struct drm_i915_private *i915)
  			if (prev->gem_context == i915->kernel_context)
  				continue;
 
-			GEM_TRACE("add barrier on %s for %llx:%d\n",
+			GEM_TRACE("add barrier on %s for %llx:%lld\n",
  				  engine->name,
  				  prev->fence.context,
  				  prev->fence.seqno);
drivers/gpu/drm/i915/i915_request.c +6 -6
index ca95ab2f4cfa..cefefc11d922 100644
@@ -270,7 +270,7 @@ static void free_capture_list(struct i915_request *request)
  static void __retire_engine_request(struct intel_engine_cs *engine,
  				    struct i915_request *rq)
  {
-	GEM_TRACE("%s(%s) fence %llx:%d, global=%d, current %d\n",
+	GEM_TRACE("%s(%s) fence %llx:%lld, global=%d, current %d\n",
  		  __func__, engine->name,
  		  rq->fence.context, rq->fence.seqno,
  		  rq->global_seqno,
@@ -332,7 +332,7 @@ static void i915_request_retire(struct i915_request *request)
  {
  	struct i915_gem_active *active, *next;
 
-	GEM_TRACE("%s fence %llx:%d, global=%d, current %d\n",
+	GEM_TRACE("%s fence %llx:%lld, global=%d, current %d\n",
  		  request->engine->name,
  		  request->fence.context, request->fence.seqno,
  		  request->global_seqno,
@@ -395,7 +395,7 @@ void i915_request_retire_upto(struct i915_request *rq)
  	struct intel_ring *ring = rq->ring;
  	struct i915_request *tmp;
 
-	GEM_TRACE("%s fence %llx:%d, global=%d, current %d\n",
+	GEM_TRACE("%s fence %llx:%lld, global=%d, current %d\n",
  		  rq->engine->name,
  		  rq->fence.context, rq->fence.seqno,
  		  rq->global_seqno,
@@ -436,7 +436,7 @@ void __i915_request_submit(struct i915_request *request)
  	struct intel_engine_cs *engine = request->engine;
  	u32 seqno;
 
-	GEM_TRACE("%s fence %llx:%d -> global=%d, current %d\n",
+	GEM_TRACE("%s fence %llx:%lld -> global=%d, current %d\n",
  		  engine->name,
  		  request->fence.context, request->fence.seqno,
  		  engine->timeline.seqno + 1,
@@ -486,7 +486,7 @@ void __i915_request_unsubmit(struct i915_request *request)
  {
  	struct intel_engine_cs *engine = request->engine;
 
-	GEM_TRACE("%s fence %llx:%d <- global=%d, current %d\n",
+	GEM_TRACE("%s fence %llx:%lld <- global=%d, current %d\n",
  		  engine->name,
  		  request->fence.context, request->fence.seqno,
  		  request->global_seqno,
@@ -961,7 +961,7 @@ void i915_request_add(struct i915_request *request)
  	struct i915_request *prev;
  	u32 *cs;
 
-	GEM_TRACE("%s fence %llx:%d\n",
+	GEM_TRACE("%s fence %llx:%lld\n",
  		  engine->name, request->fence.context, request->fence.seqno);
 
  	lockdep_assert_held(&request->i915->drm.struct_mutex);
drivers/gpu/drm/i915/intel_lrc.c +3 -3
index 3a47a4732fae..d2be283c45cc 100644
@@ -455,7 +455,7 @@ static void execlists_submit_ports(struct intel_engine_cs *engine)
  			desc = execlists_update_context(rq);
  			GEM_DEBUG_EXEC(port[n].context_id = upper_32_bits(desc));
 
-			GEM_TRACE("%s in[%d]:  ctx=%d.%d, global=%d (fence %llx:%d) (current %d), prio=%d\n",
+			GEM_TRACE("%s in[%d]:  ctx=%d.%d, global=%d (fence %llx:%lld) (current %d), prio=%d\n",
  				  engine->name, n,
  				  port[n].context_id, count,
  				  rq->global_seqno,
@@ -748,7 +748,7 @@ execlists_cancel_port_requests(struct intel_engine_execlists * const execlists)
  	while (num_ports-- && port_isset(port)) {
  		struct i915_request *rq = port_request(port);
 
-		GEM_TRACE("%s:port%u global=%d (fence %llx:%d), (current %d)\n",
+		GEM_TRACE("%s:port%u global=%d (fence %llx:%lld), (current %d)\n",
  			  rq->engine->name,
  			  (unsigned int)(port - execlists->port),
  			  rq->global_seqno,
@@ -976,7 +976,7 @@ static void process_csb(struct intel_engine_cs *engine)
  						EXECLISTS_ACTIVE_USER));
 
  		rq = port_unpack(port, &count);
-		GEM_TRACE("%s out[0]: ctx=%d.%d, global=%d (fence %llx:%d) (current %d), prio=%d\n",
+		GEM_TRACE("%s out[0]: ctx=%d.%d, global=%d (fence %llx:%lld) (current %d), prio=%d\n",
  			  engine->name,
  			  port->context_id, count,
  			  rq ? rq->global_seqno : 0,
drivers/gpu/drm/i915/selftests/intel_hangcheck.c +6 -6
index 60a4bd9405be..805e40aff407 100644
@@ -450,7 +450,7 @@ static int __igt_reset_engine(struct drm_i915_private *i915, bool active)
  				if (!wait_until_running(&h, rq)) {
  					struct drm_printer p = drm_info_printer(i915->drm.dev);
 
-					pr_err("%s: Failed to start request %x, at %x\n",
+					pr_err("%s: Failed to start request %llx, at %x\n",
  					       __func__, rq->fence.seqno, hws_seqno(&h, rq));
  					intel_engine_dump(engine, &p,
  							  "%s\n", engine->name);
@@ -551,7 +551,7 @@ static int active_request_put(struct i915_request *rq)
  		return 0;
 
  	if (i915_request_wait(rq, 0, 5 * HZ) < 0) {
-		GEM_TRACE("%s timed out waiting for completion of fence %llx:%d, seqno %d.\n",
+		GEM_TRACE("%s timed out waiting for completion of fence %llx:%lld, seqno %d.\n",
  			  rq->engine->name,
  			  rq->fence.context,
  			  rq->fence.seqno,
@@ -728,7 +728,7 @@ static int __igt_reset_engines(struct drm_i915_private *i915,
  				if (!wait_until_running(&h, rq)) {
  					struct drm_printer p = drm_info_printer(i915->drm.dev);
 
-					pr_err("%s: Failed to start request %x, at %x\n",
+					pr_err("%s: Failed to start request %llx, at %x\n",
  					       __func__, rq->fence.seqno, hws_seqno(&h, rq));
  					intel_engine_dump(engine, &p,
  							  "%s\n", engine->name);
@@ -927,7 +927,7 @@ static int igt_reset_wait(void *arg)
  	if (!wait_until_running(&h, rq)) {
  		struct drm_printer p = drm_info_printer(i915->drm.dev);
 
-		pr_err("%s: Failed to start request %x, at %x\n",
+		pr_err("%s: Failed to start request %llx, at %x\n",
  		       __func__, rq->fence.seqno, hws_seqno(&h, rq));
  		intel_engine_dump(rq->engine, &p, "%s\n", rq->engine->name);
 
@@ -1106,7 +1106,7 @@ static int __igt_reset_evict_vma(struct drm_i915_private *i915,
  	if (!wait_until_running(&h, rq)) {
  		struct drm_printer p = drm_info_printer(i915->drm.dev);
 
-		pr_err("%s: Failed to start request %x, at %x\n",
+		pr_err("%s: Failed to start request %llx, at %x\n",
  		       __func__, rq->fence.seqno, hws_seqno(&h, rq));
  		intel_engine_dump(rq->engine, &p, "%s\n", rq->engine->name);
 
@@ -1301,7 +1301,7 @@ static int igt_reset_queue(void *arg)
  			if (!wait_until_running(&h, prev)) {
  				struct drm_printer p = drm_info_printer(i915->drm.dev);
 
-				pr_err("%s(%s): Failed to start request %x, at %x\n",
+				pr_err("%s(%s): Failed to start request %llx, at %x\n",
  				       __func__, engine->name,
  				       prev->fence.seqno, hws_seqno(&h, prev));
  				intel_engine_dump(engine, &p,

drivers/gpu/drm/i915/selftests/intel_hangcheck.c static int igt_handle_error(void *arg) · line 1418

Quoted 8 lines
drivers/gpu/drm/i915/selftests/intel_hangcheck.c +1 -1
@@ -1412,7 +1412,7 @@ static int igt_handle_error(void *arg)
  	if (!wait_until_running(&h, rq)) {
  		struct drm_printer p = drm_info_printer(i915->drm.dev);
 
-		pr_err("%s: Failed to start request %x, at %x\n",
+		pr_err("%s: Failed to start request %llx, at %x\n",
  		       __func__, rq->fence.seqno, hws_seqno(&h, rq));
  		intel_engine_dump(rq->engine, &p, "%s\n", rq->engine->name);
 

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

Reviewed-by on v1 1/1
#5 lore raw
In reply to Mika Kuoppala

Quoting Mika Kuoppala (2018-12-07 12:34:28)

Quoted 10 lines

Many errs of the form:
drivers/gpu/drm/i915/selftests/intel_hangcheck.c: In function ‘__igt_reset_evict_vma’:
./include/linux/kern_levels.h:5:18: error: format ‘%x’ expects argument of type ‘unsigned int’, but argum

Fixes b312d8ca3a7c ("dma-buf: make fence sequence numbers 64 bit v2")
Cc Christian König <[email protected]>
Cc Chunming Zhou <[email protected]>
Cc Chris Wilson <[email protected]>
Cc Joonas Lahtinen <[email protected]>

Looks good. Patchwork tried to apply this to its last known good tree and so failed.

Please try applying to drm-misc-next.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx