A task's affinity should not be dependent on halt, because
a halted cpu will be available to be run on, sometimes. Various
benchmarks and test cases will use getaffinity to determine
what is available to the task to start with. If halted cpus are
not returned as valid cpus, benchmark test cases will adjust
behavior (reduce number of tasks running in parallel or change
which cpus we run on).
Remove the android_rvh_sched_getaffinity tracehook as it
was only restricting the affinity returned, and not affecting
the true affinity of the task.
Removing the restriction on affinity returned to the user space
introduces a problem, since the user space task may now chose
to affine only to halted cpus. Following the offline/online model,
halted cpus are rejected in is_cpu_allowed and
set_cpus_allowed_by_task, through tracehooks. If only offline or
halted cpus are allowed by the task, select_fallback_rq will
change the allowed cpus permanently to other cpus, to ensure
the task can run. This will cause critical test cases to fail
since the task does not run on the intended cpu.
Modify the is_cpu_allowed and set_cpus_allowed_by_task tracehooks
to prevent a situation where the affinity is lost, addressing
issues with the removal of android_rvh_sched_getaffinity.
Change-Id: Ied0ae40e870c3e2ccb1bedfdf84d9b58fa03a7e0
Signed-off-by: Stephen Dickey <quic_dickey@quicinc.com>
Added master and slave ID constants for gpdsp_anoc, nsp_noc
and lpass_ag_noc interconnect providers. Removed qup_core_2
related master and slaves from clk_virt_noc.
Change-Id: I9ccc4b39b1fb6ff6e72f5a309b7770d062822332
Signed-off-by: Raviteja Laggyshetty <quic_rlaggysh@quicinc.com>
Add a sensor clock controller (SCC) driver which can be used
to control sensor clocks on boards in which the application
processor owns these clocks.
Add clock drivers snapshot from msm-5.4 branch
commit 417ff107f820 ("clk: qcom: Add sensor clock
controller driver for SM6150").
Change-Id: I76aa5a35509f7fa48ee4109941caa9b410d7f350
Signed-off-by: Veera Vegivada <quic_vvegivad@quicinc.com>
Signed-off-by: Chetan C R <quic_cchinnad@quicinc.com>
Add support for the video clock controller found on SM6150
based devices. This would allow video device drivers to
probe and control their clocks.
Add clock drivers snapshot from msm-5.4 branch
commit be2cb7b0b37f ("clk: qcom: sm6150: Register CCs with
clk pm for sm6150").
Change-Id: Iffccc48d642d291db2133092cf19d4a726f25c99
Signed-off-by: Veera Vegivada <quic_vvegivad@quicinc.com>
Signed-off-by: Chetan C R <quic_cchinnad@quicinc.com>
Enable the USB glue drivers and phy drivers for the non gki kernel.
Change-Id: I2ec83d28875273450f85423dd3640299b994f3ef
Signed-off-by: Manish Nagar <quic_mnagar@quicinc.com>
The Pointer 'sat_dev' is returned from call to function
'find_sat_dev_by_id'. 'sat_dev' may be NULL & can be passed to
'mhi_device_configure' api causing NULL pointer dereference issue.
Hence, adding a check before accessing the 'sat_dev'.
Change-Id: If097ee88dffc33b68cf6c205788ac08ba7d068c9
Signed-off-by: Naga Rashmi Ayiluri <quic_nayiluri@quicinc.com>
Signed-off-by: Lazarus Motha <quic_lmotha@quicinc.com>
Due to cpufreq and sched walt modules will influenct performance, so
load cpufreq and sched walt modules at first stage.
Change-Id: Ibe79a6f8ea86100f6f32b98d45ef8a6ae2a8c516
Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
Update module name sequence through buildifier-linux-amd64.
Change-Id: I2d475d2b9d81f2e04e91341ccb5adc5dfabdb1b1
Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
Add support for the graphics clock controller found on
SM6150 based devices. This should allow GPU device
drivers to probe and control their clocks.
Add clock drivers snapshot from msm-5.4 branch
commit 32a99d0b9dd6 ("clk: qcom: gpucc-sm6150: add
enable safe config for gfx3d clk src").
Change-Id: Ic4dc10771a4ea79d181be38e6f1594ecc6f314d3
Signed-off-by: Veera Vegivada <quic_vvegivad@quicinc.com>
Signed-off-by: Chetan C R <quic_cchinnad@quicinc.com>
Add support for display clock controller found on SM6150
based devices. This would allow display device driver
to probe and control their clocks.
Add clock drivers snapshot from msm-5.4 branch
commit 5663fb7de9c9 ("clk: qcom: remove flags for
byte div clk src").
Change-Id: I2e5e20f5bf518d6bc1128b6c2fb26a5e0480a4a3
Signed-off-by: Veera Vegivada <quic_vvegivad@quicinc.com>
Signed-off-by: Chetan C R <quic_cchinnad@quicinc.com>
Add support for camera clock controller found on SM6150
based devices. This would allow camera device drivers
to probe and control their clocks.
Add clock drivers snapshot from msm-5.4 branch
commit 775be9112d30 ("clk: qcom: camcc: Update the
volatge level for csiphytimer clocks").
Change-Id: Ic5b5e6e9363f0272e777c500028f876f3e79a7b8
Signed-off-by: Veera Vegivada <quic_vvegivad@quicinc.com>
Signed-off-by: Chetan C R <quic_cchinnad@quicinc.com>
Add support for peripheral clocks controlled by
global clock controller for SM6150.
Add clock drivers snapshot from msm-5.4 branch
commit 85d957b2aae6 ("clk: qcom: gcc-sm6150: update
halt check flags for sdr clocks").
Change-Id: I7717b8e32fd3918359faf3d63af2f6a82de81088
Signed-off-by: Veera Vegivada <quic_vvegivad@quicinc.com>
Signed-off-by: Chetan C R <quic_cchinnad@quicinc.com>
The routine qpnp_vib_brightness_set calls a sleeping function
qpnp_vib_ldo_poll_status. This causes crashes due to sleeping
functions being called from atomic context when a non blocking hook
is used. To avoid these crashes, use the brighness_set_blocking
hook in qpnp_vib_brightness_set.
Change-Id: Id8690e5d8dd7a7fb6b761202fde6325127173ec0
Signed-off-by: Shilpa Suresh <quic_c_sbsure@quicinc.com>
Currently the driver exposes few device attributes
(duration, state, activate) which are the same as
the ones being exposed in transient LED trigger.
Remove them in the driver and transient LED trigger
can be enabled when they are required.
Change-Id: I45a2d7dfcf44e64f797852b06b79a2ba2b666a7f
Signed-off-by: Xubin Bai <quic_xubibai@quicinc.com>
Add QPNP AMOLED regulator driver to configure triple power supply
(OLED, AB & IBB) that is used in AMOLED panels.
This is a snapshot of the driver taken from msm-5.15 as of
'commit 519a83cb4cde4 ("regulator: qpnp-amoled: Fix IBB
load current threshold")'.
Change-Id: Id95674f32e36a09d0ac227ece1ade837f6f11c29
Signed-off-by: Rakesh Kota <quic_kotarake@quicinc.com>
Add qpnp-flash-v2 driver for kona.
This is taken as a snapshot from msm-5.4 kernel
'commit 40ccd6775f80 ("qpnp-flash-v2: Add
support for qpnp-flash-v2 driver")'.
Also, replace the iio_channel_get with devm_iio_channel_get.
Change-Id: I90bfda0ace7b86deb96efac169978c6fb7f8fa23
Signed-off-by: Zihang Hu <quic_zihahu@quicinc.com>
Add keepalive flag to keep minimal vote on bcm nodes in active state.
Change-Id: I36cf9d8e319b1de800ecf3e3ea69ccd3db74c0d1
Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com>
Enable gcc, camcc, dispcc, gpucc and videocc so that clients can
vote on these clocks and also enable debugcc for clk_measure
support.
Change-Id: Ic342757a6276ac11d53439e6635ba5030d8626f6
Signed-off-by: shubham diwane <quic_sanantad@quicinc.com>