Skip to content

Commit

Permalink
Merge android13-5.10 into android13-gs-pixel-5.10-gs101
Browse files Browse the repository at this point in the history
Bug: 204279886
Signed-off-by: Robin Peng <[email protected]>
Change-Id: I2013ff98e87cdb31e0515a6ddaa305b09c24eb1c
  • Loading branch information
Robin Peng committed Oct 27, 2021
2 parents b192831 + ca5822a commit ca96780
Show file tree
Hide file tree
Showing 33 changed files with 96 additions and 48 deletions.
37 changes: 37 additions & 0 deletions android/abi_gki_aarch64_generic
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
blocking_notifier_chain_unregister
bpf_trace_run1
bpf_trace_run10
bpf_trace_run11
bpf_trace_run12
bpf_trace_run2
bpf_trace_run3
Expand Down Expand Up @@ -138,6 +139,7 @@
cfg80211_rx_mgmt_khz
cfg80211_scan_done
cfg80211_sched_scan_results
cfg80211_sched_scan_stopped
cfg80211_sched_scan_stopped_rtnl
__cfg80211_send_event_skb
cfg80211_unlink_bss
Expand Down Expand Up @@ -359,12 +361,15 @@
devm_clk_hw_register
devm_clk_hw_register_clkdev
devm_clk_put
devm_device_add_group
devm_device_add_groups
devm_device_remove_group
__devm_drm_dev_alloc
devm_drm_panel_bridge_add_typed
devm_extcon_dev_allocate
devm_extcon_dev_register
devm_free_irq
devm_fwnode_pwm_get
devm_gen_pool_create
devm_gpiochip_add_data_with_key
devm_gpiod_get
Expand All @@ -388,6 +393,7 @@
devm_kmemdup
devm_kstrdup
devm_kstrdup_const
devm_led_classdev_register_ext
devm_mfd_add_devices
devm_nvmem_register
devm_of_clk_add_hw_provider
Expand All @@ -403,6 +409,7 @@
devm_platform_ioremap_resource
devm_platform_ioremap_resource_byname
devm_power_supply_register
devm_pwm_get
devm_regmap_add_irq_chip
__devm_regmap_init
__devm_regmap_init_i2c
Expand Down Expand Up @@ -440,6 +447,7 @@
dev_pm_opp_set_regulators
dev_pm_qos_read_value
dev_pm_qos_update_request
dev_printk
dev_printk_emit
dev_queue_xmit
devres_add
Expand Down Expand Up @@ -775,6 +783,9 @@
full_name_hash
fwnode_get_name
fwnode_gpiod_get_index
fwnode_handle_put
fwnode_property_present
fwnode_property_read_string
fwnode_property_read_u32_array
gcd
generic_file_llseek
Expand All @@ -801,6 +812,7 @@
get_governor_parent_kobj
get_pid_task
get_random_bytes
get_random_bytes_arch
get_random_u32
get_sg_io_hdr
__get_task_comm
Expand Down Expand Up @@ -852,6 +864,12 @@
hex2bin
hex_dump_to_buffer
hex_to_bin
hid_add_device
hid_allocate_device
hid_debug
hid_destroy_device
hid_input_report
hid_parse_report
hrtimer_active
hrtimer_cancel
hrtimer_forward
Expand All @@ -875,6 +893,7 @@
i2c_new_dummy_device
i2c_put_adapter
i2c_register_driver
i2c_smbus_read_byte
i2c_smbus_read_byte_data
i2c_smbus_write_byte_data
i2c_smbus_xfer
Expand Down Expand Up @@ -1167,11 +1186,13 @@
netlink_kernel_release
netlink_unicast
net_ratelimit
nla_append
nla_memcpy
__nla_parse
nla_put
nla_put_64bit
nla_put_nohdr
nla_reserve
nla_strlcpy
__nlmsg_put
no_llseek
Expand Down Expand Up @@ -1253,6 +1274,7 @@
of_property_read_variable_u8_array
of_prop_next_string
of_prop_next_u32
of_pwm_xlate_with_flags
of_reserved_mem_device_init_by_idx
of_reserved_mem_device_release
of_reserved_mem_lookup
Expand Down Expand Up @@ -1394,6 +1416,7 @@
power_supply_set_property
power_supply_unregister
power_supply_unreg_notifier
prandom_bytes
prandom_u32
preempt_schedule
preempt_schedule_notrace
Expand Down Expand Up @@ -1421,6 +1444,11 @@
__put_task_struct
put_unused_fd
put_vaddr_frames
pwm_apply_state
pwmchip_add
pwmchip_remove
pwm_get_chip_data
pwm_set_chip_data
queue_delayed_work_on
queue_work_on
___ratelimit
Expand Down Expand Up @@ -1520,6 +1548,7 @@
regulator_set_voltage_sel_regmap
regulator_unregister
regulatory_hint
regulatory_set_wiphy_regd_sync_rtnl
release_firmware
__release_region
remap_pfn_range
Expand Down Expand Up @@ -1551,6 +1580,7 @@
rtc_valid_tm
__rt_mutex_init
rt_mutex_lock
rt_mutex_trylock
rt_mutex_unlock
rtnl_is_locked
rtnl_lock
Expand Down Expand Up @@ -1900,6 +1930,7 @@
__traceiter_android_vh_rmqueue
__traceiter_android_vh_setscheduler_uclamp
__traceiter_android_vh_snd_compr_use_pause_in_drain
__traceiter_android_vh_sound_usb_support_cpu_suspend
__traceiter_android_vh_sysrq_crash
__traceiter_android_vh_thermal_pm_notify_suspend
__traceiter_android_vh_timerfd_create
Expand All @@ -1915,6 +1946,8 @@
__traceiter_android_vh_ufs_send_tm_command
__traceiter_android_vh_ufs_send_uic_command
__traceiter_android_vh_ufs_update_sysfs
__traceiter_android_vh_usb_dev_resume
__traceiter_android_vh_usb_dev_suspend
__traceiter_clock_set_rate
__traceiter_cpu_frequency
__traceiter_device_pm_callback_end
Expand Down Expand Up @@ -1979,6 +2012,7 @@
__tracepoint_android_vh_rmqueue
__tracepoint_android_vh_setscheduler_uclamp
__tracepoint_android_vh_snd_compr_use_pause_in_drain
__tracepoint_android_vh_sound_usb_support_cpu_suspend
__tracepoint_android_vh_sysrq_crash
__tracepoint_android_vh_thermal_pm_notify_suspend
__tracepoint_android_vh_timerfd_create
Expand All @@ -1994,6 +2028,8 @@
__tracepoint_android_vh_ufs_send_tm_command
__tracepoint_android_vh_ufs_send_uic_command
__tracepoint_android_vh_ufs_update_sysfs
__tracepoint_android_vh_usb_dev_resume
__tracepoint_android_vh_usb_dev_suspend
__tracepoint_clock_set_rate
__tracepoint_cpu_frequency
__tracepoint_device_pm_callback_end
Expand Down Expand Up @@ -2227,6 +2263,7 @@
wakeup_source_create
wakeup_source_destroy
wakeup_source_register
wakeup_source_remove
wakeup_source_unregister
__wake_up_sync
__warn_printk
Expand Down
1 change: 0 additions & 1 deletion arch/alpha/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ smp_callin(void)
DBGS(("smp_callin: commencing CPU %d current %p active_mm %p\n",
cpuid, current, current->active_mm));

