Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions arch/loongarch/configs/loongson3_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2184,6 +2184,7 @@ CONFIG_CRC_T10DIF=y
CONFIG_CRC_ITU_T=y
CONFIG_CRC7=m
CONFIG_DMA_CMA=y
CONFIG_CMA_SIZE_MBYTES=0
CONFIG_PRINTK_TIME=y
CONFIG_PRINTK_CALLER=y
CONFIG_BOOT_PRINTK_DELAY=y
Expand Down
6 changes: 6 additions & 0 deletions arch/loongarch/kernel/cacheinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ static void cache_cpumap_setup(unsigned int cpu)
continue;

sib_leaf = sib_cpu_ci->info_list + index;
/* SMT cores share all caches */
if (cpus_are_siblings(i, cpu)) {
cpumask_set_cpu(cpu, &sib_leaf->shared_cpu_map);
cpumask_set_cpu(i, &this_leaf->shared_cpu_map);
}
/* Node's cores share shared caches */
if (cache_leaves_are_shared(this_leaf, sib_leaf)) {
cpumask_set_cpu(cpu, &sib_leaf->shared_cpu_map);
cpumask_set_cpu(i, &this_leaf->shared_cpu_map);
Expand Down
3 changes: 3 additions & 0 deletions drivers/bluetooth/btusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -4113,6 +4113,9 @@ static int btusb_suspend(struct usb_interface *intf, pm_message_t message)
if (data->suspend_count++)
return 0;

#ifdef CONFIG_LOONGARCH
mdelay(1);
Comment on lines +4116 to +4117
Copy link

Choose a reason for hiding this comment

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

question (performance): Added delay in btusb suspend on Loongarch.

The 1ms delay introduced for Loongarch platforms appears intended to allow hardware settling. Confirm that this delay is sufficient and does not adversely affect system suspend latency across all targeted devices.

#endif
spin_lock_irq(&data->txlock);
if (!(PMSG_IS_AUTO(message) && data->tx_in_flight)) {
set_bit(BTUSB_SUSPENDING, &data->flags);
Expand Down
Loading
Loading