Skip to content

Conversation

@eragefe
Copy link

@eragefe eragefe commented Sep 22, 2020

overlay to enable i2s0 interface on rockpiS

@StephenInVamrs
Copy link

Since your patch for ROCK Pi S I2S overlay is added, I close this PR. Thanks.

StephenInVamrs pushed a commit that referenced this pull request Jan 14, 2022
Fix system crash casued by failed to allocated ion heap.
On RK3399 EVB:
[    0.924159] Unable to handle kernel NULL pointer dereference at virtual address 00000021
[    0.928269] pgd = ffffff80095b2000
[    0.928574] [00000021] *pgd=00000000f7ffe003, *pud=00000000f7ffe003, *pmd=0000000000000000
[    0.929338] Internal error: Oops: 96000005 [#1] PREEMPT SMP
[    0.929836] Modules linked in:
[    0.930124] CPU: 5 PID: 1 Comm: swapper/0 Not tainted 4.4.194 #7
[    0.930656] Hardware name: rockchip,rk3399-excavator-edp (DT)
[    0.931166] task: ffffffc00a368000 task.stack: ffffffc00a344000
[    0.931696] PC is at ion_handle_validate+0x28/0x6c
[    0.932128] LR is at ion_map_iommu+0x48/0x2c4
[    0.932512] pc : [<ffffff8008811e0c>] lr : [<ffffff8008811fec>] pstate: 80400045

Change-Id: Iff428a745633e2b0188ebe8053baccecc7cdece5
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
RadxaStephen pushed a commit that referenced this pull request Jul 1, 2022
The flag IRQF_ONESHOT is only for irq thread, so remove IRQF_ONESHOT
for request_irq().

And with IRQF_ONESHOT, when enable CONFIG_PREEMPT_RT, kernel will report bug:

[  789.709834][    C0] BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:970
[  789.709862][    C0] in_atomic(): 1, irqs_disabled(): 128, non_block: 0, pid: 0, name: swapper/0
[  789.709879][    C0] INFO: lockdep is turned off.
[  789.709885][    C0] irq event stamp: 25194
[  789.709892][    C0] hardirqs last  enabled at (25193): [<ffffffc01139bd30>] exit_el1_irq_or_nmi+0x20/0x54
[  789.709929][    C0] hardirqs last disabled at (25194): [<ffffffc0100a236c>] do_idle+0x94/0x10c
[  789.709954][    C0] softirqs last  enabled at (2818): [<ffffffc010056c20>] __local_bh_enable_ip+0x1f4/0x258
[  789.709982][    C0] softirqs last disabled at (2812): [<ffffffc01015f6ac>] local_bh_disable+0x4/0x30
[  789.710009][    C0] Preemption disabled at:
[  789.710014][    C0] [<ffffffc0113a05e8>] schedule_preempt_disabled+0x20/0x2c
[  789.710042][    C0] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G        W         5.10.66-rt53 #7
[  789.710061][    C0] Hardware name: Rockchip RK3588 EVB1 LP4 V10 Board (DT)
[  789.710070][    C0] Call trace:
[  789.710075][    C0]  dump_backtrace+0x0/0x1c4
[  789.710099][    C0]  show_stack+0x18/0x24
[  789.710119][    C0]  dump_stack_lvl+0xec/0x148
[  789.710135][    C0]  dump_stack+0x18/0x64
[  789.710150][    C0]  ___might_sleep+0x1b4/0x1c4
[  789.710172][    C0]  rt_spin_lock+0x70/0xd8
[  789.710188][    C0]  fusb302_irq_intn+0x28/0x6c
[  789.710210][    C0]  __handle_irq_event_percpu+0xa8/0x1b4
[  789.710234][    C0]  handle_irq_event+0x8c/0x180
[  789.710255][    C0]  handle_level_irq+0x148/0x1e4
[  789.710272][    C0]  generic_handle_irq+0x30/0x48
[  789.710293][    C0]  rockchip_irq_demux+0x154/0x224
[  789.710316][    C0]  __handle_domain_irq+0xb0/0x11c
[  789.710336][    C0]  gic_handle_irq+0x74/0x14c
[  789.710354][    C0]  el1_irq+0xd0/0x1c0
[  789.710369][    C0]  cpuidle_enter_state+0x184/0x2d0
[  789.710386][    C0]  cpuidle_enter+0x38/0x50
[  789.710401][    C0]  cpuidle_idle_call+0x188/0x278
[  789.710419][    C0]  do_idle+0xb8/0x10c
[  789.710436][    C0]  cpu_startup_entry+0x24/0x28
[  789.710453][    C0]  rest_init+0x1ec/0x1fc
[  789.710471][    C0]  arch_call_rest_init+0x10/0x1c
[  789.710492][    C0]  start_kernel+0x3f0/0x524

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: Ifb3bf4e6f20a705b4a13beaa3f0fee9be8709ac9
stvhay pushed a commit to stvhay/kernel that referenced this pull request Mar 22, 2023
stvhay pushed a commit to stvhay/kernel that referenced this pull request Mar 22, 2023
stvhay pushed a commit to stvhay/kernel that referenced this pull request Mar 26, 2023
Scirese pushed a commit to Scirese/radxa-kernel that referenced this pull request Jun 29, 2023
DsoTsin pushed a commit to Tsinworks/kernel-radxa-horizon that referenced this pull request Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants