Basic GuC submission support in the i915
Subsystems (3)
Re: [Intel-gfx] [RFC PATCH 64/97] drm/i915/guc: Reset implementation for new GuC interface
In reply to Matthew BrostQuoted 64 lines · Matthew Brost
Quoted 52 lines · Tvrtko Ursulin
Quoted 50 lines · Matthew Brost
Reset implementation for new GuC interface. This is the legacy reset implementation which is called when the i915 owns the engine hang check. Future patches will offload the engine hang check to GuC but we will continue to maintain this legacy path as a fallback and this code path is also required if the GuC dies.
With the new GuC interface it is not possible to reset individual engines - it is only possible to reset the GPU entirely. This patch forces an entire chip reset if any engine hangs.
Cc John Harrison <[email protected]>Signed-off-by Matthew Brost <[email protected]>--- drivers/gpu/drm/i915/gt/intel_context.c | 3 + drivers/gpu/drm/i915/gt/intel_context_types.h | 7 + drivers/gpu/drm/i915/gt/intel_engine_types.h | 6 + .../drm/i915/gt/intel_execlists_submission.c | 40 ++ drivers/gpu/drm/i915/gt/intel_gt_pm.c | 6 +- drivers/gpu/drm/i915/gt/intel_reset.c | 18 +- .../gpu/drm/i915/gt/intel_ring_submission.c | 22 + drivers/gpu/drm/i915/gt/mock_engine.c | 31 + drivers/gpu/drm/i915/gt/uc/intel_guc.c | 16 +- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 8 +- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 580 ++++++++++++++---- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 34 +- drivers/gpu/drm/i915/gt/uc/intel_uc.h | 3 + drivers/gpu/drm/i915/i915_request.c | 41 +- drivers/gpu/drm/i915/i915_request.h | 2 + 15 files changed, 643 insertions(+), 174 deletions(-)drivers/gpu/drm/i915/gt/intel_context.c +3
-0@@ -392,6 +392,9 @@ intel_context_init(struct intel_context *ce, struct intel_engine_cs *engine)spin_lock_init (&ce->guc_state.lock);INIT_LIST_HEAD (&ce->guc_state.fences); +spin_lock_init (&ce->guc_active.lock); +INIT_LIST_HEAD (&ce->guc_active.requests); + ce->guc_id =GUC_INVALID_LRC_ID ;INIT_LIST_HEAD (&ce->guc_id_link);drivers/gpu/drm/i915/gt/intel_context_types.h +1
-0@@ -165,6 +165,13 @@ struct intel_context {struct list_head fences; } guc_state; +struct {Quoted 9 lines
drivers/gpu/drm/i915/gt/intel_context_types.h struct intel_context { · line 173
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_context_types.h +5
-0+/** lock: protects everything in guc_active */ +spinlock_t lock; +/** requests: active requests on this context */ +struct list_head requests; + } guc_active;More accounting, yeah, this is more of that where GuC gives with one hand and takes away with the other. :(
Quoted 7 lines
Yep but we probably can drop this once we switch to the DRM scheduler. The
drm_gpu_schedulerhas a list of jobs and if don't mind searching the whole thing on a reset that will probably work too. I think the only reason we have a per context list is because of feedback I received a a while go saying resets are per context with GuC so keep a list on the context and engine list didn't really fit either. I'll make a to circle back to this when we hook into the DRM scheduler.
Please add a FIXME or similar to the kerneldoc comment for stuff like this. We have a lot of things to recheck once the big picture is sorted, and it's easy to forget them.
Similar for anything else where we have opens about how to structure things once it's cut over.
-Daniel
Quoted 1,430 lines
Quoted 45 lines
Quoted 45 lines
drivers/gpu/drm/i915/gt/intel_context_types.h +1
-0+/* GuC scheduling state that does not require a lock. */ atomic_t guc_sched_state_no_lock;drivers/gpu/drm/i915/gt/intel_engine_types.h +6
-0@@ -432,6 +432,12 @@ struct intel_engine_cs {*/ void (*release)(struct intel_engine_cs *engine); +/* +* Add / remove request from engine active tracking +*/ +void (*add_active_request)(struct i915_request *rq); +void (*remove_active_request)(struct i915_request *rq); +struct intel_engine_execlists execlists;/* drivers/gpu/drm/i915/gt/intel_execlists_submission.c +19
-0@@ -3117,6 +3117,42 @@ static void execlists_park(struct intel_engine_cs *engine)cancel_timer (&engine->execlists.preempt); } +static void add_to_engine (struct i915_request *rq) +{ +lockdep_assert_held (&rq->engine->sched_engine->lock); +list_move_tail (&rq->sched.link, &rq->engine->sched_engine->requests); +} + +static void remove_from_engine (struct i915_request *rq) +{ +struct intel_engine_cs *engine, *locked; + +/* +* Virtual engines complicate acquiring the engine timeline lock, +* as their rq->engine pointer is not stable until under that +* engine lock. The simple ploy we use is to take the lock then +* check that the rq still belongs to the newly locked engine. +*/ + locked =READ_ONCE (rq->engine); +spin_lock_irq (&locked->sched_engine->lock); +while (unlikely (locked != (engine =READ_ONCE (rq->engine)))) {Quoted 9 lines
drivers/gpu/drm/i915/gt/intel_execlists_submission.c static void execlists_park(struct intel_engine_cs *engine) · line 3142
Quoted 4 lines
drivers/gpu/drm/i915/gt/intel_execlists_submission.c +4
-0+spin_unlock (&locked->sched_engine->lock); +spin_lock (&engine->sched_engine->lock); + locked = engine; + }Could use
i915_request_active_enginealthough tbf I don't remember why I did not convert all callers when I added it. Perhaps I just did not find them all.I think is a copy paste from the existing code or least at it should be. It just moves implicit execlists behavior from common code to a execlists specific vfunc.
Quoted 111 lines
Quoted 111 lines
drivers/gpu/drm/i915/gt/intel_execlists_submission.c +17
-0+list_del_init (&rq->sched.link); + +clear_bit (I915_FENCE_FLAG_PQUEUE , &rq->fence.flags); +clear_bit (I915_FENCE_FLAG_HOLD , &rq->fence.flags); + +/* Prevent further __await_execution() registering a cb, then flush */ +set_bit (I915_FENCE_FLAG_ACTIVE , &rq->fence.flags); + +spin_unlock_irq (&locked->sched_engine->lock); + +i915_request_notify_execute_cb_imm (rq); +} +static bool can_preempt (struct intel_engine_cs *engine) {if (INTEL_GEN (engine->i915) >8 )@@ -3214,6 +3250,8 @@ logical_ring_default_vfuncs(struct intel_engine_cs *engine) engine->cops = &execlists_context_ops; engine->request_alloc = execlists_request_alloc; engine->bump_serial = execlist_bump_serial; + engine->add_active_request = add_to_engine; + engine->remove_active_request = remove_from_engine; engine->reset.prepare = execlists_reset_prepare; engine->reset.rewind = execlists_reset_rewind;@@ -3915,6 +3953,8 @@ execlists_create_virtual(struct intel_engine_cs **siblings, unsigned int count) ve->base.sched_engine->kick_backend = sibling->sched_engine->kick_backend; + ve->base.add_active_request = sibling->add_active_request; + ve->base.remove_active_request = sibling->remove_active_request; ve->base.emit_bb_start = sibling->emit_bb_start; ve->base.emit_flush = sibling->emit_flush; ve->base.emit_init_breadcrumb = sibling->emit_init_breadcrumb;drivers/gpu/drm/i915/gt/intel_gt_pm.c +4
-2@@ -174,8 +174,6 @@ static void gt_sanitize(struct intel_gt *gt, bool force)if (intel_gt_is_wedged (gt))intel_gt_unset_wedged (gt); -intel_uc_sanitize (>->uc); -for_each_engine (engine, gt, id)if (engine->reset.prepare) engine->reset.prepare (engine);@@ -191,6 +189,8 @@ static void gt_sanitize(struct intel_gt *gt, bool force)__intel_engine_reset (engine, false); } +intel_uc_reset (>->uc, false); +for_each_engine (engine, gt, id)if (engine->reset.finish) engine->reset.finish (engine);@@ -243,6 +243,8 @@ int intel_gt_resume(struct intel_gt *gt) goto err_wedged; } +intel_uc_reset_finish (>->uc); +intel_rps_enable (>->rps);intel_llc_enable (>->llc);drivers/gpu/drm/i915/gt/intel_reset.c +10
-5@@ -758,6 +758,8 @@ static int gt_reset(struct intel_gt *gt, intel_engine_mask_t stalled_mask)__intel_engine_reset (engine, stalled_mask & engine->mask);local_bh_enable (); +intel_uc_reset (>->uc, true); +intel_ggtt_restore_fences (gt->ggtt);return err;@@ -782,6 +784,8 @@ static void reset_finish(struct intel_gt *gt, intel_engine_mask_t awake)if (awake & engine->mask)intel_engine_pm_put (engine); } + +intel_uc_reset_finish (>->uc); }static void nop_submit_request (struct i915_request *request)@@ -835,6 +839,7 @@ static void __intel_gt_set_wedged(struct intel_gt *gt)for_each_engine (engine, gt, id)if (engine->reset.cancel) engine->reset.cancel (engine); +intel_uc_cancel_requests (>->uc);local_bh_enable ();reset_finish (gt, awake);@@ -1123,6 +1128,9 @@ int __intel_engine_reset_bh(struct intel_engine_cs *engine, const char *msg)ENGINE_TRACE (engine,"flags=%lx\n" , gt->reset.flags);GEM_BUG_ON (!test_bit (I915_RESET_ENGINE + engine->id, >->reset.flags)); +if (intel_engine_uses_guc (engine)) +return -ENODEV ; +if (!intel_engine_pm_get_if_awake (engine))return 0 ;@@ -1133,13 +1141,10 @@ int __intel_engine_reset_bh(struct intel_engine_cs *engine, const char *msg) "Resetting %s for %s\n", engine->name, msg);atomic_inc (&engine->i915->gpu_error.reset_engine_count[engine->uabi_class]); -if (intel_engine_uses_guc (engine)) - ret =intel_guc_reset_engine (&engine->gt->uc.guc, engine); -else - ret =intel_gt_reset_engine (engine); + ret =intel_gt_reset_engine (engine);if (ret) {/* If we fail here, we expect to fallback to a global reset */ -ENGINE_TRACE (engine,"Failed to reset, err: %d\n" , ret); +ENGINE_TRACE (engine,"Failed to reset %s, err: %d\n" , engine->name, ret); goto out; }@@ -1273,7 +1278,8 @@ void intel_gt_handle_error(struct intel_gt *gt,* Try engine reset when available. We fall back to full reset if * single reset fails. */ Quoted 9 lines
drivers/gpu/drm/i915/gt/intel_reset.c void intel_gt_handle_error(struct intel_gt *gt, · line 1282
Quoted 3 lines
drivers/gpu/drm/i915/gt/intel_reset.c +2
-1-if (intel_has_reset_engine (gt) && !intel_gt_is_wedged (gt)) { +if (!intel_uc_uses_guc_submission (>->uc) && +intel_has_reset_engine (gt) && !intel_gt_is_wedged (gt)) {If with guc driver cannot do engine reset, could
intel_has_reset_enginejust say false in that case so guc check wouldn't have to be added here? Also noticed this is the same open I had in 2019. and someone said it can and would be folded. ;(Let me look into that before the next rev, I briefly looked at this and it does seem plausible this function could return false. Only concern here is reset code is notoriously delicate so I am wary to change this in this series. We have a live list of follow ups, this could be included if it doesn't get fixed in this patch.
Quoted 277 lines
Quoted 277 lines
drivers/gpu/drm/i915/gt/intel_reset.c +0
-0local_bh_disable ();for_each_engine_masked (engine, gt, engine_mask, tmp) {BUILD_BUG_ON (I915_RESET_MODESET >=I915_RESET_ENGINE );drivers/gpu/drm/i915/gt/intel_ring_submission.c +22
-0@@ -1050,6 +1050,25 @@ static void ring_bump_serial(struct intel_engine_cs *engine) engine->serial++; } +static void add_to_engine (struct i915_request *rq) +{ +lockdep_assert_held (&rq->engine->sched_engine->lock); +list_move_tail (&rq->sched.link, &rq->engine->sched_engine->requests); +} + +static void remove_from_engine (struct i915_request *rq) +{ +spin_lock_irq (&rq->engine->sched_engine->lock); +list_del_init (&rq->sched.link); + +/* Prevent further __await_execution() registering a cb, then flush */ +set_bit (I915_FENCE_FLAG_ACTIVE , &rq->fence.flags); + +spin_unlock_irq (&rq->engine->sched_engine->lock); + +i915_request_notify_execute_cb_imm (rq); +} +static void setup_common (struct intel_engine_cs *engine) {struct drm_i915_private *i915 = engine->i915;@@ -1067,6 +1086,9 @@ static void setup_common(struct intel_engine_cs *engine) engine->reset.cancel = reset_cancel; engine->reset.finish = reset_finish; + engine->add_active_request = add_to_engine; + engine->remove_active_request = remove_from_engine; + engine->cops = &ring_context_ops; engine->request_alloc = ring_request_alloc; engine->bump_serial = ring_bump_serial;drivers/gpu/drm/i915/gt/mock_engine.c +31
-0@@ -235,6 +235,35 @@ static void mock_submit_request(struct i915_request *request)spin_unlock_irqrestore (&engine->hw_lock, flags); } +static void mock_add_to_engine (struct i915_request *rq) +{ +lockdep_assert_held (&rq->engine->sched_engine->lock); +list_move_tail (&rq->sched.link, &rq->engine->sched_engine->requests); +} + +static void mock_remove_from_engine (struct i915_request *rq) +{ +struct intel_engine_cs *engine, *locked; + +/* +* Virtual engines complicate acquiring the engine timeline lock, +* as their rq->engine pointer is not stable until under that +* engine lock. The simple ploy we use is to take the lock then +* check that the rq still belongs to the newly locked engine. +*/ + + locked =READ_ONCE (rq->engine); +spin_lock_irq (&locked->sched_engine->lock); +while (unlikely (locked != (engine =READ_ONCE (rq->engine)))) { +spin_unlock (&locked->sched_engine->lock); +spin_lock (&engine->sched_engine->lock); + locked = engine; + } +list_del_init (&rq->sched.link); +spin_unlock_irq (&locked->sched_engine->lock); +} + +static void mock_reset_prepare (struct intel_engine_cs *engine) { }@@ -327,6 +356,8 @@ struct intel_engine_cs *mock_engine(struct drm_i915_private *i915, engine->base.emit_flush = mock_emit_flush; engine->base.emit_fini_breadcrumb = mock_emit_breadcrumb; engine->base.submit_request = mock_submit_request; + engine->base.add_active_request = mock_add_to_engine; + engine->base.remove_active_request = mock_remove_from_engine; engine->base.reset.prepare = mock_reset_prepare; engine->base.reset.rewind = mock_reset_rewind;drivers/gpu/drm/i915/gt/uc/intel_guc.c +3
-13@@ -146,6 +146,9 @@ static void gen11_disable_guc_interrupts(struct intel_guc *guc) {struct intel_gt *gt =guc_to_gt (guc); +if (!guc->interrupts.enabled) +return ; +spin_lock_irq (>->irq_lock); guc->interrupts.enabled = false;@@ -579,19 +582,6 @@ int intel_guc_suspend(struct intel_guc *guc)return 0 ; } -/** -* intel_guc_reset_engine() - ask GuC to reset an engine -* @guc: intel_guc structure -* @engine: engine to be reset -*/ -int intel_guc_reset_engine (struct intel_guc *guc, -struct intel_engine_cs *engine) -{ -/* XXX: to be implemented with submission interface rework */ - -return -ENODEV ; -} -/** * intel_guc_resume() - notify GuC resuming from suspend state * @guc: the guc drivers/gpu/drm/i915/gt/uc/intel_guc.h +5
-3@@ -243,14 +243,16 @@ static inline void intel_guc_disable_msg(struct intel_guc *guc, u32 mask)int intel_guc_wait_for_idle (struct intel_guc *guc,long timeout); -int intel_guc_reset_engine (struct intel_guc *guc, -struct intel_engine_cs *engine); -int intel_guc_deregister_done_process_msg (struct intel_guc *guc,const u32 *msg,u32 len);int intel_guc_sched_done_process_msg (struct intel_guc *guc,const u32 *msg,u32 len); +void intel_guc_submission_reset_prepare (struct intel_guc *guc); +void intel_guc_submission_reset (struct intel_guc *guc,bool stalled); +void intel_guc_submission_reset_finish (struct intel_guc *guc); +void intel_guc_submission_cancel_requests (struct intel_guc *guc); +void intel_guc_load_status (struct intel_guc *guc,struct drm_printer *p);#endif drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +59
-16@@ -140,7 +140,7 @@ context_wait_for_deregister_to_register(struct intel_context *ce)static inline void set_context_wait_for_deregister_to_register (struct intel_context *ce) { -/* Only should be called from guc_lrc_desc_pin() */ +/* Only should be called from guc_lrc_desc_pin() without lock */ ce->guc_state.sched_state |=SCHED_STATE_WAIT_FOR_DEREGISTER_TO_REGISTER ; }@@ -240,15 +240,31 @@ static int guc_lrc_desc_pool_create(struct intel_guc *guc)static void guc_lrc_desc_pool_destroy (struct intel_guc *guc) { + guc->lrc_desc_pool_vaddr =NULL ;i915_vma_unpin_and_release (&guc->lrc_desc_pool,I915_VMA_RELEASE_MAP ); } +static inline bool guc_submission_initialized (struct intel_guc *guc) +{ +return guc->lrc_desc_pool_vaddr !=NULL ; +} +static inline void reset_lrc_desc (struct intel_guc *guc,u32 id) { -struct guc_lrc_desc *desc =__get_lrc_desc (guc, id); +if (likely (guc_submission_initialized (guc))) { +struct guc_lrc_desc *desc =__get_lrc_desc (guc, id); +unsigned long flags; -memset (desc,0 ,sizeof (*desc)); -xa_erase_irq (&guc->context_lookup, id); +memset (desc,0 ,sizeof (*desc)); + +/* +* xarray API doesn't have xa_erase_irqsave wrapper, so calling +* the lower level functions directly. +*/ +xa_lock_irqsave (&guc->context_lookup, flags); +__xa_erase (&guc->context_lookup, id); +xa_unlock_irqrestore (&guc->context_lookup, flags); + } }static inline bool lrc_desc_registered (struct intel_guc *guc,u32 id)@@ -259,7 +275,15 @@ static inline bool lrc_desc_registered(struct intel_guc *guc, u32 id)static inline void set_lrc_desc_registered (struct intel_guc *guc,u32 id,struct intel_context *ce) { -xa_store_irq (&guc->context_lookup, id, ce,GFP_ATOMIC ); +unsigned long flags; + +/* +* xarray API doesn't have xa_save_irqsave wrapper, so calling the +* lower level functions directly. +*/ +xa_lock_irqsave (&guc->context_lookup, flags); +__xa_store (&guc->context_lookup, id, ce,GFP_ATOMIC ); +xa_unlock_irqrestore (&guc->context_lookup, flags); } static int guc_submission_busy_loop(struct intel_guc* guc,@@ -330,6 +354,8 @@ int intel_guc_wait_for_idle(struct intel_guc *guc, long timeout) interruptible, timeout); } +static int guc_lrc_desc_pin (struct intel_context *ce,bool loop); +static int guc_add_request (struct intel_guc *guc,struct i915_request *rq) {int err;@@ -337,11 +363,22 @@ static int guc_add_request(struct intel_guc *guc, struct i915_request *rq)u32 action[3 ];int len =0 ;u32 g2h_len_dw =0 ; -bool enabled =context_enabled (ce); +bool enabled;GEM_BUG_ON (!atomic_read (&ce->guc_id_ref));GEM_BUG_ON (context_guc_id_invalid (ce)); +/* +* Corner case where the GuC firmware was blown away and reloaded while +* this context was pinned. +*/ +if (unlikely (!lrc_desc_registered (guc, ce->guc_id))) { + err =guc_lrc_desc_pin (ce, false); +if (unlikely (err)) + goto out; + } + enabled =context_enabled (ce); +if (!enabled) { action[len++] =INTEL_GUC_ACTION_SCHED_CONTEXT_MODE_SET ; action[len++] = ce->guc_id;@@ -364,6 +401,7 @@ static int guc_add_request(struct intel_guc *guc, struct i915_request *rq)intel_context_put (ce); } +out:return err; }@@ -418,15 +456,10 @@ static int guc_dequeue_one_context(struct intel_guc *guc)if (submit) {guc_set_lrc_tail (last); resubmit: -/* -* We only check for -EBUSY here even though it is possible for -* -EDEADLK to be returned. If -EDEADLK is returned, the GuC has -* died and a full GPU needs to be done. The hangcheck will -* eventually detect that the GuC has died and trigger this -* reset so no need to handle -EDEADLK here. -*/ ret =guc_add_request (guc, last); -if (ret == -EBUSY ) { +if (unlikely (ret == -EDEADLK )) + goto deadlk; +else if (ret == -EBUSY ) {i915_sched_engine_kick (sched_engine); guc->stalled_request = last;return false;@@ -436,6 +469,11 @@ static int guc_dequeue_one_context(struct intel_guc *guc) guc->stalled_request =NULL ;return submit; + +deadlk: + sched_engine->tasklet.callback =NULL ; +tasklet_disable_nosync (&sched_engine->tasklet); +return false; }static void guc_submission_tasklet (struct tasklet_struct *t)@@ -462,29 +500,165 @@ static void cs_irq_handler(struct intel_engine_cs *engine, u16 iir)intel_engine_signal_breadcrumbs (engine); } -static void guc_reset_prepare (struct intel_engine_cs *engine) +static void __guc_context_destroy (struct intel_context *ce); +static void release_guc_id (struct intel_guc *guc,struct intel_context *ce); +static void guc_signal_context_fence (struct intel_context *ce); + +static void scrub_guc_desc_for_outstanding_g2h (struct intel_guc *guc) { -struct i915_sched_engine *const sched_engine = engine->sched_engine; +struct intel_context *ce; +unsigned long index, flags;Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static void cs_irq_handler(struct intel_engine_cs *engine, u16 iir) · line 516
Quoted 6 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +5
-1+bool pending_disable, pending_enable, deregister, destroyed; -ENGINE_TRACE (engine,"\n" ); +xa_for_each (&guc->context_lookup, index, ce) { +/* Flush context */ +spin_lock_irqsave (&ce->guc_state.lock, flags); +spin_unlock_irqrestore (&ce->guc_state.lock, flags);Very unusual pattern - what does it do?
The comment below tries to explain this. Basically by cycling the lock it guarantees
submission_disabled()is visible to all callers that touch the below flags.Quoted 28 lines
Quoted 28 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +28
-0+ +/* +* Once we are at this point submission_disabled() is guaranteed +* to visible to all callers who set the below flags (see above +* flush and flushes in reset_prepare). If submission_disabled() +* is set, the caller shouldn't set these flags. +*/ + + destroyed =context_destroyed (ce); + pending_enable =context_pending_enable (ce); + pending_disable =context_pending_disable (ce); + deregister =context_wait_for_deregister_to_register (ce); +init_sched_state (ce); + +if (pending_enable || destroyed || deregister) { +atomic_dec (&guc->outstanding_submission_g2h); +if (deregister) +guc_signal_context_fence (ce); +if (destroyed) { +release_guc_id (guc, ce); +__guc_context_destroy (ce); + } +if (pending_enable|| deregister) +intel_context_put (ce); + } + +/* Not mutualy exclusive with above if statement. */ +if (pending_disable) {Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static void cs_irq_handler(struct intel_engine_cs *engine, u16 iir) · line 549
Quoted 5 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +5
-0+guc_signal_context_fence (ce); +intel_context_sched_disable_unpin (ce); +atomic_dec (&guc->outstanding_submission_g2h); +intel_context_put (ce); + }Yeah this function is a taste of the taste machine I think is _extremely_ hard to review and know with any confidence it does the right thing.
What is the other option? Block everytime we issue an asynchronous command to the GuC? If we want to do everyting asynchronously we have to track state and take further actions when the GuC finally responds. We also have to deal with the GuC dying and taking those actions on our own.
Luckily we do have several other aside from myself that do understand this quite well.
Quoted 24 lines
Quoted 24 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +24
-0+ } +} + +static inline bool +submission_disabled (struct intel_guc *guc) +{ +struct i915_sched_engine *const sched_engine = guc->sched_engine; + +return unlikely (!__tasklet_is_enabled (&sched_engine->tasklet)); +} + +static void disable_submission (struct intel_guc *guc) +{ +struct i915_sched_engine *const sched_engine = guc->sched_engine; + +if (__tasklet_is_enabled (&sched_engine->tasklet)) { +GEM_BUG_ON (!guc->ct.enabled); +__tasklet_disable_sync_once (&sched_engine->tasklet); + sched_engine->tasklet.callback =NULL ; + } +} + +static void enable_submission (struct intel_guc *guc) +{Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static void cs_irq_handler(struct intel_engine_cs *engine, u16 iir) · line 579
Quoted 6 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +6
-0+struct i915_sched_engine *const sched_engine = guc->sched_engine; +unsigned long flags; + +spin_lock_irqsave (&guc->sched_engine->lock, flags); + sched_engine->tasklet.callback = guc_submission_tasklet; +wmb ();All memory barriers must be documented.
Found that out from checkpatch the other day, will fix.
Quoted 11 lines
Quoted 11 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +11
-0+if (!__tasklet_is_enabled (&sched_engine->tasklet) && +__tasklet_enable (&sched_engine->tasklet)) { +GEM_BUG_ON (!guc->ct.enabled); + +/* And kick in case we missed a new request submission. */ +i915_sched_engine_hi_kick (sched_engine); + } +spin_unlock_irqrestore (&guc->sched_engine->lock, flags); +} + +static void guc_flush_submissions (struct intel_guc *guc)Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static void cs_irq_handler(struct intel_engine_cs *engine, u16 iir) · line 596
Quoted 6 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +6
-0+{ +struct i915_sched_engine *const sched_engine = guc->sched_engine; +unsigned long flags; + +spin_lock_irqsave (&sched_engine->lock, flags); +spin_unlock_irqrestore (&sched_engine->lock, flags);Oh right, more of this. No idea.
Same as above. If you change some state then cycle a lock it is guaranteed that state is visible next time someone grabs the lock. I do explain these races in the documentation patch near the end of the series. Without a BKL I don't see how else to avoid these reset races.
Quoted 27 lines
Quoted 27 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +19
-7+} + +void intel_guc_submission_reset_prepare (struct intel_guc *guc) +{ +int i; + +if (unlikely (!guc_submission_initialized (guc))) +/* Reset called during driver load? GuC not yet initialised! */ +return ; + +disable_submission (guc); + guc->interrupts.disable (guc); + +/* Flush IRQ handler */ +spin_lock_irq (&guc_to_gt (guc)->irq_lock); +spin_unlock_irq (&guc_to_gt (guc)->irq_lock); + +guc_flush_submissions (guc);/* -* Prevent request submission to the hardware until we have -* completed the reset in i915_gem_reset_finish(). If a request -* is completed by one engine, it may then queue a request -* to a second via its sched_engine->tasklet *just* as we are -* calling engine->init_hw() and also writing the ELSP. -* Turning off the sched_engine->tasklet until the reset is over -* prevents the race. +* Handle any outstanding G2Hs before reset. Call IRQ handler directly Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static void cs_irq_handler(struct intel_engine_cs *engine, u16 iir) · line 622
Quoted 6 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +4
-1+* each pass as interrupt have been disabled. We always scrub for +* outstanding G2H as it is possible for outstanding_submission_g2h to +* be incremented after the context state update. */ -__tasklet_disable_sync_once (&sched_engine->tasklet); +for (i =0 ; i <4 &&atomic_read (&guc->outstanding_submission_g2h); ++i) {Why is four the magic number and what happens if it is not enough?
I just picked a number. Regardless if the normal G2H path processes all the G2H we scrub all the context state for lost ones.
Quoted 15 lines
Quoted 15 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +15
-0+intel_guc_to_host_event_handler (guc); +#define wait_for_reset (guc, wait_var) \ + guc_wait_for_pending_msg(guc, wait_var, false, (HZ / 20)) +do { +wait_for_reset (guc, &guc->outstanding_submission_g2h); + }while (!list_empty (&guc->ct.requests.incoming)); + } +scrub_guc_desc_for_outstanding_g2h (guc); +} + +static struct intel_engine_cs * +guc_virtual_get_sibling (struct intel_engine_cs *ve,unsigned int sibling) +{ +struct intel_engine_cs *engine; +intel_engine_mask_t tmp, mask = ve->mask;Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static void cs_irq_handler(struct intel_engine_cs *engine, u16 iir) · line 642
Quoted 5 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +5
-0+unsigned int num_siblings =0 ; + +for_each_engine_masked (engine, ve->gt, mask, tmp) +if (num_siblings++ == sibling) +return engine;Not sure how often is this used overall and whether just storing the array in ve could be justified.
It really is only used with sibling == 0, so it should be fast.
Quoted 54 lines
Quoted 54 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +37
-8+ +return NULL ; +} + +static inline struct intel_engine_cs * +__context_to_physical_engine (struct intel_context *ce) +{ +struct intel_engine_cs *engine = ce->engine; + +if (intel_engine_is_virtual (engine)) + engine =guc_virtual_get_sibling (engine,0 ); + +return engine; } -static void guc_reset_state (struct intel_context *ce, -struct intel_engine_cs *engine, -u32 head, -bool scrub) +static void guc_reset_state (struct intel_context *ce,u32 head,bool scrub) { +struct intel_engine_cs *engine =__context_to_physical_engine (ce); +GEM_BUG_ON (!intel_context_is_pinned (ce));/* @@ -502,42 +676,147 @@ static void guc_reset_state(struct intel_context *ce,lrc_update_regs (ce, engine, head); } -static void guc_reset_rewind (struct intel_engine_cs *engine,bool stalled) +static void guc_reset_nop (struct intel_engine_cs *engine) { -struct intel_engine_execlists *const execlists = &engine->execlists; -struct i915_request *rq; +} + +static void guc_rewind_nop (struct intel_engine_cs *engine,bool stalled) +{ +} + +static void +__unwind_incomplete_requests (struct intel_context *ce) +{ +struct i915_request *rq, *rn; +struct list_head *pl; +int prio =I915_PRIORITY_INVALID ; +struct i915_sched_engine *const sched_engine = + ce->engine->sched_engine;unsigned long flags; -spin_lock_irqsave (&engine->sched_engine->lock, flags); +spin_lock_irqsave (&sched_engine->lock, flags); +spin_lock (&ce->guc_active.lock); +list_for_each_entry_safe (rq, rn, + &ce->guc_active.requests, + sched.link) { +if (i915_request_completed (rq))Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static void guc_reset_state(struct intel_context *ce, · line 706
Quoted 4 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +4
-0+continue ; + +list_del_init (&rq->sched.link); +spin_unlock (&ce->guc_active.lock);Drops the lock and continues iterating the same list is safe? Comment needed I think and I do remember I worried about this, or similar instances, in GuC code before.
We only need the active lock for
ce->guc_active.requestslist. It is indeed safe to drop the lock.Quoted 98 lines
Quoted 98 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +88
-7+ +__i915_request_unsubmit (rq); + +/* Push the request back into the queue for later resubmission. */ +GEM_BUG_ON (rq_prio (rq) ==I915_PRIORITY_INVALID ); +if (rq_prio (rq) != prio) { + prio =rq_prio (rq); + pl =i915_sched_lookup_priolist (sched_engine, prio); + } +GEM_BUG_ON (i915_sched_engine_is_empty (sched_engine)); -/* Push back any incomplete requests for replay after the reset. */ - rq =execlists_unwind_incomplete_requests (execlists); -if (!rq) - goto out_unlock; +list_add_tail (&rq->sched.link, pl); +set_bit (I915_FENCE_FLAG_PQUEUE , &rq->fence.flags); + +spin_lock (&ce->guc_active.lock); + } +spin_unlock (&ce->guc_active.lock); +spin_unlock_irqrestore (&sched_engine->lock, flags); +} + +static struct i915_request *context_find_active_request (struct intel_context *ce) +{ +struct i915_request *rq, *active =NULL ; +unsigned long flags; + +spin_lock_irqsave (&ce->guc_active.lock, flags); +list_for_each_entry_reverse (rq, &ce->guc_active.requests, + sched.link) { +if (i915_request_completed (rq)) +break ; + + active = rq; + } +spin_unlock_irqrestore (&ce->guc_active.lock, flags); + +return active; +} + +static void __guc_reset_context (struct intel_context *ce,bool stalled) +{ +struct i915_request *rq; +u32 head; + +/* +* GuC will implicitly mark the context as non-schedulable +* when it sends the reset notification. Make sure our state +* reflects this change. The context will be marked enabled +* on resubmission. +*/ +clr_context_enabled (ce); + + rq =context_find_active_request (ce); +if (!rq) { + head = ce->ring->tail; + stalled = false; + goto out_replay; + }if (!i915_request_started (rq)) stalled = false; +GEM_BUG_ON (i915_active_is_idle (&ce->active)); + head =intel_ring_wrap (ce->ring, rq->head);__i915_request_reset (rq, stalled); -guc_reset_state (rq->context, engine, rq->head, stalled); -out_unlock: -spin_unlock_irqrestore (&engine->sched_engine->lock, flags); +out_replay: +guc_reset_state (ce, head, stalled); +__unwind_incomplete_requests (ce); +} + +void intel_guc_submission_reset (struct intel_guc *guc,bool stalled) +{ +struct intel_context *ce; +unsigned long index; + +if (unlikely (!guc_submission_initialized (guc))) +/* Reset called during driver load? GuC not yet initialised! */ +return ; + +xa_for_each (&guc->context_lookup, index, ce) +if (intel_context_is_pinned (ce)) +__guc_reset_context (ce, stalled); + +/* GuC is blown away, drop all references to contexts */ +xa_destroy (&guc->context_lookup); +} + +static void guc_cancel_context_requests (struct intel_context *ce) +{ +struct i915_sched_engine *sched_engine =ce_to_guc (ce)->sched_engine; +struct i915_request *rq; +unsigned long flags; + +/* Mark all executing requests as skipped. */ +spin_lock_irqsave (&sched_engine->lock, flags);Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static void guc_reset_state(struct intel_context *ce, · line 806
Quoted 5 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +5
-0+spin_lock (&ce->guc_active.lock); +list_for_each_entry (rq, &ce->guc_active.requests, sched.link) +i915_request_put (i915_request_mark_eio (rq)); +spin_unlock (&ce->guc_active.lock); +spin_unlock_irqrestore (&sched_engine->lock, flags);I suppose somewhere it will need to be documented what are the two locks protecting and why both are needed at some places.
Yep, I have a locking section the doc patch near the end of the series. Basically here is we don't want any new submissions processed when we are canceling requests - that is the outer lock. The inner lock again
ce->guc_active.requestslist.BTW - I think I am overly careful with the locks (when in doubt grab a lock) in the reset / cancel code as there is no expectation that this needs to perform well and resets are by far the racest code in the i915.
Quoted 75 lines
Quoted 75 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +27
-21} -static void guc_reset_cancel (struct intel_engine_cs *engine) +static void +guc_cancel_sched_engine_requests (struct i915_sched_engine *sched_engine) { -struct i915_sched_engine *const sched_engine = engine->sched_engine;struct i915_request *rq, *rn;struct rb_node *rb;unsigned long flags;/* Can be called during boot if GuC fails to load */ -if (!engine->gt) +if (!sched_engine)return ; -ENGINE_TRACE (engine,"\n" ); -/* * Before we call engine->cancel_requests(), we should have exclusive * access to the submission state. This is arranged for us by the @@ -552,13 +831,7 @@ static void guc_reset_cancel(struct intel_engine_cs *engine)* submission's irq state, we also wish to remind ourselves that * it is irq state.) */ -spin_lock_irqsave (&engine->sched_engine->lock, flags); - -/* Mark all executing requests as skipped. */ -list_for_each_entry (rq, &engine->sched_engine->requests, sched.link) { -i915_request_set_error_once (rq, -EIO ); -i915_request_mark_complete (rq); - } +spin_lock_irqsave (&sched_engine->lock, flags);/* Flush the queued requests to the timeline list (for retiring). */ while ((rb =rb_first_cached (&sched_engine->queue))) {@@ -566,9 +839,10 @@ static void guc_reset_cancel(struct intel_engine_cs *engine)priolist_for_each_request_consume (rq, rn, p) {list_del_init (&rq->sched.link); +__i915_request_submit (rq); -dma_fence_set_error (&rq->fence, -EIO ); -i915_request_mark_complete (rq); + +i915_request_put (i915_request_mark_eio (rq)); }rb_erase_cached (&p->node, &sched_engine->queue);@@ -580,19 +854,41 @@ static void guc_reset_cancel(struct intel_engine_cs *engine) sched_engine->queue_priority_hint =INT_MIN ; sched_engine->queue =RB_ROOT_CACHED ; -spin_unlock_irqrestore (&engine->sched_engine->lock, flags); +spin_unlock_irqrestore (&sched_engine->lock, flags); } -static void guc_reset_finish (struct intel_engine_cs *engine) +void intel_guc_submission_cancel_requests (struct intel_guc *guc) { -struct i915_sched_engine *const sched_engine = engine->sched_engine; +struct intel_context *ce; +unsigned long index; -if (__tasklet_enable (&sched_engine->tasklet)) -/* And kick in case we missed a new request submission. */ -i915_sched_engine_hi_kick (sched_engine); +xa_for_each (&guc->context_lookup, index, ce) +if (intel_context_is_pinned (ce)) +guc_cancel_context_requests (ce); + +guc_cancel_sched_engine_requests (guc->sched_engine); + +/* GuC is blown away, drop all references to contexts */ +xa_destroy (&guc->context_lookup); +} + +void intel_guc_submission_reset_finish (struct intel_guc *guc) +{ +/* Reset called during driver load or during wedge? */ +if (unlikely (!guc_submission_initialized (guc) || +test_bit (I915_WEDGED , &guc_to_gt (guc)->reset.flags))) +return ; - ENGINE_TRACE(engine, "depth->%d\n",Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static void guc_reset_cancel(struct intel_engine_cs *engine) · line 886
Quoted 6 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +5
-1- atomic_read(&sched_engine->tasklet.count)); +/* +* Technically possible for either of these values to be non-zero here, +* but very unlikely + harmless. Regardless let's add a warn so we can +* see in CI if this happens frequently / a precursor to taking down the +* machine. And what did CI say over time this was in?
It hasn't popped yet. This is more for upcoming code where we have a g2hs we can't scrub (i.e. a TLB invalidation, engine class scheduling disable, etc...).
Quoted 3 lines
It needs to be explained when it can be non zero and whether or not it can go to non zero just after the
atomic_setbelow. Or if not why not.At this point we could probably turn this into a
BUG_ON.Quoted 87 lines
Quoted 87 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +23
-12+*/ +GEM_WARN_ON (atomic_read (&guc->outstanding_submission_g2h)); +atomic_set (&guc->outstanding_submission_g2h,0 ); + +enable_submission (guc); }/* @@ -659,6 +955,9 @@ static int guc_bypass_tasklet_submit(struct intel_guc *guc,else trace_i915_request_guc_submit (rq); +if (unlikely (ret == -EDEADLK )) +disable_submission (guc); +return ret; }@@ -671,7 +970,8 @@ static void guc_submit_request(struct i915_request *rq)/* Will be called from irq-context when using foreign fences. */ spin_lock_irqsave (&sched_engine->lock, flags); -if (guc->stalled_request || !i915_sched_engine_is_empty (sched_engine)) +if (submission_disabled (guc) || guc->stalled_request || + !i915_sched_engine_is_empty (sched_engine))queue_request (sched_engine, rq,rq_prio (rq));else if (guc_bypass_tasklet_submit (guc, rq) == -EBUSY )i915_sched_engine_hi_kick (sched_engine);@@ -808,7 +1108,8 @@ static void unpin_guc_id(struct intel_guc *guc, struct intel_context *ce)static int __guc_action_register_context (struct intel_guc *guc,u32 guc_id, -u32 offset) +u32 offset, +bool loop) {u32 action[] = {INTEL_GUC_ACTION_REGISTER_CONTEXT ,@@ -816,10 +1117,10 @@ static int __guc_action_register_context(struct intel_guc *guc, offset, }; -return guc_submission_busy_loop (guc, action,ARRAY_SIZE (action),0 , true); +return guc_submission_busy_loop (guc, action,ARRAY_SIZE (action),0 , loop); } -static int register_context (struct intel_context *ce) +static int register_context (struct intel_context *ce,bool loop) {struct intel_guc *guc =ce_to_guc (ce); u32 offset = intel_guc_ggtt_offset(guc, guc->lrc_desc_pool) +@@ -827,11 +1128,12 @@ static int register_context(struct intel_context *ce)trace_intel_context_register (ce); -return __guc_action_register_context (guc, ce->guc_id, offset); +return __guc_action_register_context (guc, ce->guc_id, offset, loop); }static int __guc_action_deregister_context (struct intel_guc *guc, -u32 guc_id) +u32 guc_id, +bool loop) {u32 action[] = {INTEL_GUC_ACTION_DEREGISTER_CONTEXT ,@@ -839,16 +1141,16 @@ static int __guc_action_deregister_context(struct intel_guc *guc, };return guc_submission_busy_loop (guc, action,ARRAY_SIZE (action), -G2H_LEN_DW_DEREGISTER_CONTEXT , true); +G2H_LEN_DW_DEREGISTER_CONTEXT , loop); } -static int deregister_context (struct intel_context *ce,u32 guc_id) +static int deregister_context (struct intel_context *ce,u32 guc_id,bool loop) {struct intel_guc *guc =ce_to_guc (ce);trace_intel_context_deregister (ce); -return __guc_action_deregister_context (guc, guc_id); +return __guc_action_deregister_context (guc, guc_id, loop); }static intel_engine_mask_t adjust_engine_mask (u8 class,intel_engine_mask_t mask)@@ -877,7 +1179,7 @@ static void guc_context_policy_init(struct intel_engine_cs *engine, desc->preemption_timeout =CONTEXT_POLICY_DEFAULT_PREEMPTION_TIME_US ; } -static int guc_lrc_desc_pin (struct intel_context *ce) +static int guc_lrc_desc_pin (struct intel_context *ce,bool loop) {struct intel_runtime_pm *runtime_pm = &ce->engine->gt->i915->runtime_pm;@@ -923,18 +1225,44 @@ static int guc_lrc_desc_pin(struct intel_context *ce)*/ if (context_registered) {trace_intel_context_steal_guc_id (ce); -set_context_wait_for_deregister_to_register (ce); -intel_context_get (ce); +if (!loop) { +set_context_wait_for_deregister_to_register (ce);Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static int guc_lrc_desc_pin(struct intel_context *ce) · line 1235
Quoted 6 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +6
-0+intel_context_get (ce); + }else { +bool disabled; +unsigned long flags; + +/* Seal race with Reset */ Needs to be more descriptive.
Again have comment about this the doc patch. Basically this goes back to your other questions about cycling a lock. You must check if
submission_disabled()within a lock otherwise there is a race with resets and updating a contexts state.Quoted 97 lines
Quoted 97 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +35
-13+spin_lock_irqsave (&ce->guc_state.lock, flags); + disabled =submission_disabled (guc); +if (likely (!disabled)) { +set_context_wait_for_deregister_to_register (ce); +intel_context_get (ce); + } +spin_unlock_irqrestore (&ce->guc_state.lock, flags); +if (unlikely (disabled)) { +reset_lrc_desc (guc, desc_idx); +return 0 ;/* Will get registered later */ + } + }/* * If stealing the guc_id, this ce has the same guc_id as the * context whos guc_id was stole. */ with_intel_runtime_pm (runtime_pm, wakeref) - ret = deregister_context(ce, ce->guc_id); + ret = deregister_context(ce, ce->guc_id, loop); +if (unlikely (ret == -EBUSY )) { +clr_context_wait_for_deregister_to_register (ce); +intel_context_put (ce); + } }else {with_intel_runtime_pm (runtime_pm, wakeref) - ret = register_context(ce); + ret = register_context(ce, loop); +if (unlikely (ret == -EBUSY )) +reset_lrc_desc (guc, desc_idx); +else if (unlikely (ret == -ENODEV )) + ret =0 ;/* Will get registered later */ }return ret;@@ -997,7 +1325,6 @@ static void __guc_context_sched_disable(struct intel_guc *guc,GEM_BUG_ON (guc_id ==GUC_INVALID_LRC_ID );trace_intel_context_sched_disable (ce); -intel_context_get (ce);guc_submission_busy_loop (guc, action,ARRAY_SIZE (action),G2H_LEN_DW_SCHED_CONTEXT_MODE_SET , true);@@ -1007,6 +1334,7 @@ static u16 prep_context_pending_disable(struct intel_context *ce) {set_context_pending_disable (ce);clr_context_enabled (ce); +intel_context_get (ce);return ce->guc_id; }@@ -1019,7 +1347,7 @@ static void guc_context_sched_disable(struct intel_context *ce)u16 guc_id;intel_wakeref_t wakeref; -if (context_guc_id_invalid (ce) || +if (submission_disabled (guc) ||context_guc_id_invalid (ce) || !lrc_desc_registered (guc, ce->guc_id)) {clr_context_enabled (ce); goto unpin;@@ -1053,19 +1381,13 @@ static void guc_context_sched_disable(struct intel_context *ce)static inline void guc_lrc_desc_unpin (struct intel_context *ce) { -struct intel_engine_cs *engine = ce->engine; -struct intel_guc *guc = &engine->gt->uc.guc; -unsigned long flags; +struct intel_guc *guc =ce_to_guc (ce);GEM_BUG_ON (!lrc_desc_registered (guc, ce->guc_id));GEM_BUG_ON (ce !=__get_context (guc, ce->guc_id));GEM_BUG_ON (context_enabled (ce)); -spin_lock_irqsave (&ce->guc_state.lock, flags); -set_context_destroyed (ce); -spin_unlock_irqrestore (&ce->guc_state.lock, flags); - -deregister_context (ce, ce->guc_id); +deregister_context (ce, ce->guc_id, true); }static void __guc_context_destroy (struct intel_context *ce)@@ -1093,13 +1415,15 @@ static void guc_context_destroy(struct kref *kref)struct intel_guc *guc = &ce->engine->gt->uc.guc;intel_wakeref_t wakeref;unsigned long flags; +bool disabled;/* * If the guc_id is invalid this context has been stolen and we can free * it immediately. Also can be freed immediately if the context is not * registered with the GuC. */ -if (context_guc_id_invalid (ce) || +if (submission_disabled (guc) || +context_guc_id_invalid (ce) || !lrc_desc_registered (guc, ce->guc_id)) {release_guc_id (guc, ce);__guc_context_destroy (ce);@@ -1126,6 +1450,18 @@ static void guc_context_destroy(struct kref *kref)list_del_init (&ce->guc_id_link);spin_unlock_irqrestore (&guc->contexts_lock, flags); +/* Seal race with Reset */ +spin_lock_irqsave (&ce->guc_state.lock, flags); + disabled =submission_disabled (guc); +if (likely (!disabled)) +set_context_destroyed (ce); +spin_unlock_irqrestore (&ce->guc_state.lock, flags);Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static void guc_context_destroy(struct kref *kref) · line 1462
Quoted 4 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +4
-0+if (unlikely (disabled)) { +release_guc_id (guc, ce); +__guc_context_destroy (ce); +return ;Same as above, needs a better comment. It is also hard for reader to know if snapshot of disabled taked under the lock is still valid after the lock has been released and why.
Will pull in the doc comment into this patch.
Matt
Quoted 273 lines
Regards,
Tvrtko
Quoted 269 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +47
-25+ } +/* * We defer GuC context deregistration until the context is destroyed * in order to save on CTBs. With this optimization ideally we only need @@ -1148,6 +1484,33 @@ static int guc_context_alloc(struct intel_context *ce)return lrc_alloc (ce, ce->engine); } +static void add_to_context (struct i915_request *rq) +{ +struct intel_context *ce = rq->context; + +spin_lock (&ce->guc_active.lock); +list_move_tail (&rq->sched.link, &ce->guc_active.requests); +spin_unlock (&ce->guc_active.lock); +} + +static void remove_from_context (struct i915_request *rq) +{ +struct intel_context *ce = rq->context; + +spin_lock_irq (&ce->guc_active.lock); + +list_del_init (&rq->sched.link); +clear_bit (I915_FENCE_FLAG_PQUEUE , &rq->fence.flags); + +/* Prevent further __await_execution() registering a cb, then flush */ +set_bit (I915_FENCE_FLAG_ACTIVE , &rq->fence.flags); + +spin_unlock_irq (&ce->guc_active.lock); + +atomic_dec (&ce->guc_id_ref); +i915_request_notify_execute_cb_imm (rq); +} +static const struct intel_context_ops guc_context_ops = { .alloc = guc_context_alloc,@@ -1186,8 +1549,6 @@ static void guc_signal_context_fence(struct intel_context *ce) {unsigned long flags; -GEM_BUG_ON (!context_wait_for_deregister_to_register (ce)); -spin_lock_irqsave (&ce->guc_state.lock, flags);clr_context_wait_for_deregister_to_register (ce);__guc_signal_context_fence (ce);@@ -1196,8 +1557,9 @@ static void guc_signal_context_fence(struct intel_context *ce)static bool context_needs_register (struct intel_context *ce,bool new_guc_id) { -return new_guc_id ||test_bit (CONTEXT_LRCA_DIRTY , &ce->flags) || - !lrc_desc_registered (ce_to_guc (ce), ce->guc_id); +return (new_guc_id ||test_bit (CONTEXT_LRCA_DIRTY , &ce->flags) || + !lrc_desc_registered (ce_to_guc (ce), ce->guc_id)) && + !submission_disabled (ce_to_guc (ce)); }static int guc_request_alloc (struct i915_request *rq)@@ -1256,8 +1618,10 @@ static int guc_request_alloc(struct i915_request *rq)return ret;;if (context_needs_register (ce, !!ret)) { - ret =guc_lrc_desc_pin (ce); + ret =guc_lrc_desc_pin (ce, true);if (unlikely (ret)) {/* unwind */ +if (ret == -EDEADLK ) +disable_submission (guc);atomic_dec (&ce->guc_id_ref);unpin_guc_id (guc, ce);return ret;@@ -1294,20 +1658,6 @@ static int guc_request_alloc(struct i915_request *rq)return 0 ; } -static struct intel_engine_cs * -guc_virtual_get_sibling (struct intel_engine_cs *ve,unsigned int sibling) -{ -struct intel_engine_cs *engine; -intel_engine_mask_t tmp, mask = ve->mask; -unsigned int num_siblings =0 ; - -for_each_engine_masked (engine, ve->gt, mask, tmp) -if (num_siblings++ == sibling) -return engine; - -return NULL ; -} -static int guc_virtual_context_pre_pin (struct intel_context *ce,struct i915_gem_ww_ctx *ww,void **vaddr)@@ -1516,7 +1866,7 @@ static inline void guc_kernel_context_pin(struct intel_guc *guc, {if (context_guc_id_invalid (ce))pin_guc_id (guc, ce); -guc_lrc_desc_pin (ce); +guc_lrc_desc_pin (ce, true); }static inline void guc_init_lrc_mapping (struct intel_guc *guc)@@ -1582,13 +1932,15 @@ static void guc_default_vfuncs(struct intel_engine_cs *engine) engine->cops = &guc_context_ops; engine->request_alloc = guc_request_alloc; engine->bump_serial = guc_bump_serial; + engine->add_active_request = add_to_context; + engine->remove_active_request = remove_from_context; engine->sched_engine->schedule = i915_schedule; - engine->reset.prepare = guc_reset_prepare; - engine->reset.rewind = guc_reset_rewind; - engine->reset.cancel = guc_reset_cancel; - engine->reset.finish = guc_reset_finish; + engine->reset.prepare = guc_reset_nop; + engine->reset.rewind = guc_rewind_nop; + engine->reset.cancel = guc_reset_nop; + engine->reset.finish = guc_reset_nop; engine->emit_flush = gen8_emit_flush_xcs; engine->emit_init_breadcrumb = gen8_emit_init_breadcrumb;@@ -1764,7 +2116,7 @@ int intel_guc_deregister_done_process_msg(struct intel_guc *guc,* register this context. */ with_intel_runtime_pm(runtime_pm, wakeref) -register_context (ce); +register_context (ce, true);guc_signal_context_fence (ce);intel_context_put (ce); }else if (context_destroyed (ce)) {@@ -1946,6 +2298,10 @@ guc_create_virtual(struct intel_engine_cs **siblings, unsigned int count) "v%dx%d", ve->base.class, count); ve->base.context_size = sibling->context_size; + ve->base.add_active_request = + sibling->add_active_request; + ve->base.remove_active_request = + sibling->remove_active_request; ve->base.emit_bb_start = sibling->emit_bb_start; ve->base.emit_flush = sibling->emit_flush; ve->base.emit_init_breadcrumb =drivers/gpu/drm/i915/gt/uc/intel_uc.c +33
-1@@ -565,12 +565,44 @@ void intel_uc_reset_prepare(struct intel_uc *uc) {struct intel_guc *guc = &uc->guc; +/* Firmware expected to be running when this function is called */ if (!intel_guc_is_ready (guc)) -return ; + goto sanitize; + +if (intel_uc_uses_guc_submission (uc)) +intel_guc_submission_reset_prepare (guc); +sanitize:__uc_sanitize (uc); } +void intel_uc_reset (struct intel_uc *uc,bool stalled) +{ +struct intel_guc *guc = &uc->guc; + +/* Firmware can not be running when this function is called */ +if (intel_uc_uses_guc_submission (uc)) +intel_guc_submission_reset (guc, stalled); +} + +void intel_uc_reset_finish (struct intel_uc *uc) +{ +struct intel_guc *guc = &uc->guc; + +/* Firmware expected to be running when this function is called */ +if (intel_guc_is_fw_running (guc) &&intel_uc_uses_guc_submission (uc)) +intel_guc_submission_reset_finish (guc); +} + +void intel_uc_cancel_requests (struct intel_uc *uc) +{ +struct intel_guc *guc = &uc->guc; + +/* Firmware can not be running when this function is called */ +if (intel_uc_uses_guc_submission (uc)) +intel_guc_submission_cancel_requests (guc); +} +void intel_uc_runtime_suspend (struct intel_uc *uc) {struct intel_guc *guc = &uc->guc;drivers/gpu/drm/i915/gt/uc/intel_uc.h +3
-0@@ -37,6 +37,9 @@ void intel_uc_driver_late_release(struct intel_uc *uc);void intel_uc_driver_remove (struct intel_uc *uc);void intel_uc_init_mmio (struct intel_uc *uc);void intel_uc_reset_prepare (struct intel_uc *uc); +void intel_uc_reset (struct intel_uc *uc,bool stalled); +void intel_uc_reset_finish (struct intel_uc *uc); +void intel_uc_cancel_requests (struct intel_uc *uc);void intel_uc_suspend (struct intel_uc *uc);void intel_uc_runtime_suspend (struct intel_uc *uc);int intel_uc_resume (struct intel_uc *uc);drivers/gpu/drm/i915/i915_request.c +4
-37@@ -194,7 +194,7 @@ static bool irq_work_imm(struct irq_work *wrk)return false; } -static void __notify_execute_cb_imm (struct i915_request *rq) +void i915_request_notify_execute_cb_imm (struct i915_request *rq) {__notify_execute_cb (rq, irq_work_imm); }@@ -268,37 +268,6 @@ i915_request_active_engine(struct i915_request *rq,return ret; } - -static void remove_from_engine (struct i915_request *rq) -{ -struct intel_engine_cs *engine, *locked; - -/* -* Virtual engines complicate acquiring the engine timeline lock, -* as their rq->engine pointer is not stable until under that -* engine lock. The simple ploy we use is to take the lock then -* check that the rq still belongs to the newly locked engine. -*/ - locked =READ_ONCE (rq->engine); -spin_lock_irq (&locked->sched_engine->lock); -while (unlikely (locked != (engine =READ_ONCE (rq->engine)))) { -spin_unlock (&locked->sched_engine->lock); -spin_lock (&engine->sched_engine->lock); - locked = engine; - } -list_del_init (&rq->sched.link); - -clear_bit (I915_FENCE_FLAG_PQUEUE , &rq->fence.flags); -clear_bit (I915_FENCE_FLAG_HOLD , &rq->fence.flags); - -/* Prevent further __await_execution() registering a cb, then flush */ -set_bit (I915_FENCE_FLAG_ACTIVE , &rq->fence.flags); - -spin_unlock_irq (&locked->sched_engine->lock); - -__notify_execute_cb_imm (rq); -} -static void __rq_init_watchdog (struct i915_request *rq) { rq->watchdog.timer.function =NULL ;@@ -395,9 +364,7 @@ bool i915_request_retire(struct i915_request *rq)* after removing the breadcrumb and signaling it, so that we do not * inadvertently attach the breadcrumb to a completed request. */ -if (!list_empty (&rq->sched.link)) -remove_from_engine (rq); -atomic_dec (&rq->context->guc_id_ref); + rq->engine->remove_active_request (rq);GEM_BUG_ON (!llist_empty (&rq->execute_cb));__list_del_entry (&rq->link);/* poison neither prev/next (RCU walks) */ @@ -539,7 +506,7 @@ __await_execution(struct i915_request *rq,if (llist_add (&cb->work.node.llist, &signal->execute_cb)) {if (i915_request_is_active (signal) ||__request_in_flight (signal)) -__notify_execute_cb_imm (signal); +i915_request_notify_execute_cb_imm (signal); }return 0 ;@@ -676,7 +643,7 @@ bool __i915_request_submit(struct i915_request *request) result = true;GEM_BUG_ON (test_bit (I915_FENCE_FLAG_ACTIVE , &request->fence.flags)); -list_move_tail (&request->sched.link, &engine->sched_engine->requests); + engine->add_active_request (request); active:clear_bit (I915_FENCE_FLAG_PQUEUE , &request->fence.flags);set_bit (I915_FENCE_FLAG_ACTIVE , &request->fence.flags);drivers/gpu/drm/i915/i915_request.h +0
-1--- a/drivers/gpu/drm/i915/i915_request.hQuoted 8 lines
drivers/gpu/drm/i915/i915_request.h bool · line 654
Quoted 8 lines
+++
b/drivers/gpu/drm/i915/i915_request.hdrivers/gpu/drm/i915/i915_request.h +2
-0@@ -649,4 +649,6 @@ bool i915_request_active_engine(struct i915_request *rq, struct intel_engine_cs **active); +void i915_request_notify_execute_cb_imm (struct i915_request *rq); +#endif /* I915_REQUEST_H */ _______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [RFC PATCH 64/97] drm/i915/guc: Reset implementation for new GuC interface
Quoted 73 lines · Daniel Vetter
Quoted 64 lines · Matthew Brost
Quoted 52 lines · Tvrtko Ursulin
Quoted 50 lines · Matthew Brost
Reset implementation for new GuC interface. This is the legacy reset implementation which is called when the i915 owns the engine hang check. Future patches will offload the engine hang check to GuC but we will continue to maintain this legacy path as a fallback and this code path is also required if the GuC dies.
With the new GuC interface it is not possible to reset individual engines - it is only possible to reset the GPU entirely. This patch forces an entire chip reset if any engine hangs.
Cc John Harrison <[email protected]>Signed-off-by Matthew Brost <[email protected]>--- drivers/gpu/drm/i915/gt/intel_context.c | 3 + drivers/gpu/drm/i915/gt/intel_context_types.h | 7 + drivers/gpu/drm/i915/gt/intel_engine_types.h | 6 + .../drm/i915/gt/intel_execlists_submission.c | 40 ++ drivers/gpu/drm/i915/gt/intel_gt_pm.c | 6 +- drivers/gpu/drm/i915/gt/intel_reset.c | 18 +- .../gpu/drm/i915/gt/intel_ring_submission.c | 22 + drivers/gpu/drm/i915/gt/mock_engine.c | 31 + drivers/gpu/drm/i915/gt/uc/intel_guc.c | 16 +- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 8 +- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 580 ++++++++++++++---- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 34 +- drivers/gpu/drm/i915/gt/uc/intel_uc.h | 3 + drivers/gpu/drm/i915/i915_request.c | 41 +- drivers/gpu/drm/i915/i915_request.h | 2 + 15 files changed, 643 insertions(+), 174 deletions(-)drivers/gpu/drm/i915/gt/intel_context.c +3
-0@@ -392,6 +392,9 @@ intel_context_init(struct intel_context *ce, struct intel_engine_cs *engine)spin_lock_init (&ce->guc_state.lock);INIT_LIST_HEAD (&ce->guc_state.fences); +spin_lock_init (&ce->guc_active.lock); +INIT_LIST_HEAD (&ce->guc_active.requests); + ce->guc_id =GUC_INVALID_LRC_ID ;INIT_LIST_HEAD (&ce->guc_id_link);drivers/gpu/drm/i915/gt/intel_context_types.h +1
-0@@ -165,6 +165,13 @@ struct intel_context {struct list_head fences; } guc_state; +struct {Quoted 9 lines
drivers/gpu/drm/i915/gt/intel_context_types.h struct intel_context { · line 173
Quoted 5 lines
drivers/gpu/drm/i915/gt/intel_context_types.h +5
-0+/** lock: protects everything in guc_active */ +spinlock_t lock; +/** requests: active requests on this context */ +struct list_head requests; + } guc_active;More accounting, yeah, this is more of that where GuC gives with one hand and takes away with the other. :(
Quoted 7 lines
Yep but we probably can drop this once we switch to the DRM scheduler. The
drm_gpu_schedulerhas a list of jobs and if don't mind searching the whole thing on a reset that will probably work too. I think the only reason we have a per context list is because of feedback I received a a while go saying resets are per context with GuC so keep a list on the context and engine list didn't really fit either. I'll make a to circle back to this when we hook into the DRM scheduler.
Quoted 4 lines
Please add a FIXME or similar to the kerneldoc comment for stuff like this. We have a lot of things to recheck once the big picture is sorted, and it's easy to forget them.
Sure, will do in next rev. But I think a lot things like this will come naturally when we switch over to the DRM scheduler. I didn't quite get to deleting this list the in my PoC but could clearly see this was no longer needed and actually have a TODO in the code to delete this.
Matt
Quoted 1,426 lines
Similar for anything else where we have opens about how to structure things once it's cut over.
-DanielQuoted 1,422 lines
Quoted 45 lines
Quoted 45 lines
drivers/gpu/drm/i915/gt/intel_context_types.h +1
-0+/* GuC scheduling state that does not require a lock. */ atomic_t guc_sched_state_no_lock;drivers/gpu/drm/i915/gt/intel_engine_types.h +6
-0@@ -432,6 +432,12 @@ struct intel_engine_cs {*/ void (*release)(struct intel_engine_cs *engine); +/* +* Add / remove request from engine active tracking +*/ +void (*add_active_request)(struct i915_request *rq); +void (*remove_active_request)(struct i915_request *rq); +struct intel_engine_execlists execlists;/* drivers/gpu/drm/i915/gt/intel_execlists_submission.c +19
-0@@ -3117,6 +3117,42 @@ static void execlists_park(struct intel_engine_cs *engine)cancel_timer (&engine->execlists.preempt); } +static void add_to_engine (struct i915_request *rq) +{ +lockdep_assert_held (&rq->engine->sched_engine->lock); +list_move_tail (&rq->sched.link, &rq->engine->sched_engine->requests); +} + +static void remove_from_engine (struct i915_request *rq) +{ +struct intel_engine_cs *engine, *locked; + +/* +* Virtual engines complicate acquiring the engine timeline lock, +* as their rq->engine pointer is not stable until under that +* engine lock. The simple ploy we use is to take the lock then +* check that the rq still belongs to the newly locked engine. +*/ + locked =READ_ONCE (rq->engine); +spin_lock_irq (&locked->sched_engine->lock); +while (unlikely (locked != (engine =READ_ONCE (rq->engine)))) {Quoted 9 lines
drivers/gpu/drm/i915/gt/intel_execlists_submission.c static void execlists_park(struct intel_engine_cs *engine) · line 3142
Quoted 4 lines
drivers/gpu/drm/i915/gt/intel_execlists_submission.c +4
-0+spin_unlock (&locked->sched_engine->lock); +spin_lock (&engine->sched_engine->lock); + locked = engine; + }Could use
i915_request_active_enginealthough tbf I don't remember why I did not convert all callers when I added it. Perhaps I just did not find them all.I think is a copy paste from the existing code or least at it should be. It just moves implicit execlists behavior from common code to a execlists specific vfunc.
Quoted 111 lines
Quoted 111 lines
drivers/gpu/drm/i915/gt/intel_execlists_submission.c +17
-0+list_del_init (&rq->sched.link); + +clear_bit (I915_FENCE_FLAG_PQUEUE , &rq->fence.flags); +clear_bit (I915_FENCE_FLAG_HOLD , &rq->fence.flags); + +/* Prevent further __await_execution() registering a cb, then flush */ +set_bit (I915_FENCE_FLAG_ACTIVE , &rq->fence.flags); + +spin_unlock_irq (&locked->sched_engine->lock); + +i915_request_notify_execute_cb_imm (rq); +} +static bool can_preempt (struct intel_engine_cs *engine) {if (INTEL_GEN (engine->i915) >8 )@@ -3214,6 +3250,8 @@ logical_ring_default_vfuncs(struct intel_engine_cs *engine) engine->cops = &execlists_context_ops; engine->request_alloc = execlists_request_alloc; engine->bump_serial = execlist_bump_serial; + engine->add_active_request = add_to_engine; + engine->remove_active_request = remove_from_engine; engine->reset.prepare = execlists_reset_prepare; engine->reset.rewind = execlists_reset_rewind;@@ -3915,6 +3953,8 @@ execlists_create_virtual(struct intel_engine_cs **siblings, unsigned int count) ve->base.sched_engine->kick_backend = sibling->sched_engine->kick_backend; + ve->base.add_active_request = sibling->add_active_request; + ve->base.remove_active_request = sibling->remove_active_request; ve->base.emit_bb_start = sibling->emit_bb_start; ve->base.emit_flush = sibling->emit_flush; ve->base.emit_init_breadcrumb = sibling->emit_init_breadcrumb;drivers/gpu/drm/i915/gt/intel_gt_pm.c +4
-2@@ -174,8 +174,6 @@ static void gt_sanitize(struct intel_gt *gt, bool force)if (intel_gt_is_wedged (gt))intel_gt_unset_wedged (gt); -intel_uc_sanitize (>->uc); -for_each_engine (engine, gt, id)if (engine->reset.prepare) engine->reset.prepare (engine);@@ -191,6 +189,8 @@ static void gt_sanitize(struct intel_gt *gt, bool force)__intel_engine_reset (engine, false); } +intel_uc_reset (>->uc, false); +for_each_engine (engine, gt, id)if (engine->reset.finish) engine->reset.finish (engine);@@ -243,6 +243,8 @@ int intel_gt_resume(struct intel_gt *gt) goto err_wedged; } +intel_uc_reset_finish (>->uc); +intel_rps_enable (>->rps);intel_llc_enable (>->llc);drivers/gpu/drm/i915/gt/intel_reset.c +10
-5@@ -758,6 +758,8 @@ static int gt_reset(struct intel_gt *gt, intel_engine_mask_t stalled_mask)__intel_engine_reset (engine, stalled_mask & engine->mask);local_bh_enable (); +intel_uc_reset (>->uc, true); +intel_ggtt_restore_fences (gt->ggtt);return err;@@ -782,6 +784,8 @@ static void reset_finish(struct intel_gt *gt, intel_engine_mask_t awake)if (awake & engine->mask)intel_engine_pm_put (engine); } + +intel_uc_reset_finish (>->uc); }static void nop_submit_request (struct i915_request *request)@@ -835,6 +839,7 @@ static void __intel_gt_set_wedged(struct intel_gt *gt)for_each_engine (engine, gt, id)if (engine->reset.cancel) engine->reset.cancel (engine); +intel_uc_cancel_requests (>->uc);local_bh_enable ();reset_finish (gt, awake);@@ -1123,6 +1128,9 @@ int __intel_engine_reset_bh(struct intel_engine_cs *engine, const char *msg)ENGINE_TRACE (engine,"flags=%lx\n" , gt->reset.flags);GEM_BUG_ON (!test_bit (I915_RESET_ENGINE + engine->id, >->reset.flags)); +if (intel_engine_uses_guc (engine)) +return -ENODEV ; +if (!intel_engine_pm_get_if_awake (engine))return 0 ;@@ -1133,13 +1141,10 @@ int __intel_engine_reset_bh(struct intel_engine_cs *engine, const char *msg) "Resetting %s for %s\n", engine->name, msg);atomic_inc (&engine->i915->gpu_error.reset_engine_count[engine->uabi_class]); -if (intel_engine_uses_guc (engine)) - ret =intel_guc_reset_engine (&engine->gt->uc.guc, engine); -else - ret =intel_gt_reset_engine (engine); + ret =intel_gt_reset_engine (engine);if (ret) {/* If we fail here, we expect to fallback to a global reset */ -ENGINE_TRACE (engine,"Failed to reset, err: %d\n" , ret); +ENGINE_TRACE (engine,"Failed to reset %s, err: %d\n" , engine->name, ret); goto out; }@@ -1273,7 +1278,8 @@ void intel_gt_handle_error(struct intel_gt *gt,* Try engine reset when available. We fall back to full reset if * single reset fails. */ Quoted 9 lines
drivers/gpu/drm/i915/gt/intel_reset.c void intel_gt_handle_error(struct intel_gt *gt, · line 1282
Quoted 3 lines
drivers/gpu/drm/i915/gt/intel_reset.c +2
-1-if (intel_has_reset_engine (gt) && !intel_gt_is_wedged (gt)) { +if (!intel_uc_uses_guc_submission (>->uc) && +intel_has_reset_engine (gt) && !intel_gt_is_wedged (gt)) {If with guc driver cannot do engine reset, could
intel_has_reset_enginejust say false in that case so guc check wouldn't have to be added here? Also noticed this is the same open I had in 2019. and someone said it can and would be folded. ;(Let me look into that before the next rev, I briefly looked at this and it does seem plausible this function could return false. Only concern here is reset code is notoriously delicate so I am wary to change this in this series. We have a live list of follow ups, this could be included if it doesn't get fixed in this patch.
Quoted 277 lines
Quoted 277 lines
drivers/gpu/drm/i915/gt/intel_reset.c +0
-0local_bh_disable ();for_each_engine_masked (engine, gt, engine_mask, tmp) {BUILD_BUG_ON (I915_RESET_MODESET >=I915_RESET_ENGINE );drivers/gpu/drm/i915/gt/intel_ring_submission.c +22
-0@@ -1050,6 +1050,25 @@ static void ring_bump_serial(struct intel_engine_cs *engine) engine->serial++; } +static void add_to_engine (struct i915_request *rq) +{ +lockdep_assert_held (&rq->engine->sched_engine->lock); +list_move_tail (&rq->sched.link, &rq->engine->sched_engine->requests); +} + +static void remove_from_engine (struct i915_request *rq) +{ +spin_lock_irq (&rq->engine->sched_engine->lock); +list_del_init (&rq->sched.link); + +/* Prevent further __await_execution() registering a cb, then flush */ +set_bit (I915_FENCE_FLAG_ACTIVE , &rq->fence.flags); + +spin_unlock_irq (&rq->engine->sched_engine->lock); + +i915_request_notify_execute_cb_imm (rq); +} +static void setup_common (struct intel_engine_cs *engine) {struct drm_i915_private *i915 = engine->i915;@@ -1067,6 +1086,9 @@ static void setup_common(struct intel_engine_cs *engine) engine->reset.cancel = reset_cancel; engine->reset.finish = reset_finish; + engine->add_active_request = add_to_engine; + engine->remove_active_request = remove_from_engine; + engine->cops = &ring_context_ops; engine->request_alloc = ring_request_alloc; engine->bump_serial = ring_bump_serial;drivers/gpu/drm/i915/gt/mock_engine.c +31
-0@@ -235,6 +235,35 @@ static void mock_submit_request(struct i915_request *request)spin_unlock_irqrestore (&engine->hw_lock, flags); } +static void mock_add_to_engine (struct i915_request *rq) +{ +lockdep_assert_held (&rq->engine->sched_engine->lock); +list_move_tail (&rq->sched.link, &rq->engine->sched_engine->requests); +} + +static void mock_remove_from_engine (struct i915_request *rq) +{ +struct intel_engine_cs *engine, *locked; + +/* +* Virtual engines complicate acquiring the engine timeline lock, +* as their rq->engine pointer is not stable until under that +* engine lock. The simple ploy we use is to take the lock then +* check that the rq still belongs to the newly locked engine. +*/ + + locked =READ_ONCE (rq->engine); +spin_lock_irq (&locked->sched_engine->lock); +while (unlikely (locked != (engine =READ_ONCE (rq->engine)))) { +spin_unlock (&locked->sched_engine->lock); +spin_lock (&engine->sched_engine->lock); + locked = engine; + } +list_del_init (&rq->sched.link); +spin_unlock_irq (&locked->sched_engine->lock); +} + +static void mock_reset_prepare (struct intel_engine_cs *engine) { }@@ -327,6 +356,8 @@ struct intel_engine_cs *mock_engine(struct drm_i915_private *i915, engine->base.emit_flush = mock_emit_flush; engine->base.emit_fini_breadcrumb = mock_emit_breadcrumb; engine->base.submit_request = mock_submit_request; + engine->base.add_active_request = mock_add_to_engine; + engine->base.remove_active_request = mock_remove_from_engine; engine->base.reset.prepare = mock_reset_prepare; engine->base.reset.rewind = mock_reset_rewind;drivers/gpu/drm/i915/gt/uc/intel_guc.c +3
-13@@ -146,6 +146,9 @@ static void gen11_disable_guc_interrupts(struct intel_guc *guc) {struct intel_gt *gt =guc_to_gt (guc); +if (!guc->interrupts.enabled) +return ; +spin_lock_irq (>->irq_lock); guc->interrupts.enabled = false;@@ -579,19 +582,6 @@ int intel_guc_suspend(struct intel_guc *guc)return 0 ; } -/** -* intel_guc_reset_engine() - ask GuC to reset an engine -* @guc: intel_guc structure -* @engine: engine to be reset -*/ -int intel_guc_reset_engine (struct intel_guc *guc, -struct intel_engine_cs *engine) -{ -/* XXX: to be implemented with submission interface rework */ - -return -ENODEV ; -} -/** * intel_guc_resume() - notify GuC resuming from suspend state * @guc: the guc drivers/gpu/drm/i915/gt/uc/intel_guc.h +5
-3@@ -243,14 +243,16 @@ static inline void intel_guc_disable_msg(struct intel_guc *guc, u32 mask)int intel_guc_wait_for_idle (struct intel_guc *guc,long timeout); -int intel_guc_reset_engine (struct intel_guc *guc, -struct intel_engine_cs *engine); -int intel_guc_deregister_done_process_msg (struct intel_guc *guc,const u32 *msg,u32 len);int intel_guc_sched_done_process_msg (struct intel_guc *guc,const u32 *msg,u32 len); +void intel_guc_submission_reset_prepare (struct intel_guc *guc); +void intel_guc_submission_reset (struct intel_guc *guc,bool stalled); +void intel_guc_submission_reset_finish (struct intel_guc *guc); +void intel_guc_submission_cancel_requests (struct intel_guc *guc); +void intel_guc_load_status (struct intel_guc *guc,struct drm_printer *p);#endif drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +59
-16@@ -140,7 +140,7 @@ context_wait_for_deregister_to_register(struct intel_context *ce)static inline void set_context_wait_for_deregister_to_register (struct intel_context *ce) { -/* Only should be called from guc_lrc_desc_pin() */ +/* Only should be called from guc_lrc_desc_pin() without lock */ ce->guc_state.sched_state |=SCHED_STATE_WAIT_FOR_DEREGISTER_TO_REGISTER ; }@@ -240,15 +240,31 @@ static int guc_lrc_desc_pool_create(struct intel_guc *guc)static void guc_lrc_desc_pool_destroy (struct intel_guc *guc) { + guc->lrc_desc_pool_vaddr =NULL ;i915_vma_unpin_and_release (&guc->lrc_desc_pool,I915_VMA_RELEASE_MAP ); } +static inline bool guc_submission_initialized (struct intel_guc *guc) +{ +return guc->lrc_desc_pool_vaddr !=NULL ; +} +static inline void reset_lrc_desc (struct intel_guc *guc,u32 id) { -struct guc_lrc_desc *desc =__get_lrc_desc (guc, id); +if (likely (guc_submission_initialized (guc))) { +struct guc_lrc_desc *desc =__get_lrc_desc (guc, id); +unsigned long flags; -memset (desc,0 ,sizeof (*desc)); -xa_erase_irq (&guc->context_lookup, id); +memset (desc,0 ,sizeof (*desc)); + +/* +* xarray API doesn't have xa_erase_irqsave wrapper, so calling +* the lower level functions directly. +*/ +xa_lock_irqsave (&guc->context_lookup, flags); +__xa_erase (&guc->context_lookup, id); +xa_unlock_irqrestore (&guc->context_lookup, flags); + } }static inline bool lrc_desc_registered (struct intel_guc *guc,u32 id)@@ -259,7 +275,15 @@ static inline bool lrc_desc_registered(struct intel_guc *guc, u32 id)static inline void set_lrc_desc_registered (struct intel_guc *guc,u32 id,struct intel_context *ce) { -xa_store_irq (&guc->context_lookup, id, ce,GFP_ATOMIC ); +unsigned long flags; + +/* +* xarray API doesn't have xa_save_irqsave wrapper, so calling the +* lower level functions directly. +*/ +xa_lock_irqsave (&guc->context_lookup, flags); +__xa_store (&guc->context_lookup, id, ce,GFP_ATOMIC ); +xa_unlock_irqrestore (&guc->context_lookup, flags); } static int guc_submission_busy_loop(struct intel_guc* guc,@@ -330,6 +354,8 @@ int intel_guc_wait_for_idle(struct intel_guc *guc, long timeout) interruptible, timeout); } +static int guc_lrc_desc_pin (struct intel_context *ce,bool loop); +static int guc_add_request (struct intel_guc *guc,struct i915_request *rq) {int err;@@ -337,11 +363,22 @@ static int guc_add_request(struct intel_guc *guc, struct i915_request *rq)u32 action[3 ];int len =0 ;u32 g2h_len_dw =0 ; -bool enabled =context_enabled (ce); +bool enabled;GEM_BUG_ON (!atomic_read (&ce->guc_id_ref));GEM_BUG_ON (context_guc_id_invalid (ce)); +/* +* Corner case where the GuC firmware was blown away and reloaded while +* this context was pinned. +*/ +if (unlikely (!lrc_desc_registered (guc, ce->guc_id))) { + err =guc_lrc_desc_pin (ce, false); +if (unlikely (err)) + goto out; + } + enabled =context_enabled (ce); +if (!enabled) { action[len++] =INTEL_GUC_ACTION_SCHED_CONTEXT_MODE_SET ; action[len++] = ce->guc_id;@@ -364,6 +401,7 @@ static int guc_add_request(struct intel_guc *guc, struct i915_request *rq)intel_context_put (ce); } +out:return err; }@@ -418,15 +456,10 @@ static int guc_dequeue_one_context(struct intel_guc *guc)if (submit) {guc_set_lrc_tail (last); resubmit: -/* -* We only check for -EBUSY here even though it is possible for -* -EDEADLK to be returned. If -EDEADLK is returned, the GuC has -* died and a full GPU needs to be done. The hangcheck will -* eventually detect that the GuC has died and trigger this -* reset so no need to handle -EDEADLK here. -*/ ret =guc_add_request (guc, last); -if (ret == -EBUSY ) { +if (unlikely (ret == -EDEADLK )) + goto deadlk; +else if (ret == -EBUSY ) {i915_sched_engine_kick (sched_engine); guc->stalled_request = last;return false;@@ -436,6 +469,11 @@ static int guc_dequeue_one_context(struct intel_guc *guc) guc->stalled_request =NULL ;return submit; + +deadlk: + sched_engine->tasklet.callback =NULL ; +tasklet_disable_nosync (&sched_engine->tasklet); +return false; }static void guc_submission_tasklet (struct tasklet_struct *t)@@ -462,29 +500,165 @@ static void cs_irq_handler(struct intel_engine_cs *engine, u16 iir)intel_engine_signal_breadcrumbs (engine); } -static void guc_reset_prepare (struct intel_engine_cs *engine) +static void __guc_context_destroy (struct intel_context *ce); +static void release_guc_id (struct intel_guc *guc,struct intel_context *ce); +static void guc_signal_context_fence (struct intel_context *ce); + +static void scrub_guc_desc_for_outstanding_g2h (struct intel_guc *guc) { -struct i915_sched_engine *const sched_engine = engine->sched_engine; +struct intel_context *ce; +unsigned long index, flags;Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static void cs_irq_handler(struct intel_engine_cs *engine, u16 iir) · line 516
Quoted 6 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +5
-1+bool pending_disable, pending_enable, deregister, destroyed; -ENGINE_TRACE (engine,"\n" ); +xa_for_each (&guc->context_lookup, index, ce) { +/* Flush context */ +spin_lock_irqsave (&ce->guc_state.lock, flags); +spin_unlock_irqrestore (&ce->guc_state.lock, flags);Very unusual pattern - what does it do?
The comment below tries to explain this. Basically by cycling the lock it guarantees
submission_disabled()is visible to all callers that touch the below flags.Quoted 28 lines
Quoted 28 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +28
-0+ +/* +* Once we are at this point submission_disabled() is guaranteed +* to visible to all callers who set the below flags (see above +* flush and flushes in reset_prepare). If submission_disabled() +* is set, the caller shouldn't set these flags. +*/ + + destroyed =context_destroyed (ce); + pending_enable =context_pending_enable (ce); + pending_disable =context_pending_disable (ce); + deregister =context_wait_for_deregister_to_register (ce); +init_sched_state (ce); + +if (pending_enable || destroyed || deregister) { +atomic_dec (&guc->outstanding_submission_g2h); +if (deregister) +guc_signal_context_fence (ce); +if (destroyed) { +release_guc_id (guc, ce); +__guc_context_destroy (ce); + } +if (pending_enable|| deregister) +intel_context_put (ce); + } + +/* Not mutualy exclusive with above if statement. */ +if (pending_disable) {Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static void cs_irq_handler(struct intel_engine_cs *engine, u16 iir) · line 549
Quoted 5 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +5
-0+guc_signal_context_fence (ce); +intel_context_sched_disable_unpin (ce); +atomic_dec (&guc->outstanding_submission_g2h); +intel_context_put (ce); + }Yeah this function is a taste of the taste machine I think is _extremely_ hard to review and know with any confidence it does the right thing.
What is the other option? Block everytime we issue an asynchronous command to the GuC? If we want to do everyting asynchronously we have to track state and take further actions when the GuC finally responds. We also have to deal with the GuC dying and taking those actions on our own.
Luckily we do have several other aside from myself that do understand this quite well.
Quoted 24 lines
Quoted 24 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +24
-0+ } +} + +static inline bool +submission_disabled (struct intel_guc *guc) +{ +struct i915_sched_engine *const sched_engine = guc->sched_engine; + +return unlikely (!__tasklet_is_enabled (&sched_engine->tasklet)); +} + +static void disable_submission (struct intel_guc *guc) +{ +struct i915_sched_engine *const sched_engine = guc->sched_engine; + +if (__tasklet_is_enabled (&sched_engine->tasklet)) { +GEM_BUG_ON (!guc->ct.enabled); +__tasklet_disable_sync_once (&sched_engine->tasklet); + sched_engine->tasklet.callback =NULL ; + } +} + +static void enable_submission (struct intel_guc *guc) +{Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static void cs_irq_handler(struct intel_engine_cs *engine, u16 iir) · line 579
Quoted 6 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +6
-0+struct i915_sched_engine *const sched_engine = guc->sched_engine; +unsigned long flags; + +spin_lock_irqsave (&guc->sched_engine->lock, flags); + sched_engine->tasklet.callback = guc_submission_tasklet; +wmb ();All memory barriers must be documented.
Found that out from checkpatch the other day, will fix.
Quoted 11 lines
Quoted 11 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +11
-0+if (!__tasklet_is_enabled (&sched_engine->tasklet) && +__tasklet_enable (&sched_engine->tasklet)) { +GEM_BUG_ON (!guc->ct.enabled); + +/* And kick in case we missed a new request submission. */ +i915_sched_engine_hi_kick (sched_engine); + } +spin_unlock_irqrestore (&guc->sched_engine->lock, flags); +} + +static void guc_flush_submissions (struct intel_guc *guc)Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static void cs_irq_handler(struct intel_engine_cs *engine, u16 iir) · line 596
Quoted 6 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +6
-0+{ +struct i915_sched_engine *const sched_engine = guc->sched_engine; +unsigned long flags; + +spin_lock_irqsave (&sched_engine->lock, flags); +spin_unlock_irqrestore (&sched_engine->lock, flags);Oh right, more of this. No idea.
Same as above. If you change some state then cycle a lock it is guaranteed that state is visible next time someone grabs the lock. I do explain these races in the documentation patch near the end of the series. Without a BKL I don't see how else to avoid these reset races.
Quoted 27 lines
Quoted 27 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +19
-7+} + +void intel_guc_submission_reset_prepare (struct intel_guc *guc) +{ +int i; + +if (unlikely (!guc_submission_initialized (guc))) +/* Reset called during driver load? GuC not yet initialised! */ +return ; + +disable_submission (guc); + guc->interrupts.disable (guc); + +/* Flush IRQ handler */ +spin_lock_irq (&guc_to_gt (guc)->irq_lock); +spin_unlock_irq (&guc_to_gt (guc)->irq_lock); + +guc_flush_submissions (guc);/* -* Prevent request submission to the hardware until we have -* completed the reset in i915_gem_reset_finish(). If a request -* is completed by one engine, it may then queue a request -* to a second via its sched_engine->tasklet *just* as we are -* calling engine->init_hw() and also writing the ELSP. -* Turning off the sched_engine->tasklet until the reset is over -* prevents the race. +* Handle any outstanding G2Hs before reset. Call IRQ handler directly Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static void cs_irq_handler(struct intel_engine_cs *engine, u16 iir) · line 622
Quoted 6 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +4
-1+* each pass as interrupt have been disabled. We always scrub for +* outstanding G2H as it is possible for outstanding_submission_g2h to +* be incremented after the context state update. */ -__tasklet_disable_sync_once (&sched_engine->tasklet); +for (i =0 ; i <4 &&atomic_read (&guc->outstanding_submission_g2h); ++i) {Why is four the magic number and what happens if it is not enough?
I just picked a number. Regardless if the normal G2H path processes all the G2H we scrub all the context state for lost ones.
Quoted 15 lines
Quoted 15 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +15
-0+intel_guc_to_host_event_handler (guc); +#define wait_for_reset (guc, wait_var) \ + guc_wait_for_pending_msg(guc, wait_var, false, (HZ / 20)) +do { +wait_for_reset (guc, &guc->outstanding_submission_g2h); + }while (!list_empty (&guc->ct.requests.incoming)); + } +scrub_guc_desc_for_outstanding_g2h (guc); +} + +static struct intel_engine_cs * +guc_virtual_get_sibling (struct intel_engine_cs *ve,unsigned int sibling) +{ +struct intel_engine_cs *engine; +intel_engine_mask_t tmp, mask = ve->mask;Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static void cs_irq_handler(struct intel_engine_cs *engine, u16 iir) · line 642
Quoted 5 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +5
-0+unsigned int num_siblings =0 ; + +for_each_engine_masked (engine, ve->gt, mask, tmp) +if (num_siblings++ == sibling) +return engine;Not sure how often is this used overall and whether just storing the array in ve could be justified.
It really is only used with sibling == 0, so it should be fast.
Quoted 54 lines
Quoted 54 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +37
-8+ +return NULL ; +} + +static inline struct intel_engine_cs * +__context_to_physical_engine (struct intel_context *ce) +{ +struct intel_engine_cs *engine = ce->engine; + +if (intel_engine_is_virtual (engine)) + engine =guc_virtual_get_sibling (engine,0 ); + +return engine; } -static void guc_reset_state (struct intel_context *ce, -struct intel_engine_cs *engine, -u32 head, -bool scrub) +static void guc_reset_state (struct intel_context *ce,u32 head,bool scrub) { +struct intel_engine_cs *engine =__context_to_physical_engine (ce); +GEM_BUG_ON (!intel_context_is_pinned (ce));/* @@ -502,42 +676,147 @@ static void guc_reset_state(struct intel_context *ce,lrc_update_regs (ce, engine, head); } -static void guc_reset_rewind (struct intel_engine_cs *engine,bool stalled) +static void guc_reset_nop (struct intel_engine_cs *engine) { -struct intel_engine_execlists *const execlists = &engine->execlists; -struct i915_request *rq; +} + +static void guc_rewind_nop (struct intel_engine_cs *engine,bool stalled) +{ +} + +static void +__unwind_incomplete_requests (struct intel_context *ce) +{ +struct i915_request *rq, *rn; +struct list_head *pl; +int prio =I915_PRIORITY_INVALID ; +struct i915_sched_engine *const sched_engine = + ce->engine->sched_engine;unsigned long flags; -spin_lock_irqsave (&engine->sched_engine->lock, flags); +spin_lock_irqsave (&sched_engine->lock, flags); +spin_lock (&ce->guc_active.lock); +list_for_each_entry_safe (rq, rn, + &ce->guc_active.requests, + sched.link) { +if (i915_request_completed (rq))Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static void guc_reset_state(struct intel_context *ce, · line 706
Quoted 4 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +4
-0+continue ; + +list_del_init (&rq->sched.link); +spin_unlock (&ce->guc_active.lock);Drops the lock and continues iterating the same list is safe? Comment needed I think and I do remember I worried about this, or similar instances, in GuC code before.
We only need the active lock for
ce->guc_active.requestslist. It is indeed safe to drop the lock.Quoted 98 lines
Quoted 98 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +88
-7+ +__i915_request_unsubmit (rq); + +/* Push the request back into the queue for later resubmission. */ +GEM_BUG_ON (rq_prio (rq) ==I915_PRIORITY_INVALID ); +if (rq_prio (rq) != prio) { + prio =rq_prio (rq); + pl =i915_sched_lookup_priolist (sched_engine, prio); + } +GEM_BUG_ON (i915_sched_engine_is_empty (sched_engine)); -/* Push back any incomplete requests for replay after the reset. */ - rq =execlists_unwind_incomplete_requests (execlists); -if (!rq) - goto out_unlock; +list_add_tail (&rq->sched.link, pl); +set_bit (I915_FENCE_FLAG_PQUEUE , &rq->fence.flags); + +spin_lock (&ce->guc_active.lock); + } +spin_unlock (&ce->guc_active.lock); +spin_unlock_irqrestore (&sched_engine->lock, flags); +} + +static struct i915_request *context_find_active_request (struct intel_context *ce) +{ +struct i915_request *rq, *active =NULL ; +unsigned long flags; + +spin_lock_irqsave (&ce->guc_active.lock, flags); +list_for_each_entry_reverse (rq, &ce->guc_active.requests, + sched.link) { +if (i915_request_completed (rq)) +break ; + + active = rq; + } +spin_unlock_irqrestore (&ce->guc_active.lock, flags); + +return active; +} + +static void __guc_reset_context (struct intel_context *ce,bool stalled) +{ +struct i915_request *rq; +u32 head; + +/* +* GuC will implicitly mark the context as non-schedulable +* when it sends the reset notification. Make sure our state +* reflects this change. The context will be marked enabled +* on resubmission. +*/ +clr_context_enabled (ce); + + rq =context_find_active_request (ce); +if (!rq) { + head = ce->ring->tail; + stalled = false; + goto out_replay; + }if (!i915_request_started (rq)) stalled = false; +GEM_BUG_ON (i915_active_is_idle (&ce->active)); + head =intel_ring_wrap (ce->ring, rq->head);__i915_request_reset (rq, stalled); -guc_reset_state (rq->context, engine, rq->head, stalled); -out_unlock: -spin_unlock_irqrestore (&engine->sched_engine->lock, flags); +out_replay: +guc_reset_state (ce, head, stalled); +__unwind_incomplete_requests (ce); +} + +void intel_guc_submission_reset (struct intel_guc *guc,bool stalled) +{ +struct intel_context *ce; +unsigned long index; + +if (unlikely (!guc_submission_initialized (guc))) +/* Reset called during driver load? GuC not yet initialised! */ +return ; + +xa_for_each (&guc->context_lookup, index, ce) +if (intel_context_is_pinned (ce)) +__guc_reset_context (ce, stalled); + +/* GuC is blown away, drop all references to contexts */ +xa_destroy (&guc->context_lookup); +} + +static void guc_cancel_context_requests (struct intel_context *ce) +{ +struct i915_sched_engine *sched_engine =ce_to_guc (ce)->sched_engine; +struct i915_request *rq; +unsigned long flags; + +/* Mark all executing requests as skipped. */ +spin_lock_irqsave (&sched_engine->lock, flags);Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static void guc_reset_state(struct intel_context *ce, · line 806
Quoted 5 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +5
-0+spin_lock (&ce->guc_active.lock); +list_for_each_entry (rq, &ce->guc_active.requests, sched.link) +i915_request_put (i915_request_mark_eio (rq)); +spin_unlock (&ce->guc_active.lock); +spin_unlock_irqrestore (&sched_engine->lock, flags);I suppose somewhere it will need to be documented what are the two locks protecting and why both are needed at some places.
Yep, I have a locking section the doc patch near the end of the series. Basically here is we don't want any new submissions processed when we are canceling requests - that is the outer lock. The inner lock again
ce->guc_active.requestslist.BTW - I think I am overly careful with the locks (when in doubt grab a lock) in the reset / cancel code as there is no expectation that this needs to perform well and resets are by far the racest code in the i915.
Quoted 75 lines
Quoted 75 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +27
-21} -static void guc_reset_cancel (struct intel_engine_cs *engine) +static void +guc_cancel_sched_engine_requests (struct i915_sched_engine *sched_engine) { -struct i915_sched_engine *const sched_engine = engine->sched_engine;struct i915_request *rq, *rn;struct rb_node *rb;unsigned long flags;/* Can be called during boot if GuC fails to load */ -if (!engine->gt) +if (!sched_engine)return ; -ENGINE_TRACE (engine,"\n" ); -/* * Before we call engine->cancel_requests(), we should have exclusive * access to the submission state. This is arranged for us by the @@ -552,13 +831,7 @@ static void guc_reset_cancel(struct intel_engine_cs *engine)* submission's irq state, we also wish to remind ourselves that * it is irq state.) */ -spin_lock_irqsave (&engine->sched_engine->lock, flags); - -/* Mark all executing requests as skipped. */ -list_for_each_entry (rq, &engine->sched_engine->requests, sched.link) { -i915_request_set_error_once (rq, -EIO ); -i915_request_mark_complete (rq); - } +spin_lock_irqsave (&sched_engine->lock, flags);/* Flush the queued requests to the timeline list (for retiring). */ while ((rb =rb_first_cached (&sched_engine->queue))) {@@ -566,9 +839,10 @@ static void guc_reset_cancel(struct intel_engine_cs *engine)priolist_for_each_request_consume (rq, rn, p) {list_del_init (&rq->sched.link); +__i915_request_submit (rq); -dma_fence_set_error (&rq->fence, -EIO ); -i915_request_mark_complete (rq); + +i915_request_put (i915_request_mark_eio (rq)); }rb_erase_cached (&p->node, &sched_engine->queue);@@ -580,19 +854,41 @@ static void guc_reset_cancel(struct intel_engine_cs *engine) sched_engine->queue_priority_hint =INT_MIN ; sched_engine->queue =RB_ROOT_CACHED ; -spin_unlock_irqrestore (&engine->sched_engine->lock, flags); +spin_unlock_irqrestore (&sched_engine->lock, flags); } -static void guc_reset_finish (struct intel_engine_cs *engine) +void intel_guc_submission_cancel_requests (struct intel_guc *guc) { -struct i915_sched_engine *const sched_engine = engine->sched_engine; +struct intel_context *ce; +unsigned long index; -if (__tasklet_enable (&sched_engine->tasklet)) -/* And kick in case we missed a new request submission. */ -i915_sched_engine_hi_kick (sched_engine); +xa_for_each (&guc->context_lookup, index, ce) +if (intel_context_is_pinned (ce)) +guc_cancel_context_requests (ce); + +guc_cancel_sched_engine_requests (guc->sched_engine); + +/* GuC is blown away, drop all references to contexts */ +xa_destroy (&guc->context_lookup); +} + +void intel_guc_submission_reset_finish (struct intel_guc *guc) +{ +/* Reset called during driver load or during wedge? */ +if (unlikely (!guc_submission_initialized (guc) || +test_bit (I915_WEDGED , &guc_to_gt (guc)->reset.flags))) +return ; - ENGINE_TRACE(engine, "depth->%d\n",Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static void guc_reset_cancel(struct intel_engine_cs *engine) · line 886
Quoted 6 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +5
-1- atomic_read(&sched_engine->tasklet.count)); +/* +* Technically possible for either of these values to be non-zero here, +* but very unlikely + harmless. Regardless let's add a warn so we can +* see in CI if this happens frequently / a precursor to taking down the +* machine. And what did CI say over time this was in?
It hasn't popped yet. This is more for upcoming code where we have a g2hs we can't scrub (i.e. a TLB invalidation, engine class scheduling disable, etc...).
Quoted 3 lines
It needs to be explained when it can be non zero and whether or not it can go to non zero just after the
atomic_setbelow. Or if not why not.At this point we could probably turn this into a
BUG_ON.Quoted 87 lines
Quoted 87 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +23
-12+*/ +GEM_WARN_ON (atomic_read (&guc->outstanding_submission_g2h)); +atomic_set (&guc->outstanding_submission_g2h,0 ); + +enable_submission (guc); }/* @@ -659,6 +955,9 @@ static int guc_bypass_tasklet_submit(struct intel_guc *guc,else trace_i915_request_guc_submit (rq); +if (unlikely (ret == -EDEADLK )) +disable_submission (guc); +return ret; }@@ -671,7 +970,8 @@ static void guc_submit_request(struct i915_request *rq)/* Will be called from irq-context when using foreign fences. */ spin_lock_irqsave (&sched_engine->lock, flags); -if (guc->stalled_request || !i915_sched_engine_is_empty (sched_engine)) +if (submission_disabled (guc) || guc->stalled_request || + !i915_sched_engine_is_empty (sched_engine))queue_request (sched_engine, rq,rq_prio (rq));else if (guc_bypass_tasklet_submit (guc, rq) == -EBUSY )i915_sched_engine_hi_kick (sched_engine);@@ -808,7 +1108,8 @@ static void unpin_guc_id(struct intel_guc *guc, struct intel_context *ce)static int __guc_action_register_context (struct intel_guc *guc,u32 guc_id, -u32 offset) +u32 offset, +bool loop) {u32 action[] = {INTEL_GUC_ACTION_REGISTER_CONTEXT ,@@ -816,10 +1117,10 @@ static int __guc_action_register_context(struct intel_guc *guc, offset, }; -return guc_submission_busy_loop (guc, action,ARRAY_SIZE (action),0 , true); +return guc_submission_busy_loop (guc, action,ARRAY_SIZE (action),0 , loop); } -static int register_context (struct intel_context *ce) +static int register_context (struct intel_context *ce,bool loop) {struct intel_guc *guc =ce_to_guc (ce); u32 offset = intel_guc_ggtt_offset(guc, guc->lrc_desc_pool) +@@ -827,11 +1128,12 @@ static int register_context(struct intel_context *ce)trace_intel_context_register (ce); -return __guc_action_register_context (guc, ce->guc_id, offset); +return __guc_action_register_context (guc, ce->guc_id, offset, loop); }static int __guc_action_deregister_context (struct intel_guc *guc, -u32 guc_id) +u32 guc_id, +bool loop) {u32 action[] = {INTEL_GUC_ACTION_DEREGISTER_CONTEXT ,@@ -839,16 +1141,16 @@ static int __guc_action_deregister_context(struct intel_guc *guc, };return guc_submission_busy_loop (guc, action,ARRAY_SIZE (action), -G2H_LEN_DW_DEREGISTER_CONTEXT , true); +G2H_LEN_DW_DEREGISTER_CONTEXT , loop); } -static int deregister_context (struct intel_context *ce,u32 guc_id) +static int deregister_context (struct intel_context *ce,u32 guc_id,bool loop) {struct intel_guc *guc =ce_to_guc (ce);trace_intel_context_deregister (ce); -return __guc_action_deregister_context (guc, guc_id); +return __guc_action_deregister_context (guc, guc_id, loop); }static intel_engine_mask_t adjust_engine_mask (u8 class,intel_engine_mask_t mask)@@ -877,7 +1179,7 @@ static void guc_context_policy_init(struct intel_engine_cs *engine, desc->preemption_timeout =CONTEXT_POLICY_DEFAULT_PREEMPTION_TIME_US ; } -static int guc_lrc_desc_pin (struct intel_context *ce) +static int guc_lrc_desc_pin (struct intel_context *ce,bool loop) {struct intel_runtime_pm *runtime_pm = &ce->engine->gt->i915->runtime_pm;@@ -923,18 +1225,44 @@ static int guc_lrc_desc_pin(struct intel_context *ce)*/ if (context_registered) {trace_intel_context_steal_guc_id (ce); -set_context_wait_for_deregister_to_register (ce); -intel_context_get (ce); +if (!loop) { +set_context_wait_for_deregister_to_register (ce);Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static int guc_lrc_desc_pin(struct intel_context *ce) · line 1235
Quoted 6 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +6
-0+intel_context_get (ce); + }else { +bool disabled; +unsigned long flags; + +/* Seal race with Reset */ Needs to be more descriptive.
Again have comment about this the doc patch. Basically this goes back to your other questions about cycling a lock. You must check if
submission_disabled()within a lock otherwise there is a race with resets and updating a contexts state.Quoted 97 lines
Quoted 97 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +35
-13+spin_lock_irqsave (&ce->guc_state.lock, flags); + disabled =submission_disabled (guc); +if (likely (!disabled)) { +set_context_wait_for_deregister_to_register (ce); +intel_context_get (ce); + } +spin_unlock_irqrestore (&ce->guc_state.lock, flags); +if (unlikely (disabled)) { +reset_lrc_desc (guc, desc_idx); +return 0 ;/* Will get registered later */ + } + }/* * If stealing the guc_id, this ce has the same guc_id as the * context whos guc_id was stole. */ with_intel_runtime_pm (runtime_pm, wakeref) - ret = deregister_context(ce, ce->guc_id); + ret = deregister_context(ce, ce->guc_id, loop); +if (unlikely (ret == -EBUSY )) { +clr_context_wait_for_deregister_to_register (ce); +intel_context_put (ce); + } }else {with_intel_runtime_pm (runtime_pm, wakeref) - ret = register_context(ce); + ret = register_context(ce, loop); +if (unlikely (ret == -EBUSY )) +reset_lrc_desc (guc, desc_idx); +else if (unlikely (ret == -ENODEV )) + ret =0 ;/* Will get registered later */ }return ret;@@ -997,7 +1325,6 @@ static void __guc_context_sched_disable(struct intel_guc *guc,GEM_BUG_ON (guc_id ==GUC_INVALID_LRC_ID );trace_intel_context_sched_disable (ce); -intel_context_get (ce);guc_submission_busy_loop (guc, action,ARRAY_SIZE (action),G2H_LEN_DW_SCHED_CONTEXT_MODE_SET , true);@@ -1007,6 +1334,7 @@ static u16 prep_context_pending_disable(struct intel_context *ce) {set_context_pending_disable (ce);clr_context_enabled (ce); +intel_context_get (ce);return ce->guc_id; }@@ -1019,7 +1347,7 @@ static void guc_context_sched_disable(struct intel_context *ce)u16 guc_id;intel_wakeref_t wakeref; -if (context_guc_id_invalid (ce) || +if (submission_disabled (guc) ||context_guc_id_invalid (ce) || !lrc_desc_registered (guc, ce->guc_id)) {clr_context_enabled (ce); goto unpin;@@ -1053,19 +1381,13 @@ static void guc_context_sched_disable(struct intel_context *ce)static inline void guc_lrc_desc_unpin (struct intel_context *ce) { -struct intel_engine_cs *engine = ce->engine; -struct intel_guc *guc = &engine->gt->uc.guc; -unsigned long flags; +struct intel_guc *guc =ce_to_guc (ce);GEM_BUG_ON (!lrc_desc_registered (guc, ce->guc_id));GEM_BUG_ON (ce !=__get_context (guc, ce->guc_id));GEM_BUG_ON (context_enabled (ce)); -spin_lock_irqsave (&ce->guc_state.lock, flags); -set_context_destroyed (ce); -spin_unlock_irqrestore (&ce->guc_state.lock, flags); - -deregister_context (ce, ce->guc_id); +deregister_context (ce, ce->guc_id, true); }static void __guc_context_destroy (struct intel_context *ce)@@ -1093,13 +1415,15 @@ static void guc_context_destroy(struct kref *kref)struct intel_guc *guc = &ce->engine->gt->uc.guc;intel_wakeref_t wakeref;unsigned long flags; +bool disabled;/* * If the guc_id is invalid this context has been stolen and we can free * it immediately. Also can be freed immediately if the context is not * registered with the GuC. */ -if (context_guc_id_invalid (ce) || +if (submission_disabled (guc) || +context_guc_id_invalid (ce) || !lrc_desc_registered (guc, ce->guc_id)) {release_guc_id (guc, ce);__guc_context_destroy (ce);@@ -1126,6 +1450,18 @@ static void guc_context_destroy(struct kref *kref)list_del_init (&ce->guc_id_link);spin_unlock_irqrestore (&guc->contexts_lock, flags); +/* Seal race with Reset */ +spin_lock_irqsave (&ce->guc_state.lock, flags); + disabled =submission_disabled (guc); +if (likely (!disabled)) +set_context_destroyed (ce); +spin_unlock_irqrestore (&ce->guc_state.lock, flags);Quoted 9 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c static void guc_context_destroy(struct kref *kref) · line 1462
Quoted 4 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +4
-0+if (unlikely (disabled)) { +release_guc_id (guc, ce); +__guc_context_destroy (ce); +return ;Same as above, needs a better comment. It is also hard for reader to know if snapshot of disabled taked under the lock is still valid after the lock has been released and why.
Will pull in the doc comment into this patch.
Matt
Quoted 277 lines
Regards,
Tvrtko
Quoted 273 lines
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +47
-25+ } +/* * We defer GuC context deregistration until the context is destroyed * in order to save on CTBs. With this optimization ideally we only need @@ -1148,6 +1484,33 @@ static int guc_context_alloc(struct intel_context *ce)return lrc_alloc (ce, ce->engine); } +static void add_to_context (struct i915_request *rq) +{ +struct intel_context *ce = rq->context; + +spin_lock (&ce->guc_active.lock); +list_move_tail (&rq->sched.link, &ce->guc_active.requests); +spin_unlock (&ce->guc_active.lock); +} + +static void remove_from_context (struct i915_request *rq) +{ +struct intel_context *ce = rq->context; + +spin_lock_irq (&ce->guc_active.lock); + +list_del_init (&rq->sched.link); +clear_bit (I915_FENCE_FLAG_PQUEUE , &rq->fence.flags); + +/* Prevent further __await_execution() registering a cb, then flush */ +set_bit (I915_FENCE_FLAG_ACTIVE , &rq->fence.flags); + +spin_unlock_irq (&ce->guc_active.lock); + +atomic_dec (&ce->guc_id_ref); +i915_request_notify_execute_cb_imm (rq); +} +static const struct intel_context_ops guc_context_ops = { .alloc = guc_context_alloc,@@ -1186,8 +1549,6 @@ static void guc_signal_context_fence(struct intel_context *ce) {unsigned long flags; -GEM_BUG_ON (!context_wait_for_deregister_to_register (ce)); -spin_lock_irqsave (&ce->guc_state.lock, flags);clr_context_wait_for_deregister_to_register (ce);__guc_signal_context_fence (ce);@@ -1196,8 +1557,9 @@ static void guc_signal_context_fence(struct intel_context *ce)static bool context_needs_register (struct intel_context *ce,bool new_guc_id) { -return new_guc_id ||test_bit (CONTEXT_LRCA_DIRTY , &ce->flags) || - !lrc_desc_registered (ce_to_guc (ce), ce->guc_id); +return (new_guc_id ||test_bit (CONTEXT_LRCA_DIRTY , &ce->flags) || + !lrc_desc_registered (ce_to_guc (ce), ce->guc_id)) && + !submission_disabled (ce_to_guc (ce)); }static int guc_request_alloc (struct i915_request *rq)@@ -1256,8 +1618,10 @@ static int guc_request_alloc(struct i915_request *rq)return ret;;if (context_needs_register (ce, !!ret)) { - ret =guc_lrc_desc_pin (ce); + ret =guc_lrc_desc_pin (ce, true);if (unlikely (ret)) {/* unwind */ +if (ret == -EDEADLK ) +disable_submission (guc);atomic_dec (&ce->guc_id_ref);unpin_guc_id (guc, ce);return ret;@@ -1294,20 +1658,6 @@ static int guc_request_alloc(struct i915_request *rq)return 0 ; } -static struct intel_engine_cs * -guc_virtual_get_sibling (struct intel_engine_cs *ve,unsigned int sibling) -{ -struct intel_engine_cs *engine; -intel_engine_mask_t tmp, mask = ve->mask; -unsigned int num_siblings =0 ; - -for_each_engine_masked (engine, ve->gt, mask, tmp) -if (num_siblings++ == sibling) -return engine; - -return NULL ; -} -static int guc_virtual_context_pre_pin (struct intel_context *ce,struct i915_gem_ww_ctx *ww,void **vaddr)@@ -1516,7 +1866,7 @@ static inline void guc_kernel_context_pin(struct intel_guc *guc, {if (context_guc_id_invalid (ce))pin_guc_id (guc, ce); -guc_lrc_desc_pin (ce); +guc_lrc_desc_pin (ce, true); }static inline void guc_init_lrc_mapping (struct intel_guc *guc)@@ -1582,13 +1932,15 @@ static void guc_default_vfuncs(struct intel_engine_cs *engine) engine->cops = &guc_context_ops; engine->request_alloc = guc_request_alloc; engine->bump_serial = guc_bump_serial; + engine->add_active_request = add_to_context; + engine->remove_active_request = remove_from_context; engine->sched_engine->schedule = i915_schedule; - engine->reset.prepare = guc_reset_prepare; - engine->reset.rewind = guc_reset_rewind; - engine->reset.cancel = guc_reset_cancel; - engine->reset.finish = guc_reset_finish; + engine->reset.prepare = guc_reset_nop; + engine->reset.rewind = guc_rewind_nop; + engine->reset.cancel = guc_reset_nop; + engine->reset.finish = guc_reset_nop; engine->emit_flush = gen8_emit_flush_xcs; engine->emit_init_breadcrumb = gen8_emit_init_breadcrumb;@@ -1764,7 +2116,7 @@ int intel_guc_deregister_done_process_msg(struct intel_guc *guc,* register this context. */ with_intel_runtime_pm(runtime_pm, wakeref) -register_context (ce); +register_context (ce, true);guc_signal_context_fence (ce);intel_context_put (ce); }else if (context_destroyed (ce)) {@@ -1946,6 +2298,10 @@ guc_create_virtual(struct intel_engine_cs **siblings, unsigned int count) "v%dx%d", ve->base.class, count); ve->base.context_size = sibling->context_size; + ve->base.add_active_request = + sibling->add_active_request; + ve->base.remove_active_request = + sibling->remove_active_request; ve->base.emit_bb_start = sibling->emit_bb_start; ve->base.emit_flush = sibling->emit_flush; ve->base.emit_init_breadcrumb =drivers/gpu/drm/i915/gt/uc/intel_uc.c +33
-1@@ -565,12 +565,44 @@ void intel_uc_reset_prepare(struct intel_uc *uc) {struct intel_guc *guc = &uc->guc; +/* Firmware expected to be running when this function is called */ if (!intel_guc_is_ready (guc)) -return ; + goto sanitize; + +if (intel_uc_uses_guc_submission (uc)) +intel_guc_submission_reset_prepare (guc); +sanitize:__uc_sanitize (uc); } +void intel_uc_reset (struct intel_uc *uc,bool stalled) +{ +struct intel_guc *guc = &uc->guc; + +/* Firmware can not be running when this function is called */ +if (intel_uc_uses_guc_submission (uc)) +intel_guc_submission_reset (guc, stalled); +} + +void intel_uc_reset_finish (struct intel_uc *uc) +{ +struct intel_guc *guc = &uc->guc; + +/* Firmware expected to be running when this function is called */ +if (intel_guc_is_fw_running (guc) &&intel_uc_uses_guc_submission (uc)) +intel_guc_submission_reset_finish (guc); +} + +void intel_uc_cancel_requests (struct intel_uc *uc) +{ +struct intel_guc *guc = &uc->guc; + +/* Firmware can not be running when this function is called */ +if (intel_uc_uses_guc_submission (uc)) +intel_guc_submission_cancel_requests (guc); +} +void intel_uc_runtime_suspend (struct intel_uc *uc) {struct intel_guc *guc = &uc->guc;drivers/gpu/drm/i915/gt/uc/intel_uc.h +3
-0@@ -37,6 +37,9 @@ void intel_uc_driver_late_release(struct intel_uc *uc);void intel_uc_driver_remove (struct intel_uc *uc);void intel_uc_init_mmio (struct intel_uc *uc);void intel_uc_reset_prepare (struct intel_uc *uc); +void intel_uc_reset (struct intel_uc *uc,bool stalled); +void intel_uc_reset_finish (struct intel_uc *uc); +void intel_uc_cancel_requests (struct intel_uc *uc);void intel_uc_suspend (struct intel_uc *uc);void intel_uc_runtime_suspend (struct intel_uc *uc);int intel_uc_resume (struct intel_uc *uc);drivers/gpu/drm/i915/i915_request.c +4
-37@@ -194,7 +194,7 @@ static bool irq_work_imm(struct irq_work *wrk)return false; } -static void __notify_execute_cb_imm (struct i915_request *rq) +void i915_request_notify_execute_cb_imm (struct i915_request *rq) {__notify_execute_cb (rq, irq_work_imm); }@@ -268,37 +268,6 @@ i915_request_active_engine(struct i915_request *rq,return ret; } - -static void remove_from_engine (struct i915_request *rq) -{ -struct intel_engine_cs *engine, *locked; - -/* -* Virtual engines complicate acquiring the engine timeline lock, -* as their rq->engine pointer is not stable until under that -* engine lock. The simple ploy we use is to take the lock then -* check that the rq still belongs to the newly locked engine. -*/ - locked =READ_ONCE (rq->engine); -spin_lock_irq (&locked->sched_engine->lock); -while (unlikely (locked != (engine =READ_ONCE (rq->engine)))) { -spin_unlock (&locked->sched_engine->lock); -spin_lock (&engine->sched_engine->lock); - locked = engine; - } -list_del_init (&rq->sched.link); - -clear_bit (I915_FENCE_FLAG_PQUEUE , &rq->fence.flags); -clear_bit (I915_FENCE_FLAG_HOLD , &rq->fence.flags); - -/* Prevent further __await_execution() registering a cb, then flush */ -set_bit (I915_FENCE_FLAG_ACTIVE , &rq->fence.flags); - -spin_unlock_irq (&locked->sched_engine->lock); - -__notify_execute_cb_imm (rq); -} -static void __rq_init_watchdog (struct i915_request *rq) { rq->watchdog.timer.function =NULL ;@@ -395,9 +364,7 @@ bool i915_request_retire(struct i915_request *rq)* after removing the breadcrumb and signaling it, so that we do not * inadvertently attach the breadcrumb to a completed request. */ -if (!list_empty (&rq->sched.link)) -remove_from_engine (rq); -atomic_dec (&rq->context->guc_id_ref); + rq->engine->remove_active_request (rq);GEM_BUG_ON (!llist_empty (&rq->execute_cb));__list_del_entry (&rq->link);/* poison neither prev/next (RCU walks) */ @@ -539,7 +506,7 @@ __await_execution(struct i915_request *rq,if (llist_add (&cb->work.node.llist, &signal->execute_cb)) {if (i915_request_is_active (signal) ||__request_in_flight (signal)) -__notify_execute_cb_imm (signal); +i915_request_notify_execute_cb_imm (signal); }return 0 ;@@ -676,7 +643,7 @@ bool __i915_request_submit(struct i915_request *request) result = true;GEM_BUG_ON (test_bit (I915_FENCE_FLAG_ACTIVE , &request->fence.flags)); -list_move_tail (&request->sched.link, &engine->sched_engine->requests); + engine->add_active_request (request); active:clear_bit (I915_FENCE_FLAG_PQUEUE , &request->fence.flags);set_bit (I915_FENCE_FLAG_ACTIVE , &request->fence.flags);drivers/gpu/drm/i915/i915_request.h +0
-0@@ -649,4 +649,6 @@ bool i915_request_active_engine(struct i915_request *rq, struct intel_engine_cs **active);
Quoted 15 lines
Quoted 8 lines
Quoted 4 lines
drivers/gpu/drm/i915/i915_request.h bool
Quoted 4 lines
drivers/gpu/drm/i915/i915_request.h +2
-0+void i915_request_notify_execute_cb_imm (struct i915_request *rq); +#endif /* I915_REQUEST_H */ _______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfxSignature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC PATCH 65/97 drm/i915: Reset GPU immediately if submission is disabled
In reply to Matthew BrostIf submission is disabled by the backend for any reason, reset the GPU immediately in the heartbeat code.
--- .../gpu/drm/i915/gt/intel_engine_heartbeat.c | 63 +++++++++++++++---- .../gpu/drm/i915/gt/intel_engine_heartbeat.h | 4 ++ .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 9 +++ drivers/gpu/drm/i915/i915_scheduler.c | 6 ++ drivers/gpu/drm/i915/i915_scheduler.h | 6 ++ drivers/gpu/drm/i915/i915_scheduler_types.h | 3 + 6 files changed, 78 insertions(+), 13 deletions(-)
drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c +50 -13
@@ -70,12 +70,30 @@ static void show_heartbeat(const struct i915_request *rq, {struct drm_printer p =drm_debug_printer ("heartbeat" ); -intel_engine_dump (engine, &p, -"%s heartbeat {seqno:%llx:%lld, prio:%d} not ticking\n" , - engine->name, - rq->fence.context, - rq->fence.seqno, - rq->sched.attr.priority); +if (!rq) { +intel_engine_dump (engine, &p, +"%s heartbeat not ticking\n" , + engine->name); + }else { +intel_engine_dump (engine, &p, +"%s heartbeat {seqno:%llx:%lld, prio:%d} not ticking\n" , + engine->name, + rq->fence.context, + rq->fence.seqno, + rq->sched.attr.priority); + } +} + +static void +reset_engine (struct intel_engine_cs *engine,struct i915_request *rq) +{ +if (IS_ENABLED (CONFIG_DRM_I915_DEBUG_GEM )) +show_heartbeat (rq, engine); + +intel_gt_handle_error (engine->gt, engine->mask, +I915_ERROR_CAPTURE , +"stopped heartbeat on %s" , + engine->name); }static void heartbeat (struct work_struct *wrk)
@@ -102,6 +120,11 @@ static void heartbeat(struct work_struct *wrk)if (intel_gt_is_wedged (engine->gt)) goto out; +if (i915_sched_engine_disabled (engine->sched_engine)) { +reset_engine (engine, engine->heartbeat.systole); + goto out; + } +if (engine->heartbeat.systole) {long delay =READ_ONCE (engine->props.heartbeat_interval_ms);
@@ -139,13 +162,7 @@ static void heartbeat(struct work_struct *wrk) engine->sched_engine->schedule (rq, &attr);local_bh_enable (); }else { -if (IS_ENABLED (CONFIG_DRM_I915_DEBUG_GEM )) -show_heartbeat (rq, engine); - -intel_gt_handle_error (engine->gt, engine->mask, -I915_ERROR_CAPTURE , -"stopped heartbeat on %s" , - engine->name); +reset_engine (engine, rq); } rq->emitted_jiffies = jiffies;
@@ -194,6 +211,26 @@ void intel_engine_park_heartbeat(struct intel_engine_cs *engine)i915_request_put (fetch_and_zero (&engine->heartbeat.systole)); } +void intel_gt_unpark_heartbeats (struct intel_gt *gt) +{ +struct intel_engine_cs *engine; +enum intel_engine_id id; + +for_each_engine (engine, gt, id) +if (intel_engine_pm_is_awake (engine)) +intel_engine_unpark_heartbeat (engine); + +} + +void intel_gt_park_heartbeats (struct intel_gt *gt) +{ +struct intel_engine_cs *engine; +enum intel_engine_id id; + +for_each_engine (engine, gt, id) +intel_engine_park_heartbeat (engine); +} +void intel_engine_init_heartbeat (struct intel_engine_cs *engine) {INIT_DELAYED_WORK (&engine->heartbeat.work, heartbeat);
drivers/gpu/drm/i915/gt/intel_engine_heartbeat.h +4 -0
@@ -7,6 +7,7 @@#define INTEL_ENGINE_HEARTBEAT_H struct intel_engine_cs ; +struct intel_gt ;void intel_engine_init_heartbeat (struct intel_engine_cs *engine);
@@ -16,6 +17,9 @@ int intel_engine_set_heartbeat(struct intel_engine_cs *engine,void intel_engine_park_heartbeat (struct intel_engine_cs *engine);void intel_engine_unpark_heartbeat (struct intel_engine_cs *engine); +void intel_gt_park_heartbeats (struct intel_gt *gt); +void intel_gt_unpark_heartbeats (struct intel_gt *gt); +int intel_engine_pulse (struct intel_engine_cs *engine);int intel_engine_flush_barriers (struct intel_engine_cs *engine);
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +9 -0
@@ -10,6 +10,7 @@#include "gt/intel_breadcrumbs.h" #include "gt/intel_context.h" #include "gt/intel_engine_pm.h" +#include "gt/intel_engine_heartbeat.h" #include "gt/intel_gt.h" #include "gt/intel_gt_irq.h" #include "gt/intel_gt_pm.h"
@@ -604,6 +605,7 @@ void intel_guc_submission_reset_prepare(struct intel_guc *guc)/* Reset called during driver load? GuC not yet initialised! */ return ; +intel_gt_park_heartbeats (guc_to_gt (guc));disable_submission (guc); guc->interrupts.disable (guc);
@@ -889,6 +891,7 @@ void intel_guc_submission_reset_finish(struct intel_guc *guc)atomic_set (&guc->outstanding_submission_g2h,0 );enable_submission (guc); +intel_gt_unpark_heartbeats (guc_to_gt (guc)); }/*
@@ -1856,6 +1859,11 @@ static int guc_resume(struct intel_engine_cs *engine)return 0 ; } +static bool guc_sched_engine_disabled (struct i915_sched_engine *sched_engine) +{ +return !sched_engine->tasklet.callback; +} +static void guc_set_default_submission (struct intel_engine_cs *engine) { engine->submit_request = guc_submit_request;
@@ -2006,6 +2014,7 @@ int intel_guc_submission_setup(struct intel_engine_cs *engine)return -ENOMEM ; guc->sched_engine->schedule = i915_schedule; + guc->sched_engine->disabled = guc_sched_engine_disabled; guc->sched_engine->engine = engine;tasklet_setup (&guc->sched_engine->tasklet, guc_submission_tasklet);
drivers/gpu/drm/i915/i915_scheduler.c +6 -0
@@ -440,6 +440,11 @@ void i915_sched_engine_free(struct kref *kref)kfree (sched_engine); } +static bool default_disabled (struct i915_sched_engine *sched_engine) +{ +return false; +} +struct i915_sched_engine *i915_sched_engine_create (unsigned int subclass) {
@@ -453,6 +458,7 @@ i915_sched_engine_create(unsigned int subclass) sched_engine->queue =RB_ROOT_CACHED ; sched_engine->queue_priority_hint =INT_MIN ; + sched_engine->disabled = default_disabled;INIT_LIST_HEAD (&sched_engine->requests);INIT_LIST_HEAD (&sched_engine->hold);
drivers/gpu/drm/i915/i915_scheduler.h +6 -0
@@ -116,4 +116,10 @@ sched_engine_active_unlock_bh(struct i915_sched_engine *sched_engine) local_bh_enable(); /* restore softirq, and kick ksoftirqd! */ } +static inline bool +i915_sched_engine_disabled (struct i915_sched_engine *sched_engine) +{ +return sched_engine->disabled (sched_engine); +} +#endif /* _I915_SCHEDULER_H_ */
drivers/gpu/drm/i915/i915_scheduler_types.h +3 -0
@@ -141,6 +141,9 @@ struct i915_sched_engine {/* Back pointer to engine */ struct intel_engine_cs *engine; +/* Schedule engine is disabled by backend */ +bool (*disabled)(struct i915_sched_engine *sched_engine); +/* Kick backend */ void (*kick_backend)(const struct i915_request *rq,int prio);
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [RFC PATCH 65/97] drm/i915: Reset GPU immediately if submission is disabled
Quoted 2 lines · Matthew Brost
If submission is disabled by the backend for any reason, reset the GPU immediately in the heartbeat code.
Okay that's what, but why is also often good to have in commit messages.
Regards,
Tvrtko
Quoted 229 lines
Signed-off-by Matthew Brost <[email protected]>--- .../gpu/drm/i915/gt/intel_engine_heartbeat.c | 63 +++++++++++++++---- .../gpu/drm/i915/gt/intel_engine_heartbeat.h | 4 ++ .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 9 +++ drivers/gpu/drm/i915/i915_scheduler.c | 6 ++ drivers/gpu/drm/i915/i915_scheduler.h | 6 ++ drivers/gpu/drm/i915/i915_scheduler_types.h | 3 + 6 files changed, 78 insertions(+), 13 deletions(-)drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c +50
-13@@ -70,12 +70,30 @@ static void show_heartbeat(const struct i915_request *rq, {struct drm_printer p =drm_debug_printer ("heartbeat" ); -intel_engine_dump (engine, &p, -"%s heartbeat {seqno:%llx:%lld, prio:%d} not ticking\n" , - engine->name, - rq->fence.context, - rq->fence.seqno, - rq->sched.attr.priority); +if (!rq) { +intel_engine_dump (engine, &p, +"%s heartbeat not ticking\n" , + engine->name); + }else { +intel_engine_dump (engine, &p, +"%s heartbeat {seqno:%llx:%lld, prio:%d} not ticking\n" , + engine->name, + rq->fence.context, + rq->fence.seqno, + rq->sched.attr.priority); + } +} + +static void +reset_engine (struct intel_engine_cs *engine,struct i915_request *rq) +{ +if (IS_ENABLED (CONFIG_DRM_I915_DEBUG_GEM )) +show_heartbeat (rq, engine); + +intel_gt_handle_error (engine->gt, engine->mask, +I915_ERROR_CAPTURE , +"stopped heartbeat on %s" , + engine->name); }static void heartbeat (struct work_struct *wrk)@@ -102,6 +120,11 @@ static void heartbeat(struct work_struct *wrk)if (intel_gt_is_wedged (engine->gt)) goto out; +if (i915_sched_engine_disabled (engine->sched_engine)) { +reset_engine (engine, engine->heartbeat.systole); + goto out; + } +if (engine->heartbeat.systole) {long delay =READ_ONCE (engine->props.heartbeat_interval_ms);@@ -139,13 +162,7 @@ static void heartbeat(struct work_struct *wrk) engine->sched_engine->schedule (rq, &attr);local_bh_enable (); }else { -if (IS_ENABLED (CONFIG_DRM_I915_DEBUG_GEM )) -show_heartbeat (rq, engine); - -intel_gt_handle_error (engine->gt, engine->mask, -I915_ERROR_CAPTURE , -"stopped heartbeat on %s" , - engine->name); +reset_engine (engine, rq); } rq->emitted_jiffies = jiffies;@@ -194,6 +211,26 @@ void intel_engine_park_heartbeat(struct intel_engine_cs *engine)i915_request_put (fetch_and_zero (&engine->heartbeat.systole)); } +void intel_gt_unpark_heartbeats (struct intel_gt *gt) +{ +struct intel_engine_cs *engine; +enum intel_engine_id id; + +for_each_engine (engine, gt, id) +if (intel_engine_pm_is_awake (engine)) +intel_engine_unpark_heartbeat (engine); + +} + +void intel_gt_park_heartbeats (struct intel_gt *gt) +{ +struct intel_engine_cs *engine; +enum intel_engine_id id; + +for_each_engine (engine, gt, id) +intel_engine_park_heartbeat (engine); +} +void intel_engine_init_heartbeat (struct intel_engine_cs *engine) {INIT_DELAYED_WORK (&engine->heartbeat.work, heartbeat);drivers/gpu/drm/i915/gt/intel_engine_heartbeat.h +4
-0@@ -7,6 +7,7 @@#define INTEL_ENGINE_HEARTBEAT_H struct intel_engine_cs ; +struct intel_gt ;void intel_engine_init_heartbeat (struct intel_engine_cs *engine);@@ -16,6 +17,9 @@ int intel_engine_set_heartbeat(struct intel_engine_cs *engine,void intel_engine_park_heartbeat (struct intel_engine_cs *engine);void intel_engine_unpark_heartbeat (struct intel_engine_cs *engine); +void intel_gt_park_heartbeats (struct intel_gt *gt); +void intel_gt_unpark_heartbeats (struct intel_gt *gt); +int intel_engine_pulse (struct intel_engine_cs *engine);int intel_engine_flush_barriers (struct intel_engine_cs *engine);drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +9
-0@@ -10,6 +10,7 @@#include "gt/intel_breadcrumbs.h" #include "gt/intel_context.h" #include "gt/intel_engine_pm.h" +#include "gt/intel_engine_heartbeat.h" #include "gt/intel_gt.h" #include "gt/intel_gt_irq.h" #include "gt/intel_gt_pm.h" @@ -604,6 +605,7 @@ void intel_guc_submission_reset_prepare(struct intel_guc *guc)/* Reset called during driver load? GuC not yet initialised! */ return ; +intel_gt_park_heartbeats (guc_to_gt (guc));disable_submission (guc); guc->interrupts.disable (guc);@@ -889,6 +891,7 @@ void intel_guc_submission_reset_finish(struct intel_guc *guc)atomic_set (&guc->outstanding_submission_g2h,0 );enable_submission (guc); +intel_gt_unpark_heartbeats (guc_to_gt (guc)); }/* @@ -1856,6 +1859,11 @@ static int guc_resume(struct intel_engine_cs *engine)return 0 ; } +static bool guc_sched_engine_disabled (struct i915_sched_engine *sched_engine) +{ +return !sched_engine->tasklet.callback; +} +static void guc_set_default_submission (struct intel_engine_cs *engine) { engine->submit_request = guc_submit_request;@@ -2006,6 +2014,7 @@ int intel_guc_submission_setup(struct intel_engine_cs *engine)return -ENOMEM ; guc->sched_engine->schedule = i915_schedule; + guc->sched_engine->disabled = guc_sched_engine_disabled; guc->sched_engine->engine = engine;tasklet_setup (&guc->sched_engine->tasklet, guc_submission_tasklet);drivers/gpu/drm/i915/i915_scheduler.c +6
-0@@ -440,6 +440,11 @@ void i915_sched_engine_free(struct kref *kref)kfree (sched_engine); } +static bool default_disabled (struct i915_sched_engine *sched_engine) +{ +return false; +} +struct i915_sched_engine *i915_sched_engine_create (unsigned int subclass) {@@ -453,6 +458,7 @@ i915_sched_engine_create(unsigned int subclass) sched_engine->queue =RB_ROOT_CACHED ; sched_engine->queue_priority_hint =INT_MIN ; + sched_engine->disabled = default_disabled;INIT_LIST_HEAD (&sched_engine->requests);INIT_LIST_HEAD (&sched_engine->hold);drivers/gpu/drm/i915/i915_scheduler.h +6
-0@@ -116,4 +116,10 @@ sched_engine_active_unlock_bh(struct i915_sched_engine *sched_engine) local_bh_enable(); /* restore softirq, and kick ksoftirqd! */ } +static inline bool +i915_sched_engine_disabled (struct i915_sched_engine *sched_engine) +{ +return sched_engine->disabled (sched_engine); +} +#endif /* _I915_SCHEDULER_H_ */ drivers/gpu/drm/i915/i915_scheduler_types.h +3
-0@@ -141,6 +141,9 @@ struct i915_sched_engine {/* Back pointer to engine */ struct intel_engine_cs *engine; +/* Schedule engine is disabled by backend */ +bool (*disabled)(struct i915_sched_engine *sched_engine); +/* Kick backend */ void (*kick_backend)(const struct i915_request *rq,int prio);
RFC PATCH 66/97 drm/i915/guc: Add disable interrupts to guc sanitize
In reply to Matthew BrostAdd disable GuC interrupts to intel_guc_sanitize(). Part of this requires moving the guc_*_interrupt wrapper function into header file intel_guc.h.
--- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 16 ++++++++++++++++ drivers/gpu/drm/i915/gt/uc/intel_uc.c | 21 +++------------------ 2 files changed, 19 insertions(+), 18 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc.h +16 -0
@@ -218,9 +218,25 @@ static inline bool intel_guc_is_ready(struct intel_guc *guc)return intel_guc_is_fw_running (guc) &&intel_guc_ct_enabled (&guc->ct); } +static inline void intel_guc_reset_interrupts (struct intel_guc *guc) +{ + guc->interrupts.reset (guc); +} + +static inline void intel_guc_enable_interrupts (struct intel_guc *guc) +{ + guc->interrupts.enable (guc); +} + +static inline void intel_guc_disable_interrupts (struct intel_guc *guc) +{ + guc->interrupts.disable (guc); +} +static inline int intel_guc_sanitize (struct intel_guc *guc) {intel_uc_fw_sanitize (&guc->fw); +intel_guc_disable_interrupts (guc);intel_guc_ct_sanitize (&guc->ct); guc->mmio_msg =0 ;
drivers/gpu/drm/i915/gt/uc/intel_uc.c +3 -18
@@ -207,21 +207,6 @@ static void guc_handle_mmio_msg(struct intel_guc *guc)spin_unlock_irq (&guc->irq_lock); } -static void guc_reset_interrupts (struct intel_guc *guc) -{ - guc->interrupts.reset (guc); -} - -static void guc_enable_interrupts (struct intel_guc *guc) -{ - guc->interrupts.enable (guc); -} - -static void guc_disable_interrupts (struct intel_guc *guc) -{ - guc->interrupts.disable (guc); -} -static int guc_enable_communication (struct intel_guc *guc) {struct intel_gt *gt =guc_to_gt (guc);
@@ -242,7 +227,7 @@ static int guc_enable_communication(struct intel_guc *guc)guc_get_mmio_msg (guc);guc_handle_mmio_msg (guc); -guc_enable_interrupts (guc); +intel_guc_enable_interrupts (guc);/* check for CT messages received before we enabled interrupts */ spin_lock_irq (>->irq_lock);
@@ -265,7 +250,7 @@ static void guc_disable_communication(struct intel_guc *guc)*/ guc_clear_mmio_msg (guc); -guc_disable_interrupts (guc); +intel_guc_disable_interrupts (guc);intel_guc_ct_disable (&guc->ct);
@@ -463,7 +448,7 @@ static int __uc_init_hw(struct intel_uc *uc)if (ret) goto err_out; -guc_reset_interrupts (guc); +intel_guc_reset_interrupts (guc);/* WaEnableuKernelHeaderValidFix:skl */ /* WaEnableGuCBootHashCheckNotSet:skl,bxt,kbl */
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
kernel test robot
build bot[drm/i915/guc] 07336fb545: WARNING:at_drivers/gpu/drm/i915/gt/uc/intel_uc.c:#__uc_sanitize[i915]
FYI, we noticed the following commit (built with gcc-9):
Greeting,
FYI, we noticed the following commit (built with gcc-9):
commit: 07336fb545bfa9794d5b4146809355dffc93f0aa ("[RFC PATCH 66/97] drm/i915/guc: Add disable interrupts to guc sanitize")
url: https://github.com/0day-ci/linux/commits/Matthew-Brost/Basic-GuC-submission-support-in-the-i915/20210507-030308
base: git://anongit.freedesktop.org/drm/drm-tip drm-tip
in testcase: xfstests
version: xfstests-x86_64-73c0871-1_20210401
with following parameters:
disk: 4HDD fs: xfs test: xfs-group-23 ucode: 0x21
test-description: xfstests is a regression test suite for xfs and other files ystems.
test-url: git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git
on test machine: 4 threads 1 sockets Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz with 8G memory
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
If you fix the issue, kindly add following tag
kern :warn : [ 24.324557] ------------[ cut here ]------------ kern :warn : [ 24.329257] GuC status: 0x0, MIA core expected to be in reset kern :warn : [ 24.335071] WARNING: CPU: 1 PID: 197 at drivers/gpu/drm/i915/gt/uc/intel_uc.c:60 __uc_sanitize+0xa1/0xc0 [i915] kern :warn : [ 24.346756] Modules linked in: intel_powerclamp coretemp acpi_cpufreq(-) kvm_intel i915(+) ahci kvm intel_gtt libahci drm_kms_helper irq bypass crct10dif_pclmul crc32_pclmul syscopyarea crc32c_intel mei_me sysfillrect wmi_bmof ghash_clmulni_intel rapl sysimgblt fb_sys_fops intel_cstate liba ta drm joydev mei intel_uncore wmi video ip_tables kern :warn : [ 24.378439] CPU: 1 PID: 197 Comm: systemd-udevd Not tainted 5.12.0-02605-g07336fb545bf #1 kern :warn : [ 24.388071] Hardware name: Hewlett-Packard HP Pro 3340 MT/17A1, BIOS 8.07 01/24/2013 kern :warn : [ 24.397285] RIP: 0010:__uc_sanitize+0xa1/0xc0 [i915] kern :warn : [ 24.402840] Code: 44 89 e0 5b 41 5c c3 89 c6 48 c7 c7 20 4c 9b c0 e8 b4 47 8f ff 44 89 e0 5b 41 5c c3 89 c6 48 c7 c7 40 4c 9b c0 e8 b5 6 2 31 c1 <0f> 0b eb d2 66 66 2e 0f 1f 84 00 00 00 00 00 66 66 2e 0f 1f 84 00 kern :warn : [ 24.421847] RSP: 0018:ffffc900005c7990 EFLAGS: 00010286 kern :warn : [ 24.427101] RAX: 0000000000000000 RBX: ffff88821b3c6908 RCX: 0000000000000000 kern :warn : [ 24.434288] RDX: ffff88821faa7960 RSI: ffff88821fa977f0 RDI: ffff88821fa977f0 kern :warn : [ 24.441519] RBP: ffff88821b3d3450 R08: ffff88821fa977f0 R09: ffffc900005c77a8 kern :warn : [ 24.450088] R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000 kern :warn : [ 24.458674] R13: ffff88821b3c68f0 R14: 0000000000000001 R15: ffff88821b3c6908 kern :warn : [ 24.467270] FS: 00007fc4a4b3ad40(0000) GS:ffff88821fa80000(0000) knlGS:0000000000000000 kern :warn : [ 24.475429] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kern :warn : [ 24.482569] CR2: 00007fc4a521202f CR3: 000000021f0fe006 CR4: 00000000001706e0 kern :warn : [ 24.491126] Call Trace: kern :warn : [ 24.493780] gt_sanitize+0x83/0x180 [i915] kern :warn : [ 24.498005] intel_gt_resume+0x51/0x280 [i915] kern :warn : [ 24.503938] ? intel_rps_init+0x301/0x760 [i915] kern :warn : [ 24.509981] intel_gt_init+0x146/0x2e0 [i915] kern :warn : [ 24.515762] i915_gem_init+0x129/0x1c0 [i915] kern :warn : [ 24.521535] i915_driver_probe+0x2f3/0x6a0 [i915] kern :warn : [ 24.526959] ? __cond_resched+0x19/0x40 kern :warn : [ 24.530826] ? mutex_lock+0x21/0x40 kern :warn : [ 24.530831] i915_pci_probe+0x54/0x140 [i915] kern :warn : [ 24.538745] local_pci_probe+0x42/0x80 kern :warn : [ 24.542524] ? __cond_resched+0x19/0x40 kern :warn : [ 24.546408] pci_device_probe+0x107/0x1c0 kern :warn : [ 24.551825] really_probe+0xf0/0x400 kern :warn : [ 24.556811] driver_probe_device+0xe1/0x160 kern :warn : [ 24.562399] device_driver_attach+0x53/0x60 kern :warn : [ 24.567991] __driver_attach+0x8a/0x160 kern :warn : [ 24.572815] ? device_driver_attach+0x60/0x60 kern :info : [ 24.573611] ata5: SATA link up 3.0 Gbps (SStatus 123 SControl 300) kern :warn : [ 24.577243] ? device_driver_attach+0x60/0x60 kern :warn : [ 24.577246] bus_for_each_dev+0x78/0xc0 kern :info : [ 24.583520] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300) kern :warn : [ 24.587886] bus_add_driver+0x14d/0x200 kern :debug : [ 24.598175] ata5.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded kern :warn : [ 24.601823] driver_register+0x6c/0xc0 kern :info : [ 24.608849] ata5.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out kern :warn : [ 24.612654] ? 0xffffffffc0ad9000 kern :warn : [ 24.612657] i915_init+0x62/0x7c [i915] kern :info : [ 24.620637] ata5.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out kern :warn : [ 24.623980] do_one_initcall+0x44/0x200 kern :debug : [ 24.627872] ata1.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded kern :warn : [ 24.636540] ? __cond_resched+0x19/0x40 kern :info : [ 24.640395] ata1.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out kern :warn : [ 24.647416] ? kmem_cache_alloc_trace+0x44/0x460 kern :info : [ 24.651297] ata1.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out kern :warn : [ 24.659262] do_init_module+0x5c/0x240 kern :info : [ 24.663933] ata5.00: ATA-10: INTEL SSDSC2KB240G8, XCV10100, max UDMA/133 kern :warn : [ 24.672656] load_module+0x1143/0x13a0 kern :info : [ 24.676418] ata5.00: 468862128 sectors, multi 1: LBA48 NCQ (depth 32) kern :warn : [ 24.683177] ? kernel_read_file+0x220/0x280 kern :warn : [ 24.697667] ? __do_sys_finit_module+0xb1/0x120 kern :info : [ 24.697670] ata1.00: ATA-9: WDC WD20EZRX-00D8PB0, 80.00A80, max UDMA/133 kern :warn : [ 24.702259] __do_sys_finit_module+0xb1/0x120 kern :info : [ 24.709017] ata1.00: 3907029168 sectors, multi 16: LBA48 NCQ (depth 32), AA kern :warn : [ 24.713423] do_syscall_64+0x33/0x40 kern :warn : [ 24.725471] entry_SYSCALL_64_after_hwframe+0x44/0xae kern :debug : [ 24.725490] ata5.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded kern :warn : [ 24.731975] RIP: 0033:0x7fc4a5324f59 kern :info : [ 24.740383] ata5.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out kern :info : [ 24.740387] ata5.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out kern :warn : [ 24.745426] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 07 6f 0c 00 f7 d8 64 89 01 48 kern :debug : [ 24.762803] ata1.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded kern :warn : [ 24.781758] RSP: 002b:00007ffd7e4e4988 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 kern :info : [ 24.788776] ata1.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out kern :warn : [ 24.796438] RAX: ffffffffffffffda RBX: 0000559b41efcc10 RCX: 00007fc4a5324f59 kern :warn : [ 24.796440] RDX: 0000000000000000 RSI: 00007fc4a5229cad RDI: 0000000000000015 kern :warn : [ 24.796442] RBP: 00007fc4a5229cad R08: 0000000000000000 R09: 0000000000000000 kern :info : [ 24.804419] ata1.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out kern :warn : [ 24.811605] R10: 0000000000000015 R11: 0000000000000246 R12: 0000000000000000 kern :warn : [ 24.811607] R13: 0000559b41ef4870 R14: 0000000000020000 R15: 0000559b41efcc10 kern :info : [ 24.818795] ata5.00: configured for UDMA/133 kern :warn : [ 24.825989] ---[ end trace d71d841a02d7284b ]---
To reproduce:
git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp install job.yaml # job file is attached in this email
bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run
bin/lkp run generated-yaml-file
---
0DAY/LKP+ Test Infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/[email protected] Intel Corporation
Thanks,
Oliver Sang
#
# Automatically generated file; DO NOT EDIT. # Linux/x86_64 5.12.0 Kernel Configuration
#CONFIG_CC_VERSION_TEXT="gcc-9 (Debian 9.3.0-22) 9.3.0" CONFIG_CC_IS_GCC=yCONFIG_GCC_VERSION=90300 CONFIG_CLANG_VERSION=0CONFIG_LD_IS_BFD=yCONFIG_LD_VERSION=23502CONFIG_LLD_VERSION=0CONFIG_CC_CAN_LINK=y CONFIG_CC_CAN_LINK_STATIC=y CONFIG_CC_HAS_ASM_GOTO=y CONFIG_CC_HAS_ASM_INLINE=yCONFIG_IRQ_WORK=y CONFIG_BUILDTIME_TABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y
#
# General setup
#CONFIG_INIT_ENV_ARG_LIMIT=32
# CONFIG_COMPILE_TEST is not setCONFIG_LOCALVERSION=""CONFIG_LOCALVERSION_AUTO=yCONFIG_BUILD_SALT=""CONFIG_HAVE_KERNEL_GZIP=yCONFIG_HAVE_KERNEL_BZIP2=yCONFIG_HAVE_KERNEL_LZMA=yCONFIG_HAVE_KERNEL_XZ=yCONFIG_HAVE_KERNEL_LZO=yCONFIG_HAVE_KERNEL_LZ4=yCONFIG_HAVE_KERNEL_ZSTD=yCONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set
# CONFIG_KERNEL_ZSTD is not setCONFIG_DEFAULT_INIT=""CONFIG_DEFAULT_HOSTNAME="(none)"CONFIG_SWAP=yCONFIG_SYSVIPC=yCONFIG_SYSVIPC_SYSCTL=yCONFIG_POSIX_MQUEUE=yCONFIG_POSIX_MQUEUE_SYSCTL=y
# CONFIG_WATCH_QUEUE is not setCONFIG_CROSS_MEMORY_ATTACH=y
# CONFIG_USELIB is not setCONFIG_AUDIT=yCONFIG_HAVE_ARCH_AUDITSYSCALL=yCONFIG_AUDITSYSCALL=y
#
# IRQ subsystem
#CONFIG_GENERIC_IRQ_PROBE=yCONFIG_GENERIC_IRQ_SHOW=yCONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=yCONFIG_GENERIC_PENDING_IRQ=yCONFIG_GENERIC_IRQ_MIGRATION=yCONFIG_GENERIC_IRQ_INJECTION=yCONFIG_HARDIRQS_SW_RESEND=yCONFIG_IRQ_DOMAIN=yCONFIG_IRQ_DOMAIN_HIERARCHY=yCONFIG_GENERIC_MSI_IRQ=yCONFIG_GENERIC_MSI_IRQ_DOMAIN=yCONFIG_IRQ_MSI_IOMMU=yCONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=yCONFIG_GENERIC_IRQ_RESERVATION_MODE=yCONFIG_IRQ_FORCED_THREADING=yCONFIG_SPARSE_IRQ=y
# CONFIG_GENERIC_IRQ_DEBUGFS is not set
# end of IRQ subsystem
CONFIG_CLOCKSOURCE_WATCHDOG=yCONFIG_ARCH_CLOCKSOURCE_INIT=yCONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=yCONFIG_GENERIC_TIME_VSYSCALL=yCONFIG_GENERIC_CLOCKEVENTS=yCONFIG_GENERIC_CLOCKEVENTS_BROADCAST=yCONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=yCONFIG_GENERIC_CMOS_UPDATE=yCONFIG_HAVE_POSIX_CPU_TIMERS_TASK_WORK=yCONFIG_POSIX_CPU_TIMERS_TASK_WORK=y
#
# Timers subsystem
#CONFIG_TICK_ONESHOT=yCONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
# CONFIG_NO_HZ_IDLE is not setCONFIG_NO_HZ_FULL=yCONFIG_CONTEXT_TRACKING=y
# CONFIG_CONTEXT_TRACKING_FORCE is not setCONFIG_NO_HZ=yCONFIG_HIGH_RES_TIMERS=y
# end of Timers subsystem
# CONFIG_PREEMPT_NONE is not setCONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not setCONFIG_PREEMPT_COUNT=y
#
# CPU/Task time and stats accounting
#CONFIG_VIRT_CPU_ACCOUNTING=yCONFIG_VIRT_CPU_ACCOUNTING_GEN=yCONFIG_IRQ_TIME_ACCOUNTING=yCONFIG_HAVE_SCHED_AVG_IRQ=yCONFIG_BSD_PROCESS_ACCT=yCONFIG_BSD_PROCESS_ACCT_V3=yCONFIG_TASKSTATS=yCONFIG_TASK_DELAY_ACCT=yCONFIG_TASK_XACCT=yCONFIG_TASK_IO_ACCOUNTING=y
# CONFIG_PSI is not set
# end of CPU/Task time and stats accounting
CONFIG_CPU_ISOLATION=y
#
# RCU Subsystem
#CONFIG_TREE_RCU=y
# CONFIG_RCU_EXPERT is not setCONFIG_SRCU=yCONFIG_TREE_SRCU=yCONFIG_TASKS_RCU_GENERIC=yCONFIG_TASKS_RCU=yCONFIG_TASKS_RUDE_RCU=yCONFIG_TASKS_TRACE_RCU=yCONFIG_RCU_STALL_COMMON=yCONFIG_RCU_NEED_SEGCBLIST=yCONFIG_RCU_NOCB_CPU=y
# end of RCU Subsystem
CONFIG_BUILD_BIN2C=yCONFIG_IKCONFIG=yCONFIG_IKCONFIG_PROC=y
# CONFIG_IKHEADERS is not setCONFIG_LOG_BUF_SHIFT=20CONFIG_LOG_CPU_MAX_BUF_SHIFT=12CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=13CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
#
# Scheduler features
#
# CONFIG_UCLAMP_TASK is not set
# end of Scheduler features
CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=yCONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=yCONFIG_CC_HAS_INT128=yCONFIG_ARCH_SUPPORTS_INT128=yCONFIG_NUMA_BALANCING=yCONFIG_NUMA_BALANCING_DEFAULT_ENABLED=yCONFIG_CGROUPS=yCONFIG_PAGE_COUNTER=yCONFIG_MEMCG=yCONFIG_MEMCG_SWAP=yCONFIG_MEMCG_KMEM=yCONFIG_BLK_CGROUP=yCONFIG_CGROUP_WRITEBACK=yCONFIG_CGROUP_SCHED=yCONFIG_FAIR_GROUP_SCHED=yCONFIG_CFS_BANDWIDTH=yCONFIG_RT_GROUP_SCHED=yCONFIG_CGROUP_PIDS=yCONFIG_CGROUP_RDMA=yCONFIG_CGROUP_FREEZER=yCONFIG_CGROUP_HUGETLB=yCONFIG_CPUSETS=yCONFIG_PROC_PID_CPUSET=yCONFIG_CGROUP_DEVICE=yCONFIG_CGROUP_CPUACCT=yCONFIG_CGROUP_PERF=yCONFIG_CGROUP_BPF=y
# CONFIG_CGROUP_DEBUG is not setCONFIG_SOCK_CGROUP_DATA=yCONFIG_NAMESPACES=yCONFIG_UTS_NS=yCONFIG_TIME_NS=yCONFIG_IPC_NS=yCONFIG_USER_NS=yCONFIG_PID_NS=yCONFIG_NET_NS=y
# CONFIG_CHECKPOINT_RESTORE is not setCONFIG_SCHED_AUTOGROUP=y
# CONFIG_SYSFS_DEPRECATED is not setCONFIG_RELAY=yCONFIG_BLK_DEV_INITRD=yCONFIG_INITRAMFS_SOURCE=""CONFIG_RD_GZIP=yCONFIG_RD_BZIP2=yCONFIG_RD_LZMA=yCONFIG_RD_XZ=yCONFIG_RD_LZO=yCONFIG_RD_LZ4=yCONFIG_RD_ZSTD=y
# CONFIG_BOOT_CONFIG is not setCONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not setCONFIG_LD_ORPHAN_WARN=yCONFIG_SYSCTL=yCONFIG_HAVE_UID16=yCONFIG_SYSCTL_EXCEPTION_TRACE=yCONFIG_HAVE_PCSPKR_PLATFORM=yCONFIG_BPF=y
# CONFIG_EXPERT is not setCONFIG_UID16=yCONFIG_MULTIUSER=yCONFIG_SGETMASK_SYSCALL=yCONFIG_SYSFS_SYSCALL=yCONFIG_FHANDLE=yCONFIG_POSIX_TIMERS=yCONFIG_PRINTK=yCONFIG_PRINTK_NMI=yCONFIG_BUG=yCONFIG_ELF_CORE=yCONFIG_PCSPKR_PLATFORM=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_FUTEX_PI=yCONFIG_EPOLL=yCONFIG_SIGNALFD=yCONFIG_TIMERFD=yCONFIG_EVENTFD=yCONFIG_SHMEM=yCONFIG_AIO=yCONFIG_IO_URING=yCONFIG_ADVISE_SYSCALLS=yCONFIG_HAVE_ARCH_USERFAULTFD_WP=yCONFIG_MEMBARRIER=yCONFIG_KALLSYMS=yCONFIG_KALLSYMS_ALL=yCONFIG_KALLSYMS_ABSOLUTE_PERCPU=yCONFIG_KALLSYMS_BASE_RELATIVE=y
# CONFIG_BPF_LSM is not setCONFIG_BPF_SYSCALL=yCONFIG_ARCH_WANT_DEFAULT_BPF_JIT=yCONFIG_BPF_JIT_ALWAYS_ON=yCONFIG_BPF_JIT_DEFAULT_ON=y
# CONFIG_BPF_PRELOAD is not setCONFIG_USERFAULTFD=yCONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=yCONFIG_KCMP=yCONFIG_RSEQ=y
# CONFIG_EMBEDDED is not setCONFIG_HAVE_PERF_EVENTS=y
#
# Kernel Performance Events And Counters
#CONFIG_PERF_EVENTS=y
# CONFIG_DEBUG_PERF_USE_VMALLOC is not set
# end of Kernel Performance Events And Counters
CONFIG_VM_EVENT_COUNTERS=yCONFIG_SLUB_DEBUG=y
# CONFIG_COMPAT_BRK is not set
# CONFIG_SLAB is not setCONFIG_SLUB=yCONFIG_SLAB_MERGE_DEFAULT=yCONFIG_SLAB_FREELIST_RANDOM=y
# CONFIG_SLAB_FREELIST_HARDENED is not setCONFIG_SHUFFLE_PAGE_ALLOCATOR=yCONFIG_SLUB_CPU_PARTIAL=yCONFIG_SYSTEM_DATA_VERIFICATION=yCONFIG_PROFILING=yCONFIG_TRACEPOINTS=y
# end of General setup
CONFIG_64BIT=yCONFIG_X86_64=yCONFIG_X86=yCONFIG_INSTRUCTION_DECODER=yCONFIG_OUTPUT_FORMAT="elf64-x86-64"CONFIG_LOCKDEP_SUPPORT=yCONFIG_STACKTRACE_SUPPORT=yCONFIG_MMU=yCONFIG_ARCH_MMAP_RND_BITS_MIN=28CONFIG_ARCH_MMAP_RND_BITS_MAX=32CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16CONFIG_GENERIC_ISA_DMA=yCONFIG_GENERIC_BUG=yCONFIG_GENERIC_BUG_RELATIVE_POINTERS=yCONFIG_ARCH_MAY_HAVE_PC_FDC=yCONFIG_GENERIC_CALIBRATE_DELAY=yCONFIG_ARCH_HAS_CPU_RELAX=yCONFIG_ARCH_HAS_CACHE_LINE_SIZE=yCONFIG_ARCH_HAS_FILTER_PGPROT=yCONFIG_HAVE_SETUP_PER_CPU_AREA=yCONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=yCONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=yCONFIG_ARCH_HIBERNATION_POSSIBLE=yCONFIG_ARCH_SUSPEND_POSSIBLE=yCONFIG_ARCH_WANT_GENERAL_HUGETLB=yCONFIG_ZONE_DMA32=yCONFIG_AUDIT_ARCH=yCONFIG_HAVE_INTEL_TXT=yCONFIG_X86_64_SMP=yCONFIG_ARCH_SUPPORTS_UPROBES=yCONFIG_FIX_EARLYCON_MEM=yCONFIG_DYNAMIC_PHYSICAL_MASK=yCONFIG_PGTABLE_LEVELS=5CONFIG_CC_HAS_SANE_STACKPROTECTOR=y
#
# Processor type and features
#CONFIG_ZONE_DMA=yCONFIG_SMP=yCONFIG_X86_FEATURE_NAMES=yCONFIG_X86_X2APIC=yCONFIG_X86_MPPARSE=y
# CONFIG_GOLDFISH is not setCONFIG_RETPOLINE=yCONFIG_X86_CPU_RESCTRL=yCONFIG_X86_EXTENDED_PLATFORM=y
# CONFIG_X86_NUMACHIP is not set
# CONFIG_X86_VSMP is not setCONFIG_X86_UV=y
# CONFIG_X86_GOLDFISH is not set
# CONFIG_X86_INTEL_MID is not setCONFIG_X86_INTEL_LPSS=yCONFIG_X86_AMD_PLATFORM_DEVICE=yCONFIG_IOSF_MBI=y
# CONFIG_IOSF_MBI_DEBUG is not setCONFIG_X86_SUPPORTS_MEMORY_FAILURE=y
# CONFIG_SCHED_OMIT_FRAME_POINTER is not setCONFIG_HYPERVISOR_GUEST=yCONFIG_PARAVIRT=y
# CONFIG_PARAVIRT_DEBUG is not setCONFIG_PARAVIRT_SPINLOCKS=yCONFIG_X86_HV_CALLBACK_VECTOR=yCONFIG_XEN=y
# CONFIG_XEN_PV is not setCONFIG_XEN_PVHVM=yCONFIG_XEN_PVHVM_SMP=yCONFIG_XEN_PVHVM_GUEST=yCONFIG_XEN_SAVE_RESTORE=y
# CONFIG_XEN_DEBUG_FS is not set
# CONFIG_XEN_PVH is not setCONFIG_KVM_GUEST=yCONFIG_ARCH_CPUIDLE_HALTPOLL=y
# CONFIG_PVH is not setCONFIG_PARAVIRT_TIME_ACCOUNTING=yCONFIG_PARAVIRT_CLOCK=y
# CONFIG_JAILHOUSE_GUEST is not set
# CONFIG_ACRN_GUEST is not set
# CONFIG_MK8 is not set
# CONFIG_MPSC is not set
# CONFIG_MCORE2 is not set
# CONFIG_MATOM is not setCONFIG_GENERIC_CPU=yCONFIG_X86_INTERNODE_CACHE_SHIFT=6CONFIG_X86_L1_CACHE_SHIFT=6CONFIG_X86_TSC=yCONFIG_X86_CMPXCHG64=yCONFIG_X86_CMOV=yCONFIG_X86_MINIMUM_CPU_FAMILY=64CONFIG_X86_DEBUGCTLMSR=yCONFIG_IA32_FEAT_CTL=yCONFIG_X86_VMX_FEATURE_NAMES=yCONFIG_CPU_SUP_INTEL=yCONFIG_CPU_SUP_AMD=yCONFIG_CPU_SUP_HYGON=yCONFIG_CPU_SUP_CENTAUR=yCONFIG_CPU_SUP_ZHAOXIN=yCONFIG_HPET_TIMER=yCONFIG_HPET_EMULATE_RTC=yCONFIG_DMI=y
# CONFIG_GART_IOMMU is not setCONFIG_MAXSMP=yCONFIG_NR_CPUS_RANGE_BEGIN=8192CONFIG_NR_CPUS_RANGE_END=8192CONFIG_NR_CPUS_DEFAULT=8192CONFIG_NR_CPUS=8192CONFIG_SCHED_SMT=yCONFIG_SCHED_MC=yCONFIG_SCHED_MC_PRIO=yCONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=yCONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=yCONFIG_X86_MCE=yCONFIG_X86_MCELOG_LEGACY=yCONFIG_X86_MCE_INTEL=yCONFIG_X86_MCE_AMD=yCONFIG_X86_MCE_THRESHOLD=yCONFIG_X86_MCE_INJECT=m
#
# Performance monitoring
#CONFIG_PERF_EVENTS_INTEL_UNCORE=mCONFIG_PERF_EVENTS_INTEL_RAPL=mCONFIG_PERF_EVENTS_INTEL_CSTATE=mCONFIG_PERF_EVENTS_AMD_POWER=m
# end of Performance monitoring
CONFIG_X86_16BIT=yCONFIG_X86_ESPFIX64=y CONFIG_X86_VSYSCALL_EMULATION=y CONFIG_X86_IOPL_IOPERM=yCONFIG_I8K=mCONFIG_MICROCODE=yCONFIG_MICROCODE_INTEL=yCONFIG_MICROCODE_AMD=y CONFIG_MICROCODE_OLD_INTERFACE=y CONFIG_X86_MSR=yCONFIG_X86_CPUID=yCONFIG_X86_5LEVEL=yCONFIG_X86_DIRECT_GBPAGES=y
# CONFIG_X86_CPA_STATISTICS is not set CONFIG_AMD_MEM_ENCRYPT=y
# CONFIG_AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT is not set CONFIG_NUMA=yCONFIG_AMD_NUMA=yCONFIG_X86_64_ACPI_NUMA=yCONFIG_NUMA_EMU=yCONFIG_NODES_SHIFT=10 CONFIG_ARCH_SPARSEMEM_ENABLE=y CONFIG_ARCH_SPARSEMEM_DEFAULT=y CONFIG_ARCH_SELECT_MEMORY_MODEL=y
# CONFIG_ARCH_MEMORY_PROBE is not set CONFIG_ARCH_PROC_KCORE_TEXT=y CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000 CONFIG_X86_PMEM_LEGACY_DEVICE=y CONFIG_X86_PMEM_LEGACY=m CONFIG_X86_CHECK_BIOS_CORRUPTION=y
# CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK is not set CONFIG_X86_RESERVE_LOW=64CONFIG_MTRR=yCONFIG_MTRR_SANITIZER=y CONFIG_MTRR_SANITIZER_ENABLE_DEFAULT=1 CONFIG_MTRR_SANITIZER_SPARE_REG_NR_DEFAULT=1 CONFIG_X86_PAT=yCONFIG_ARCH_USES_PG_UNCACHED=y CONFIG_ARCH_RANDOM=yCONFIG_X86_SMAP=yCONFIG_X86_UMIP=y CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS=y CONFIG_X86_INTEL_TSX_MODE_OFF=y
# CONFIG_X86_INTEL_TSX_MODE_ON is not set
# CONFIG_X86_INTEL_TSX_MODE_AUTO is not set
# CONFIG_X86_SGX is not setCONFIG_EFI=yCONFIG_EFI_STUB=yCONFIG_EFI_MIXED=y
# CONFIG_HZ_100 is not set
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not setCONFIG_HZ_1000=yCONFIG_HZ=1000CONFIG_SCHED_HRTICK=yCONFIG_KEXEC=yCONFIG_KEXEC_FILE=y CONFIG_ARCH_HAS_KEXEC_PURGATORY=y
# CONFIG_KEXEC_SIG is not set CONFIG_CRASH_DUMP=yCONFIG_KEXEC_JUMP=y CONFIG_PHYSICAL_START=0x1000000 CONFIG_RELOCATABLE=yCONFIG_RANDOMIZE_BASE=yCONFIG_X86_NEED_RELOCS=y CONFIG_PHYSICAL_ALIGN=0x200000 CONFIG_DYNAMIC_MEMORY_LAYOUT=y CONFIG_RANDOMIZE_MEMORY=y CONFIG_RANDOMIZE_MEMORY_PHYSICAL_PADDING=0xa CONFIG_HOTPLUG_CPU=y CONFIG_BOOTPARAM_HOTPLUG_CPU0=y
# CONFIG_DEBUG_HOTPLUG_CPU0 is not set
# CONFIG_COMPAT_VDSO is not set CONFIG_LEGACY_VSYSCALL_EMULATE=y
# CONFIG_LEGACY_VSYSCALL_XONLY is not set
# CONFIG_LEGACY_VSYSCALL_NONE is not set
# CONFIG_CMDLINE_BOOL is not set CONFIG_MODIFY_LDT_SYSCALL=y CONFIG_HAVE_LIVEPATCH=yCONFIG_LIVEPATCH=y
# end of Processor type and features
CONFIG_ARCH_HAS_ADD_PAGES=yCONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=yCONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=yCONFIG_USE_PERCPU_NUMA_NODE_ID=yCONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=yCONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION=yCONFIG_ARCH_ENABLE_THP_MIGRATION=y
#
# Power management and ACPI options
#CONFIG_ARCH_HIBERNATION_HEADER=yCONFIG_SUSPEND=yCONFIG_SUSPEND_FREEZER=yCONFIG_HIBERNATE_CALLBACKS=yCONFIG_HIBERNATION=yCONFIG_HIBERNATION_SNAPSHOT_DEV=yCONFIG_PM_STD_PARTITION=""CONFIG_PM_SLEEP=yCONFIG_PM_SLEEP_SMP=y
# CONFIG_PM_AUTOSLEEP is not set
# CONFIG_PM_WAKELOCKS is not setCONFIG_PM=yCONFIG_PM_DEBUG=y
# CONFIG_PM_ADVANCED_DEBUG is not set
# CONFIG_PM_TEST_SUSPEND is not setCONFIG_PM_SLEEP_DEBUG=y
# CONFIG_PM_TRACE_RTC is not setCONFIG_PM_CLK=y
# CONFIG_WQ_POWER_EFFICIENT_DEFAULT is not set
# CONFIG_ENERGY_MODEL is not setCONFIG_ARCH_SUPPORTS_ACPI=yCONFIG_ACPI=yCONFIG_ACPI_LEGACY_TABLES_LOOKUP=yCONFIG_ARCH_MIGHT_HAVE_ACPI_PDC=yCONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT=y
# CONFIG_ACPI_DEBUGGER is not setCONFIG_ACPI_SPCR_TABLE=y
# CONFIG_ACPI_FPDT is not setCONFIG_ACPI_LPIT=yCONFIG_ACPI_SLEEP=yCONFIG_ACPI_REV_OVERRIDE_POSSIBLE=yCONFIG_ACPI_EC_DEBUGFS=mCONFIG_ACPI_AC=yCONFIG_ACPI_BATTERY=yCONFIG_ACPI_BUTTON=yCONFIG_ACPI_VIDEO=mCONFIG_ACPI_FAN=yCONFIG_ACPI_TAD=mCONFIG_ACPI_DOCK=yCONFIG_ACPI_CPU_FREQ_PSS=yCONFIG_ACPI_PROCESSOR_CSTATE=yCONFIG_ACPI_PROCESSOR_IDLE=yCONFIG_ACPI_CPPC_LIB=yCONFIG_ACPI_PROCESSOR=yCONFIG_ACPI_IPMI=mCONFIG_ACPI_HOTPLUG_CPU=yCONFIG_ACPI_PROCESSOR_AGGREGATOR=mCONFIG_ACPI_THERMAL=yCONFIG_ACPI_PLATFORM_PROFILE=mCONFIG_ARCH_HAS_ACPI_TABLE_UPGRADE=yCONFIG_ACPI_TABLE_UPGRADE=y
# CONFIG_ACPI_DEBUG is not setCONFIG_ACPI_PCI_SLOT=yCONFIG_ACPI_CONTAINER=yCONFIG_ACPI_HOTPLUG_MEMORY=yCONFIG_ACPI_HOTPLUG_IOAPIC=yCONFIG_ACPI_SBS=mCONFIG_ACPI_HED=y
# CONFIG_ACPI_CUSTOM_METHOD is not setCONFIG_ACPI_BGRT=yCONFIG_ACPI_NFIT=m
# CONFIG_NFIT_SECURITY_DEBUG is not setCONFIG_ACPI_NUMA=y
# CONFIG_ACPI_HMAT is not setCONFIG_HAVE_ACPI_APEI=yCONFIG_HAVE_ACPI_APEI_NMI=yCONFIG_ACPI_APEI=yCONFIG_ACPI_APEI_GHES=yCONFIG_ACPI_APEI_PCIEAER=yCONFIG_ACPI_APEI_MEMORY_FAILURE=yCONFIG_ACPI_APEI_EINJ=mCONFIG_ACPI_APEI_ERST_DEBUG=y
# CONFIG_ACPI_DPTF is not setCONFIG_ACPI_WATCHDOG=yCONFIG_ACPI_EXTLOG=mCONFIG_ACPI_ADXL=y
# CONFIG_ACPI_CONFIGFS is not setCONFIG_PMIC_OPREGION=yCONFIG_X86_PM_TIMER=y
#
# CPU Frequency scaling
#CONFIG_CPU_FREQ=y CONFIG_CPU_FREQ_GOV_ATTR_SET=y CONFIG_CPU_FREQ_GOV_COMMON=y CONFIG_CPU_FREQ_STAT=y CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y # CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=y CONFIG_CPU_FREQ_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_ONDEMAND=y CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
#
# CPU frequency scaling drivers
#CONFIG_X86_INTEL_PSTATE=y
# CONFIG_X86_PCC_CPUFREQ is not setCONFIG_X86_ACPI_CPUFREQ=mCONFIG_X86_ACPI_CPUFREQ_CPB=yCONFIG_X86_POWERNOW_K8=mCONFIG_X86_AMD_FREQ_SENSITIVITY=m
# CONFIG_X86_SPEEDSTEP_CENTRINO is not setCONFIG_X86_P4_CLOCKMOD=m
#
# shared options # CONFIG_X86_SPEEDSTEP_LIB=m # end of CPU Frequency scaling
#
# CPU Idle
#CONFIG_CPU_IDLE=y
# CONFIG_CPU_IDLE_GOV_LADDER is not setCONFIG_CPU_IDLE_GOV_MENU=y
# CONFIG_CPU_IDLE_GOV_TEO is not set
# CONFIG_CPU_IDLE_GOV_HALTPOLL is not setCONFIG_HALTPOLL_CPUIDLE=y
# end of CPU Idle
CONFIG_INTEL_IDLE=y
# end of Power management and ACPI options
#
# Bus options (PCI etc.)
#CONFIG_PCI_DIRECT=yCONFIG_PCI_MMCONFIG=yCONFIG_PCI_XEN=yCONFIG_MMCONF_FAM10H=yCONFIG_ISA_DMA_API=yCONFIG_AMD_NB=y
# CONFIG_X86_SYSFB is not set
# end of Bus options (PCI etc.)
#
# Binary Emulations
#CONFIG_IA32_EMULATION=y
# CONFIG_X86_X32 is not setCONFIG_COMPAT_32=yCONFIG_COMPAT=yCONFIG_COMPAT_FOR_U64_ALIGNMENT=yCONFIG_SYSVIPC_COMPAT=y
# end of Binary Emulations
#
# Firmware Drivers
#CONFIG_EDD=m
# CONFIG_EDD_OFF is not setCONFIG_FIRMWARE_MEMMAP=yCONFIG_DMIID=yCONFIG_DMI_SYSFS=yCONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
# CONFIG_ISCSI_IBFT is not setCONFIG_FW_CFG_SYSFS=y
# CONFIG_FW_CFG_SYSFS_CMDLINE is not set
# CONFIG_GOOGLE_FIRMWARE is not set
#
# EFI (Extensible Firmware Interface) Support
#CONFIG_EFI_VARS=yCONFIG_EFI_ESRT=yCONFIG_EFI_VARS_PSTORE=yCONFIG_EFI_VARS_PSTORE_DEFAULT_DISABLE=yCONFIG_EFI_RUNTIME_MAP=y
# CONFIG_EFI_FAKE_MEMMAP is not setCONFIG_EFI_RUNTIME_WRAPPERS=yCONFIG_EFI_GENERIC_STUB_INITRD_CMDLINE_LOADER=y
# CONFIG_EFI_BOOTLOADER_CONTROL is not set
# CONFIG_EFI_CAPSULE_LOADER is not set
# CONFIG_EFI_TEST is not setCONFIG_APPLE_PROPERTIES=y
# CONFIG_RESET_ATTACK_MITIGATION is not set
# CONFIG_EFI_RCI2_TABLE is not set
# CONFIG_EFI_DISABLE_PCI_DMA is not set
# end of EFI (Extensible Firmware Interface) Support
CONFIG_UEFI_CPER=yCONFIG_UEFI_CPER_X86=yCONFIG_EFI_DEV_PATH_PARSER=yCONFIG_EFI_EARLYCON=yCONFIG_EFI_CUSTOM_SSDT_OVERLAYS=y
#
# Tegra firmware driver
#
# end of Tegra firmware driver # end of Firmware Drivers
CONFIG_HAVE_KVM=yCONFIG_HAVE_KVM_IRQCHIP=yCONFIG_HAVE_KVM_IRQFD=yCONFIG_HAVE_KVM_IRQ_ROUTING=yCONFIG_HAVE_KVM_EVENTFD=yCONFIG_KVM_MMIO=yCONFIG_KVM_ASYNC_PF=yCONFIG_HAVE_KVM_MSI=yCONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT=yCONFIG_KVM_VFIO=yCONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=yCONFIG_KVM_COMPAT=yCONFIG_HAVE_KVM_IRQ_BYPASS=yCONFIG_HAVE_KVM_NO_POLL=yCONFIG_KVM_XFER_TO_GUEST_WORK=yCONFIG_VIRTUALIZATION=yCONFIG_KVM=mCONFIG_KVM_INTEL=m
# CONFIG_KVM_AMD is not set
# CONFIG_KVM_XEN is not setCONFIG_KVM_MMU_AUDIT=yCONFIG_AS_AVX512=yCONFIG_AS_SHA1_NI=yCONFIG_AS_SHA256_NI=yCONFIG_AS_TPAUSE=y
#
# General architecture-dependent options
#CONFIG_CRASH_CORE=yCONFIG_KEXEC_CORE=yCONFIG_HOTPLUG_SMT=yCONFIG_GENERIC_ENTRY=yCONFIG_KPROBES=yCONFIG_JUMP_LABEL=y
# CONFIG_STATIC_KEYS_SELFTEST is not set
# CONFIG_STATIC_CALL_SELFTEST is not setCONFIG_OPTPROBES=yCONFIG_KPROBES_ON_FTRACE=yCONFIG_UPROBES=yCONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=yCONFIG_ARCH_USE_BUILTIN_BSWAP=yCONFIG_KRETPROBES=yCONFIG_USER_RETURN_NOTIFIER=yCONFIG_HAVE_IOREMAP_PROT=yCONFIG_HAVE_KPROBES=yCONFIG_HAVE_KRETPROBES=yCONFIG_HAVE_OPTPROBES=yCONFIG_HAVE_KPROBES_ON_FTRACE=yCONFIG_HAVE_FUNCTION_ERROR_INJECTION=yCONFIG_HAVE_NMI=yCONFIG_HAVE_ARCH_TRACEHOOK=yCONFIG_HAVE_DMA_CONTIGUOUS=yCONFIG_GENERIC_SMP_IDLE_THREAD=yCONFIG_ARCH_HAS_FORTIFY_SOURCE=yCONFIG_ARCH_HAS_SET_MEMORY=yCONFIG_ARCH_HAS_SET_DIRECT_MAP=yCONFIG_HAVE_ARCH_THREAD_STRUCT_WHITELIST=yCONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT=yCONFIG_HAVE_ASM_MODVERSIONS=yCONFIG_HAVE_REGS_AND_STACK_ACCESS_API=yCONFIG_HAVE_RSEQ=yCONFIG_HAVE_FUNCTION_ARG_ACCESS_API=yCONFIG_HAVE_HW_BREAKPOINT=yCONFIG_HAVE_MIXED_BREAKPOINTS_REGS=yCONFIG_HAVE_USER_RETURN_NOTIFIER=yCONFIG_HAVE_PERF_EVENTS_NMI=yCONFIG_HAVE_HARDLOCKUP_DETECTOR_PERF=yCONFIG_HAVE_PERF_REGS=yCONFIG_HAVE_PERF_USER_STACK_DUMP=yCONFIG_HAVE_ARCH_JUMP_LABEL=yCONFIG_HAVE_ARCH_JUMP_LABEL_RELATIVE=yCONFIG_MMU_GATHER_TABLE_FREE=yCONFIG_MMU_GATHER_RCU_TABLE_FREE=yCONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=yCONFIG_HAVE_ALIGNED_STRUCT_PAGE=yCONFIG_HAVE_CMPXCHG_LOCAL=yCONFIG_HAVE_CMPXCHG_DOUBLE=yCONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION=yCONFIG_ARCH_WANT_OLD_COMPAT_IPC=yCONFIG_HAVE_ARCH_SECCOMP=yCONFIG_HAVE_ARCH_SECCOMP_FILTER=yCONFIG_SECCOMP=yCONFIG_SECCOMP_FILTER=y
# CONFIG_SECCOMP_CACHE_DEBUG is not setCONFIG_HAVE_ARCH_STACKLEAK=yCONFIG_HAVE_STACKPROTECTOR=yCONFIG_STACKPROTECTOR=yCONFIG_STACKPROTECTOR_STRONG=yCONFIG_ARCH_SUPPORTS_LTO_CLANG=yCONFIG_ARCH_SUPPORTS_LTO_CLANG_THIN=yCONFIG_LTO_NONE=yCONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES=yCONFIG_HAVE_CONTEXT_TRACKING=yCONFIG_HAVE_CONTEXT_TRACKING_OFFSTACK=yCONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=yCONFIG_HAVE_IRQ_TIME_ACCOUNTING=yCONFIG_HAVE_MOVE_PUD=yCONFIG_HAVE_MOVE_PMD=yCONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=yCONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD=yCONFIG_HAVE_ARCH_HUGE_VMAP=yCONFIG_ARCH_WANT_HUGE_PMD_SHARE=yCONFIG_HAVE_ARCH_SOFT_DIRTY=yCONFIG_HAVE_MOD_ARCH_SPECIFIC=yCONFIG_MODULES_USE_ELF_RELA=yCONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=yCONFIG_HAVE_SOFTIRQ_ON_OWN_STACK=yCONFIG_ARCH_HAS_ELF_RANDOMIZE=yCONFIG_HAVE_ARCH_MMAP_RND_BITS=yCONFIG_HAVE_EXIT_THREAD=yCONFIG_ARCH_MMAP_RND_BITS=28CONFIG_HAVE_ARCH_MMAP_RND_COMPAT_BITS=yCONFIG_ARCH_MMAP_RND_COMPAT_BITS=8CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES=yCONFIG_HAVE_STACK_VALIDATION=yCONFIG_HAVE_RELIABLE_STACKTRACE=yCONFIG_OLD_SIGSUSPEND3=yCONFIG_COMPAT_OLD_SIGACTION=yCONFIG_COMPAT_32BIT_TIME=yCONFIG_HAVE_ARCH_VMAP_STACK=yCONFIG_VMAP_STACK=yCONFIG_ARCH_HAS_STRICT_KERNEL_RWX=yCONFIG_STRICT_KERNEL_RWX=yCONFIG_ARCH_HAS_STRICT_MODULE_RWX=yCONFIG_STRICT_MODULE_RWX=yCONFIG_HAVE_ARCH_PREL32_RELOCATIONS=yCONFIG_ARCH_USE_MEMREMAP_PROT=y
# CONFIG_LOCK_EVENT_COUNTS is not setCONFIG_ARCH_HAS_MEM_ENCRYPT=yCONFIG_HAVE_STATIC_CALL=yCONFIG_HAVE_STATIC_CALL_INLINE=yCONFIG_HAVE_PREEMPT_DYNAMIC=yCONFIG_ARCH_WANT_LD_ORPHAN_WARN=yCONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=yCONFIG_ARCH_HAS_ELFCORE_COMPAT=y
#
# GCOV-based kernel profiling
#
# CONFIG_GCOV_KERNEL is not setCONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
# end of GCOV-based kernel profiling
CONFIG_HAVE_GCC_PLUGINS=y
# end of General architecture-dependent options
CONFIG_RT_MUTEXES=yCONFIG_BASE_SMALL=0CONFIG_MODULE_SIG_FORMAT=yCONFIG_MODULES=yCONFIG_MODULE_FORCE_LOAD=yCONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not set
# CONFIG_MODVERSIONS is not set
# CONFIG_MODULE_SRCVERSION_ALL is not set CONFIG_MODULE_SIG=y
# CONFIG_MODULE_SIG_FORCE is not set CONFIG_MODULE_SIG_ALL=y
# CONFIG_MODULE_SIG_SHA1 is not set
# CONFIG_MODULE_SIG_SHA224 is not set CONFIG_MODULE_SIG_SHA256=y
# CONFIG_MODULE_SIG_SHA384 is not set
# CONFIG_MODULE_SIG_SHA512 is not set CONFIG_MODULE_SIG_HASH="sha256"
# CONFIG_MODULE_COMPRESS is not set
# CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS is not set CONFIG_MODULES_TREE_LOOKUP=yCONFIG_BLOCK=yCONFIG_BLK_SCSI_REQUEST=y CONFIG_BLK_CGROUP_RWSTAT=yCONFIG_BLK_DEV_BSG=yCONFIG_BLK_DEV_BSGLIB=y CONFIG_BLK_DEV_INTEGRITY=y CONFIG_BLK_DEV_INTEGRITY_T10=m CONFIG_BLK_DEV_ZONED=y CONFIG_BLK_DEV_THROTTLING=y
# CONFIG_BLK_DEV_THROTTLING_LOW is not set
# CONFIG_BLK_CMDLINE_PARSER is not set CONFIG_BLK_WBT=y
# CONFIG_BLK_CGROUP_IOLATENCY is not set
# CONFIG_BLK_CGROUP_IOCOST is not set CONFIG_BLK_WBT_MQ=yCONFIG_BLK_DEBUG_FS=yCONFIG_BLK_DEBUG_FS_ZONED=y
# CONFIG_BLK_SED_OPAL is not set
# CONFIG_BLK_INLINE_ENCRYPTION is not set
#
# Partition Types
#CONFIG_PARTITION_ADVANCED=y
# CONFIG_ACORN_PARTITION is not set
# CONFIG_AIX_PARTITION is not setCONFIG_OSF_PARTITION=yCONFIG_AMIGA_PARTITION=y
# CONFIG_ATARI_PARTITION is not setCONFIG_MAC_PARTITION=yCONFIG_MSDOS_PARTITION=yCONFIG_BSD_DISKLABEL=yCONFIG_MINIX_SUBPARTITION=yCONFIG_SOLARIS_X86_PARTITION=yCONFIG_UNIXWARE_DISKLABEL=y
# CONFIG_LDM_PARTITION is not setCONFIG_SGI_PARTITION=y
# CONFIG_ULTRIX_PARTITION is not setCONFIG_SUN_PARTITION=yCONFIG_KARMA_PARTITION=yCONFIG_EFI_PARTITION=y
# CONFIG_SYSV68_PARTITION is not set
# CONFIG_CMDLINE_PARTITION is not set
# end of Partition Types
CONFIG_BLOCK_COMPAT=yCONFIG_BLK_MQ_PCI=yCONFIG_BLK_MQ_VIRTIO=yCONFIG_BLK_MQ_RDMA=yCONFIG_BLK_PM=y
#
# IO Schedulers
#CONFIG_MQ_IOSCHED_DEADLINE=yCONFIG_MQ_IOSCHED_KYBER=yCONFIG_IOSCHED_BFQ=yCONFIG_BFQ_GROUP_IOSCHED=y
# CONFIG_BFQ_CGROUP_DEBUG is not set
# end of IO Schedulers
CONFIG_PREEMPT_NOTIFIERS=yCONFIG_PADATA=yCONFIG_ASN1=yCONFIG_INLINE_SPIN_UNLOCK_IRQ=yCONFIG_INLINE_READ_UNLOCK=yCONFIG_INLINE_READ_UNLOCK_IRQ=yCONFIG_INLINE_WRITE_UNLOCK=yCONFIG_INLINE_WRITE_UNLOCK_IRQ=yCONFIG_ARCH_SUPPORTS_ATOMIC_RMW=yCONFIG_MUTEX_SPIN_ON_OWNER=yCONFIG_RWSEM_SPIN_ON_OWNER=yCONFIG_LOCK_SPIN_ON_OWNER=yCONFIG_ARCH_USE_QUEUED_SPINLOCKS=yCONFIG_QUEUED_SPINLOCKS=yCONFIG_ARCH_USE_QUEUED_RWLOCKS=yCONFIG_QUEUED_RWLOCKS=yCONFIG_ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE=yCONFIG_ARCH_HAS_SYNC_CORE_BEFORE_USERMODE=yCONFIG_ARCH_HAS_SYSCALL_WRAPPER=yCONFIG_FREEZER=y
#
# Executable file formats
#CONFIG_BINFMT_ELF=yCONFIG_COMPAT_BINFMT_ELF=yCONFIG_ELFCORE=yCONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=yCONFIG_BINFMT_SCRIPT=yCONFIG_BINFMT_MISC=mCONFIG_COREDUMP=y
# end of Executable file formats
#
# Memory Management options
#CONFIG_SELECT_MEMORY_MODEL=y CONFIG_SPARSEMEM_MANUAL=yCONFIG_SPARSEMEM=y CONFIG_NEED_MULTIPLE_NODES=y CONFIG_SPARSEMEM_EXTREME=y CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y CONFIG_SPARSEMEM_VMEMMAP=y CONFIG_HAVE_FAST_GUP=y CONFIG_NUMA_KEEP_MEMINFO=y CONFIG_MEMORY_ISOLATION=y CONFIG_HAVE_BOOTMEM_INFO_NODE=y CONFIG_MEMORY_HOTPLUG=y CONFIG_MEMORY_HOTPLUG_SPARSE=y
# CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE is not set CONFIG_MEMORY_HOTREMOVE=y CONFIG_SPLIT_PTLOCK_CPUS=4 CONFIG_MEMORY_BALLOON=y CONFIG_BALLOON_COMPACTION=y CONFIG_COMPACTION=yCONFIG_PAGE_REPORTING=yCONFIG_MIGRATION=yCONFIG_CONTIG_ALLOC=y CONFIG_PHYS_ADDR_T_64BIT=yCONFIG_BOUNCE=yCONFIG_VIRT_TO_BUS=yCONFIG_MMU_NOTIFIER=yCONFIG_KSM=y CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=y CONFIG_MEMORY_FAILURE=y CONFIG_HWPOISON_INJECT=m CONFIG_TRANSPARENT_HUGEPAGE=y CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
# CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not set CONFIG_ARCH_WANTS_THP_SWAP=y CONFIG_THP_SWAP=yCONFIG_CLEANCACHE=yCONFIG_FRONTSWAP=yCONFIG_CMA=y
# CONFIG_CMA_DEBUG is not set
# CONFIG_CMA_DEBUGFS is not set CONFIG_CMA_AREAS=19CONFIG_ZSWAP=y
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_DEFLATE is not set CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZO=y
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_842 is not set # CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4 is not set # CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4HC is not set # CONFIG_ZSWAP_COMPRESSOR_DEFAULT_ZSTD is not set CONFIG_ZSWAP_COMPRESSOR_DEFAULT="lzo" CONFIG_ZSWAP_ZPOOL_DEFAULT_ZBUD=y
# CONFIG_ZSWAP_ZPOOL_DEFAULT_Z3FOLD is not set # CONFIG_ZSWAP_ZPOOL_DEFAULT_ZSMALLOC is not set CONFIG_ZSWAP_ZPOOL_DEFAULT="zbud"
# CONFIG_ZSWAP_DEFAULT_ON is not set CONFIG_ZPOOL=yCONFIG_ZBUD=y
# CONFIG_Z3FOLD is not setCONFIG_ZSMALLOC=yCONFIG_ZSMALLOC_STAT=y CONFIG_GENERIC_EARLY_IOREMAP=y CONFIG_DEFERRED_STRUCT_PAGE_INIT=y CONFIG_IDLE_PAGE_TRACKING=y CONFIG_ARCH_HAS_PTE_DEVMAP=y CONFIG_ZONE_DEVICE=y CONFIG_DEV_PAGEMAP_OPS=yCONFIG_HMM_MIRROR=yCONFIG_DEVICE_PRIVATE=yCONFIG_VMAP_PFN=y CONFIG_ARCH_USES_HIGH_VMA_FLAGS=y CONFIG_ARCH_HAS_PKEYS=y
# CONFIG_PERCPU_STATS is not set
# CONFIG_GUP_TEST is not set
# CONFIG_READ_ONLY_THP_FOR_FS is not set CONFIG_ARCH_HAS_PTE_SPECIAL=y
# end of Memory Management options
CONFIG_NET=yCONFIG_COMPAT_NETLINK_MESSAGES=yCONFIG_NET_INGRESS=yCONFIG_NET_EGRESS=yCONFIG_SKB_EXTENSIONS=y
#
# Networking options
#CONFIG_PACKET=yCONFIG_PACKET_DIAG=mCONFIG_UNIX=yCONFIG_UNIX_SCM=yCONFIG_UNIX_DIAG=mCONFIG_TLS=mCONFIG_TLS_DEVICE=y
# CONFIG_TLS_TOE is not setCONFIG_XFRM=yCONFIG_XFRM_OFFLOAD=yCONFIG_XFRM_ALGO=yCONFIG_XFRM_USER=y
# CONFIG_XFRM_USER_COMPAT is not set
# CONFIG_XFRM_INTERFACE is not setCONFIG_XFRM_SUB_POLICY=yCONFIG_XFRM_MIGRATE=yCONFIG_XFRM_STATISTICS=yCONFIG_XFRM_AH=mCONFIG_XFRM_ESP=mCONFIG_XFRM_IPCOMP=mCONFIG_NET_KEY=mCONFIG_NET_KEY_MIGRATE=y
# CONFIG_SMC is not setCONFIG_XDP_SOCKETS=y
# CONFIG_XDP_SOCKETS_DIAG is not setCONFIG_INET=yCONFIG_IP_MULTICAST=yCONFIG_IP_ADVANCED_ROUTER=yCONFIG_IP_FIB_TRIE_STATS=yCONFIG_IP_MULTIPLE_TABLES=yCONFIG_IP_ROUTE_MULTIPATH=yCONFIG_IP_ROUTE_VERBOSE=yCONFIG_IP_ROUTE_CLASSID=yCONFIG_IP_PNP=yCONFIG_IP_PNP_DHCP=y
# CONFIG_IP_PNP_BOOTP is not set
# CONFIG_IP_PNP_RARP is not setCONFIG_NET_IPIP=mCONFIG_NET_IPGRE_DEMUX=mCONFIG_NET_IP_TUNNEL=mCONFIG_NET_IPGRE=mCONFIG_NET_IPGRE_BROADCAST=yCONFIG_IP_MROUTE_COMMON=yCONFIG_IP_MROUTE=yCONFIG_IP_MROUTE_MULTIPLE_TABLES=yCONFIG_IP_PIMSM_V1=yCONFIG_IP_PIMSM_V2=yCONFIG_SYN_COOKIES=yCONFIG_NET_IPVTI=mCONFIG_NET_UDP_TUNNEL=m
# CONFIG_NET_FOU is not set
# CONFIG_NET_FOU_IP_TUNNELS is not setCONFIG_INET_AH=mCONFIG_INET_ESP=mCONFIG_INET_ESP_OFFLOAD=m
# CONFIG_INET_ESPINTCP is not setCONFIG_INET_IPCOMP=mCONFIG_INET_XFRM_TUNNEL=mCONFIG_INET_TUNNEL=mCONFIG_INET_DIAG=mCONFIG_INET_TCP_DIAG=mCONFIG_INET_UDP_DIAG=mCONFIG_INET_RAW_DIAG=m
# CONFIG_INET_DIAG_DESTROY is not setCONFIG_TCP_CONG_ADVANCED=yCONFIG_TCP_CONG_BIC=mCONFIG_TCP_CONG_CUBIC=yCONFIG_TCP_CONG_WESTWOOD=mCONFIG_TCP_CONG_HTCP=mCONFIG_TCP_CONG_HSTCP=mCONFIG_TCP_CONG_HYBLA=mCONFIG_TCP_CONG_VEGAS=mCONFIG_TCP_CONG_NV=mCONFIG_TCP_CONG_SCALABLE=mCONFIG_TCP_CONG_LP=mCONFIG_TCP_CONG_VENO=mCONFIG_TCP_CONG_YEAH=mCONFIG_TCP_CONG_ILLINOIS=mCONFIG_TCP_CONG_DCTCP=m
# CONFIG_TCP_CONG_CDG is not setCONFIG_TCP_CONG_BBR=mCONFIG_DEFAULT_CUBIC=y
# CONFIG_DEFAULT_RENO is not setCONFIG_DEFAULT_TCP_CONG="cubic"CONFIG_TCP_MD5SIG=yCONFIG_IPV6=yCONFIG_IPV6_ROUTER_PREF=yCONFIG_IPV6_ROUTE_INFO=yCONFIG_IPV6_OPTIMISTIC_DAD=yCONFIG_INET6_AH=mCONFIG_INET6_ESP=mCONFIG_INET6_ESP_OFFLOAD=m
# CONFIG_INET6_ESPINTCP is not setCONFIG_INET6_IPCOMP=mCONFIG_IPV6_MIP6=m
# CONFIG_IPV6_ILA is not setCONFIG_INET6_XFRM_TUNNEL=mCONFIG_INET6_TUNNEL=mCONFIG_IPV6_VTI=mCONFIG_IPV6_SIT=mCONFIG_IPV6_SIT_6RD=yCONFIG_IPV6_NDISC_NODETYPE=yCONFIG_IPV6_TUNNEL=mCONFIG_IPV6_GRE=mCONFIG_IPV6_MULTIPLE_TABLES=y
# CONFIG_IPV6_SUBTREES is not setCONFIG_IPV6_MROUTE=yCONFIG_IPV6_MROUTE_MULTIPLE_TABLES=yCONFIG_IPV6_PIMSM_V2=y
# CONFIG_IPV6_SEG6_LWTUNNEL is not set
# CONFIG_IPV6_SEG6_HMAC is not set
# CONFIG_IPV6_RPL_LWTUNNEL is not setCONFIG_NETLABEL=y
# CONFIG_MPTCP is not setCONFIG_NETWORK_SECMARK=yCONFIG_NET_PTP_CLASSIFY=yCONFIG_NETWORK_PHY_TIMESTAMPING=yCONFIG_NETFILTER=yCONFIG_NETFILTER_ADVANCED=yCONFIG_BRIDGE_NETFILTER=m
#
# Core Netfilter Configuration
#CONFIG_NETFILTER_INGRESS=yCONFIG_NETFILTER_NETLINK=mCONFIG_NETFILTER_FAMILY_BRIDGE=yCONFIG_NETFILTER_FAMILY_ARP=y
# CONFIG_NETFILTER_NETLINK_ACCT is not setCONFIG_NETFILTER_NETLINK_QUEUE=mCONFIG_NETFILTER_NETLINK_LOG=mCONFIG_NETFILTER_NETLINK_OSF=mCONFIG_NF_CONNTRACK=mCONFIG_NF_LOG_COMMON=mCONFIG_NF_LOG_NETDEV=mCONFIG_NETFILTER_CONNCOUNT=mCONFIG_NF_CONNTRACK_MARK=yCONFIG_NF_CONNTRACK_SECMARK=yCONFIG_NF_CONNTRACK_ZONES=yCONFIG_NF_CONNTRACK_PROCFS=yCONFIG_NF_CONNTRACK_EVENTS=yCONFIG_NF_CONNTRACK_TIMEOUT=yCONFIG_NF_CONNTRACK_TIMESTAMP=yCONFIG_NF_CONNTRACK_LABELS=yCONFIG_NF_CT_PROTO_DCCP=yCONFIG_NF_CT_PROTO_GRE=yCONFIG_NF_CT_PROTO_SCTP=yCONFIG_NF_CT_PROTO_UDPLITE=yCONFIG_NF_CONNTRACK_AMANDA=mCONFIG_NF_CONNTRACK_FTP=mCONFIG_NF_CONNTRACK_H323=mCONFIG_NF_CONNTRACK_IRC=mCONFIG_NF_CONNTRACK_BROADCAST=mCONFIG_NF_CONNTRACK_NETBIOS_NS=mCONFIG_NF_CONNTRACK_SNMP=mCONFIG_NF_CONNTRACK_PPTP=mCONFIG_NF_CONNTRACK_SANE=mCONFIG_NF_CONNTRACK_SIP=mCONFIG_NF_CONNTRACK_TFTP=mCONFIG_NF_CT_NETLINK=mCONFIG_NF_CT_NETLINK_TIMEOUT=mCONFIG_NF_CT_NETLINK_HELPER=mCONFIG_NETFILTER_NETLINK_GLUE_CT=yCONFIG_NF_NAT=mCONFIG_NF_NAT_AMANDA=mCONFIG_NF_NAT_FTP=mCONFIG_NF_NAT_IRC=mCONFIG_NF_NAT_SIP=mCONFIG_NF_NAT_TFTP=mCONFIG_NF_NAT_REDIRECT=yCONFIG_NF_NAT_MASQUERADE=yCONFIG_NETFILTER_SYNPROXY=mCONFIG_NF_TABLES=mCONFIG_NF_TABLES_INET=yCONFIG_NF_TABLES_NETDEV=yCONFIG_NFT_NUMGEN=mCONFIG_NFT_CT=mCONFIG_NFT_COUNTER=mCONFIG_NFT_CONNLIMIT=mCONFIG_NFT_LOG=mCONFIG_NFT_LIMIT=mCONFIG_NFT_MASQ=mCONFIG_NFT_REDIR=mCONFIG_NFT_NAT=m
# CONFIG_NFT_TUNNEL is not setCONFIG_NFT_OBJREF=mCONFIG_NFT_QUEUE=mCONFIG_NFT_QUOTA=mCONFIG_NFT_REJECT=mCONFIG_NFT_REJECT_INET=mCONFIG_NFT_COMPAT=mCONFIG_NFT_HASH=mCONFIG_NFT_FIB=mCONFIG_NFT_FIB_INET=m
# CONFIG_NFT_XFRM is not setCONFIG_NFT_SOCKET=m
# CONFIG_NFT_OSF is not set
# CONFIG_NFT_TPROXY is not set
# CONFIG_NFT_SYNPROXY is not setCONFIG_NF_DUP_NETDEV=mCONFIG_NFT_DUP_NETDEV=mCONFIG_NFT_FWD_NETDEV=mCONFIG_NFT_FIB_NETDEV=m
# CONFIG_NFT_REJECT_NETDEV is not set
# CONFIG_NF_FLOW_TABLE is not setCONFIG_NETFILTER_XTABLES=y
#
# Xtables combined modules
#CONFIG_NETFILTER_XT_MARK=mCONFIG_NETFILTER_XT_CONNMARK=mCONFIG_NETFILTER_XT_SET=m
#
# Xtables targets
#CONFIG_NETFILTER_XT_TARGET_AUDIT=mCONFIG_NETFILTER_XT_TARGET_CHECKSUM=mCONFIG_NETFILTER_XT_TARGET_CLASSIFY=mCONFIG_NETFILTER_XT_TARGET_CONNMARK=mCONFIG_NETFILTER_XT_TARGET_CONNSECMARK=mCONFIG_NETFILTER_XT_TARGET_CT=mCONFIG_NETFILTER_XT_TARGET_DSCP=mCONFIG_NETFILTER_XT_TARGET_HL=mCONFIG_NETFILTER_XT_TARGET_HMARK=mCONFIG_NETFILTER_XT_TARGET_IDLETIMER=m
# CONFIG_NETFILTER_XT_TARGET_LED is not setCONFIG_NETFILTER_XT_TARGET_LOG=mCONFIG_NETFILTER_XT_TARGET_MARK=mCONFIG_NETFILTER_XT_NAT=mCONFIG_NETFILTER_XT_TARGET_NETMAP=mCONFIG_NETFILTER_XT_TARGET_NFLOG=mCONFIG_NETFILTER_XT_TARGET_NFQUEUE=mCONFIG_NETFILTER_XT_TARGET_NOTRACK=mCONFIG_NETFILTER_XT_TARGET_RATEEST=mCONFIG_NETFILTER_XT_TARGET_REDIRECT=mCONFIG_NETFILTER_XT_TARGET_MASQUERADE=mCONFIG_NETFILTER_XT_TARGET_TEE=mCONFIG_NETFILTER_XT_TARGET_TPROXY=mCONFIG_NETFILTER_XT_TARGET_TRACE=mCONFIG_NETFILTER_XT_TARGET_SECMARK=mCONFIG_NETFILTER_XT_TARGET_TCPMSS=mCONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP=m
#
# Xtables matches
#CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=mCONFIG_NETFILTER_XT_MATCH_BPF=mCONFIG_NETFILTER_XT_MATCH_CGROUP=mCONFIG_NETFILTER_XT_MATCH_CLUSTER=mCONFIG_NETFILTER_XT_MATCH_COMMENT=mCONFIG_NETFILTER_XT_MATCH_CONNBYTES=mCONFIG_NETFILTER_XT_MATCH_CONNLABEL=mCONFIG_NETFILTER_XT_MATCH_CONNLIMIT=mCONFIG_NETFILTER_XT_MATCH_CONNMARK=mCONFIG_NETFILTER_XT_MATCH_CONNTRACK=mCONFIG_NETFILTER_XT_MATCH_CPU=mCONFIG_NETFILTER_XT_MATCH_DCCP=mCONFIG_NETFILTER_XT_MATCH_DEVGROUP=mCONFIG_NETFILTER_XT_MATCH_DSCP=mCONFIG_NETFILTER_XT_MATCH_ECN=mCONFIG_NETFILTER_XT_MATCH_ESP=mCONFIG_NETFILTER_XT_MATCH_HASHLIMIT=mCONFIG_NETFILTER_XT_MATCH_HELPER=mCONFIG_NETFILTER_XT_MATCH_HL=m
# CONFIG_NETFILTER_XT_MATCH_IPCOMP is not setCONFIG_NETFILTER_XT_MATCH_IPRANGE=mCONFIG_NETFILTER_XT_MATCH_IPVS=m
# CONFIG_NETFILTER_XT_MATCH_L2TP is not setCONFIG_NETFILTER_XT_MATCH_LENGTH=mCONFIG_NETFILTER_XT_MATCH_LIMIT=mCONFIG_NETFILTER_XT_MATCH_MAC=mCONFIG_NETFILTER_XT_MATCH_MARK=mCONFIG_NETFILTER_XT_MATCH_MULTIPORT=m
# CONFIG_NETFILTER_XT_MATCH_NFACCT is not setCONFIG_NETFILTER_XT_MATCH_OSF=mCONFIG_NETFILTER_XT_MATCH_OWNER=mCONFIG_NETFILTER_XT_MATCH_POLICY=mCONFIG_NETFILTER_XT_MATCH_PHYSDEV=mCONFIG_NETFILTER_XT_MATCH_PKTTYPE=mCONFIG_NETFILTER_XT_MATCH_QUOTA=mCONFIG_NETFILTER_XT_MATCH_RATEEST=mCONFIG_NETFILTER_XT_MATCH_REALM=mCONFIG_NETFILTER_XT_MATCH_RECENT=mCONFIG_NETFILTER_XT_MATCH_SCTP=mCONFIG_NETFILTER_XT_MATCH_SOCKET=mCONFIG_NETFILTER_XT_MATCH_STATE=mCONFIG_NETFILTER_XT_MATCH_STATISTIC=mCONFIG_NETFILTER_XT_MATCH_STRING=mCONFIG_NETFILTER_XT_MATCH_TCPMSS=m
# CONFIG_NETFILTER_XT_MATCH_TIME is not set
# CONFIG_NETFILTER_XT_MATCH_U32 is not set
# end of Core Netfilter Configuration
CONFIG_IP_SET=mCONFIG_IP_SET_MAX=256CONFIG_IP_SET_BITMAP_IP=mCONFIG_IP_SET_BITMAP_IPMAC=mCONFIG_IP_SET_BITMAP_PORT=mCONFIG_IP_SET_HASH_IP=mCONFIG_IP_SET_HASH_IPMARK=mCONFIG_IP_SET_HASH_IPPORT=mCONFIG_IP_SET_HASH_IPPORTIP=mCONFIG_IP_SET_HASH_IPPORTNET=mCONFIG_IP_SET_HASH_IPMAC=mCONFIG_IP_SET_HASH_MAC=mCONFIG_IP_SET_HASH_NETPORTNET=mCONFIG_IP_SET_HASH_NET=mCONFIG_IP_SET_HASH_NETNET=mCONFIG_IP_SET_HASH_NETPORT=mCONFIG_IP_SET_HASH_NETIFACE=mCONFIG_IP_SET_LIST_SET=mCONFIG_IP_VS=mCONFIG_IP_VS_IPV6=y
# CONFIG_IP_VS_DEBUG is not setCONFIG_IP_VS_TAB_BITS=12
#
# IPVS transport protocol load balancing support
#CONFIG_IP_VS_PROTO_TCP=yCONFIG_IP_VS_PROTO_UDP=yCONFIG_IP_VS_PROTO_AH_ESP=yCONFIG_IP_VS_PROTO_ESP=yCONFIG_IP_VS_PROTO_AH=yCONFIG_IP_VS_PROTO_SCTP=y
#
# IPVS scheduler
#CONFIG_IP_VS_RR=mCONFIG_IP_VS_WRR=mCONFIG_IP_VS_LC=mCONFIG_IP_VS_WLC=mCONFIG_IP_VS_FO=mCONFIG_IP_VS_OVF=mCONFIG_IP_VS_LBLC=mCONFIG_IP_VS_LBLCR=mCONFIG_IP_VS_DH=mCONFIG_IP_VS_SH=m
# CONFIG_IP_VS_MH is not setCONFIG_IP_VS_SED=mCONFIG_IP_VS_NQ=m
# CONFIG_IP_VS_TWOS is not set
#
# IPVS SH scheduler
#CONFIG_IP_VS_SH_TAB_BITS=8
#
# IPVS MH scheduler
#CONFIG_IP_VS_MH_TAB_INDEX=12
#
# IPVS application helper
#CONFIG_IP_VS_FTP=mCONFIG_IP_VS_NFCT=yCONFIG_IP_VS_PE_SIP=m
#
# IP: Netfilter Configuration
#CONFIG_NF_DEFRAG_IPV4=mCONFIG_NF_SOCKET_IPV4=mCONFIG_NF_TPROXY_IPV4=mCONFIG_NF_TABLES_IPV4=yCONFIG_NFT_REJECT_IPV4=mCONFIG_NFT_DUP_IPV4=mCONFIG_NFT_FIB_IPV4=mCONFIG_NF_TABLES_ARP=yCONFIG_NF_DUP_IPV4=mCONFIG_NF_LOG_ARP=mCONFIG_NF_LOG_IPV4=mCONFIG_NF_REJECT_IPV4=mCONFIG_NF_NAT_SNMP_BASIC=mCONFIG_NF_NAT_PPTP=mCONFIG_NF_NAT_H323=mCONFIG_IP_NF_IPTABLES=mCONFIG_IP_NF_MATCH_AH=mCONFIG_IP_NF_MATCH_ECN=mCONFIG_IP_NF_MATCH_RPFILTER=mCONFIG_IP_NF_MATCH_TTL=mCONFIG_IP_NF_FILTER=mCONFIG_IP_NF_TARGET_REJECT=mCONFIG_IP_NF_TARGET_SYNPROXY=mCONFIG_IP_NF_NAT=mCONFIG_IP_NF_TARGET_MASQUERADE=mCONFIG_IP_NF_TARGET_NETMAP=mCONFIG_IP_NF_TARGET_REDIRECT=mCONFIG_IP_NF_MANGLE=m
# CONFIG_IP_NF_TARGET_CLUSTERIP is not setCONFIG_IP_NF_TARGET_ECN=mCONFIG_IP_NF_TARGET_TTL=mCONFIG_IP_NF_RAW=mCONFIG_IP_NF_SECURITY=mCONFIG_IP_NF_ARPTABLES=mCONFIG_IP_NF_ARPFILTER=mCONFIG_IP_NF_ARP_MANGLE=m
# end of IP: Netfilter Configuration
#
# IPv6: Netfilter Configuration
#CONFIG_NF_SOCKET_IPV6=mCONFIG_NF_TPROXY_IPV6=mCONFIG_NF_TABLES_IPV6=yCONFIG_NFT_REJECT_IPV6=mCONFIG_NFT_DUP_IPV6=mCONFIG_NFT_FIB_IPV6=mCONFIG_NF_DUP_IPV6=mCONFIG_NF_REJECT_IPV6=mCONFIG_NF_LOG_IPV6=mCONFIG_IP6_NF_IPTABLES=mCONFIG_IP6_NF_MATCH_AH=mCONFIG_IP6_NF_MATCH_EUI64=mCONFIG_IP6_NF_MATCH_FRAG=mCONFIG_IP6_NF_MATCH_OPTS=mCONFIG_IP6_NF_MATCH_HL=mCONFIG_IP6_NF_MATCH_IPV6HEADER=mCONFIG_IP6_NF_MATCH_MH=mCONFIG_IP6_NF_MATCH_RPFILTER=mCONFIG_IP6_NF_MATCH_RT=m
# CONFIG_IP6_NF_MATCH_SRH is not set
# CONFIG_IP6_NF_TARGET_HL is not setCONFIG_IP6_NF_FILTER=mCONFIG_IP6_NF_TARGET_REJECT=mCONFIG_IP6_NF_TARGET_SYNPROXY=mCONFIG_IP6_NF_MANGLE=mCONFIG_IP6_NF_RAW=mCONFIG_IP6_NF_SECURITY=mCONFIG_IP6_NF_NAT=mCONFIG_IP6_NF_TARGET_MASQUERADE=mCONFIG_IP6_NF_TARGET_NPT=m
# end of IPv6: Netfilter Configuration
CONFIG_NF_DEFRAG_IPV6=m CONFIG_NF_TABLES_BRIDGE=m
# CONFIG_NFT_BRIDGE_META is not set CONFIG_NFT_BRIDGE_REJECT=m CONFIG_NF_LOG_BRIDGE=m
# CONFIG_NF_CONNTRACK_BRIDGE is not set CONFIG_BRIDGE_NF_EBTABLES=m CONFIG_BRIDGE_EBT_BROUTE=m CONFIG_BRIDGE_EBT_T_FILTER=m CONFIG_BRIDGE_EBT_T_NAT=m CONFIG_BRIDGE_EBT_802_3=m CONFIG_BRIDGE_EBT_AMONG=m CONFIG_BRIDGE_EBT_ARP=m CONFIG_BRIDGE_EBT_IP=m CONFIG_BRIDGE_EBT_IP6=m CONFIG_BRIDGE_EBT_LIMIT=m CONFIG_BRIDGE_EBT_MARK=m CONFIG_BRIDGE_EBT_PKTTYPE=m CONFIG_BRIDGE_EBT_STP=m CONFIG_BRIDGE_EBT_VLAN=m CONFIG_BRIDGE_EBT_ARPREPLY=m CONFIG_BRIDGE_EBT_DNAT=m CONFIG_BRIDGE_EBT_MARK_T=m CONFIG_BRIDGE_EBT_REDIRECT=m CONFIG_BRIDGE_EBT_SNAT=m CONFIG_BRIDGE_EBT_LOG=m CONFIG_BRIDGE_EBT_NFLOG=m
# CONFIG_BPFILTER is not set
# CONFIG_IP_DCCP is not setCONFIG_IP_SCTP=m
# CONFIG_SCTP_DBG_OBJCNT is not set
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_MD5 is not set CONFIG_SCTP_DEFAULT_COOKIE_HMAC_SHA1=y
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_NONE is not set CONFIG_SCTP_COOKIE_HMAC_MD5=y CONFIG_SCTP_COOKIE_HMAC_SHA1=y CONFIG_INET_SCTP_DIAG=m
# CONFIG_RDS is not setCONFIG_TIPC=m
# CONFIG_TIPC_MEDIA_IB is not set CONFIG_TIPC_MEDIA_UDP=yCONFIG_TIPC_CRYPTO=yCONFIG_TIPC_DIAG=mCONFIG_ATM=mCONFIG_ATM_CLIP=m
# CONFIG_ATM_CLIP_NO_ICMP is not set CONFIG_ATM_LANE=m
# CONFIG_ATM_MPOA is not set CONFIG_ATM_BR2684=m
# CONFIG_ATM_BR2684_IPFILTER is not set CONFIG_L2TP=mCONFIG_L2TP_DEBUGFS=mCONFIG_L2TP_V3=yCONFIG_L2TP_IP=mCONFIG_L2TP_ETH=mCONFIG_STP=mCONFIG_GARP=mCONFIG_MRP=mCONFIG_BRIDGE=m CONFIG_BRIDGE_IGMP_SNOOPING=y CONFIG_BRIDGE_VLAN_FILTERING=y
# CONFIG_BRIDGE_MRP is not set
# CONFIG_BRIDGE_CFM is not set CONFIG_HAVE_NET_DSA=y
# CONFIG_NET_DSA is not set CONFIG_VLAN_8021Q=mCONFIG_VLAN_8021Q_GVRP=y CONFIG_VLAN_8021Q_MVRP=y
# CONFIG_DECNET is not setCONFIG_LLC=m
# CONFIG_LLC2 is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_PHONET is not setCONFIG_6LOWPAN=m
# CONFIG_6LOWPAN_DEBUGFS is not set
# CONFIG_6LOWPAN_NHC is not set CONFIG_IEEE802154=m
# CONFIG_IEEE802154_NL802154_EXPERIMENTAL is not set CONFIG_IEEE802154_SOCKET=m CONFIG_IEEE802154_6LOWPAN=m CONFIG_MAC802154=mCONFIG_NET_SCHED=y
#
# Queueing/Scheduling
#CONFIG_NET_SCH_CBQ=mCONFIG_NET_SCH_HTB=mCONFIG_NET_SCH_HFSC=mCONFIG_NET_SCH_ATM=mCONFIG_NET_SCH_PRIO=mCONFIG_NET_SCH_MULTIQ=mCONFIG_NET_SCH_RED=mCONFIG_NET_SCH_SFB=mCONFIG_NET_SCH_SFQ=mCONFIG_NET_SCH_TEQL=mCONFIG_NET_SCH_TBF=m
# CONFIG_NET_SCH_CBS is not set
# CONFIG_NET_SCH_ETF is not set
# CONFIG_NET_SCH_TAPRIO is not setCONFIG_NET_SCH_GRED=mCONFIG_NET_SCH_DSMARK=mCONFIG_NET_SCH_NETEM=mCONFIG_NET_SCH_DRR=mCONFIG_NET_SCH_MQPRIO=m
# CONFIG_NET_SCH_SKBPRIO is not setCONFIG_NET_SCH_CHOKE=mCONFIG_NET_SCH_QFQ=mCONFIG_NET_SCH_CODEL=mCONFIG_NET_SCH_FQ_CODEL=y
# CONFIG_NET_SCH_CAKE is not setCONFIG_NET_SCH_FQ=mCONFIG_NET_SCH_HHF=mCONFIG_NET_SCH_PIE=m
# CONFIG_NET_SCH_FQ_PIE is not setCONFIG_NET_SCH_INGRESS=mCONFIG_NET_SCH_PLUG=m
# CONFIG_NET_SCH_ETS is not setCONFIG_NET_SCH_DEFAULT=y
# CONFIG_DEFAULT_FQ is not set
# CONFIG_DEFAULT_CODEL is not setCONFIG_DEFAULT_FQ_CODEL=y
# CONFIG_DEFAULT_SFQ is not set
# CONFIG_DEFAULT_PFIFO_FAST is not setCONFIG_DEFAULT_NET_SCH="fq_codel"
#
# Classification
#CONFIG_NET_CLS=yCONFIG_NET_CLS_BASIC=mCONFIG_NET_CLS_TCINDEX=mCONFIG_NET_CLS_ROUTE4=mCONFIG_NET_CLS_FW=mCONFIG_NET_CLS_U32=mCONFIG_CLS_U32_PERF=yCONFIG_CLS_U32_MARK=yCONFIG_NET_CLS_RSVP=mCONFIG_NET_CLS_RSVP6=mCONFIG_NET_CLS_FLOW=mCONFIG_NET_CLS_CGROUP=yCONFIG_NET_CLS_BPF=mCONFIG_NET_CLS_FLOWER=mCONFIG_NET_CLS_MATCHALL=mCONFIG_NET_EMATCH=yCONFIG_NET_EMATCH_STACK=32CONFIG_NET_EMATCH_CMP=mCONFIG_NET_EMATCH_NBYTE=mCONFIG_NET_EMATCH_U32=mCONFIG_NET_EMATCH_META=mCONFIG_NET_EMATCH_TEXT=m
# CONFIG_NET_EMATCH_CANID is not setCONFIG_NET_EMATCH_IPSET=m
# CONFIG_NET_EMATCH_IPT is not setCONFIG_NET_CLS_ACT=yCONFIG_NET_ACT_POLICE=mCONFIG_NET_ACT_GACT=mCONFIG_GACT_PROB=yCONFIG_NET_ACT_MIRRED=mCONFIG_NET_ACT_SAMPLE=m
# CONFIG_NET_ACT_IPT is not setCONFIG_NET_ACT_NAT=mCONFIG_NET_ACT_PEDIT=mCONFIG_NET_ACT_SIMP=mCONFIG_NET_ACT_SKBEDIT=mCONFIG_NET_ACT_CSUM=m
# CONFIG_NET_ACT_MPLS is not setCONFIG_NET_ACT_VLAN=mCONFIG_NET_ACT_BPF=m
# CONFIG_NET_ACT_CONNMARK is not set
# CONFIG_NET_ACT_CTINFO is not setCONFIG_NET_ACT_SKBMOD=m
# CONFIG_NET_ACT_IFE is not setCONFIG_NET_ACT_TUNNEL_KEY=m
# CONFIG_NET_ACT_GATE is not set
# CONFIG_NET_TC_SKB_EXT is not setCONFIG_NET_SCH_FIFO=yCONFIG_DCB=yCONFIG_DNS_RESOLVER=m
# CONFIG_BATMAN_ADV is not setCONFIG_OPENVSWITCH=mCONFIG_OPENVSWITCH_GRE=mCONFIG_VSOCKETS=mCONFIG_VSOCKETS_DIAG=mCONFIG_VSOCKETS_LOOPBACK=mCONFIG_VMWARE_VMCI_VSOCKETS=mCONFIG_VIRTIO_VSOCKETS=mCONFIG_VIRTIO_VSOCKETS_COMMON=mCONFIG_HYPERV_VSOCKETS=mCONFIG_NETLINK_DIAG=mCONFIG_MPLS=yCONFIG_NET_MPLS_GSO=yCONFIG_MPLS_ROUTING=mCONFIG_MPLS_IPTUNNEL=mCONFIG_NET_NSH=y
# CONFIG_HSR is not setCONFIG_NET_SWITCHDEV=yCONFIG_NET_L3_MASTER_DEV=y
# CONFIG_QRTR is not set
# CONFIG_NET_NCSI is not setCONFIG_RPS=yCONFIG_RFS_ACCEL=yCONFIG_SOCK_RX_QUEUE_MAPPING=yCONFIG_XPS=yCONFIG_CGROUP_NET_PRIO=yCONFIG_CGROUP_NET_CLASSID=yCONFIG_NET_RX_BUSY_POLL=yCONFIG_BQL=yCONFIG_BPF_JIT=yCONFIG_BPF_STREAM_PARSER=yCONFIG_NET_FLOW_LIMIT=y
#
# Network testing
#CONFIG_NET_PKTGEN=mCONFIG_NET_DROP_MONITOR=y
# end of Network testing # end of Networking options
# CONFIG_HAMRADIO is not setCONFIG_CAN=mCONFIG_CAN_RAW=mCONFIG_CAN_BCM=mCONFIG_CAN_GW=m
# CONFIG_CAN_J1939 is not set
# CONFIG_CAN_ISOTP is not set
#
# CAN Device Drivers
#CONFIG_CAN_VCAN=m
# CONFIG_CAN_VXCAN is not setCONFIG_CAN_SLCAN=mCONFIG_CAN_DEV=mCONFIG_CAN_CALC_BITTIMING=y
# CONFIG_CAN_KVASER_PCIEFD is not setCONFIG_CAN_C_CAN=mCONFIG_CAN_C_CAN_PLATFORM=mCONFIG_CAN_C_CAN_PCI=mCONFIG_CAN_CC770=m
# CONFIG_CAN_CC770_ISA is not setCONFIG_CAN_CC770_PLATFORM=m
# CONFIG_CAN_IFI_CANFD is not set
# CONFIG_CAN_M_CAN is not set
# CONFIG_CAN_PEAK_PCIEFD is not setCONFIG_CAN_SJA1000=mCONFIG_CAN_EMS_PCI=m
# CONFIG_CAN_F81601 is not setCONFIG_CAN_KVASER_PCI=mCONFIG_CAN_PEAK_PCI=mCONFIG_CAN_PEAK_PCIEC=yCONFIG_CAN_PLX_PCI=m
# CONFIG_CAN_SJA1000_ISA is not setCONFIG_CAN_SJA1000_PLATFORM=mCONFIG_CAN_SOFTING=m
#
# CAN SPI interfaces
#
# CONFIG_CAN_HI311X is not set
# CONFIG_CAN_MCP251X is not set
# CONFIG_CAN_MCP251XFD is not set
# end of CAN SPI interfaces
#
# CAN USB interfaces
#
# CONFIG_CAN_8DEV_USB is not set
# CONFIG_CAN_EMS_USB is not set
# CONFIG_CAN_ESD_USB2 is not set
# CONFIG_CAN_GS_USB is not set
# CONFIG_CAN_KVASER_USB is not set
# CONFIG_CAN_MCBA_USB is not set
# CONFIG_CAN_PEAK_USB is not set
# CONFIG_CAN_UCAN is not set
# end of CAN USB interfaces
# CONFIG_CAN_DEBUG_DEVICES is not set
# end of CAN Device Drivers
CONFIG_BT=mCONFIG_BT_BREDR=yCONFIG_BT_RFCOMM=mCONFIG_BT_RFCOMM_TTY=yCONFIG_BT_BNEP=mCONFIG_BT_BNEP_MC_FILTER=yCONFIG_BT_BNEP_PROTO_FILTER=yCONFIG_BT_HIDP=mCONFIG_BT_HS=yCONFIG_BT_LE=y
# CONFIG_BT_6LOWPAN is not set
# CONFIG_BT_LEDS is not set
# CONFIG_BT_MSFTEXT is not setCONFIG_BT_DEBUGFS=y
# CONFIG_BT_SELFTEST is not set
#
# Bluetooth device drivers
#
# CONFIG_BT_HCIBTUSB is not set
# CONFIG_BT_HCIBTSDIO is not setCONFIG_BT_HCIUART=mCONFIG_BT_HCIUART_H4=yCONFIG_BT_HCIUART_BCSP=yCONFIG_BT_HCIUART_ATH3K=y
# CONFIG_BT_HCIUART_INTEL is not set
# CONFIG_BT_HCIUART_AG6XX is not set
# CONFIG_BT_HCIBCM203X is not set
# CONFIG_BT_HCIBPA10X is not set
# CONFIG_BT_HCIBFUSB is not setCONFIG_BT_HCIVHCI=mCONFIG_BT_MRVL=m
# CONFIG_BT_MRVL_SDIO is not set
# CONFIG_BT_MTKSDIO is not set
# end of Bluetooth device drivers
# CONFIG_AF_RXRPC is not set
# CONFIG_AF_KCM is not setCONFIG_STREAM_PARSER=yCONFIG_FIB_RULES=yCONFIG_WIRELESS=yCONFIG_WEXT_CORE=yCONFIG_WEXT_PROC=yCONFIG_CFG80211=m
# CONFIG_NL80211_TESTMODE is not set
# CONFIG_CFG80211_DEVELOPER_WARNINGS is not setCONFIG_CFG80211_REQUIRE_SIGNED_REGDB=yCONFIG_CFG80211_USE_KERNEL_REGDB_KEYS=yCONFIG_CFG80211_DEFAULT_PS=y
# CONFIG_CFG80211_DEBUGFS is not setCONFIG_CFG80211_CRDA_SUPPORT=yCONFIG_CFG80211_WEXT=yCONFIG_MAC80211=mCONFIG_MAC80211_HAS_RC=yCONFIG_MAC80211_RC_MINSTREL=yCONFIG_MAC80211_RC_DEFAULT_MINSTREL=yCONFIG_MAC80211_RC_DEFAULT="minstrel_ht"CONFIG_MAC80211_MESH=yCONFIG_MAC80211_LEDS=yCONFIG_MAC80211_DEBUGFS=y
# CONFIG_MAC80211_MESSAGE_TRACING is not set
# CONFIG_MAC80211_DEBUG_MENU is not setCONFIG_MAC80211_STA_HASH_MAX_SIZE=0CONFIG_RFKILL=mCONFIG_RFKILL_LEDS=yCONFIG_RFKILL_INPUT=y
# CONFIG_RFKILL_GPIO is not setCONFIG_NET_9P=yCONFIG_NET_9P_VIRTIO=y
# CONFIG_NET_9P_XEN is not set
# CONFIG_NET_9P_RDMA is not set
# CONFIG_NET_9P_DEBUG is not set
# CONFIG_CAIF is not setCONFIG_CEPH_LIB=m
# CONFIG_CEPH_LIB_PRETTYDEBUG is not setCONFIG_CEPH_LIB_USE_DNS_RESOLVER=y
# CONFIG_NFC is not setCONFIG_PSAMPLE=m
# CONFIG_NET_IFE is not setCONFIG_LWTUNNEL=yCONFIG_LWTUNNEL_BPF=yCONFIG_DST_CACHE=yCONFIG_GRO_CELLS=yCONFIG_SOCK_VALIDATE_XMIT=yCONFIG_NET_SOCK_MSG=yCONFIG_NET_DEVLINK=yCONFIG_PAGE_POOL=yCONFIG_FAILOVER=mCONFIG_ETHTOOL_NETLINK=yCONFIG_HAVE_EBPF_JIT=y
#
# Device Drivers
#CONFIG_HAVE_EISA=y
# CONFIG_EISA is not setCONFIG_HAVE_PCI=yCONFIG_PCI=yCONFIG_PCI_DOMAINS=yCONFIG_PCIEPORTBUS=yCONFIG_HOTPLUG_PCI_PCIE=yCONFIG_PCIEAER=yCONFIG_PCIEAER_INJECT=mCONFIG_PCIE_ECRC=yCONFIG_PCIEASPM=yCONFIG_PCIEASPM_DEFAULT=y
# CONFIG_PCIEASPM_POWERSAVE is not set
# CONFIG_PCIEASPM_POWER_SUPERSAVE is not set
# CONFIG_PCIEASPM_PERFORMANCE is not setCONFIG_PCIE_PME=yCONFIG_PCIE_DPC=y
# CONFIG_PCIE_PTM is not set
# CONFIG_PCIE_EDR is not setCONFIG_PCI_MSI=yCONFIG_PCI_MSI_IRQ_DOMAIN=yCONFIG_PCI_QUIRKS=y
# CONFIG_PCI_DEBUG is not set
# CONFIG_PCI_REALLOC_ENABLE_AUTO is not setCONFIG_PCI_STUB=yCONFIG_PCI_PF_STUB=m
# CONFIG_XEN_PCIDEV_FRONTEND is not setCONFIG_PCI_ATS=yCONFIG_PCI_LOCKLESS_CONFIG=yCONFIG_PCI_IOV=yCONFIG_PCI_PRI=yCONFIG_PCI_PASID=y
# CONFIG_PCI_P2PDMA is not setCONFIG_PCI_LABEL=yCONFIG_PCI_HYPERV=mCONFIG_HOTPLUG_PCI=yCONFIG_HOTPLUG_PCI_ACPI=yCONFIG_HOTPLUG_PCI_ACPI_IBM=m
# CONFIG_HOTPLUG_PCI_CPCI is not setCONFIG_HOTPLUG_PCI_SHPC=y
#
# PCI controller drivers
#CONFIG_VMD=yCONFIG_PCI_HYPERV_INTERFACE=m
#
# DesignWare PCI Core Support
#
# CONFIG_PCIE_DW_PLAT_HOST is not set
# CONFIG_PCI_MESON is not set
# end of DesignWare PCI Core Support
#
# Mobiveil PCIe Core Support
#
# end of Mobiveil PCIe Core Support
#
# Cadence PCIe controllers support
#
# end of Cadence PCIe controllers support # end of PCI controller drivers
#
# PCI Endpoint
#
# CONFIG_PCI_ENDPOINT is not set
# end of PCI Endpoint
#
# PCI switch controller drivers
#
# CONFIG_PCI_SW_SWITCHTEC is not set
# end of PCI switch controller drivers
# CONFIG_CXL_BUS is not set
# CONFIG_PCCARD is not set
# CONFIG_RAPIDIO is not set
#
# Generic Driver Options
#
# CONFIG_UEVENT_HELPER is not setCONFIG_DEVTMPFS=yCONFIG_DEVTMPFS_MOUNT=yCONFIG_STANDALONE=yCONFIG_PREVENT_FIRMWARE_BUILD=y
#
# Firmware loader
#CONFIG_FW_LOADER=y CONFIG_FW_LOADER_PAGED_BUF=y CONFIG_EXTRA_FIRMWARE="" CONFIG_FW_LOADER_USER_HELPER=y
# CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set # CONFIG_FW_LOADER_COMPRESS is not set CONFIG_FW_CACHE=y
# end of Firmware loader
CONFIG_ALLOW_DEV_COREDUMP=y
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_DEBUG_TEST_DRIVER_REMOVE is not set
# CONFIG_PM_QOS_KUNIT_TEST is not set
# CONFIG_TEST_ASYNC_DRIVER_PROBE is not setCONFIG_KUNIT_DRIVER_PE_TEST=yCONFIG_SYS_HYPERVISOR=yCONFIG_GENERIC_CPU_AUTOPROBE=yCONFIG_GENERIC_CPU_VULNERABILITIES=yCONFIG_REGMAP=yCONFIG_REGMAP_I2C=mCONFIG_REGMAP_SPI=mCONFIG_DMA_SHARED_BUFFER=y
# CONFIG_DMA_FENCE_TRACE is not set
# end of Generic Driver Options
#
# Bus devices
#
# CONFIG_MHI_BUS is not set
# end of Bus devices
CONFIG_CONNECTOR=yCONFIG_PROC_EVENTS=y
# CONFIG_GNSS is not set
# CONFIG_MTD is not set
# CONFIG_OF is not setCONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=yCONFIG_PARPORT=mCONFIG_PARPORT_PC=mCONFIG_PARPORT_SERIAL=m
# CONFIG_PARPORT_PC_FIFO is not set
# CONFIG_PARPORT_PC_SUPERIO is not set
# CONFIG_PARPORT_AX88796 is not setCONFIG_PARPORT_1284=yCONFIG_PNP=y
# CONFIG_PNP_DEBUG_MESSAGES is not set
#
# Protocols
#CONFIG_PNPACPI=yCONFIG_BLK_DEV=yCONFIG_BLK_DEV_NULL_BLK=mCONFIG_BLK_DEV_NULL_BLK_FAULT_INJECTION=y
# CONFIG_BLK_DEV_FD is not setCONFIG_CDROM=m
# CONFIG_PARIDE is not set
# CONFIG_BLK_DEV_PCIESSD_MTIP32XX is not set
# CONFIG_ZRAM is not set
# CONFIG_BLK_DEV_UMEM is not setCONFIG_BLK_DEV_LOOP=mCONFIG_BLK_DEV_LOOP_MIN_COUNT=0
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_DRBD is not setCONFIG_BLK_DEV_NBD=m
# CONFIG_BLK_DEV_SX8 is not setCONFIG_BLK_DEV_RAM=mCONFIG_BLK_DEV_RAM_COUNT=16CONFIG_BLK_DEV_RAM_SIZE=16384CONFIG_CDROM_PKTCDVD=mCONFIG_CDROM_PKTCDVD_BUFFERS=8
# CONFIG_CDROM_PKTCDVD_WCACHE is not set
# CONFIG_ATA_OVER_ETH is not setCONFIG_XEN_BLKDEV_FRONTEND=mCONFIG_VIRTIO_BLK=mCONFIG_BLK_DEV_RBD=m
# CONFIG_BLK_DEV_RSXX is not set
#
# NVME Support
#CONFIG_NVME_CORE=mCONFIG_BLK_DEV_NVME=mCONFIG_NVME_MULTIPATH=y
# CONFIG_NVME_HWMON is not setCONFIG_NVME_FABRICS=m
# CONFIG_NVME_RDMA is not setCONFIG_NVME_FC=m
# CONFIG_NVME_TCP is not setCONFIG_NVME_TARGET=m
# CONFIG_NVME_TARGET_PASSTHRU is not setCONFIG_NVME_TARGET_LOOP=m
# CONFIG_NVME_TARGET_RDMA is not setCONFIG_NVME_TARGET_FC=mCONFIG_NVME_TARGET_FCLOOP=m
# CONFIG_NVME_TARGET_TCP is not set
# end of NVME Support
#
# Misc devices
#CONFIG_SENSORS_LIS3LV02D=m
# CONFIG_AD525X_DPOT is not set
# CONFIG_DUMMY_IRQ is not set
# CONFIG_IBM_ASM is not set
# CONFIG_PHANTOM is not setCONFIG_TIFM_CORE=mCONFIG_TIFM_7XX1=m
# CONFIG_ICS932S401 is not setCONFIG_ENCLOSURE_SERVICES=mCONFIG_SGI_XP=mCONFIG_HP_ILO=mCONFIG_SGI_GRU=m
# CONFIG_SGI_GRU_DEBUG is not setCONFIG_APDS9802ALS=mCONFIG_ISL29003=mCONFIG_ISL29020=mCONFIG_SENSORS_TSL2550=mCONFIG_SENSORS_BH1770=mCONFIG_SENSORS_APDS990X=m
# CONFIG_HMC6352 is not set
# CONFIG_DS1682 is not setCONFIG_VMWARE_BALLOON=m
# CONFIG_LATTICE_ECP3_CONFIG is not set
# CONFIG_SRAM is not set
# CONFIG_PCI_ENDPOINT_TEST is not set
# CONFIG_XILINX_SDFEC is not setCONFIG_MISC_RTSX=mCONFIG_PVPANIC=y
# CONFIG_C2PORT is not set
#
# EEPROM support
#
# CONFIG_EEPROM_AT24 is not set
# CONFIG_EEPROM_AT25 is not setCONFIG_EEPROM_LEGACY=mCONFIG_EEPROM_MAX6875=mCONFIG_EEPROM_93CX6=m
# CONFIG_EEPROM_93XX46 is not set
# CONFIG_EEPROM_IDT_89HPESX is not set
# CONFIG_EEPROM_EE1004 is not set
# end of EEPROM support
CONFIG_CB710_CORE=m
# CONFIG_CB710_DEBUG is not setCONFIG_CB710_DEBUG_ASSUMPTIONS=y
#
# Texas Instruments shared transport line discipline #
# CONFIG_TI_ST is not set
# end of Texas Instruments shared transport line discipline
CONFIG_SENSORS_LIS3_I2C=mCONFIG_ALTERA_STAPL=mCONFIG_INTEL_MEI=mCONFIG_INTEL_MEI_ME=m
# CONFIG_INTEL_MEI_TXE is not set
# CONFIG_INTEL_MEI_HDCP is not setCONFIG_VMWARE_VMCI=m
# CONFIG_GENWQE is not set
# CONFIG_ECHO is not set
# CONFIG_BCM_VK is not set
# CONFIG_MISC_ALCOR_PCI is not setCONFIG_MISC_RTSX_PCI=m
# CONFIG_MISC_RTSX_USB is not set
# CONFIG_HABANA_AI is not set
# CONFIG_UACCE is not set
# end of Misc devices
CONFIG_HAVE_IDE=y
# CONFIG_IDE is not set
#
# SCSI device support
#CONFIG_SCSI_MOD=yCONFIG_RAID_ATTRS=mCONFIG_SCSI=yCONFIG_SCSI_DMA=yCONFIG_SCSI_NETLINK=yCONFIG_SCSI_PROC_FS=y
#
# SCSI support type (disk, tape, CD-ROM)
#CONFIG_BLK_DEV_SD=mCONFIG_CHR_DEV_ST=mCONFIG_BLK_DEV_SR=mCONFIG_CHR_DEV_SG=mCONFIG_CHR_DEV_SCH=mCONFIG_SCSI_ENCLOSURE=mCONFIG_SCSI_CONSTANTS=yCONFIG_SCSI_LOGGING=yCONFIG_SCSI_SCAN_ASYNC=y
#
# SCSI Transports
#CONFIG_SCSI_SPI_ATTRS=mCONFIG_SCSI_FC_ATTRS=mCONFIG_SCSI_ISCSI_ATTRS=mCONFIG_SCSI_SAS_ATTRS=mCONFIG_SCSI_SAS_LIBSAS=mCONFIG_SCSI_SAS_ATA=yCONFIG_SCSI_SAS_HOST_SMP=yCONFIG_SCSI_SRP_ATTRS=m
# end of SCSI Transports
CONFIG_SCSI_LOWLEVEL=y
# CONFIG_ISCSI_TCP is not set
# CONFIG_ISCSI_BOOT_SYSFS is not set
# CONFIG_SCSI_CXGB3_ISCSI is not set
# CONFIG_SCSI_CXGB4_ISCSI is not set
# CONFIG_SCSI_BNX2_ISCSI is not set
# CONFIG_BE2ISCSI is not set
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_HPSA is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_3W_SAS is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_AIC94XX is not set
# CONFIG_SCSI_MVSAS is not set
# CONFIG_SCSI_MVUMI is not set
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_ARCMSR is not set
# CONFIG_SCSI_ESAS2R is not set
# CONFIG_MEGARAID_NEWGEN is not set
# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not setCONFIG_SCSI_MPT3SAS=mCONFIG_SCSI_MPT2SAS_MAX_SGE=128CONFIG_SCSI_MPT3SAS_MAX_SGE=128
# CONFIG_SCSI_MPT2SAS is not set
# CONFIG_SCSI_SMARTPQI is not set
# CONFIG_SCSI_UFSHCD is not set
# CONFIG_SCSI_HPTIOP is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_MYRB is not set
# CONFIG_SCSI_MYRS is not set
# CONFIG_VMWARE_PVSCSI is not set
# CONFIG_XEN_SCSI_FRONTEND is not setCONFIG_HYPERV_STORAGE=m
# CONFIG_LIBFC is not set
# CONFIG_SCSI_SNIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_FDOMAIN_PCI is not setCONFIG_SCSI_ISCI=m
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_PPA is not set
# CONFIG_SCSI_IMM is not set
# CONFIG_SCSI_STEX is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_QLA_FC is not set
# CONFIG_SCSI_QLA_ISCSI is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_AM53C974 is not set
# CONFIG_SCSI_WD719X is not setCONFIG_SCSI_DEBUG=m
# CONFIG_SCSI_PMCRAID is not set
# CONFIG_SCSI_PM8001 is not set
# CONFIG_SCSI_BFA_FC is not set
# CONFIG_SCSI_VIRTIO is not set
# CONFIG_SCSI_CHELSIO_FCOE is not setCONFIG_SCSI_DH=yCONFIG_SCSI_DH_RDAC=yCONFIG_SCSI_DH_HP_SW=yCONFIG_SCSI_DH_EMC=yCONFIG_SCSI_DH_ALUA=y
# end of SCSI device support
CONFIG_ATA=mCONFIG_SATA_HOST=yCONFIG_PATA_TIMINGS=yCONFIG_ATA_VERBOSE_ERROR=yCONFIG_ATA_FORCE=yCONFIG_ATA_ACPI=y
# CONFIG_SATA_ZPODD is not setCONFIG_SATA_PMP=y
#
# Controllers with non-SFF native interface
#CONFIG_SATA_AHCI=mCONFIG_SATA_MOBILE_LPM_POLICY=0CONFIG_SATA_AHCI_PLATFORM=m
# CONFIG_SATA_INIC162X is not set
# CONFIG_SATA_ACARD_AHCI is not set
# CONFIG_SATA_SIL24 is not setCONFIG_ATA_SFF=y
#
# SFF controllers with custom DMA interface
#
# CONFIG_PDC_ADMA is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_SX4 is not setCONFIG_ATA_BMDMA=y
#
# SATA SFF controllers with BMDMA
#CONFIG_ATA_PIIX=m
# CONFIG_SATA_DWC is not set
# CONFIG_SATA_MV is not set
# CONFIG_SATA_NV is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_SIL is not set
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_SVW is not set
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not set
# CONFIG_SATA_VITESSE is not set
#
# PATA SFF controllers with BMDMA
#
# CONFIG_PATA_ALI is not set
# CONFIG_PATA_AMD is not set
# CONFIG_PATA_ARTOP is not set
# CONFIG_PATA_ATIIXP is not set
# CONFIG_PATA_ATP867X is not set
# CONFIG_PATA_CMD64X is not set
# CONFIG_PATA_CYPRESS is not set
# CONFIG_PATA_EFAR is not set
# CONFIG_PATA_HPT366 is not set
# CONFIG_PATA_HPT37X is not set
# CONFIG_PATA_HPT3X2N is not set
# CONFIG_PATA_HPT3X3 is not set
# CONFIG_PATA_IT8213 is not set
# CONFIG_PATA_IT821X is not set
# CONFIG_PATA_JMICRON is not set
# CONFIG_PATA_MARVELL is not set
# CONFIG_PATA_NETCELL is not set
# CONFIG_PATA_NINJA32 is not set
# CONFIG_PATA_NS87415 is not set
# CONFIG_PATA_OLDPIIX is not set
# CONFIG_PATA_OPTIDMA is not set
# CONFIG_PATA_PDC2027X is not set
# CONFIG_PATA_PDC_OLD is not set
# CONFIG_PATA_RADISYS is not set
# CONFIG_PATA_RDC is not set
# CONFIG_PATA_SCH is not set
# CONFIG_PATA_SERVERWORKS is not set
# CONFIG_PATA_SIL680 is not set
# CONFIG_PATA_SIS is not set
# CONFIG_PATA_TOSHIBA is not set
# CONFIG_PATA_TRIFLEX is not set
# CONFIG_PATA_VIA is not set
# CONFIG_PATA_WINBOND is not set
#
# PIO-only SFF controllers
#
# CONFIG_PATA_CMD640_PCI is not set
# CONFIG_PATA_MPIIX is not set
# CONFIG_PATA_NS87410 is not set
# CONFIG_PATA_OPTI is not set
# CONFIG_PATA_RZ1000 is not set
#
# Generic fallback / legacy drivers
#
# CONFIG_PATA_ACPI is not set CONFIG_ATA_GENERIC=m
# CONFIG_PATA_LEGACY is not set CONFIG_MD=yCONFIG_BLK_DEV_MD=yCONFIG_MD_AUTODETECT=yCONFIG_MD_LINEAR=mCONFIG_MD_RAID0=mCONFIG_MD_RAID1=mCONFIG_MD_RAID10=mCONFIG_MD_RAID456=mCONFIG_MD_MULTIPATH=mCONFIG_MD_FAULTY=mCONFIG_MD_CLUSTER=m
# CONFIG_BCACHE is not set CONFIG_BLK_DEV_DM_BUILTIN=y CONFIG_BLK_DEV_DM=mCONFIG_DM_DEBUG=yCONFIG_DM_BUFIO=m
# CONFIG_DM_DEBUG_BLOCK_MANAGER_LOCKING is not set CONFIG_DM_BIO_PRISON=m CONFIG_DM_PERSISTENT_DATA=m
# CONFIG_DM_UNSTRIPED is not set CONFIG_DM_CRYPT=mCONFIG_DM_SNAPSHOT=m CONFIG_DM_THIN_PROVISIONING=m CONFIG_DM_CACHE=mCONFIG_DM_CACHE_SMQ=m CONFIG_DM_WRITECACHE=m
# CONFIG_DM_EBS is not setCONFIG_DM_ERA=m
# CONFIG_DM_CLONE is not set CONFIG_DM_MIRROR=m CONFIG_DM_LOG_USERSPACE=mCONFIG_DM_RAID=mCONFIG_DM_ZERO=mCONFIG_DM_MULTIPATH=m CONFIG_DM_MULTIPATH_QL=m CONFIG_DM_MULTIPATH_ST=m
# CONFIG_DM_MULTIPATH_HST is not set
# CONFIG_DM_MULTIPATH_IOA is not set CONFIG_DM_DELAY=m
# CONFIG_DM_DUST is not set CONFIG_DM_UEVENT=yCONFIG_DM_FLAKEY=mCONFIG_DM_VERITY=m
# CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG is not set # CONFIG_DM_VERITY_FEC is not set CONFIG_DM_SWITCH=mCONFIG_DM_LOG_WRITES=m CONFIG_DM_INTEGRITY=m
# CONFIG_DM_ZONED is not set CONFIG_TARGET_CORE=mCONFIG_TCM_IBLOCK=mCONFIG_TCM_FILEIO=mCONFIG_TCM_PSCSI=mCONFIG_TCM_USER2=m CONFIG_LOOPBACK_TARGET=m CONFIG_ISCSI_TARGET=m
# CONFIG_SBP_TARGET is not set
# CONFIG_FUSION is not set
#
# IEEE 1394 (FireWire) support
#CONFIG_FIREWIRE=mCONFIG_FIREWIRE_OHCI=mCONFIG_FIREWIRE_SBP2=mCONFIG_FIREWIRE_NET=m
# CONFIG_FIREWIRE_NOSY is not set
# end of IEEE 1394 (FireWire) support
CONFIG_MACINTOSH_DRIVERS=yCONFIG_MAC_EMUMOUSEBTN=yCONFIG_NETDEVICES=yCONFIG_MII=yCONFIG_NET_CORE=y
# CONFIG_BONDING is not set
# CONFIG_DUMMY is not set
# CONFIG_WIREGUARD is not set
# CONFIG_EQUALIZER is not set
# CONFIG_NET_FC is not set
# CONFIG_IFB is not set
# CONFIG_NET_TEAM is not set
# CONFIG_MACVLAN is not set
# CONFIG_IPVLAN is not set
# CONFIG_VXLAN is not set
# CONFIG_GENEVE is not set
# CONFIG_BAREUDP is not set
# CONFIG_GTP is not set
# CONFIG_MACSEC is not setCONFIG_NETCONSOLE=mCONFIG_NETCONSOLE_DYNAMIC=yCONFIG_NETPOLL=yCONFIG_NET_POLL_CONTROLLER=yCONFIG_TUN=m
# CONFIG_TUN_VNET_CROSS_LE is not setCONFIG_VETH=mCONFIG_VIRTIO_NET=m
# CONFIG_NLMON is not set
# CONFIG_NET_VRF is not set
# CONFIG_VSOCKMON is not set
# CONFIG_ARCNET is not setCONFIG_ATM_DRIVERS=y
# CONFIG_ATM_DUMMY is not set
# CONFIG_ATM_TCP is not set
# CONFIG_ATM_LANAI is not set
# CONFIG_ATM_ENI is not set
# CONFIG_ATM_FIRESTREAM is not set
# CONFIG_ATM_ZATM is not set
# CONFIG_ATM_NICSTAR is not set
# CONFIG_ATM_IDT77252 is not set
# CONFIG_ATM_AMBASSADOR is not set
# CONFIG_ATM_HORIZON is not set
# CONFIG_ATM_IA is not set
# CONFIG_ATM_FORE200E is not set
# CONFIG_ATM_HE is not set
# CONFIG_ATM_SOLOS is not set
#
# Distributed Switch Architecture drivers
#
# CONFIG_NET_DSA_MV88E6XXX_PTP is not set
# end of Distributed Switch Architecture drivers
CONFIG_ETHERNET=yCONFIG_MDIO=yCONFIG_NET_VENDOR_3COM=y
# CONFIG_VORTEX is not set
# CONFIG_TYPHOON is not setCONFIG_NET_VENDOR_ADAPTEC=y
# CONFIG_ADAPTEC_STARFIRE is not setCONFIG_NET_VENDOR_AGERE=y
# CONFIG_ET131X is not setCONFIG_NET_VENDOR_ALACRITECH=y
# CONFIG_SLICOSS is not setCONFIG_NET_VENDOR_ALTEON=y
# CONFIG_ACENIC is not set
# CONFIG_ALTERA_TSE is not setCONFIG_NET_VENDOR_AMAZON=y
# CONFIG_ENA_ETHERNET is not setCONFIG_NET_VENDOR_AMD=y
# CONFIG_AMD8111_ETH is not set
# CONFIG_PCNET32 is not set
# CONFIG_AMD_XGBE is not setCONFIG_NET_VENDOR_AQUANTIA=y
# CONFIG_AQTION is not setCONFIG_NET_VENDOR_ARC=yCONFIG_NET_VENDOR_ATHEROS=y
# CONFIG_ATL2 is not set
# CONFIG_ATL1 is not set
# CONFIG_ATL1E is not set
# CONFIG_ATL1C is not set
# CONFIG_ALX is not setCONFIG_NET_VENDOR_BROADCOM=y
# CONFIG_B44 is not set
# CONFIG_BCMGENET is not set
# CONFIG_BNX2 is not set
# CONFIG_CNIC is not set
# CONFIG_TIGON3 is not set
# CONFIG_BNX2X is not set
# CONFIG_SYSTEMPORT is not set
# CONFIG_BNXT is not setCONFIG_NET_VENDOR_BROCADE=y
# CONFIG_BNA is not setCONFIG_NET_VENDOR_CADENCE=y
# CONFIG_MACB is not setCONFIG_NET_VENDOR_CAVIUM=y
# CONFIG_THUNDER_NIC_PF is not set
# CONFIG_THUNDER_NIC_VF is not set
# CONFIG_THUNDER_NIC_BGX is not set
# CONFIG_THUNDER_NIC_RGX is not setCONFIG_CAVIUM_PTP=y
# CONFIG_LIQUIDIO is not set
# CONFIG_LIQUIDIO_VF is not setCONFIG_NET_VENDOR_CHELSIO=y
# CONFIG_CHELSIO_T1 is not set
# CONFIG_CHELSIO_T3 is not set
# CONFIG_CHELSIO_T4 is not set
# CONFIG_CHELSIO_T4VF is not setCONFIG_NET_VENDOR_CISCO=y
# CONFIG_ENIC is not setCONFIG_NET_VENDOR_CORTINA=y
# CONFIG_CX_ECAT is not set
# CONFIG_DNET is not setCONFIG_NET_VENDOR_DEC=y
# CONFIG_NET_TULIP is not setCONFIG_NET_VENDOR_DLINK=y
# CONFIG_DL2K is not set
# CONFIG_SUNDANCE is not setCONFIG_NET_VENDOR_EMULEX=y
# CONFIG_BE2NET is not setCONFIG_NET_VENDOR_EZCHIP=yCONFIG_NET_VENDOR_GOOGLE=y
# CONFIG_GVE is not setCONFIG_NET_VENDOR_HUAWEI=y
# CONFIG_HINIC is not setCONFIG_NET_VENDOR_I825XX=yCONFIG_NET_VENDOR_INTEL=y
# CONFIG_E100 is not setCONFIG_E1000=yCONFIG_E1000E=yCONFIG_E1000E_HWTS=yCONFIG_IGB=yCONFIG_IGB_HWMON=y
# CONFIG_IGBVF is not set
# CONFIG_IXGB is not setCONFIG_IXGBE=yCONFIG_IXGBE_HWMON=y
# CONFIG_IXGBE_DCB is not setCONFIG_IXGBE_IPSEC=y
# CONFIG_IXGBEVF is not setCONFIG_I40E=y
# CONFIG_I40E_DCB is not set
# CONFIG_I40EVF is not set
# CONFIG_ICE is not set
# CONFIG_FM10K is not setCONFIG_IGC=y
# CONFIG_JME is not setCONFIG_NET_VENDOR_MARVELL=y
# CONFIG_MVMDIO is not set
# CONFIG_SKGE is not set
# CONFIG_SKY2 is not set
# CONFIG_PRESTERA is not setCONFIG_NET_VENDOR_MELLANOX=y
# CONFIG_MLX4_EN is not set
# CONFIG_MLX5_CORE is not set
# CONFIG_MLXSW_CORE is not set
# CONFIG_MLXFW is not setCONFIG_NET_VENDOR_MICREL=y
# CONFIG_KS8842 is not set
# CONFIG_KS8851 is not set
# CONFIG_KS8851_MLL is not set
# CONFIG_KSZ884X_PCI is not setCONFIG_NET_VENDOR_MICROCHIP=y
# CONFIG_ENC28J60 is not set
# CONFIG_ENCX24J600 is not set
# CONFIG_LAN743X is not setCONFIG_NET_VENDOR_MICROSEMI=yCONFIG_NET_VENDOR_MYRI=y
# CONFIG_MYRI10GE is not set
# CONFIG_FEALNX is not setCONFIG_NET_VENDOR_NATSEMI=y
# CONFIG_NATSEMI is not set
# CONFIG_NS83820 is not setCONFIG_NET_VENDOR_NETERION=y
# CONFIG_S2IO is not set
# CONFIG_VXGE is not setCONFIG_NET_VENDOR_NETRONOME=y
# CONFIG_NFP is not setCONFIG_NET_VENDOR_NI=y
# CONFIG_NI_XGE_MANAGEMENT_ENET is not setCONFIG_NET_VENDOR_8390=y
# CONFIG_NE2K_PCI is not setCONFIG_NET_VENDOR_NVIDIA=y
# CONFIG_FORCEDETH is not setCONFIG_NET_VENDOR_OKI=y
# CONFIG_ETHOC is not setCONFIG_NET_VENDOR_PACKET_ENGINES=y
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not setCONFIG_NET_VENDOR_PENSANDO=y
# CONFIG_IONIC is not setCONFIG_NET_VENDOR_QLOGIC=y
# CONFIG_QLA3XXX is not set
# CONFIG_QLCNIC is not set
# CONFIG_NETXEN_NIC is not set
# CONFIG_QED is not setCONFIG_NET_VENDOR_QUALCOMM=y
# CONFIG_QCOM_EMAC is not set
# CONFIG_RMNET is not setCONFIG_NET_VENDOR_RDC=y
# CONFIG_R6040 is not setCONFIG_NET_VENDOR_REALTEK=y
# CONFIG_ATP is not set
# CONFIG_8139CP is not set
# CONFIG_8139TOO is not setCONFIG_R8169=yCONFIG_NET_VENDOR_RENESAS=yCONFIG_NET_VENDOR_ROCKER=y
# CONFIG_ROCKER is not setCONFIG_NET_VENDOR_SAMSUNG=y
# CONFIG_SXGBE_ETH is not setCONFIG_NET_VENDOR_SEEQ=yCONFIG_NET_VENDOR_SOLARFLARE=y
# CONFIG_SFC is not set
# CONFIG_SFC_FALCON is not setCONFIG_NET_VENDOR_SILAN=y
# CONFIG_SC92031 is not setCONFIG_NET_VENDOR_SIS=y
# CONFIG_SIS900 is not set
# CONFIG_SIS190 is not setCONFIG_NET_VENDOR_SMSC=y
# CONFIG_EPIC100 is not set
# CONFIG_SMSC911X is not set
# CONFIG_SMSC9420 is not setCONFIG_NET_VENDOR_SOCIONEXT=yCONFIG_NET_VENDOR_STMICRO=y
# CONFIG_STMMAC_ETH is not setCONFIG_NET_VENDOR_SUN=y
# CONFIG_HAPPYMEAL is not set
# CONFIG_SUNGEM is not set
# CONFIG_CASSINI is not set
# CONFIG_NIU is not setCONFIG_NET_VENDOR_SYNOPSYS=y
# CONFIG_DWC_XLGMAC is not setCONFIG_NET_VENDOR_TEHUTI=y
# CONFIG_TEHUTI is not setCONFIG_NET_VENDOR_TI=y
# CONFIG_TI_CPSW_PHY_SEL is not set
# CONFIG_TLAN is not setCONFIG_NET_VENDOR_VIA=y
# CONFIG_VIA_RHINE is not set
# CONFIG_VIA_VELOCITY is not setCONFIG_NET_VENDOR_WIZNET=y
# CONFIG_WIZNET_W5100 is not set
# CONFIG_WIZNET_W5300 is not setCONFIG_NET_VENDOR_XILINX=y
# CONFIG_XILINX_EMACLITE is not set
# CONFIG_XILINX_AXI_EMAC is not set
# CONFIG_XILINX_LL_TEMAC is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_NET_SB1000 is not setCONFIG_PHYLIB=y
# CONFIG_LED_TRIGGER_PHY is not set
# CONFIG_FIXED_PHY is not set
#
# MII PHY device drivers
#
# CONFIG_AMD_PHY is not set
# CONFIG_ADIN_PHY is not set
# CONFIG_AQUANTIA_PHY is not set
# CONFIG_AX88796B_PHY is not set
# CONFIG_BROADCOM_PHY is not set
# CONFIG_BCM54140_PHY is not set
# CONFIG_BCM7XXX_PHY is not set
# CONFIG_BCM84881_PHY is not set
# CONFIG_BCM87XX_PHY is not set
# CONFIG_CICADA_PHY is not set
# CONFIG_CORTINA_PHY is not set
# CONFIG_DAVICOM_PHY is not set
# CONFIG_ICPLUS_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_INTEL_XWAY_PHY is not set
# CONFIG_LSI_ET1011C_PHY is not set
# CONFIG_MARVELL_PHY is not set
# CONFIG_MARVELL_10G_PHY is not set
# CONFIG_MICREL_PHY is not set
# CONFIG_MICROCHIP_PHY is not set
# CONFIG_MICROCHIP_T1_PHY is not set
# CONFIG_MICROSEMI_PHY is not set
# CONFIG_NATIONAL_PHY is not set
# CONFIG_NXP_TJA11XX_PHY is not set
# CONFIG_QSEMI_PHY is not setCONFIG_REALTEK_PHY=y
# CONFIG_RENESAS_PHY is not set
# CONFIG_ROCKCHIP_PHY is not set
# CONFIG_SMSC_PHY is not set
# CONFIG_STE10XP is not set
# CONFIG_TERANETICS_PHY is not set
# CONFIG_DP83822_PHY is not set
# CONFIG_DP83TC811_PHY is not set
# CONFIG_DP83848_PHY is not set
# CONFIG_DP83867_PHY is not set
# CONFIG_DP83869_PHY is not set
# CONFIG_VITESSE_PHY is not set
# CONFIG_XILINX_GMII2RGMII is not set
# CONFIG_MICREL_KS8995MA is not setCONFIG_MDIO_DEVICE=yCONFIG_MDIO_BUS=yCONFIG_MDIO_DEVRES=y
# CONFIG_MDIO_BITBANG is not set
# CONFIG_MDIO_BCM_UNIMAC is not set
# CONFIG_MDIO_MVUSB is not set
# CONFIG_MDIO_MSCC_MIIM is not set
# CONFIG_MDIO_THUNDER is not set
#
# MDIO Multiplexers
#
#
# PCS device drivers
#
# CONFIG_PCS_XPCS is not set
# end of PCS device drivers
# CONFIG_PLIP is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not setCONFIG_USB_NET_DRIVERS=y
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not setCONFIG_USB_RTL8152=y
# CONFIG_USB_LAN78XX is not setCONFIG_USB_USBNET=yCONFIG_USB_NET_AX8817X=yCONFIG_USB_NET_AX88179_178A=y
# CONFIG_USB_NET_CDCETHER is not set
# CONFIG_USB_NET_CDC_EEM is not set
# CONFIG_USB_NET_CDC_NCM is not set
# CONFIG_USB_NET_HUAWEI_CDC_NCM is not set
# CONFIG_USB_NET_CDC_MBIM is not set
# CONFIG_USB_NET_DM9601 is not set
# CONFIG_USB_NET_SR9700 is not set
# CONFIG_USB_NET_SR9800 is not set
# CONFIG_USB_NET_SMSC75XX is not set
# CONFIG_USB_NET_SMSC95XX is not set
# CONFIG_USB_NET_GL620A is not set
# CONFIG_USB_NET_NET1080 is not set
# CONFIG_USB_NET_PLUSB is not set
# CONFIG_USB_NET_MCS7830 is not set
# CONFIG_USB_NET_RNDIS_HOST is not set
# CONFIG_USB_NET_CDC_SUBSET is not set
# CONFIG_USB_NET_ZAURUS is not set
# CONFIG_USB_NET_CX82310_ETH is not set
# CONFIG_USB_NET_KALMIA is not set
# CONFIG_USB_NET_QMI_WWAN is not set
# CONFIG_USB_HSO is not set
# CONFIG_USB_NET_INT51X1 is not set
# CONFIG_USB_IPHETH is not set
# CONFIG_USB_SIERRA_NET is not set
# CONFIG_USB_NET_CH9200 is not set
# CONFIG_USB_NET_AQC111 is not setCONFIG_WLAN=yCONFIG_WLAN_VENDOR_ADMTEK=y
# CONFIG_ADM8211 is not setCONFIG_WLAN_VENDOR_ATH=y
# CONFIG_ATH_DEBUG is not set
# CONFIG_ATH5K is not set
# CONFIG_ATH5K_PCI is not set
# CONFIG_ATH9K is not set
# CONFIG_ATH9K_HTC is not set
# CONFIG_CARL9170 is not set
# CONFIG_ATH6KL is not set
# CONFIG_AR5523 is not set
# CONFIG_WIL6210 is not set
# CONFIG_ATH10K is not set
# CONFIG_WCN36XX is not set
# CONFIG_ATH11K is not setCONFIG_WLAN_VENDOR_ATMEL=y
# CONFIG_ATMEL is not set
# CONFIG_AT76C50X_USB is not setCONFIG_WLAN_VENDOR_BROADCOM=y
# CONFIG_B43 is not set
# CONFIG_B43LEGACY is not set
# CONFIG_BRCMSMAC is not set
# CONFIG_BRCMFMAC is not setCONFIG_WLAN_VENDOR_CISCO=y
# CONFIG_AIRO is not setCONFIG_WLAN_VENDOR_INTEL=y
# CONFIG_IPW2100 is not set
# CONFIG_IPW2200 is not set
# CONFIG_IWL4965 is not set
# CONFIG_IWL3945 is not set
# CONFIG_IWLWIFI is not setCONFIG_WLAN_VENDOR_INTERSIL=y
# CONFIG_HOSTAP is not set
# CONFIG_HERMES is not set
# CONFIG_P54_COMMON is not set
# CONFIG_PRISM54 is not setCONFIG_WLAN_VENDOR_MARVELL=y
# CONFIG_LIBERTAS is not set
# CONFIG_LIBERTAS_THINFIRM is not set
# CONFIG_MWIFIEX is not set
# CONFIG_MWL8K is not setCONFIG_WLAN_VENDOR_MEDIATEK=y
# CONFIG_MT7601U is not set
# CONFIG_MT76x0U is not set
# CONFIG_MT76x0E is not set
# CONFIG_MT76x2E is not set
# CONFIG_MT76x2U is not set
# CONFIG_MT7603E is not set
# CONFIG_MT7615E is not set
# CONFIG_MT7663U is not set
# CONFIG_MT7663S is not set
# CONFIG_MT7915E is not set
# CONFIG_MT7921E is not setCONFIG_WLAN_VENDOR_MICROCHIP=y
# CONFIG_WILC1000_SDIO is not set
# CONFIG_WILC1000_SPI is not setCONFIG_WLAN_VENDOR_RALINK=y
# CONFIG_RT2X00 is not setCONFIG_WLAN_VENDOR_REALTEK=y
# CONFIG_RTL8180 is not set
# CONFIG_RTL8187 is not setCONFIG_RTL_CARDS=m
# CONFIG_RTL8192CE is not set
# CONFIG_RTL8192SE is not set
# CONFIG_RTL8192DE is not set
# CONFIG_RTL8723AE is not set
# CONFIG_RTL8723BE is not set
# CONFIG_RTL8188EE is not set
# CONFIG_RTL8192EE is not set
# CONFIG_RTL8821AE is not set
# CONFIG_RTL8192CU is not set
# CONFIG_RTL8XXXU is not set
# CONFIG_RTW88 is not setCONFIG_WLAN_VENDOR_RSI=y
# CONFIG_RSI_91X is not setCONFIG_WLAN_VENDOR_ST=y
# CONFIG_CW1200 is not setCONFIG_WLAN_VENDOR_TI=y
# CONFIG_WL1251 is not set
# CONFIG_WL12XX is not set
# CONFIG_WL18XX is not set
# CONFIG_WLCORE is not setCONFIG_WLAN_VENDOR_ZYDAS=y
# CONFIG_USB_ZD1201 is not set
# CONFIG_ZD1211RW is not setCONFIG_WLAN_VENDOR_QUANTENNA=y
# CONFIG_QTNFMAC_PCIE is not setCONFIG_MAC80211_HWSIM=m
# CONFIG_USB_NET_RNDIS_WLAN is not set
# CONFIG_VIRT_WIFI is not set
# CONFIG_WAN is not setCONFIG_IEEE802154_DRIVERS=m
# CONFIG_IEEE802154_FAKELB is not set
# CONFIG_IEEE802154_AT86RF230 is not set
# CONFIG_IEEE802154_MRF24J40 is not set
# CONFIG_IEEE802154_CC2520 is not set
# CONFIG_IEEE802154_ATUSB is not set
# CONFIG_IEEE802154_ADF7242 is not set
# CONFIG_IEEE802154_CA8210 is not set
# CONFIG_IEEE802154_MCR20A is not set
# CONFIG_IEEE802154_HWSIM is not setCONFIG_XEN_NETDEV_FRONTEND=y
# CONFIG_VMXNET3 is not set
# CONFIG_FUJITSU_ES is not set
# CONFIG_HYPERV_NET is not setCONFIG_NETDEVSIM=mCONFIG_NET_FAILOVER=m
# CONFIG_ISDN is not set
# CONFIG_NVM is not set
#
# Input device support
#CONFIG_INPUT=yCONFIG_INPUT_LEDS=yCONFIG_INPUT_FF_MEMLESS=mCONFIG_INPUT_SPARSEKMAP=m
# CONFIG_INPUT_MATRIXKMAP is not set
#
# Userland interfaces
#CONFIG_INPUT_MOUSEDEV=y
# CONFIG_INPUT_MOUSEDEV_PSAUX is not setCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768CONFIG_INPUT_JOYDEV=mCONFIG_INPUT_EVDEV=y
# CONFIG_INPUT_EVBUG is not set
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=y
# CONFIG_KEYBOARD_ADP5588 is not set
# CONFIG_KEYBOARD_ADP5589 is not set
# CONFIG_KEYBOARD_APPLESPI is not setCONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_QT1050 is not set
# CONFIG_KEYBOARD_QT1070 is not set
# CONFIG_KEYBOARD_QT2160 is not set
# CONFIG_KEYBOARD_DLINK_DIR685 is not set
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_GPIO is not set
# CONFIG_KEYBOARD_GPIO_POLLED is not set
# CONFIG_KEYBOARD_TCA6416 is not set
# CONFIG_KEYBOARD_TCA8418 is not set
# CONFIG_KEYBOARD_MATRIX is not set
# CONFIG_KEYBOARD_LM8323 is not set
# CONFIG_KEYBOARD_LM8333 is not set
# CONFIG_KEYBOARD_MAX7359 is not set
# CONFIG_KEYBOARD_MCS is not set
# CONFIG_KEYBOARD_MPR121 is not set
# CONFIG_KEYBOARD_NEWTON is not set
# CONFIG_KEYBOARD_OPENCORES is not set
# CONFIG_KEYBOARD_SAMSUNG is not set
# CONFIG_KEYBOARD_STOWAWAY is not set
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_TM2_TOUCHKEY is not set
# CONFIG_KEYBOARD_XTKBD is not setCONFIG_INPUT_MOUSE=yCONFIG_MOUSE_PS2=yCONFIG_MOUSE_PS2_ALPS=yCONFIG_MOUSE_PS2_BYD=yCONFIG_MOUSE_PS2_LOGIPS2PP=yCONFIG_MOUSE_PS2_SYNAPTICS=yCONFIG_MOUSE_PS2_SYNAPTICS_SMBUS=yCONFIG_MOUSE_PS2_CYPRESS=yCONFIG_MOUSE_PS2_LIFEBOOK=yCONFIG_MOUSE_PS2_TRACKPOINT=yCONFIG_MOUSE_PS2_ELANTECH=yCONFIG_MOUSE_PS2_ELANTECH_SMBUS=yCONFIG_MOUSE_PS2_SENTELIC=y
# CONFIG_MOUSE_PS2_TOUCHKIT is not setCONFIG_MOUSE_PS2_FOCALTECH=yCONFIG_MOUSE_PS2_VMMOUSE=yCONFIG_MOUSE_PS2_SMBUS=yCONFIG_MOUSE_SERIAL=m
# CONFIG_MOUSE_APPLETOUCH is not set
# CONFIG_MOUSE_BCM5974 is not setCONFIG_MOUSE_CYAPA=mCONFIG_MOUSE_ELAN_I2C=mCONFIG_MOUSE_ELAN_I2C_I2C=yCONFIG_MOUSE_ELAN_I2C_SMBUS=yCONFIG_MOUSE_VSXXXAA=m
# CONFIG_MOUSE_GPIO is not setCONFIG_MOUSE_SYNAPTICS_I2C=m
# CONFIG_MOUSE_SYNAPTICS_USB is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not setCONFIG_RMI4_CORE=mCONFIG_RMI4_I2C=mCONFIG_RMI4_SPI=mCONFIG_RMI4_SMB=mCONFIG_RMI4_F03=yCONFIG_RMI4_F03_SERIO=mCONFIG_RMI4_2D_SENSOR=yCONFIG_RMI4_F11=yCONFIG_RMI4_F12=yCONFIG_RMI4_F30=yCONFIG_RMI4_F34=y
# CONFIG_RMI4_F3A is not set
# CONFIG_RMI4_F54 is not setCONFIG_RMI4_F55=y
#
# Hardware I/O ports
#CONFIG_SERIO=yCONFIG_ARCH_MIGHT_HAVE_PC_SERIO=yCONFIG_SERIO_I8042=yCONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_PARKBD is not set
# CONFIG_SERIO_PCIPS2 is not setCONFIG_SERIO_LIBPS2=yCONFIG_SERIO_RAW=mCONFIG_SERIO_ALTERA_PS2=m
# CONFIG_SERIO_PS2MULT is not setCONFIG_SERIO_ARC_PS2=mCONFIG_HYPERV_KEYBOARD=m
# CONFIG_SERIO_GPIO_PS2 is not set
# CONFIG_USERIO is not set
# CONFIG_GAMEPORT is not set
# end of Hardware I/O ports # end of Input device support
#
# Character devices
#CONFIG_TTY=yCONFIG_VT=yCONFIG_CONSOLE_TRANSLATIONS=yCONFIG_VT_CONSOLE=yCONFIG_VT_CONSOLE_SLEEP=yCONFIG_HW_CONSOLE=yCONFIG_VT_HW_CONSOLE_BINDING=yCONFIG_UNIX98_PTYS=y
# CONFIG_LEGACY_PTYS is not setCONFIG_LDISC_AUTOLOAD=y
#
# Serial drivers
#CONFIG_SERIAL_EARLYCON=y CONFIG_SERIAL_8250=y
# CONFIG_SERIAL_8250_DEPRECATED_OPTIONS is not set CONFIG_SERIAL_8250_PNP=y
# CONFIG_SERIAL_8250_16550A_VARIANTS is not set # CONFIG_SERIAL_8250_FINTEK is not set CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_8250_DMA=y CONFIG_SERIAL_8250_PCI=y CONFIG_SERIAL_8250_EXAR=y CONFIG_SERIAL_8250_NR_UARTS=64 CONFIG_SERIAL_8250_RUNTIME_UARTS=4 CONFIG_SERIAL_8250_EXTENDED=y CONFIG_SERIAL_8250_MANY_PORTS=y CONFIG_SERIAL_8250_SHARE_IRQ=y
# CONFIG_SERIAL_8250_DETECT_IRQ is not set CONFIG_SERIAL_8250_RSA=y CONFIG_SERIAL_8250_DWLIB=y CONFIG_SERIAL_8250_DW=y
# CONFIG_SERIAL_8250_RT288X is not set CONFIG_SERIAL_8250_LPSS=y CONFIG_SERIAL_8250_MID=y
#
# Non-8250 serial port support
#
# CONFIG_SERIAL_MAX3100 is not set
# CONFIG_SERIAL_MAX310X is not set
# CONFIG_SERIAL_UARTLITE is not setCONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=yCONFIG_SERIAL_JSM=m
# CONFIG_SERIAL_LANTIQ is not set
# CONFIG_SERIAL_SCCNXP is not set
# CONFIG_SERIAL_SC16IS7XX is not set
# CONFIG_SERIAL_BCM63XX is not set
# CONFIG_SERIAL_ALTERA_JTAGUART is not set
# CONFIG_SERIAL_ALTERA_UART is not setCONFIG_SERIAL_ARC=mCONFIG_SERIAL_ARC_NR_PORTS=1
# CONFIG_SERIAL_RP2 is not set
# CONFIG_SERIAL_FSL_LPUART is not set
# CONFIG_SERIAL_FSL_LINFLEXUART is not set
# CONFIG_SERIAL_SPRD is not set
# end of Serial drivers
CONFIG_SERIAL_MCTRL_GPIO=yCONFIG_SERIAL_NONSTANDARD=y
# CONFIG_ROCKETPORT is not setCONFIG_CYCLADES=m
# CONFIG_CYZ_INTR is not set
# CONFIG_MOXA_INTELLIO is not set
# CONFIG_MOXA_SMARTIO is not setCONFIG_SYNCLINK_GT=m
# CONFIG_ISI is not setCONFIG_N_HDLC=mCONFIG_N_GSM=mCONFIG_NOZOMI=m
# CONFIG_NULL_TTY is not set
# CONFIG_TRACE_SINK is not setCONFIG_HVC_DRIVER=yCONFIG_HVC_IRQ=yCONFIG_HVC_XEN=yCONFIG_HVC_XEN_FRONTEND=y
# CONFIG_SERIAL_DEV_BUS is not setCONFIG_PRINTER=m
# CONFIG_LP_CONSOLE is not setCONFIG_PPDEV=mCONFIG_VIRTIO_CONSOLE=mCONFIG_IPMI_HANDLER=mCONFIG_IPMI_DMI_DECODE=yCONFIG_IPMI_PLAT_DATA=yCONFIG_IPMI_PANIC_EVENT=yCONFIG_IPMI_PANIC_STRING=yCONFIG_IPMI_DEVICE_INTERFACE=mCONFIG_IPMI_SI=mCONFIG_IPMI_SSIF=mCONFIG_IPMI_WATCHDOG=mCONFIG_IPMI_POWEROFF=mCONFIG_HW_RANDOM=yCONFIG_HW_RANDOM_TIMERIOMEM=mCONFIG_HW_RANDOM_INTEL=mCONFIG_HW_RANDOM_AMD=m
# CONFIG_HW_RANDOM_BA431 is not setCONFIG_HW_RANDOM_VIA=mCONFIG_HW_RANDOM_VIRTIO=y
# CONFIG_HW_RANDOM_XIPHERA is not set
# CONFIG_APPLICOM is not set
# CONFIG_MWAVE is not setCONFIG_DEVMEM=y
# CONFIG_DEVKMEM is not setCONFIG_NVRAM=yCONFIG_RAW_DRIVER=yCONFIG_MAX_RAW_DEVS=8192CONFIG_DEVPORT=yCONFIG_HPET=yCONFIG_HPET_MMAP=y
# CONFIG_HPET_MMAP_DEFAULT is not setCONFIG_HANGCHECK_TIMER=mCONFIG_UV_MMTIMER=mCONFIG_TCG_TPM=yCONFIG_HW_RANDOM_TPM=yCONFIG_TCG_TIS_CORE=yCONFIG_TCG_TIS=y
# CONFIG_TCG_TIS_SPI is not set
# CONFIG_TCG_TIS_I2C_CR50 is not setCONFIG_TCG_TIS_I2C_ATMEL=mCONFIG_TCG_TIS_I2C_INFINEON=mCONFIG_TCG_TIS_I2C_NUVOTON=mCONFIG_TCG_NSC=mCONFIG_TCG_ATMEL=mCONFIG_TCG_INFINEON=m
# CONFIG_TCG_XEN is not setCONFIG_TCG_CRB=y
# CONFIG_TCG_VTPM_PROXY is not setCONFIG_TCG_TIS_ST33ZP24=mCONFIG_TCG_TIS_ST33ZP24_I2C=m
# CONFIG_TCG_TIS_ST33ZP24_SPI is not setCONFIG_TELCLOCK=m
# CONFIG_XILLYBUS is not set
# end of Character devices
# CONFIG_RANDOM_TRUST_CPU is not set
# CONFIG_RANDOM_TRUST_BOOTLOADER is not set
#
# I2C support
#CONFIG_I2C=yCONFIG_ACPI_I2C_OPREGION=yCONFIG_I2C_BOARDINFO=yCONFIG_I2C_COMPAT=yCONFIG_I2C_CHARDEV=mCONFIG_I2C_MUX=m
#
# Multiplexer I2C Chip support
#
# CONFIG_I2C_MUX_GPIO is not set
# CONFIG_I2C_MUX_LTC4306 is not set
# CONFIG_I2C_MUX_PCA9541 is not set
# CONFIG_I2C_MUX_PCA954x is not set
# CONFIG_I2C_MUX_REG is not setCONFIG_I2C_MUX_MLXCPLD=m
# end of Multiplexer I2C Chip support
CONFIG_I2C_HELPER_AUTO=yCONFIG_I2C_SMBUS=yCONFIG_I2C_ALGOBIT=yCONFIG_I2C_ALGOPCA=m
#
# I2C Hardware Bus support
#
#
# PC SMBus host controller drivers
#
# CONFIG_I2C_ALI1535 is not set
# CONFIG_I2C_ALI1563 is not set
# CONFIG_I2C_ALI15X3 is not setCONFIG_I2C_AMD756=mCONFIG_I2C_AMD756_S4882=mCONFIG_I2C_AMD8111=m
# CONFIG_I2C_AMD_MP2 is not setCONFIG_I2C_I801=yCONFIG_I2C_ISCH=mCONFIG_I2C_ISMT=mCONFIG_I2C_PIIX4=mCONFIG_I2C_NFORCE2=mCONFIG_I2C_NFORCE2_S4985=m
# CONFIG_I2C_NVIDIA_GPU is not set
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not setCONFIG_I2C_SIS96X=mCONFIG_I2C_VIA=mCONFIG_I2C_VIAPRO=m
#
# ACPI drivers
#CONFIG_I2C_SCMI=m
#
# I2C system bus drivers (mostly embedded / system-on-chip) #
# CONFIG_I2C_CBUS_GPIO is not set CONFIG_I2C_DESIGNWARE_CORE=m
# CONFIG_I2C_DESIGNWARE_SLAVE is not set CONFIG_I2C_DESIGNWARE_PLATFORM=m CONFIG_I2C_DESIGNWARE_BAYTRAIL=y
# CONFIG_I2C_DESIGNWARE_PCI is not set
# CONFIG_I2C_EMEV2 is not set
# CONFIG_I2C_GPIO is not set
# CONFIG_I2C_OCORES is not set CONFIG_I2C_PCA_PLATFORM=mCONFIG_I2C_SIMTEC=m
# CONFIG_I2C_XILINX is not set
#
# External I2C/SMBus adapter drivers
#
# CONFIG_I2C_DIOLAN_U2C is not setCONFIG_I2C_PARPORT=m
# CONFIG_I2C_ROBOTFUZZ_OSIF is not set
# CONFIG_I2C_TAOS_EVM is not set
# CONFIG_I2C_TINY_USB is not set
#
# Other I2C/SMBus bus drivers
#CONFIG_I2C_MLXCPLD=m
# end of I2C Hardware Bus support
CONFIG_I2C_STUB=m
# CONFIG_I2C_SLAVE is not set
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# end of I2C support
# CONFIG_I3C is not setCONFIG_SPI=y
# CONFIG_SPI_DEBUG is not setCONFIG_SPI_MASTER=y
# CONFIG_SPI_MEM is not set
#
# SPI Master Controller Drivers
#
# CONFIG_SPI_ALTERA is not set
# CONFIG_SPI_AXI_SPI_ENGINE is not set
# CONFIG_SPI_BITBANG is not set
# CONFIG_SPI_BUTTERFLY is not set
# CONFIG_SPI_CADENCE is not set
# CONFIG_SPI_DESIGNWARE is not set
# CONFIG_SPI_NXP_FLEXSPI is not set
# CONFIG_SPI_GPIO is not set
# CONFIG_SPI_LM70_LLP is not set
# CONFIG_SPI_LANTIQ_SSC is not set
# CONFIG_SPI_OC_TINY is not set
# CONFIG_SPI_PXA2XX is not set
# CONFIG_SPI_ROCKCHIP is not set
# CONFIG_SPI_SC18IS602 is not set
# CONFIG_SPI_SIFIVE is not set
# CONFIG_SPI_MXIC is not set
# CONFIG_SPI_XCOMM is not set
# CONFIG_SPI_XILINX is not set
# CONFIG_SPI_ZYNQMP_GQSPI is not set
# CONFIG_SPI_AMD is not set
#
# SPI Multiplexer support
#
# CONFIG_SPI_MUX is not set
#
# SPI Protocol Masters
#
# CONFIG_SPI_SPIDEV is not set
# CONFIG_SPI_LOOPBACK_TEST is not set
# CONFIG_SPI_TLE62X0 is not set
# CONFIG_SPI_SLAVE is not setCONFIG_SPI_DYNAMIC=y
# CONFIG_SPMI is not set
# CONFIG_HSI is not setCONFIG_PPS=y
# CONFIG_PPS_DEBUG is not set
#
# PPS clients support
#
# CONFIG_PPS_CLIENT_KTIMER is not setCONFIG_PPS_CLIENT_LDISC=mCONFIG_PPS_CLIENT_PARPORT=mCONFIG_PPS_CLIENT_GPIO=m
#
# PPS generators support
#
#
# PTP clock support
#CONFIG_PTP_1588_CLOCK=y
# CONFIG_DP83640_PHY is not set
# CONFIG_PTP_1588_CLOCK_INES is not setCONFIG_PTP_1588_CLOCK_KVM=m
# CONFIG_PTP_1588_CLOCK_IDT82P33 is not set
# CONFIG_PTP_1588_CLOCK_IDTCM is not set
# CONFIG_PTP_1588_CLOCK_VMW is not set
# CONFIG_PTP_1588_CLOCK_OCP is not set
# end of PTP clock support
CONFIG_PINCTRL=yCONFIG_PINMUX=yCONFIG_PINCONF=yCONFIG_GENERIC_PINCONF=y
# CONFIG_DEBUG_PINCTRL is not setCONFIG_PINCTRL_AMD=m
# CONFIG_PINCTRL_MCP23S08 is not set
# CONFIG_PINCTRL_SX150X is not setCONFIG_PINCTRL_BAYTRAIL=y
# CONFIG_PINCTRL_CHERRYVIEW is not set
# CONFIG_PINCTRL_LYNXPOINT is not setCONFIG_PINCTRL_INTEL=y
# CONFIG_PINCTRL_ALDERLAKE is not setCONFIG_PINCTRL_BROXTON=mCONFIG_PINCTRL_CANNONLAKE=mCONFIG_PINCTRL_CEDARFORK=mCONFIG_PINCTRL_DENVERTON=m
# CONFIG_PINCTRL_ELKHARTLAKE is not set
# CONFIG_PINCTRL_EMMITSBURG is not setCONFIG_PINCTRL_GEMINILAKE=m
# CONFIG_PINCTRL_ICELAKE is not set
# CONFIG_PINCTRL_JASPERLAKE is not set
# CONFIG_PINCTRL_LAKEFIELD is not setCONFIG_PINCTRL_LEWISBURG=mCONFIG_PINCTRL_SUNRISEPOINT=m
# CONFIG_PINCTRL_TIGERLAKE is not set
#
# Renesas pinctrl drivers
#
# end of Renesas pinctrl drivers
CONFIG_GPIOLIB=yCONFIG_GPIOLIB_FASTPATH_LIMIT=512CONFIG_GPIO_ACPI=yCONFIG_GPIOLIB_IRQCHIP=y
# CONFIG_DEBUG_GPIO is not setCONFIG_GPIO_CDEV=yCONFIG_GPIO_CDEV_V1=yCONFIG_GPIO_GENERIC=m
#
# Memory mapped GPIO drivers
#CONFIG_GPIO_AMDPT=m
# CONFIG_GPIO_DWAPB is not set
# CONFIG_GPIO_EXAR is not set
# CONFIG_GPIO_GENERIC_PLATFORM is not setCONFIG_GPIO_ICH=m
# CONFIG_GPIO_MB86S7X is not set
# CONFIG_GPIO_VX855 is not set
# CONFIG_GPIO_AMD_FCH is not set
# end of Memory mapped GPIO drivers
#
# Port-mapped I/O GPIO drivers
#
# CONFIG_GPIO_F7188X is not set
# CONFIG_GPIO_IT87 is not set
# CONFIG_GPIO_SCH is not set
# CONFIG_GPIO_SCH311X is not set
# CONFIG_GPIO_WINBOND is not set
# CONFIG_GPIO_WS16C48 is not set
# end of Port-mapped I/O GPIO drivers
#
# I2C GPIO expanders
#
# CONFIG_GPIO_ADP5588 is not set
# CONFIG_GPIO_MAX7300 is not set
# CONFIG_GPIO_MAX732X is not set
# CONFIG_GPIO_PCA953X is not set
# CONFIG_GPIO_PCA9570 is not set
# CONFIG_GPIO_PCF857X is not set
# CONFIG_GPIO_TPIC2810 is not set
# end of I2C GPIO expanders
#
# MFD GPIO expanders
#
# end of MFD GPIO expanders
#
# PCI GPIO expanders
#
# CONFIG_GPIO_AMD8111 is not set
# CONFIG_GPIO_BT8XX is not set
# CONFIG_GPIO_ML_IOH is not set
# CONFIG_GPIO_PCI_IDIO_16 is not set
# CONFIG_GPIO_PCIE_IDIO_24 is not set
# CONFIG_GPIO_RDC321X is not set
# end of PCI GPIO expanders
#
# SPI GPIO expanders
#
# CONFIG_GPIO_MAX3191X is not set
# CONFIG_GPIO_MAX7301 is not set
# CONFIG_GPIO_MC33880 is not set
# CONFIG_GPIO_PISOSR is not set
# CONFIG_GPIO_XRA1403 is not set
# end of SPI GPIO expanders
#
# USB GPIO expanders
#
# end of USB GPIO expanders
#
# Virtual GPIO drivers
#
# CONFIG_GPIO_AGGREGATOR is not set
# CONFIG_GPIO_MOCKUP is not set
# end of Virtual GPIO drivers
# CONFIG_W1 is not setCONFIG_POWER_RESET=y
# CONFIG_POWER_RESET_RESTART is not setCONFIG_POWER_SUPPLY=y
# CONFIG_POWER_SUPPLY_DEBUG is not setCONFIG_POWER_SUPPLY_HWMON=y
# CONFIG_PDA_POWER is not set
# CONFIG_TEST_POWER is not set
# CONFIG_CHARGER_ADP5061 is not set
# CONFIG_BATTERY_CW2015 is not set
# CONFIG_BATTERY_DS2780 is not set
# CONFIG_BATTERY_DS2781 is not set
# CONFIG_BATTERY_DS2782 is not set
# CONFIG_BATTERY_SBS is not set
# CONFIG_CHARGER_SBS is not set
# CONFIG_MANAGER_SBS is not set
# CONFIG_BATTERY_BQ27XXX is not set
# CONFIG_BATTERY_MAX17040 is not set
# CONFIG_BATTERY_MAX17042 is not set
# CONFIG_CHARGER_MAX8903 is not set
# CONFIG_CHARGER_LP8727 is not set
# CONFIG_CHARGER_GPIO is not set
# CONFIG_CHARGER_LT3651 is not set
# CONFIG_CHARGER_LTC4162L is not set
# CONFIG_CHARGER_BQ2415X is not set
# CONFIG_CHARGER_BQ24257 is not set
# CONFIG_CHARGER_BQ24735 is not set
# CONFIG_CHARGER_BQ2515X is not set
# CONFIG_CHARGER_BQ25890 is not set
# CONFIG_CHARGER_BQ25980 is not set
# CONFIG_CHARGER_BQ256XX is not setCONFIG_CHARGER_SMB347=m
# CONFIG_BATTERY_GAUGE_LTC2941 is not set
# CONFIG_CHARGER_RT9455 is not set
# CONFIG_CHARGER_BD99954 is not setCONFIG_HWMON=yCONFIG_HWMON_VID=m
# CONFIG_HWMON_DEBUG_CHIP is not set
#
# Native drivers
#CONFIG_SENSORS_ABITUGURU=mCONFIG_SENSORS_ABITUGURU3=m
# CONFIG_SENSORS_AD7314 is not setCONFIG_SENSORS_AD7414=mCONFIG_SENSORS_AD7418=mCONFIG_SENSORS_ADM1021=mCONFIG_SENSORS_ADM1025=mCONFIG_SENSORS_ADM1026=mCONFIG_SENSORS_ADM1029=mCONFIG_SENSORS_ADM1031=m
# CONFIG_SENSORS_ADM1177 is not setCONFIG_SENSORS_ADM9240=mCONFIG_SENSORS_ADT7X10=m
# CONFIG_SENSORS_ADT7310 is not setCONFIG_SENSORS_ADT7410=mCONFIG_SENSORS_ADT7411=mCONFIG_SENSORS_ADT7462=mCONFIG_SENSORS_ADT7470=mCONFIG_SENSORS_ADT7475=m
# CONFIG_SENSORS_AHT10 is not set
# CONFIG_SENSORS_AS370 is not setCONFIG_SENSORS_ASC7621=m
# CONFIG_SENSORS_AXI_FAN_CONTROL is not setCONFIG_SENSORS_K8TEMP=mCONFIG_SENSORS_K10TEMP=mCONFIG_SENSORS_FAM15H_POWER=m
# CONFIG_SENSORS_AMD_ENERGY is not setCONFIG_SENSORS_APPLESMC=mCONFIG_SENSORS_ASB100=m
# CONFIG_SENSORS_ASPEED is not setCONFIG_SENSORS_ATXP1=m
# CONFIG_SENSORS_CORSAIR_CPRO is not set
# CONFIG_SENSORS_CORSAIR_PSU is not set
# CONFIG_SENSORS_DRIVETEMP is not setCONFIG_SENSORS_DS620=mCONFIG_SENSORS_DS1621=mCONFIG_SENSORS_DELL_SMM=mCONFIG_SENSORS_I5K_AMB=mCONFIG_SENSORS_F71805F=mCONFIG_SENSORS_F71882FG=mCONFIG_SENSORS_F75375S=mCONFIG_SENSORS_FSCHMD=m
# CONFIG_SENSORS_FTSTEUTATES is not setCONFIG_SENSORS_GL518SM=mCONFIG_SENSORS_GL520SM=mCONFIG_SENSORS_G760A=m
# CONFIG_SENSORS_G762 is not set
# CONFIG_SENSORS_HIH6130 is not setCONFIG_SENSORS_IBMAEM=mCONFIG_SENSORS_IBMPEX=mCONFIG_SENSORS_I5500=mCONFIG_SENSORS_CORETEMP=mCONFIG_SENSORS_IT87=mCONFIG_SENSORS_JC42=m
# CONFIG_SENSORS_POWR1220 is not setCONFIG_SENSORS_LINEAGE=m
# CONFIG_SENSORS_LTC2945 is not set
# CONFIG_SENSORS_LTC2947_I2C is not set
# CONFIG_SENSORS_LTC2947_SPI is not set
# CONFIG_SENSORS_LTC2990 is not set
# CONFIG_SENSORS_LTC2992 is not setCONFIG_SENSORS_LTC4151=mCONFIG_SENSORS_LTC4215=m
# CONFIG_SENSORS_LTC4222 is not setCONFIG_SENSORS_LTC4245=m
# CONFIG_SENSORS_LTC4260 is not setCONFIG_SENSORS_LTC4261=m
# CONFIG_SENSORS_MAX1111 is not set
# CONFIG_SENSORS_MAX127 is not setCONFIG_SENSORS_MAX16065=mCONFIG_SENSORS_MAX1619=mCONFIG_SENSORS_MAX1668=mCONFIG_SENSORS_MAX197=m
# CONFIG_SENSORS_MAX31722 is not set
# CONFIG_SENSORS_MAX31730 is not set
# CONFIG_SENSORS_MAX6621 is not setCONFIG_SENSORS_MAX6639=mCONFIG_SENSORS_MAX6642=mCONFIG_SENSORS_MAX6650=mCONFIG_SENSORS_MAX6697=m
# CONFIG_SENSORS_MAX31790 is not setCONFIG_SENSORS_MCP3021=m
# CONFIG_SENSORS_MLXREG_FAN is not set
# CONFIG_SENSORS_TC654 is not set
# CONFIG_SENSORS_TPS23861 is not set
# CONFIG_SENSORS_MR75203 is not set
# CONFIG_SENSORS_ADCXX is not setCONFIG_SENSORS_LM63=m
# CONFIG_SENSORS_LM70 is not setCONFIG_SENSORS_LM73=mCONFIG_SENSORS_LM75=mCONFIG_SENSORS_LM77=mCONFIG_SENSORS_LM78=mCONFIG_SENSORS_LM80=mCONFIG_SENSORS_LM83=mCONFIG_SENSORS_LM85=mCONFIG_SENSORS_LM87=mCONFIG_SENSORS_LM90=mCONFIG_SENSORS_LM92=mCONFIG_SENSORS_LM93=mCONFIG_SENSORS_LM95234=mCONFIG_SENSORS_LM95241=mCONFIG_SENSORS_LM95245=mCONFIG_SENSORS_PC87360=mCONFIG_SENSORS_PC87427=mCONFIG_SENSORS_NTC_THERMISTOR=m
# CONFIG_SENSORS_NCT6683 is not setCONFIG_SENSORS_NCT6775=m
# CONFIG_SENSORS_NCT7802 is not set
# CONFIG_SENSORS_NCT7904 is not set
# CONFIG_SENSORS_NPCM7XX is not setCONFIG_SENSORS_PCF8591=mCONFIG_PMBUS=mCONFIG_SENSORS_PMBUS=m
# CONFIG_SENSORS_ADM1266 is not setCONFIG_SENSORS_ADM1275=m
# CONFIG_SENSORS_BEL_PFE is not set
# CONFIG_SENSORS_IBM_CFFPS is not set
# CONFIG_SENSORS_INSPUR_IPSPS is not set
# CONFIG_SENSORS_IR35221 is not set
# CONFIG_SENSORS_IR38064 is not set
# CONFIG_SENSORS_IRPS5401 is not set
# CONFIG_SENSORS_ISL68137 is not setCONFIG_SENSORS_LM25066=mCONFIG_SENSORS_LTC2978=m
# CONFIG_SENSORS_LTC3815 is not setCONFIG_SENSORS_MAX16064=m
# CONFIG_SENSORS_MAX16601 is not set
# CONFIG_SENSORS_MAX20730 is not set
# CONFIG_SENSORS_MAX20751 is not set
# CONFIG_SENSORS_MAX31785 is not setCONFIG_SENSORS_MAX34440=mCONFIG_SENSORS_MAX8688=m
# CONFIG_SENSORS_MP2975 is not set
# CONFIG_SENSORS_PM6764TR is not set
# CONFIG_SENSORS_PXE1610 is not set
# CONFIG_SENSORS_Q54SJ108A2 is not set
# CONFIG_SENSORS_TPS40422 is not set
# CONFIG_SENSORS_TPS53679 is not setCONFIG_SENSORS_UCD9000=mCONFIG_SENSORS_UCD9200=m
# CONFIG_SENSORS_XDPE122 is not setCONFIG_SENSORS_ZL6100=m
# CONFIG_SENSORS_SBTSI is not setCONFIG_SENSORS_SHT15=mCONFIG_SENSORS_SHT21=m
# CONFIG_SENSORS_SHT3x is not set
# CONFIG_SENSORS_SHTC1 is not setCONFIG_SENSORS_SIS5595=mCONFIG_SENSORS_DME1737=mCONFIG_SENSORS_EMC1403=m
# CONFIG_SENSORS_EMC2103 is not setCONFIG_SENSORS_EMC6W201=mCONFIG_SENSORS_SMSC47M1=mCONFIG_SENSORS_SMSC47M192=mCONFIG_SENSORS_SMSC47B397=mCONFIG_SENSORS_SCH56XX_COMMON=mCONFIG_SENSORS_SCH5627=mCONFIG_SENSORS_SCH5636=m
# CONFIG_SENSORS_STTS751 is not set
# CONFIG_SENSORS_SMM665 is not set
# CONFIG_SENSORS_ADC128D818 is not setCONFIG_SENSORS_ADS7828=m
# CONFIG_SENSORS_ADS7871 is not setCONFIG_SENSORS_AMC6821=mCONFIG_SENSORS_INA209=mCONFIG_SENSORS_INA2XX=m
# CONFIG_SENSORS_INA3221 is not set
# CONFIG_SENSORS_TC74 is not setCONFIG_SENSORS_THMC50=mCONFIG_SENSORS_TMP102=m
# CONFIG_SENSORS_TMP103 is not set
# CONFIG_SENSORS_TMP108 is not setCONFIG_SENSORS_TMP401=mCONFIG_SENSORS_TMP421=m
# CONFIG_SENSORS_TMP513 is not setCONFIG_SENSORS_VIA_CPUTEMP=mCONFIG_SENSORS_VIA686A=mCONFIG_SENSORS_VT1211=mCONFIG_SENSORS_VT8231=m
# CONFIG_SENSORS_W83773G is not setCONFIG_SENSORS_W83781D=mCONFIG_SENSORS_W83791D=mCONFIG_SENSORS_W83792D=mCONFIG_SENSORS_W83793=mCONFIG_SENSORS_W83795=m
# CONFIG_SENSORS_W83795_FANCTRL is not setCONFIG_SENSORS_W83L785TS=mCONFIG_SENSORS_W83L786NG=mCONFIG_SENSORS_W83627HF=mCONFIG_SENSORS_W83627EHF=m
# CONFIG_SENSORS_XGENE is not set
#
# ACPI drivers
#CONFIG_SENSORS_ACPI_POWER=m CONFIG_SENSORS_ATK0110=mCONFIG_THERMAL=y
# CONFIG_THERMAL_NETLINK is not set
# CONFIG_THERMAL_STATISTICS is not set CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=0 CONFIG_THERMAL_HWMON=y CONFIG_THERMAL_WRITABLE_TRIPS=y CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y
# CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE is not set # CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE is not set CONFIG_THERMAL_GOV_FAIR_SHARE=y CONFIG_THERMAL_GOV_STEP_WISE=y CONFIG_THERMAL_GOV_BANG_BANG=y CONFIG_THERMAL_GOV_USER_SPACE=y
# CONFIG_THERMAL_EMULATION is not set
#
# Intel thermal drivers
#CONFIG_INTEL_POWERCLAMP=mCONFIG_X86_THERMAL_VECTOR=yCONFIG_X86_PKG_TEMP_THERMAL=mCONFIG_INTEL_SOC_DTS_IOSF_CORE=m
# CONFIG_INTEL_SOC_DTS_THERMAL is not set
#
# ACPI INT340X thermal drivers
#CONFIG_INT340X_THERMAL=mCONFIG_ACPI_THERMAL_REL=m
# CONFIG_INT3406_THERMAL is not setCONFIG_PROC_THERMAL_MMIO_RAPL=m
# end of ACPI INT340X thermal drivers
CONFIG_INTEL_PCH_THERMAL=m
# end of Intel thermal drivers
CONFIG_WATCHDOG=yCONFIG_WATCHDOG_CORE=y
# CONFIG_WATCHDOG_NOWAYOUT is not setCONFIG_WATCHDOG_HANDLE_BOOT_ENABLED=yCONFIG_WATCHDOG_OPEN_TIMEOUT=0CONFIG_WATCHDOG_SYSFS=y
#
# Watchdog Pretimeout Governors
#
# CONFIG_WATCHDOG_PRETIMEOUT_GOV is not set
#
# Watchdog Device Drivers
#CONFIG_SOFT_WATCHDOG=mCONFIG_WDAT_WDT=m
# CONFIG_XILINX_WATCHDOG is not set
# CONFIG_ZIIRAVE_WATCHDOG is not set
# CONFIG_MLX_WDT is not set
# CONFIG_CADENCE_WATCHDOG is not set
# CONFIG_DW_WATCHDOG is not set
# CONFIG_MAX63XX_WATCHDOG is not set
# CONFIG_ACQUIRE_WDT is not set
# CONFIG_ADVANTECH_WDT is not setCONFIG_ALIM1535_WDT=mCONFIG_ALIM7101_WDT=m
# CONFIG_EBC_C384_WDT is not setCONFIG_F71808E_WDT=mCONFIG_SP5100_TCO=mCONFIG_SBC_FITPC2_WATCHDOG=m
# CONFIG_EUROTECH_WDT is not setCONFIG_IB700_WDT=mCONFIG_IBMASR=m
# CONFIG_WAFER_WDT is not setCONFIG_I6300ESB_WDT=yCONFIG_IE6XX_WDT=mCONFIG_ITCO_WDT=yCONFIG_ITCO_VENDOR_SUPPORT=yCONFIG_IT8712F_WDT=mCONFIG_IT87_WDT=mCONFIG_HP_WATCHDOG=mCONFIG_HPWDT_NMI_DECODING=y
# CONFIG_SC1200_WDT is not set
# CONFIG_PC87413_WDT is not setCONFIG_NV_TCO=m
# CONFIG_60XX_WDT is not set
# CONFIG_CPU5_WDT is not setCONFIG_SMSC_SCH311X_WDT=m
# CONFIG_SMSC37B787_WDT is not set
# CONFIG_TQMX86_WDT is not setCONFIG_VIA_WDT=mCONFIG_W83627HF_WDT=mCONFIG_W83877F_WDT=mCONFIG_W83977F_WDT=mCONFIG_MACHZ_WDT=m
# CONFIG_SBC_EPX_C3_WATCHDOG is not setCONFIG_INTEL_MEI_WDT=m
# CONFIG_NI903X_WDT is not set
# CONFIG_NIC7018_WDT is not set
# CONFIG_MEN_A21_WDT is not setCONFIG_XEN_WDT=m
#
# PCI-based Watchdog Cards
#CONFIG_PCIPCWATCHDOG=mCONFIG_WDTPCI=m
#
# USB-based Watchdog Cards
#
# CONFIG_USBPCWATCHDOG is not setCONFIG_SSB_POSSIBLE=y
# CONFIG_SSB is not setCONFIG_BCMA_POSSIBLE=yCONFIG_BCMA=mCONFIG_BCMA_HOST_PCI_POSSIBLE=yCONFIG_BCMA_HOST_PCI=y
# CONFIG_BCMA_HOST_SOC is not setCONFIG_BCMA_DRIVER_PCI=yCONFIG_BCMA_DRIVER_GMAC_CMN=yCONFIG_BCMA_DRIVER_GPIO=y
# CONFIG_BCMA_DEBUG is not set
#
# Multifunction device drivers
#CONFIG_MFD_CORE=y
# CONFIG_MFD_AS3711 is not set
# CONFIG_PMIC_ADP5520 is not set
# CONFIG_MFD_AAT2870_CORE is not set
# CONFIG_MFD_BCM590XX is not set
# CONFIG_MFD_BD9571MWV is not set
# CONFIG_MFD_AXP20X_I2C is not set
# CONFIG_MFD_MADERA is not set
# CONFIG_PMIC_DA903X is not set
# CONFIG_MFD_DA9052_SPI is not set
# CONFIG_MFD_DA9052_I2C is not set
# CONFIG_MFD_DA9055 is not set
# CONFIG_MFD_DA9062 is not set
# CONFIG_MFD_DA9063 is not set
# CONFIG_MFD_DA9150 is not set
# CONFIG_MFD_DLN2 is not set
# CONFIG_MFD_MC13XXX_SPI is not set
# CONFIG_MFD_MC13XXX_I2C is not set
# CONFIG_MFD_MP2629 is not set
# CONFIG_HTC_PASIC3 is not set
# CONFIG_HTC_I2CPLD is not set
# CONFIG_MFD_INTEL_QUARK_I2C_GPIO is not setCONFIG_LPC_ICH=yCONFIG_LPC_SCH=m
# CONFIG_INTEL_SOC_PMIC_CHTDC_TI is not setCONFIG_MFD_INTEL_LPSS=yCONFIG_MFD_INTEL_LPSS_ACPI=yCONFIG_MFD_INTEL_LPSS_PCI=y
# CONFIG_MFD_INTEL_PMC_BXT is not set
# CONFIG_MFD_INTEL_PMT is not set
# CONFIG_MFD_IQS62X is not set
# CONFIG_MFD_JANZ_CMODIO is not set
# CONFIG_MFD_KEMPLD is not set
# CONFIG_MFD_88PM800 is not set
# CONFIG_MFD_88PM805 is not set
# CONFIG_MFD_88PM860X is not set
# CONFIG_MFD_MAX14577 is not set
# CONFIG_MFD_MAX77693 is not set
# CONFIG_MFD_MAX77843 is not set
# CONFIG_MFD_MAX8907 is not set
# CONFIG_MFD_MAX8925 is not set
# CONFIG_MFD_MAX8997 is not set
# CONFIG_MFD_MAX8998 is not set
# CONFIG_MFD_MT6360 is not set
# CONFIG_MFD_MT6397 is not set
# CONFIG_MFD_MENF21BMC is not set
# CONFIG_EZX_PCAP is not set
# CONFIG_MFD_VIPERBOARD is not set
# CONFIG_MFD_RETU is not set
# CONFIG_MFD_PCF50633 is not set
# CONFIG_MFD_RDC321X is not set
# CONFIG_MFD_RT5033 is not set
# CONFIG_MFD_RC5T583 is not set
# CONFIG_MFD_SEC_CORE is not set
# CONFIG_MFD_SI476X_CORE is not setCONFIG_MFD_SM501=mCONFIG_MFD_SM501_GPIO=y
# CONFIG_MFD_SKY81452 is not set
# CONFIG_ABX500_CORE is not set
# CONFIG_MFD_SYSCON is not set
# CONFIG_MFD_TI_AM335X_TSCADC is not set
# CONFIG_MFD_LP3943 is not set
# CONFIG_MFD_LP8788 is not set
# CONFIG_MFD_TI_LMU is not set
# CONFIG_MFD_PALMAS is not set
# CONFIG_TPS6105X is not set
# CONFIG_TPS65010 is not set
# CONFIG_TPS6507X is not set
# CONFIG_MFD_TPS65086 is not set
# CONFIG_MFD_TPS65090 is not set
# CONFIG_MFD_TI_LP873X is not set
# CONFIG_MFD_TPS6586X is not set
# CONFIG_MFD_TPS65910 is not set
# CONFIG_MFD_TPS65912_I2C is not set
# CONFIG_MFD_TPS65912_SPI is not set
# CONFIG_MFD_TPS80031 is not set
# CONFIG_TWL4030_CORE is not set
# CONFIG_TWL6040_CORE is not set
# CONFIG_MFD_WL1273_CORE is not set
# CONFIG_MFD_LM3533 is not set
# CONFIG_MFD_TQMX86 is not setCONFIG_MFD_VX855=m
# CONFIG_MFD_ARIZONA_I2C is not set
# CONFIG_MFD_ARIZONA_SPI is not set
# CONFIG_MFD_WM8400 is not set
# CONFIG_MFD_WM831X_I2C is not set
# CONFIG_MFD_WM831X_SPI is not set
# CONFIG_MFD_WM8350_I2C is not set
# CONFIG_MFD_WM8994 is not set
# CONFIG_MFD_INTEL_M10_BMC is not set
# end of Multifunction device drivers
# CONFIG_REGULATOR is not setCONFIG_RC_CORE=mCONFIG_RC_MAP=mCONFIG_LIRC=yCONFIG_RC_DECODERS=yCONFIG_IR_NEC_DECODER=mCONFIG_IR_RC5_DECODER=mCONFIG_IR_RC6_DECODER=mCONFIG_IR_JVC_DECODER=mCONFIG_IR_SONY_DECODER=mCONFIG_IR_SANYO_DECODER=m
# CONFIG_IR_SHARP_DECODER is not setCONFIG_IR_MCE_KBD_DECODER=m
# CONFIG_IR_XMP_DECODER is not setCONFIG_IR_IMON_DECODER=m
# CONFIG_IR_RCMM_DECODER is not setCONFIG_RC_DEVICES=y
# CONFIG_RC_ATI_REMOTE is not setCONFIG_IR_ENE=m
# CONFIG_IR_IMON is not set
# CONFIG_IR_IMON_RAW is not set
# CONFIG_IR_MCEUSB is not setCONFIG_IR_ITE_CIR=mCONFIG_IR_FINTEK=mCONFIG_IR_NUVOTON=m
# CONFIG_IR_REDRAT3 is not set
# CONFIG_IR_STREAMZAP is not setCONFIG_IR_WINBOND_CIR=m
# CONFIG_IR_IGORPLUGUSB is not set
# CONFIG_IR_IGUANA is not set
# CONFIG_IR_TTUSBIR is not set
# CONFIG_RC_LOOPBACK is not setCONFIG_IR_SERIAL=mCONFIG_IR_SERIAL_TRANSMITTER=yCONFIG_IR_SIR=m
# CONFIG_RC_XBOX_DVD is not set
# CONFIG_IR_TOY is not setCONFIG_MEDIA_CEC_SUPPORT=y
# CONFIG_CEC_CH7322 is not set
# CONFIG_CEC_SECO is not set
# CONFIG_USB_PULSE8_CEC is not set
# CONFIG_USB_RAINSHADOW_CEC is not setCONFIG_MEDIA_SUPPORT=m
# CONFIG_MEDIA_SUPPORT_FILTER is not set
# CONFIG_MEDIA_SUBDRV_AUTOSELECT is not set
#
# Media device types
#CONFIG_MEDIA_CAMERA_SUPPORT=yCONFIG_MEDIA_ANALOG_TV_SUPPORT=yCONFIG_MEDIA_DIGITAL_TV_SUPPORT=yCONFIG_MEDIA_RADIO_SUPPORT=yCONFIG_MEDIA_SDR_SUPPORT=yCONFIG_MEDIA_PLATFORM_SUPPORT=yCONFIG_MEDIA_TEST_SUPPORT=y
# end of Media device types
#
# Media core support
#CONFIG_VIDEO_DEV=mCONFIG_MEDIA_CONTROLLER=yCONFIG_DVB_CORE=m
# end of Media core support
#
# Video4Linux options
#CONFIG_VIDEO_V4L2=mCONFIG_VIDEO_V4L2_I2C=yCONFIG_VIDEO_V4L2_SUBDEV_API=y
# CONFIG_VIDEO_ADV_DEBUG is not set
# CONFIG_VIDEO_FIXED_MINOR_RANGES is not set
# end of Video4Linux options
#
# Media controller options
#
# CONFIG_MEDIA_CONTROLLER_DVB is not set
# end of Media controller options
#
# Digital TV options
#
# CONFIG_DVB_MMAP is not setCONFIG_DVB_NET=yCONFIG_DVB_MAX_ADAPTERS=16CONFIG_DVB_DYNAMIC_MINORS=y
# CONFIG_DVB_DEMUX_SECTION_LOSS_LOG is not set
# CONFIG_DVB_ULE_DEBUG is not set
# end of Digital TV options
#
# Media drivers
#
# CONFIG_MEDIA_USB_SUPPORT is not set
# CONFIG_MEDIA_PCI_SUPPORT is not setCONFIG_RADIO_ADAPTERS=y
# CONFIG_RADIO_SI470X is not set
# CONFIG_RADIO_SI4713 is not set
# CONFIG_USB_MR800 is not set
# CONFIG_USB_DSBR is not set
# CONFIG_RADIO_MAXIRADIO is not set
# CONFIG_RADIO_SHARK is not set
# CONFIG_RADIO_SHARK2 is not set
# CONFIG_USB_KEENE is not set
# CONFIG_USB_RAREMONO is not set
# CONFIG_USB_MA901 is not set
# CONFIG_RADIO_TEA5764 is not set
# CONFIG_RADIO_SAA7706H is not set
# CONFIG_RADIO_TEF6862 is not set
# CONFIG_RADIO_WL1273 is not setCONFIG_VIDEOBUF2_CORE=mCONFIG_VIDEOBUF2_V4L2=mCONFIG_VIDEOBUF2_MEMOPS=mCONFIG_VIDEOBUF2_VMALLOC=m
# CONFIG_V4L_PLATFORM_DRIVERS is not set
# CONFIG_V4L_MEM2MEM_DRIVERS is not set
# CONFIG_DVB_PLATFORM_DRIVERS is not set
# CONFIG_SDR_PLATFORM_DRIVERS is not set
#
# MMC/SDIO DVB adapters
#
# CONFIG_SMS_SDIO_DRV is not set
# CONFIG_V4L_TEST_DRIVERS is not set
# CONFIG_DVB_TEST_DRIVERS is not set
#
# FireWire (IEEE 1394) Adapters
#
# CONFIG_DVB_FIREDTV is not set
# end of Media drivers
#
# Media ancillary drivers
#CONFIG_MEDIA_ATTACH=yCONFIG_VIDEO_IR_I2C=m
#
# Audio decoders, processors and mixers
#
# CONFIG_VIDEO_TVAUDIO is not set
# CONFIG_VIDEO_TDA7432 is not set
# CONFIG_VIDEO_TDA9840 is not set
# CONFIG_VIDEO_TEA6415C is not set
# CONFIG_VIDEO_TEA6420 is not set
# CONFIG_VIDEO_MSP3400 is not set
# CONFIG_VIDEO_CS3308 is not set
# CONFIG_VIDEO_CS5345 is not set
# CONFIG_VIDEO_CS53L32A is not set
# CONFIG_VIDEO_TLV320AIC23B is not set
# CONFIG_VIDEO_UDA1342 is not set
# CONFIG_VIDEO_WM8775 is not set
# CONFIG_VIDEO_WM8739 is not set
# CONFIG_VIDEO_VP27SMPX is not set
# CONFIG_VIDEO_SONY_BTF_MPX is not set
# end of Audio decoders, processors and mixers
#
# RDS decoders
#
# CONFIG_VIDEO_SAA6588 is not set
# end of RDS decoders
#
# Video decoders
#
# CONFIG_VIDEO_ADV7180 is not set
# CONFIG_VIDEO_ADV7183 is not set
# CONFIG_VIDEO_ADV7604 is not set
# CONFIG_VIDEO_ADV7842 is not set
# CONFIG_VIDEO_BT819 is not set
# CONFIG_VIDEO_BT856 is not set
# CONFIG_VIDEO_BT866 is not set
# CONFIG_VIDEO_KS0127 is not set
# CONFIG_VIDEO_ML86V7667 is not set
# CONFIG_VIDEO_SAA7110 is not set
# CONFIG_VIDEO_SAA711X is not set
# CONFIG_VIDEO_TC358743 is not set
# CONFIG_VIDEO_TVP514X is not set
# CONFIG_VIDEO_TVP5150 is not set
# CONFIG_VIDEO_TVP7002 is not set
# CONFIG_VIDEO_TW2804 is not set
# CONFIG_VIDEO_TW9903 is not set
# CONFIG_VIDEO_TW9906 is not set
# CONFIG_VIDEO_TW9910 is not set
# CONFIG_VIDEO_VPX3220 is not set
#
# Video and audio decoders
#
# CONFIG_VIDEO_SAA717X is not set
# CONFIG_VIDEO_CX25840 is not set
# end of Video decoders
#
# Video encoders
#
# CONFIG_VIDEO_SAA7127 is not set
# CONFIG_VIDEO_SAA7185 is not set
# CONFIG_VIDEO_ADV7170 is not set
# CONFIG_VIDEO_ADV7175 is not set
# CONFIG_VIDEO_ADV7343 is not set
# CONFIG_VIDEO_ADV7393 is not set
# CONFIG_VIDEO_ADV7511 is not set
# CONFIG_VIDEO_AD9389B is not set
# CONFIG_VIDEO_AK881X is not set
# CONFIG_VIDEO_THS8200 is not set
# end of Video encoders
#
# Video improvement chips
#
# CONFIG_VIDEO_UPD64031A is not set
# CONFIG_VIDEO_UPD64083 is not set
# end of Video improvement chips
#
# Audio/Video compression chips
#
# CONFIG_VIDEO_SAA6752HS is not set
# end of Audio/Video compression chips
#
# SDR tuner chips
#
# CONFIG_SDR_MAX2175 is not set
# end of SDR tuner chips
#
# Miscellaneous helper chips
#
# CONFIG_VIDEO_THS7303 is not set
# CONFIG_VIDEO_M52790 is not set
# CONFIG_VIDEO_I2C is not set
# CONFIG_VIDEO_ST_MIPID02 is not set
# end of Miscellaneous helper chips
#
# Camera sensor devices
#
# CONFIG_VIDEO_HI556 is not set
# CONFIG_VIDEO_IMX214 is not set
# CONFIG_VIDEO_IMX219 is not set
# CONFIG_VIDEO_IMX258 is not set
# CONFIG_VIDEO_IMX274 is not set
# CONFIG_VIDEO_IMX290 is not set
# CONFIG_VIDEO_IMX319 is not set
# CONFIG_VIDEO_IMX355 is not set
# CONFIG_VIDEO_OV02A10 is not set
# CONFIG_VIDEO_OV2640 is not set
# CONFIG_VIDEO_OV2659 is not set
# CONFIG_VIDEO_OV2680 is not set
# CONFIG_VIDEO_OV2685 is not set
# CONFIG_VIDEO_OV2740 is not set
# CONFIG_VIDEO_OV5647 is not set
# CONFIG_VIDEO_OV5648 is not set
# CONFIG_VIDEO_OV6650 is not set
# CONFIG_VIDEO_OV5670 is not set
# CONFIG_VIDEO_OV5675 is not set
# CONFIG_VIDEO_OV5695 is not set
# CONFIG_VIDEO_OV7251 is not set
# CONFIG_VIDEO_OV772X is not set
# CONFIG_VIDEO_OV7640 is not set
# CONFIG_VIDEO_OV7670 is not set
# CONFIG_VIDEO_OV7740 is not set
# CONFIG_VIDEO_OV8856 is not set
# CONFIG_VIDEO_OV8865 is not set
# CONFIG_VIDEO_OV9640 is not set
# CONFIG_VIDEO_OV9650 is not set
# CONFIG_VIDEO_OV9734 is not set
# CONFIG_VIDEO_OV13858 is not set
# CONFIG_VIDEO_VS6624 is not set
# CONFIG_VIDEO_MT9M001 is not set
# CONFIG_VIDEO_MT9M032 is not set
# CONFIG_VIDEO_MT9M111 is not set
# CONFIG_VIDEO_MT9P031 is not set
# CONFIG_VIDEO_MT9T001 is not set
# CONFIG_VIDEO_MT9T112 is not set
# CONFIG_VIDEO_MT9V011 is not set
# CONFIG_VIDEO_MT9V032 is not set
# CONFIG_VIDEO_MT9V111 is not set
# CONFIG_VIDEO_SR030PC30 is not set
# CONFIG_VIDEO_NOON010PC30 is not set
# CONFIG_VIDEO_M5MOLS is not set
# CONFIG_VIDEO_RDACM20 is not set
# CONFIG_VIDEO_RDACM21 is not set
# CONFIG_VIDEO_RJ54N1 is not set
# CONFIG_VIDEO_S5K6AA is not set
# CONFIG_VIDEO_S5K6A3 is not set
# CONFIG_VIDEO_S5K4ECGX is not set
# CONFIG_VIDEO_S5K5BAF is not set
# CONFIG_VIDEO_CCS is not set
# CONFIG_VIDEO_ET8EK8 is not set
# CONFIG_VIDEO_S5C73M3 is not set
# end of Camera sensor devices
#
# Lens drivers
#
# CONFIG_VIDEO_AD5820 is not set
# CONFIG_VIDEO_AK7375 is not set
# CONFIG_VIDEO_DW9714 is not set
# CONFIG_VIDEO_DW9768 is not set
# CONFIG_VIDEO_DW9807_VCM is not set
# end of Lens drivers
#
# Flash devices
#
# CONFIG_VIDEO_ADP1653 is not set
# CONFIG_VIDEO_LM3560 is not set
# CONFIG_VIDEO_LM3646 is not set
# end of Flash devices
#
# SPI helper chips
#
# CONFIG_VIDEO_GS1662 is not set
# end of SPI helper chips
#
# Media SPI Adapters
#CONFIG_CXD2880_SPI_DRV=m
# end of Media SPI Adapters
CONFIG_MEDIA_TUNER=m
#
# Customize TV tuners
#CONFIG_MEDIA_TUNER_SIMPLE=mCONFIG_MEDIA_TUNER_TDA18250=mCONFIG_MEDIA_TUNER_TDA8290=mCONFIG_MEDIA_TUNER_TDA827X=mCONFIG_MEDIA_TUNER_TDA18271=mCONFIG_MEDIA_TUNER_TDA9887=mCONFIG_MEDIA_TUNER_TEA5761=mCONFIG_MEDIA_TUNER_TEA5767=mCONFIG_MEDIA_TUNER_MSI001=mCONFIG_MEDIA_TUNER_MT20XX=mCONFIG_MEDIA_TUNER_MT2060=mCONFIG_MEDIA_TUNER_MT2063=mCONFIG_MEDIA_TUNER_MT2266=mCONFIG_MEDIA_TUNER_MT2131=mCONFIG_MEDIA_TUNER_QT1010=mCONFIG_MEDIA_TUNER_XC2028=mCONFIG_MEDIA_TUNER_XC5000=mCONFIG_MEDIA_TUNER_XC4000=mCONFIG_MEDIA_TUNER_MXL5005S=mCONFIG_MEDIA_TUNER_MXL5007T=mCONFIG_MEDIA_TUNER_MC44S803=mCONFIG_MEDIA_TUNER_MAX2165=mCONFIG_MEDIA_TUNER_TDA18218=mCONFIG_MEDIA_TUNER_FC0011=mCONFIG_MEDIA_TUNER_FC0012=mCONFIG_MEDIA_TUNER_FC0013=mCONFIG_MEDIA_TUNER_TDA18212=mCONFIG_MEDIA_TUNER_E4000=mCONFIG_MEDIA_TUNER_FC2580=mCONFIG_MEDIA_TUNER_M88RS6000T=mCONFIG_MEDIA_TUNER_TUA9001=mCONFIG_MEDIA_TUNER_SI2157=mCONFIG_MEDIA_TUNER_IT913X=mCONFIG_MEDIA_TUNER_R820T=mCONFIG_MEDIA_TUNER_MXL301RF=mCONFIG_MEDIA_TUNER_QM1D1C0042=mCONFIG_MEDIA_TUNER_QM1D1B0004=m
# end of Customize TV tuners
#
# Customise DVB Frontends
#
#
# Multistandard (satellite) frontends
#CONFIG_DVB_STB0899=mCONFIG_DVB_STB6100=m
CONFIG_DVB_STV090x=mCONFIG_DVB_STV0910=m
CONFIG_DVB_STV6110x=mCONFIG_DVB_STV6111=mCONFIG_DVB_MXL5XX=mCONFIG_DVB_M88DS3103=m
#
# Multistandard (cable + terrestrial) frontends
#CONFIG_DVB_DRXK=mCONFIG_DVB_TDA18271C2DD=mCONFIG_DVB_SI2165=mCONFIG_DVB_MN88472=mCONFIG_DVB_MN88473=m
#
# DVB-S (satellite) frontends
#CONFIG_DVB_CX24110=mCONFIG_DVB_CX24123=mCONFIG_DVB_MT312=mCONFIG_DVB_ZL10036=mCONFIG_DVB_ZL10039=mCONFIG_DVB_S5H1420=mCONFIG_DVB_STV0288=mCONFIG_DVB_STB6000=mCONFIG_DVB_STV0299=mCONFIG_DVB_STV6110=mCONFIG_DVB_STV0900=mCONFIG_DVB_TDA8083=mCONFIG_DVB_TDA10086=mCONFIG_DVB_TDA8261=mCONFIG_DVB_VES1X93=mCONFIG_DVB_TUNER_ITD1000=mCONFIG_DVB_TUNER_CX24113=mCONFIG_DVB_TDA826X=mCONFIG_DVB_TUA6100=mCONFIG_DVB_CX24116=mCONFIG_DVB_CX24117=mCONFIG_DVB_CX24120=mCONFIG_DVB_SI21XX=mCONFIG_DVB_TS2020=mCONFIG_DVB_DS3000=mCONFIG_DVB_MB86A16=mCONFIG_DVB_TDA10071=m
#
# DVB-T (terrestrial) frontends
#CONFIG_DVB_SP8870=mCONFIG_DVB_SP887X=mCONFIG_DVB_CX22700=mCONFIG_DVB_CX22702=mCONFIG_DVB_S5H1432=mCONFIG_DVB_DRXD=mCONFIG_DVB_L64781=mCONFIG_DVB_TDA1004X=mCONFIG_DVB_NXT6000=mCONFIG_DVB_MT352=mCONFIG_DVB_ZL10353=mCONFIG_DVB_DIB3000MB=mCONFIG_DVB_DIB3000MC=mCONFIG_DVB_DIB7000M=mCONFIG_DVB_DIB7000P=mCONFIG_DVB_DIB9000=mCONFIG_DVB_TDA10048=mCONFIG_DVB_AF9013=mCONFIG_DVB_EC100=mCONFIG_DVB_STV0367=mCONFIG_DVB_CXD2820R=mCONFIG_DVB_CXD2841ER=mCONFIG_DVB_RTL2830=mCONFIG_DVB_RTL2832=mCONFIG_DVB_RTL2832_SDR=mCONFIG_DVB_SI2168=mCONFIG_DVB_ZD1301_DEMOD=mCONFIG_DVB_CXD2880=m
#
# DVB-C (cable) frontends
#CONFIG_DVB_VES1820=mCONFIG_DVB_TDA10021=mCONFIG_DVB_TDA10023=mCONFIG_DVB_STV0297=m
#
# ATSC (North American/Korean Terrestrial/Cable DTV) frontends #CONFIG_DVB_NXT200X=mCONFIG_DVB_OR51211=mCONFIG_DVB_OR51132=mCONFIG_DVB_BCM3510=mCONFIG_DVB_LGDT330X=mCONFIG_DVB_LGDT3305=mCONFIG_DVB_LGDT3306A=mCONFIG_DVB_LG2160=mCONFIG_DVB_S5H1409=mCONFIG_DVB_AU8522=mCONFIG_DVB_AU8522_DTV=mCONFIG_DVB_AU8522_V4L=mCONFIG_DVB_S5H1411=mCONFIG_DVB_MXL692=m
#
# ISDB-T (terrestrial) frontends
#CONFIG_DVB_S921=mCONFIG_DVB_DIB8000=mCONFIG_DVB_MB86A20S=m
#
# ISDB-S (satellite) & ISDB-T (terrestrial) frontends #CONFIG_DVB_TC90522=mCONFIG_DVB_MN88443X=m
#
# Digital terrestrial only tuners/PLL
#CONFIG_DVB_PLL=mCONFIG_DVB_TUNER_DIB0070=mCONFIG_DVB_TUNER_DIB0090=m
#
# SEC control devices for DVB-S
#CONFIG_DVB_DRX39XYJ=mCONFIG_DVB_LNBH25=mCONFIG_DVB_LNBH29=mCONFIG_DVB_LNBP21=mCONFIG_DVB_LNBP22=mCONFIG_DVB_ISL6405=mCONFIG_DVB_ISL6421=mCONFIG_DVB_ISL6423=mCONFIG_DVB_A8293=mCONFIG_DVB_LGS8GL5=mCONFIG_DVB_LGS8GXX=mCONFIG_DVB_ATBM8830=m
CONFIG_DVB_TDA665x=mCONFIG_DVB_IX2505V=mCONFIG_DVB_M88RS2000=mCONFIG_DVB_AF9033=mCONFIG_DVB_HORUS3A=mCONFIG_DVB_ASCOT2E=mCONFIG_DVB_HELENE=m
#
# Common Interface (EN50221) controller drivers
#CONFIG_DVB_CXD2099=mCONFIG_DVB_SP2=m
# end of Customise DVB Frontends
#
# Tools to develop new frontends
#
# CONFIG_DVB_DUMMY_FE is not set
# end of Media ancillary drivers
#
# Graphics support
#
# CONFIG_AGP is not setCONFIG_INTEL_GTT=mCONFIG_VGA_ARB=yCONFIG_VGA_ARB_MAX_GPUS=64CONFIG_VGA_SWITCHEROO=yCONFIG_DRM=mCONFIG_DRM_MIPI_DSI=yCONFIG_DRM_DP_AUX_CHARDEV=y
# CONFIG_DRM_DEBUG_SELFTEST is not setCONFIG_DRM_KMS_HELPER=mCONFIG_DRM_FBDEV_EMULATION=yCONFIG_DRM_FBDEV_OVERALLOC=100CONFIG_DRM_LOAD_EDID_FIRMWARE=y
# CONFIG_DRM_DP_CEC is not setCONFIG_DRM_TTM=mCONFIG_DRM_VRAM_HELPER=mCONFIG_DRM_TTM_HELPER=mCONFIG_DRM_GEM_SHMEM_HELPER=y
#
# I2C encoder or helper chips
#CONFIG_DRM_I2C_CH7006=mCONFIG_DRM_I2C_SIL164=m
# CONFIG_DRM_I2C_NXP_TDA998X is not set
# CONFIG_DRM_I2C_NXP_TDA9950 is not set
# end of I2C encoder or helper chips
#
# ARM devices
#
# end of ARM devices
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_AMDGPU is not set
# CONFIG_DRM_NOUVEAU is not setCONFIG_DRM_I915=mCONFIG_DRM_I915_FORCE_PROBE=""CONFIG_DRM_I915_CAPTURE_ERROR=yCONFIG_DRM_I915_COMPRESS_ERROR=yCONFIG_DRM_I915_USERPTR=yCONFIG_DRM_I915_GVT=yCONFIG_DRM_I915_GVT_KVMGT=mCONFIG_DRM_I915_REQUEST_TIMEOUT=20000CONFIG_DRM_I915_FENCE_TIMEOUT=10000CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=250CONFIG_DRM_I915_HEARTBEAT_INTERVAL=2500CONFIG_DRM_I915_PREEMPT_TIMEOUT=640CONFIG_DRM_I915_MAX_REQUEST_BUSYWAIT=8000CONFIG_DRM_I915_STOP_TIMEOUT=100CONFIG_DRM_I915_TIMESLICE_DURATION=1
# CONFIG_DRM_VGEM is not set
# CONFIG_DRM_VKMS is not set
# CONFIG_DRM_VMWGFX is not setCONFIG_DRM_GMA500=m
# CONFIG_DRM_UDL is not setCONFIG_DRM_AST=mCONFIG_DRM_MGAG200=mCONFIG_DRM_QXL=mCONFIG_DRM_BOCHS=mCONFIG_DRM_VIRTIO_GPU=mCONFIG_DRM_PANEL=y
#
# Display Panels
#
# CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN is not set
# end of Display Panels
CONFIG_DRM_BRIDGE=yCONFIG_DRM_PANEL_BRIDGE=y
#
# Display Interface Bridges
#
# CONFIG_DRM_ANALOGIX_ANX78XX is not set
# end of Display Interface Bridges
# CONFIG_DRM_ETNAVIV is not setCONFIG_DRM_CIRRUS_QEMU=m
# CONFIG_DRM_GM12U320 is not set
# CONFIG_DRM_SIMPLEDRM is not set
# CONFIG_TINYDRM_HX8357D is not set
# CONFIG_TINYDRM_ILI9225 is not set
# CONFIG_TINYDRM_ILI9341 is not set
# CONFIG_TINYDRM_ILI9486 is not set
# CONFIG_TINYDRM_MI0283QT is not set
# CONFIG_TINYDRM_REPAPER is not set
# CONFIG_TINYDRM_ST7586 is not set
# CONFIG_TINYDRM_ST7735R is not set
# CONFIG_DRM_XEN_FRONTEND is not set
# CONFIG_DRM_VBOXVIDEO is not set
# CONFIG_DRM_GUD is not set
# CONFIG_DRM_LEGACY is not setCONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y
#
# Frame buffer Devices
#CONFIG_FB_CMDLINE=yCONFIG_FB_NOTIFY=yCONFIG_FB=y
# CONFIG_FIRMWARE_EDID is not setCONFIG_FB_BOOT_VESA_SUPPORT=yCONFIG_FB_CFB_FILLRECT=yCONFIG_FB_CFB_COPYAREA=yCONFIG_FB_CFB_IMAGEBLIT=yCONFIG_FB_SYS_FILLRECT=mCONFIG_FB_SYS_COPYAREA=mCONFIG_FB_SYS_IMAGEBLIT=m
# CONFIG_FB_FOREIGN_ENDIAN is not setCONFIG_FB_SYS_FOPS=mCONFIG_FB_DEFERRED_IO=y
# CONFIG_FB_MODE_HELPERS is not setCONFIG_FB_TILEBLITTING=y
#
# Frame buffer hardware drivers
#
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not set
# CONFIG_FB_UVESA is not setCONFIG_FB_VESA=yCONFIG_FB_EFI=y
# CONFIG_FB_N411 is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_OPENCORES is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I740 is not set
# CONFIG_FB_LE80578 is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_VIA is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VT8623 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_CARMINE is not set
# CONFIG_FB_SM501 is not set
# CONFIG_FB_SMSCUFX is not set
# CONFIG_FB_UDL is not set
# CONFIG_FB_IBM_GXT4500 is not set
# CONFIG_FB_VIRTUAL is not set
# CONFIG_XEN_FBDEV_FRONTEND is not set
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_MB862XX is not setCONFIG_FB_HYPERV=m
# CONFIG_FB_SIMPLE is not set
# CONFIG_FB_SM712 is not set
# end of Frame buffer Devices
#
# Backlight & LCD device support
#CONFIG_LCD_CLASS_DEVICE=m
# CONFIG_LCD_L4F00242T03 is not set
# CONFIG_LCD_LMS283GF05 is not set
# CONFIG_LCD_LTV350QV is not set
# CONFIG_LCD_ILI922X is not set
# CONFIG_LCD_ILI9320 is not set
# CONFIG_LCD_TDO24M is not set
# CONFIG_LCD_VGG2432A4 is not setCONFIG_LCD_PLATFORM=m
# CONFIG_LCD_AMS369FG06 is not set
# CONFIG_LCD_LMS501KF03 is not set
# CONFIG_LCD_HX8357 is not set
# CONFIG_LCD_OTM3225A is not setCONFIG_BACKLIGHT_CLASS_DEVICE=y
# CONFIG_BACKLIGHT_KTD253 is not set
# CONFIG_BACKLIGHT_PWM is not setCONFIG_BACKLIGHT_APPLE=m
# CONFIG_BACKLIGHT_QCOM_WLED is not set
# CONFIG_BACKLIGHT_SAHARA is not set
# CONFIG_BACKLIGHT_ADP8860 is not set
# CONFIG_BACKLIGHT_ADP8870 is not set
# CONFIG_BACKLIGHT_LM3630A is not set
# CONFIG_BACKLIGHT_LM3639 is not setCONFIG_BACKLIGHT_LP855X=m
# CONFIG_BACKLIGHT_GPIO is not set
# CONFIG_BACKLIGHT_LV5207LP is not set
# CONFIG_BACKLIGHT_BD6107 is not set
# CONFIG_BACKLIGHT_ARCXCNN is not set
# end of Backlight & LCD device support
CONFIG_HDMI=y
#
# Console display driver support
#CONFIG_VGA_CONSOLE=yCONFIG_DUMMY_CONSOLE=y CONFIG_DUMMY_CONSOLE_COLUMNS=80 CONFIG_DUMMY_CONSOLE_ROWS=25 CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
# CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER is not set
# end of Console display driver support
CONFIG_LOGO=y
# CONFIG_LOGO_LINUX_MONO is not set
# CONFIG_LOGO_LINUX_VGA16 is not setCONFIG_LOGO_LINUX_CLUT224=y
# end of Graphics support
# CONFIG_SOUND is not set
#
# HID support
#CONFIG_HID=yCONFIG_HID_BATTERY_STRENGTH=yCONFIG_HIDRAW=yCONFIG_UHID=mCONFIG_HID_GENERIC=y
#
# Special HID drivers
#CONFIG_HID_A4TECH=m
# CONFIG_HID_ACCUTOUCH is not setCONFIG_HID_ACRUX=m
# CONFIG_HID_ACRUX_FF is not setCONFIG_HID_APPLE=m
# CONFIG_HID_APPLEIR is not setCONFIG_HID_ASUS=mCONFIG_HID_AUREAL=mCONFIG_HID_BELKIN=m
# CONFIG_HID_BETOP_FF is not set
# CONFIG_HID_BIGBEN_FF is not setCONFIG_HID_CHERRY=mCONFIG_HID_CHICONY=m
# CONFIG_HID_CORSAIR is not set
# CONFIG_HID_COUGAR is not set
# CONFIG_HID_MACALLY is not setCONFIG_HID_CMEDIA=m
# CONFIG_HID_CP2112 is not set
# CONFIG_HID_CREATIVE_SB0540 is not setCONFIG_HID_CYPRESS=mCONFIG_HID_DRAGONRISE=m
# CONFIG_DRAGONRISE_FF is not set
# CONFIG_HID_EMS_FF is not set
# CONFIG_HID_ELAN is not setCONFIG_HID_ELECOM=m
# CONFIG_HID_ELO is not setCONFIG_HID_EZKEY=mCONFIG_HID_GEMBIRD=mCONFIG_HID_GFRM=m
# CONFIG_HID_GLORIOUS is not set
# CONFIG_HID_HOLTEK is not set
# CONFIG_HID_VIVALDI is not set
# CONFIG_HID_GT683R is not setCONFIG_HID_KEYTOUCH=mCONFIG_HID_KYE=m
# CONFIG_HID_UCLOGIC is not setCONFIG_HID_WALTOP=m
# CONFIG_HID_VIEWSONIC is not setCONFIG_HID_GYRATION=mCONFIG_HID_ICADE=mCONFIG_HID_ITE=mCONFIG_HID_JABRA=mCONFIG_HID_TWINHAN=mCONFIG_HID_KENSINGTON=mCONFIG_HID_LCPOWER=mCONFIG_HID_LED=mCONFIG_HID_LENOVO=mCONFIG_HID_LOGITECH=mCONFIG_HID_LOGITECH_DJ=mCONFIG_HID_LOGITECH_HIDPP=m
# CONFIG_LOGITECH_FF is not set
# CONFIG_LOGIRUMBLEPAD2_FF is not set
# CONFIG_LOGIG940_FF is not set
# CONFIG_LOGIWHEELS_FF is not setCONFIG_HID_MAGICMOUSE=y
# CONFIG_HID_MALTRON is not set
# CONFIG_HID_MAYFLASH is not set
# CONFIG_HID_REDRAGON is not setCONFIG_HID_MICROSOFT=mCONFIG_HID_MONTEREY=mCONFIG_HID_MULTITOUCH=mCONFIG_HID_NTI=m
# CONFIG_HID_NTRIG is not setCONFIG_HID_ORTEK=mCONFIG_HID_PANTHERLORD=m
# CONFIG_PANTHERLORD_FF is not set
# CONFIG_HID_PENMOUNT is not setCONFIG_HID_PETALYNX=mCONFIG_HID_PICOLCD=mCONFIG_HID_PICOLCD_FB=yCONFIG_HID_PICOLCD_BACKLIGHT=yCONFIG_HID_PICOLCD_LCD=yCONFIG_HID_PICOLCD_LEDS=yCONFIG_HID_PICOLCD_CIR=yCONFIG_HID_PLANTRONICS=m
# CONFIG_HID_PLAYSTATION is not setCONFIG_HID_PRIMAX=m
# CONFIG_HID_RETRODE is not set
# CONFIG_HID_ROCCAT is not setCONFIG_HID_SAITEK=mCONFIG_HID_SAMSUNG=m
# CONFIG_HID_SONY is not setCONFIG_HID_SPEEDLINK=m
# CONFIG_HID_STEAM is not setCONFIG_HID_STEELSERIES=mCONFIG_HID_SUNPLUS=mCONFIG_HID_RMI=mCONFIG_HID_GREENASIA=m
# CONFIG_GREENASIA_FF is not setCONFIG_HID_HYPERV_MOUSE=mCONFIG_HID_SMARTJOYPLUS=m
# CONFIG_SMARTJOYPLUS_FF is not setCONFIG_HID_TIVO=mCONFIG_HID_TOPSEED=mCONFIG_HID_THINGM=mCONFIG_HID_THRUSTMASTER=m
# CONFIG_THRUSTMASTER_FF is not set
# CONFIG_HID_UDRAW_PS3 is not set
# CONFIG_HID_U2FZERO is not set
# CONFIG_HID_WACOM is not setCONFIG_HID_WIIMOTE=mCONFIG_HID_XINMO=mCONFIG_HID_ZEROPLUS=m
# CONFIG_ZEROPLUS_FF is not setCONFIG_HID_ZYDACRON=mCONFIG_HID_SENSOR_HUB=yCONFIG_HID_SENSOR_CUSTOM_SENSOR=mCONFIG_HID_ALPS=m
# CONFIG_HID_MCP2221 is not set
# end of Special HID drivers
#
# USB HID support
#CONFIG_USB_HID=y
# CONFIG_HID_PID is not set
# CONFIG_USB_HIDDEV is not set
# end of USB HID support
#
# I2C HID support
#
# CONFIG_I2C_HID_ACPI is not set
# end of I2C HID support
#
# Intel ISH HID support
#CONFIG_INTEL_ISH_HID=m
# CONFIG_INTEL_ISH_FIRMWARE_DOWNLOADER is not set
# end of Intel ISH HID support
#
# AMD SFH HID Support
#
# CONFIG_AMD_SFH_HID is not set
# end of AMD SFH HID Support # end of HID support
CONFIG_USB_OHCI_LITTLE_ENDIAN=yCONFIG_USB_SUPPORT=yCONFIG_USB_COMMON=y
# CONFIG_USB_LED_TRIG is not set
# CONFIG_USB_ULPI_BUS is not set
# CONFIG_USB_CONN_GPIO is not setCONFIG_USB_ARCH_HAS_HCD=yCONFIG_USB=yCONFIG_USB_PCI=yCONFIG_USB_ANNOUNCE_NEW_DEVICES=y
#
# Miscellaneous USB options
#CONFIG_USB_DEFAULT_PERSIST=y
# CONFIG_USB_FEW_INIT_RETRIES is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_OTG is not set
# CONFIG_USB_OTG_PRODUCTLIST is not setCONFIG_USB_LEDS_TRIGGER_USBPORT=yCONFIG_USB_AUTOSUSPEND_DELAY=2CONFIG_USB_MON=y
#
# USB Host Controller Drivers
#
# CONFIG_USB_C67X00_HCD is not setCONFIG_USB_XHCI_HCD=y
# CONFIG_USB_XHCI_DBGCAP is not setCONFIG_USB_XHCI_PCI=y
# CONFIG_USB_XHCI_PCI_RENESAS is not set
# CONFIG_USB_XHCI_PLATFORM is not setCONFIG_USB_EHCI_HCD=yCONFIG_USB_EHCI_ROOT_HUB_TT=yCONFIG_USB_EHCI_TT_NEWSCHED=yCONFIG_USB_EHCI_PCI=y
# CONFIG_USB_EHCI_FSL is not set
# CONFIG_USB_EHCI_HCD_PLATFORM is not set
# CONFIG_USB_OXU210HP_HCD is not set
# CONFIG_USB_ISP116X_HCD is not set
# CONFIG_USB_FOTG210_HCD is not set
# CONFIG_USB_MAX3421_HCD is not setCONFIG_USB_OHCI_HCD=yCONFIG_USB_OHCI_HCD_PCI=y
# CONFIG_USB_OHCI_HCD_PLATFORM is not setCONFIG_USB_UHCI_HCD=y
# CONFIG_USB_SL811_HCD is not set
# CONFIG_USB_R8A66597_HCD is not set
# CONFIG_USB_HCD_BCMA is not set
# CONFIG_USB_HCD_TEST_MODE is not set
#
# USB Device Class drivers
#
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set
# CONFIG_USB_WDM is not set
# CONFIG_USB_TMC is not set
#
# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may #
#
# also be needed; see USB_STORAGE Help for more info # CONFIG_USB_STORAGE=m # CONFIG_USB_STORAGE_DEBUG is not set # CONFIG_USB_STORAGE_REALTEK is not set # CONFIG_USB_STORAGE_DATAFAB is not set # CONFIG_USB_STORAGE_FREECOM is not set # CONFIG_USB_STORAGE_ISD200 is not set # CONFIG_USB_STORAGE_USBAT is not set # CONFIG_USB_STORAGE_SDDR09 is not set # CONFIG_USB_STORAGE_SDDR55 is not set # CONFIG_USB_STORAGE_JUMPSHOT is not set # CONFIG_USB_STORAGE_ALAUDA is not set # CONFIG_USB_STORAGE_ONETOUCH is not set # CONFIG_USB_STORAGE_KARMA is not set # CONFIG_USB_STORAGE_CYPRESS_ATACB is not set # CONFIG_USB_STORAGE_ENE_UB6250 is not set # CONFIG_USB_UAS is not set
#
# USB Imaging devices
#
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USBIP_CORE is not set
# CONFIG_USB_CDNS_SUPPORT is not set
# CONFIG_USB_MUSB_HDRC is not set
# CONFIG_USB_DWC3 is not set
# CONFIG_USB_DWC2 is not set
# CONFIG_USB_CHIPIDEA is not set
# CONFIG_USB_ISP1760 is not set
#
# USB port drivers
#
# CONFIG_USB_USS720 is not setCONFIG_USB_SERIAL=mCONFIG_USB_SERIAL_GENERIC=y
# CONFIG_USB_SERIAL_SIMPLE is not set
# CONFIG_USB_SERIAL_AIRCABLE is not set
# CONFIG_USB_SERIAL_ARK3116 is not set
# CONFIG_USB_SERIAL_BELKIN is not set
# CONFIG_USB_SERIAL_CH341 is not set
# CONFIG_USB_SERIAL_WHITEHEAT is not set
# CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set
# CONFIG_USB_SERIAL_CP210X is not set
# CONFIG_USB_SERIAL_CYPRESS_M8 is not set
# CONFIG_USB_SERIAL_EMPEG is not set
# CONFIG_USB_SERIAL_FTDI_SIO is not set
# CONFIG_USB_SERIAL_VISOR is not set
# CONFIG_USB_SERIAL_IPAQ is not set
# CONFIG_USB_SERIAL_IR is not set
# CONFIG_USB_SERIAL_EDGEPORT is not set
# CONFIG_USB_SERIAL_EDGEPORT_TI is not set
# CONFIG_USB_SERIAL_F81232 is not set
# CONFIG_USB_SERIAL_F8153X is not set
# CONFIG_USB_SERIAL_GARMIN is not set
# CONFIG_USB_SERIAL_IPW is not set
# CONFIG_USB_SERIAL_IUU is not set
# CONFIG_USB_SERIAL_KEYSPAN_PDA is not set
# CONFIG_USB_SERIAL_KEYSPAN is not set
# CONFIG_USB_SERIAL_KLSI is not set
# CONFIG_USB_SERIAL_KOBIL_SCT is not set
# CONFIG_USB_SERIAL_MCT_U232 is not set
# CONFIG_USB_SERIAL_METRO is not set
# CONFIG_USB_SERIAL_MOS7720 is not set
# CONFIG_USB_SERIAL_MOS7840 is not set
# CONFIG_USB_SERIAL_MXUPORT is not set
# CONFIG_USB_SERIAL_NAVMAN is not set
# CONFIG_USB_SERIAL_PL2303 is not set
# CONFIG_USB_SERIAL_OTI6858 is not set
# CONFIG_USB_SERIAL_QCAUX is not set
# CONFIG_USB_SERIAL_QUALCOMM is not set
# CONFIG_USB_SERIAL_SPCP8X5 is not set
# CONFIG_USB_SERIAL_SAFE is not set
# CONFIG_USB_SERIAL_SIERRAWIRELESS is not set
# CONFIG_USB_SERIAL_SYMBOL is not set
# CONFIG_USB_SERIAL_TI is not set
# CONFIG_USB_SERIAL_CYBERJACK is not set
# CONFIG_USB_SERIAL_OPTION is not set
# CONFIG_USB_SERIAL_OMNINET is not set
# CONFIG_USB_SERIAL_OPTICON is not set
# CONFIG_USB_SERIAL_XSENS_MT is not set
# CONFIG_USB_SERIAL_WISHBONE is not set
# CONFIG_USB_SERIAL_SSU100 is not set
# CONFIG_USB_SERIAL_QT2 is not set
# CONFIG_USB_SERIAL_UPD78F0730 is not set
# CONFIG_USB_SERIAL_XR is not setCONFIG_USB_SERIAL_DEBUG=m
#
# USB Miscellaneous drivers
#
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_ADUTUX is not set
# CONFIG_USB_SEVSEG is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_CYPRESS_CY7C63 is not set
# CONFIG_USB_CYTHERM is not set
# CONFIG_USB_IDMOUSE is not set
# CONFIG_USB_FTDI_ELAN is not set
# CONFIG_USB_APPLEDISPLAY is not set
# CONFIG_APPLE_MFI_FASTCHARGE is not set
# CONFIG_USB_SISUSBVGA is not set
# CONFIG_USB_LD is not set
# CONFIG_USB_TRANCEVIBRATOR is not set
# CONFIG_USB_IOWARRIOR is not set
# CONFIG_USB_TEST is not set
# CONFIG_USB_EHSET_TEST_FIXTURE is not set
# CONFIG_USB_ISIGHTFW is not set
# CONFIG_USB_YUREX is not set
# CONFIG_USB_EZUSB_FX2 is not set
# CONFIG_USB_HUB_USB251XB is not set
# CONFIG_USB_HSIC_USB3503 is not set
# CONFIG_USB_HSIC_USB4604 is not set
# CONFIG_USB_LINK_LAYER_TEST is not set
# CONFIG_USB_CHAOSKEY is not set
# CONFIG_USB_ATM is not set
#
# USB Physical Layer drivers
#
# CONFIG_NOP_USB_XCEIV is not set
# CONFIG_USB_GPIO_VBUS is not set
# CONFIG_USB_ISP1301 is not set
# end of USB Physical Layer drivers
# CONFIG_USB_GADGET is not setCONFIG_TYPEC=y
# CONFIG_TYPEC_TCPM is not setCONFIG_TYPEC_UCSI=y
# CONFIG_UCSI_CCG is not setCONFIG_UCSI_ACPI=y
# CONFIG_TYPEC_TPS6598X is not set
# CONFIG_TYPEC_STUSB160X is not set
#
# USB Type-C Multiplexer/DeMultiplexer Switch support #
# CONFIG_TYPEC_MUX_PI3USB30532 is not set
# end of USB Type-C Multiplexer/DeMultiplexer Switch support
#
# USB Type-C Alternate Mode drivers
#
# CONFIG_TYPEC_DP_ALTMODE is not set
# end of USB Type-C Alternate Mode drivers
# CONFIG_USB_ROLE_SWITCH is not setCONFIG_MMC=mCONFIG_MMC_BLOCK=mCONFIG_MMC_BLOCK_MINORS=8CONFIG_SDIO_UART=m
# CONFIG_MMC_TEST is not set
#
# MMC/SD/SDIO Host Controller Drivers
#
# CONFIG_MMC_DEBUG is not setCONFIG_MMC_SDHCI=mCONFIG_MMC_SDHCI_IO_ACCESSORS=yCONFIG_MMC_SDHCI_PCI=mCONFIG_MMC_RICOH_MMC=yCONFIG_MMC_SDHCI_ACPI=mCONFIG_MMC_SDHCI_PLTFM=m
# CONFIG_MMC_SDHCI_F_SDH30 is not set
# CONFIG_MMC_WBSD is not set
# CONFIG_MMC_TIFM_SD is not set
# CONFIG_MMC_SPI is not set
# CONFIG_MMC_CB710 is not set
# CONFIG_MMC_VIA_SDMMC is not set
# CONFIG_MMC_VUB300 is not set
# CONFIG_MMC_USHC is not set
# CONFIG_MMC_USDHI6ROL0 is not set
# CONFIG_MMC_REALTEK_PCI is not setCONFIG_MMC_CQHCI=m
# CONFIG_MMC_HSQ is not set
# CONFIG_MMC_TOSHIBA_PCI is not set
# CONFIG_MMC_MTK is not set
# CONFIG_MMC_SDHCI_XENON is not set
# CONFIG_MEMSTICK is not setCONFIG_NEW_LEDS=yCONFIG_LEDS_CLASS=y
# CONFIG_LEDS_CLASS_FLASH is not set
# CONFIG_LEDS_CLASS_MULTICOLOR is not set
# CONFIG_LEDS_BRIGHTNESS_HW_CHANGED is not set
#
# LED drivers
#
# CONFIG_LEDS_APU is not setCONFIG_LEDS_LM3530=m
# CONFIG_LEDS_LM3532 is not set
# CONFIG_LEDS_LM3642 is not set
# CONFIG_LEDS_PCA9532 is not set
# CONFIG_LEDS_GPIO is not setCONFIG_LEDS_LP3944=m
# CONFIG_LEDS_LP3952 is not set
# CONFIG_LEDS_LP50XX is not setCONFIG_LEDS_CLEVO_MAIL=m
# CONFIG_LEDS_PCA955X is not set
# CONFIG_LEDS_PCA963X is not set
# CONFIG_LEDS_DAC124S085 is not set
# CONFIG_LEDS_PWM is not set
# CONFIG_LEDS_BD2802 is not setCONFIG_LEDS_INTEL_SS4200=m
# CONFIG_LEDS_TCA6507 is not set
# CONFIG_LEDS_TLC591XX is not set
# CONFIG_LEDS_LM355x is not set
#
# LED driver for blink(1) USB RGB LED is under Special HID drivers (HID_THINGM) #CONFIG_LEDS_BLINKM=mCONFIG_LEDS_MLXCPLD=m
# CONFIG_LEDS_MLXREG is not set
# CONFIG_LEDS_USER is not set
# CONFIG_LEDS_NIC78BX is not set
# CONFIG_LEDS_TI_LMU_COMMON is not set
#
# Flash and Torch LED drivers
#
#
# LED Triggers
#CONFIG_LEDS_TRIGGERS=yCONFIG_LEDS_TRIGGER_TIMER=mCONFIG_LEDS_TRIGGER_ONESHOT=m
# CONFIG_LEDS_TRIGGER_DISK is not setCONFIG_LEDS_TRIGGER_HEARTBEAT=mCONFIG_LEDS_TRIGGER_BACKLIGHT=m
# CONFIG_LEDS_TRIGGER_CPU is not set
# CONFIG_LEDS_TRIGGER_ACTIVITY is not setCONFIG_LEDS_TRIGGER_GPIO=mCONFIG_LEDS_TRIGGER_DEFAULT_ON=m
#
# iptables trigger is under Netfilter config (LED target) # CONFIG_LEDS_TRIGGER_TRANSIENT=m CONFIG_LEDS_TRIGGER_CAMERA=m # CONFIG_LEDS_TRIGGER_PANIC is not set # CONFIG_LEDS_TRIGGER_NETDEV is not set # CONFIG_LEDS_TRIGGER_PATTERN is not set CONFIG_LEDS_TRIGGER_AUDIO=m # CONFIG_LEDS_TRIGGER_TTY is not set
#
# LED Blink
#
# CONFIG_LEDS_BLINK is not set
# CONFIG_ACCESSIBILITY is not setCONFIG_INFINIBAND=mCONFIG_INFINIBAND_USER_MAD=mCONFIG_INFINIBAND_USER_ACCESS=mCONFIG_INFINIBAND_USER_MEM=yCONFIG_INFINIBAND_ON_DEMAND_PAGING=yCONFIG_INFINIBAND_ADDR_TRANS=yCONFIG_INFINIBAND_ADDR_TRANS_CONFIGFS=yCONFIG_INFINIBAND_VIRT_DMA=y
# CONFIG_INFINIBAND_MTHCA is not set
# CONFIG_INFINIBAND_EFA is not set
# CONFIG_INFINIBAND_I40IW is not set
# CONFIG_MLX4_INFINIBAND is not set
# CONFIG_INFINIBAND_OCRDMA is not set
# CONFIG_INFINIBAND_USNIC is not set
# CONFIG_INFINIBAND_BNXT_RE is not set
# CONFIG_INFINIBAND_RDMAVT is not setCONFIG_RDMA_RXE=mCONFIG_RDMA_SIW=mCONFIG_INFINIBAND_IPOIB=m
# CONFIG_INFINIBAND_IPOIB_CM is not setCONFIG_INFINIBAND_IPOIB_DEBUG=y
# CONFIG_INFINIBAND_IPOIB_DEBUG_DATA is not setCONFIG_INFINIBAND_SRP=mCONFIG_INFINIBAND_SRPT=m
# CONFIG_INFINIBAND_ISER is not set
# CONFIG_INFINIBAND_ISERT is not set
# CONFIG_INFINIBAND_RTRS_CLIENT is not set
# CONFIG_INFINIBAND_RTRS_SERVER is not set
# CONFIG_INFINIBAND_OPA_VNIC is not setCONFIG_EDAC_ATOMIC_SCRUB=yCONFIG_EDAC_SUPPORT=yCONFIG_EDAC=yCONFIG_EDAC_LEGACY_SYSFS=y
# CONFIG_EDAC_DEBUG is not setCONFIG_EDAC_DECODE_MCE=mCONFIG_EDAC_GHES=yCONFIG_EDAC_AMD64=mCONFIG_EDAC_E752X=mCONFIG_EDAC_I82975X=mCONFIG_EDAC_I3000=mCONFIG_EDAC_I3200=mCONFIG_EDAC_IE31200=mCONFIG_EDAC_X38=mCONFIG_EDAC_I5400=mCONFIG_EDAC_I7CORE=mCONFIG_EDAC_I5000=mCONFIG_EDAC_I5100=mCONFIG_EDAC_I7300=mCONFIG_EDAC_SBRIDGE=mCONFIG_EDAC_SKX=m
# CONFIG_EDAC_I10NM is not setCONFIG_EDAC_PND2=m
# CONFIG_EDAC_IGEN6 is not setCONFIG_RTC_LIB=yCONFIG_RTC_MC146818_LIB=yCONFIG_RTC_CLASS=yCONFIG_RTC_HCTOSYS=yCONFIG_RTC_HCTOSYS_DEVICE="rtc0"
# CONFIG_RTC_SYSTOHC is not set
# CONFIG_RTC_DEBUG is not setCONFIG_RTC_NVMEM=y
#
# RTC interfaces
#CONFIG_RTC_INTF_SYSFS=yCONFIG_RTC_INTF_PROC=yCONFIG_RTC_INTF_DEV=y
# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
# CONFIG_RTC_DRV_TEST is not set
#
# I2C RTC drivers
#
# CONFIG_RTC_DRV_ABB5ZES3 is not set
# CONFIG_RTC_DRV_ABEOZ9 is not set
# CONFIG_RTC_DRV_ABX80X is not setCONFIG_RTC_DRV_DS1307=m
# CONFIG_RTC_DRV_DS1307_CENTURY is not setCONFIG_RTC_DRV_DS1374=m
# CONFIG_RTC_DRV_DS1374_WDT is not setCONFIG_RTC_DRV_DS1672=mCONFIG_RTC_DRV_MAX6900=mCONFIG_RTC_DRV_RS5C372=mCONFIG_RTC_DRV_ISL1208=mCONFIG_RTC_DRV_ISL12022=mCONFIG_RTC_DRV_X1205=mCONFIG_RTC_DRV_PCF8523=m
# CONFIG_RTC_DRV_PCF85063 is not set
# CONFIG_RTC_DRV_PCF85363 is not setCONFIG_RTC_DRV_PCF8563=mCONFIG_RTC_DRV_PCF8583=mCONFIG_RTC_DRV_M41T80=mCONFIG_RTC_DRV_M41T80_WDT=yCONFIG_RTC_DRV_BQ32K=m
# CONFIG_RTC_DRV_S35390A is not setCONFIG_RTC_DRV_FM3130=m
# CONFIG_RTC_DRV_RX8010 is not setCONFIG_RTC_DRV_RX8581=mCONFIG_RTC_DRV_RX8025=mCONFIG_RTC_DRV_EM3027=m
# CONFIG_RTC_DRV_RV3028 is not set
# CONFIG_RTC_DRV_RV3032 is not set
# CONFIG_RTC_DRV_RV8803 is not set
# CONFIG_RTC_DRV_SD3078 is not set
#
# SPI RTC drivers
#
# CONFIG_RTC_DRV_M41T93 is not set
# CONFIG_RTC_DRV_M41T94 is not set
# CONFIG_RTC_DRV_DS1302 is not set
# CONFIG_RTC_DRV_DS1305 is not set
# CONFIG_RTC_DRV_DS1343 is not set
# CONFIG_RTC_DRV_DS1347 is not set
# CONFIG_RTC_DRV_DS1390 is not set
# CONFIG_RTC_DRV_MAX6916 is not set
# CONFIG_RTC_DRV_R9701 is not setCONFIG_RTC_DRV_RX4581=m
# CONFIG_RTC_DRV_RS5C348 is not set
# CONFIG_RTC_DRV_MAX6902 is not set
# CONFIG_RTC_DRV_PCF2123 is not set
# CONFIG_RTC_DRV_MCP795 is not setCONFIG_RTC_I2C_AND_SPI=y
#
# SPI and I2C RTC drivers
#CONFIG_RTC_DRV_DS3232=mCONFIG_RTC_DRV_DS3232_HWMON=y
# CONFIG_RTC_DRV_PCF2127 is not setCONFIG_RTC_DRV_RV3029C2=m
# CONFIG_RTC_DRV_RV3029_HWMON is not set
# CONFIG_RTC_DRV_RX6110 is not set
#
# Platform RTC drivers
#CONFIG_RTC_DRV_CMOS=yCONFIG_RTC_DRV_DS1286=mCONFIG_RTC_DRV_DS1511=mCONFIG_RTC_DRV_DS1553=m
# CONFIG_RTC_DRV_DS1685_FAMILY is not setCONFIG_RTC_DRV_DS1742=mCONFIG_RTC_DRV_DS2404=mCONFIG_RTC_DRV_STK17TA8=m
# CONFIG_RTC_DRV_M48T86 is not setCONFIG_RTC_DRV_M48T35=mCONFIG_RTC_DRV_M48T59=mCONFIG_RTC_DRV_MSM6242=mCONFIG_RTC_DRV_BQ4802=mCONFIG_RTC_DRV_RP5C01=mCONFIG_RTC_DRV_V3020=m
#
# on-CPU RTC drivers
#
# CONFIG_RTC_DRV_FTRTC010 is not set
#
# HID Sensor RTC drivers
#CONFIG_DMADEVICES=y
# CONFIG_DMADEVICES_DEBUG is not set
#
# DMA Devices
#CONFIG_DMA_ENGINE=yCONFIG_DMA_VIRTUAL_CHANNELS=yCONFIG_DMA_ACPI=y
# CONFIG_ALTERA_MSGDMA is not setCONFIG_INTEL_IDMA64=m
# CONFIG_INTEL_IDXD is not setCONFIG_INTEL_IOATDMA=m
# CONFIG_PLX_DMA is not set
# CONFIG_XILINX_ZYNQMP_DPDMA is not set
# CONFIG_QCOM_HIDMA_MGMT is not set
# CONFIG_QCOM_HIDMA is not setCONFIG_DW_DMAC_CORE=yCONFIG_DW_DMAC=mCONFIG_DW_DMAC_PCI=y
# CONFIG_DW_EDMA is not set
# CONFIG_DW_EDMA_PCIE is not setCONFIG_HSU_DMA=y
# CONFIG_SF_PDMA is not set
# CONFIG_INTEL_LDMA is not set
#
# DMA Clients
#CONFIG_ASYNC_TX_DMA=yCONFIG_DMATEST=mCONFIG_DMA_ENGINE_RAID=y
#
# DMABUF options
#CONFIG_SYNC_FILE=y
# CONFIG_SW_SYNC is not set
# CONFIG_UDMABUF is not set
# CONFIG_DMABUF_MOVE_NOTIFY is not set
# CONFIG_DMABUF_DEBUG is not set
# CONFIG_DMABUF_SELFTESTS is not set
# CONFIG_DMABUF_HEAPS is not set
# end of DMABUF options
CONFIG_DCA=m
# CONFIG_AUXDISPLAY is not set
# CONFIG_PANEL is not setCONFIG_UIO=mCONFIG_UIO_CIF=mCONFIG_UIO_PDRV_GENIRQ=m
# CONFIG_UIO_DMEM_GENIRQ is not setCONFIG_UIO_AEC=mCONFIG_UIO_SERCOS3=mCONFIG_UIO_PCI_GENERIC=m
# CONFIG_UIO_NETX is not set
# CONFIG_UIO_PRUSS is not set
# CONFIG_UIO_MF624 is not setCONFIG_UIO_HV_GENERIC=mCONFIG_VFIO_IOMMU_TYPE1=mCONFIG_VFIO_VIRQFD=mCONFIG_VFIO=mCONFIG_VFIO_NOIOMMU=yCONFIG_VFIO_PCI=m
# CONFIG_VFIO_PCI_VGA is not setCONFIG_VFIO_PCI_MMAP=yCONFIG_VFIO_PCI_INTX=y
# CONFIG_VFIO_PCI_IGD is not setCONFIG_VFIO_MDEV=mCONFIG_VFIO_MDEV_DEVICE=mCONFIG_IRQ_BYPASS_MANAGER=m
# CONFIG_VIRT_DRIVERS is not setCONFIG_VIRTIO=yCONFIG_VIRTIO_PCI_LIB=yCONFIG_VIRTIO_MENU=yCONFIG_VIRTIO_PCI=yCONFIG_VIRTIO_PCI_LEGACY=y
# CONFIG_VIRTIO_PMEM is not setCONFIG_VIRTIO_BALLOON=mCONFIG_VIRTIO_MEM=mCONFIG_VIRTIO_INPUT=m
# CONFIG_VIRTIO_MMIO is not setCONFIG_VIRTIO_DMA_SHARED_BUFFER=m
# CONFIG_VDPA is not setCONFIG_VHOST_IOTLB=mCONFIG_VHOST=mCONFIG_VHOST_MENU=yCONFIG_VHOST_NET=m
# CONFIG_VHOST_SCSI is not setCONFIG_VHOST_VSOCK=m
# CONFIG_VHOST_CROSS_ENDIAN_LEGACY is not set
#
# Microsoft Hyper-V guest support
#CONFIG_HYPERV=mCONFIG_HYPERV_TIMER=yCONFIG_HYPERV_UTILS=mCONFIG_HYPERV_BALLOON=m
# end of Microsoft Hyper-V guest support
#
# Xen driver support
#
# CONFIG_XEN_BALLOON is not setCONFIG_XEN_DEV_EVTCHN=m
# CONFIG_XEN_BACKEND is not setCONFIG_XENFS=mCONFIG_XEN_COMPAT_XENFS=yCONFIG_XEN_SYS_HYPERVISOR=yCONFIG_XEN_XENBUS_FRONTEND=y
# CONFIG_XEN_GNTDEV is not set
# CONFIG_XEN_GRANT_DEV_ALLOC is not set
# CONFIG_XEN_GRANT_DMA_ALLOC is not setCONFIG_SWIOTLB_XEN=y
# CONFIG_XEN_PVCALLS_FRONTEND is not setCONFIG_XEN_PRIVCMD=mCONFIG_XEN_EFI=yCONFIG_XEN_AUTO_XLATE=yCONFIG_XEN_ACPI=y
# CONFIG_XEN_UNPOPULATED_ALLOC is not set
# end of Xen driver support
# CONFIG_GREYBUS is not set
# CONFIG_STAGING is not setCONFIG_X86_PLATFORM_DEVICES=yCONFIG_ACPI_WMI=mCONFIG_WMI_BMOF=m
# CONFIG_HUAWEI_WMI is not set
# CONFIG_UV_SYSFS is not set
# CONFIG_INTEL_WMI_SBL_FW_UPDATE is not setCONFIG_INTEL_WMI_THUNDERBOLT=mCONFIG_MXM_WMI=m
# CONFIG_PEAQ_WMI is not set
# CONFIG_XIAOMI_WMI is not setCONFIG_ACERHDF=m
# CONFIG_ACER_WIRELESS is not setCONFIG_ACER_WMI=m
# CONFIG_AMD_PMC is not setCONFIG_APPLE_GMUX=mCONFIG_ASUS_LAPTOP=m
# CONFIG_ASUS_WIRELESS is not setCONFIG_ASUS_WMI=mCONFIG_ASUS_NB_WMI=mCONFIG_EEEPC_LAPTOP=mCONFIG_EEEPC_WMI=m
# CONFIG_X86_PLATFORM_DRIVERS_DELL is not setCONFIG_AMILO_RFKILL=mCONFIG_FUJITSU_LAPTOP=mCONFIG_FUJITSU_TABLET=m
# CONFIG_GPD_POCKET_FAN is not setCONFIG_HP_ACCEL=mCONFIG_HP_WIRELESS=mCONFIG_HP_WMI=m
# CONFIG_IBM_RTL is not setCONFIG_IDEAPAD_LAPTOP=mCONFIG_SENSORS_HDAPS=mCONFIG_THINKPAD_ACPI=m
# CONFIG_THINKPAD_ACPI_DEBUGFACILITIES is not set
# CONFIG_THINKPAD_ACPI_DEBUG is not set
# CONFIG_THINKPAD_ACPI_UNSAFE_LEDS is not setCONFIG_THINKPAD_ACPI_VIDEO=yCONFIG_THINKPAD_ACPI_HOTKEY_POLL=y
# CONFIG_INTEL_ATOMISP2_PM is not setCONFIG_INTEL_HID_EVENT=m
# CONFIG_INTEL_INT0002_VGPIO is not set
# CONFIG_INTEL_MENLOW is not setCONFIG_INTEL_OAKTRAIL=mCONFIG_INTEL_VBTN=mCONFIG_MSI_LAPTOP=mCONFIG_MSI_WMI=m
# CONFIG_PCENGINES_APU2 is not setCONFIG_SAMSUNG_LAPTOP=mCONFIG_SAMSUNG_Q10=mCONFIG_TOSHIBA_BT_RFKILL=m
# CONFIG_TOSHIBA_HAPS is not set
# CONFIG_TOSHIBA_WMI is not setCONFIG_ACPI_CMPC=mCONFIG_COMPAL_LAPTOP=m
# CONFIG_LG_LAPTOP is not setCONFIG_PANASONIC_LAPTOP=mCONFIG_SONY_LAPTOP=mCONFIG_SONYPI_COMPAT=y
# CONFIG_SYSTEM76_ACPI is not setCONFIG_TOPSTAR_LAPTOP=m
# CONFIG_I2C_MULTI_INSTANTIATE is not setCONFIG_MLX_PLATFORM=mCONFIG_INTEL_IPS=mCONFIG_INTEL_RST=m
# CONFIG_INTEL_SMARTCONNECT is not set
#
# Intel Speed Select Technology interface support
#
# CONFIG_INTEL_SPEED_SELECT_INTERFACE is not set
# end of Intel Speed Select Technology interface support
CONFIG_INTEL_TURBO_MAX_3=y
# CONFIG_INTEL_UNCORE_FREQ_CONTROL is not setCONFIG_INTEL_PMC_CORE=m
# CONFIG_INTEL_PUNIT_IPC is not set
# CONFIG_INTEL_SCU_PCI is not set
# CONFIG_INTEL_SCU_PLATFORM is not setCONFIG_PMC_ATOM=y
# CONFIG_CHROME_PLATFORMS is not setCONFIG_MELLANOX_PLATFORM=yCONFIG_MLXREG_HOTPLUG=m
# CONFIG_MLXREG_IO is not setCONFIG_SURFACE_PLATFORMS=y
# CONFIG_SURFACE3_WMI is not set
# CONFIG_SURFACE_3_POWER_OPREGION is not set
# CONFIG_SURFACE_GPE is not set
# CONFIG_SURFACE_HOTPLUG is not set
# CONFIG_SURFACE_PRO3_BUTTON is not setCONFIG_HAVE_CLK=yCONFIG_CLKDEV_LOOKUP=yCONFIG_HAVE_CLK_PREPARE=yCONFIG_COMMON_CLK=y
# CONFIG_COMMON_CLK_MAX9485 is not set
# CONFIG_COMMON_CLK_SI5341 is not set
# CONFIG_COMMON_CLK_SI5351 is not set
# CONFIG_COMMON_CLK_SI544 is not set
# CONFIG_COMMON_CLK_CDCE706 is not set
# CONFIG_COMMON_CLK_CS2000_CP is not set
# CONFIG_COMMON_CLK_PWM is not set
# CONFIG_XILINX_VCU is not setCONFIG_HWSPINLOCK=y
#
# Clock Source drivers
#CONFIG_CLKEVT_I8253=yCONFIG_I8253_LOCK=yCONFIG_CLKBLD_I8253=y
# end of Clock Source drivers
CONFIG_MAILBOX=yCONFIG_PCC=y
# CONFIG_ALTERA_MBOX is not setCONFIG_IOMMU_IOVA=yCONFIG_IOASID=yCONFIG_IOMMU_API=yCONFIG_IOMMU_SUPPORT=y
#
# Generic IOMMU Pagetable Support
#CONFIG_IOMMU_IO_PGTABLE=y
# end of Generic IOMMU Pagetable Support
# CONFIG_IOMMU_DEBUGFS is not set
# CONFIG_IOMMU_DEFAULT_PASSTHROUGH is not set CONFIG_IOMMU_DMA=yCONFIG_AMD_IOMMU=yCONFIG_AMD_IOMMU_V2=mCONFIG_DMAR_TABLE=yCONFIG_INTEL_IOMMU=y
# CONFIG_INTEL_IOMMU_SVM is not set
# CONFIG_INTEL_IOMMU_DEFAULT_ON is not set CONFIG_INTEL_IOMMU_FLOPPY_WA=y
# CONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON is not set CONFIG_IRQ_REMAP=yCONFIG_HYPERV_IOMMU=y
#
# Remoteproc drivers
#
# CONFIG_REMOTEPROC is not set
# end of Remoteproc drivers
#
# Rpmsg drivers
#
# CONFIG_RPMSG_QCOM_GLINK_RPM is not set
# CONFIG_RPMSG_VIRTIO is not set
# end of Rpmsg drivers
# CONFIG_SOUNDWIRE is not set
#
# SOC (System On Chip) specific Drivers
#
#
# Amlogic SoC drivers
#
# end of Amlogic SoC drivers
#
# Broadcom SoC drivers
#
# end of Broadcom SoC drivers
#
# NXP/Freescale QorIQ SoC drivers
#
# end of NXP/Freescale QorIQ SoC drivers
#
# i.MX SoC drivers
#
# end of i.MX SoC drivers
#
# Enable LiteX SoC Builder specific drivers
#
# end of Enable LiteX SoC Builder specific drivers
#
# Qualcomm SoC drivers
#
# end of Qualcomm SoC drivers
# CONFIG_SOC_TI is not set
#
# Xilinx SoC drivers
#
# end of Xilinx SoC drivers # end of SOC (System On Chip) specific Drivers
# CONFIG_PM_DEVFREQ is not set
# CONFIG_EXTCON is not set
# CONFIG_MEMORY is not set
# CONFIG_IIO is not setCONFIG_NTB=m
# CONFIG_NTB_MSI is not set
# CONFIG_NTB_AMD is not set
# CONFIG_NTB_IDT is not set
# CONFIG_NTB_INTEL is not set
# CONFIG_NTB_EPF is not set
# CONFIG_NTB_SWITCHTEC is not set
# CONFIG_NTB_PINGPONG is not set
# CONFIG_NTB_TOOL is not set
# CONFIG_NTB_PERF is not set
# CONFIG_NTB_TRANSPORT is not set
# CONFIG_VME_BUS is not setCONFIG_PWM=yCONFIG_PWM_SYSFS=y
# CONFIG_PWM_DEBUG is not set
# CONFIG_PWM_DWC is not setCONFIG_PWM_LPSS=mCONFIG_PWM_LPSS_PCI=mCONFIG_PWM_LPSS_PLATFORM=m
# CONFIG_PWM_PCA9685 is not set
#
# IRQ chip support
#
# end of IRQ chip support
# CONFIG_IPACK_BUS is not set
# CONFIG_RESET_CONTROLLER is not set
#
# PHY Subsystem
#
# CONFIG_GENERIC_PHY is not set
# CONFIG_USB_LGM_PHY is not set
# CONFIG_BCM_KONA_USB2_PHY is not set
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_PHY_INTEL_LGM_EMMC is not set
# end of PHY Subsystem
CONFIG_POWERCAP=yCONFIG_INTEL_RAPL_CORE=mCONFIG_INTEL_RAPL=m
# CONFIG_IDLE_INJECT is not set
# CONFIG_DTPM is not set
# CONFIG_MCB is not set
#
# Performance monitor support
#
# end of Performance monitor support
CONFIG_RAS=y
# CONFIG_RAS_CEC is not set
# CONFIG_USB4 is not set
#
# Android
#
# CONFIG_ANDROID is not set
# end of Android
CONFIG_LIBNVDIMM=mCONFIG_BLK_DEV_PMEM=mCONFIG_ND_BLK=mCONFIG_ND_CLAIM=yCONFIG_ND_BTT=mCONFIG_BTT=yCONFIG_ND_PFN=mCONFIG_NVDIMM_PFN=yCONFIG_NVDIMM_DAX=yCONFIG_NVDIMM_KEYS=yCONFIG_DAX_DRIVER=yCONFIG_DAX=yCONFIG_DEV_DAX=mCONFIG_DEV_DAX_PMEM=mCONFIG_DEV_DAX_KMEM=mCONFIG_DEV_DAX_PMEM_COMPAT=mCONFIG_NVMEM=yCONFIG_NVMEM_SYSFS=y
# CONFIG_NVMEM_RMEM is not set
#
# HW tracing support
#CONFIG_STM=m
# CONFIG_STM_PROTO_BASIC is not set
# CONFIG_STM_PROTO_SYS_T is not setCONFIG_STM_DUMMY=mCONFIG_STM_SOURCE_CONSOLE=mCONFIG_STM_SOURCE_HEARTBEAT=mCONFIG_STM_SOURCE_FTRACE=mCONFIG_INTEL_TH=mCONFIG_INTEL_TH_PCI=mCONFIG_INTEL_TH_ACPI=mCONFIG_INTEL_TH_GTH=mCONFIG_INTEL_TH_STH=mCONFIG_INTEL_TH_MSU=mCONFIG_INTEL_TH_PTI=m
# CONFIG_INTEL_TH_DEBUG is not set
# end of HW tracing support
# CONFIG_FPGA is not set
# CONFIG_TEE is not set
# CONFIG_UNISYS_VISORBUS is not set
# CONFIG_SIOX is not set
# CONFIG_SLIMBUS is not set
# CONFIG_INTERCONNECT is not set
# CONFIG_COUNTER is not set
# CONFIG_MOST is not set
# end of Device Drivers
#
# File systems
#CONFIG_DCACHE_WORD_ACCESS=y
# CONFIG_VALIDATE_FS_PARSER is not set CONFIG_FS_IOMAP=yCONFIG_EXT2_FS=mCONFIG_EXT2_FS_XATTR=y CONFIG_EXT2_FS_POSIX_ACL=y CONFIG_EXT2_FS_SECURITY=y
# CONFIG_EXT3_FS is not setCONFIG_EXT4_FS=yCONFIG_EXT4_FS_POSIX_ACL=y CONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_DEBUG is not set CONFIG_EXT4_KUNIT_TESTS=mCONFIG_JBD2=y
# CONFIG_JBD2_DEBUG is not set CONFIG_FS_MBCACHE=y
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not setCONFIG_XFS_FS=mCONFIG_XFS_SUPPORT_V4=yCONFIG_XFS_QUOTA=yCONFIG_XFS_POSIX_ACL=yCONFIG_XFS_RT=yCONFIG_XFS_ONLINE_SCRUB=y CONFIG_XFS_ONLINE_REPAIR=yCONFIG_XFS_DEBUG=yCONFIG_XFS_ASSERT_FATAL=yCONFIG_GFS2_FS=mCONFIG_GFS2_FS_LOCKING_DLM=y CONFIG_OCFS2_FS=mCONFIG_OCFS2_FS_O2CB=m CONFIG_OCFS2_FS_USERSPACE_CLUSTER=m CONFIG_OCFS2_FS_STATS=y CONFIG_OCFS2_DEBUG_MASKLOG=y
# CONFIG_OCFS2_DEBUG_FS is not set CONFIG_BTRFS_FS=mCONFIG_BTRFS_FS_POSIX_ACL=y
# CONFIG_BTRFS_FS_CHECK_INTEGRITY is not set # CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set # CONFIG_BTRFS_DEBUG is not set
# CONFIG_BTRFS_ASSERT is not set
# CONFIG_BTRFS_FS_REF_VERIFY is not set
# CONFIG_NILFS2_FS is not set CONFIG_F2FS_FS=mCONFIG_F2FS_STAT_FS=yCONFIG_F2FS_FS_XATTR=y CONFIG_F2FS_FS_POSIX_ACL=y CONFIG_F2FS_FS_SECURITY=y
# CONFIG_F2FS_CHECK_FS is not set
# CONFIG_F2FS_FAULT_INJECTION is not set
# CONFIG_F2FS_FS_COMPRESSION is not set
# CONFIG_ZONEFS_FS is not setCONFIG_FS_DAX=yCONFIG_FS_DAX_PMD=yCONFIG_FS_POSIX_ACL=yCONFIG_EXPORTFS=yCONFIG_EXPORTFS_BLOCK_OPS=y CONFIG_FILE_LOCKING=y CONFIG_MANDATORY_FILE_LOCKING=y CONFIG_FS_ENCRYPTION=y CONFIG_FS_ENCRYPTION_ALGS=y
# CONFIG_FS_VERITY is not set CONFIG_FSNOTIFY=yCONFIG_DNOTIFY=yCONFIG_INOTIFY_USER=yCONFIG_FANOTIFY=y CONFIG_FANOTIFY_ACCESS_PERMISSIONS=y CONFIG_QUOTA=y CONFIG_QUOTA_NETLINK_INTERFACE=y CONFIG_PRINT_QUOTA_WARNING=y
# CONFIG_QUOTA_DEBUG is not set CONFIG_QUOTA_TREE=y
# CONFIG_QFMT_V1 is not setCONFIG_QFMT_V2=yCONFIG_QUOTACTL=yCONFIG_AUTOFS4_FS=yCONFIG_AUTOFS_FS=yCONFIG_FUSE_FS=mCONFIG_CUSE=m
# CONFIG_VIRTIO_FS is not set CONFIG_OVERLAY_FS=m
# CONFIG_OVERLAY_FS_REDIRECT_DIR is not set
# CONFIG_OVERLAY_FS_REDIRECT_ALWAYS_FOLLOW is not set # CONFIG_OVERLAY_FS_INDEX is not set
# CONFIG_OVERLAY_FS_XINO_AUTO is not set
# CONFIG_OVERLAY_FS_METACOPY is not set
#
# Caches
#CONFIG_FSCACHE=mCONFIG_FSCACHE_STATS=y
# CONFIG_FSCACHE_HISTOGRAM is not set
# CONFIG_FSCACHE_DEBUG is not set
# CONFIG_FSCACHE_OBJECT_LIST is not setCONFIG_CACHEFILES=m
# CONFIG_CACHEFILES_DEBUG is not set
# CONFIG_CACHEFILES_HISTOGRAM is not set
# end of Caches
#
# CD-ROM/DVD Filesystems
#CONFIG_ISO9660_FS=mCONFIG_JOLIET=yCONFIG_ZISOFS=yCONFIG_UDF_FS=m
# end of CD-ROM/DVD Filesystems
#
# DOS/FAT/EXFAT/NT Filesystems
#CONFIG_FAT_FS=mCONFIG_MSDOS_FS=mCONFIG_VFAT_FS=mCONFIG_FAT_DEFAULT_CODEPAGE=437CONFIG_FAT_DEFAULT_IOCHARSET="ascii"
# CONFIG_FAT_DEFAULT_UTF8 is not set
# CONFIG_EXFAT_FS is not set
# CONFIG_NTFS_FS is not set
# end of DOS/FAT/EXFAT/NT Filesystems
#
# Pseudo filesystems
#CONFIG_PROC_FS=yCONFIG_PROC_KCORE=yCONFIG_PROC_VMCORE=yCONFIG_PROC_VMCORE_DEVICE_DUMP=yCONFIG_PROC_SYSCTL=yCONFIG_PROC_PAGE_MONITOR=yCONFIG_PROC_CHILDREN=yCONFIG_PROC_PID_ARCH_STATUS=yCONFIG_PROC_CPU_RESCTRL=yCONFIG_KERNFS=yCONFIG_SYSFS=yCONFIG_TMPFS=yCONFIG_TMPFS_POSIX_ACL=yCONFIG_TMPFS_XATTR=y
# CONFIG_TMPFS_INODE64 is not setCONFIG_HUGETLBFS=yCONFIG_HUGETLB_PAGE=yCONFIG_MEMFD_CREATE=yCONFIG_ARCH_HAS_GIGANTIC_PAGE=yCONFIG_CONFIGFS_FS=yCONFIG_EFIVAR_FS=y
# end of Pseudo filesystems
CONFIG_MISC_FILESYSTEMS=y
# CONFIG_ORANGEFS_FS is not set
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_ECRYPT_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not setCONFIG_CRAMFS=mCONFIG_CRAMFS_BLOCKDEV=yCONFIG_SQUASHFS=m
# CONFIG_SQUASHFS_FILE_CACHE is not set CONFIG_SQUASHFS_FILE_DIRECT=y
# CONFIG_SQUASHFS_DECOMP_SINGLE is not set
# CONFIG_SQUASHFS_DECOMP_MULTI is not set CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU=y CONFIG_SQUASHFS_XATTR=y CONFIG_SQUASHFS_ZLIB=y
# CONFIG_SQUASHFS_LZ4 is not set CONFIG_SQUASHFS_LZO=yCONFIG_SQUASHFS_XZ=y
# CONFIG_SQUASHFS_ZSTD is not set
# CONFIG_SQUASHFS_4K_DEVBLK_SIZE is not set
# CONFIG_SQUASHFS_EMBEDDED is not set CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3
# CONFIG_VXFS_FS is not setCONFIG_MINIX_FS=m
# CONFIG_OMFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_QNX6FS_FS is not set
# CONFIG_ROMFS_FS is not setCONFIG_PSTORE=y CONFIG_PSTORE_DEFAULT_KMSG_BYTES=10240 CONFIG_PSTORE_DEFLATE_COMPRESS=y
# CONFIG_PSTORE_LZO_COMPRESS is not set
# CONFIG_PSTORE_LZ4_COMPRESS is not set
# CONFIG_PSTORE_LZ4HC_COMPRESS is not set
# CONFIG_PSTORE_842_COMPRESS is not set
# CONFIG_PSTORE_ZSTD_COMPRESS is not set CONFIG_PSTORE_COMPRESS=y CONFIG_PSTORE_DEFLATE_COMPRESS_DEFAULT=y CONFIG_PSTORE_COMPRESS_DEFAULT="deflate"
# CONFIG_PSTORE_CONSOLE is not set
# CONFIG_PSTORE_PMSG is not set
# CONFIG_PSTORE_FTRACE is not set CONFIG_PSTORE_RAM=m
# CONFIG_PSTORE_BLK is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
# CONFIG_EROFS_FS is not set CONFIG_NETWORK_FILESYSTEMS=yCONFIG_NFS_FS=y
# CONFIG_NFS_V2 is not setCONFIG_NFS_V3=yCONFIG_NFS_V3_ACL=yCONFIG_NFS_V4=m
# CONFIG_NFS_SWAP is not set CONFIG_NFS_V4_1=yCONFIG_NFS_V4_2=yCONFIG_PNFS_FILE_LAYOUT=mCONFIG_PNFS_BLOCK=m CONFIG_PNFS_FLEXFILE_LAYOUT=m CONFIG_NFS_V4_1_IMPLEMENTATION_ID_DOMAIN="kernel.org" # CONFIG_NFS_V4_1_MIGRATION is not set CONFIG_NFS_V4_SECURITY_LABEL=y CONFIG_ROOT_NFS=y
# CONFIG_NFS_USE_LEGACY_DNS is not set CONFIG_NFS_USE_KERNEL_DNS=y CONFIG_NFS_DEBUG=y CONFIG_NFS_DISABLE_UDP_SUPPORT=y
# CONFIG_NFS_V4_2_READ_PLUS is not set CONFIG_NFSD=mCONFIG_NFSD_V2_ACL=yCONFIG_NFSD_V3=yCONFIG_NFSD_V3_ACL=yCONFIG_NFSD_V4=yCONFIG_NFSD_PNFS=y
# CONFIG_NFSD_BLOCKLAYOUT is not set CONFIG_NFSD_SCSILAYOUT=y
# CONFIG_NFSD_FLEXFILELAYOUT is not set
# CONFIG_NFSD_V4_2_INTER_SSC is not set CONFIG_NFSD_V4_SECURITY_LABEL=y CONFIG_GRACE_PERIOD=yCONFIG_LOCKD=yCONFIG_LOCKD_V4=yCONFIG_NFS_ACL_SUPPORT=yCONFIG_NFS_COMMON=y CONFIG_NFS_V4_2_SSC_HELPER=yCONFIG_SUNRPC=yCONFIG_SUNRPC_GSS=m CONFIG_SUNRPC_BACKCHANNEL=y CONFIG_RPCSEC_GSS_KRB5=m
# CONFIG_SUNRPC_DISABLE_INSECURE_ENCTYPES is not set CONFIG_SUNRPC_DEBUG=y CONFIG_SUNRPC_XPRT_RDMA=mCONFIG_CEPH_FS=m
# CONFIG_CEPH_FSCACHE is not set CONFIG_CEPH_FS_POSIX_ACL=y
# CONFIG_CEPH_FS_SECURITY_LABEL is not set CONFIG_CIFS=m
# CONFIG_CIFS_STATS2 is not set CONFIG_CIFS_ALLOW_INSECURE_LEGACY=y CONFIG_CIFS_WEAK_PW_HASH=y CONFIG_CIFS_UPCALL=yCONFIG_CIFS_XATTR=yCONFIG_CIFS_POSIX=yCONFIG_CIFS_DEBUG=y
# CONFIG_CIFS_DEBUG2 is not set
# CONFIG_CIFS_DEBUG_DUMP_KEYS is not set CONFIG_CIFS_DFS_UPCALL=y
# CONFIG_CIFS_SWN_UPCALL is not set
# CONFIG_CIFS_SMB_DIRECT is not set
# CONFIG_CIFS_FSCACHE is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
# CONFIG_9P_FS is not setCONFIG_NLS=yCONFIG_NLS_DEFAULT="utf8" CONFIG_NLS_CODEPAGE_437=y CONFIG_NLS_CODEPAGE_737=m CONFIG_NLS_CODEPAGE_775=m CONFIG_NLS_CODEPAGE_850=m CONFIG_NLS_CODEPAGE_852=m CONFIG_NLS_CODEPAGE_855=m CONFIG_NLS_CODEPAGE_857=m CONFIG_NLS_CODEPAGE_860=m CONFIG_NLS_CODEPAGE_861=m CONFIG_NLS_CODEPAGE_862=m CONFIG_NLS_CODEPAGE_863=m CONFIG_NLS_CODEPAGE_864=m CONFIG_NLS_CODEPAGE_865=m CONFIG_NLS_CODEPAGE_866=m CONFIG_NLS_CODEPAGE_869=m CONFIG_NLS_CODEPAGE_936=m CONFIG_NLS_CODEPAGE_950=m CONFIG_NLS_CODEPAGE_932=m CONFIG_NLS_CODEPAGE_949=m CONFIG_NLS_CODEPAGE_874=m CONFIG_NLS_ISO8859_8=m CONFIG_NLS_CODEPAGE_1250=m CONFIG_NLS_CODEPAGE_1251=mCONFIG_NLS_ASCII=yCONFIG_NLS_ISO8859_1=mCONFIG_NLS_ISO8859_2=mCONFIG_NLS_ISO8859_3=mCONFIG_NLS_ISO8859_4=mCONFIG_NLS_ISO8859_5=mCONFIG_NLS_ISO8859_6=mCONFIG_NLS_ISO8859_7=mCONFIG_NLS_ISO8859_9=m CONFIG_NLS_ISO8859_13=m CONFIG_NLS_ISO8859_14=m CONFIG_NLS_ISO8859_15=mCONFIG_NLS_KOI8_R=mCONFIG_NLS_KOI8_U=mCONFIG_NLS_MAC_ROMAN=m CONFIG_NLS_MAC_CELTIC=m CONFIG_NLS_MAC_CENTEURO=m CONFIG_NLS_MAC_CROATIAN=m CONFIG_NLS_MAC_CYRILLIC=m CONFIG_NLS_MAC_GAELIC=m CONFIG_NLS_MAC_GREEK=m CONFIG_NLS_MAC_ICELAND=m CONFIG_NLS_MAC_INUIT=m CONFIG_NLS_MAC_ROMANIAN=m CONFIG_NLS_MAC_TURKISH=mCONFIG_NLS_UTF8=mCONFIG_DLM=mCONFIG_DLM_DEBUG=y
# CONFIG_UNICODE is not setCONFIG_IO_WQ=y
# end of File systems
#
# Security options
#CONFIG_KEYS=y
# CONFIG_KEYS_REQUEST_CACHE is not setCONFIG_PERSISTENT_KEYRINGS=yCONFIG_TRUSTED_KEYS=yCONFIG_ENCRYPTED_KEYS=y
# CONFIG_KEY_DH_OPERATIONS is not set
# CONFIG_SECURITY_DMESG_RESTRICT is not setCONFIG_SECURITY=yCONFIG_SECURITY_WRITABLE_HOOKS=yCONFIG_SECURITYFS=yCONFIG_SECURITY_NETWORK=yCONFIG_PAGE_TABLE_ISOLATION=y
# CONFIG_SECURITY_INFINIBAND is not setCONFIG_SECURITY_NETWORK_XFRM=yCONFIG_SECURITY_PATH=yCONFIG_INTEL_TXT=yCONFIG_LSM_MMAP_MIN_ADDR=65535CONFIG_HAVE_HARDENED_USERCOPY_ALLOCATOR=yCONFIG_HARDENED_USERCOPY=yCONFIG_HARDENED_USERCOPY_FALLBACK=yCONFIG_FORTIFY_SOURCE=y
# CONFIG_STATIC_USERMODEHELPER is not set
# CONFIG_STRICT_FOLLOW_PFN is not setCONFIG_SECURITY_SELINUX=yCONFIG_SECURITY_SELINUX_BOOTPARAM=yCONFIG_SECURITY_SELINUX_DISABLE=yCONFIG_SECURITY_SELINUX_DEVELOP=yCONFIG_SECURITY_SELINUX_AVC_STATS=y CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1 CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9 CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256
# CONFIG_SECURITY_SMACK is not set
# CONFIG_SECURITY_TOMOYO is not setCONFIG_SECURITY_APPARMOR=yCONFIG_SECURITY_APPARMOR_HASH=yCONFIG_SECURITY_APPARMOR_HASH_DEFAULT=y
# CONFIG_SECURITY_APPARMOR_DEBUG is not set
# CONFIG_SECURITY_APPARMOR_KUNIT_TEST is not set
# CONFIG_SECURITY_LOADPIN is not setCONFIG_SECURITY_YAMA=y
# CONFIG_SECURITY_SAFESETID is not set
# CONFIG_SECURITY_LOCKDOWN_LSM is not setCONFIG_INTEGRITY=yCONFIG_INTEGRITY_SIGNATURE=yCONFIG_INTEGRITY_ASYMMETRIC_KEYS=yCONFIG_INTEGRITY_TRUSTED_KEYRING=y
# CONFIG_INTEGRITY_PLATFORM_KEYRING is not setCONFIG_INTEGRITY_AUDIT=yCONFIG_IMA=yCONFIG_IMA_MEASURE_PCR_IDX=10CONFIG_IMA_LSM_RULES=y
# CONFIG_IMA_TEMPLATE is not setCONFIG_IMA_NG_TEMPLATE=y
# CONFIG_IMA_SIG_TEMPLATE is not setCONFIG_IMA_DEFAULT_TEMPLATE="ima-ng"CONFIG_IMA_DEFAULT_HASH_SHA1=y
# CONFIG_IMA_DEFAULT_HASH_SHA256 is not set
# CONFIG_IMA_DEFAULT_HASH_SHA512 is not setCONFIG_IMA_DEFAULT_HASH="sha1"
# CONFIG_IMA_WRITE_POLICY is not set
# CONFIG_IMA_READ_POLICY is not setCONFIG_IMA_APPRAISE=y
# CONFIG_IMA_ARCH_POLICY is not set
# CONFIG_IMA_APPRAISE_BUILD_POLICY is not set CONFIG_IMA_APPRAISE_BOOTPARAM=y
# CONFIG_IMA_APPRAISE_MODSIG is not setCONFIG_IMA_TRUSTED_KEYRING=y
# CONFIG_IMA_BLACKLIST_KEYRING is not set
# CONFIG_IMA_LOAD_X509 is not setCONFIG_IMA_MEASURE_ASYMMETRIC_KEYS=yCONFIG_IMA_QUEUE_EARLY_BOOT_KEYS=y
# CONFIG_IMA_SECURE_AND_OR_TRUSTED_BOOT is not setCONFIG_EVM=yCONFIG_EVM_ATTR_FSUUID=y
# CONFIG_EVM_ADD_XATTRS is not set
# CONFIG_EVM_LOAD_X509 is not setCONFIG_DEFAULT_SECURITY_SELINUX=y
# CONFIG_DEFAULT_SECURITY_APPARMOR is not set
# CONFIG_DEFAULT_SECURITY_DAC is not set CONFIG_LSM="lockdown,yama,loadpin,safesetid,integrity,selinux,smack,tomoyo,apparmor,bpf"
#
# Kernel hardening options
#
#
# Memory initialization
#CONFIG_INIT_STACK_NONE=y
# CONFIG_INIT_ON_ALLOC_DEFAULT_ON is not set
# CONFIG_INIT_ON_FREE_DEFAULT_ON is not set
# end of Memory initialization # end of Kernel hardening options # end of Security options
CONFIG_XOR_BLOCKS=mCONFIG_ASYNC_CORE=mCONFIG_ASYNC_MEMCPY=mCONFIG_ASYNC_XOR=mCONFIG_ASYNC_PQ=mCONFIG_ASYNC_RAID6_RECOV=mCONFIG_CRYPTO=y
#
# Crypto core or helper
#CONFIG_CRYPTO_ALGAPI=yCONFIG_CRYPTO_ALGAPI2=yCONFIG_CRYPTO_AEAD=yCONFIG_CRYPTO_AEAD2=yCONFIG_CRYPTO_SKCIPHER=yCONFIG_CRYPTO_SKCIPHER2=yCONFIG_CRYPTO_HASH=yCONFIG_CRYPTO_HASH2=yCONFIG_CRYPTO_RNG=yCONFIG_CRYPTO_RNG2=yCONFIG_CRYPTO_RNG_DEFAULT=yCONFIG_CRYPTO_AKCIPHER2=yCONFIG_CRYPTO_AKCIPHER=yCONFIG_CRYPTO_KPP2=yCONFIG_CRYPTO_KPP=mCONFIG_CRYPTO_ACOMP2=yCONFIG_CRYPTO_MANAGER=yCONFIG_CRYPTO_MANAGER2=yCONFIG_CRYPTO_USER=mCONFIG_CRYPTO_MANAGER_DISABLE_TESTS=yCONFIG_CRYPTO_GF128MUL=yCONFIG_CRYPTO_NULL=yCONFIG_CRYPTO_NULL2=yCONFIG_CRYPTO_PCRYPT=mCONFIG_CRYPTO_CRYPTD=yCONFIG_CRYPTO_AUTHENC=mCONFIG_CRYPTO_TEST=mCONFIG_CRYPTO_SIMD=y
992 lines not shown · raw message
Part of this message is not shown here. View the raw message.
RFC PATCH 67/97 drm/i915/guc: Suspend/resume implementation for new interface
In reply to Matthew BrostThe new GuC interface introduces an MMIO H2G command, INTEL_GUC_ACTION_RESET_CLIENT, which is used to implement suspend. This MMIO tears down any active contexts generating a context reset G2H CTB for each. Once that step completes the GuC tears down the CTB channels. It is safe to suspend once this MMIO H2G command completes and all G2H CTBs have been processed. In practice the i915 will likely never receive a G2H as suspend should only be called after the GPU is idle.
Resume is implemented in the same manner as before - simply reload the GuC firmware and reinitialize everything (e.g. CTB channels, contexts, etc..).
--- .../gpu/drm/i915/gt/uc/abi/guc_actions_abi.h | 1 + drivers/gpu/drm/i915/gt/uc/intel_guc.c | 64 ++++++++----------- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 14 ++-- .../gpu/drm/i915/gt/uc/intel_guc_submission.h | 5 ++ drivers/gpu/drm/i915/gt/uc/intel_uc.c | 28 +++++--- 5 files changed, 59 insertions(+), 53 deletions(-)
drivers/gpu/drm/i915/gt/uc/abi/guc_actions_abi.h +1 -0
@@ -146,6 +146,7 @@ enum intel_guc_action {INTEL_GUC_ACTION_REGISTER_COMMAND_TRANSPORT_BUFFER =0x4505 ,INTEL_GUC_ACTION_DEREGISTER_COMMAND_TRANSPORT_BUFFER =0x4506 ,INTEL_GUC_ACTION_DEREGISTER_CONTEXT_DONE =0x4600 , +INTEL_GUC_ACTION_RESET_CLIENT =0x5B01 , INTEL_GUC_ACTION_LIMIT };
drivers/gpu/drm/i915/gt/uc/intel_guc.c +26 -38
84 lines not on this page · raw message
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +7 -7
@@ -303,10 +303,10 @@ static int guc_submission_busy_loop(struct intel_guc* guc,return err; } -static int guc_wait_for_pending_msg (struct intel_guc *guc, -atomic_t *wait_var, -bool interruptible, -long timeout) +int intel_guc_wait_for_pending_msg (struct intel_guc *guc, +atomic_t *wait_var, +bool interruptible, +long timeout) {const int state = interruptible ?TASK_INTERRUPTIBLE :TASK_UNINTERRUPTIBLE ;
@@ -351,8 +351,8 @@ int intel_guc_wait_for_idle(struct intel_guc *guc, long timeout)if (unlikely (timeout <0 )) timeout = -timeout, interruptible = false; -return guc_wait_for_pending_msg (guc, &guc->outstanding_submission_g2h, - interruptible, timeout); +return intel_guc_wait_for_pending_msg (guc, &guc->outstanding_submission_g2h, + interruptible, timeout); }static int guc_lrc_desc_pin (struct intel_context *ce,bool loop);
@@ -624,7 +624,7 @@ void intel_guc_submission_reset_prepare(struct intel_guc *guc)for (i =0 ; i <4 &&atomic_read (&guc->outstanding_submission_g2h); ++i) {intel_guc_to_host_event_handler (guc);#define wait_for_reset (guc, wait_var) \ - guc_wait_for_pending_msg(guc, wait_var, false, (HZ / 20)) + intel_guc_wait_for_pending_msg(guc, wait_var, false, (HZ / 20))do {wait_for_reset (guc, &guc->outstanding_submission_g2h); }while (!list_empty (&guc->ct.requests.incoming));
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.h +5 -0
@@ -27,6 +27,11 @@ void intel_guc_log_context_info(struct intel_guc *guc, struct drm_printer *p);bool intel_guc_virtual_engine_has_heartbeat (const struct intel_engine_cs *ve); +int intel_guc_wait_for_pending_msg (struct intel_guc *guc, +atomic_t *wait_var, +bool interruptible, +long timeout); +static inline bool intel_guc_submission_is_supported (struct intel_guc *guc) {/* XXX: GuC submission is unavailable for now */
drivers/gpu/drm/i915/gt/uc/intel_uc.c +20 -8
@@ -591,14 +591,20 @@ void intel_uc_cancel_requests(struct intel_uc *uc)void intel_uc_runtime_suspend (struct intel_uc *uc) {struct intel_guc *guc = &uc->guc; -int err; -if (!intel_guc_is_ready (guc)) +if (!intel_guc_is_ready (guc)) { + guc->interrupts.enabled = false;return ; + } - err =intel_guc_suspend (guc); -if (err) -DRM_DEBUG_DRIVER ("Failed to suspend GuC, err=%d" , err); +/* +* Wait for any outstanding CTB before tearing down communication /w the +* GuC. +*/ +#define OUTSTANDING_CTB_TIMEOUT_PERIOD (HZ / 5) +intel_guc_wait_for_pending_msg (guc, &guc->outstanding_submission_g2h, + false,OUTSTANDING_CTB_TIMEOUT_PERIOD ); +GEM_WARN_ON (atomic_read (&guc->outstanding_submission_g2h));guc_disable_communication (guc); }
@@ -607,12 +613,18 @@ void intel_uc_suspend(struct intel_uc *uc) {struct intel_guc *guc = &uc->guc;intel_wakeref_t wakeref; +int err; -if (!intel_guc_is_ready (guc)) +if (!intel_guc_is_ready (guc)) { + guc->interrupts.enabled = false;return ; + } - with_intel_runtime_pm(uc_to_gt(uc)->uncore->rpm, wakeref) -intel_uc_runtime_suspend (uc); + with_intel_runtime_pm(&uc_to_gt(uc)->i915->runtime_pm, wakeref) { + err =intel_guc_suspend (guc); +if (err) +DRM_DEBUG_DRIVER ("Failed to suspend GuC, err=%d" , err); + } }static int __uc_resume (struct intel_uc *uc,bool enable_communication)
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC PATCH 68/97 drm/i915/guc: Handle context reset notification
In reply to Matthew BrostGuC will issue a reset on detecting an engine hang and will notify the driver via a G2H message. The driver will service the notification by resetting the guilty context to a simple state or banning it completely.
--- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 2 ++ drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 6 ++++ .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 35 +++++++++++++++++++ drivers/gpu/drm/i915/i915_trace.h | 10 ++++++ 4 files changed, 53 insertions(+)
drivers/gpu/drm/i915/gt/uc/intel_guc.h +2 -0
@@ -263,6 +263,8 @@ int intel_guc_deregister_done_process_msg(struct intel_guc *guc, const u32 *msg, u32 len);int intel_guc_sched_done_process_msg (struct intel_guc *guc,const u32 *msg,u32 len); +int intel_guc_context_reset_process_msg (struct intel_guc *guc, +const u32 *msg,u32 len);void intel_guc_submission_reset_prepare (struct intel_guc *guc);void intel_guc_submission_reset (struct intel_guc *guc,bool stalled);
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +6 -0
@@ -941,6 +941,12 @@ static int ct_process_request(struct intel_guc_ct *ct, struct ct_incoming_msg *rCT_ERROR (ct,"schedule context failed %x %*ph\n" , action,4 * len, payload);break ; +case INTEL_GUC_ACTION_CONTEXT_RESET_NOTIFICATION : + ret =intel_guc_context_reset_process_msg (guc, payload, len); +if (unlikely (ret)) +CT_ERROR (ct,"context reset notification failed %x %*ph\n" , + action,4 * len, payload); +break ;default : ret = -EOPNOTSUPP ;break ;
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +35 -0
@@ -2192,6 +2192,41 @@ int intel_guc_sched_done_process_msg(struct intel_guc *guc,return 0 ; } +static void guc_context_replay (struct intel_context *ce) +{ +struct i915_sched_engine *sched_engine = ce->engine->sched_engine; + +__guc_reset_context (ce, true); +i915_sched_engine_hi_kick (sched_engine); +} + +static void guc_handle_context_reset (struct intel_guc *guc, +struct intel_context *ce) +{ +trace_intel_context_reset (ce); +guc_context_replay (ce); +} + +int intel_guc_context_reset_process_msg (struct intel_guc *guc, +const u32 *msg,u32 len) +{ +struct intel_context *ce; +int desc_idx = msg[0 ]; + +if (unlikely (len !=1 )) { +drm_dbg (&guc_to_gt (guc)->i915->drm,"Invalid length %u" , len); +return -EPROTO ; + } + + ce =g2h_context_lookup (guc, desc_idx); +if (unlikely (!ce)) +return -EPROTO ; + +guc_handle_context_reset (guc, ce); + +return 0 ; +} +void intel_guc_log_submission_info (struct intel_guc *guc,struct drm_printer *p) {
drivers/gpu/drm/i915/i915_trace.h +10 -0
@@ -929,6 +929,11 @@ DECLARE_EVENT_CLASS(intel_context, __entry->guc_sched_state_no_lock) ); +DEFINE_EVENT (intel_context, intel_context_reset, + TP_PROTO(struct intel_context *ce), +TP_ARGS (ce) +); +DEFINE_EVENT (intel_context, intel_context_register, TP_PROTO(struct intel_context *ce), TP_ARGS(ce)
@@ -1026,6 +1031,11 @@ trace_i915_request_out(struct i915_request *rq) { } +static inline void +trace_intel_context_reset (struct intel_context *ce) +{ +} +static inline void trace_intel_context_register (struct intel_context *ce) {
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [RFC PATCH 68/97] drm/i915/guc: Handle context reset notification
Quoted 8 lines · Matthew Brost
GuC will issue a reset on detecting an engine hang and will notify the driver via a G2H message. The driver will service the notification by resetting the guilty context to a simple state or banning it completely.
Cc Matthew Brost <[email protected]>Cc John Harrison <[email protected]>Signed-off-by Matthew Brost <[email protected]>
Entirely aside, but I wonder whether we shouldn't just make non-recoverable contexts the only thing we support. But probably a too big can of worms.
-Daniel
Quoted 118 lines
--- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 2 ++ drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 6 ++++ .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 35 +++++++++++++++++++ drivers/gpu/drm/i915/i915_trace.h | 10 ++++++ 4 files changed, 53 insertions(+)drivers/gpu/drm/i915/gt/uc/intel_guc.h +2
-0@@ -263,6 +263,8 @@ int intel_guc_deregister_done_process_msg(struct intel_guc *guc, const u32 *msg, u32 len);int intel_guc_sched_done_process_msg (struct intel_guc *guc,const u32 *msg,u32 len); +int intel_guc_context_reset_process_msg (struct intel_guc *guc, +const u32 *msg,u32 len);void intel_guc_submission_reset_prepare (struct intel_guc *guc);void intel_guc_submission_reset (struct intel_guc *guc,bool stalled);drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +6
-0@@ -941,6 +941,12 @@ static int ct_process_request(struct intel_guc_ct *ct, struct ct_incoming_msg *rCT_ERROR (ct,"schedule context failed %x %*ph\n" , action,4 * len, payload);break ; +case INTEL_GUC_ACTION_CONTEXT_RESET_NOTIFICATION : + ret =intel_guc_context_reset_process_msg (guc, payload, len); +if (unlikely (ret)) +CT_ERROR (ct,"context reset notification failed %x %*ph\n" , + action,4 * len, payload); +break ;default : ret = -EOPNOTSUPP ;break ;drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +35
-0@@ -2192,6 +2192,41 @@ int intel_guc_sched_done_process_msg(struct intel_guc *guc,return 0 ; } +static void guc_context_replay (struct intel_context *ce) +{ +struct i915_sched_engine *sched_engine = ce->engine->sched_engine; + +__guc_reset_context (ce, true); +i915_sched_engine_hi_kick (sched_engine); +} + +static void guc_handle_context_reset (struct intel_guc *guc, +struct intel_context *ce) +{ +trace_intel_context_reset (ce); +guc_context_replay (ce); +} + +int intel_guc_context_reset_process_msg (struct intel_guc *guc, +const u32 *msg,u32 len) +{ +struct intel_context *ce; +int desc_idx = msg[0 ]; + +if (unlikely (len !=1 )) { +drm_dbg (&guc_to_gt (guc)->i915->drm,"Invalid length %u" , len); +return -EPROTO ; + } + + ce =g2h_context_lookup (guc, desc_idx); +if (unlikely (!ce)) +return -EPROTO ; + +guc_handle_context_reset (guc, ce); + +return 0 ; +} +void intel_guc_log_submission_info (struct intel_guc *guc,struct drm_printer *p) {drivers/gpu/drm/i915/i915_trace.h +10
-0@@ -929,6 +929,11 @@ DECLARE_EVENT_CLASS(intel_context, __entry->guc_sched_state_no_lock) ); +DEFINE_EVENT (intel_context, intel_context_reset, + TP_PROTO(struct intel_context *ce), +TP_ARGS (ce) +); +DEFINE_EVENT (intel_context, intel_context_register, TP_PROTO(struct intel_context *ce), TP_ARGS(ce)@@ -1026,6 +1031,11 @@ trace_i915_request_out(struct i915_request *rq) { } +static inline void +trace_intel_context_reset (struct intel_context *ce) +{ +} +static inline void trace_intel_context_register (struct intel_context *ce) {Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch
RFC PATCH 69/97 drm/i915/guc: Handle engine reset failure notification
In reply to Matthew BrostGuC will notify the driver, via G2H, if it fails to reset an engine. We recover by resorting to a full GPU reset.
--- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 2 + drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 6 +++ .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 43 +++++++++++++++++++ 3 files changed, 51 insertions(+)
drivers/gpu/drm/i915/gt/uc/intel_guc.h +2 -0
@@ -265,6 +265,8 @@ int intel_guc_sched_done_process_msg(struct intel_guc *guc, const u32 *msg, u32 len);int intel_guc_context_reset_process_msg (struct intel_guc *guc,const u32 *msg,u32 len); +int intel_guc_engine_failure_process_msg (struct intel_guc *guc, +const u32 *msg,u32 len);void intel_guc_submission_reset_prepare (struct intel_guc *guc);void intel_guc_submission_reset (struct intel_guc *guc,bool stalled);
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +6 -0
@@ -947,6 +947,12 @@ static int ct_process_request(struct intel_guc_ct *ct, struct ct_incoming_msg *rCT_ERROR (ct,"context reset notification failed %x %*ph\n" , action,4 * len, payload);break ; +case INTEL_GUC_ACTION_ENGINE_FAILURE_NOTIFICATION : + ret =intel_guc_engine_failure_process_msg (guc, payload, len); +if (unlikely (ret)) +CT_ERROR (ct,"engine failure handler failed %x %*ph\n" , + action,4 * len, payload); +break ;default : ret = -EOPNOTSUPP ;break ;
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +43 -0
49 lines not on this page · raw message
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC PATCH 70/97 drm/i915/guc: Enable the timer expired interrupt for GuC
In reply to Matthew BrostThe GuC can implement execution qunatums, detect hung contexts and other such things but it requires the timer expired interrupt to do so.
--- drivers/gpu/drm/i915/gt/intel_rps.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/i915/gt/intel_rps.c +4 -0
@@ -1877,6 +1877,10 @@ void intel_rps_init(struct intel_rps *rps)if (INTEL_GEN (i915) >=8 &&INTEL_GEN (i915) <11 ) rps->pm_intrmsk_mbz |=GEN8_PMINTR_DISABLE_REDIRECT_TO_GUC ; + +/* GuC needs ARAT expired interrupt unmasked */ +if (intel_uc_uses_guc_submission (&rps_to_gt (rps)->uc)) + rps->pm_intrmsk_mbz |=ARAT_EXPIRED_INTRMSK ; }void intel_rps_sanitize (struct intel_rps *rps)
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC PATCH 71/97 drm/i915/guc: Provide mmio list to be saved/restored on engine reset
In reply to Matthew BrostFrom: John Harrison <[email protected]>
The driver must provide GuC with a list of mmio registers that should be saved/restored during a GuC-based engine reset. Unfortunately, the list must be dynamically allocated as its size is variable. That means the driver must generate the list twice - once to work out the size and a second time to actually save it.
--- drivers/gpu/drm/i915/gt/intel_workarounds.c | 46 ++-- .../gpu/drm/i915/gt/intel_workarounds_types.h | 1 + drivers/gpu/drm/i915/gt/uc/intel_guc.h | 1 + drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c | 199 +++++++++++++++++- drivers/gpu/drm/i915/i915_reg.h | 1 + 5 files changed, 222 insertions(+), 26 deletions(-)
drivers/gpu/drm/i915/gt/intel_workarounds.c +24 -22
@@ -150,13 +150,14 @@ static void _wa_add(struct i915_wa_list *wal, const struct i915_wa *wa) }static void wa_add (struct i915_wa_list *wal,i915_reg_t reg, -u32 clear,u32 set,u32 read_mask) +u32 clear,u32 set,u32 read_mask,bool masked_reg) {struct i915_wa wa = { .reg = reg, .clr = clear, .set = set, .read = read_mask, + .masked_reg = masked_reg, };_wa_add (wal, &wa);
@@ -165,7 +166,7 @@ static void wa_add(struct i915_wa_list *wal, i915_reg_t reg,static void wa_write_clr_set (struct i915_wa_list *wal,i915_reg_t reg,u32 clear,u32 set) { -wa_add (wal, reg, clear, set, clear); +wa_add (wal, reg, clear, set, clear, false); } static void
@@ -200,20 +201,20 @@ wa_write_clr(struct i915_wa_list *wal, i915_reg_t reg, u32 clr)static void wa_masked_en (struct i915_wa_list *wal,i915_reg_t reg,u32 val) { -wa_add (wal, reg,0 ,_MASKED_BIT_ENABLE (val), val); +wa_add (wal, reg,0 ,_MASKED_BIT_ENABLE (val), val, true); }static void wa_masked_dis (struct i915_wa_list *wal,i915_reg_t reg,u32 val) { -wa_add (wal, reg,0 ,_MASKED_BIT_DISABLE (val), val); +wa_add (wal, reg,0 ,_MASKED_BIT_DISABLE (val), val, true); }static void wa_masked_field_set (struct i915_wa_list *wal,i915_reg_t reg,u32 mask,u32 val) { -wa_add (wal, reg,0 ,_MASKED_FIELD (mask, val), mask); +wa_add (wal, reg,0 ,_MASKED_FIELD (mask, val), mask, true); } static void gen6_ctx_workarounds_init(struct intel_engine_cs *engine,
@@ -583,10 +584,10 @@ static void icl_ctx_workarounds_init(struct intel_engine_cs *engine, GEN11_BLEND_EMB_FIX_DISABLE_IN_RCC);/* WaEnableFloatBlendOptimization:icl */ -wa_write_clr_set (wal, -GEN10_CACHE_MODE_SS , -0 ,/* write-only, so skip validation */ -_MASKED_BIT_ENABLE (FLOAT_BLEND_OPTIMIZATION_ENABLE )); +wa_add (wal,GEN10_CACHE_MODE_SS ,0 , +_MASKED_BIT_ENABLE (FLOAT_BLEND_OPTIMIZATION_ENABLE ), +0 /* write-only, so skip validation */ , + true);/* WaDisableGPGPUMidThreadPreemption:icl */ wa_masked_field_set(wal, GEN8_CS_CHICKEN1,
@@ -631,7 +632,7 @@ static void gen12_ctx_gt_tuning_init(struct intel_engine_cs *engine,FF_MODE2 ,FF_MODE2_TDS_TIMER_MASK ,FF_MODE2_TDS_TIMER_128 , - 0); + 0, false); } static void gen12_ctx_workarounds_init(struct intel_engine_cs *engine,
@@ -668,7 +669,7 @@ static void gen12_ctx_workarounds_init(struct intel_engine_cs *engine,FF_MODE2 ,FF_MODE2_GS_TIMER_MASK ,FF_MODE2_GS_TIMER_224 , - 0); + 0, false); } static void dg1_ctx_workarounds_init(struct intel_engine_cs *engine,
@@ -839,7 +840,7 @@ hsw_gt_workarounds_init(struct drm_i915_private *i915, struct i915_wa_list *wal)wa_add (wal,HSW_ROW_CHICKEN3 ,0 ,_MASKED_BIT_ENABLE (HSW_ROW_CHICKEN3_L3_GLOBAL_ATOMICS_DISABLE ), -0 /* XXX does this reg exist? */ ); +0 /* XXX does this reg exist? */ , true);/* WaVSRefCountFullforceMissDisable:hsw */ wa_write_clr (wal,GEN7_FF_THREAD_MODE ,GEN7_FF_VS_REF_CNT_FFME );
@@ -1950,10 +1951,10 @@ rcs_engine_wa_init(struct intel_engine_cs *engine, struct i915_wa_list *wal)* disable bit, which we don't touch here, but it's good * to keep in mind (see 3DSTATE_PS and 3DSTATE_WM). */ -wa_add (wal,GEN7_GT_MODE ,0 , -_MASKED_FIELD (GEN6_WIZ_HASHING_MASK , - GEN6_WIZ_HASHING_16x4), - GEN6_WIZ_HASHING_16x4); +wa_masked_field_set (wal, +GEN7_GT_MODE , +GEN6_WIZ_HASHING_MASK , + GEN6_WIZ_HASHING_16x4); }if (IS_GEN_RANGE (i915,6 ,7 ))
@@ -2003,10 +2004,10 @@ rcs_engine_wa_init(struct intel_engine_cs *engine, struct i915_wa_list *wal)* disable bit, which we don't touch here, but it's good * to keep in mind (see 3DSTATE_PS and 3DSTATE_WM). */ -wa_add (wal, -GEN6_GT_MODE ,0 , -_MASKED_FIELD (GEN6_WIZ_HASHING_MASK , GEN6_WIZ_HASHING_16x4), - GEN6_WIZ_HASHING_16x4); +wa_masked_field_set (wal, +GEN7_GT_MODE , +GEN6_WIZ_HASHING_MASK , + GEN6_WIZ_HASHING_16x4);/* WaDisable_RenderCache_OperationalFlush:snb */ wa_masked_dis (wal,CACHE_MODE_0 ,RC_OP_FLUSH_ENABLE );
@@ -2027,7 +2028,7 @@ rcs_engine_wa_init(struct intel_engine_cs *engine, struct i915_wa_list *wal)wa_add (wal,MI_MODE ,0 ,_MASKED_BIT_ENABLE (VS_TIMER_DISPATCH ),/* XXX bit doesn't stick on Broadwater */ -IS_I965G (i915) ?0 :VS_TIMER_DISPATCH ); +IS_I965G (i915) ?0 :VS_TIMER_DISPATCH , true);if (IS_GEN (i915,4 ))/*
@@ -2042,7 +2043,8 @@ rcs_engine_wa_init(struct intel_engine_cs *engine, struct i915_wa_list *wal)*/ wa_add (wal,ECOSKPD ,0 ,_MASKED_BIT_ENABLE (ECO_CONSTANT_BUFFER_SR_DISABLE ), -0 /* XXX bit doesn't stick on Broadwater */ ); +0 /* XXX bit doesn't stick on Broadwater */ , + true); } static void
drivers/gpu/drm/i915/gt/intel_workarounds_types.h +1 -0
@@ -15,6 +15,7 @@ struct i915_wa {u32 clr;u32 set;u32 read; +bool masked_reg; };struct i915_wa_list {
drivers/gpu/drm/i915/gt/uc/intel_guc.h +1 -0
@@ -59,6 +59,7 @@ struct intel_guc {struct i915_vma *ads_vma;struct __guc_ads_blob *ads_blob; +u32 ads_regset_size;struct i915_vma *lrc_desc_pool;void *lrc_desc_pool_vaddr;
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c +195 -4
250 lines not on this page · raw message
drivers/gpu/drm/i915/i915_reg.h +1 -0
@@ -12166,6 +12166,7 @@ enum skl_power_gate {/* MOCS (Memory Object Control State) registers */ #define GEN9_LNCFCMOCS (i) _MMIO(0xb020 + (i) * 4)/* L3 Cache Control */ +#define GEN9_LNCFCMOCS_REG_COUNT 32#define __GEN9_RCS0_MOCS0 0xc800#define GEN9_GFX_MOCS (i) _MMIO(__GEN9_RCS0_MOCS0 + (i) * 4)
Signature · 1 line
2.28.0
RFC PATCH 72/97 drm/i915/guc: Don't complain about reset races
In reply to Matthew BrostFrom: John Harrison <[email protected]>
It is impossible to seal all race conditions of resets occurring concurrent to other operations. At least, not without introducing excesive mutex locking. Instead, don't complain if it occurs. In particular, don't complain if trying to send a H2G during a reset. Whatever the H2G was about should get redone once the reset is over.
--- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 5 ++++- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 4 ++++ drivers/gpu/drm/i915/gt/uc/intel_uc.h | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +4 -1
@@ -718,7 +718,10 @@ int intel_guc_ct_send(struct intel_guc_ct *ct, const u32 *action, u32 len,int ret;if (unlikely (!ct->enabled)) { -WARN (1 ,"Unexpected send: action=%#x\n" , *action); +struct intel_guc *guc =ct_to_guc (ct); + struct intel_uc *uc = container_of(guc, struct intel_uc, guc); + +WARN (!uc->reset_in_progress,"Unexpected send: action=%#x\n" , *action);return -ENODEV ; }
drivers/gpu/drm/i915/gt/uc/intel_uc.c +4 -0
@@ -550,6 +550,8 @@ void intel_uc_reset_prepare(struct intel_uc *uc) {struct intel_guc *guc = &uc->guc; + uc->reset_in_progress = true; +/* Firmware expected to be running when this function is called */ if (!intel_guc_is_ready (guc)) goto sanitize;
@@ -574,6 +576,8 @@ void intel_uc_reset_finish(struct intel_uc *uc) {struct intel_guc *guc = &uc->guc; + uc->reset_in_progress = false; +/* Firmware expected to be running when this function is called */ if (intel_guc_is_fw_running (guc) &&intel_uc_uses_guc_submission (uc))intel_guc_submission_reset_finish (guc);
drivers/gpu/drm/i915/gt/uc/intel_uc.h +2 -0
@@ -30,6 +30,8 @@ struct intel_uc {/* Snapshot of GuC log from last failed load */ struct drm_i915_gem_object *load_err_log; + +bool reset_in_progress; };void intel_uc_init_early (struct intel_uc *uc);
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC PATCH 73/97 drm/i915/guc: Enable GuC engine reset
In reply to Matthew BrostFrom: John Harrison <[email protected]>
Clear the 'disable resets' flag to allow GuC to reset hung contexts (detected via pre-emption timeout).
--- drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c +1 -2
@@ -84,8 +84,7 @@ static void guc_policies_init(struct guc_policies *policies) { policies->dpc_promote_time =GLOBAL_POLICY_DEFAULT_DPC_PROMOTE_TIME_US ; policies->max_num_work_items =GLOBAL_POLICY_MAX_NUM_WI ; -/* Disable automatic resets as not yet supported. */ - policies->global_flags =GLOBAL_POLICY_DISABLE_ENGINE_RESET ; + policies->global_flags =0 ; policies->is_valid =1 ; }
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC PATCH 74/97 drm/i915/guc: Capture error state on context reset
In reply to Matthew BrostWe receive notification of an engine reset from GuC at its completion. Meaning GuC has potentially cleared any HW state we may have been interested in capturing. GuC resumes scheduling on the engine post-reset, as the resets are meant to be transparent, further muddling our error state.
There is ongoing work to define an API for a GuC debug state dump. The suggestion for now is to manually disable FW initiated resets in cases where debug state is needed.
--- drivers/gpu/drm/i915/gt/intel_context.c | 20 +++++++++++ drivers/gpu/drm/i915/gt/intel_context.h | 3 ++ drivers/gpu/drm/i915/gt/intel_engine.h | 21 ++++++++++- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 11 ++++-- drivers/gpu/drm/i915/gt/intel_engine_types.h | 2 ++ .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 35 +++++++++---------- drivers/gpu/drm/i915/i915_gpu_error.c | 25 ++++++++++--- 7 files changed, 91 insertions(+), 26 deletions(-)
drivers/gpu/drm/i915/gt/intel_context.c +20 -0
@@ -514,6 +514,26 @@ struct i915_request *intel_context_create_request(struct intel_context *ce)return rq; } +struct i915_request *intel_context_find_active_request (struct intel_context *ce) +{ +struct i915_request *rq, *active =NULL ; +unsigned long flags; + +GEM_BUG_ON (!intel_engine_uses_guc (ce->engine)); + +spin_lock_irqsave (&ce->guc_active.lock, flags); +list_for_each_entry_reverse (rq, &ce->guc_active.requests, + sched.link) { +if (i915_request_completed (rq)) +break ; + + active = rq; + } +spin_unlock_irqrestore (&ce->guc_active.lock, flags); + +return active; +} +#if IS_ENABLED (CONFIG_DRM_I915_SELFTEST )#include "selftest_context.c" #endif
drivers/gpu/drm/i915/gt/intel_context.h +3 -0
@@ -195,6 +195,9 @@ int intel_context_prepare_remote_request(struct intel_context *ce,struct i915_request *intel_context_create_request (struct intel_context *ce); +struct i915_request * +intel_context_find_active_request (struct intel_context *ce); +static inline struct intel_ring *__intel_context_ring_size (u64 sz) { return u64_to_ptr(struct intel_ring, sz);
drivers/gpu/drm/i915/gt/intel_engine.h +20 -1
@@ -242,7 +242,7 @@ ktime_t intel_engine_get_busy_time(struct intel_engine_cs *engine, ktime_t *now);struct i915_request * -intel_engine_find_active_request (struct intel_engine_cs *engine); +intel_engine_execlist_find_hung_request (struct intel_engine_cs *engine);u32 intel_engine_context_size (struct intel_gt *gt,u8 class);
@@ -316,4 +316,23 @@ intel_engine_get_sibling(struct intel_engine_cs *engine, unsigned int sibling) return engine->cops->get_sibling(engine, sibling); } +static inline void +intel_engine_set_hung_context (struct intel_engine_cs *engine, +struct intel_context *ce) +{ + engine->hung_ce = ce; +} + +static inline void +intel_engine_clear_hung_context (struct intel_engine_cs *engine) +{ +intel_engine_set_hung_context (engine,NULL ); +} + +static inline struct intel_context * +intel_engine_get_hung_context (struct intel_engine_cs *engine) +{ +return engine->hung_ce; +} +#endif /* _INTEL_RINGBUFFER_H_ */
drivers/gpu/drm/i915/gt/intel_engine_cs.c +9 -2
@@ -1727,7 +1727,7 @@ void intel_engine_dump(struct intel_engine_cs *engine,drm_printf (m,"\tRequests:\n" );spin_lock_irqsave (&engine->sched_engine->lock, flags); - rq =intel_engine_find_active_request (engine); + rq =intel_engine_execlist_find_hung_request (engine);if (rq) {struct intel_timeline *tl =get_timeline (rq);
@@ -1838,10 +1838,17 @@ static bool match_ring(struct i915_request *rq) }struct i915_request * -intel_engine_find_active_request (struct intel_engine_cs *engine) +intel_engine_execlist_find_hung_request (struct intel_engine_cs *engine) {struct i915_request *request, *active =NULL ; +/* +* This search does not work in GuC submission mode. However, the GuC +* will report the hanging context directly to the driver itself. So +* the driver should never get here when in GuC mode. +*/ +GEM_BUG_ON (intel_uc_uses_guc_submission (&engine->gt->uc)); +/* * We are called by the error capture, reset and to dump engine * state at random points in time. In particular, note that neither is
drivers/gpu/drm/i915/gt/intel_engine_types.h +2 -0
@@ -304,6 +304,8 @@ struct intel_engine_cs {/* keep a request in reserve for a [pm] barrier under oom */ struct i915_request *request_pool; +struct intel_context *hung_ce; +struct llist_head barrier_tasks;struct intel_context *kernel_context;/* pinned */
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +16 -19
@@ -726,24 +726,6 @@ __unwind_incomplete_requests(struct intel_context *ce)spin_unlock_irqrestore (&sched_engine->lock, flags); } -static struct i915_request *context_find_active_request (struct intel_context *ce) -{ -struct i915_request *rq, *active =NULL ; -unsigned long flags; - -spin_lock_irqsave (&ce->guc_active.lock, flags); -list_for_each_entry_reverse (rq, &ce->guc_active.requests, - sched.link) { -if (i915_request_completed (rq)) -break ; - - active = rq; - } -spin_unlock_irqrestore (&ce->guc_active.lock, flags); - -return active; -} -static void __guc_reset_context (struct intel_context *ce,bool stalled) {struct i915_request *rq;
@@ -757,7 +739,7 @@ static void __guc_reset_context(struct intel_context *ce, bool stalled)*/ clr_context_enabled (ce); - rq =context_find_active_request (ce); + rq =intel_context_find_active_request (ce);if (!rq) { head = ce->ring->tail; stalled = false;
@@ -2192,6 +2174,20 @@ int intel_guc_sched_done_process_msg(struct intel_guc *guc,return 0 ; } +static void capture_error_state (struct intel_guc *guc, +struct intel_context *ce) +{ +struct intel_gt *gt =guc_to_gt (guc); +struct drm_i915_private *i915 = gt->i915; +struct intel_engine_cs *engine =__context_to_physical_engine (ce); +intel_wakeref_t wakeref; + +intel_engine_set_hung_context (engine, ce); + with_intel_runtime_pm(&i915->runtime_pm, wakeref) +i915_capture_error_state (gt, engine->mask); +atomic_inc (&i915->gpu_error.reset_engine_count[engine->uabi_class]); +} +static void guc_context_replay (struct intel_context *ce) {struct i915_sched_engine *sched_engine = ce->engine->sched_engine;
@@ -2204,6 +2200,7 @@ static void guc_handle_context_reset(struct intel_guc *guc, struct intel_context *ce) {trace_intel_context_reset (ce); +capture_error_state (guc, ce);guc_context_replay (ce); }
drivers/gpu/drm/i915/i915_gpu_error.c +21 -4
@@ -1435,20 +1435,37 @@ capture_engine(struct intel_engine_cs *engine, {struct intel_engine_capture_vma *capture =NULL ;struct intel_engine_coredump *ee; -struct i915_request *rq; +struct intel_context *ce; +struct i915_request *rq =NULL ;unsigned long flags; ee =intel_engine_coredump_alloc (engine,GFP_KERNEL );if (!ee)return NULL ; -spin_lock_irqsave (&engine->sched_engine->lock, flags); - rq =intel_engine_find_active_request (engine); + ce =intel_engine_get_hung_context (engine); +if (ce) { +intel_engine_clear_hung_context (engine); + rq =intel_context_find_active_request (ce); +if (!rq || !i915_request_started (rq)) + goto no_request_capture; + }else { +/* +* Getting here with GuC enabled means it is a forced error capture +* with no actual hang. So, no need to attempt the execlist search. +*/ +if (!intel_uc_uses_guc_submission (&engine->gt->uc)) { +spin_lock_irqsave (&engine->sched_engine->lock, flags); + rq =intel_engine_execlist_find_hung_request (engine); +spin_unlock_irqrestore (&engine->sched_engine->lock, + flags); + } + }if (rq) capture =intel_engine_coredump_add_request (ee, rq,ATOMIC_MAYFAIL ); -spin_unlock_irqrestore (&engine->sched_engine->lock, flags);if (!capture) { +no_request_capture:kfree (ee);return NULL ; }
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [RFC PATCH 74/97] drm/i915/guc: Capture error state on context reset
Quoted 11 lines · Matthew Brost
We receive notification of an engine reset from GuC at its completion. Meaning GuC has potentially cleared any HW state we may have been interested in capturing. GuC resumes scheduling on the engine post-reset, as the resets are meant to be transparent, further muddling our error state.
There is ongoing work to define an API for a GuC debug state dump. The suggestion for now is to manually disable FW initiated resets in cases where debug state is needed.
Signed-off-by Matthew Brost <[email protected]>
This looks a bit backwards to me:
- I figured we should capture error state when we get the G2H, in which case I hope we do know which the offending context was that got shot.
- For now we're missing the hw state, but we should still be able to capture the buffers userspace wants us to capture. So that could be wired up already?
But yeah register state capturing needs support from GuC fw.
I think this is a big enough miss in GuC features that we should list it on the rfc as a thing to fix.
-Daniel
Quoted 257 lines
--- drivers/gpu/drm/i915/gt/intel_context.c | 20 +++++++++++ drivers/gpu/drm/i915/gt/intel_context.h | 3 ++ drivers/gpu/drm/i915/gt/intel_engine.h | 21 ++++++++++- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 11 ++++-- drivers/gpu/drm/i915/gt/intel_engine_types.h | 2 ++ .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 35 +++++++++---------- drivers/gpu/drm/i915/i915_gpu_error.c | 25 ++++++++++--- 7 files changed, 91 insertions(+), 26 deletions(-)drivers/gpu/drm/i915/gt/intel_context.c +20
-0@@ -514,6 +514,26 @@ struct i915_request *intel_context_create_request(struct intel_context *ce)return rq; } +struct i915_request *intel_context_find_active_request (struct intel_context *ce) +{ +struct i915_request *rq, *active =NULL ; +unsigned long flags; + +GEM_BUG_ON (!intel_engine_uses_guc (ce->engine)); + +spin_lock_irqsave (&ce->guc_active.lock, flags); +list_for_each_entry_reverse (rq, &ce->guc_active.requests, + sched.link) { +if (i915_request_completed (rq)) +break ; + + active = rq; + } +spin_unlock_irqrestore (&ce->guc_active.lock, flags); + +return active; +} +#if IS_ENABLED (CONFIG_DRM_I915_SELFTEST )#include "selftest_context.c" #endif drivers/gpu/drm/i915/gt/intel_context.h +3
-0@@ -195,6 +195,9 @@ int intel_context_prepare_remote_request(struct intel_context *ce,struct i915_request *intel_context_create_request (struct intel_context *ce); +struct i915_request * +intel_context_find_active_request (struct intel_context *ce); +static inline struct intel_ring *__intel_context_ring_size (u64 sz) { return u64_to_ptr(struct intel_ring, sz);drivers/gpu/drm/i915/gt/intel_engine.h +20
-1@@ -242,7 +242,7 @@ ktime_t intel_engine_get_busy_time(struct intel_engine_cs *engine, ktime_t *now);struct i915_request * -intel_engine_find_active_request (struct intel_engine_cs *engine); +intel_engine_execlist_find_hung_request (struct intel_engine_cs *engine);u32 intel_engine_context_size (struct intel_gt *gt,u8 class);@@ -316,4 +316,23 @@ intel_engine_get_sibling(struct intel_engine_cs *engine, unsigned int sibling) return engine->cops->get_sibling(engine, sibling); } +static inline void +intel_engine_set_hung_context (struct intel_engine_cs *engine, +struct intel_context *ce) +{ + engine->hung_ce = ce; +} + +static inline void +intel_engine_clear_hung_context (struct intel_engine_cs *engine) +{ +intel_engine_set_hung_context (engine,NULL ); +} + +static inline struct intel_context * +intel_engine_get_hung_context (struct intel_engine_cs *engine) +{ +return engine->hung_ce; +} +#endif /* _INTEL_RINGBUFFER_H_ */ drivers/gpu/drm/i915/gt/intel_engine_cs.c +9
-2@@ -1727,7 +1727,7 @@ void intel_engine_dump(struct intel_engine_cs *engine,drm_printf (m,"\tRequests:\n" );spin_lock_irqsave (&engine->sched_engine->lock, flags); - rq =intel_engine_find_active_request (engine); + rq =intel_engine_execlist_find_hung_request (engine);if (rq) {struct intel_timeline *tl =get_timeline (rq);@@ -1838,10 +1838,17 @@ static bool match_ring(struct i915_request *rq) }struct i915_request * -intel_engine_find_active_request (struct intel_engine_cs *engine) +intel_engine_execlist_find_hung_request (struct intel_engine_cs *engine) {struct i915_request *request, *active =NULL ; +/* +* This search does not work in GuC submission mode. However, the GuC +* will report the hanging context directly to the driver itself. So +* the driver should never get here when in GuC mode. +*/ +GEM_BUG_ON (intel_uc_uses_guc_submission (&engine->gt->uc)); +/* * We are called by the error capture, reset and to dump engine * state at random points in time. In particular, note that neither is drivers/gpu/drm/i915/gt/intel_engine_types.h +2
-0@@ -304,6 +304,8 @@ struct intel_engine_cs {/* keep a request in reserve for a [pm] barrier under oom */ struct i915_request *request_pool; +struct intel_context *hung_ce; +struct llist_head barrier_tasks;struct intel_context *kernel_context;/* pinned */ drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +16
-19@@ -726,24 +726,6 @@ __unwind_incomplete_requests(struct intel_context *ce)spin_unlock_irqrestore (&sched_engine->lock, flags); } -static struct i915_request *context_find_active_request (struct intel_context *ce) -{ -struct i915_request *rq, *active =NULL ; -unsigned long flags; - -spin_lock_irqsave (&ce->guc_active.lock, flags); -list_for_each_entry_reverse (rq, &ce->guc_active.requests, - sched.link) { -if (i915_request_completed (rq)) -break ; - - active = rq; - } -spin_unlock_irqrestore (&ce->guc_active.lock, flags); - -return active; -} -static void __guc_reset_context (struct intel_context *ce,bool stalled) {struct i915_request *rq;@@ -757,7 +739,7 @@ static void __guc_reset_context(struct intel_context *ce, bool stalled)*/ clr_context_enabled (ce); - rq =context_find_active_request (ce); + rq =intel_context_find_active_request (ce);if (!rq) { head = ce->ring->tail; stalled = false;@@ -2192,6 +2174,20 @@ int intel_guc_sched_done_process_msg(struct intel_guc *guc,return 0 ; } +static void capture_error_state (struct intel_guc *guc, +struct intel_context *ce) +{ +struct intel_gt *gt =guc_to_gt (guc); +struct drm_i915_private *i915 = gt->i915; +struct intel_engine_cs *engine =__context_to_physical_engine (ce); +intel_wakeref_t wakeref; + +intel_engine_set_hung_context (engine, ce); + with_intel_runtime_pm(&i915->runtime_pm, wakeref) +i915_capture_error_state (gt, engine->mask); +atomic_inc (&i915->gpu_error.reset_engine_count[engine->uabi_class]); +} +static void guc_context_replay (struct intel_context *ce) {struct i915_sched_engine *sched_engine = ce->engine->sched_engine;@@ -2204,6 +2200,7 @@ static void guc_handle_context_reset(struct intel_guc *guc, struct intel_context *ce) {trace_intel_context_reset (ce); +capture_error_state (guc, ce);guc_context_replay (ce); }drivers/gpu/drm/i915/i915_gpu_error.c +21
-4@@ -1435,20 +1435,37 @@ capture_engine(struct intel_engine_cs *engine, {struct intel_engine_capture_vma *capture =NULL ;struct intel_engine_coredump *ee; -struct i915_request *rq; +struct intel_context *ce; +struct i915_request *rq =NULL ;unsigned long flags; ee =intel_engine_coredump_alloc (engine,GFP_KERNEL );if (!ee)return NULL ; -spin_lock_irqsave (&engine->sched_engine->lock, flags); - rq =intel_engine_find_active_request (engine); + ce =intel_engine_get_hung_context (engine); +if (ce) { +intel_engine_clear_hung_context (engine); + rq =intel_context_find_active_request (ce); +if (!rq || !i915_request_started (rq)) + goto no_request_capture; + }else { +/* +* Getting here with GuC enabled means it is a forced error capture +* with no actual hang. So, no need to attempt the execlist search. +*/ +if (!intel_uc_uses_guc_submission (&engine->gt->uc)) { +spin_lock_irqsave (&engine->sched_engine->lock, flags); + rq =intel_engine_execlist_find_hung_request (engine); +spin_unlock_irqrestore (&engine->sched_engine->lock, + flags); + } + }if (rq) capture =intel_engine_coredump_add_request (ee, rq,ATOMIC_MAYFAIL ); -spin_unlock_irqrestore (&engine->sched_engine->lock, flags);if (!capture) { +no_request_capture:kfree (ee);return NULL ; }Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch
Re: [Intel-gfx] [RFC PATCH 74/97] drm/i915/guc: Capture error state on context reset
Quoted 7 lines · Daniel Vetter
Quoted 6 lines · Matthew Brost
We receive notification of an engine reset from GuC at its completion. Meaning GuC has potentially cleared any HW state we may have been interested in capturing. GuC resumes scheduling on the engine post-reset, as the resets are meant to be transparent, further muddling our error state.
Quoted 8 lines
Quoted 5 lines
There is ongoing work to define an API for a GuC debug state dump. The suggestion for now is to manually disable FW initiated resets in cases where debug state is needed.
Signed-off-by Matthew Brost <[email protected]>This looks a bit backwards to me:
Definitely a bit hacky but this patch does the best to capture the error as it can,
Quoted 3 lines
- I figured we should capture error state when we get the G2H, in which case I hope we do know which the offending context was that got shot.
We know which context was shot based on the G2H. See 'hung_ce' in this patch.
Quoted 3 lines
- For now we're missing the hw state, but we should still be able to capture the buffers userspace wants us to capture. So that could be wired up already?
Which buffers exactly? We dump all buffers associated with the context.
Quoted 5 lines
But yeah register state capturing needs support from GuC fw.
I think this is a big enough miss in GuC features that we should list it on the rfc as a thing to fix.
Agree this needs to be fixed.
Matt
Quoted 264 lines
-Daniel
Quoted 257 lines
--- drivers/gpu/drm/i915/gt/intel_context.c | 20 +++++++++++ drivers/gpu/drm/i915/gt/intel_context.h | 3 ++ drivers/gpu/drm/i915/gt/intel_engine.h | 21 ++++++++++- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 11 ++++-- drivers/gpu/drm/i915/gt/intel_engine_types.h | 2 ++ .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 35 +++++++++---------- drivers/gpu/drm/i915/i915_gpu_error.c | 25 ++++++++++--- 7 files changed, 91 insertions(+), 26 deletions(-)drivers/gpu/drm/i915/gt/intel_context.c +20
-0@@ -514,6 +514,26 @@ struct i915_request *intel_context_create_request(struct intel_context *ce)return rq; } +struct i915_request *intel_context_find_active_request (struct intel_context *ce) +{ +struct i915_request *rq, *active =NULL ; +unsigned long flags; + +GEM_BUG_ON (!intel_engine_uses_guc (ce->engine)); + +spin_lock_irqsave (&ce->guc_active.lock, flags); +list_for_each_entry_reverse (rq, &ce->guc_active.requests, + sched.link) { +if (i915_request_completed (rq)) +break ; + + active = rq; + } +spin_unlock_irqrestore (&ce->guc_active.lock, flags); + +return active; +} +#if IS_ENABLED (CONFIG_DRM_I915_SELFTEST )#include "selftest_context.c" #endif drivers/gpu/drm/i915/gt/intel_context.h +3
-0@@ -195,6 +195,9 @@ int intel_context_prepare_remote_request(struct intel_context *ce,struct i915_request *intel_context_create_request (struct intel_context *ce); +struct i915_request * +intel_context_find_active_request (struct intel_context *ce); +static inline struct intel_ring *__intel_context_ring_size (u64 sz) { return u64_to_ptr(struct intel_ring, sz);drivers/gpu/drm/i915/gt/intel_engine.h +20
-1@@ -242,7 +242,7 @@ ktime_t intel_engine_get_busy_time(struct intel_engine_cs *engine, ktime_t *now);struct i915_request * -intel_engine_find_active_request (struct intel_engine_cs *engine); +intel_engine_execlist_find_hung_request (struct intel_engine_cs *engine);u32 intel_engine_context_size (struct intel_gt *gt,u8 class);@@ -316,4 +316,23 @@ intel_engine_get_sibling(struct intel_engine_cs *engine, unsigned int sibling) return engine->cops->get_sibling(engine, sibling); } +static inline void +intel_engine_set_hung_context (struct intel_engine_cs *engine, +struct intel_context *ce) +{ + engine->hung_ce = ce; +} + +static inline void +intel_engine_clear_hung_context (struct intel_engine_cs *engine) +{ +intel_engine_set_hung_context (engine,NULL ); +} + +static inline struct intel_context * +intel_engine_get_hung_context (struct intel_engine_cs *engine) +{ +return engine->hung_ce; +} +#endif /* _INTEL_RINGBUFFER_H_ */ drivers/gpu/drm/i915/gt/intel_engine_cs.c +9
-2@@ -1727,7 +1727,7 @@ void intel_engine_dump(struct intel_engine_cs *engine,drm_printf (m,"\tRequests:\n" );spin_lock_irqsave (&engine->sched_engine->lock, flags); - rq =intel_engine_find_active_request (engine); + rq =intel_engine_execlist_find_hung_request (engine);if (rq) {struct intel_timeline *tl =get_timeline (rq);@@ -1838,10 +1838,17 @@ static bool match_ring(struct i915_request *rq) }struct i915_request * -intel_engine_find_active_request (struct intel_engine_cs *engine) +intel_engine_execlist_find_hung_request (struct intel_engine_cs *engine) {struct i915_request *request, *active =NULL ; +/* +* This search does not work in GuC submission mode. However, the GuC +* will report the hanging context directly to the driver itself. So +* the driver should never get here when in GuC mode. +*/ +GEM_BUG_ON (intel_uc_uses_guc_submission (&engine->gt->uc)); +/* * We are called by the error capture, reset and to dump engine * state at random points in time. In particular, note that neither is drivers/gpu/drm/i915/gt/intel_engine_types.h +2
-0@@ -304,6 +304,8 @@ struct intel_engine_cs {/* keep a request in reserve for a [pm] barrier under oom */ struct i915_request *request_pool; +struct intel_context *hung_ce; +struct llist_head barrier_tasks;struct intel_context *kernel_context;/* pinned */ drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +16
-19@@ -726,24 +726,6 @@ __unwind_incomplete_requests(struct intel_context *ce)spin_unlock_irqrestore (&sched_engine->lock, flags); } -static struct i915_request *context_find_active_request (struct intel_context *ce) -{ -struct i915_request *rq, *active =NULL ; -unsigned long flags; - -spin_lock_irqsave (&ce->guc_active.lock, flags); -list_for_each_entry_reverse (rq, &ce->guc_active.requests, - sched.link) { -if (i915_request_completed (rq)) -break ; - - active = rq; - } -spin_unlock_irqrestore (&ce->guc_active.lock, flags); - -return active; -} -static void __guc_reset_context (struct intel_context *ce,bool stalled) {struct i915_request *rq;@@ -757,7 +739,7 @@ static void __guc_reset_context(struct intel_context *ce, bool stalled)*/ clr_context_enabled (ce); - rq =context_find_active_request (ce); + rq =intel_context_find_active_request (ce);if (!rq) { head = ce->ring->tail; stalled = false;@@ -2192,6 +2174,20 @@ int intel_guc_sched_done_process_msg(struct intel_guc *guc,return 0 ; } +static void capture_error_state (struct intel_guc *guc, +struct intel_context *ce) +{ +struct intel_gt *gt =guc_to_gt (guc); +struct drm_i915_private *i915 = gt->i915; +struct intel_engine_cs *engine =__context_to_physical_engine (ce); +intel_wakeref_t wakeref; + +intel_engine_set_hung_context (engine, ce); + with_intel_runtime_pm(&i915->runtime_pm, wakeref) +i915_capture_error_state (gt, engine->mask); +atomic_inc (&i915->gpu_error.reset_engine_count[engine->uabi_class]); +} +static void guc_context_replay (struct intel_context *ce) {struct i915_sched_engine *sched_engine = ce->engine->sched_engine;@@ -2204,6 +2200,7 @@ static void guc_handle_context_reset(struct intel_guc *guc, struct intel_context *ce) {trace_intel_context_reset (ce); +capture_error_state (guc, ce);guc_context_replay (ce); }drivers/gpu/drm/i915/i915_gpu_error.c +21
-4@@ -1435,20 +1435,37 @@ capture_engine(struct intel_engine_cs *engine, {struct intel_engine_capture_vma *capture =NULL ;struct intel_engine_coredump *ee; -struct i915_request *rq; +struct intel_context *ce; +struct i915_request *rq =NULL ;unsigned long flags; ee =intel_engine_coredump_alloc (engine,GFP_KERNEL );if (!ee)return NULL ; -spin_lock_irqsave (&engine->sched_engine->lock, flags); - rq =intel_engine_find_active_request (engine); + ce =intel_engine_get_hung_context (engine); +if (ce) { +intel_engine_clear_hung_context (engine); + rq =intel_context_find_active_request (ce); +if (!rq || !i915_request_started (rq)) + goto no_request_capture; + }else { +/* +* Getting here with GuC enabled means it is a forced error capture +* with no actual hang. So, no need to attempt the execlist search. +*/ +if (!intel_uc_uses_guc_submission (&engine->gt->uc)) { +spin_lock_irqsave (&engine->sched_engine->lock, flags); + rq =intel_engine_execlist_find_hung_request (engine); +spin_unlock_irqrestore (&engine->sched_engine->lock, + flags); + } + }if (rq) capture =intel_engine_coredump_add_request (ee, rq,ATOMIC_MAYFAIL ); -spin_unlock_irqrestore (&engine->sched_engine->lock, flags);if (!capture) { +no_request_capture:kfree (ee);return NULL ; }Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfxSignature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch
Re: [Intel-gfx] [RFC PATCH 74/97] drm/i915/guc: Capture error state on context reset
Quoted 17 lines · Matthew Brost
Quoted 7 lines · Daniel Vetter
Quoted 6 lines · Matthew Brost
We receive notification of an engine reset from GuC at its completion. Meaning GuC has potentially cleared any HW state we may have been interested in capturing. GuC resumes scheduling on the engine post-reset, as the resets are meant to be transparent, further muddling our error state.
Quoted 8 lines
Quoted 5 lines
There is ongoing work to define an API for a GuC debug state dump. The suggestion for now is to manually disable FW initiated resets in cases where debug state is needed.
Signed-off-by Matthew Brost <[email protected]>This looks a bit backwards to me:
Quoted 8 lines
Definitely a bit hacky but this patch does the best to capture the error as it can,
Quoted 3 lines
- I figured we should capture error state when we get the G2H, in which case I hope we do know which the offending context was that got shot.
We know which context was shot based on the G2H. See '
hung_ce' in this patch.
Ah maybe I should read more. Would be good to have comments on how the locking works here, especially around reset it tends to be tricky. Comments in the data structs/members.
Quoted 6 lines
Quoted 4 lines
- For now we're missing the hw state, but we should still be able to capture the buffers userspace wants us to capture. So that could be wired up already?
Which buffers exactly? We dump all buffers associated with the context.
There's an opt-in list that userspace can set in execbuf. Maybe that's the one you mean.
-Daniel
Quoted 275 lines
Quoted 6 lines
But yeah register state capturing needs support from GuC fw.
I think this is a big enough miss in GuC features that we should list it on the rfc as a thing to fix.
Agree this needs to be fixed.
Matt
Quoted 264 lines
-Daniel
Quoted 257 lines
--- drivers/gpu/drm/i915/gt/intel_context.c | 20 +++++++++++ drivers/gpu/drm/i915/gt/intel_context.h | 3 ++ drivers/gpu/drm/i915/gt/intel_engine.h | 21 ++++++++++- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 11 ++++-- drivers/gpu/drm/i915/gt/intel_engine_types.h | 2 ++ .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 35 +++++++++---------- drivers/gpu/drm/i915/i915_gpu_error.c | 25 ++++++++++--- 7 files changed, 91 insertions(+), 26 deletions(-)drivers/gpu/drm/i915/gt/intel_context.c +20
-0@@ -514,6 +514,26 @@ struct i915_request *intel_context_create_request(struct intel_context *ce)return rq; } +struct i915_request *intel_context_find_active_request (struct intel_context *ce) +{ +struct i915_request *rq, *active =NULL ; +unsigned long flags; + +GEM_BUG_ON (!intel_engine_uses_guc (ce->engine)); + +spin_lock_irqsave (&ce->guc_active.lock, flags); +list_for_each_entry_reverse (rq, &ce->guc_active.requests, + sched.link) { +if (i915_request_completed (rq)) +break ; + + active = rq; + } +spin_unlock_irqrestore (&ce->guc_active.lock, flags); + +return active; +} +#if IS_ENABLED (CONFIG_DRM_I915_SELFTEST )#include "selftest_context.c" #endif drivers/gpu/drm/i915/gt/intel_context.h +3
-0@@ -195,6 +195,9 @@ int intel_context_prepare_remote_request(struct intel_context *ce,struct i915_request *intel_context_create_request (struct intel_context *ce); +struct i915_request * +intel_context_find_active_request (struct intel_context *ce); +static inline struct intel_ring *__intel_context_ring_size (u64 sz) { return u64_to_ptr(struct intel_ring, sz);drivers/gpu/drm/i915/gt/intel_engine.h +20
-1@@ -242,7 +242,7 @@ ktime_t intel_engine_get_busy_time(struct intel_engine_cs *engine, ktime_t *now);struct i915_request * -intel_engine_find_active_request (struct intel_engine_cs *engine); +intel_engine_execlist_find_hung_request (struct intel_engine_cs *engine);u32 intel_engine_context_size (struct intel_gt *gt,u8 class);@@ -316,4 +316,23 @@ intel_engine_get_sibling(struct intel_engine_cs *engine, unsigned int sibling) return engine->cops->get_sibling(engine, sibling); } +static inline void +intel_engine_set_hung_context (struct intel_engine_cs *engine, +struct intel_context *ce) +{ + engine->hung_ce = ce; +} + +static inline void +intel_engine_clear_hung_context (struct intel_engine_cs *engine) +{ +intel_engine_set_hung_context (engine,NULL ); +} + +static inline struct intel_context * +intel_engine_get_hung_context (struct intel_engine_cs *engine) +{ +return engine->hung_ce; +} +#endif /* _INTEL_RINGBUFFER_H_ */ drivers/gpu/drm/i915/gt/intel_engine_cs.c +9
-2@@ -1727,7 +1727,7 @@ void intel_engine_dump(struct intel_engine_cs *engine,drm_printf (m,"\tRequests:\n" );spin_lock_irqsave (&engine->sched_engine->lock, flags); - rq =intel_engine_find_active_request (engine); + rq =intel_engine_execlist_find_hung_request (engine);if (rq) {struct intel_timeline *tl =get_timeline (rq);@@ -1838,10 +1838,17 @@ static bool match_ring(struct i915_request *rq) }struct i915_request * -intel_engine_find_active_request (struct intel_engine_cs *engine) +intel_engine_execlist_find_hung_request (struct intel_engine_cs *engine) {struct i915_request *request, *active =NULL ; +/* +* This search does not work in GuC submission mode. However, the GuC +* will report the hanging context directly to the driver itself. So +* the driver should never get here when in GuC mode. +*/ +GEM_BUG_ON (intel_uc_uses_guc_submission (&engine->gt->uc)); +/* * We are called by the error capture, reset and to dump engine * state at random points in time. In particular, note that neither is drivers/gpu/drm/i915/gt/intel_engine_types.h +2
-0@@ -304,6 +304,8 @@ struct intel_engine_cs {/* keep a request in reserve for a [pm] barrier under oom */ struct i915_request *request_pool; +struct intel_context *hung_ce; +struct llist_head barrier_tasks;struct intel_context *kernel_context;/* pinned */ drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +16
-19@@ -726,24 +726,6 @@ __unwind_incomplete_requests(struct intel_context *ce)spin_unlock_irqrestore (&sched_engine->lock, flags); } -static struct i915_request *context_find_active_request (struct intel_context *ce) -{ -struct i915_request *rq, *active =NULL ; -unsigned long flags; - -spin_lock_irqsave (&ce->guc_active.lock, flags); -list_for_each_entry_reverse (rq, &ce->guc_active.requests, - sched.link) { -if (i915_request_completed (rq)) -break ; - - active = rq; - } -spin_unlock_irqrestore (&ce->guc_active.lock, flags); - -return active; -} -static void __guc_reset_context (struct intel_context *ce,bool stalled) {struct i915_request *rq;@@ -757,7 +739,7 @@ static void __guc_reset_context(struct intel_context *ce, bool stalled)*/ clr_context_enabled (ce); - rq =context_find_active_request (ce); + rq =intel_context_find_active_request (ce);if (!rq) { head = ce->ring->tail; stalled = false;@@ -2192,6 +2174,20 @@ int intel_guc_sched_done_process_msg(struct intel_guc *guc,return 0 ; } +static void capture_error_state (struct intel_guc *guc, +struct intel_context *ce) +{ +struct intel_gt *gt =guc_to_gt (guc); +struct drm_i915_private *i915 = gt->i915; +struct intel_engine_cs *engine =__context_to_physical_engine (ce); +intel_wakeref_t wakeref; + +intel_engine_set_hung_context (engine, ce); + with_intel_runtime_pm(&i915->runtime_pm, wakeref) +i915_capture_error_state (gt, engine->mask); +atomic_inc (&i915->gpu_error.reset_engine_count[engine->uabi_class]); +} +static void guc_context_replay (struct intel_context *ce) {struct i915_sched_engine *sched_engine = ce->engine->sched_engine;@@ -2204,6 +2200,7 @@ static void guc_handle_context_reset(struct intel_guc *guc, struct intel_context *ce) {trace_intel_context_reset (ce); +capture_error_state (guc, ce);guc_context_replay (ce); }drivers/gpu/drm/i915/i915_gpu_error.c +21
-4@@ -1435,20 +1435,37 @@ capture_engine(struct intel_engine_cs *engine, {struct intel_engine_capture_vma *capture =NULL ;struct intel_engine_coredump *ee; -struct i915_request *rq; +struct intel_context *ce; +struct i915_request *rq =NULL ;unsigned long flags; ee =intel_engine_coredump_alloc (engine,GFP_KERNEL );if (!ee)return NULL ; -spin_lock_irqsave (&engine->sched_engine->lock, flags); - rq =intel_engine_find_active_request (engine); + ce =intel_engine_get_hung_context (engine); +if (ce) { +intel_engine_clear_hung_context (engine); + rq =intel_context_find_active_request (ce); +if (!rq || !i915_request_started (rq)) + goto no_request_capture; + }else { +/* +* Getting here with GuC enabled means it is a forced error capture +* with no actual hang. So, no need to attempt the execlist search. +*/ +if (!intel_uc_uses_guc_submission (&engine->gt->uc)) { +spin_lock_irqsave (&engine->sched_engine->lock, flags); + rq =intel_engine_execlist_find_hung_request (engine); +spin_unlock_irqrestore (&engine->sched_engine->lock, + flags); + } + }if (rq) capture =intel_engine_coredump_add_request (ee, rq,ATOMIC_MAYFAIL ); -spin_unlock_irqrestore (&engine->sched_engine->lock, flags);if (!capture) { +no_request_capture:kfree (ee);return NULL ; }Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfxSignature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC PATCH 75/97 drm/i915/guc: Fix for error capture after full GPU reset with GuC
In reply to Matthew BrostFrom: John Harrison <[email protected]>
In the case of a full GPU reset (e.g. because GuC has died or because GuC's hang detection has been disabled), the driver can't rely on GuC reporting the guilty context. Instead, the driver needs to scan all active contexts and find one that is currently executing, as per the execlist mode behaviour. In GuC mode, this scan is different to execlist mode as the active request list is handled very differently.
Similarly, the request state dump in debugfs needs to be handled differently when in GuC submission mode.
Also refactured some of the request scanning code to avoid duplication across the multiple code paths that are now replicating it.
--- drivers/gpu/drm/i915/gt/intel_engine.h | 3 + drivers/gpu/drm/i915/gt/intel_engine_cs.c | 139 ++++++++++++------ .../gpu/drm/i915/gt/intel_engine_heartbeat.c | 8 + drivers/gpu/drm/i915/gt/intel_reset.c | 2 +- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 2 + .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 67 +++++++++ .../gpu/drm/i915/gt/uc/intel_guc_submission.h | 3 + drivers/gpu/drm/i915/i915_request.c | 41 ++++++ drivers/gpu/drm/i915/i915_request.h | 11 ++ 9 files changed, 229 insertions(+), 47 deletions(-)
drivers/gpu/drm/i915/gt/intel_engine.h +3 -0
@@ -237,6 +237,9 @@ __printf(3, 4)void intel_engine_dump (struct intel_engine_cs *engine,struct drm_printer *m,const char *header, ...); +void intel_engine_dump_active_requests (struct list_head *requests, +struct i915_request *hung_rq, +struct drm_printer *m);ktime_t intel_engine_get_busy_time (struct intel_engine_cs *engine,ktime_t *now);
drivers/gpu/drm/i915/gt/intel_engine_cs.c +93 -46
165 lines not on this page · raw message
drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c +8 -0
@@ -90,6 +90,14 @@ reset_engine(struct intel_engine_cs *engine, struct i915_request *rq)if (IS_ENABLED (CONFIG_DRM_I915_DEBUG_GEM ))show_heartbeat (rq, engine); +if (intel_engine_uses_guc (engine)) +/* +* GuC itself is toast or GuC's hang detection +* is disabled. Either way, need to find the +* hang culprit manually. +*/ +intel_guc_find_hung_context (engine); + intel_gt_handle_error(engine->gt, engine->mask, I915_ERROR_CAPTURE, "stopped heartbeat on %s",
drivers/gpu/drm/i915/gt/intel_reset.c +1 -1
@@ -156,7 +156,7 @@ void __i915_request_reset(struct i915_request *rq, bool guilty)if (guilty) {i915_request_set_error_once (rq, -EIO );__i915_request_skip (rq); -if (mark_guilty (rq)) +if (mark_guilty (rq) && !intel_engine_uses_guc (rq->engine))skip_context (rq); }else {i915_request_set_error_once (rq, -EAGAIN );
drivers/gpu/drm/i915/gt/uc/intel_guc.h +2 -0
@@ -269,6 +269,8 @@ int intel_guc_context_reset_process_msg(struct intel_guc *guc,int intel_guc_engine_failure_process_msg (struct intel_guc *guc,const u32 *msg,u32 len); +void intel_guc_find_hung_context (struct intel_engine_cs *engine); +void intel_guc_submission_reset_prepare (struct intel_guc *guc);void intel_guc_submission_reset (struct intel_guc *guc,bool stalled);void intel_guc_submission_reset_finish (struct intel_guc *guc);
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +67 -0
73 lines not on this page · raw message
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.h +3 -0
@@ -24,6 +24,9 @@ int intel_guc_submission_setup(struct intel_engine_cs *engine);void intel_guc_log_submission_info (struct intel_guc *guc,struct drm_printer *p);void intel_guc_log_context_info (struct intel_guc *guc,struct drm_printer *p); +void intel_guc_dump_active_requests (struct intel_engine_cs *engine, +struct i915_request *hung_rq, +struct drm_printer *m);bool intel_guc_virtual_engine_has_heartbeat (const struct intel_engine_cs *ve);
drivers/gpu/drm/i915/i915_request.c +41 -0
47 lines not on this page · raw message
drivers/gpu/drm/i915/i915_request.h +11 -0
@@ -651,4 +651,15 @@ i915_request_active_engine(struct i915_request *rq,void i915_request_notify_execute_cb_imm (struct i915_request *rq); +enum i915_request_state +{ +I915_REQUEST_UNKNOWN =0 , +I915_REQUEST_COMPLETE , +I915_REQUEST_PENDING , +I915_REQUEST_QUEUED , +I915_REQUEST_ACTIVE , +}; + +enum i915_request_state i915_test_request_state (struct i915_request *rq); +#endif /* I915_REQUEST_H */
Signature · 1 line
2.28.0
RFC PATCH 76/97 drm/i915/guc: Hook GuC scheduling policies up
In reply to Matthew BrostFrom: John Harrison <[email protected]>
Use the official driver default scheduling policies for configuring the GuC scheduler rather than a bunch of hardcoded values.
--- drivers/gpu/drm/i915/gt/intel_engine_types.h | 1 + drivers/gpu/drm/i915/gt/uc/intel_guc.h | 2 + drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c | 44 ++++++++++++++++++- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 11 +++-- 4 files changed, 53 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/gt/intel_engine_types.h +1 -0
@@ -461,6 +461,7 @@ struct intel_engine_cs {#define I915_ENGINE_IS_VIRTUAL BIT(5)#define I915_ENGINE_HAS_RELATIVE_MMIO BIT(6)#define I915_ENGINE_REQUIRES_CMD_PARSER BIT(7) +#define I915_ENGINE_WANT_FORCED_PREEMPTION BIT(8)unsigned int flags;/*
drivers/gpu/drm/i915/gt/uc/intel_guc.h +2 -0
@@ -271,6 +271,8 @@ int intel_guc_engine_failure_process_msg(struct intel_guc *guc,void intel_guc_find_hung_context (struct intel_engine_cs *engine); +int intel_guc_global_policies_update (struct intel_guc *guc); +void intel_guc_submission_reset_prepare (struct intel_guc *guc);void intel_guc_submission_reset (struct intel_guc *guc,bool stalled);void intel_guc_submission_reset_finish (struct intel_guc *guc);
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c +42 -2
63 lines not on this page · raw message
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +8 -3
@@ -872,6 +872,7 @@ void intel_guc_submission_reset_finish(struct intel_guc *guc)GEM_WARN_ON (atomic_read (&guc->outstanding_submission_g2h));atomic_set (&guc->outstanding_submission_g2h,0 ); +intel_guc_global_policies_update (guc);enable_submission (guc);intel_gt_unpark_heartbeats (guc_to_gt (guc)); }
@@ -1160,8 +1161,12 @@ static void guc_context_policy_init(struct intel_engine_cs *engine, { desc->policy_flags =0 ; - desc->execution_quantum =CONTEXT_POLICY_DEFAULT_EXECUTION_QUANTUM_US ; - desc->preemption_timeout =CONTEXT_POLICY_DEFAULT_PREEMPTION_TIME_US ; +if (engine->flags &I915_ENGINE_WANT_FORCED_PREEMPTION ) + desc->policy_flags |=CONTEXT_POLICY_FLAG_PREEMPT_TO_IDLE ; + +/* NB: For both of these, zero means disabled. */ + desc->execution_quantum = engine->props.timeslice_duration_ms *1000 ; + desc->preemption_timeout = engine->props.preempt_timeout_ms *1000 ; }static int guc_lrc_desc_pin (struct intel_context *ce,bool loop)
@@ -1942,13 +1947,13 @@ static void guc_default_vfuncs(struct intel_engine_cs *engine) engine->set_default_submission = guc_set_default_submission; engine->flags |=I915_ENGINE_HAS_PREEMPTION ; + engine->flags |=I915_ENGINE_HAS_TIMESLICES ;/* * TODO: GuC supports timeslicing and semaphores as well, but they're * handled by the firmware so some minor tweaks are required before * enabling. * -* engine->flags |= I915_ENGINE_HAS_TIMESLICES; * engine->flags |= I915_ENGINE_HAS_SEMAPHORES; */
Signature · 1 line
2.28.0
RFC PATCH 77/97 drm/i915/guc: Connect reset modparam updates to GuC policy flags
In reply to Matthew BrostFrom: John Harrison <[email protected]>
Changing the reset module parameter has no effect on a running GuC. The corresponding entry in the ADS must be updated and then the GuC informed via a Host2GuC message.
The new debugfs interface to module parameters allows this to happen. However, connecting the parameter data address back to anything useful is messy. One option would be to pass a new private data structure address through instead of just the parameter pointer. However, that means having a new (and different) data structure for each parameter and a new (and different) write function for each parameter. This method keeps everything generic by instead using a string lookup on the directory entry name.
--- drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c | 2 +- drivers/gpu/drm/i915/i915_debugfs_params.c | 31 ++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c +1 -1
@@ -102,7 +102,7 @@ static int guc_action_policies_update(struct intel_guc *guc, u32 policy_offset) policy_offset }; -return intel_guc_send (guc, action,ARRAY_SIZE (action)); +return intel_guc_send_busy_loop (guc, action,ARRAY_SIZE (action),0 , true); }int intel_guc_global_policies_update (struct intel_guc *guc)
drivers/gpu/drm/i915/i915_debugfs_params.c +31 -0
@@ -6,9 +6,20 @@#include <linux/kernel.h> #include "i915_debugfs_params.h" +#include "gt/intel_gt.h" +#include "gt/uc/intel_guc.h" #include "i915_drv.h" #include "i915_params.h" +#define MATCH_DEBUGFS_NODE_NAME (_file, _name) (strcmp((_file)->f_path.dentry->d_name.name, (_name)) == 0) + +#define GET_I915 (i915, name, ptr) \ + do { \ + struct i915_params *params; \ + params = container_of(((void *) (ptr)), typeof(*params), name); \ + (i915) = container_of(params, typeof(*(i915)), params); \ + } while(0) +/* int param */ static int i915_param_int_show (struct seq_file *m,void *data) {
@@ -24,6 +35,16 @@ static int i915_param_int_open(struct inode *inode, struct file *file)return single_open (file, i915_param_int_show, inode->i_private); } +static int notify_guc (struct drm_i915_private *i915) +{ +int ret =0 ; + +if (intel_uc_uses_guc_submission (&i915->gt.uc)) + ret =intel_guc_global_policies_update (&i915->gt.uc.guc); + +return ret; +} +static ssize_t i915_param_int_write (struct file *file,const char __user *ubuf,size_t len,loff_t *offp)
@@ -81,8 +102,10 @@ static ssize_t i915_param_uint_write(struct file *file, const char __user *ubuf, size_t len, loff_t *offp) { + struct drm_i915_private *i915;struct seq_file *m = file->private_data;unsigned int *value = m->private; +unsigned int old = *value;int ret; ret =kstrtouint_from_user (ubuf, len,0 , value);
@@ -95,6 +118,14 @@ static ssize_t i915_param_uint_write(struct file *file, *value = b; } +if (!ret &&MATCH_DEBUGFS_NODE_NAME (file,"reset" )) { +GET_I915 (i915, reset, value); + + ret =notify_guc (i915); +if (ret) + *value = old; + } +return ret ?: len; }
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC PATCH 78/97 drm/i915/guc: Include scheduling policies in the debugfs state dump
In reply to Matthew BrostFrom: John Harrison <[email protected]>
Added the scheduling policy parameters to the 'guc_info' debugfs state dump.
--- drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c | 13 +++++++++++++ drivers/gpu/drm/i915/gt/uc/intel_guc_ads.h | 2 ++ drivers/gpu/drm/i915/gt/uc/intel_guc_debugfs.c | 2 ++ 3 files changed, 17 insertions(+)
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c +13 -0
@@ -95,6 +95,19 @@ static void guc_policies_init(struct intel_guc *guc, struct guc_policies *polici policies->is_valid =1 ; } +void intel_guc_log_policy_info (struct intel_guc *guc,struct drm_printer *dp) +{ +struct __guc_ads_blob *blob = guc->ads_blob; + +if (unlikely (!blob)) +return ; + +drm_printf (dp,"Global scheduling policies:\n" ); +drm_printf (dp," DPC promote time = %u\n" , blob->policies.dpc_promote_time); +drm_printf (dp," Max num work items = %u\n" , blob->policies.max_num_work_items); +drm_printf (dp," Flags = %u\n" , blob->policies.global_flags); +} +static int guc_action_policies_update (struct intel_guc *guc,u32 policy_offset) {u32 action[] = {
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.h +2 -0
@@ -7,9 +7,11 @@#define _INTEL_GUC_ADS_H_struct intel_guc ; +struct drm_printer ;int intel_guc_ads_create (struct intel_guc *guc);void intel_guc_ads_destroy (struct intel_guc *guc);void intel_guc_ads_reset (struct intel_guc *guc); +void intel_guc_log_policy_info (struct intel_guc *guc,struct drm_printer *p);#endif
drivers/gpu/drm/i915/gt/uc/intel_guc_debugfs.c +2 -0
@@ -10,6 +10,7 @@#include "intel_guc_debugfs.h" #include "intel_guc_log_debugfs.h" #include "gt/uc/intel_guc_ct.h" +#include "gt/uc/intel_guc_ads.h" #include "gt/uc/intel_guc_submission.h" static int guc_info_show (struct seq_file *m,void *data)
@@ -29,6 +30,7 @@ static int guc_info_show(struct seq_file *m, void *data)intel_guc_log_ct_info (&guc->ct, &p);intel_guc_log_submission_info (guc, &p); +intel_guc_log_policy_info (guc, &p);return 0 ; }
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC PATCH 79/97 drm/i915/guc: Don't call ring_is_idle in GuC submission
In reply to Matthew BrostThe engine registers really shouldn't be touched during GuC submission as the GuC owns the registers. Don't call ring_is_idle and tie intel_engine_is_idle strickly the engine pm.
Because intel_engine_is_idle tied to the engine pm, retire requests before checking intel_engines_are_idle in gt_drop_caches, and lastly increase the timeout in gt_drop_caches for the intel_engines_are_idle check.
--- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 13 +++++++++++++ drivers/gpu/drm/i915/i915_debugfs.c | 6 +++--- drivers/gpu/drm/i915/i915_drv.h | 2 +- 3 files changed, 17 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/gt/intel_engine_cs.c +13 -0
@@ -1226,6 +1226,9 @@ static bool ring_is_idle(struct intel_engine_cs *engine) {bool idle = true; +/* GuC submission shouldn't access HEAD & TAIL via MMIO */ +GEM_BUG_ON (intel_engine_uses_guc (engine)); +if (I915_SELFTEST_ONLY (!engine->mmio_base))return true;
@@ -1292,6 +1295,16 @@ bool intel_engine_is_idle(struct intel_engine_cs *engine)if (!i915_sched_engine_is_empty (engine->sched_engine))return false; +/* +* We shouldn't touch engine registers with GuC submission as the GuC +* owns the registers. Let's tie the idle to engine pm, at worst this +* function sometimes will falsely report non-idle when idle during the +* delay to retire requests or with virtual engines and a request +* running on another instance within the same class / submit mask. +*/ +if (intel_engine_uses_guc (engine)) +return false; +/* Ring stopped? */ return ring_is_idle (engine); }
drivers/gpu/drm/i915/i915_debugfs.c +3 -3
@@ -867,13 +867,13 @@ gt_drop_caches(struct intel_gt *gt, u64 val) {int ret; +if (val &DROP_RETIRE || val &DROP_RESET_ACTIVE ) +intel_gt_retire_requests (gt); +if (val &DROP_RESET_ACTIVE &&wait_for (intel_engines_are_idle (gt),I915_IDLE_ENGINES_TIMEOUT ))intel_gt_set_wedged (gt); -if (val &DROP_RETIRE ) -intel_gt_retire_requests (gt); -if (val & (DROP_IDLE |DROP_ACTIVE )) { ret =intel_gt_wait_for_idle (gt,MAX_SCHEDULE_TIMEOUT );if (ret)
drivers/gpu/drm/i915/i915_drv.h +1 -1
@@ -576,7 +576,7 @@ struct i915_gem_mm {u32 shrink_count; }; -#define I915_IDLE_ENGINES_TIMEOUT (200)/* in ms */ +#define I915_IDLE_ENGINES_TIMEOUT (500)/* in ms */ unsigned long i915_fence_context_timeout (const struct drm_i915_private *i915,u64 context);
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC PATCH 80/97 drm/i915/guc: Implement banned contexts for GuC submission
In reply to Matthew BrostWhen using GuC submission, if a context gets banned disable scheduling and mark all inflight requests as complete.
--- drivers/gpu/drm/i915/gem/i915_gem_context.c | 2 +- drivers/gpu/drm/i915/gt/intel_context.h | 13 ++ drivers/gpu/drm/i915/gt/intel_context_types.h | 2 + drivers/gpu/drm/i915/gt/intel_reset.c | 32 ++--- .../gpu/drm/i915/gt/intel_ring_submission.c | 20 +++ drivers/gpu/drm/i915/gt/uc/intel_guc.h | 2 + .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 129 ++++++++++++++++-- drivers/gpu/drm/i915/i915_trace.h | 10 ++ 8 files changed, 172 insertions(+), 38 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_context.c +1 -1
@@ -441,7 +441,7 @@ static void kill_engines(struct i915_gem_engines *engines, bool ban)for_each_gem_engine (ce, engines, it) {struct intel_engine_cs *engine; -if (ban &&intel_context_set_banned (ce)) +if (ban &&intel_context_ban (ce,NULL ))continue ;/*
drivers/gpu/drm/i915/gt/intel_context.h +13 -0
@@ -17,6 +17,7 @@#include "intel_ring_types.h" #include "intel_timeline_types.h" #include "uc/intel_guc_submission.h" +#include "i915_trace.h" #define CE_TRACE (ce, fmt, ...) do { \ const struct intel_context *ce__ = (ce); \
@@ -243,6 +244,18 @@ static inline bool intel_context_set_banned(struct intel_context *ce)return test_and_set_bit (CONTEXT_BANNED , &ce->flags); } +static inline bool intel_context_ban (struct intel_context *ce, +struct i915_request *rq) +{ +bool ret =intel_context_set_banned (ce); + +trace_intel_context_ban (ce); +if (ce->ops->ban) + ce->ops->ban (ce, rq); + +return ret; +} +static inline bool intel_context_force_single_submission (const struct intel_context *ce) {
drivers/gpu/drm/i915/gt/intel_context_types.h +2 -0
@@ -35,6 +35,8 @@ struct intel_context_ops {int (*alloc)(struct intel_context *ce); +void (*ban)(struct intel_context *ce,struct i915_request *rq); +int (*pre_pin)(struct intel_context *ce,struct i915_gem_ww_ctx *ww,void **vaddr);int (*pin)(struct intel_context *ce,void *vaddr);void (*unpin)(struct intel_context *ce);
drivers/gpu/drm/i915/gt/intel_reset.c +8 -24
@@ -22,7 +22,6 @@#include "intel_reset.h" #include "uc/intel_guc.h" -#include "uc/intel_guc_submission.h" #define RESET_MAX_RETRIES 3
@@ -39,21 +38,6 @@ static void rmw_clear_fw(struct intel_uncore *uncore, i915_reg_t reg, u32 clr)intel_uncore_rmw_fw (uncore, reg, clr,0 ); } -static void skip_context (struct i915_request *rq) -{ -struct intel_context *hung_ctx = rq->context; - -list_for_each_entry_from_rcu (rq, &hung_ctx->timeline->requests, link) { -if (!i915_request_is_active (rq)) -return ; - -if (rq->context == hung_ctx) { -i915_request_set_error_once (rq, -EIO ); -__i915_request_skip (rq); - } - } -} -static void client_mark_guilty (struct i915_gem_context *ctx,bool banned) {struct drm_i915_file_private *file_priv = ctx->file_priv;
@@ -88,10 +72,8 @@ static bool mark_guilty(struct i915_request *rq)bool banned;int i; -if (intel_context_is_closed (rq->context)) { -intel_context_set_banned (rq->context); +if (intel_context_is_closed (rq->context))return true; - }rcu_read_lock (); ctx =rcu_dereference (rq->context->gem_context);
@@ -123,11 +105,9 @@ static bool mark_guilty(struct i915_request *rq) banned = !i915_gem_context_is_recoverable (ctx);if (time_before (jiffies, prev_hang +CONTEXT_FAST_HANG_JIFFIES )) banned = true; -if (banned) { +if (banned)drm_dbg (&ctx->i915->drm,"context %s: guilty %d, banned\n" , ctx->name,atomic_read (&ctx->guilty_count)); -intel_context_set_banned (rq->context); - }client_mark_guilty (ctx, banned);
@@ -149,6 +129,8 @@ static void mark_innocent(struct i915_request *rq)void __i915_request_reset (struct i915_request *rq,bool guilty) { +bool banned = false; +RQ_TRACE (rq,"guilty? %s\n" ,yesno (guilty));GEM_BUG_ON (__i915_request_is_complete (rq));
@@ -156,13 +138,15 @@ void __i915_request_reset(struct i915_request *rq, bool guilty)if (guilty) {i915_request_set_error_once (rq, -EIO );__i915_request_skip (rq); -if (mark_guilty (rq) && !intel_engine_uses_guc (rq->engine)) -skip_context (rq); + banned =mark_guilty (rq); }else {i915_request_set_error_once (rq, -EAGAIN );mark_innocent (rq); }rcu_read_unlock (); + +if (banned) +intel_context_ban (rq->context, rq); }static bool i915_in_reset (struct pci_dev *pdev)
drivers/gpu/drm/i915/gt/intel_ring_submission.c +20 -0
@@ -584,9 +584,29 @@ static void ring_context_reset(struct intel_context *ce)clear_bit (CONTEXT_VALID_BIT , &ce->flags); } +static void ring_context_ban (struct intel_context *ce, +struct i915_request *rq) +{ +struct intel_engine_cs *engine; + +if (!rq || !i915_request_is_active (rq)) +return ; + + engine = rq->engine; +lockdep_assert_held (&engine->sched_engine->lock); +list_for_each_entry_continue (rq, &engine->sched_engine->requests, + sched.link) +if (rq->context == ce) { +i915_request_set_error_once (rq, -EIO ); +__i915_request_skip (rq); + } +} +static const struct intel_context_ops ring_context_ops = { .alloc = ring_context_alloc, + .ban = ring_context_ban, + .pre_pin = ring_context_pre_pin, .pin = ring_context_pin, .unpin = ring_context_unpin,
drivers/gpu/drm/i915/gt/uc/intel_guc.h +2 -0
@@ -273,6 +273,8 @@ void intel_guc_find_hung_context(struct intel_engine_cs *engine);int intel_guc_global_policies_update (struct intel_guc *guc); +void intel_guc_context_ban (struct intel_context *ce,struct i915_request *rq); +void intel_guc_submission_reset_prepare (struct intel_guc *guc);void intel_guc_submission_reset (struct intel_guc *guc,bool stalled);void intel_guc_submission_reset_finish (struct intel_guc *guc);
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +116 -13
264 lines not on this page · raw message
drivers/gpu/drm/i915/i915_trace.h +10 -0
@@ -934,6 +934,11 @@ DEFINE_EVENT(intel_context, intel_context_reset,TP_ARGS (ce) ); +DEFINE_EVENT (intel_context, intel_context_ban, + TP_PROTO(struct intel_context *ce), +TP_ARGS (ce) +); +DEFINE_EVENT (intel_context, intel_context_register, TP_PROTO(struct intel_context *ce), TP_ARGS(ce)
@@ -1036,6 +1041,11 @@ trace_intel_context_reset(struct intel_context *ce) { } +static inline void +trace_intel_context_ban (struct intel_context *ce) +{ +} +static inline void trace_intel_context_register (struct intel_context *ce) {
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC PATCH 81/97 drm/i915/guc: Allow flexible number of context ids
In reply to Matthew BrostNumber of available GuC contexts ids might be limited. Stop refering in code to macro and use variable instead.
--- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 2 ++ .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 16 +++++++++------- 2 files changed, 11 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc.h +2 -0
@@ -53,6 +53,8 @@ struct intel_guc {*/ spinlock_t contexts_lock;struct ida guc_ids; +u32 num_guc_ids; +u32 max_guc_ids;struct list_head guc_id_list;bool submission_selected;
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +9 -7
@@ -228,7 +228,7 @@ static struct guc_lrc_desc *__get_lrc_desc(struct intel_guc *guc, u32 index) {struct guc_lrc_desc *base = guc->lrc_desc_pool_vaddr; -GEM_BUG_ON (index >=GUC_MAX_LRC_DESCRIPTORS ); +GEM_BUG_ON (index >= guc->max_guc_ids);return &base[index]; }
@@ -237,7 +237,7 @@ static inline struct intel_context *__get_context(struct intel_guc *guc, u32 id) {struct intel_context *ce =xa_load (&guc->context_lookup, id); -GEM_BUG_ON (id >=GUC_MAX_LRC_DESCRIPTORS ); +GEM_BUG_ON (id >= guc->max_guc_ids);return ce; }
@@ -247,8 +247,7 @@ static int guc_lrc_desc_pool_create(struct intel_guc *guc)u32 size;int ret; - size =PAGE_ALIGN (sizeof (struct guc_lrc_desc ) * -GUC_MAX_LRC_DESCRIPTORS ); + size =PAGE_ALIGN (sizeof (struct guc_lrc_desc ) * guc->max_guc_ids); ret =intel_guc_allocate_and_map_vma (guc, size, &guc->lrc_desc_pool, (void **)&guc->lrc_desc_pool_vaddr);if (ret)
@@ -1008,7 +1007,7 @@ static void guc_submit_request(struct i915_request *rq)static int new_guc_id (struct intel_guc *guc) {return ida_simple_get (&guc->guc_ids,GUC_ID_START , -GUC_MAX_LRC_DESCRIPTORS ,GFP_KERNEL | + guc->num_guc_ids,GFP_KERNEL | __GFP_RETRY_MAYFAIL | __GFP_NOWARN); }
@@ -2142,6 +2141,8 @@ static bool __guc_submission_selected(struct intel_guc *guc)void intel_guc_submission_init_early (struct intel_guc *guc) { + guc->max_guc_ids =GUC_MAX_LRC_DESCRIPTORS ; + guc->num_guc_ids =GUC_MAX_LRC_DESCRIPTORS ; guc->submission_selected =__guc_submission_selected (guc); }
@@ -2150,7 +2151,7 @@ g2h_context_lookup(struct intel_guc *guc, u32 desc_idx) {struct intel_context *ce; -if (unlikely (desc_idx >=GUC_MAX_LRC_DESCRIPTORS )) { +if (unlikely (desc_idx >= guc->max_guc_ids)) {drm_dbg (&guc_to_gt (guc)->i915->drm,"Invalid desc_idx %u" , desc_idx);return NULL ;
@@ -2451,6 +2452,8 @@ void intel_guc_log_submission_info(struct intel_guc *guc,drm_printf (p,"GuC Number Outstanding Submission G2H: %u\n" ,atomic_read (&guc->outstanding_submission_g2h)); +drm_printf (p,"GuC Number GuC IDs: %u\n" , guc->num_guc_ids); +drm_printf (p,"GuC Max GuC IDs: %u\n" , guc->max_guc_ids);drm_printf (p,"GuC tasklet count: %u\n\n" ,atomic_read (&sched_engine->tasklet.count));
@@ -2474,7 +2477,6 @@ void intel_guc_log_context_info(struct intel_guc *guc, {struct intel_context *ce;unsigned long index; -xa_for_each (&guc->context_lookup, index, ce) {drm_printf (p,"GuC lrc descriptor %u:\n" , ce->guc_id);drm_printf (p,"\tHW Context Desc: 0x%08x\n" , ce->lrc.lrca);
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC PATCH 82/97 drm/i915/guc: Connect the number of guc_ids to debugfs
In reply to Matthew BrostFor testing purposes it may make sense to reduce the number of guc_ids available to be allocated. Add debugfs support for setting the number of guc_ids.
--- .../gpu/drm/i915/gt/uc/intel_guc_debugfs.c | 31 +++++++++++++++++++ .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 3 +- 2 files changed, 33 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_debugfs.c +31 -0
@@ -50,11 +50,42 @@ static int guc_registered_contexts_show(struct seq_file *m, void *data) }DEFINE_GT_DEBUGFS_ATTRIBUTE (guc_registered_contexts); +static int guc_num_id_get (void *data,u64 *val) +{ +struct intel_guc *guc = data; + +if (!intel_guc_submission_is_used (guc)) +return -ENODEV ; + + *val = guc->num_guc_ids; + +return 0 ; +} + +static int guc_num_id_set (void *data,u64 val) +{ +struct intel_guc *guc = data; + +if (!intel_guc_submission_is_used (guc)) +return -ENODEV ; + +if (val > guc->max_guc_ids) + val = guc->max_guc_ids; +else if (val <256 ) + val =256 ; + + guc->num_guc_ids = val; + +return 0 ; +} +DEFINE_SIMPLE_ATTRIBUTE (guc_num_id_fops, guc_num_id_get, guc_num_id_set,"%lld\n" ); +void intel_guc_debugfs_register (struct intel_guc *guc,struct dentry *root) {static const struct debugfs_gt_file files[] = { {"guc_info" , &guc_info_fops,NULL }, {"guc_registered_contexts" , &guc_registered_contexts_fops,NULL }, + {"guc_num_id" , &guc_num_id_fops,NULL }, };if (!intel_guc_is_supported (guc))
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +2 -1
@@ -2153,7 +2153,8 @@ g2h_context_lookup(struct intel_guc *guc, u32 desc_idx)if (unlikely (desc_idx >= guc->max_guc_ids)) {drm_dbg (&guc_to_gt (guc)->i915->drm, -"Invalid desc_idx %u" , desc_idx); +"Invalid desc_idx %u, max %u" , + desc_idx, guc->max_guc_ids);return NULL ; }
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC PATCH 83/97 drm/i915/guc: Don't return -EAGAIN to user when guc_ids exhausted
In reply to Matthew BrostRather than returning -EAGAIN to the user when no guc_ids are available, implement a fair sharing algorithm in the kernel which blocks submissons until guc_ids become available. Submissions are released one at a time, based on priority, until the guc_id pressure is released to ensure fair sharing of the guc_ids. Once the pressure is fully released, the normal guc_id allocation (at request creation time in guc_request_alloc) can resume as this allocation path should be significantly faster and a fair sharing algorithm isn't needed when guc_ids are plentifully.
The fair sharing algorithm is implemented by forcing all submissions to the tasklet which serializes submissions, dequeuing one at a time.
If the submission doesn't have a guc_id and new guc_id can't be found, two lists are searched, one list with contexts that are not pinned but still registered with the guc (searched first) and another list with contexts that are pinned but do not have any submissions actively in inflight (scheduling enabled + registered, searched second). If no guc_ids can be found we kick a workqueue which will retire requests hopefully freeing a guc_id. The workqueue + tasklet ping / pong back and forth until a guc_id can be found.
Once a guc_id is found, we may have to disable context scheduling depending on which list the context is stolen from. When we disable scheduling, we block the tasklet from executing until the completion G2H returns. The disable scheduling must be issued from the workqueue because of the locking structure. When we deregister a context, we also do the same thing (waiting on the G2H) but we can safely issue the deregister H2G from the tasklet.
Once all the G2H have returned we can trigger a submission on the context.
--- drivers/gpu/drm/i915/gt/intel_context_types.h | 3 + drivers/gpu/drm/i915/gt/uc/intel_guc.h | 26 +- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 806 ++++++++++++++++-- drivers/gpu/drm/i915/i915_request.h | 6 + 4 files changed, 754 insertions(+), 87 deletions(-)
drivers/gpu/drm/i915/gt/intel_context_types.h +3 -0
@@ -180,6 +180,9 @@ struct intel_context {/* GuC lrc descriptor ID */ u16 guc_id; +/* Number of rq submitted without a guc_id */ +u16 guc_num_rq_submit_no_id; +/* GuC lrc descriptor reference count */ atomic_t guc_id_ref;
drivers/gpu/drm/i915/gt/uc/intel_guc.h +24 -2
@@ -32,7 +32,28 @@ struct intel_guc {/* Global engine used to submit requests to GuC */ struct i915_sched_engine *sched_engine; -struct i915_request *stalled_request; + +/* Global state related to submission tasklet */ +struct i915_request *stalled_rq; +struct intel_context *stalled_context; +struct work_struct retire_worker; +unsigned long flags; +int total_num_rq_with_no_guc_id; + +/* +* Submisson stall reason. See intel_guc_submission.c for detailed +* description. +*/ +enum { +STALL_NONE , +STALL_GUC_ID_WORKQUEUE , +STALL_GUC_ID_TASKLET , +STALL_SCHED_DISABLE , +STALL_REGISTER_CONTEXT , +STALL_DEREGISTER_CONTEXT , +STALL_MOVE_LRC_TAIL , +STALL_ADD_REQUEST , + } submission_stall_reason;/* intel_guc_recv interrupt related state */ spinlock_t irq_lock;
@@ -55,7 +76,8 @@ struct intel_guc {struct ida guc_ids;u32 num_guc_ids;u32 max_guc_ids; -struct list_head guc_id_list; +struct list_head guc_id_list_no_ref; +struct list_head guc_id_list_unpinned;bool submission_selected;
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +721 -85
1,158 lines not on this page · raw message
drivers/gpu/drm/i915/i915_request.h +6 -0
@@ -139,6 +139,12 @@ enum {* the GPU. Here we track such boost requests on a per-request basis. */ I915_FENCE_FLAG_BOOST , + +/* +* I915_FENCE_FLAG_GUC_ID_NOT_PINNED - Set to signal the GuC submission +* tasklet that the guc_id isn't pinned. +*/ + I915_FENCE_FLAG_GUC_ID_NOT_PINNED, };/**
Signature · 1 line
2.28.0
kernel test robot
build botRe: [RFC PATCH 83/97] drm/i915/guc: Don't return -EAGAIN to user when guc_ids exhausted
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch]
Hi Matthew,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on drm-tip/drm-tip]
[cannot apply to drm-intel/for-linux-next drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next drm/drm-next v5.12 next-20210506] [If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Matthew-Brost/Basic-GuC-submission-support-in-the-i915/20210507-030308 base: git://anongit.freedesktop.org/drm/drm-tip drm-tip
:::::: branch date: 6 hours ago
:::::: commit date: 6 hours ago
config: i386-randconfig-s002-20210506 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/0day-ci/linux/commit/07a654f75149663bf7c39bab3c2087cefcb73799
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Matthew-Brost/Basic-GuC-submission-support-in-the-i915/20210507-030308
git checkout 07a654f75149663bf7c39bab3c2087cefcb73799
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c:2160:26: sparse: sparse: context imbalance in 'retire_worker_sched_disable' - different lock contexts for basic block
vim +/retire_worker_sched_disable +2160 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
07a654f7514966 Matthew Brost 2021-05-06 2101
07a654f7514966 Matthew Brost 2021-05-06 2102 static void retire_worker_sched_disable(struct intel_guc *guc,
07a654f7514966 Matthew Brost 2021-05-06 2103 struct intel_context *ce)
07a654f7514966 Matthew Brost 2021-05-06 2104 {
07a654f7514966 Matthew Brost 2021-05-06 2105 unsigned long flags;
07a654f7514966 Matthew Brost 2021-05-06 2106 bool disabled;
07a654f7514966 Matthew Brost 2021-05-06 2107
07a654f7514966 Matthew Brost 2021-05-06 2108 guc->stalled_context = NULL;
07a654f7514966 Matthew Brost 2021-05-06 2109 spin_lock_irqsave(&ce->guc_state.lock, flags);
07a654f7514966 Matthew Brost 2021-05-06 2110 disabled = submission_disabled(guc);
07a654f7514966 Matthew Brost 2021-05-06 2111 if (!disabled && !context_pending_disable(ce) && context_enabled(ce)) {
07a654f7514966 Matthew Brost 2021-05-06 2112 /*
07a654f7514966 Matthew Brost 2021-05-06 2113 * Still enabled, issue schedule disable + configure state so
07a654f7514966 Matthew Brost 2021-05-06 2114 * when G2H returns tasklet is kicked.
07a654f7514966 Matthew Brost 2021-05-06 2115 */
07a654f7514966 Matthew Brost 2021-05-06 2116
07a654f7514966 Matthew Brost 2021-05-06 2117 struct intel_runtime_pm *runtime_pm =
07a654f7514966 Matthew Brost 2021-05-06 2118 &ce->engine->gt->i915->runtime_pm;
07a654f7514966 Matthew Brost 2021-05-06 2119 intel_wakeref_t wakeref;
07a654f7514966 Matthew Brost 2021-05-06 2120 u16 guc_id;
07a654f7514966 Matthew Brost 2021-05-06 2121
07a654f7514966 Matthew Brost 2021-05-06 2122 /*
07a654f7514966 Matthew Brost 2021-05-06 2123 * We add +2 here as the schedule disable complete CTB handler
07a654f7514966 Matthew Brost 2021-05-06 2124 * calls intel_context_sched_disable_unpin (-2 to pin_count).
07a654f7514966 Matthew Brost 2021-05-06 2125 */
07a654f7514966 Matthew Brost 2021-05-06 2126 GEM_BUG_ON(!atomic_read(&ce->pin_count));
07a654f7514966 Matthew Brost 2021-05-06 2127 atomic_add(2, &ce->pin_count);
07a654f7514966 Matthew Brost 2021-05-06 2128
07a654f7514966 Matthew Brost 2021-05-06 2129 set_context_block_tasklet(ce);
07a654f7514966 Matthew Brost 2021-05-06 2130 guc_id = prep_context_pending_disable(ce);
07a654f7514966 Matthew Brost 2021-05-06 2131 spin_unlock_irqrestore(&ce->guc_state.lock, flags);
07a654f7514966 Matthew Brost 2021-05-06 2132
07a654f7514966 Matthew Brost 2021-05-06 2133 with_intel_runtime_pm(runtime_pm, wakeref)
07a654f7514966 Matthew Brost 2021-05-06 2134 __guc_context_sched_disable(guc, ce, guc_id);
07a654f7514966 Matthew Brost 2021-05-06 2135
07a654f7514966 Matthew Brost 2021-05-06 2136 invalidate_guc_id_sched_disable(ce);
07a654f7514966 Matthew Brost 2021-05-06 2137 } else if (!disabled && context_pending_disable(ce)) {
07a654f7514966 Matthew Brost 2021-05-06 2138 /*
07a654f7514966 Matthew Brost 2021-05-06 2139 * Schedule disable in flight, set bit to kick tasklet in G2H
07a654f7514966 Matthew Brost 2021-05-06 2140 * handler and call it a day.
07a654f7514966 Matthew Brost 2021-05-06 2141 */
07a654f7514966 Matthew Brost 2021-05-06 2142
07a654f7514966 Matthew Brost 2021-05-06 2143 set_context_block_tasklet(ce);
07a654f7514966 Matthew Brost 2021-05-06 2144 spin_unlock_irqrestore(&ce->guc_state.lock, flags);
07a654f7514966 Matthew Brost 2021-05-06 2145
07a654f7514966 Matthew Brost 2021-05-06 2146 invalidate_guc_id_sched_disable(ce);
07a654f7514966 Matthew Brost 2021-05-06 2147 } else if (disabled || !context_enabled(ce)) {
07a654f7514966 Matthew Brost 2021-05-06 2148 /* Schedule disable is done, kick tasklet */
07a654f7514966 Matthew Brost 2021-05-06 2149
07a654f7514966 Matthew Brost 2021-05-06 2150 spin_unlock_irqrestore(&ce->guc_state.lock, flags);
07a654f7514966 Matthew Brost 2021-05-06 2151
07a654f7514966 Matthew Brost 2021-05-06 2152 invalidate_guc_id_sched_disable(ce);
07a654f7514966 Matthew Brost 2021-05-06 2153
07a654f7514966 Matthew Brost 2021-05-06 2154 guc->submission_stall_reason = STALL_REGISTER_CONTEXT;
07a654f7514966 Matthew Brost 2021-05-06 2155 clr_tasklet_blocked(guc);
07a654f7514966 Matthew Brost 2021-05-06 2156
07a654f7514966 Matthew Brost 2021-05-06 2157 kick_tasklet(ce_to_guc(ce));
07a654f7514966 Matthew Brost 2021-05-06 2158 }
07a654f7514966 Matthew Brost 2021-05-06 2159 07a654f7514966 Matthew Brost 2021-05-06 @2160 intel_context_put(ce);07a654f7514966 Matthew Brost 2021-05-06 2161 }07a654f7514966 Matthew Brost 2021-05-06 2162
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org
RFC PATCH 84/97 drm/i915/guc: Don't allow requests not ready to consume all guc_ids
In reply to Matthew BrostAdd a heuristic which checks if over half of the available guc_ids are currently consumed by requests not ready to be submitted. If this heuristic is true at request creation time (normal guc_id allocation location) force all submissions + guc_ids allocations to tasklet.
--- drivers/gpu/drm/i915/gt/intel_context_types.h | 3 ++ drivers/gpu/drm/i915/gt/intel_reset.c | 9 ++++ drivers/gpu/drm/i915/gt/uc/intel_guc.h | 1 + .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 53 +++++++++++++++++-- .../gpu/drm/i915/gt/uc/intel_guc_submission.h | 2 + 5 files changed, 65 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/gt/intel_context_types.h +3 -0
@@ -186,6 +186,9 @@ struct intel_context {/* GuC lrc descriptor reference count */ atomic_t guc_id_ref; +/* GuC number of requests not ready */ +atomic_t guc_num_rq_not_ready; +/* * GuC ID link - in list when unpinned but guc_id still valid in GuC */
drivers/gpu/drm/i915/gt/intel_reset.c +9 -0
@@ -22,6 +22,7 @@#include "intel_reset.h" #include "uc/intel_guc.h" +#include "uc/intel_guc_submission.h" #define RESET_MAX_RETRIES 3
@@ -776,6 +777,14 @@ static void nop_submit_request(struct i915_request *request) {RQ_TRACE (request,"-EIO\n" ); +/* +* XXX: Kinda ugly to check for GuC submission here but this function is +* going away once we switch to the DRM scheduler so we can live with +* this for now. +*/ +if (intel_engine_uses_guc (request->engine)) +intel_guc_decr_num_rq_not_ready (request->context); + request =i915_request_mark_eio (request);if (request) {i915_request_submit (request);
drivers/gpu/drm/i915/gt/uc/intel_guc.h +1 -0
@@ -76,6 +76,7 @@ struct intel_guc {struct ida guc_ids;u32 num_guc_ids;u32 max_guc_ids; +atomic_t num_guc_ids_not_ready;struct list_head guc_id_list_no_ref;struct list_head guc_id_list_unpinned;
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +50 -3
96 lines not on this page · raw message
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.h +2 -0
@@ -51,4 +51,6 @@ static inline bool intel_guc_submission_is_used(struct intel_guc *guc) return intel_guc_is_used(guc) && intel_guc_submission_is_wanted(guc); } +void intel_guc_decr_num_rq_not_ready (struct intel_context *ce); +#endif
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC PATCH 85/97 drm/i915/guc: Introduce guc_submit_engine object
In reply to Matthew BrostMove fields related to controlling the GuC submission state machine to a unique object (guc_submit_engine) rather than the global GuC state (intel_guc). This encapsulation allows multiple instances of submission objects to operate in parallel and a single instance can block if needed while another can make forward progress. This is analogous to how the execlist mode works assigning a schedule object per physical engine but rather in GuC mode we assign a schedule object based on the blocking dependencies.
The guc_submit_engine object also encapsulates the i915_sched_engine object as well.
Lots of find-replace.
Currently only 1 guc_submit_engine instantiated, future patches will instantiate more.
--- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 33 +- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 544 +++++++++++------- .../i915/gt/uc/intel_guc_submission_types.h | 53 ++ drivers/gpu/drm/i915/i915_scheduler.c | 25 +- drivers/gpu/drm/i915/i915_scheduler.h | 5 +- drivers/gpu/drm/i915/i915_scheduler_types.h | 3 + 6 files changed, 411 insertions(+), 252 deletions(-) create mode 100644 drivers/gpu/drm/i915/gt/uc/intel_guc_submission_types.h
drivers/gpu/drm/i915/gt/uc/intel_guc.h +7 -26
@@ -20,6 +20,11 @@struct __guc_ads_blob ; +enum { +GUC_SUBMIT_ENGINE_SINGLE_LRC , +GUC_SUBMIT_ENGINE_MAX +}; +/* * Top level structure of GuC. It handles firmware loading and manages client * pool. intel_guc owns a intel_guc_client to replace the legacy ExecList
@@ -30,31 +35,6 @@ struct intel_guc {struct intel_guc_log log;struct intel_guc_ct ct; -/* Global engine used to submit requests to GuC */ -struct i915_sched_engine *sched_engine; - -/* Global state related to submission tasklet */ -struct i915_request *stalled_rq; -struct intel_context *stalled_context; -struct work_struct retire_worker; -unsigned long flags; -int total_num_rq_with_no_guc_id; - -/* -* Submisson stall reason. See intel_guc_submission.c for detailed -* description. -*/ -enum { -STALL_NONE , -STALL_GUC_ID_WORKQUEUE , -STALL_GUC_ID_TASKLET , -STALL_SCHED_DISABLE , -STALL_REGISTER_CONTEXT , -STALL_DEREGISTER_CONTEXT , -STALL_MOVE_LRC_TAIL , -STALL_ADD_REQUEST , - } submission_stall_reason; -/* intel_guc_recv interrupt related state */ spinlock_t irq_lock;unsigned int msg_enabled_mask;
@@ -68,6 +48,8 @@ struct intel_guc {void (*disable)(struct intel_guc *guc); } interrupts; +struct guc_submit_engine *gse[GUC_SUBMIT_ENGINE_MAX ]; +/* * contexts_lock protects the pool of free guc ids and a linked list of * guc ids available to be stolden
@@ -76,7 +58,6 @@ struct intel_guc {struct ida guc_ids;u32 num_guc_ids;u32 max_guc_ids; -atomic_t num_guc_ids_not_ready;struct list_head guc_id_list_no_ref;struct list_head guc_id_list_unpinned;
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +328 -216
1,081 lines not on this page · raw message
drivers/gpu/drm/i915/gt/uc/intel_guc_submission_types.h new file +53 -0
53 lines not on this page · raw message
drivers/gpu/drm/i915/i915_scheduler.c +16 -9
@@ -431,7 +431,7 @@ void i915_request_show_with_schedule(struct drm_printer *m,rcu_read_unlock (); } -void i915_sched_engine_free (struct kref *kref) +static void default_destroy (struct kref *kref) {struct i915_sched_engine *sched_engine =container_of (kref,typeof (*sched_engine), ref);
@@ -445,20 +445,15 @@ static bool default_disabled(struct i915_sched_engine *sched_engine)return false; } -struct i915_sched_engine * -i915_sched_engine_create (unsigned int subclass) +void i915_sched_engine_init (struct i915_sched_engine *sched_engine, +unsigned int subclass) { -struct i915_sched_engine *sched_engine; - - sched_engine =kzalloc (sizeof (*sched_engine),GFP_KERNEL ); -if (!sched_engine) -return NULL ; -kref_init (&sched_engine->ref); sched_engine->queue =RB_ROOT_CACHED ; sched_engine->queue_priority_hint =INT_MIN ; sched_engine->disabled = default_disabled; + sched_engine->destroy = default_destroy;INIT_LIST_HEAD (&sched_engine->requests);INIT_LIST_HEAD (&sched_engine->hold);
@@ -477,7 +472,19 @@ i915_sched_engine_create(unsigned int subclass)lock_map_release (&sched_engine->lock.dep_map);local_irq_enable ();#endif +} + +struct i915_sched_engine * +i915_sched_engine_create (unsigned int subclass) +{ +struct i915_sched_engine *sched_engine; + + sched_engine =kzalloc (sizeof (*sched_engine),GFP_KERNEL ); +if (!sched_engine) +return NULL ; +i915_sched_engine_init (sched_engine, subclass); +return sched_engine; }
drivers/gpu/drm/i915/i915_scheduler.h +4 -1
@@ -53,6 +53,9 @@ void i915_request_show_with_schedule(struct drm_printer *m,const char *prefix, int indent); +void i915_sched_engine_init (struct i915_sched_engine *sched_engine, +unsigned int subclass); +struct i915_sched_engine *i915_sched_engine_create (unsigned int subclass);
@@ -68,7 +71,7 @@ i915_sched_engine_get(struct i915_sched_engine *sched_engine)static inline void i915_sched_engine_put (struct i915_sched_engine *sched_engine) { -kref_put (&sched_engine->ref, i915_sched_engine_free); +kref_put (&sched_engine->ref, sched_engine->destroy); } static inline bool
drivers/gpu/drm/i915/i915_scheduler_types.h +3 -0
@@ -141,6 +141,9 @@ struct i915_sched_engine {/* Back pointer to engine */ struct intel_engine_cs *engine; +/* Destroy schedule engine */ +void (*destroy)(struct kref *kref); +/* Schedule engine is disabled by backend */ bool (*disabled)(struct i915_sched_engine *sched_engine);
Signature · 1 line
2.28.0
RFC PATCH 86/97 drm/i915/guc: Add golden context to GuC ADS
In reply to Matthew BrostFrom: John Harrison <[email protected]>
The media watchdog mechanism involves GuC doing a silent reset and continue of the hung context. This requires the i915 driver provide a golden context to GuC in the ADS.
--- drivers/gpu/drm/i915/gt/intel_gt.c | 2 + drivers/gpu/drm/i915/gt/uc/intel_guc.c | 5 + drivers/gpu/drm/i915/gt/uc/intel_guc.h | 2 + drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c | 213 ++++++++++++++++++--- drivers/gpu/drm/i915/gt/uc/intel_guc_ads.h | 1 + drivers/gpu/drm/i915/gt/uc/intel_uc.c | 5 + drivers/gpu/drm/i915/gt/uc/intel_uc.h | 1 + 7 files changed, 199 insertions(+), 30 deletions(-)
drivers/gpu/drm/i915/gt/intel_gt.c +2 -0
@@ -641,6 +641,8 @@ int intel_gt_init(struct intel_gt *gt)if (err) goto err_gt; +intel_uc_init_late (>->uc); + err =i915_inject_probe_error (gt->i915, -EIO );if (err) goto err_gt;
drivers/gpu/drm/i915/gt/uc/intel_guc.c +5 -0
@@ -192,6 +192,11 @@ void intel_guc_init_early(struct intel_guc *guc) } } +void intel_guc_init_late (struct intel_guc *guc) +{ +intel_guc_ads_init_late (guc); +} +static u32 guc_ctl_debug_flags (struct intel_guc *guc) {u32 level =intel_guc_log_get_level (&guc->log);
drivers/gpu/drm/i915/gt/uc/intel_guc.h +2 -0
@@ -66,6 +66,7 @@ struct intel_guc {struct i915_vma *ads_vma;struct __guc_ads_blob *ads_blob;u32 ads_regset_size; +u32 ads_golden_ctxt_size;struct i915_vma *lrc_desc_pool;void *lrc_desc_pool_vaddr;
@@ -183,6 +184,7 @@ static inline u32 intel_guc_ggtt_offset(struct intel_guc *guc, }void intel_guc_init_early (struct intel_guc *guc); +void intel_guc_init_late (struct intel_guc *guc);void intel_guc_init_send_regs (struct intel_guc *guc);void intel_guc_write_params (struct intel_guc *guc);int intel_guc_init (struct intel_guc *guc);
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c +183 -30
284 lines not on this page · raw message
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.h +1 -0
@@ -11,6 +11,7 @@ struct drm_printer;int intel_guc_ads_create (struct intel_guc *guc);void intel_guc_ads_destroy (struct intel_guc *guc); +void intel_guc_ads_init_late (struct intel_guc *guc);void intel_guc_ads_reset (struct intel_guc *guc);void intel_guc_log_policy_info (struct intel_guc *guc,struct drm_printer *p);
drivers/gpu/drm/i915/gt/uc/intel_uc.c +5 -0
@@ -120,6 +120,11 @@ void intel_uc_init_early(struct intel_uc *uc) uc->ops = &uc_ops_off; } +void intel_uc_init_late (struct intel_uc *uc) +{ +intel_guc_init_late (&uc->guc); +} +void intel_uc_driver_late_release (struct intel_uc *uc) { }
drivers/gpu/drm/i915/gt/uc/intel_uc.h +1 -0
@@ -35,6 +35,7 @@ struct intel_uc { };void intel_uc_init_early (struct intel_uc *uc); +void intel_uc_init_late (struct intel_uc *uc);void intel_uc_driver_late_release (struct intel_uc *uc);void intel_uc_driver_remove (struct intel_uc *uc);void intel_uc_init_mmio (struct intel_uc *uc);
Signature · 1 line
2.28.0
RFC PATCH 87/97 drm/i915/guc: Implement GuC priority management
In reply to Matthew BrostImplement a simple static mapping algorithm of the i915 priority levels (int, -1k to 1k exposed to user) to the 4 GuC levels. Mapping is as follows:
i915 level < 0 -> GuC low level (3) i915 level == 0 -> GuC normal level (2) i915 level < INT_MAX -> GuC high level (1) i915 level == INT_MAX -> GuC highest level (0)
We believe this mapping should cover the UMD use cases (3 distinct user levels + 1 kernel level).
In addition to static mapping, a simple counter system is attached to each context tracking the number of requests inflight on the context at each level. This is needed as the GuC levels are per context while in the i915 levels are per request.
--- drivers/gpu/drm/i915/gt/intel_breadcrumbs.c | 3 + drivers/gpu/drm/i915/gt/intel_context_types.h | 9 +- drivers/gpu/drm/i915/gt/intel_engine_user.c | 4 + .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 205 +++++++++++++++++- drivers/gpu/drm/i915/i915_request.c | 5 + drivers/gpu/drm/i915/i915_request.h | 8 + drivers/gpu/drm/i915/i915_scheduler.c | 7 + drivers/gpu/drm/i915/i915_scheduler_types.h | 5 + drivers/gpu/drm/i915/i915_trace.h | 16 +- include/uapi/drm/i915_drm.h | 9 + 10 files changed, 266 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/gt/intel_breadcrumbs.c +3 -0
@@ -245,6 +245,9 @@ static void signal_irq_work(struct irq_work *work)llist_entry (signal,typeof (*rq), signal_node);struct list_head cb_list; +if (rq->engine->sched_engine->retire_inflight_request_prio) + rq->engine->sched_engine->retire_inflight_request_prio (rq); +spin_lock (&rq->lock);list_replace (&rq->fence.cb_list, &cb_list);__dma_fence_signal__timestamp (&rq->fence, timestamp);
drivers/gpu/drm/i915/gt/intel_context_types.h +8 -1
@@ -17,8 +17,9 @@#include "intel_engine_types.h" #include "intel_sseu.h" -#define CONTEXT_REDZONE POISON_INUSE +#include "uc/intel_guc_fwif.h" +#define CONTEXT_REDZONE POISON_INUSEDECLARE_EWMA (runtime,3 ,8 );struct i915_gem_context ;
@@ -193,6 +194,12 @@ struct intel_context {* GuC ID link - in list when unpinned but guc_id still valid in GuC */ struct list_head guc_id_link; + +/* +* GuC priority management +*/ +u8 guc_prio; + u32 guc_prio_count[GUC_CLIENT_PRIORITY_NUM]; };#endif /* __INTEL_CONTEXT_TYPES__ */
drivers/gpu/drm/i915/gt/intel_engine_user.c +4 -0
@@ -11,6 +11,7 @@#include "intel_engine.h" #include "intel_engine_user.h" #include "intel_gt.h" +#include "uc/intel_guc_submission.h" struct intel_engine_cs *intel_engine_lookup_user (struct drm_i915_private *i915,u8 class,u8 instance)
@@ -114,6 +115,9 @@ static void set_scheduler_caps(struct drm_i915_private *i915) disabled |= (I915_SCHEDULER_CAP_ENABLED |I915_SCHEDULER_CAP_PRIORITY ); +if (intel_uc_uses_guc_submission (&i915->gt.uc)) + enabled |=I915_SCHEDULER_CAP_STATIC_PRIORITY_MAP ; +for (i =0 ; i <ARRAY_SIZE (map); i++) {if (engine->flags &BIT (map[i].engine)) enabled |=BIT (map[i].sched);
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +203 -2
314 lines not on this page · raw message
drivers/gpu/drm/i915/i915_request.c +5 -0
@@ -115,6 +115,9 @@ static void i915_fence_release(struct dma_fence *fence) {struct i915_request *rq =to_request (fence); +GEM_BUG_ON (rq->guc_prio !=GUC_PRIO_INIT && + rq->guc_prio !=GUC_PRIO_FINI ); +/* * The request is put onto a RCU freelist (i.e. the address * is immediately reused), mark the fences as being freed now.
@@ -956,6 +959,8 @@ __i915_request_create(struct intel_context *ce, gfp_t gfp) rq->rcustate =get_state_synchronize_rcu ();/* acts as smp_mb() */ + rq->guc_prio =GUC_PRIO_INIT ; +/* We bump the ref for the fence chain */ i915_sw_fence_reinit (&i915_request_get (rq)->submit);i915_sw_fence_reinit (&i915_request_get (rq)->semaphore);
drivers/gpu/drm/i915/i915_request.h +8 -0
@@ -299,6 +299,14 @@ struct i915_request {*/ struct list_head guc_fence_link; +/** +* Priority level while the request is inflight. Differs slightly than +* i915 scheduler priority. +*/ +#define GUC_PRIO_INIT 0xff +#define GUC_PRIO_FINI 0xfe +u8 guc_prio; + I915_SELFTEST_DECLARE(struct { struct list_head link; unsigned long delay;
drivers/gpu/drm/i915/i915_scheduler.c +7 -0
@@ -241,6 +241,9 @@ static void __i915_schedule(struct i915_sched_node *node,/* Fifo and depth-first replacement ensure our deps execute before us */ sched_engine =lock_sched_engine (node, sched_engine, &cache);list_for_each_entry_safe_reverse (dep, p, &dfs, dfs_link) { +struct i915_request *from =container_of (dep->signaler, + struct i915_request, + sched);INIT_LIST_HEAD (&dep->dfs_link); node = dep->signaler;
@@ -254,6 +257,10 @@ static void __i915_schedule(struct i915_sched_node *node,GEM_BUG_ON (node_to_request (node)->engine->sched_engine != sched_engine); +/* Must be called before changing the nodes priority */ +if (sched_engine->bump_inflight_request_prio) + sched_engine->bump_inflight_request_prio (from, prio); +WRITE_ONCE (node->attr.priority, prio);/*
drivers/gpu/drm/i915/i915_scheduler_types.h +5 -0
@@ -151,6 +151,11 @@ struct i915_sched_engine {void (*kick_backend)(const struct i915_request *rq,int prio); +/* Update priority of inflight requests */ +void (*bump_inflight_request_prio)(struct i915_request *rq, +int prio); +void (*retire_inflight_request_prio)(struct i915_request *rq); +/* * Call when the priority on a request has changed and it and its * dependencies may need rescheduling. Note the request itself may
drivers/gpu/drm/i915/i915_trace.h +14 -2
@@ -914,6 +914,7 @@ DECLARE_EVENT_CLASS(intel_context, __field(int, pin_count) __field(u32, sched_state) __field(u32, guc_sched_state_no_lock) +__field (u8, guc_prio) ), TP_fast_assign(
@@ -922,11 +923,17 @@ DECLARE_EVENT_CLASS(intel_context, __entry->sched_state = ce->guc_state.sched_state; __entry->guc_sched_state_no_lock =atomic_read (&ce->guc_sched_state_no_lock); + __entry->guc_prio = ce->guc_prio; ), -TP_printk ("guc_id=%d, pin_count=%d sched_state=0x%x,0x%x" , +TP_printk ("guc_id=%d, pin_count=%d sched_state=0x%x,0x%x, guc_prio=%u" , __entry->guc_id, __entry->pin_count, __entry->sched_state, - __entry->guc_sched_state_no_lock) + __entry->guc_sched_state_no_lock, __entry->guc_prio) +); + +DEFINE_EVENT (intel_context, intel_context_set_prio, + TP_PROTO(struct intel_context *ce), +TP_ARGS (ce) ); DEFINE_EVENT(intel_context, intel_context_reset,
@@ -1036,6 +1043,11 @@ trace_i915_request_out(struct i915_request *rq) { } +static inline void +trace_intel_context_set_prio (struct intel_context *ce) +{ +} +static inline void trace_intel_context_reset (struct intel_context *ce) {
include/uapi/drm/i915_drm.h +9 -0
@@ -572,6 +572,15 @@ typedef struct drm_i915_irq_wait {#define I915_SCHEDULER_CAP_PREEMPTION (1ul << 2)#define I915_SCHEDULER_CAP_SEMAPHORES (1ul << 3)#define I915_SCHEDULER_CAP_ENGINE_BUSY_STATS (1ul << 4) +/* +* Indicates the 2k user priority levels are statically mapped into 3 buckets as +* follows: +* +* -1k to -1 Low priority +* 0 Normal priority +* 1 to 1k Highest priority +*/ +#define I915_SCHEDULER_CAP_STATIC_PRIORITY_MAP (1ul << 5)#define I915_PARAM_HUC_STATUS 42
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC PATCH 88/97 drm/i915/guc: Support request cancellation
In reply to Matthew BrostThis adds GuC backend support for i915_request_cancel(), which in turn makes CONFIG_DRM_I915_REQUEST_TIMEOUT work.
--- drivers/gpu/drm/i915/gt/intel_context.c | 9 + drivers/gpu/drm/i915/gt/intel_context.h | 7 + drivers/gpu/drm/i915/gt/intel_context_types.h | 7 + .../drm/i915/gt/intel_execlists_submission.c | 18 ++ drivers/gpu/drm/i915/gt/intel_gt_requests.c | 1 + .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 168 ++++++++++++++++++ drivers/gpu/drm/i915/i915_request.c | 14 +- 7 files changed, 211 insertions(+), 13 deletions(-)
drivers/gpu/drm/i915/gt/intel_context.c +9 -0
@@ -366,6 +366,12 @@ static int __intel_context_active(struct i915_active *active)return 0 ; } +static int sw_fence_dummy_notify (struct i915_sw_fence *sf, +enum i915_sw_fence_notify state) +{ +return NOTIFY_DONE ; +} +void intel_context_init (struct intel_context *ce,struct intel_engine_cs *engine) {
@@ -398,6 +404,9 @@ intel_context_init(struct intel_context *ce, struct intel_engine_cs *engine) ce->guc_id =GUC_INVALID_LRC_ID ;INIT_LIST_HEAD (&ce->guc_id_link); +i915_sw_fence_init (&ce->guc_blocked, sw_fence_dummy_notify); +i915_sw_fence_commit (&ce->guc_blocked); +i915_active_init (&ce->active, __intel_context_active, __intel_context_retire,0 ); }
drivers/gpu/drm/i915/gt/intel_context.h +7 -0
@@ -71,6 +71,13 @@ intel_context_is_pinned(struct intel_context *ce)return atomic_read (&ce->pin_count); } +static inline void intel_context_cancel_request (struct intel_context *ce, +struct i915_request *rq) +{ +GEM_BUG_ON (!ce->ops->cancel_request); +return ce->ops->cancel_request (ce, rq); +} +/** * intel_context_unlock_pinned - Releases the earlier locking of 'pinned' status * @ce - the context
drivers/gpu/drm/i915/gt/intel_context_types.h +7 -0
@@ -13,6 +13,7 @@#include <linux/types.h> #include "i915_active_types.h" +#include "i915_sw_fence.h" #include "i915_utils.h" #include "intel_engine_types.h" #include "intel_sseu.h"
@@ -43,6 +44,9 @@ struct intel_context_ops {void (*unpin)(struct intel_context *ce);void (*post_unpin)(struct intel_context *ce); +void (*cancel_request)(struct intel_context *ce, +struct i915_request *rq); +void (*enter)(struct intel_context *ce);void (*exit)(struct intel_context *ce);
@@ -200,6 +204,9 @@ struct intel_context {*/ u8 guc_prio;u32 guc_prio_count[GUC_CLIENT_PRIORITY_NUM ]; + +/* GuC context blocked fence */ + struct i915_sw_fence guc_blocked; };#endif /* __INTEL_CONTEXT_TYPES__ */
drivers/gpu/drm/i915/gt/intel_execlists_submission.c +18 -0
@@ -114,6 +114,7 @@#include "gen8_engine_cs.h" #include "intel_breadcrumbs.h" #include "intel_context.h" +#include "intel_engine_heartbeat.h" #include "intel_engine_pm.h" #include "intel_engine_stats.h" #include "intel_execlists_submission.h"
@@ -2545,11 +2546,26 @@ static int execlists_context_alloc(struct intel_context *ce)return lrc_alloc (ce, ce->engine); } +static void execlists_context_cancel_request (struct intel_context *ce, +struct i915_request *rq) +{ +struct intel_engine_cs *engine =NULL ; + +i915_request_active_engine (rq, &engine); + +if (engine &&intel_engine_pulse (engine)) +intel_gt_handle_error (engine->gt, engine->mask,0 , +"request cancellation by %s" , + current->comm); +} +static const struct intel_context_ops execlists_context_ops = { .flags =COPS_HAS_INFLIGHT , .alloc = execlists_context_alloc, + .cancel_request = execlists_context_cancel_request, + .pre_pin = execlists_context_pre_pin, .pin = execlists_context_pin, .unpin = lrc_unpin,
@@ -3649,6 +3665,8 @@ static const struct intel_context_ops virtual_context_ops = { .alloc = virtual_context_alloc, + .cancel_request = execlists_context_cancel_request, + .pre_pin = virtual_context_pre_pin, .pin = virtual_context_pin, .unpin = lrc_unpin,
drivers/gpu/drm/i915/gt/intel_gt_requests.c +1 -0
@@ -13,6 +13,7 @@#include "intel_gt_pm.h" #include "intel_gt_requests.h" #include "intel_timeline.h" +#include "intel_context.h" #include "uc/intel_uc.h" static bool retire_requests (struct intel_timeline *tl)
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +168 -0
237 lines not on this page · raw message
drivers/gpu/drm/i915/i915_request.c +1 -13
@@ -734,18 +734,6 @@ void i915_request_unsubmit(struct i915_request *request)spin_unlock_irqrestore (&engine->sched_engine->lock, flags); } -static void __cancel_request (struct i915_request *rq) -{ -struct intel_engine_cs *engine =NULL ; - -i915_request_active_engine (rq, &engine); - -if (engine &&intel_engine_pulse (engine)) -intel_gt_handle_error (engine->gt, engine->mask,0 , -"request cancellation by %s" , - current->comm); -} -void i915_request_cancel (struct i915_request *rq,int error) {if (!i915_request_set_error_once (rq, error))
@@ -753,7 +741,7 @@ void i915_request_cancel(struct i915_request *rq, int error)set_bit (I915_FENCE_FLAG_SENTINEL , &rq->fence.flags); -__cancel_request (rq); +intel_context_cancel_request (rq->context, rq); }static int __i915_sw_fence_call
Signature · 1 line
2.28.0
RFC PATCH 89/97 drm/i915/guc: Check return of __xa_store when registering a context
In reply to Matthew BrostCheck return of __xa_store when registering a context as this can fail in a rare case if not memory can not be allocated. If this occurs fall back on the tasklet flow control and try again in the future.
--- drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +11 -3
@@ -503,18 +503,24 @@ static inline bool lrc_desc_registered(struct intel_guc *guc, u32 id)return __get_context (guc, id); } -static inline void set_lrc_desc_registered (struct intel_guc *guc,u32 id, +static inline int set_lrc_desc_registered (struct intel_guc *guc,u32 id,struct intel_context *ce) {unsigned long flags; +void *ret;/* * xarray API doesn't have xa_save_irqsave wrapper, so calling the * lower level functions directly. */ xa_lock_irqsave (&guc->context_lookup, flags); -__xa_store (&guc->context_lookup, id, ce,GFP_ATOMIC ); + ret =__xa_store (&guc->context_lookup, id, ce,GFP_ATOMIC );xa_unlock_irqrestore (&guc->context_lookup, flags); + +if (unlikely (xa_is_err (ret))) +return -EBUSY ;/* Try again in future */ + +return 0 ; } static int guc_submission_busy_loop(struct intel_guc* guc,
@@ -1831,7 +1837,9 @@ static int guc_lrc_desc_pin(struct intel_context *ce, bool loop)rcu_read_unlock ();reset_lrc_desc (guc, desc_idx); -set_lrc_desc_registered (guc, desc_idx, ce); + ret =set_lrc_desc_registered (guc, desc_idx, ce); +if (unlikely (ret)) +return ret; desc =__get_lrc_desc (guc, desc_idx); desc->engine_class =engine_class_to_guc_class (engine->class);
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC PATCH 90/97 drm/i915/guc: Non-static lrc descriptor registration buffer
In reply to Matthew BrostDynamically allocate space for lrc descriptor registration with the GuC rather than using a large static buffer indexed by the guc_id. If no space is available to register a context, fall back to tasklet flow control mechanism. Only allow 1/2 of the space to be allocated outside the tasklet to prevent unready requests/contexts from consuming all registration space.
--- drivers/gpu/drm/i915/gt/intel_context_types.h | 3 + drivers/gpu/drm/i915/gt/uc/intel_guc.h | 9 +- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 198 +++++++++++++----- 3 files changed, 150 insertions(+), 60 deletions(-)
drivers/gpu/drm/i915/gt/intel_context_types.h +3 -0
@@ -182,6 +182,9 @@ struct intel_context {/* GuC scheduling state that does not require a lock. */ atomic_t guc_sched_state_no_lock; +/* GuC lrc descriptor registration buffer */ +unsigned int guc_lrcd_reg_idx; +/* GuC lrc descriptor ID */ u16 guc_id;
drivers/gpu/drm/i915/gt/uc/intel_guc.h +7 -2
@@ -68,8 +68,13 @@ struct intel_guc {u32 ads_regset_size;u32 ads_golden_ctxt_size; -struct i915_vma *lrc_desc_pool; -void *lrc_desc_pool_vaddr; +/* GuC LRC descriptor registration */ +struct { +struct i915_vma *vma; +void *vaddr; +struct ida ida; +unsigned int max_idx; + } lrcd_reg;/* guc_id to intel_context lookup */ struct xarray context_lookup;
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +140 -58
351 lines not on this page · raw message
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC PATCH 91/97 drm/i915/guc: Take GT PM ref when deregistering context
In reply to Matthew BrostTaking a PM reference to prevent intel_gt_wait_for_idle from short circuiting while a deregister context H2G is in flight.
--- drivers/gpu/drm/i915/gt/intel_engine_pm.h | 5 + drivers/gpu/drm/i915/gt/intel_gt_pm.h | 13 +++ drivers/gpu/drm/i915/gt/uc/intel_guc.h | 4 + .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 98 +++++++++++++++---- 4 files changed, 101 insertions(+), 19 deletions(-)
drivers/gpu/drm/i915/gt/intel_engine_pm.h +5 -0
@@ -16,6 +16,11 @@ intel_engine_pm_is_awake(const struct intel_engine_cs *engine)return intel_wakeref_is_active (&engine->wakeref); } +static inline void __intel_engine_pm_get (struct intel_engine_cs *engine) +{ +__intel_wakeref_get (&engine->wakeref); +} +static inline void intel_engine_pm_get (struct intel_engine_cs *engine) {intel_wakeref_get (&engine->wakeref);
drivers/gpu/drm/i915/gt/intel_gt_pm.h +13 -0
@@ -41,6 +41,19 @@ static inline void intel_gt_pm_put_async(struct intel_gt *gt)intel_wakeref_put_async (>->wakeref); } +#define with_intel_gt_pm (gt, tmp) \ + for (tmp = 1, intel_gt_pm_get(gt); tmp; \ + intel_gt_pm_put(gt), tmp = 0) +#define with_intel_gt_pm_async (gt, tmp) \ + for (tmp = 1, intel_gt_pm_get(gt); tmp; \ + intel_gt_pm_put_async(gt), tmp = 0) +#define with_intel_gt_pm_if_awake (gt, tmp) \ + for (tmp = intel_gt_pm_get_if_awake(gt); tmp; \ + intel_gt_pm_put(gt), tmp = 0) +#define with_intel_gt_pm_if_awake_async (gt, tmp) \ + for (tmp = intel_gt_pm_get_if_awake(gt); tmp; \ + intel_gt_pm_put_async(gt), tmp = 0) +static inline int intel_gt_pm_wait_for_idle (struct intel_gt *gt) {return intel_wakeref_wait_for_idle (>->wakeref);
drivers/gpu/drm/i915/gt/uc/intel_guc.h +4 -0
@@ -61,6 +61,10 @@ struct intel_guc {struct list_head guc_id_list_no_ref;struct list_head guc_id_list_unpinned; +spinlock_t destroy_lock; +struct list_head destroyed_contexts; +struct work_struct destroy_worker; +bool submission_selected;struct i915_vma *ads_vma;
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +79 -19
176 lines not on this page · raw message
Signature · 1 line
2.28.0
RFC PATCH 92/97 drm/i915: Add GT PM delayed worker
In reply to Matthew BrostSometimes it is desirable to queue work up for later if the GT PM isn't held and run that work on next GT PM unpark.
Implemented with a list in the GT of all pending work, workqueues in the list, a callback to add a workqueue to the list, and finally a wakeref post_get callback that iterates / drains the list + queues the workqueues.
First user of this is deregistration of GuC contexts.
--- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/gt/intel_gt.c | 3 ++ drivers/gpu/drm/i915/gt/intel_gt_pm.c | 8 +++++ .../drm/i915/gt/intel_gt_pm_delayed_work.c | 35 +++++++++++++++++++ .../drm/i915/gt/intel_gt_pm_delayed_work.h | 24 +++++++++++++ drivers/gpu/drm/i915/gt/intel_gt_types.h | 3 ++ drivers/gpu/drm/i915/gt/uc/intel_guc.h | 3 +- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 14 +++++--- drivers/gpu/drm/i915/intel_wakeref.c | 5 +++ drivers/gpu/drm/i915/intel_wakeref.h | 1 + 10 files changed, 92 insertions(+), 5 deletions(-) create mode 100644 drivers/gpu/drm/i915/gt/intel_gt_pm_delayed_work.c create mode 100644 drivers/gpu/drm/i915/gt/intel_gt_pm_delayed_work.h
drivers/gpu/drm/i915/Makefile +1 -0
@@ -102,6 +102,7 @@ gt-y += \ gt/intel_gt_clock_utils.o \ gt/intel_gt_irq.o \ gt/intel_gt_pm.o \ + gt/intel_gt_pm_delayed_work.o \ gt/intel_gt_pm_irq.o \ gt/intel_gt_requests.o \ gt/intel_gtt.o \
drivers/gpu/drm/i915/gt/intel_gt.c +3 -0
@@ -28,6 +28,9 @@ void intel_gt_init_early(struct intel_gt *gt, struct drm_i915_private *i915)spin_lock_init (>->irq_lock); +spin_lock_init (>->pm_delayed_work_lock); +INIT_LIST_HEAD (>->pm_delayed_work_list); +INIT_LIST_HEAD (>->closed_vma);spin_lock_init (>->closed_lock);
drivers/gpu/drm/i915/gt/intel_gt_pm.c +8 -0
@@ -93,6 +93,13 @@ static int __gt_unpark(struct intel_wakeref *wf)return 0 ; } +static void __gt_queue_delayed_work (struct intel_wakeref *wf) +{ +struct intel_gt *gt =container_of (wf,typeof (*gt), wakeref); + +intel_gt_pm_queue_delayed_work (gt); +} +static int __gt_park (struct intel_wakeref *wf) {struct intel_gt *gt =container_of (wf,typeof (*gt), wakeref);
@@ -123,6 +130,7 @@ static int __gt_park(struct intel_wakeref *wf)static const struct intel_wakeref_ops wf_ops = { .get = __gt_unpark, + .post_get = __gt_queue_delayed_work, .put = __gt_park, };
drivers/gpu/drm/i915/gt/intel_gt_pm_delayed_work.c new file +35 -0
@@ -0,0 +1,35 @@ +// SPDX-License-Identifier: MIT +/* +* Copyright © 2019 Intel Corporation +*/ + +#include "i915_drv.h" +#include "intel_runtime_pm.h" +#include "intel_gt_pm.h" + +void intel_gt_pm_queue_delayed_work (struct intel_gt *gt) +{ +struct intel_gt_pm_delayed_work *work, *next; +unsigned long flags; + +spin_lock_irqsave (>->pm_delayed_work_lock, flags); +list_for_each_entry_safe (work, next, + >->pm_delayed_work_list, link) { +list_del_init (&work->link); +queue_work (system_unbound_wq, &work->worker); + } +spin_unlock_irqrestore (>->pm_delayed_work_lock, flags); +} + +void intel_gt_pm_add_delayed_work (struct intel_gt *gt, +struct intel_gt_pm_delayed_work *work) +{ +unsigned long flags; + +spin_lock_irqsave (>->pm_delayed_work_lock, flags); +if (intel_gt_pm_is_awake (gt)) +queue_work (system_unbound_wq, &work->worker); +else if (list_empty (&work->link)) +list_add_tail (&work->link, >->pm_delayed_work_list); +spin_unlock_irqrestore (>->pm_delayed_work_lock, flags); +}
drivers/gpu/drm/i915/gt/intel_gt_pm_delayed_work.h new file +24 -0
@@ -0,0 +1,24 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2019 Intel Corporation +*/ + +#ifndef INTEL_GT_PM_DELAYED_WORK_H +#define INTEL_GT_PM_DELAYED_WORK_H + +#include <linux/list.h> +#include <linux/workqueue.h> + +struct intel_gt ; + +struct intel_gt_pm_delayed_work { +struct list_head link; +struct work_struct worker; +}; + +void intel_gt_pm_queue_delayed_work (struct intel_gt *gt); + +void intel_gt_pm_add_delayed_work (struct intel_gt *gt, +struct intel_gt_pm_delayed_work *work); + +#endif /* INTEL_GT_PM_DELAYED_WORK_H */
drivers/gpu/drm/i915/gt/intel_gt_types.h +3 -0
@@ -68,6 +68,9 @@ struct intel_gt {struct intel_wakeref wakeref;atomic_t user_wakeref; +struct list_head pm_delayed_work_list; +spinlock_t pm_delayed_work_lock; +struct list_head closed_vma;spinlock_t closed_lock;/* guards the list of closed_vma */
drivers/gpu/drm/i915/gt/uc/intel_guc.h +2 -1
@@ -17,6 +17,7 @@#include "intel_uc_fw.h" #include "i915_utils.h" #include "i915_vma.h" +#include "gt/intel_gt_pm_delayed_work.h" struct __guc_ads_blob ;
@@ -63,7 +64,7 @@ struct intel_guc {spinlock_t destroy_lock;struct list_head destroyed_contexts; -struct work_struct destroy_worker; +struct intel_gt_pm_delayed_work destroy_worker;bool submission_selected;
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +10 -4
@@ -1395,7 +1395,8 @@ int intel_guc_submission_init(struct intel_guc *guc)spin_lock_init (&guc->destroy_lock);INIT_LIST_HEAD (&guc->destroyed_contexts); -INIT_WORK (&guc->destroy_worker, destroy_worker_func); +INIT_LIST_HEAD (&guc->destroy_worker.link); +INIT_WORK (&guc->destroy_worker.worker, destroy_worker_func);return 0 ; }
@@ -2374,13 +2375,18 @@ static void deregister_destroyed_contexts(struct intel_guc *guc)static void destroy_worker_func (struct work_struct *w) { +struct intel_gt_pm_delayed_work *destroy_worker = + container_of(w, struct intel_gt_pm_delayed_work, worker);struct intel_guc *guc = - container_of(w, struct intel_guc, destroy_worker); + container_of(destroy_worker, struct intel_guc, destroy_worker);struct intel_gt *gt =guc_to_gt (guc);int tmp; - with_intel_gt_pm(gt, tmp) + with_intel_gt_pm_if_awake(gt, tmp)deregister_destroyed_contexts (guc); + +if (!list_empty (&guc->destroyed_contexts)) +intel_gt_pm_add_delayed_work (gt, destroy_worker); }static void guc_context_destroy (struct kref *kref)
@@ -2441,7 +2447,7 @@ static void guc_context_destroy(struct kref *kref)* take the GT PM for the first time which isn't allowed from an atomic * context. */ -queue_work (system_unbound_wq, &guc->destroy_worker); +intel_gt_pm_add_delayed_work (guc_to_gt (guc), &guc->destroy_worker); }static int guc_context_alloc (struct intel_context *ce)
drivers/gpu/drm/i915/intel_wakeref.c +5 -0
@@ -24,6 +24,8 @@ static void rpm_put(struct intel_wakeref *wf)int __intel_wakeref_get_first (struct intel_wakeref *wf) { +bool do_post = false; +/* * Treat get/put as different subclasses, as we may need to run * the put callback from under the shrinker and do not want to
@@ -44,8 +46,11 @@ int __intel_wakeref_get_first(struct intel_wakeref *wf) }smp_mb__before_atomic ();/* release wf->count */ + do_post = true; }atomic_inc (&wf->count); +if (do_post && wf->ops->post_get) + wf->ops->post_get (wf);mutex_unlock (&wf->mutex);INTEL_WAKEREF_BUG_ON (atomic_read (&wf->count) <=0 );
drivers/gpu/drm/i915/intel_wakeref.h +1 -0
@@ -30,6 +30,7 @@ typedef depot_stack_handle_t intel_wakeref_t;struct intel_wakeref_ops {int (*get)(struct intel_wakeref *wf); +void (*post_get)(struct intel_wakeref *wf);int (*put)(struct intel_wakeref *wf); };
Signature · 1 line
2.28.0
RFC PATCH 93/97 drm/i915/guc: Take engine PM when a context is pinned with GuC submission
In reply to Matthew BrostTaking a PM reference to prevent intel_gt_wait_for_idle from short circuiting while a scheduling of user context could be enabled.
--- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 36 +++++++++++++++++-- 1 file changed, 33 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +33 -3
@@ -2026,7 +2026,12 @@ static int guc_context_pre_pin(struct intel_context *ce,static int guc_context_pin (struct intel_context *ce,void *vaddr) { -return __guc_context_pin (ce, ce->engine, vaddr); +int ret =__guc_context_pin (ce, ce->engine, vaddr); + +if (likely (!ret && !intel_context_is_barrier (ce))) +intel_engine_pm_get (ce->engine); + +return ret; }static void guc_context_unpin (struct intel_context *ce)
@@ -2037,6 +2042,9 @@ static void guc_context_unpin(struct intel_context *ce)unpin_guc_id (guc, ce, true);lrc_unpin (ce); + +if (likely (!intel_context_is_barrier (ce))) +intel_engine_pm_put (ce->engine); }static void guc_context_post_unpin (struct intel_context *ce)
@@ -2922,8 +2930,30 @@ static int guc_virtual_context_pre_pin(struct intel_context *ce,static int guc_virtual_context_pin (struct intel_context *ce,void *vaddr) {struct intel_engine_cs *engine =guc_virtual_get_sibling (ce->engine,0 ); +int ret =__guc_context_pin (ce, engine, vaddr); +intel_engine_mask_t tmp, mask = ce->engine->mask; + +if (likely (!ret)) +for_each_engine_masked (engine, ce->engine->gt, mask, tmp) +intel_engine_pm_get (engine); + +return ret; +} + +static void guc_virtual_context_unpin (struct intel_context *ce) +{ +intel_engine_mask_t tmp, mask = ce->engine->mask; +struct intel_engine_cs *engine; +struct intel_guc *guc =ce_to_guc (ce); -return __guc_context_pin (ce, engine, vaddr); +GEM_BUG_ON (context_enabled (ce)); +GEM_BUG_ON (intel_context_is_barrier (ce)); + +unpin_guc_id (guc, ce, true); +lrc_unpin (ce); + +for_each_engine_masked (engine, ce->engine->gt, mask, tmp) +intel_engine_pm_put (engine); }static void guc_virtual_context_enter (struct intel_context *ce)
@@ -2972,7 +3002,7 @@ static const struct intel_context_ops virtual_guc_context_ops = { .pre_pin = guc_virtual_context_pre_pin, .pin = guc_virtual_context_pin, - .unpin = guc_context_unpin, + .unpin = guc_virtual_context_unpin, .post_unpin = guc_context_post_unpin, .ban = guc_context_ban,
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC PATCH 94/97 drm/i915/guc: Don't call switch_to_kernel_context with GuC submission
In reply to Matthew BrostCalling switch_to_kernel_context isn't needed if the engine PM reference is taken while all contexts are pinned. By not calling switch_to_kernel_context we save on issuing a request to the engine.
--- drivers/gpu/drm/i915/gt/intel_engine_pm.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/i915/gt/intel_engine_pm.c +4 -0
@@ -162,6 +162,10 @@ static bool switch_to_kernel_context(struct intel_engine_cs *engine)unsigned long flags;bool result = true; +/* No need to switch_to_kernel_context if GuC submission */ +if (intel_engine_uses_guc (engine)) +return true; +/* GPU is pointing to the void, as good as in the kernel context. */ if (intel_gt_is_wedged (engine->gt))return true;
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC PATCH 95/97 drm/i915/guc: Selftest for GuC flow control
In reply to Matthew BrostAdd 5 selftests for hard (from user space) to recreate flow conditions. Test listed below:
1. A test to verify that the number of guc_ids can be exhausted and all submissions still complete.
2. A test to verify that the flow control state machine can recover from a full GPU reset.
3. A teset to verify that the lrcd registration slots can be exhausted and all submissions still complete.
4. A test to verify that the H2G channel can deadlock and a full GPU reset recovers the system.
5. A test to stress to CTB channel but submitting to lots of contexts and then immediately destroy the contexts.
Tests 1, 2, and 3 also ensure when the flow control is triggered by unready requests those unready requests do not DoS ready requests.
--- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/gt/uc/intel_guc.h | 6 + drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 40 +- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h | 9 + .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 16 + .../i915/gt/uc/intel_guc_submission_types.h | 2 + .../i915/gt/uc/selftest_guc_flow_control.c | 589 ++++++++++++++++++ .../drm/i915/selftests/i915_live_selftests.h | 1 + .../i915/selftests/intel_scheduler_helpers.c | 101 +++ .../i915/selftests/intel_scheduler_helpers.h | 37 ++ 10 files changed, 793 insertions(+), 9 deletions(-) create mode 100644 drivers/gpu/drm/i915/gt/uc/selftest_guc_flow_control.c create mode 100644 drivers/gpu/drm/i915/selftests/intel_scheduler_helpers.c create mode 100644 drivers/gpu/drm/i915/selftests/intel_scheduler_helpers.h
drivers/gpu/drm/i915/Makefile +1 -0
@@ -285,6 +285,7 @@ i915-$(CONFIG_DRM_I915_SELFTEST) += \ selftests/igt_mmap.o \ selftests/igt_reset.o \ selftests/igt_spinner.o \ + selftests/intel_scheduler_helpers.o \ selftests/librapl.o # virtual gpu code
drivers/gpu/drm/i915/gt/uc/intel_guc.h +6 -0
@@ -102,6 +102,12 @@ struct intel_guc {/* To serialize the intel_guc_send actions */ struct mutex send_mutex; + + I915_SELFTEST_DECLARE(bool gse_hang_expected;) + I915_SELFTEST_DECLARE(bool deadlock_expected;) + I915_SELFTEST_DECLARE(bool bad_desc_expected;) + I915_SELFTEST_DECLARE(bool inject_bad_sched_disable;) + I915_SELFTEST_DECLARE(bool inject_corrupt_h2g;) };static inline struct intel_guc *log_to_guc (struct intel_guc_log *log)
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c +31 -9
@@ -3,7 +3,6 @@* Copyright © 2016-2019 Intel Corporation */ -#include <linux/circ_buf.h> #include <linux/ktime.h> #include <linux/time64.h> #include <linux/timekeeping.h>
@@ -404,11 +403,13 @@ static int ct_write(struct intel_guc_ct *ct,u32 *cmds = ctb->cmds;unsigned int i; -if (unlikely (ctb->broken)) -return -EDEADLK ; +if (!I915_SELFTEST_ONLY (ct_to_guc (ct)->deadlock_expected)) { +if (unlikely (ctb->broken)) +return -EDEADLK ; -if (unlikely (desc->status)) - goto corrupted; +if (unlikely (desc->status)) + goto corrupted; + }#ifdef CONFIG_DRM_I915_DEBUG_GUC if (unlikely ((desc->tail | desc->head) >= size)) {
@@ -427,6 +428,15 @@ static int ct_write(struct intel_guc_ct *ct,FIELD_PREP (GUC_CTB_MSG_0_NUM_DWORDS , len) | FIELD_PREP(GUC_CTB_MSG_0_FENCE, fence); +#if IS_ENABLED (CONFIG_DRM_I915_SELFTEST ) +if (ct_to_guc (ct)->inject_corrupt_h2g) { + header =FIELD_PREP (GUC_CTB_MSG_0_FORMAT ,3 ) | +FIELD_PREP (GUC_CTB_MSG_0_NUM_DWORDS , len +5 ) | +FIELD_PREP (GUC_CTB_MSG_0_FENCE ,0xdead ); +ct_to_guc (ct)->inject_corrupt_h2g = false; + } +#endif + hxg = (flags & INTEL_GUC_SEND_NB) ? (FIELD_PREP(GUC_HXG_MSG_0_TYPE, GUC_HXG_TYPE_EVENT) | FIELD_PREP(GUC_HXG_EVENT_MSG_0_ACTION |
@@ -464,8 +474,12 @@ static int ct_write(struct intel_guc_ct *ct,return 0 ; corrupted: -CT_ERROR (ct,"Corrupted descriptor head=%u tail=%u status=%#x\n" , - desc->head, desc->tail, desc->status); +if (I915_SELFTEST_ONLY (ct_to_guc (ct)->bad_desc_expected)) +CT_DEBUG (ct,"Corrupted descriptor head=%u tail=%u status=%#x\n" , + desc->head, desc->tail, desc->status); +else +CT_ERROR (ct,"Corrupted descriptor head=%u tail=%u status=%#x\n" , + desc->head, desc->tail, desc->status); ctb->broken = true;return -EDEADLK ; }
@@ -517,8 +531,16 @@ static inline bool ct_deadlocked(struct intel_guc_ct *ct)bool ret =ktime_us_delta (ktime_get (), ct->stall_time) >MAX_US_STALL_CTB ; -if (unlikely (ret)) -CT_ERROR (ct,"CT deadlocked\n" ); +if (unlikely (ret)) { +/* +* CI doesn't like error messages, demote to debug if deadlock was +* intentionally hit. +*/ +if (I915_SELFTEST_ONLY (ct_to_guc (ct)->deadlock_expected)) +CT_DEBUG (ct,"CT deadlocked\n" ); +else +CT_ERROR (ct,"CT deadlocked\n" ); + }return ret; }
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h +9 -0
@@ -6,6 +6,7 @@#ifndef _INTEL_GUC_CT_H_#define _INTEL_GUC_CT_H_ +#include <linux/circ_buf.h> #include <linux/interrupt.h> #include <linux/spinlock.h> #include <linux/workqueue.h>
@@ -109,4 +110,12 @@ void intel_guc_ct_event_handler(struct intel_guc_ct *ct);void intel_guc_log_ct_info (struct intel_guc_ct *ct,struct drm_printer *p); +static inline bool intel_guc_ct_is_recv_buffer_empty (struct intel_guc_ct *ct) +{ +struct intel_guc_ct_buffer *ctb = &ct->ctbs.recv; + +return atomic_read (&ctb->space) == + (CIRC_SPACE (0 ,0 , ctb->size) - ctb->resv_space); +} +#endif /* _INTEL_GUC_CT_H_ */
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +16 -0
@@ -818,6 +818,7 @@ static int gse_dequeue_one_context(struct guc_submit_engine *gse)GEM_WARN_ON (ret);/* Unexpected */ goto deadlk; } + I915_SELFTEST_DECLARE(++gse->tasklets_submit_count;) }/*
@@ -2077,7 +2078,15 @@ static void __guc_context_sched_disable(struct intel_guc *guc, GUC_CONTEXT_DISABLE }; +#if IS_ENABLED (CONFIG_DRM_I915_SELFTEST ) +if (guc->inject_bad_sched_disable && + guc_id ==GUC_INVALID_LRC_ID ) + guc->inject_bad_sched_disable = false; +else +GEM_BUG_ON (guc_id ==GUC_INVALID_LRC_ID ); +#else GEM_BUG_ON (guc_id ==GUC_INVALID_LRC_ID ); +#endif trace_intel_context_sched_disable (ce);
@@ -2689,6 +2698,9 @@ static void retire_worker_sched_disable(struct guc_submit_engine *gse, guc_id =prep_context_pending_disable (ce);spin_unlock_irqrestore (&ce->guc_state.lock, flags); +if (I915_SELFTEST_ONLY (gse->guc->inject_bad_sched_disable)) + guc_id =GUC_INVALID_LRC_ID ; + with_intel_runtime_pm(runtime_pm, wakeref)__guc_context_sched_disable (gse->guc, ce, guc_id);
@@ -3952,3 +3964,7 @@ bool intel_guc_virtual_engine_has_heartbeat(const struct intel_engine_cs *ve)return false; } + +#if IS_ENABLED (CONFIG_DRM_I915_SELFTEST ) +#include "selftest_guc_flow_control.c" +#endif
drivers/gpu/drm/i915/gt/uc/intel_guc_submission_types.h +2 -0
@@ -48,6 +48,8 @@ struct guc_submit_engine {STALL_MOVE_LRC_TAIL ,STALL_ADD_REQUEST , } submission_stall_reason; + + I915_SELFTEST_DECLARE(u64 tasklets_submit_count;) };#endif
drivers/gpu/drm/i915/gt/uc/selftest_guc_flow_control.c new file +589 -0
589 lines not on this page · raw message
drivers/gpu/drm/i915/selftests/i915_live_selftests.h +1 -0
@@ -46,5 +46,6 @@ selftest(hangcheck, intel_hangcheck_live_selftests) selftest(execlists, intel_execlists_live_selftests) selftest(ring_submission, intel_ring_submission_live_selftests) selftest(perf, i915_perf_live_selftests) +selftest (guc_flow_control, intel_guc_flow_control) /* Here be dragons: keep last to run last! */selftest (late_gt_pm, intel_gt_pm_late_selftests)
drivers/gpu/drm/i915/selftests/intel_scheduler_helpers.c new file +101 -0
101 lines not on this page · raw message
drivers/gpu/drm/i915/selftests/intel_scheduler_helpers.h new file +37 -0
@@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2014-2019 Intel Corporation +*/ + +#ifndef _INTEL_SELFTEST_SCHEDULER_HELPERS_H_ +#define _INTEL_SELFTEST_SCHEDULER_HELPERS_H_ + +#include <linux/types.h> + +struct intel_gt ; +struct i915_request ; +struct intel_engine_cs ; + +struct intel_selftest_saved_policy +{ +u32 flags; +u32 reset; +u64 timeslice; +u64 preempt_timeout; +}; + +enum selftest_scheduler_modify +{ +SELFTEST_SCHEDULER_MODIFY_NO_HANGCHECK =0 , +SELFTEST_SCHEDULER_MODIFY_FAST_RESET , +}; + +int intel_selftest_modify_policy (struct intel_engine_cs *engine, +struct intel_selftest_saved_policy *saved, +enum selftest_scheduler_modify modify_type); +int intel_selftest_restore_policy (struct intel_engine_cs *engine, +struct intel_selftest_saved_policy *saved); +int intel_selftest_wait_for_rq (struct i915_request *rq); +struct intel_engine_cs *intel_selftest_find_any_engine (struct intel_gt *gt); + +#endif
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC PATCH 96/97 drm/i915/guc: Update GuC documentation
In reply to Matthew Brost--- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 99 ++++++++++++++----- 1 file changed, 77 insertions(+), 22 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +77 -22
@@ -29,21 +29,6 @@/** * DOC: GuC-based command submission * -* IMPORTANT NOTE: GuC submission is currently not supported in i915. The GuC -* firmware is moving to an updated submission interface and we plan to -* turn submission back on when that lands. The below documentation (and related -* code) matches the old submission model and will be updated as part of the -* upgrade to the new flow. -* -* GuC stage descriptor: -* During initialization, the driver allocates a static pool of 1024 such -* descriptors, and shares them with the GuC. Currently, we only use one -* descriptor. This stage descriptor lets the GuC know about the workqueue and -* process descriptor. Theoretically, it also lets the GuC know about our HW -* contexts (context ID, etc...), but we actually employ a kind of submission -* where the GuC uses the LRCA sent via the work item instead. This is called -* a "proxy" submission. -* * The Scratch registers: * There are 16 MMIO-based registers start from 0xC180. The kernel driver writes * a value to the action register (SOFT_SCRATCH_0) along with any data. It then
@@ -52,13 +37,45 @@* processes the request. The kernel driver polls waiting for this update and * then proceeds. * -* Work Items: -* There are several types of work items that the host may place into a -* workqueue, each with its own requirements and limitations. Currently only -* WQ_TYPE_INORDER is needed to support legacy submission via GuC, which -* represents in-order queue. The kernel driver packs ring tail pointer and an -* ELSP context descriptor dword into Work Item. -* See gse_add_request() +* Command Transport buffers (CTBs): +* Covered in detail in other sections but CTBs (host-to-guc, H2G, guc-to-host +* G2H) are how the i915 controls submissions. +* +* Context registration: +* Before a context can be submitted it must be registered with the GuC via a +* H2G. A unique guc_id associated with each context. The context is either +* registered at request creation time (no flow control) or at submission time +* (flow control). It will stay registered until the context is destroyed or a +* flow control condition is met (e.g. pressure on guc_ids). +* +* Context submission: +* The i915 updates the LRC tail value in memory. Either a schedule enable H2G +* or context submit H2G is used to submit a context. +* +* Context unpin: +* To unpin a context a H2G is used to disable scheduling and when the +* corresponding G2H returns indicating the scheduling disable operation has +* completed it is safe to unpin the context. While a disable is in flight it +* isn't safe to resubmit the context so a fence is used to stall all future +* requests until the G2H is returned. +* +* Context deregistration: +* Before a context can be destroyed or we steal its guc_id we must deregister +* the context with the GuC via H2G. If stealing the guc_id it isn't safe to +* submit anything to this guc_id until the deregister completes so a fence is +* used to stall all requests associated with this guc_ids until the +* corresponding G2H returns indicating the guc_id has been deregistered. +* +* guc_ids: +* Unique number associated with private GuC context data passed in during +* context registration / submission / deregistration. 64k available. Simple ida +* is used for allocation. +* +* Stealing guc_ids: +* If no guc_ids are available they can be stolen from another context at +* request creation time if that context is unpinned. If nothing can be found at +* request creation time, flow control is triggered (serializing all submission +* until flow control exits) and guc_ids are stolden at submission time. * * GuC flow control state machine: * The tasklet, workqueue (retire_worker), and the G2H handlers together more or
@@ -79,6 +96,44 @@* STALL_MOVE_LRC_TAIL Tasklet will try to move LRC tail * STALL_ADD_REQUEST Tasklet will try to add the request (submit * context) +* +* Locking: +* In the GuC submission code we have 4 basic spin locks which protect +* everything. Details about each below. +* +* gse->sched_engine->lock +* This is the submission lock for all contexts that share a GuC submit engine +* (gse), thus only 1 context which share a gse can be submitting at a time. +* +* guc->contexts_lock +* Protects guc_id allocation. Global lock i.e. Only 1 context that uses GuC +* submission can hold this at a time. +* +* ce->guc_state.lock +* Protects everything under ce->guc_state. Ensures that a context is in the +* correct state before issuing a H2G. e.g. We don't issue a schedule disable +* on disabled context (bad idea), we don't issue schedule enable when a +* schedule disable is inflight, etc... Lock individual to each context. +* +* ce->guc_active.lock +* Protects everything under ce->guc_active which is the current requests +* inflight on the context / priority management. Lock individual to each +* context. +* +* Lock ordering rules: +* ce->guc_state.lock -> gse->sched_engine->lock -> ce->guc_active.lock +* gse->sched_engine->lock -> guc->contexts_lock +* +* Reset races: +* When a GPU full reset is triggered it is assumed that some G2H responses to +* a H2G can be lost as the GuC is likely toast. Losing these G2H can prove to +* fatal as we do certain operations upon receiving a G2H (e.g. destroy +* contexts, release guc_ids, etc...). Luckly when this occurs we can scrub +* context state and cleanup appropriately, however this is quite racey. To +* avoid races the rules are check for submission being disabled (i.e. check for +* mid reset) with the appropriate lock being held. If submission is disabled +* don't send the H2G. The reset code must disable submission and flush all +* locks before scrubbing for missing G2H. */ static struct intel_context *
Signature · 1 line
2.28.0
RFC PATCH 97/97 drm/i915/guc: Unblock GuC submission on Gen11+
In reply to Matthew BrostFrom: Daniele Ceraolo Spurio <[email protected]>
Unblock GuC submission on Gen11+ platforms.
--- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 1 + drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 8 ++++++++ drivers/gpu/drm/i915/gt/uc/intel_guc_submission.h | 3 +-- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 14 +++++++++----- 4 files changed, 19 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc.h +1 -0
@@ -66,6 +66,7 @@ struct intel_guc {struct list_head destroyed_contexts;struct intel_gt_pm_delayed_work destroy_worker; +bool submission_supported;bool submission_selected;struct i915_vma *ads_vma;
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +8 -0
@@ -3477,6 +3477,13 @@ void intel_guc_submission_disable(struct intel_guc *guc)/* Note: By the time we're here, GuC may have already been reset */ } +static bool __guc_submission_supported (struct intel_guc *guc) +{ +/* GuC submission is unavailable for pre-Gen11 */ +return intel_guc_is_supported (guc) && +INTEL_GEN (guc_to_gt (guc)->i915) >=11 ; +} +static bool __guc_submission_selected (struct intel_guc *guc) {struct drm_i915_private *i915 =guc_to_gt (guc)->i915;
@@ -3491,6 +3498,7 @@ void intel_guc_submission_init_early(struct intel_guc *guc) { guc->max_guc_ids =GUC_MAX_LRC_DESCRIPTORS ; guc->num_guc_ids =GUC_MAX_LRC_DESCRIPTORS ; + guc->submission_supported =__guc_submission_supported (guc); guc->submission_selected =__guc_submission_selected (guc); }
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.h +1 -2
@@ -37,8 +37,7 @@ int intel_guc_wait_for_pending_msg(struct intel_guc *guc,static inline bool intel_guc_submission_is_supported (struct intel_guc *guc) { -/* XXX: GuC submission is unavailable for now */ -return false; +return guc->submission_supported; }static inline bool intel_guc_submission_is_wanted (struct intel_guc *guc)
drivers/gpu/drm/i915/gt/uc/intel_uc.c +9 -5
@@ -34,8 +34,15 @@ static void uc_expand_default_options(struct intel_uc *uc)return ; } -/* Default: enable HuC authentication only */ - i915->params.enable_guc =ENABLE_GUC_LOAD_HUC ; +/* Intermediate platforms are HuC authentication only */ +if (IS_DG1 (i915) ||IS_ALDERLAKE_S (i915)) { +drm_dbg (&i915->drm,"Disabling GuC only due to old platform\n" ); + i915->params.enable_guc =ENABLE_GUC_LOAD_HUC ; +return ; + } + +/* Default: enable HuC authentication and GuC submission */ + i915->params.enable_guc =ENABLE_GUC_LOAD_HUC |ENABLE_GUC_SUBMISSION ; }/* Reset GuC providing us with fresh state for both GuC and HuC.
@@ -313,9 +320,6 @@ static int __uc_init(struct intel_uc *uc)if (i915_inject_probe_failure (uc_to_gt (uc)->i915))return -ENOMEM ; -/* XXX: GuC submission is unavailable for now */ -GEM_BUG_ON (intel_uc_uses_guc_submission (uc)); - ret =intel_guc_init (guc);if (ret)return ret;
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BUILD: failure for Basic GuC submission support in the i915
In reply to Matthew Brost== Series Details ==
== Series Details ==
Series: Basic GuC submission support in the i915
URL : https://patchwork.freedesktop.org/series/89844/
State : failure
== Summary ==
CALL scripts/checksyscalls.sh
CALL scripts/atomic/check-atomics.sh
DESCEND objtool
CHK include/generated/compile.h
LD [M] drivers/gpu/drm/i915/i915.o
HDRTEST drivers/gpu/drm/i915/gt/intel_gt_requests.h
In file included from <command-line>:./drivers/gpu/drm/i915/gt/intel_gt_requests.h: In function ‘intel_gt_retire_requests’:./drivers/gpu/drm/i915/gt/intel_gt_requests.h:17:42: error: ‘NULL’ undeclared (first use in this function)
intel_gt_retire_requests_timeout(gt, 0, NULL);
^~~~./drivers/gpu/drm/i915/gt/intel_gt_requests.h:17:42: note: ‘NULL’ is defined in header ‘<stddef.h>’; did you forget to ‘#include <stddef.h>’? ./drivers/gpu/drm/i915/gt/intel_gt_requests.h:1:1:
+#include <stddef.h>
/* SPDX-License-Identifier: MIT */./drivers/gpu/drm/i915/gt/intel_gt_requests.h:17:42:
intel_gt_retire_requests_timeout(gt, 0, NULL);
^~~~./drivers/gpu/drm/i915/gt/intel_gt_requests.h:17:42: note: each undeclared identifier is reported only once for each function it appears in drivers/gpu/drm/i915/Makefile:316: recipe for target 'drivers/gpu/drm/i915/gt/intel_gt_requests.hdrtest' failed make[4]: *** [drivers/gpu/drm/i915/gt/intel_gt_requests.hdrtest] Error 1scripts/Makefile.build:514: recipe for target 'drivers/gpu/drm/i915' failed
make[3]: *** [drivers/gpu/drm/i915] Error 2scripts/Makefile.build:514: recipe for target 'drivers/gpu/drm' failed
make[2]: *** [drivers/gpu/drm] Error 2scripts/Makefile.build:514: recipe for target 'drivers/gpu' failed
make[1]: *** [drivers/gpu] Error 2
Makefile:1851: recipe for target 'drivers' failed
make: *** [drivers] Error 2
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Hi,
Quoted 7 lines · Matthew Brost
Basic GuC submission support. This is the first bullet point in the upstreaming plan covered in the following RFC [1].
At a very high level the GuC is a piece of firmware which sits between the i915 and the GPU. It offloads some of the scheduling of contexts from the i915 and programs the GPU to submit contexts. The i915 communicates with the GuC and the GuC communicates with the GPU.
May I ask what will GuC command submission do that execlist won't/can't do? And what would be the impact on users? Even forgetting the troubled history of GuC (instability, performance regression, poor level of user support, 6+ years of trying to upstream it...), adding this much code and doubling the amount of validation needed should come with a rationale making it feel worth it... and I am not seeing here. Would you mind providing the rationale behind this work?
Quoted 5 lines
GuC submission will be disabled by default on all current upstream platforms behind a module parameter -
enable_guc. A value of 3 will enable submission and HuC loading via the GuC. GuC submission should work on all gen11+ platforms assuming the GuC firmware is present.
What is the plan here when it comes to keeping support for execlist? I am afraid that landing GuC support in Linux is the first step towards killing the execlist, which would force users to use proprietary firmwares that even most Intel engineers have little influence over. Indeed, if "drm/i915/guc: Disable semaphores when using GuC scheduling" which states "Disable semaphores when using GuC scheduling as semaphores are broken in the current GuC firmware." is anything to go by, it means that even Intel developers seem to prefer working around the GuC firmware, rather than fixing it.
In the same vein, I have another concern related to the impact of GuC on Linux's stable releases. Let's say that in 3 years, a new application triggers a bug in command submission inside the firmware. Given that the Linux community cannot patch the GuC firmware, how likely is it that Intel would release a new GuC version? That would not be necessarily such a big problem if newer versions of the GuC could easily be backported to this potentially-decade-old Linux version, but given that the GuC seems to have ABI-breaking changes on a monthly cadence (we are at major version 60 *already*? :o), I would say that it is highly-unlikely that it would not require potentially-extensive changes to i915 to make it work, making the fix almost impossible to land in the stable tree... Do you have a plan to mitigate this problem?
Patches like "drm/i915/guc: Disable bonding extension with GuC submission" also make me twitch, as this means the two command submission paths will not be functionally equivalent, and enabling GuC could thus introduce a user-visible regression (one app used to work, then stopped working). Could you add in the commit's message a proof that this would not end up being a user regression (in which case, why have this codepath to begin with?).
Finally, could you explain why IGT tests need to be modified to work the GuC [1], and how much of the code in this series is covered by existing/upcoming tests? I would expect a very solid set of tests to minimize the maintenance burden, and enable users to reproduce potential issues found in this new codepath (too many users run with enable_guc=3, as can be seen on Google[2]).
Looking forward to reading up about your plan, and the commitments Intel would put in place to make this feature something users should be looking forward to rather than fear.
Thanks,
Martin
[2] https://www.google.com/search?q=enable_guc%3D3
Quoted 241 lines
This is a huge series and it is completely unrealistic to merge all of these patches at once. Fortunately I believe we can break down the series into different merges:
1. Merge Chris Wilson's patches. These have already been reviewed upstream and I fully agree with these patches as a precursor to GuC submission.
2. Update to GuC 60.1.2. These are largely Michal's patches.
3. Turn on GuC/HuC auto mode by default.
4. Additional patches needed to support GuC submission. This is any patch not covered by 1-3 in the first 34 patches. e.g. 'Engine relative MMIO'
5. GuC submission support. Patches number 35+. These all don't have to merge at once though as we don't actually allow GuC submission until the last patch of this series.
[1] https://patchwork.freedesktop.org/patch/432206/?series=89840&rev=1
Signed-off-by Matthew Brost <[email protected]>Chris Wilson (3):
drm/i915/gt: Move engine setup out ofset_default_submissiondrm/i915/gt: Movesubmission_methodintointel_gtdrm/i915/gt: Move CS interrupt handler to the backendDaniele Ceraolo Spurio (6):
drm/i915/guc: skip disabling CTBs before sanitizing the GuC drm/i915/guc: useprobe_errorlog for CT enablement failure drm/i915/guc: enable only the user interrupt when using GuC submission drm/i915/uc: turn on GuC/HuC auto mode by default drm/i915/guc: Useguc_classinstead ofengine_classin fw interface drm/i915/guc: Unblock GuC submission on Gen11+John Harrison (13):
drm/i915/guc: Support per context scheduling policies drm/i915/guc: Update firmware to v60.1.2
drm/i915: Engine relative MMIO
drm/i915/guc: Module load failure test for CT buffer creation drm/i915: Track 'serial' counts for virtual engines drm/i915/guc: Provide mmio list to be saved/restored on engine reset drm/i915/guc: Don't complain about reset races drm/i915/guc: Enable GuC engine reset
drm/i915/guc: Fix for error capture after full GPU reset with GuC drm/i915/guc: Hook GuC scheduling policies up drm/i915/guc: Connect reset modparam updates to GuC policy flags drm/i915/guc: Include scheduling policies in the debugfs state dump drm/i915/guc: Add golden context to GuC ADSMatthew Brost (53):
drm/i915: Introducei915_sched_engineobject
drm/i915/guc: Improve error message for unsolicited CT response drm/i915/guc: Add non blocking CTB send function drm/i915/guc: Add stall timer to non blocking CTB send function drm/i915/guc: Optimize CTB writes and reads
drm/i915/guc: Increase size of CTB buffers
drm/i915/guc: Add new GuC interface defines and structures drm/i915/guc: Remove GuC stage descriptor, add lrc descriptor drm/i915/guc: Add lrc descriptor context lookup array drm/i915/guc: Implement GuC submission tasklet drm/i915/guc: Add bypass tasklet submission path to GuC drm/i915/guc: Implement GuC context operations for new inteface drm/i915/guc: Insert fence on context when deregistering drm/i915/guc: Defer context unpin until scheduling is disabled drm/i915/guc: Disable engine barriers with GuC during unpin drm/i915/guc: Extend deregistration fence to schedule disable drm/i915: Disable preempt busywait when using GuC scheduling drm/i915/guc: Ensure request ordering via completion fences drm/i915/guc: Disable semaphores when using GuC scheduling drm/i915/guc: Ensure G2H response has space in buffer drm/i915/guc: Updateintel_gt_wait_for_idleto work with GuC drm/i915/guc: Update GuC debugfs to support new GuC drm/i915/guc: Add several request trace points
drm/i915: Addintel_contexttracing
drm/i915/guc: GuC virtual engines
drm/i915: Hold reference tointel_contextover life ofi915_requestdrm/i915/guc: Disable bonding extension with GuC submission drm/i915/guc: Direct all breadcrumbs for a class to single breadcrumbs drm/i915/guc: Reset implementation for new GuC interface drm/i915: Reset GPU immediately if submission is disabled drm/i915/guc: Add disable interrupts to guc sanitize drm/i915/guc: Suspend/resume implementation for new interface drm/i915/guc: Handle context reset notification drm/i915/guc: Handle engine reset failure notification drm/i915/guc: Enable the timer expired interrupt for GuC drm/i915/guc: Capture error state on context reset drm/i915/guc: Don't callring_is_idlein GuC submission drm/i915/guc: Implement banned contexts for GuC submission drm/i915/guc: Allow flexible number of context ids drm/i915/guc: Connect the number ofguc_idsto debugfs drm/i915/guc: Don't return-EAGAINto user whenguc_idsexhausted drm/i915/guc: Don't allow requests not ready to consume allguc_idsdrm/i915/guc: Introduceguc_submit_engineobject drm/i915/guc: Implement GuC priority management drm/i915/guc: Support request cancellation
drm/i915/guc: Check return of__xa_storewhen registering a context drm/i915/guc: Non-static lrc descriptor registration buffer drm/i915/guc: Take GT PM ref when deregistering context drm/i915: Add GT PM delayed worker
drm/i915/guc: Take engine PM when a context is pinned with GuC
submission
drm/i915/guc: Don't callswitch_to_kernel_contextwith GuC submission drm/i915/guc: Selftest for GuC flow control
drm/i915/guc: Update GuC documentationMichal Wajdeczko (21):
drm/i915/guc: Keep strict GuC ABI definitions drm/i915/guc: Stop using fence/status from CTB descriptor drm/i915: Promoteptrdiff()toi915_utils.hdrm/i915/guc: Only rely on own CTB size drm/i915/guc: Don't repeat CTB layout calculations drm/i915/guc: Replace CTB array with explicit members drm/i915/guc: Update sizes of CTB buffers drm/i915/guc: Relax CTB response timeout drm/i915/guc: Start protecting access to CTB descriptors drm/i915/guc: Stop using mutex while sending CTB messages drm/i915/guc: Don't receive all G2H messages in irq handler drm/i915/guc: Always copy CT message to new allocation drm/i915/guc: Introduce unified HXG messages drm/i915/guc: Update MMIO based communication drm/i915/guc: Update CTB response status drm/i915/guc: Add flag for mark broken CTB drm/i915/guc: New definition of the CTB descriptor drm/i915/guc: New definition of the CTB registration action drm/i915/guc: New CTB based communication drm/i915/guc: Kill guc_clients.ct_pool drm/i915/guc: Early initialization of GuC send registersRodrigo Vivi (1):
drm/i915/guc: Removesample_forcewakeh2g actiondrivers/gpu/drm/i915/Makefile | 2 + drivers/gpu/drm/i915/gem/i915_gem_context.c | 39 +- drivers/gpu/drm/i915/gem/i915_gem_context.h | 1 + drivers/gpu/drm/i915/gem/i915_gem_mman.c | 3 +- drivers/gpu/drm/i915/gem/i915_gem_wait.c | 4 +- drivers/gpu/drm/i915/gt/gen8_engine_cs.c | 6 +- drivers/gpu/drm/i915/gt/intel_breadcrumbs.c | 44 +- drivers/gpu/drm/i915/gt/intel_breadcrumbs.h | 14 +- .../gpu/drm/i915/gt/intel_breadcrumbs_types.h | 7 + drivers/gpu/drm/i915/gt/intel_context.c | 50 +- drivers/gpu/drm/i915/gt/intel_context.h | 45 +- drivers/gpu/drm/i915/gt/intel_context_types.h | 76 +- drivers/gpu/drm/i915/gt/intel_engine.h | 96 +- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 320 +- .../gpu/drm/i915/gt/intel_engine_heartbeat.c | 75 +- .../gpu/drm/i915/gt/intel_engine_heartbeat.h | 4 + drivers/gpu/drm/i915/gt/intel_engine_pm.c | 14 +- drivers/gpu/drm/i915/gt/intel_engine_pm.h | 5 + drivers/gpu/drm/i915/gt/intel_engine_types.h | 71 +- drivers/gpu/drm/i915/gt/intel_engine_user.c | 6 +- .../drm/i915/gt/intel_execlists_submission.c | 693 +-- .../drm/i915/gt/intel_execlists_submission.h | 14 - drivers/gpu/drm/i915/gt/intel_gpu_commands.h | 5 + drivers/gpu/drm/i915/gt/intel_gt.c | 23 + drivers/gpu/drm/i915/gt/intel_gt.h | 2 + drivers/gpu/drm/i915/gt/intel_gt_irq.c | 100 +- drivers/gpu/drm/i915/gt/intel_gt_irq.h | 23 + drivers/gpu/drm/i915/gt/intel_gt_pm.c | 14 +- drivers/gpu/drm/i915/gt/intel_gt_pm.h | 13 + .../drm/i915/gt/intel_gt_pm_delayed_work.c | 35 + .../drm/i915/gt/intel_gt_pm_delayed_work.h | 24 + drivers/gpu/drm/i915/gt/intel_gt_requests.c | 23 +- drivers/gpu/drm/i915/gt/intel_gt_requests.h | 7 +- drivers/gpu/drm/i915/gt/intel_gt_types.h | 10 + drivers/gpu/drm/i915/gt/intel_lrc_reg.h | 1 - drivers/gpu/drm/i915/gt/intel_reset.c | 58 +- .../gpu/drm/i915/gt/intel_ring_submission.c | 73 +- drivers/gpu/drm/i915/gt/intel_rps.c | 6 +- drivers/gpu/drm/i915/gt/intel_workarounds.c | 46 +- .../gpu/drm/i915/gt/intel_workarounds_types.h | 1 + drivers/gpu/drm/i915/gt/mock_engine.c | 58 +- drivers/gpu/drm/i915/gt/selftest_context.c | 10 + drivers/gpu/drm/i915/gt/selftest_execlists.c | 58 +- drivers/gpu/drm/i915/gt/selftest_hangcheck.c | 6 +- drivers/gpu/drm/i915/gt/selftest_lrc.c | 6 +- drivers/gpu/drm/i915/gt/selftest_reset.c | 2 +- .../drm/i915/gt/selftest_ring_submission.c | 2 +- .../gpu/drm/i915/gt/uc/abi/guc_actions_abi.h | 177 + .../gt/uc/abi/guc_communication_ctb_abi.h | 192 + .../gt/uc/abi/guc_communication_mmio_abi.h | 35 + .../gpu/drm/i915/gt/uc/abi/guc_errors_abi.h | 13 + .../gpu/drm/i915/gt/uc/abi/guc_messages_abi.h | 247 + drivers/gpu/drm/i915/gt/uc/intel_guc.c | 194 +- drivers/gpu/drm/i915/gt/uc/intel_guc.h | 131 +- drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c | 484 +- drivers/gpu/drm/i915/gt/uc/intel_guc_ads.h | 3 + drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 1088 +++-- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h | 49 +- .../gpu/drm/i915/gt/uc/intel_guc_debugfs.c | 56 +- drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h | 377 +- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 4037 +++++++++++++++-- .../gpu/drm/i915/gt/uc/intel_guc_submission.h | 20 +- .../i915/gt/uc/intel_guc_submission_types.h | 55 + drivers/gpu/drm/i915/gt/uc/intel_uc.c | 116 +- drivers/gpu/drm/i915/gt/uc/intel_uc.h | 11 + drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c | 25 +- .../i915/gt/uc/selftest_guc_flow_control.c | 589 +++ drivers/gpu/drm/i915/i915_active.c | 3 + drivers/gpu/drm/i915/i915_debugfs.c | 8 +- drivers/gpu/drm/i915/i915_debugfs_params.c | 31 + drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/i915_gem_evict.c | 1 + drivers/gpu/drm/i915/i915_gpu_error.c | 28 +- drivers/gpu/drm/i915/i915_irq.c | 10 +- drivers/gpu/drm/i915/i915_params.h | 2 +- drivers/gpu/drm/i915/i915_perf.c | 16 +- drivers/gpu/drm/i915/i915_reg.h | 2 + drivers/gpu/drm/i915/i915_request.c | 218 +- drivers/gpu/drm/i915/i915_request.h | 37 +- drivers/gpu/drm/i915/i915_scheduler.c | 188 +- drivers/gpu/drm/i915/i915_scheduler.h | 74 +- drivers/gpu/drm/i915/i915_scheduler_types.h | 74 + drivers/gpu/drm/i915/i915_trace.h | 219 +- drivers/gpu/drm/i915/i915_utils.h | 5 + drivers/gpu/drm/i915/i915_vma.h | 5 - drivers/gpu/drm/i915/intel_wakeref.c | 5 + drivers/gpu/drm/i915/intel_wakeref.h | 1 + .../drm/i915/selftests/i915_live_selftests.h | 1 + .../gpu/drm/i915/selftests/igt_live_test.c | 2 +- .../i915/selftests/intel_scheduler_helpers.c | 101 + .../i915/selftests/intel_scheduler_helpers.h | 37 + .../gpu/drm/i915/selftests/mock_gem_device.c | 3 +- include/uapi/drm/i915_drm.h | 9 + 93 files changed, 8954 insertions(+), 2222 deletions(-)create mode 100644
drivers/gpu/drm/i915/gt/intel_gt_pm_delayed_work.ccreate mode 100644drivers/gpu/drm/i915/gt/intel_gt_pm_delayed_work.hcreate mode 100644drivers/gpu/drm/i915/gt/uc/abi/guc_actions_abi.hcreate mode 100644drivers/gpu/drm/i915/gt/uc/abi/guc_communication_ctb_abi.hcreate mode 100644drivers/gpu/drm/i915/gt/uc/abi/guc_communication_mmio_abi.hcreate mode 100644drivers/gpu/drm/i915/gt/uc/abi/guc_errors_abi.hcreate mode 100644drivers/gpu/drm/i915/gt/uc/abi/guc_messages_abi.hcreate mode 100644drivers/gpu/drm/i915/gt/uc/intel_guc_submission_types.hcreate mode 100644drivers/gpu/drm/i915/gt/uc/selftest_guc_flow_control.ccreate mode 100644drivers/gpu/drm/i915/selftests/intel_scheduler_helpers.ccreate mode 100644drivers/gpu/drm/i915/selftests/intel_scheduler_helpers.h
Quoted 25 lines · On May 9, 2021 12:12:36 Martin Peres <[email protected]> wrote:
Hi,
Quoted 7 lines · Matthew Brost
Basic GuC submission support. This is the first bullet point in the upstreaming plan covered in the following RFC [1].
At a very high level the GuC is a piece of firmware which sits between the i915 and the GPU. It offloads some of the scheduling of contexts from the i915 and programs the GPU to submit contexts. The i915 communicates with the GuC and the GuC communicates with the GPU.
May I ask what will GuC command submission do that execlist won't/can't do? And what would be the impact on users? Even forgetting the troubled history of GuC (instability, performance regression, poor level of user support, 6+ years of trying to upstream it...), adding this much code and doubling the amount of validation needed should come with a rationale making it feel worth it... and I am not seeing here. Would you mind providing the rationale behind this work?
Quoted 5 lines
GuC submission will be disabled by default on all current upstream platforms behind a module parameter -
enable_guc. A value of 3 will enable submission and HuC loading via the GuC. GuC submission should work on all gen11+ platforms assuming the GuC firmware is present.
Quoted 9 lines
What is the plan here when it comes to keeping support for execlist? I am afraid that landing GuC support in Linux is the first step towards killing the execlist, which would force users to use proprietary firmwares that even most Intel engineers have little influence over. Indeed, if "drm/i915/guc: Disable semaphores when using GuC scheduling" which states "Disable semaphores when using GuC scheduling as semaphores are broken in the current GuC firmware." is anything to go by, it means that even Intel developers seem to prefer working around the GuC firmware, rather than fixing it.
Yes, landing GuC support may be the first step in removing execlist support. The inevitable reality is that GPU scheduling is coming and likely to be there only path in the not-too-distant future. (See also the ongoing thread with AMD about fences.) I'm not going to pass judgement on whether or not this is a good thing. I'm just reading the winds and, in my view, this is where things are headed for good or ill.
In answer to the question above, the answer to "what do we gain from GuC?" may soon be, "you get to use your GPU." We're not there yet and, again, I'm not necessarily advocating for it, but that is likely where things are headed.
A firmware-based submission model isn't a bad design IMO and, aside from the firmware freedom issues, I think there are actual advantages to the model. Immediately, it'll unlock a few features like parallel submission (more on that in a bit) and long-running compute because they're implemented in GuC and the work to implement them properly in the execlist scheduler is highly non-trivial. Longer term, it may (no guarantees) unlock some performance by getting the kernel out of the way.
Quoted 13 lines
In the same vein, I have another concern related to the impact of GuC on Linux's stable releases. Let's say that in 3 years, a new application triggers a bug in command submission inside the firmware. Given that the Linux community cannot patch the GuC firmware, how likely is it that Intel would release a new GuC version? That would not be necessarily such a big problem if newer versions of the GuC could easily be backported to this potentially-decade-old Linux version, but given that the GuC seems to have ABI-breaking changes on a monthly cadence (we are at major version 60 *already*? :o), I would say that it is highly-unlikely that it would not require potentially-extensive changes to i915 to make it work, making the fix almost impossible to land in the stable tree... Do you have a plan to mitigate this problem?
Quoted 7 lines
Patches like "drm/i915/guc: Disable bonding extension with GuC submission" also make me twitch, as this means the two command submission paths will not be functionally equivalent, and enabling GuC could thus introduce a user-visible regression (one app used to work, then stopped working). Could you add in the commit's message a proof that this would not end up being a user regression (in which case, why have this codepath to begin with?).
I'd like to address this one specifically as it's become something of a speciality of mine the past few weeks. The current bonded submission model is bad. It provides a plethora of ways for a client to back itself into a corner and doesn't actually provide the guarantees the media driver needs for its real-time high-resolution decode. It's bad enough we're seriously considering ripping it out, backwards compatibility or not. The good news is that very little that your average desktop user does depends on it: basically just real-time >4K video decode.
The new parallel submit API is much better and should be the path forward. (We should have landed parallel submit the first time around.) It isn't full of corners and does let us provides actual parallel execution guarantees. It also gives the scheduler the information it needs to reliably provide those guarantees.
If we need to support the parallel submit API with the execlist back-end, that's totally possible. The choice to only implement the parallel submit API with GuC is a pragmatic one. We're trying to get upstream back on it's feet and get all the various up-and-coming bits of hardware enabled. Enabling the new API in the execlist back-end makes that pipeline longer.
Quoted 6 lines
Finally, could you explain why IGT tests need to be modified to work the GuC [1], and how much of the code in this series is covered by existing/upcoming tests? I would expect a very solid set of tests to minimize the maintenance burden, and enable users to reproduce potential issues found in this new codepath (too many users run with enable_guc=3, as can be seen on Google[2]).
The IGT changes, as I understand them, are entirely around switching to the new parallel submit API. There shouldn't be a major effect to most users.
--Jason
Quoted 37 lines · Jason Ekstrand
Quoted 25 lines · On May 9, 2021 12:12:36 Martin Peres <[email protected]> wrote:
Hi,
Quoted 7 lines · Matthew Brost
Basic GuC submission support. This is the first bullet point in the upstreaming plan covered in the following RFC [1].
At a very high level the GuC is a piece of firmware which sits between the i915 and the GPU. It offloads some of the scheduling of contexts from the i915 and programs the GPU to submit contexts. The i915 communicates with the GuC and the GuC communicates with the GPU.
May I ask what will GuC command submission do that execlist won't/can't do? And what would be the impact on users? Even forgetting the troubled history of GuC (instability, performance regression, poor level of user support, 6+ years of trying to upstream it...), adding this much code and doubling the amount of validation needed should come with a rationale making it feel worth it... and I am not seeing here. Would you mind providing the rationale behind this work?
Quoted 5 lines
GuC submission will be disabled by default on all current upstream platforms behind a module parameter -
enable_guc. A value of 3 will enable submission and HuC loading via the GuC. GuC submission should work on all gen11+ platforms assuming the GuC firmware is present.Quoted 9 lines
What is the plan here when it comes to keeping support for execlist? I am afraid that landing GuC support in Linux is the first step towards killing the execlist, which would force users to use proprietary firmwares that even most Intel engineers have little influence over. Indeed, if "drm/i915/guc: Disable semaphores when using GuC scheduling" which states "Disable semaphores when using GuC scheduling as semaphores are broken in the current GuC firmware." is anything to go by, it means that even Intel developers seem to prefer working around the GuC firmware, rather than fixing it.
Quoted 3 lines
Yes, landing GuC support may be the first step in removing execlist support. The inevitable reality is that GPU scheduling is coming and likely to be there only path in the not-too-distant future. (See also the ongoing thread with AMD about fences.) I'm not going to pass judgement on whether or not this is a good thing. I'm just reading the winds and, in my view, this is where things are headed for good or ill.
In answer to the question above, the answer to "what do we gain from GuC?" may soon be, "you get to use your GPU." We're not there yet and, again, I'm not necessarily advocating for it, but that is likely where things are headed.
This will be a sad day, especially since it seems fundamentally opposed with any long-term support, on top of taking away user freedom to fix/tweak their system when Intel won't.
Quoted 1 line
A firmware-based submission model isn't a bad design IMO and, aside from the firmware freedom issues, I think there are actual advantages to the model. Immediately, it'll unlock a few features like parallel submission (more on that in a bit) and long-running compute because they're implemented in GuC and the work to implement them properly in the execlist scheduler is highly non-trivial. Longer term, it may (no guarantees) unlock some performance by getting the kernel out of the way.
Oh, I definitely agree with firmware-based submission model not being a bad design. I was even cheering for it in 2015. Experience with it made me regret that deeply since :s
But with the DRM scheduler being responsible for most things, I fail to see what we could offload in the GuC except context switching (like every other manufacturer). The problem is, the GuC does way more than just switching registers in bulk, and if the number of revisions of the GuC is anything to go by, it is way too complex for me to feel comfortable with it.
Quoted 22 lines
Quoted 14 lines
In the same vein, I have another concern related to the impact of GuC on Linux's stable releases. Let's say that in 3 years, a new application triggers a bug in command submission inside the firmware. Given that the Linux community cannot patch the GuC firmware, how likely is it that Intel would release a new GuC version? That would not be necessarily such a big problem if newer versions of the GuC could easily be backported to this potentially-decade-old Linux version, but given that the GuC seems to have ABI-breaking changes on a monthly cadence (we are at major version 60 *already*? :o), I would say that it is highly-unlikely that it would not require potentially-extensive changes to i915 to make it work, making the fix almost impossible to land in the stable tree... Do you have a plan to mitigate this problem?
Quoted 7 lines
Patches like "drm/i915/guc: Disable bonding extension with GuC submission" also make me twitch, as this means the two command submission paths will not be functionally equivalent, and enabling GuC could thus introduce a user-visible regression (one app used to work, then stopped working). Could you add in the commit's message a proof that this would not end up being a user regression (in which case, why have this codepath to begin with?).
Quoted 4 lines
I'd like to address this one specifically as it's become something of a speciality of mine the past few weeks. The current bonded submission model is bad. It provides a plethora of ways for a client to back itself into a corner and doesn't actually provide the guarantees the media driver needs for its real-time high-resolution decode. It's bad enough we're seriously considering ripping it out, backwards compatibility or not. The good news is that very little that your average desktop user does depends on it: basically just real-time >4K video decode.
The new parallel submit API is much better and should be the path forward. (We should have landed parallel submit the first time around.) It isn't full of corners and does let us provides actual parallel execution guarantees. It also gives the scheduler the information it needs to reliably provide those guarantees. > If we need to support the parallel submit API with the execlist back-end, that's totally possible. The choice to only implement the parallel submit API with GuC is a pragmatic one. We're trying to get upstream back on it's feet and get all the various up-and-coming bits of hardware enabled. Enabling the new API in the execlist back-end makes that pipeline longer.
I feel your pain, and wish you all the best to get GEM less complex and more manageable.
So, if I understood correctly, the plan is just to regress 4K+ video decoding for people who do not enable GuC scheduling, or did not also update to a recent-enough media driver that would support this new interface? If it is indeed only for over 4K videos, then whatever. If it is 4K, it starts being a little bad, assuming graceful fallback to CPU-based decoding. What's the test plan for this patch then? The patch in its current form is definitely not making me confident.
Quoted 9 lines
Quoted 7 lines
Finally, could you explain why IGT tests need to be modified to work the GuC [1], and how much of the code in this series is covered by existing/upcoming tests? I would expect a very solid set of tests to minimize the maintenance burden, and enable users to reproduce potential issues found in this new codepath (too many users run with enable_guc=3, as can be seen on Google[2]).
The IGT changes, as I understand them, are entirely around switching to the new parallel submit API. There shouldn't be a major effect to most users.
Right, this part I followed, but failed to connect it to the GuC... because I couldn't see why it would be needed (execlist requiring a lot more work).
I sincerely wish for the GuC to stay away from upstream because of the above concerns (which are yet to be addressed), but if Intel were to push forward with the plan to drop execlist, I can foresee a world of trouble for users... That is of course unless the GuC were to be open sourced, with people outside of Intel able to sign their own builds or run unsigned. Failing that, let's hope the last 6 years were just a bad start, and the rapid climb in major version of the GuC will magically stop! I hope execlists will remain at feature parity with the GuC when possible... but deplore the increase in validation needs which will only hurt users in the end.
Thanks for your honest answer,
Martin
Quoted 2 lines
--Jason
Quoted 66 lines · On May 10, 2021 08:55:55 Martin Peres <[email protected]> wrote:
Quoted 44 lines · Jason Ekstrand
Quoted 25 lines · On May 9, 2021 12:12:36 Martin Peres <[email protected]> wrote:
Hi,
Quoted 7 lines · Matthew Brost
Basic GuC submission support. This is the first bullet point in the upstreaming plan covered in the following RFC [1].
At a very high level the GuC is a piece of firmware which sits between the i915 and the GPU. It offloads some of the scheduling of contexts from the i915 and programs the GPU to submit contexts. The i915 communicates with the GuC and the GuC communicates with the GPU.
May I ask what will GuC command submission do that execlist won't/can't do? And what would be the impact on users? Even forgetting the troubled history of GuC (instability, performance regression, poor level of user support, 6+ years of trying to upstream it...), adding this much code and doubling the amount of validation needed should come with a rationale making it feel worth it... and I am not seeing here. Would you mind providing the rationale behind this work?
Quoted 5 lines
GuC submission will be disabled by default on all current upstream platforms behind a module parameter -
enable_guc. A value of 3 will enable submission and HuC loading via the GuC. GuC submission should work on all gen11+ platforms assuming the GuC firmware is present.Quoted 9 lines
What is the plan here when it comes to keeping support for execlist? I am afraid that landing GuC support in Linux is the first step towards killing the execlist, which would force users to use proprietary firmwares that even most Intel engineers have little influence over. Indeed, if "drm/i915/guc: Disable semaphores when using GuC scheduling" which states "Disable semaphores when using GuC scheduling as semaphores are broken in the current GuC firmware." is anything to go by, it means that even Intel developers seem to prefer working around the GuC firmware, rather than fixing it.
Yes, landing GuC support may be the first step in removing execlist support. The inevitable reality is that GPU scheduling is coming and likely to be there only path in the not-too-distant future. (See also the ongoing thread with AMD about fences.) I'm not going to pass judgement on whether or not this is a good thing. I'm just reading the winds and, in my view, this is where things are headed for good or ill.
Quoted 4 lines
In answer to the question above, the answer to "what do we gain from GuC?" may soon be, "you get to use your GPU." We're not there yet and, again, I'm not necessarily advocating for it, but that is likely where things are headed.
This will be a sad day, especially since it seems fundamentally opposed with any long-term support, on top of taking away user freedom to fix/tweak their system when Intel won't.
Quoted 7 lines
A firmware-based submission model isn't a bad design IMO and, aside from the firmware freedom issues, I think there are actual advantages to the model. Immediately, it'll unlock a few features like parallel submission (more on that in a bit) and long-running compute because they're implemented in GuC and the work to implement them properly in the execlist scheduler is highly non-trivial. Longer term, it may (no guarantees) unlock some performance by getting the kernel out of the way.
Oh, I definitely agree with firmware-based submission model not being a bad design. I was even cheering for it in 2015. Experience with it made me regret that deeply since :s
Quoted 6 lines
But with the DRM scheduler being responsible for most things, I fail to see what we could offload in the GuC except context switching (like every other manufacturer). The problem is, the GuC does way more than just switching registers in bulk, and if the number of revisions of the GuC is anything to go by, it is way too complex for me to feel comfortable with it.
It's more than just bulk register writes. When it comes to load-balancing multiple GPU users, firmware can theoretically preempt and switch faster leading to more efficient time-slicing. All we really need the DRM scheduler for is handling implicit dma_fence dependencies between different applications.
Quoted 46 lines
Quoted 31 lines
Quoted 14 lines
In the same vein, I have another concern related to the impact of GuC on Linux's stable releases. Let's say that in 3 years, a new application triggers a bug in command submission inside the firmware. Given that the Linux community cannot patch the GuC firmware, how likely is it that Intel would release a new GuC version? That would not be necessarily such a big problem if newer versions of the GuC could easily be backported to this potentially-decade-old Linux version, but given that the GuC seems to have ABI-breaking changes on a monthly cadence (we are at major version 60 *already*? :o), I would say that it is highly-unlikely that it would not require potentially-extensive changes to i915 to make it work, making the fix almost impossible to land in the stable tree... Do you have a plan to mitigate this problem?
Quoted 7 lines
Patches like "drm/i915/guc: Disable bonding extension with GuC submission" also make me twitch, as this means the two command submission paths will not be functionally equivalent, and enabling GuC could thus introduce a user-visible regression (one app used to work, then stopped working). Could you add in the commit's message a proof that this would not end up being a user regression (in which case, why have this codepath to begin with?).
I'd like to address this one specifically as it's become something of a speciality of mine the past few weeks. The current bonded submission model is bad. It provides a plethora of ways for a client to back itself into a corner and doesn't actually provide the guarantees the media driver needs for its real-time high-resolution decode. It's bad enough we're seriously considering ripping it out, backwards compatibility or not. The good news is that very little that your average desktop user does depends on it: basically just real-time >4K video decode.
Quoted 11 lines
The new parallel submit API is much better and should be the path forward. (We should have landed parallel submit the first time around.) It isn't full of corners and does let us provides actual parallel execution guarantees. It also gives the scheduler the information it needs to reliably provide those guarantees. >
If we need to support the parallel submit API with the execlist back-end, that's totally possible. The choice to only implement the parallel submit API with GuC is a pragmatic one. We're trying to get upstream back on it's feet and get all the various up-and-coming bits of hardware enabled. Enabling the new API in the execlist back-end makes that pipeline longer.I feel your pain, and wish you all the best to get GEM less complex and more manageable.
Quoted 7 lines
So, if I understood correctly, the plan is just to regress 4K+ video decoding for people who do not enable GuC scheduling, or did not also update to a recent-enough media driver that would support this new interface? If it is indeed only for over 4K videos, then whatever. If it is 4K, it starts being a little bad, assuming graceful fallback to CPU-based decoding. What's the test plan for this patch then? The patch in its current form is definitely not making me confident.
My understanding is that it's only >4k that's affected; we've got enough bandwidth on a single VCS for 4K. I'm not sure where the exact cut-off is (it may be a little higher than 4k) but real-time 4k should be fine and real-time 8k requires parallel submit. So we're really not cutting off many use-cases. Also, as I said above, the new API can be implemented with the execlist scheduler if needed. We've just pragmatically deprioritized it.
--Jason
Quoted 27 lines
Quoted 11 lines
Quoted 7 lines
Finally, could you explain why IGT tests need to be modified to work the GuC [1], and how much of the code in this series is covered by existing/upcoming tests? I would expect a very solid set of tests to minimize the maintenance burden, and enable users to reproduce potential issues found in this new codepath (too many users run with enable_guc=3, as can be seen on Google[2]).
The IGT changes, as I understand them, are entirely around switching to the new parallel submit API. There shouldn't be a major effect to most users.
Right, this part I followed, but failed to connect it to the GuC... because I couldn't see why it would be needed (execlist requiring a lot more work).
I sincerely wish for the GuC to stay away from upstream because of the above concerns (which are yet to be addressed), but if Intel were to push forward with the plan to drop execlist, I can foresee a world of trouble for users... That is of course unless the GuC were to be open sourced, with people outside of Intel able to sign their own builds or run unsigned. Failing that, let's hope the last 6 years were just a bad start, and the rapid climb in major version of the GuC will magically stop! I hope execlists will remain at feature parity with the GuC when possible... but deplore the increase in validation needs which will only hurt users in the end.
Quoted 5 lines
Thanks for your honest answer,
MartinQuoted 2 lines
--Jason
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 68 lines · Jason Ekstrand
Quoted 66 lines · On May 10, 2021 08:55:55 Martin Peres <[email protected]> wrote:
Quoted 44 lines · Jason Ekstrand
Quoted 25 lines · On May 9, 2021 12:12:36 Martin Peres <[email protected]> wrote:
Hi,
Quoted 7 lines · Matthew Brost
Basic GuC submission support. This is the first bullet point in the upstreaming plan covered in the following RFC [1].
At a very high level the GuC is a piece of firmware which sits between the i915 and the GPU. It offloads some of the scheduling of contexts from the i915 and programs the GPU to submit contexts. The i915 communicates with the GuC and the GuC communicates with the GPU.
May I ask what will GuC command submission do that execlist won't/can't do? And what would be the impact on users? Even forgetting the troubled history of GuC (instability, performance regression, poor level of user support, 6+ years of trying to upstream it...), adding this much code and doubling the amount of validation needed should come with a rationale making it feel worth it... and I am not seeing here. Would you mind providing the rationale behind this work?
Quoted 5 lines
GuC submission will be disabled by default on all current upstream platforms behind a module parameter -
enable_guc. A value of 3 will enable submission and HuC loading via the GuC. GuC submission should work on all gen11+ platforms assuming the GuC firmware is present.Quoted 9 lines
What is the plan here when it comes to keeping support for execlist? I am afraid that landing GuC support in Linux is the first step towards killing the execlist, which would force users to use proprietary firmwares that even most Intel engineers have little influence over. Indeed, if "drm/i915/guc: Disable semaphores when using GuC scheduling" which states "Disable semaphores when using GuC scheduling as semaphores are broken in the current GuC firmware." is anything to go by, it means that even Intel developers seem to prefer working around the GuC firmware, rather than fixing it.
Yes, landing GuC support may be the first step in removing execlist support. The inevitable reality is that GPU scheduling is coming and likely to be there only path in the not-too-distant future. (See also the ongoing thread with AMD about fences.) I'm not going to pass judgement on whether or not this is a good thing. I'm just reading the winds and, in my view, this is where things are headed for good or ill.
Quoted 4 lines
In answer to the question above, the answer to "what do we gain from GuC?" may soon be, "you get to use your GPU." We're not there yet and, again, I'm not necessarily advocating for it, but that is likely where things are headed.
This will be a sad day, especially since it seems fundamentally opposed with any long-term support, on top of taking away user freedom to fix/tweak their system when Intel won't.
Quoted 7 lines
A firmware-based submission model isn't a bad design IMO and, aside from the firmware freedom issues, I think there are actual advantages to the model. Immediately, it'll unlock a few features like parallel submission (more on that in a bit) and long-running compute because they're implemented in GuC and the work to implement them properly in the execlist scheduler is highly non-trivial. Longer term, it may (no guarantees) unlock some performance by getting the kernel out of the way.
Oh, I definitely agree with firmware-based submission model not being a bad design. I was even cheering for it in 2015. Experience with it made me regret that deeply since :s
Quoted 8 lines
Quoted 6 lines
But with the DRM scheduler being responsible for most things, I fail to see what we could offload in the GuC except context switching (like every other manufacturer). The problem is, the GuC does way more than just switching registers in bulk, and if the number of revisions of the GuC is anything to go by, it is way too complex for me to feel comfortable with it.
It's more than just bulk register writes. When it comes to load-balancing multiple GPU users, firmware can theoretically preempt and switch faster leading to more efficient time-slicing. All we really need the DRM scheduler for is handling implicit
dma_fencedependencies between different applications.
Right, this makes sense. However, if the GuC's interface was so simple, I doubt it would be at major version 60 already :s
I don't disagree with FW-based command submission, as it has a lot of benefits. I just don't like the route of going with a firmware no-one else than Intel can work on, *and* one that doesn't seem to concern itself with stable interfaces, and how i915 will have to deal with every generation using different interfaces (assuming the firmware was bug-free).
Quoted 55 lines
Quoted 47 lines
Quoted 32 lines
Quoted 15 lines
In the same vein, I have another concern related to the impact of GuC on Linux's stable releases. Let's say that in 3 years, a new application triggers a bug in command submission inside the firmware. Given that the Linux community cannot patch the GuC firmware, how likely is it that Intel would release a new GuC version? That would not be necessarily such a big problem if newer versions of the GuC could easily be backported to this potentially-decade-old Linux version, but given that the GuC seems to have ABI-breaking changes on a monthly cadence (we are at major version 60 *already*? :o), I would say that it is highly-unlikely that it would not require potentially-extensive changes to i915 to make it work, making the fix almost impossible to land in the stable tree... Do you have a plan to mitigate this problem?
Quoted 7 lines
Patches like "drm/i915/guc: Disable bonding extension with GuC submission" also make me twitch, as this means the two command submission paths will not be functionally equivalent, and enabling GuC could thus introduce a user-visible regression (one app used to work, then stopped working). Could you add in the commit's message a proof that this would not end up being a user regression (in which case, why have this codepath to begin with?).
I'd like to address this one specifically as it's become something of a speciality of mine the past few weeks. The current bonded submission model is bad. It provides a plethora of ways for a client to back itself into a corner and doesn't actually provide the guarantees the media driver needs for its real-time high-resolution decode. It's bad enough we're seriously considering ripping it out, backwards compatibility or not. The good news is that very little that your average desktop user does depends on it: basically just real-time >4K video decode.
Quoted 11 lines
The new parallel submit API is much better and should be the path forward. (We should have landed parallel submit the first time around.) It isn't full of corners and does let us provides actual parallel execution guarantees. It also gives the scheduler the information it needs to reliably provide those guarantees. >
If we need to support the parallel submit API with the execlist back-end, that's totally possible. The choice to only implement the parallel submit API with GuC is a pragmatic one. We're trying to get upstream back on it's feet and get all the various up-and-coming bits of hardware enabled. Enabling the new API in the execlist back-end makes that pipeline longer.I feel your pain, and wish you all the best to get GEM less complex and more manageable.
Quoted 7 lines
So, if I understood correctly, the plan is just to regress 4K+ video decoding for people who do not enable GuC scheduling, or did not also update to a recent-enough media driver that would support this new interface? If it is indeed only for over 4K videos, then whatever. If it is 4K, it starts being a little bad, assuming graceful fallback to CPU-based decoding. What's the test plan for this patch then? The patch in its current form is definitely not making me confident.
Quoted 1 line
My understanding is that it's only >4k that's affected; we've got enough bandwidth on a single VCS for 4K. I'm not sure where the exact cut-off is (it may be a little higher than 4k) but real-time 4k should be fine and real-time 8k requires parallel submit. So we're really not cutting off many use-cases. Also, as I said above, the new API can be implemented with the execlist scheduler if needed. We've just pragmatically deprioritized it.
Sounds like a niche-enough use case to me that I feel no user would complain about it.
Martin
Quoted 36 lines
--Jason
Quoted 31 lines
Quoted 10 lines
Quoted 6 lines
Finally, could you explain why IGT tests need to be modified to work the GuC [1], and how much of the code in this series is covered by existing/upcoming tests? I would expect a very solid set of tests to minimize the maintenance burden, and enable users to reproduce potential issues found in this new codepath (too many users run with enable_guc=3, as can be seen on Google[2]).
The IGT changes, as I understand them, are entirely around switching to the new parallel submit API. There shouldn't be a major effect to most users.
Right, this part I followed, but failed to connect it to the GuC... because I couldn't see why it would be needed (execlist requiring a lot more work).
I sincerely wish for the GuC to stay away from upstream because of the above concerns (which are yet to be addressed), but if Intel were to push forward with the plan to drop execlist, I can foresee a world of trouble for users... That is of course unless the GuC were to be open sourced, with people outside of Intel able to sign their own builds or run unsigned. Failing that, let's hope the last 6 years were just a bad start, and the rapid climb in major version of the GuC will magically stop! I hope execlists will remain at feature parity with the GuC when possible... but deplore the increase in validation needs which will only hurt users in the end.
Thanks for your honest answer,
MartinQuoted 2 lines
--Jason
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 67 lines · Martin Peres
Quoted 44 lines · Jason Ekstrand
Quoted 25 lines · On May 9, 2021 12:12:36 Martin Peres <[email protected]> wrote:
Hi,
Quoted 7 lines · Matthew Brost
Basic GuC submission support. This is the first bullet point in the upstreaming plan covered in the following RFC [1].
At a very high level the GuC is a piece of firmware which sits between the i915 and the GPU. It offloads some of the scheduling of contexts from the i915 and programs the GPU to submit contexts. The i915 communicates with the GuC and the GuC communicates with the GPU.
May I ask what will GuC command submission do that execlist won't/can't do? And what would be the impact on users? Even forgetting the troubled history of GuC (instability, performance regression, poor level of user support, 6+ years of trying to upstream it...), adding this much code and doubling the amount of validation needed should come with a rationale making it feel worth it... and I am not seeing here. Would you mind providing the rationale behind this work?
Quoted 5 lines
GuC submission will be disabled by default on all current upstream platforms behind a module parameter -
enable_guc. A value of 3 will enable submission and HuC loading via the GuC. GuC submission should work on all gen11+ platforms assuming the GuC firmware is present.Quoted 9 lines
What is the plan here when it comes to keeping support for execlist? I am afraid that landing GuC support in Linux is the first step towards killing the execlist, which would force users to use proprietary firmwares that even most Intel engineers have little influence over. Indeed, if "drm/i915/guc: Disable semaphores when using GuC scheduling" which states "Disable semaphores when using GuC scheduling as semaphores are broken in the current GuC firmware." is anything to go by, it means that even Intel developers seem to prefer working around the GuC firmware, rather than fixing it.
Yes, landing GuC support may be the first step in removing execlist support. The inevitable reality is that GPU scheduling is coming and likely to be there only path in the not-too-distant future. (See also the ongoing thread with AMD about fences.) I'm not going to pass judgement on whether or not this is a good thing. I'm just reading the winds and, in my view, this is where things are headed for good or ill.
Quoted 4 lines
In answer to the question above, the answer to "what do we gain from GuC?" may soon be, "you get to use your GPU." We're not there yet and, again, I'm not necessarily advocating for it, but that is likely where things are headed.
This will be a sad day, especially since it seems fundamentally opposed with any long-term support, on top of taking away user freedom to fix/tweak their system when Intel won't.
Quoted 7 lines
A firmware-based submission model isn't a bad design IMO and, aside from the firmware freedom issues, I think there are actual advantages to the model. Immediately, it'll unlock a few features like parallel submission (more on that in a bit) and long-running compute because they're implemented in GuC and the work to implement them properly in the execlist scheduler is highly non-trivial. Longer term, it may (no guarantees) unlock some performance by getting the kernel out of the way.
Oh, I definitely agree with firmware-based submission model not being a bad design. I was even cheering for it in 2015. Experience with it made me regret that deeply since :s
Quoted 6 lines
But with the DRM scheduler being responsible for most things, I fail to see what we could offload in the GuC except context switching (like every other manufacturer). The problem is, the GuC does way more than just switching registers in bulk, and if the number of revisions of the GuC is anything to go by, it is way too complex for me to feel comfortable with it.
We need to flesh out that part of the plan more, but we're not going to use drm scheduler for everything. It's only to handle the dma-fence legacy side of things, which means:
- timeout handling for batches that take too long
- dma_fence dependency sorting/handling
- boosting of context from display flips (currently missing, needs to be ported from drm/i915)
The actual round-robin/preempt/priority handling is still left to the backend, in this case here the fw. So there's large chunks of code/functionality where drm/scheduler wont be involved in, and like Jason says: The hw direction winds definitely blow in the direction that this is all handled in hw.
Quoted 45 lines
Quoted 30 lines
Quoted 13 lines
In the same vein, I have another concern related to the impact of GuC on Linux's stable releases. Let's say that in 3 years, a new application triggers a bug in command submission inside the firmware. Given that the Linux community cannot patch the GuC firmware, how likely is it that Intel would release a new GuC version? That would not be necessarily such a big problem if newer versions of the GuC could easily be backported to this potentially-decade-old Linux version, but given that the GuC seems to have ABI-breaking changes on a monthly cadence (we are at major version 60 *already*? :o), I would say that it is highly-unlikely that it would not require potentially-extensive changes to i915 to make it work, making the fix almost impossible to land in the stable tree... Do you have a plan to mitigate this problem?
Quoted 7 lines
Patches like "drm/i915/guc: Disable bonding extension with GuC submission" also make me twitch, as this means the two command submission paths will not be functionally equivalent, and enabling GuC could thus introduce a user-visible regression (one app used to work, then stopped working). Could you add in the commit's message a proof that this would not end up being a user regression (in which case, why have this codepath to begin with?).
I'd like to address this one specifically as it's become something of a speciality of mine the past few weeks. The current bonded submission model is bad. It provides a plethora of ways for a client to back itself into a corner and doesn't actually provide the guarantees the media driver needs for its real-time high-resolution decode. It's bad enough we're seriously considering ripping it out, backwards compatibility or not. The good news is that very little that your average desktop user does depends on it: basically just real-time >4K video decode.
Quoted 11 lines
The new parallel submit API is much better and should be the path forward. (We should have landed parallel submit the first time around.) It isn't full of corners and does let us provides actual parallel execution guarantees. It also gives the scheduler the information it needs to reliably provide those guarantees. >
If we need to support the parallel submit API with the execlist back-end, that's totally possible. The choice to only implement the parallel submit API with GuC is a pragmatic one. We're trying to get upstream back on it's feet and get all the various up-and-coming bits of hardware enabled. Enabling the new API in the execlist back-end makes that pipeline longer.I feel your pain, and wish you all the best to get GEM less complex and more manageable.
Quoted 7 lines
So, if I understood correctly, the plan is just to regress 4K+ video decoding for people who do not enable GuC scheduling, or did not also update to a recent-enough media driver that would support this new interface? If it is indeed only for over 4K videos, then whatever. If it is 4K, it starts being a little bad, assuming graceful fallback to CPU-based decoding. What's the test plan for this patch then? The patch in its current form is definitely not making me confident.
Only if they don't scream loudly enough. If someone screams loud enough we'll bite the bullet and enable the new interface on execlist backend.
Cheers, Daniel
Quoted 31 lines
Quoted 10 lines
Quoted 6 lines
Finally, could you explain why IGT tests need to be modified to work the GuC [1], and how much of the code in this series is covered by existing/upcoming tests? I would expect a very solid set of tests to minimize the maintenance burden, and enable users to reproduce potential issues found in this new codepath (too many users run with enable_guc=3, as can be seen on Google[2]).
The IGT changes, as I understand them, are entirely around switching to the new parallel submit API. There shouldn't be a major effect to most users.
Right, this part I followed, but failed to connect it to the GuC... because I couldn't see why it would be needed (execlist requiring a lot more work).
I sincerely wish for the GuC to stay away from upstream because of the above concerns (which are yet to be addressed), but if Intel were to push forward with the plan to drop execlist, I can foresee a world of trouble for users... That is of course unless the GuC were to be open sourced, with people outside of Intel able to sign their own builds or run unsigned. Failing that, let's hope the last 6 years were just a bad start, and the rapid climb in major version of the GuC will magically stop! I hope execlists will remain at feature parity with the GuC when possible... but deplore the increase in validation needs which will only hurt users in the end.
Thanks for your honest answer,
MartinQuoted 2 lines
--Jason
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 83 lines · Daniel Vetter
Quoted 67 lines · Martin Peres
Quoted 44 lines · Jason Ekstrand
Quoted 25 lines · On May 9, 2021 12:12:36 Martin Peres <[email protected]> wrote:
Hi,
Quoted 7 lines · Matthew Brost
Basic GuC submission support. This is the first bullet point in the upstreaming plan covered in the following RFC [1].
At a very high level the GuC is a piece of firmware which sits between the i915 and the GPU. It offloads some of the scheduling of contexts from the i915 and programs the GPU to submit contexts. The i915 communicates with the GuC and the GuC communicates with the GPU.
May I ask what will GuC command submission do that execlist won't/can't do? And what would be the impact on users? Even forgetting the troubled history of GuC (instability, performance regression, poor level of user support, 6+ years of trying to upstream it...), adding this much code and doubling the amount of validation needed should come with a rationale making it feel worth it... and I am not seeing here. Would you mind providing the rationale behind this work?
Quoted 5 lines
GuC submission will be disabled by default on all current upstream platforms behind a module parameter -
enable_guc. A value of 3 will enable submission and HuC loading via the GuC. GuC submission should work on all gen11+ platforms assuming the GuC firmware is present.Quoted 9 lines
What is the plan here when it comes to keeping support for execlist? I am afraid that landing GuC support in Linux is the first step towards killing the execlist, which would force users to use proprietary firmwares that even most Intel engineers have little influence over. Indeed, if "drm/i915/guc: Disable semaphores when using GuC scheduling" which states "Disable semaphores when using GuC scheduling as semaphores are broken in the current GuC firmware." is anything to go by, it means that even Intel developers seem to prefer working around the GuC firmware, rather than fixing it.
Yes, landing GuC support may be the first step in removing execlist support. The inevitable reality is that GPU scheduling is coming and likely to be there only path in the not-too-distant future. (See also the ongoing thread with AMD about fences.) I'm not going to pass judgement on whether or not this is a good thing. I'm just reading the winds and, in my view, this is where things are headed for good or ill.
Quoted 4 lines
In answer to the question above, the answer to "what do we gain from GuC?" may soon be, "you get to use your GPU." We're not there yet and, again, I'm not necessarily advocating for it, but that is likely where things are headed.
This will be a sad day, especially since it seems fundamentally opposed with any long-term support, on top of taking away user freedom to fix/tweak their system when Intel won't.
Quoted 7 lines
A firmware-based submission model isn't a bad design IMO and, aside from the firmware freedom issues, I think there are actual advantages to the model. Immediately, it'll unlock a few features like parallel submission (more on that in a bit) and long-running compute because they're implemented in GuC and the work to implement them properly in the execlist scheduler is highly non-trivial. Longer term, it may (no guarantees) unlock some performance by getting the kernel out of the way.
Oh, I definitely agree with firmware-based submission model not being a bad design. I was even cheering for it in 2015. Experience with it made me regret that deeply since :s
Quoted 6 lines
But with the DRM scheduler being responsible for most things, I fail to see what we could offload in the GuC except context switching (like every other manufacturer). The problem is, the GuC does way more than just switching registers in bulk, and if the number of revisions of the GuC is anything to go by, it is way too complex for me to feel comfortable with it.
We need to flesh out that part of the plan more, but we're not going to use drm scheduler for everything. It's only to handle the dma-fence legacy side of things, which means:
- timeout handling for batches that take too long
-dma_fencedependency sorting/handling
- boosting of context from display flips (currently missing, needs to be ported from drm/i915)
Quoted 6 lines
The actual round-robin/preempt/priority handling is still left to the backend, in this case here the fw. So there's large chunks of code/functionality where drm/scheduler wont be involved in, and like Jason says: The hw direction winds definitely blow in the direction that this is all handled in hw.
I agree with Martin on this. Given that using GuC currently involves making your open-source graphics stack rely on a closed-source cryptographically-protected blob in order to submit commands to the GPU, and given that it is /still/ possible to use the GPU without it, I'd expect some strong material justification for making the switch (like, it improves performance of test-case X and Y by Z%, or, we're truly sorry but we cannot program your GPU anymore with a purely open-source software stack). Any argument based on the apparent direction of the wind doesn't sound like a material engineering reason to me, and runs the risk of being self-fulfilling if it leads us to do the worse thing for our users just because we have the vague feeling that it is the general trend, even though we may have had the means to obtain a better compromise for them.
Quoted 101 lines
Quoted 45 lines
Quoted 30 lines
Quoted 13 lines
In the same vein, I have another concern related to the impact of GuC on Linux's stable releases. Let's say that in 3 years, a new application triggers a bug in command submission inside the firmware. Given that the Linux community cannot patch the GuC firmware, how likely is it that Intel would release a new GuC version? That would not be necessarily such a big problem if newer versions of the GuC could easily be backported to this potentially-decade-old Linux version, but given that the GuC seems to have ABI-breaking changes on a monthly cadence (we are at major version 60 *already*? :o), I would say that it is highly-unlikely that it would not require potentially-extensive changes to i915 to make it work, making the fix almost impossible to land in the stable tree... Do you have a plan to mitigate this problem?
Quoted 7 lines
Patches like "drm/i915/guc: Disable bonding extension with GuC submission" also make me twitch, as this means the two command submission paths will not be functionally equivalent, and enabling GuC could thus introduce a user-visible regression (one app used to work, then stopped working). Could you add in the commit's message a proof that this would not end up being a user regression (in which case, why have this codepath to begin with?).
I'd like to address this one specifically as it's become something of a speciality of mine the past few weeks. The current bonded submission model is bad. It provides a plethora of ways for a client to back itself into a corner and doesn't actually provide the guarantees the media driver needs for its real-time high-resolution decode. It's bad enough we're seriously considering ripping it out, backwards compatibility or not. The good news is that very little that your average desktop user does depends on it: basically just real-time >4K video decode.
Quoted 11 lines
The new parallel submit API is much better and should be the path forward. (We should have landed parallel submit the first time around.) It isn't full of corners and does let us provides actual parallel execution guarantees. It also gives the scheduler the information it needs to reliably provide those guarantees. >
If we need to support the parallel submit API with the execlist back-end, that's totally possible. The choice to only implement the parallel submit API with GuC is a pragmatic one. We're trying to get upstream back on it's feet and get all the various up-and-coming bits of hardware enabled. Enabling the new API in the execlist back-end makes that pipeline longer.I feel your pain, and wish you all the best to get GEM less complex and more manageable.
Quoted 7 lines
So, if I understood correctly, the plan is just to regress 4K+ video decoding for people who do not enable GuC scheduling, or did not also update to a recent-enough media driver that would support this new interface? If it is indeed only for over 4K videos, then whatever. If it is 4K, it starts being a little bad, assuming graceful fallback to CPU-based decoding. What's the test plan for this patch then? The patch in its current form is definitely not making me confident.
Only if they don't scream loudly enough. If someone screams loud enough we'll bite the bullet and enable the new interface on execlist backend.
Cheers, Daniel
Quoted 31 lines
Quoted 10 lines
Quoted 6 lines
Finally, could you explain why IGT tests need to be modified to work the GuC [1], and how much of the code in this series is covered by existing/upcoming tests? I would expect a very solid set of tests to minimize the maintenance burden, and enable users to reproduce potential issues found in this new codepath (too many users run with enable_guc=3, as can be seen on Google[2]).
The IGT changes, as I understand them, are entirely around switching to the new parallel submit API. There shouldn't be a major effect to most users.
Right, this part I followed, but failed to connect it to the GuC... because I couldn't see why it would be needed (execlist requiring a lot more work).
I sincerely wish for the GuC to stay away from upstream because of the above concerns (which are yet to be addressed), but if Intel were to push forward with the plan to drop execlist, I can foresee a world of trouble for users... That is of course unless the GuC were to be open sourced, with people outside of Intel able to sign their own builds or run unsigned. Failing that, let's hope the last 6 years were just a bad start, and the rapid climb in major version of the GuC will magically stop! I hope execlists will remain at feature parity with the GuC when possible... but deplore the increase in validation needs which will only hurt users in the end.
Thanks for your honest answer,
MartinQuoted 2 lines
--Jason
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 83 lines · Daniel Vetter
Quoted 67 lines · Martin Peres
Quoted 44 lines · Jason Ekstrand
Quoted 25 lines · On May 9, 2021 12:12:36 Martin Peres <[email protected]> wrote:
Hi,
Quoted 7 lines · Matthew Brost
Basic GuC submission support. This is the first bullet point in the upstreaming plan covered in the following RFC [1].
At a very high level the GuC is a piece of firmware which sits between the i915 and the GPU. It offloads some of the scheduling of contexts from the i915 and programs the GPU to submit contexts. The i915 communicates with the GuC and the GuC communicates with the GPU.
May I ask what will GuC command submission do that execlist won't/can't do? And what would be the impact on users? Even forgetting the troubled history of GuC (instability, performance regression, poor level of user support, 6+ years of trying to upstream it...), adding this much code and doubling the amount of validation needed should come with a rationale making it feel worth it... and I am not seeing here. Would you mind providing the rationale behind this work?
Quoted 5 lines
GuC submission will be disabled by default on all current upstream platforms behind a module parameter -
enable_guc. A value of 3 will enable submission and HuC loading via the GuC. GuC submission should work on all gen11+ platforms assuming the GuC firmware is present.Quoted 9 lines
What is the plan here when it comes to keeping support for execlist? I am afraid that landing GuC support in Linux is the first step towards killing the execlist, which would force users to use proprietary firmwares that even most Intel engineers have little influence over. Indeed, if "drm/i915/guc: Disable semaphores when using GuC scheduling" which states "Disable semaphores when using GuC scheduling as semaphores are broken in the current GuC firmware." is anything to go by, it means that even Intel developers seem to prefer working around the GuC firmware, rather than fixing it.
Yes, landing GuC support may be the first step in removing execlist support. The inevitable reality is that GPU scheduling is coming and likely to be there only path in the not-too-distant future. (See also the ongoing thread with AMD about fences.) I'm not going to pass judgement on whether or not this is a good thing. I'm just reading the winds and, in my view, this is where things are headed for good or ill.
Quoted 4 lines
In answer to the question above, the answer to "what do we gain from GuC?" may soon be, "you get to use your GPU." We're not there yet and, again, I'm not necessarily advocating for it, but that is likely where things are headed.
This will be a sad day, especially since it seems fundamentally opposed with any long-term support, on top of taking away user freedom to fix/tweak their system when Intel won't.
Quoted 7 lines
A firmware-based submission model isn't a bad design IMO and, aside from the firmware freedom issues, I think there are actual advantages to the model. Immediately, it'll unlock a few features like parallel submission (more on that in a bit) and long-running compute because they're implemented in GuC and the work to implement them properly in the execlist scheduler is highly non-trivial. Longer term, it may (no guarantees) unlock some performance by getting the kernel out of the way.
Oh, I definitely agree with firmware-based submission model not being a bad design. I was even cheering for it in 2015. Experience with it made me regret that deeply since :s
Quoted 6 lines
But with the DRM scheduler being responsible for most things, I fail to see what we could offload in the GuC except context switching (like every other manufacturer). The problem is, the GuC does way more than just switching registers in bulk, and if the number of revisions of the GuC is anything to go by, it is way too complex for me to feel comfortable with it.
We need to flesh out that part of the plan more, but we're not going to use drm scheduler for everything. It's only to handle the dma-fence legacy side of things, which means:
- timeout handling for batches that take too long
-dma_fencedependency sorting/handling
- boosting of context from display flips (currently missing, needs to be ported from drm/i915)
Quoted 5 lines
The actual round-robin/preempt/priority handling is still left to the backend, in this case here the fw. So there's large chunks of code/functionality where drm/scheduler wont be involved in, and like Jason says: The hw direction winds definitely blow in the direction that this is all handled in hw.
The plan makes sense for a SRIOV-enable GPU, yes.
However, if the GuC is actually helping i915, then why not open source it and drop all the issues related to its stability? Wouldn't it be the perfect solution, as it would allow dropping execlist support for newer HW, and it would eliminate the concerns about maintenance of stable releases of Linux?
Quoted 54 lines
Quoted 46 lines
Quoted 31 lines
Quoted 14 lines
In the same vein, I have another concern related to the impact of GuC on Linux's stable releases. Let's say that in 3 years, a new application triggers a bug in command submission inside the firmware. Given that the Linux community cannot patch the GuC firmware, how likely is it that Intel would release a new GuC version? That would not be necessarily such a big problem if newer versions of the GuC could easily be backported to this potentially-decade-old Linux version, but given that the GuC seems to have ABI-breaking changes on a monthly cadence (we are at major version 60 *already*? :o), I would say that it is highly-unlikely that it would not require potentially-extensive changes to i915 to make it work, making the fix almost impossible to land in the stable tree... Do you have a plan to mitigate this problem?
Quoted 7 lines
Patches like "drm/i915/guc: Disable bonding extension with GuC submission" also make me twitch, as this means the two command submission paths will not be functionally equivalent, and enabling GuC could thus introduce a user-visible regression (one app used to work, then stopped working). Could you add in the commit's message a proof that this would not end up being a user regression (in which case, why have this codepath to begin with?).
I'd like to address this one specifically as it's become something of a speciality of mine the past few weeks. The current bonded submission model is bad. It provides a plethora of ways for a client to back itself into a corner and doesn't actually provide the guarantees the media driver needs for its real-time high-resolution decode. It's bad enough we're seriously considering ripping it out, backwards compatibility or not. The good news is that very little that your average desktop user does depends on it: basically just real-time >4K video decode.
Quoted 11 lines
The new parallel submit API is much better and should be the path forward. (We should have landed parallel submit the first time around.) It isn't full of corners and does let us provides actual parallel execution guarantees. It also gives the scheduler the information it needs to reliably provide those guarantees. >
If we need to support the parallel submit API with the execlist back-end, that's totally possible. The choice to only implement the parallel submit API with GuC is a pragmatic one. We're trying to get upstream back on it's feet and get all the various up-and-coming bits of hardware enabled. Enabling the new API in the execlist back-end makes that pipeline longer.I feel your pain, and wish you all the best to get GEM less complex and more manageable.
Quoted 7 lines
So, if I understood correctly, the plan is just to regress 4K+ video decoding for people who do not enable GuC scheduling, or did not also update to a recent-enough media driver that would support this new interface? If it is indeed only for over 4K videos, then whatever. If it is 4K, it starts being a little bad, assuming graceful fallback to CPU-based decoding. What's the test plan for this patch then? The patch in its current form is definitely not making me confident.
Quoted 3 lines
Only if they don't scream loudly enough. If someone screams loud enough we'll bite the bullet and enable the new interface on execlist backend.
Ack.
Martih
Quoted 37 lines
Cheers, Daniel
Quoted 31 lines
Quoted 10 lines
Quoted 6 lines
Finally, could you explain why IGT tests need to be modified to work the GuC [1], and how much of the code in this series is covered by existing/upcoming tests? I would expect a very solid set of tests to minimize the maintenance burden, and enable users to reproduce potential issues found in this new codepath (too many users run with enable_guc=3, as can be seen on Google[2]).
The IGT changes, as I understand them, are entirely around switching to the new parallel submit API. There shouldn't be a major effect to most users.
Right, this part I followed, but failed to connect it to the GuC... because I couldn't see why it would be needed (execlist requiring a lot more work).
I sincerely wish for the GuC to stay away from upstream because of the above concerns (which are yet to be addressed), but if Intel were to push forward with the plan to drop execlist, I can foresee a world of trouble for users... That is of course unless the GuC were to be open sourced, with people outside of Intel able to sign their own builds or run unsigned. Failing that, let's hope the last 6 years were just a bad start, and the rapid climb in major version of the GuC will magically stop! I hope execlists will remain at feature parity with the GuC when possible... but deplore the increase in validation needs which will only hurt users in the end.
Thanks for your honest answer,
MartinQuoted 2 lines
--Jason
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 113 lines
-----Original Message-----
From: Martin Peres <[email protected]>
Sent: Tuesday, May 11, 2021 1:06 AM
To: Daniel Vetter <[email protected]>
Cc: Jason Ekstrand <[email protected]>; Brost, Matthew <[email protected]>; intel-gfx <[email protected]>; dri-devel <[email protected]>; Ursulin, Tvrtko <[email protected]>; Ekstrand, Jason <[email protected]>; Ceraolo Spurio, Daniele <[email protected]>; Bloomfield, Jon <[email protected]>; Vetter, Daniel <[email protected]>; Harrison, John C <[email protected]>
Subject: Re: [RFC PATCH 00/97] Basic GuC submission support in the i915Quoted 1 line · Daniel Vetter
On Mon, May 10, 2021 at 3:55 PM Martin Peres <[email protected]>
Quoted 6 lines · wrote:
Quoted 6 lines · Jason Ekstrand
Quoted 4 lines · On May 9, 2021 12:12:36 Martin Peres <[email protected]> wrote:
Quoted 3 lines
Hi,
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines · Matthew Brost
Quoted 7 lines
Basic GuC submission support. This is the first bullet point in the upstreaming plan covered in the following RFC [1].
At a very high level the GuC is a piece of firmware which sits between the i915 and the GPU. It offloads some of the scheduling of contexts from the i915 and programs the GPU to submit contexts. The i915 communicates with the GuC and the GuC communicates with the
GPU.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
May I ask what will GuC command submission do that execlist
won't/can't
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
do? And what would be the impact on users? Even forgetting the
troubled
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
history of GuC (instability, performance regression, poor level of user support, 6+ years of trying to upstream it...), adding this much code and doubling the amount of validation needed should come with a rationale making it feel worth it... and I am not seeing here. Would you mind providing the rationale behind this work?
Quoted 4 lines
GuC submission will be disabled by default on all current upstream platforms behind a module parameter -
enable_guc. A value of 3 will enable submission and HuC loading via the GuC. GuC submissionshould
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
work on all gen11+ platforms assuming the GuC firmware is present.
What is the plan here when it comes to keeping support for execlist? I am afraid that landing GuC support in Linux is the first step towards killing the execlist, which would force users to use proprietary firmwares that even most Intel engineers have little influence over. Indeed, if "drm/i915/guc: Disable semaphores when using GuC
scheduling"
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
which states "Disable semaphores when using GuC scheduling as
semaphores
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 3 lines
are broken in the current GuC firmware." is anything to go by, it means that even Intel developers seem to prefer working around the GuC firmware, rather than fixing it.
Yes, landing GuC support may be the first step in removing execlist support. The inevitable reality is that GPU scheduling is coming and likely to be there only path in the not-too-distant future. (See also the ongoing thread with AMD about fences.) I'm not going to pass judgement on whether or not this is a good thing. I'm just reading the winds and, in my view, this is where things are headed for good or ill.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
In answer to the question above, the answer to "what do we gain from GuC?" may soon be, "you get to use your GPU." We're not there yet
and,
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
again, I'm not necessarily advocating for it, but that is likely where things are headed.
This will be a sad day, especially since it seems fundamentally opposed with any long-term support, on top of taking away user freedom to fix/tweak their system when Intel won't.
Quoted 1 line
A firmware-based submission model isn't a bad design IMO and, aside
from
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
the firmware freedom issues, I think there are actual advantages to the model. Immediately, it'll unlock a few features like parallel submission (more on that in a bit) and long-running compute because they're implemented in GuC and the work to implement them properly in the execlist scheduler is highly non-trivial. Longer term, it may (no guarantees) unlock some performance by getting the kernel out of the
way.
Quoted 20 lines
Quoted 11 lines
Oh, I definitely agree with firmware-based submission model not being a bad design. I was even cheering for it in 2015. Experience with it made me regret that deeply since :s
But with the DRM scheduler being responsible for most things, I fail to see what we could offload in the GuC except context switching (like every other manufacturer). The problem is, the GuC does way more than just switching registers in bulk, and if the number of revisions of the GuC is anything to go by, it is way too complex for me to feel comfortable with it.
We need to flesh out that part of the plan more, but we're not going to use drm scheduler for everything. It's only to handle the dma-fence legacy side of things, which means:
- timeout handling for batches that take too long
-dma_fencedependency sorting/handling
- boosting of context from display flips (currently missing, needs to be ported from drm/i915)Quoted 5 lines
The actual round-robin/preempt/priority handling is still left to the backend, in this case here the fw. So there's large chunks of code/functionality where drm/scheduler wont be involved in, and like Jason says: The hw direction winds definitely blow in the direction that this is all handled in hw.
Quoted 7 lines
The plan makes sense for a SRIOV-enable GPU, yes.
However, if the GuC is actually helping i915, then why not open source it and drop all the issues related to its stability? Wouldn't it be the perfect solution, as it would allow dropping execlist support for newer HW, and it would eliminate the concerns about maintenance of stable releases of Linux?
That the major version of the FW is high is not due to bugs - Bugs don't trigger major version bumps anyway. Only interface changes increment the major version, and we do add features, to keep it relevant to the evolving hardware and OS landscape. When only Windows used GuC there was no reason not to minimize interface creep - GuC and KMD are released as an atomic bundle on Windows. With Linux, this is no longer the case, and has not been for some time.
We have been using GuC as the sole mechanism for submission on Windows since Gen8, and it has proven very reliable. This is in large part because it is simple, and designed from day 1 as a cohesive solution alongside the hardware.
Will there be bugs in the future? Of course. It's a new i915 backend. There are bugs in the execlist backend too, and the runlist backend, and the majority of real-world software ever written. But the i915 GuC backend is way simpler than execlist, much easier to understand, and therefore much easier to maintain. It's a net win for i915 and Linux.
Jon
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx