With hwscheduling, we need to communicate the preemption parameters
to GMU. Also, we need to use GET_VALUE hfi packet to get the
number of preemptions since last SLUMBER exit.
Change-Id: I2ab342817a3cea4e1d1797369aa272895730357b
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
This paves the way to hook preemption sysfs nodes to hwscheduling
which need to talk to GMU when changing preemption parameters
via sysfs.
Change-Id: I6940dbf294ad71a18b2dcded207cbacf18ba661d
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
Send the HFI feature control packet to the GMU in order to enable
preemption.
Change-Id: Ic00e3943bceb29feb28740dbadd3fb7c6fdc562b
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
This is to allow GMU to request secure gpu global buffers.
Change-Id: Iacef726ee3abe02b56178f475ebe9835649a868c
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
The result of GENMASK needs to be inverted so that the
handler doesn't report OOB bits as unknown bits.
Change-Id: I3e39334a6dd79343109591b043c9aa30a8bdff9d
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
With hwscheduling, the flags are requested by GMU outside
of kgsl domain. Printing these flags helps to know the flags
as requested by GMU.
Change-Id: I71d19ead02e115c0a4ead9861de9afd2a0dd2608
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
Say a context has only one submission i.e. it has only one dispatch
job. And say gpu encounters a fault and sets dispatcher fault. The
dispatch job will be free'd and post recovery, the context will never
get to the ringbuffer until it queues another submission. This behaviour
holds true in cases where dispatcher is halted for example during
suspend. So in either case, add back the job the the dispatcher jobs
list to make sure the job is not lost.
Change-Id: Iec0a0abfbdcf2535d7f82ec1e286581e1c93a3ea
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
For rimps_log and qcom_rimps platform driver does not
support the manual bind / unbind feature through sysfs,
Suppress the bind / unbind calls using driver attribute.
Change-Id: I9734d62e19ef16b01039757a92ef2489baea91b3
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
During shutdown/sleep putting vdd-io in LPM mode after sending the
Poweroff notify command is leading to OCP.
Avoid putting vdd-io in LPM mode during shutdown/sleep.
This change is inline with earlier kernels.
Change-Id: I08698bc8b4f1c420910747b6374485f6265d553b
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
Add snapshot of QPIC nand driver and it's supported files.
This is a snapshot of the QPIC nand driver as of kernel msm-4.14
'commit 5cc17e2cfb19 ("mtd: msm_qpic_nand: Disable Pagescope on
sdxprairie")'.
Change-Id: I994f4432ddd417743a1d7bf27b57755adc90b702
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
The current design sleeps unconditionally in TX FIFO full case and
wakeup only after sleep timer expires which adds random delays in
clients TX path.
Avoid sleep and use READ_NOTIFY command so that writer can be woken up
when remote notifies about read completion by sending IRQ.
Change-Id: I1b44df0ec437d4e76aff181470fcf4cafbdd098a
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Signed-off-by: Jay Jayanna <jayanna@codeaurora.org>
add a debugfs interface under /sys/kernel/debug/iommu/capturebus
to support capture bus for smmuv500.
Change-Id: Ibf2a2daf87941387c1b3f990f05d86a1cd4dbfff
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
[guptap@codeaurora.org: refactored implementation]
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
Initialize the sum fps calculation to avoid the value keep
increasing.
Change-Id: I826c88f7e75d318e2b328e8a525afb44511fb662
Signed-off-by: Ronald Karyodisa <ronaldk@codeaurora.org>
While switching from hs400 to hs200 mode, high speed mode
timing should be selected in the device before changing the
clock frequency in the host. But current implementation,
(mmc_hs400_to_hs200) first updates the frequency in the host
and then updates mode in the device. This is a spec violation.
Hence update the sequence to comply with the spec.
Change-Id: I0694edac9dd005ec68add9cc38bbe6fa4245ed48
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>