preempt_disable();
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
}

Expand Down
1 change: 0 additions & 1 deletion arch/arc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ void start_kernel_secondary(void)
pr_info("## CPU%u LIVE ##: Executing Code...\n", cpu);

local_irq_enable();
preempt_disable();
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
}

Expand Down
1 change: 0 additions & 1 deletion arch/arm/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@ asmlinkage void secondary_start_kernel(void)
#endif
pr_debug("CPU%u: Booted secondary processor\n", cpu);

preempt_disable();
trace_hardirqs_off();

/*
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/include/asm/preempt.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ static inline void preempt_count_set(u64 pc)
} while (0)

#define init_idle_preempt_count(p, cpu) do { \
task_thread_info(p)->preempt_count = PREEMPT_ENABLED; \
task_thread_info(p)->preempt_count = PREEMPT_DISABLED; \
} while (0)

static inline void set_preempt_need_resched(void)
Expand Down
1 change: 0 additions & 1 deletion arch/arm64/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ asmlinkage notrace void secondary_start_kernel(void)
init_gic_priority_masking();

rcu_cpu_starting(cpu);
preempt_disable();
trace_hardirqs_off();

/*
Expand Down
1 change: 0 additions & 1 deletion arch/csky/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ void csky_start_secondary(void)
pr_info("CPU%u Online: %s...\n", cpu, __func__);

local_irq_enable();
preempt_disable();
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
}

Expand Down
1 change: 0 additions & 1 deletion arch/ia64/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,6 @@ start_secondary (void *unused)
#endif
efi_map_pal_code();
cpu_init();
preempt_disable();
smp_callin();

cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
Expand Down
1 change: 0 additions & 1 deletion arch/mips/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ asmlinkage void start_secondary(void)
*/

calibrate_delay();
preempt_disable();
cpu = smp_processor_id();
cpu_data[cpu].udelay_val = loops_per_jiffy;

Expand Down
2 changes: 0 additions & 2 deletions arch/openrisc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ asmlinkage __init void secondary_start_kernel(void)
set_cpu_online(cpu, true);

local_irq_enable();

preempt_disable();
/*
* OK, it's off to the idle thread for us
*/
Expand Down
1 change: 0 additions & 1 deletion arch/parisc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ void __init smp_callin(unsigned long pdce_proc)
#endif

smp_cpu_init(slave_id);
preempt_disable();

flush_cache_all_local(); /* start with known state */
flush_tlb_all_local(NULL);
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,6 @@ void start_secondary(void *unused)
smp_store_cpu_info(cpu);
set_dec(tb_ticks_per_jiffy);
rcu_cpu_starting(cpu);
preempt_disable();
cpu_callin_map[cpu] = 1;

