SMMU hw voting did not tie these 2 clocks. Although these
clocks are default enabled on boot, SW needs to explicitly
make sure to keep them always enabled to keep smmu access.
These clks will automatically turn on/off along with
CX_GDSC so no power hit.
Change-Id: I4fb82589f63c0a321465e249e54f94be7e5449a3
Signed-off-by: Vivek Aknurwar <viveka@codeaurora.org>
Implemented a more efficient way of managering buffers in cvp driver
to help improve performance.
Change-Id: Ic6f9bc1bae74fc8daefdf55275239e4e6d334199
Signed-off-by: Ruofei Ma <ruofeim@codeaurora.org>
The core which induces the non-secure bite should not
proceed further. Non-secure bite is a secure interrupt
and one of the core handles and that may not be the same
core which configured the watchdog. Add forever loop
after non-secure bit programming, so that core do not
proceed further.
Change-Id: I5523ad00d47755df6eed2bfb9210b585ee22f4ed
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
Enable FSA driver on Lahaina to support analog type-c
headset.
Change-Id: Ia95383641030c9ff56300c975ffd35a96abcdac5
Signed-off-by: Meng Wang <mengw@codeaurora.org>
When WALT and CFI are enabled, weak symbols which points to NULL
are causing issues like global structures becoming NULL due to
compiler/linker treatment of these symbols.
Provide proper stub definition for all such weak symbols to avoid
issues until compiler/linker gets fixed.
Change-Id: I3dce047393521681e663a0ad254b07e9769e0265
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
MEM_NOTIFY is useful for sending VMs notifications about
memory that has been shared with them, as well as sending
owners of memory an indication that a VM has released memory
that they own, so add support for it.
Change-Id: I65bf0d000c8b3850f04c85eec70692728314b26d
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Relying on hyp_assign for sharing memory is not sufficient,
as there are certain cases where hyp_assign is not applicable
for sharing memory (e.g. I/O memory). Add support for the MEM_SHARE
and MEM_LEND operations for sharing/lending memory with other
VMs respectively.
Change-Id: I7de502385a045f073540fa30c164b3410f6b5bd0
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
The MEM_ACCEPT call is required for VMs to map the
memory represented by a handle into their RM managed
page-tables, so add support for it.
Change-Id: I669ebd8298af405ca586a5721b26c4e19ffe39aa
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
The MEM_RELEASE/MEM_RECLAIM RM calls are required to unmap memory
from the RM managed page-tables of VMs, as well as for VMs that
own memory to reclaim it respectively, so add support for it.
Change-Id: I6b8025cb08067331deb9cc89ec1d36c94c959c59
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
The MEM_QCOM_LOOKUP_SGL RM call is required to retrieve
handles for memparcels created through hyp assign. Thus,
add support for it in the RM driver.
Change-Id: Ib854187daffa13a44c948111ef560c3479f2590c
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Expose the label used for the mem-buf message queue.
Change-Id: I6f7c7629f9f6a4aefaea65653187ba210ef6ceb8
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
The memparcel handles are standard in the haven interface,
so expose them to the rest of the kernel.
Change-Id: Id8eafd5f3fe0f1403b9b76b9a0176c11d6546707
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This change reverts commit 5e33579a6a ("devfreq: Do not allow tunable
updates when device is suspended") and commit db4f4a0933 ("PM/devfreq:
Do not switch governors from sysfs when device is suspended").
Userspace updates to sysfs nodes like governor and polling_interval are
currently not allowed when there is a non-zero suspend count. This
requirement existed in the past due to hardware dependencies in some
devfreq drivers. However, these hardware dependencies should be handled
by the relevant devfreq drivers rather than the devfreq framework so
remove the suspend count checks in these devfreq framework sysfs APIs.
Change-Id: I8010b519d72784a6b90955acc7899c1a520aa7e7
Signed-off-by: Amir Vajid <avajid@codeaurora.org>
Incorrect error check and return value in guestvm_load_start causes
kernel to loop this function indefinitely.
Change-Id: I483cc084b4caa02c3478abcc856123dfa14216e9
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
With USB spoof connect functionality, eud hardware is generating
interrupt with status register updated with VBUS present and TX
buffer empty. Current eud ISR expects to have only single event
generated with each interrupt. It doesn't handle received valid
events. Fix this ISR logic to handle multiple events.
Change-Id: I819b8a7f5be5b32753467495416103b690a4a83e
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
The change involes support for 3.4 Mhz and modified clk values for 400 Khz
to support NFC enumeration. Also changed open drain frequency to be used
from i2c clk freq passed from DTSI.
Change-Id: Iee75cfcd630e905b10bff790de84b1da2efdc042
Signed-off-by: Subramanian Ananthanarayanan <skananth@codeaurora.org>
Currently the Soong logic doesn't kick in if a change updates
headers but doesn't update gen_headers_arm*.bp files for
incremental builds. Fix the issue by making inputs to the
kernel_headers.py script as variables instead of a list.
Change-Id: I9737f6d655848458bfda70b8c6f4d9aa896a98fc
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
On newer kernels, memory allocated by dma_alloc_attrs() is
expected to be zeroed out upon allocation. The allocation
paths in fastmap do not currently account for this new
requirement, so update them to zero out memory, unless
the client explicitly asks for memory to not be zeroed out.
Change-Id: I5c7fa81ab4b8fa98890036082883769ab12443c6
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
While investigating hardware issue, disabling CVP power collapse
to unblock CVP clients' integration tests.
Change-Id: I463e6216d390296ff958abb7382de4829f87e386
Signed-off-by: George Shen <sqiao@codeaurora.org>
Currently qti_flash_led_switch_brightness_set() is used to enable or
disable switch. Split it into separate APIs to enable and disable
switch. This will make it easier to control switches which is required
for implementing slow-sync flash feature.
Change-Id: I668ab872d1d646f97ed8fbfba4dfca6b4db5bc70
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
Enable QMI service driver used to support ADSP tunneling of
USB host mode audio.
Change-Id: I5632e2918a87441d717e5d7a0e5a8242bd4d607e
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Change the map_pcm_format() helper to return a snd_pcm_format_t
instead of a plain int to fix the following sparse warnings:
sound/usb/usb_audio_qmi_svc.c:1135:26: expected restricted
snd_pcm_format_t [usertype] pcm_format
subs->pcm_format = pcm_format;
sound/usb/usb_audio_qmi_svc.c:1135:26: got int [assigned] pcm_format
subs->pcm_format = pcm_format;
sound/usb/usb_audio_qmi_svc.c:1135:26: warning: incorrect type in
assignment (different base types)
subs->pcm_format = pcm_format;
sound/usb/usb_audio_qmi_svc.c:962:24: expected int
return SNDRV_PCM_FORMAT_S8;
sound/usb/usb_audio_qmi_svc.c:962:24: got restricted snd_pcm_format_t
[usertype]
return SNDRV_PCM_FORMAT_S8;
sound/usb/usb_audio_qmi_svc.c:962:24: warning: incorrect type in return
expression (different base types)
return SNDRV_PCM_FORMAT_S8;
... and so on.
For these warnings:
sound/usb/usb_audio_qmi_svc.c:559:47: expected unsigned short
[usertype] usb_audio_spec_revision
resp->usb_audio_spec_revision =
sound/usb/usb_audio_qmi_svc.c:559:47: got restricted __le16 [usertype]
bcdADC
resp->usb_audio_spec_revision =
sound/usb/usb_audio_qmi_svc.c:559:47: warning: incorrect type in
assignment (different base types)
resp->usb_audio_spec_revision =
Fix these by passing the bcdADC value through le16_to_cpu before
assigning to the usb_audio_spec_revision member.
Change-Id: I0be5848846be7e29566a7854c5190634bce4347d
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Since CONFIG_USB_F_FS_IPC_LOGGING was never explicitly set, despite
the "default IPC_LOGGING" in its Kconfig, it is prone to getting
disabled when performing a make config/menuconfig with the fragmented
configs. Fix this once and for all by explicitly marking it =y
in lahaina_debug.config.
Change-Id: I68c9a39ea2a0d0116f4685314daf717802af8481
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Charger firmware sends some battery related events with a generic
notification opcode. Handle such notifications as well to send
events up to the userspace.
Change-Id: Ia35fb7dbe56183d3c7c7a66b5f387b94072e6ed0
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
QBG device context dump length has been increased to 598 words in
the charger firmware. Increase the length to support upto 4KB.
Change-Id: I4a0a28044a54cdbde146101384f5a1ccf73b1562
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Cover console specific functionality under driver defined defconfig.
This helps to enable/disable console in a primary/secondary image based
on need.
Currently on GKI based kernel, SERIAL_CORE_CONSOLE seem to enable console
functionality which is not as expected. This change makes perf image to
work without Serial console.
Change-Id: I571dfd70b280189a9fd741db1e97ef3e650343f8
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
Enable DYNAMIC_DEBUG which is useful for debugging.
Change-Id: I93adcbba62380721751e58931d182729790b29b9
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
The SCM driver depends on shmbridge to make calls to the TZ. This
change enables shmbridge by default if CONFIG_QCOM_SCM is set.
Change-Id: I56a2cf35d5621f9b7ca4e8b3e854671e8d40071c
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
This change is to make sure UART doesn't turn on/off clocks for
console usecase. HSUART tries to store firmware version for debug
purpose which needs clocks to be ON, hence keep reading of FW
version only for HSUART.
Change-Id: I95025872852df3eb5b8252dfe1cc6f5be95586be
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>