Different cpu type will have different suppression ration.
So we add cpumask parameter to cpu capacity vendor hook.
Bug: 167126223
Signed-off-by: Yun Hsiang <yun.hsiang@mediatek.com>
Change-Id: I983a3aca2195f7c37c43d31fa588c999a825ee49
Update HW idle check for A619 holi to ensure GPU
idle status is captured correctly.
Change-Id: I2c332e43b3e3f653421e0bc4ab823ac557cfa141
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
Added support for passing init info from userspace
Change-Id: Ica31b6ed19e6536dadd36b35b31e5202da75490f
Signed-off-by: richagar <richagar@codeaurora.org>
A previous commit aligning splits to physical block sizes inadvertently
modified one return case such that that it now returns 0 length splits
when the number of sectors doesn't exceed the physical offset. This later
hits a case of 0 in bio_split(). Restore the previous working behavior.
Change-Id: I5d4b36862fb7f7202996bcaa2c4b7d71b49e6ba6
Fixes: 9cc5169cd4 ("block: Improve physical block alignment of split bios")
Reported-by: Eric Deal <eric.deal@wdc.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Cc: Bart Van Assche <bvanassche@acm.org>
Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Git-commit: f09dbec9c0
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Pradeep P V K <ppvk@codeaurora.org>
Add support to build the Aquantia forwarding driver for 32-bit
ARM target.
Change-Id: I153e85e8808895c6979e5597bcea09f0e2e22914
Signed-off-by: Lakshit Tyagi <ltyagi@codeaurora.org>
Update the DLL power up sequence according to the latest SDCC DLL HSR
document and SDCDC initialization sequence in HPG.
Final sequence:
Step 1 - Set PWRSAVE bit in MCI_CLK to '0' during reset
Step 2 - Disable CK_OUT
Setp 3 - Set CORE_DLL_CLOCK_DISABLE to '1'
Step 4 - Set RST & PDN to '1'
Step 5 - Set DLL_CONFIG_3
Step 6 - Set SDC4_USER_CTRL
Step 7 - Set SDC4_TEST_CTRL(SW can Skip this step)
Step 8 - Set DDR_CONFIG
Step 9 - Set DLL_CONFIG_2
Step 10 - Set DLL_CONFIG
Step 11 - Wait for 52 us
Step 12 - Set RST & PDN to '0'
Step 13 - Set RST to '1'
Step 14 - Set RST to '0'
Step 15 - Set CORE_DLL_CLOCK_DISABLE to '0'
Step 16 - Write '1' to DLL_EN
Step 17 - Wait for 8000 input clock cycles
Step 18 - Enable CK_OUT
Step 19 - Check for Lock
Step 20 - If PWRSAVE is needed, set PWRSAVE to '1'.
Change-Id: I663cb294c4e1cc6f28b81e0cab4caf54554ad145
Signed-off-by: Jun Li <liju@codeaurora.org>
Do not queue the request when gadget is in suspended state
as usb controller cannot process the request queued.
Change-Id: Id83b8461f208c6fc72b27105233e453dd8697528
Signed-off-by: Rohith Kollalsi <rkollals@codeaurora.org>
In a rare case if client sends 0 size data for TX transfer, driver
keeps vote and tries to serve TX transfer. But it returns from middle
and skips unvoting the vote kept, which results in imbalance of TX
path vote.
Note that scenario is very unlikely but in some cases customer will
have negative test case resulting in above scenario.
Change-Id: Ie4724ff40eec2beb67c113a6193377d4166a2b8b
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
When adb root is performed, userspace will close and open ffs_epsfile.
Closing this file will call ffs_functionfs_callback() which does call
remove_config(). This will call ffs_function_eps_disable to disable
endpoints and then calls ffs_func_unbind(). Unbind() will also call
endpoint disable which might lead to disabling endpoint which is already
disabled. Hence set ffs->func to NULL after disabling endpoints in
set_alt().
CRs-Fixed: 557532
Change-Id: I3052bdee74a1793d4e003de4b991d353e5d699b0
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Normally in epfile_io() and epfile_ioctl(), if the endpoint is
not enabled the system call will block waiting until the endpoint
is enabled. During a USB disconnect, the function's endpoints get
disabled, so that if an IO call occurs right after that, it would
perform the same blocking wait. From the kernel perspective this
is indistinguishable from an IO call happening after the function
is first initialized but not yet enabled. Hence a userspace
process would be blocked and unaware of the cable disconnection.
For userspace daemons such as ADB, this can be a problem since its
read/write threads cannot be reaped until the I/O call returns,
which won't happen until the cable is reconnected. In that case,
the previous pending read/write would proceed to get successfully
queued. In the case of a read, the previous read consumes data
meant for the new session, and in the case of a write, stale data
could be sent to the host.
To fix this, add a counter to keep track of the epfile's open status.
Upon the endpoint getting disabled mark the endpoint as invalid so as
to fail subsequent IOs until the epfile is fully closed. Returning
-ENODEV upon failure should allow the userspace process to close the
file, so that it can reopen and begin a new session.
Change-Id: I655ffdaa03485753431ff05dc521bf8d1b463ff1
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Add lanes number and infterface number config for lt9611uxc,
and add the code to control lt9611 power enable/disable using gpio.
Change-Id: I18e12791ac671ba1d14f0815a94068fd5ae1abf2
Signed-off-by: Wenjun Zhang <wjzhan@codeaurora.org>
Update the android/abi_gki_aarch64_exynos with recent symbol additions.
Note, no new symbols are needed to be exported here, making this a
simple change and no need to update the .xml file.
Bug: 168666574
Signed-off-by: Jaehyoung Choi <jkkkkk.choi@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ibe92486f6f84163990b65c75be96236f76f8af1e
When VM is booting, neuron driver can send a request to PVM using doorbell.
Currently this call is racing with when the doorbell driver is getting
the resources from the RM driver. Prevent clients to send a message when
resources are not ready. Added locking in function to check whether
resources are ready are not.
Unable to handle kernel NULL pointer dereference at virtual address 0x0
__wake_up_common+0x88/0x190
__wake_up+0x78/0xc0
hh_dbl_populate_cap_info+0xf4/0x1f8
hh_rm_populate_hyp_res+0x17c/0x2d0
hh_rm_get_svm_res_work_fn+0x34/0x78
process_one_work+0x214/0x468
worker_thread+0x330/0x4c0
kthread+0x134/0x148.
Change-Id: Id66b2d6382f33260dbb4c8d069c9fe5bc41e52fe
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
Enable SPS driver for Lahaina GKI version.
SPS (Smart Peripheral System) enables the support of
all BAMs in the system which provide DMA
functionality to various peripherals.
Change-Id: I5eb575d594bbd2c4858f224fcd40f1c2a04643f7
Signed-off-by: Ajay Prathi <aprathi@codeaurora.org>
The intent of the gpu_max_clock node is to set / show the maximum
GPU frequency. To accomplish this, set the max_pwrlevel instead of
thermal_pwrlevel when the gpu_max_clock node is set.
Change-Id: I90c5e638f22b363c60d351c8c78814df67b256a2
Signed-off-by: Raghu Ananya Arabolu <rarabolu@codeaurora.org>
DCC console is useful in early bring up stage. Unfortunately DCC console
usage is bringing some limitations in the virtual environment. Enabling
DCC console causing VM boot up issues. Hence disable DCC and rely on
RM console.
Change-Id: Id7f812bab7b69c5004793e005cf4fdfbf2a4a1a2
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
No flow control mechanism exist in RM console. That means when there is
huge messages sent from SVM to PVM there is a possibility that messages
being dropped by RM and hence loss of messages on console. Add a delay
of 800us for every console write and flush calls.
Change-Id: I65fb7a347b093d079c1380765c63b38bf90e0b66
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
Add three new groups to the a6xx performance counters for a620, a650,
and a660 to expose the GMU_XOCLK, GMU_GMUCLK and GMU_PERF counters.
Change-Id: Ic0dedbad07805bee4b6977e683e1161e4d500c1c
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Migrate the a6xx perfcounters to target specific. These counters
constitute the bulk of the specialized enable operations. This also is
the place where VBIF gets replaced with GBIF so a630 gets its own set of
perfcounters and we have to double up the functions for a6xx.
Change-Id: Ic0dedbadf04fcafb46816c8b970af3bd32a57c7b
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>