summaryrefslogtreecommitdiff
path: root/drivers/soc/qcom/msm_bus (follow)
Commit message (Collapse)AuthorAge
* Merge remote-tracking branch 'msm8998/lineage-20' into lineage-20Raghuram Subramani2024-10-17
| | | | Change-Id: I126075a330f305c85f8fe1b8c9d408f368be95d1
* Merge tag 'LA.UM.8.4.r1-05700-8x98.0' of ↵Michael Bestas2020-07-23
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://source.codeaurora.org/quic/la/kernel/msm-4.4 into lineage-17.1-caf-msm8998 * tag 'LA.UM.8.4.r1-05700-8x98.0' of https://source.codeaurora.org/quic/la/kernel/msm-4.4: msm: adsprpc: Fix array index underflow problem profiler: Fix compilation errors fbdev: msm: fix ret value while translating to mdp format clk: msm: Fix compilation errors with clang ath10k: Fix compilation issue drm/msm/sde: Fix clang compilation in SDE driver ais: cam_soc_api: Fix compilation error msm: camera: reset atomic variable msm: v4l2loopback: Fix clang compilation error msm: Fix compilation error asoc: msm-8998: Add new FE's for TDM Primary diag: dci: Synchronize dci mempool buffers alloc and free headers_lib: rename Android.bp kbuild: skip install/check of headers right under uapi directories uapi: export all arch specifics directories kernel_headers: Fix headers not detected in incremental builds kernel headers: Update comparison logic Kbuild : Use no-export-headers to avoid exporting headers kernel_headers: kernel headers library package kbuild: replace genhdr-y with generated-y uapi: export all headers under uapi directories uapi: sound: move necessary sound headers under uapi kernel: Fix build errors with LLVM Revert "ARM: dts: msm: Remove cpu max frequency restriction on cold temp for msm8996." ARM: dts: msm: Remove cpu max frequency restriction on cold temp for msm8996. input: touchpanel: Fix compilation errors with clang asoc: msm-8998: TDM device grouping changes for capture path kbuild, x86: Track generated headers with generated-y kbuild: Remove stale asm-generic wrappers ARM: put types.h in uapi msm: ais: jpegdma: Fix uninitialized variable Makefile.headersinst: remove destination-y option msm: adsprpc: DSP device node to provide restricted access to ADSP/SLPI Conflicts: .gitignore drivers/mmc/core/sdio_cis.c Change-Id: I70cf2a0fbcfcbc834a21cf7fa8db9bd2e1c755b1
| * kernel: Fix build errors with LLVMSwetha Chikkaboraiah2020-05-21
| | | | | | | | | | | | | | | | This patch intends to fix compilation errors while building kernel with LLVM toolchain. Change-Id: I76c4f97d8a0efb44434d54fb07cae23b050d2003 Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
* | soc: qcom: msm_bus: Remove unnecessary self assignment in ↵Nathan Chancellor2020-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | msm_bus_dbg_update_request_write Clang warns: ../drivers/soc/qcom/msm_bus/msm_bus_dbg.c:580:11: warning: explicitly assigning value of variable of type 'struct msm_bus_cldata *' to itself [-Wself-assign] cldata = cldata; ~~~~~~ ^ ~~~~~~ 1 warning generated. Fixes: 8461868fb6ff ("platform: msm: msm_bus: Add support for bus scaling") Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
* | msm: msm_bus: Remove unnecessary parentheses in get_nodeNathan Chancellor2020-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clang warns: ../drivers/soc/qcom/msm_bus/msm_bus_rules.c:68:12: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((id == NB_ID)) { ~~~^~~~~~~~ ../drivers/soc/qcom/msm_bus/msm_bus_rules.c:68:12: note: remove extraneous parentheses around the comparison to silence this warning if ((id == NB_ID)) { ~ ^ ~ ../drivers/soc/qcom/msm_bus/msm_bus_rules.c:68:12: note: use '=' to turn this equality comparison into an assignment if ((id == NB_ID)) { ^~ = ../drivers/soc/qcom/msm_bus/msm_bus_rules.c:69:24: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((node_it->data == data)) { ~~~~~~~~~~~~~~^~~~~~~ ../drivers/soc/qcom/msm_bus/msm_bus_rules.c:69:24: note: remove extraneous parentheses around the comparison to silence this warning if ((node_it->data == data)) { ~ ^ ~ ../drivers/soc/qcom/msm_bus/msm_bus_rules.c:69:24: note: use '=' to turn this equality comparison into an assignment if ((node_it->data == data)) { ^~ = Fixes: 8461868fb6ff ("platform: msm: msm_bus: Add support for bus scaling") Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
* | remove calls to trace_printkThierry Strudel2019-12-23
|/ | | | | | | | Removes boot warning: trace_printk() being used. Allocating extra memory. Change-Id: I3347379da302fc273e9b1d2787863cb244837ce8 Signed-off-by: Thierry Strudel <tstrudel@google.com>
* msm: msm_bus: Fix error handling in msm_bus_device_initDavid Dai2018-06-12
| | | | | | | | | | Correctly free pointers allocated by kzalloc. Remove devm_kfree in error handling as device associated memory is automatically freed upon destruction of device. Always use put_device instead of kfree on initialized device. Change-Id: Icbd88e9ccd42fedb4fbce5eff69248c3fceffc02 Signed-off-by: David Dai <daidavid1@codeaurora.org>
* msm: msm_bus: Add mutex lock for floor vote dataOdelu Kukatla2017-11-23
| | | | | | | | Floor vote data needs to be protected with mutex lock to avoid double free of memory due to race condtion. Change-Id: Ifaa01a14d273ccba6b9463aff3a41c0038b05f06 Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
* soc: qcom: msm_bus: Add debug logging for max bandwidth votesOdelu Kukatla2017-11-08
| | | | | | | | | Max bandwidth vote on each bus device is required to be printed when the device panics, so add a panic notifier to print the max BW votes on each bus device. Change-Id: I2256407638fe5085cb4b0f4d5a594dd00f4f3bce Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
* Merge "drivers: Warning fixes to disable CC_OPTIMIZE_FOR_SIZE"Linux Build Service Account2017-06-07
|\
| * drivers: Warning fixes to disable CC_OPTIMIZE_FOR_SIZEPrasad Sodagudi2017-05-31
| | | | | | | | | | | | | | | | | | | | These are all driver changes needed for disablement of CONFIG_CC_OPTIMIZE_FOR_SIZE. CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is enabled by default once CONFIG_CC_OPTIMIZE_FOR_SIZE is disabled. Change-Id: Ia46a1f24e8a082a29ea6151e41e6d3a85a05fd4f Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org> Signed-off-by: Sridhar Parasuram <sridhar@codeaurora.org>
* | Merge "soc: qcom: msm_bus: add rt mutex lock for cllist data"Linux Build Service Account2017-05-26
|\ \ | |/ |/|
| * soc: qcom: msm_bus: add rt mutex lock for cllist dataMaria Yu2017-05-16
| | | | | | | | | | | | | | | | | | Cldata needed to be protected by lock since crash happened when synchronous update and free. CRs-Fixed: 2034222 Change-Id: Ied86461b784d69d9758dc3fc793a8a0de86e7f9c Signed-off-by: Maria Yu <aiquny@codeaurora.org>
* | msm: msm_bus: Add mutex to protect node_listDavid Dai2017-05-16
|/ | | | | | | | | Static variable node_list list need to be protected with a mutex to prevent race conditions and use after free cases. Change-Id: I4790b06712b8a8b401f43418cfcc53b415fb0019 Signed-off-by: David Dai <daidavid1@codeaurora.org> Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
* Merge "msm: msm_bus: initialize the local variable"Linux Build Service Account2017-03-24
|\
| * msm: msm_bus: initialize the local variableOdelu Kukatla2017-03-23
| | | | | | | | | | | | | | | | | | Initialize the local variable 'ret' which is returned from the function. Change-Id: Ie82e74ce55b622db924e353a6ea98323c7642fa6 Signed-off-by: Kiran Gunda <kgunda@codeaurora.org> Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
* | msm: msm_bus: fix the memory leak issueOdelu Kukatla2017-03-24
|/ | | | | | | | | | | Client name allocated dynamically during the registration is not freed at the time of unregistration. This is leading to memory leak issue. This patch fixes the issue by freeing up the client name during unregistartion time. Change-Id: I0fe75ce71fdf0ee9a1268d52ac244047cc3413d7 Signed-off-by: Kiran Gunda <kgunda@codeaurora.org> Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
* msm: msm_bus: Reverse QoS Clocks Disabling OrderDavid Dai2016-11-30
| | | | | | | | | | Reverse the order in which the clocks needed for QoS programming are being disabled. This is done to resolve certain clocks being stuck on due to SlaveReady FSM enabled. Change-Id: I2d414689ad7ec2167b3974ae0f40338075609046 Signed-off-by: David Dai <daidavid1@codeaurora.org>
* soc: qcom: msm_bus: Set current index to default valueOdelu Kukatla2016-11-12
| | | | | | | | | When a client unregisters with bus driver after registering with it, without a bandwidth update request in-between, the current index is not having valid value, so update it to default value of 0. Change-Id: I8f1cba6e1efa65ae41e674b14bd7598b4b521f05 Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
* msm: msm_bus: limit max chars read by sscanfDavid Dai2016-11-03
| | | | | | | | | | | Current bus_floor_vote_store_api does not limit/check the size of the string in input, allowing stack overflow. Specify the max number of characters read allowable to the size of destination buffer. CRs-Fixed: 1050455 Change-Id: Idd409e3e38cfb01b28fa24543112d6bb206314ff Signed-off-by: David Dai <daidavid1@codeaurora.org>
* msm: msm_bus: allow QoS clocks to be specified at mas nodesDavid Dai2016-08-17
| | | | | | | | | | | | | | | | Allow for greater granularity of QoS clocks enabled when enabling clocks for QoS configuration for each node. Current implementation requires all QoS clocks related to the parent fab to enabled, which works well for mass QoS programming at probe time, but turns on unnecessary clocks when QoS programming defers at initial client request. This fixes an issue where Camera's initial client vote also caused the toggling of mdss gdscs which created a deadlock situation where the notifier callback from MDSS GDSC tries to obtain the same lock held by Camera's call in the same thread. Change-Id: Iff1d086fcfc92a709d198f84227cad9bd6f57646 Signed-off-by: David Dai <daidavid1@codeaurora.org>
* soc: qcom: msm_bus: Remove panic for no aggregation schemeDavid Dai2016-06-30
| | | | | | | | | Remove default panic error when no aggregation scheme is selected, this is to support virtual fabrics that have no clocks or bandwidth to aggregate. Change-Id: I4fd8977845dd123890afc5076cd55499992e488e Signed-off-by: David Dai <daidavid1@codeaurora.org>
* soc: qcom: msm_bus: remove legacy msm_bus supportDavid Dai2016-04-22
| | | | | | | | Remove unused legacy bus code and APIs CRs-Fixed: 1006336 Change-Id: I15811b787b54004e1aaba859e4c911be8f9eb285 Signed-off-by: David Dai <daidavid1@codeaurora.org>
* msm_bus: coresight: fix to support upstream implementationShashank Mittal2016-04-22
| | | | | | | | | Upstream's Coresight driver doesn't have id field in coresight_platform_data. So use device name instead to link bus clk with Coresight device node. Change-Id: I9f70974d64154217c2701879eb428beef1857fcf Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
* platform: msm: msm_bus: Fix the NULL pointer dereferenceKiran Gunda2016-03-23
| | | | | | | | Do not access the node_info pointer when it is null to avoid the crash. Change-Id: I8ca1a26fab847469bd205cbfb4adf63b9194a1d0 Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
* soc: qcom: msm_bus: relocate msm bus into soc/qcomDavid Dai2016-03-22
Change-Id: I80780a6f8d80143c697847abf82579c8e8194090 Signed-off-by: David Dai <daidavid1@codeaurora.org>