|
@@ -391,12 +391,10 @@ intel_flush_status_page(struct intel_engine_cs *engine, int reg)
|
|
}
|
|
}
|
|
|
|
|
|
static inline u32
|
|
static inline u32
|
|
-intel_read_status_page(struct intel_engine_cs *engine,
|
|
|
|
- int reg)
|
|
|
|
|
|
+intel_read_status_page(struct intel_engine_cs *engine, int reg)
|
|
{
|
|
{
|
|
/* Ensure that the compiler doesn't optimize away the load. */
|
|
/* Ensure that the compiler doesn't optimize away the load. */
|
|
- barrier();
|
|
|
|
- return engine->status_page.page_addr[reg];
|
|
|
|
|
|
+ return READ_ONCE(engine->status_page.page_addr[reg]);
|
|
}
|
|
}
|
|
|
|
|
|
static inline void
|
|
static inline void
|