Skip to content
Commit aab583e7 authored by Ruiqiang Hao's avatar Ruiqiang Hao
Browse files

octeontx2-pf: drop unused parts introduced by marvell SDK12



commit e91e87b7(octeontx2-pf: disable preemption while using
per_cpu pointer) introduce following issue fixed by commit 29e9c67b
(octeontx2-pf: Fix the use of GFP_KERNEL in atomic context on rt) and
commit 2827c4eb (octeontx2-pf: Avoid use of GFP_KERNEL in atomic
context), drop get_cpu()/put_cpu() pair to fix this.

BUG: sleeping function called from invalid context at kernel/locking/spinlock_rt.c:46
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1, name: swapper/0
preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
Preemption disabled at:
[<ffff80000894737c>] otx2_rq_aura_pool_init+0x14c/0x290
CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.15.124-rt61-yocto-preempt-rt #2
Hardware name: Marvell OcteonTX CN96XX board (DT)
Call trace:
 dump_backtrace+0x0/0x1c0
 show_stack+0x20/0x30
 dump_stack_lvl+0x68/0x84
 dump_stack+0x18/0x34
 __might_resched+0x154/0x1b0
 rt_spin_lock+0x38/0xd0
 __alloc_pages_bulk+0x2e0/0x5e0
 __page_pool_alloc_pages_slow+0x68/0x39c
 page_pool_alloc_frag+0x158/0x240
 __otx2_alloc_rbuf+0x60/0xc0
 otx2_rq_aura_pool_init+0x1cc/0x290
 otx2_open+0x238/0xa00
 __dev_open+0x100/0x220
 __dev_change_flags+0x1a8/0x230
 dev_change_flags+0x2c/0x70
 ip_auto_config+0x274/0xf58
 do_one_initcall+0x4c/0x2c0
 kernel_init_freeable+0x238/0x2a8
 kernel_init+0x2c/0x12c
 ret_from_fork+0x10/0x20

Signed-off-by: default avatarRuiqiang Hao <Ruiqiang.Hao@windriver.com>
parent b3ffbc37
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment