Skip to content

ASoC: SOF: abi: update sof_ipc_fw_ready to align with fw - #433

Closed
ranj063 wants to merge 1 commit into
thesofproject:topic/sof-devfrom
ranj063:fix/abi
Closed

ranj063 wants to merge 1 commit into
thesofproject:topic/sof-devfrom
ranj063:fix/abi

Conversation

@ranj063

@ranj063 ranj063 commented Dec 13, 2018

Copy link
Copy Markdown
Collaborator

Update struct sof_ipc_fw_ready to align with the firmware
ABI change.

Signed-off-by: Ranjani Sridharan ranjani.sridharan@linux.intel.com

Update struct sof_ipc_fw_ready to align with the firmware
ABI change.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>

@plbossart plbossart left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This flag seems to have been removed in the firmware by thesofproject/sof@f28d3fb

how many engineers does it take to screw a light bulb align on the ABI?

@ranj063

ranj063 commented Dec 13, 2018

Copy link
Copy Markdown
Collaborator Author

@plbossart thats alright. I made this PR with the hopes of closing the issue soon one way or the other.

@ranj063 ranj063 closed this Dec 13, 2018
@ranj063
ranj063 deleted the fix/abi branch January 10, 2019 04:34
oder-chiou pushed a commit to oder-chiou/linux-soundwire that referenced this pull request May 5, 2026
Aneesh reported a crash with a fairly recent upstream kernel when
booting kernel whose commandline was appended with nr_cpus=2

1:mon> e
cpu 0x1: Vector: 300 (Data Access) at [c000000008a67bd0]
    pc: c00000000002557c: cpu_to_chip_id+0x3c/0x100
    lr: c000000000058380: start_secondary+0x460/0xb00
    sp: c000000008a67e70
   msr: 8000000000001033
   dar: 10
 dsisr: 80000
  current = 0xc00000000891bb00
  paca    = 0xc0000018ff981f80   irqmask: 0x03   irq_happened: 0x01
    pid   = 0, comm = swapper/1
Linux version 5.13.0-rc3-15704-ga050a6d2b7e8 (kvaneesh@ltc-boston8) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) thesofproject#433 SMP Tue May 25 02:38:49 CDT 2021
1:mon> t
[link register   ] c000000000058380 start_secondary+0x460/0xb00
[c000000008a67e70] c000000008a67eb0 (unreliable)
[c000000008a67eb0] c0000000000589d4 start_secondary+0xab4/0xb00
[c000000008a67f90] c00000000000c654 start_secondary_prolog+0x10/0x14

Current code assumes that num_possible_cpus() is always greater than
threads_per_core. However this may not be true when using nr_cpus=2 or
similar options. Handle the case where num_possible_cpus() is not an
exact multiple of  threads_per_core.

Fixes: c1e5336 ("powerpc/smp: Cache CPU to chip lookup")
Reported-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Debugged-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210826100401.412519-2-srikar@linux.vnet.ibm.com
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