Add a new ioctl, IOCTL_KGSL_GPUMEM_SYNC_CACHE_BULK, which can be used
to sync a number of memory ids at once. This gives the driver an
opportunity to optimize the cache operations based on the total
working set of memory that needs to be managed.
Change-Id: I9693c54cb6f12468b7d9abb0afaef348e631a114
Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
Handle all error interrupts in CCI by calling HALT followed by RESET
on corresponding CCI MASTER. Validate queue before performing I2C
read and write to ensure that queue is empty.
Change-Id: I336e6563e7430b50d41311c0e275315e87e82174
Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
Demux plugin only handled OOB commands for decoder filters of type video
or PCR and secure filters.
Setting a pes filter with output other than decoder (not DMX_OUT_DECODER)
is handled as a decoder filter nevertheless in case the pes type is one
that is associated as being of decoder class (such as DMX_PES_AUDIO).
In such case the demux plugin would ignore the OOB command.
This changes corrects this behaviour.
Change-Id: Ic3d1b6d0297fa7500e599b3d3677a5941a449c61
Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
Command packet should be written before the write index is
updated. Add memory barrier to ensure this.
CRs-fixed: 471773
Change-Id: I317d6ec3282c0ac1847042739ca668e7da496cfc
Signed-off-by: Vinay Kalia <vkalia@codeaurora.org>
Add support to read an eFuse which specifies the appropriate PMIC
regulator phase scaling factor to apply for a given chip. Using
the phase scaling factor reduces power consumption in certain
cases.
Also specify the phase scaling factor eFuse address for MSM8974
since this property value is made to be required.
Change-Id: I77a480a77e890f044f18fdfd002ec183d75347d0
Signed-off-by: David Collins <collinsd@codeaurora.org>
AES-CCM error does not report proper status to qcrypto driver.
If prior operation AES CCM operation has an error, (ex: MAC_FAILED),
it never gets cleared. Subsequent operation will report the same bit
error. Fix is to clear the status register before firing off an
operation
Further more, any AES-CCM error due to MAC failed is not logged
properly. Add aead_msg_fail if aead opearation is fine, but MAC
comparison fails the integrity checking.
Change-Id: Id9057a0f3fdf0be0b4e09185ae3a31d52ffd9c01
Signed-off-by: Hariprasad Dhalinarasimha <hnamgund@codeaurora.org>
The M2 high threshold register addresses were incorrectly set to be
the registers for M3. This causes die temperature tm alarm to never
trigger for the high state.
Fix this by changing the register addresses to the correct values.
Change-Id: I28368b88a874eca45c8ab7eb88db67aa430d31d3
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
The ADC can introduce a lot of error when the temperature fluctuates.
The BMS's coulomb counter is fed from the IADC, and over time the
accumulated error can create large inaccuracies in the BMS.
Provide a software workaround by maintaining a software coulomb
counter that resets, error compensates, and accumulates the hardware
coulomb counter in the BMS driver.
CRs-Fixed: 477720
CRs-Fixed: 477717
CRs-Fixed: 433840
Change-Id: I303fc919b054e7917d9625c580297a4b305506f7
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
Add support for GPIOs for primary AUXPCM interface. Add support
for both 8KHz and 16KHz frequencies.
Update the Device Tree documentation with binding information
for MSM8226 Sound device.
Change-Id: I800fb0a152e64c8f4ef45cf4518c9378918bb044
Signed-off-by: Banajit Goswami <bgoswa@codeaurora.org>