if (smp_ops->setup_cpu)
Expand Down
1 change: 0 additions & 1 deletion arch/riscv/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ asmlinkage __visible void smp_callin(void)
* Disable preemption before enabling interrupts, so we don't try to
* schedule a CPU that hasn't actually started yet.
*/
preempt_disable();
local_irq_enable();
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
}
4 changes: 2 additions & 2 deletions arch/s390/include/asm/preempt.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static inline void preempt_count_set(int pc)
#define init_task_preempt_count(p) do { } while (0)

#define init_idle_preempt_count(p, cpu) do { \
S390_lowcore.preempt_count = PREEMPT_ENABLED; \
S390_lowcore.preempt_count = PREEMPT_DISABLED; \
} while (0)

static inline void set_preempt_need_resched(void)
Expand Down Expand Up @@ -91,7 +91,7 @@ static inline void preempt_count_set(int pc)
#define init_task_preempt_count(p) do { } while (0)

#define init_idle_preempt_count(p, cpu) do { \
S390_lowcore.preempt_count = PREEMPT_ENABLED; \
S390_lowcore.preempt_count = PREEMPT_DISABLED; \
} while (0)

static inline void set_preempt_need_resched(void)
Expand Down
1 change: 0 additions & 1 deletion arch/s390/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,6 @@ static void smp_init_secondary(void)
set_cpu_flag(CIF_ASCE_SECONDARY);
cpu_init();
rcu_cpu_starting(cpu);
preempt_disable();
init_cpu_timer();
vtime_init();
pfault_init();
Expand Down
2 changes: 0 additions & 2 deletions arch/sh/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,6 @@ asmlinkage void start_secondary(void)

per_cpu_trap_init();

preempt_disable();

notify_cpu_starting(cpu);

local_irq_enable();
Expand Down
1 change: 0 additions & 1 deletion arch/sparc/kernel/smp_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ static void sparc_start_secondary(void *arg)
*/
arch_cpu_pre_starting(arg);

preempt_disable();
cpu = smp_processor_id();

notify_cpu_starting(cpu);
Expand Down
3 changes: 0 additions & 3 deletions arch/sparc/kernel/smp_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,6 @@ void smp_callin(void)

set_cpu_online(cpuid, true);

/* idle thread is expected to have preempt disabled */
preempt_disable();

local_irq_enable();

cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/include/asm/preempt.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static __always_inline void preempt_count_set(int pc)
#define init_task_preempt_count(p) do { } while (0)

#define init_idle_preempt_count(p, cpu) do { \
per_cpu(__preempt_count, (cpu)) = PREEMPT_ENABLED; \
per_cpu(__preempt_count, (cpu)) = PREEMPT_DISABLED; \
} while (0)

/*
Expand Down
1 change: 0 additions & 1 deletion arch/x86/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ static void notrace start_secondary(void *unused)
cpu_init_exception_handling();
cpu_init();
x86_cpuinit.early_percpu_clock_init();
preempt_disable();
smp_callin();

enable_start_cpu0 = 0;
Expand Down
1 change: 0 additions & 1 deletion arch/xtensa/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ void secondary_start_kernel(void)
cpumask_set_cpu(cpu, mm_cpumask(mm));
enter_lazy_tlb(mm, current);

preempt_disable();
trace_hardirqs_off();

calibrate_delay();
Expand Down
2 changes: 0 additions & 2 deletions build.config.allmodconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
DEFCONFIG=allmodconfig

HERMETIC_TOOLCHAIN=0

POST_DEFCONFIG_CMDS="update_config"
function update_config() {
${KERNEL_DIR}/scripts/config --file ${OUT_DIR}/.config \
Expand Down
5 changes: 3 additions & 2 deletions drivers/dma-buf/heaps/system_heap.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ struct dma_heap_attachment {
bool uncached;
};

#define LOW_ORDER_GFP (GFP_HIGHUSER | __GFP_ZERO | __GFP_COMP)
#define MID_ORDER_GFP (LOW_ORDER_GFP | __GFP_NOWARN)
#define HIGH_ORDER_GFP (((GFP_HIGHUSER | __GFP_ZERO | __GFP_NOWARN \
| __GFP_NORETRY) & ~__GFP_RECLAIM) \
| __GFP_COMP)
#define LOW_ORDER_GFP (GFP_HIGHUSER | __GFP_ZERO | __GFP_COMP)
static gfp_t order_flags[] = {HIGH_ORDER_GFP, LOW_ORDER_GFP, LOW_ORDER_GFP};
static gfp_t order_flags[] = {HIGH_ORDER_GFP, MID_ORDER_GFP, LOW_ORDER_GFP};
/*
* The selection of the orders used for allocation (1MB, 64K, 4K) is designed
* to match with the sizes often found in IOMMUs. Using order 4 pages instead
Expand Down
Loading

0 comments on commit ca96780

Please sign in to comment.