summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Revert "kernel: Only expose su when daemon is running"lineage-19.1Georg Veichtlbauer2023-05-22
| | | | | | | | | | | | | | This patch is no longer necessary because we no longer ship su add-ons, which is this patch initially designed for. Now it causes another issue which breaks custom root solution such as Magisk, as Magisk switches worker tmpfs dir to RO instead of RW for safety reasons and happens to satisfy MS_RDONLY check for su file, resulting in su file totally inaccessible. This reverts commit 08ff8a2e58eb226015fa68d577121137a7e0953f. Change-Id: If25a9ef7e64c79412948f4619e08faaedb18aa13
* dts: zuk: Re-enable two thermal sensorsDavide Garberi2022-08-16
| | | | | | * No reason to keep emmc_therm and msm_therm disabled Change-Id: I344a2c83da89fddd417efbfbd509621c5aed954a
* configs: zuk: Make savedefconfigDavide Garberi2022-07-27
| | | | Change-Id: I9568bb0845d01b13cabcd4531acb367348ff1a8a
* configs: zuk: Enable eBPFivanmeler2022-07-27
| | | | Change-Id: Ia061e4c1416f7cad44e982dfd43026092b0d2745
* usb_bam: Fix enum conversion warningsNathan Chancellor2022-07-27
| | | | Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
* staging: ion: Fix enum conversion warningsNathan Chancellor2022-07-27
| | | | | | | | | Clang complains about converting between ion_heap_type and msm_ion_heap_type. They ultimately don't conflict with each other as msm_ion_heap_type supplements ion_heap_type but Clang can't see that. Just change type into a int. Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
* thermal: tsens: Fix enum conversion warningsNathan Chancellor2022-07-27
| | | | | Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Change-Id: I2ee5808a86720b5bed360e6c5e4a3c96a530d8a2
* ASoC: msm: qdsp6v2: Fix non-literal-null-conversion warningyarost122022-07-27
| | | | | | | | | | | ../sound/soc/msm/qdsp6v2/q6lsm.c:255:33: error: expression which evaluates to zero treated as a null pointer constant of type 'struct lsm_client *' [-Werror,-Wnon-literal-null-conversion] lsm_session[client->session] = LSM_INVALID_SESSION_ID; ^~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: yarost12 <yaro330@gmail.com> Signed-off-by: Albert I <krascgq@outlook.co.id> [nathanchance: Improve changelog text] Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
* fbdev: lcd_effect: Fix a self-assign warningDavide Garberi2022-07-27
| | | | | | | | | | drivers/video/fbdev/msm/lcd_effect.c:689:15: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] mode_index=mode_index; ~~~~~~~~~~^~~~~~~~~~~ 1 warning generated. Change-Id: I7775e0004e32e649d2c9934cc7acc134941839ae
* icnss: Fix enum-conversion warning from ClangNathan Chancellor2022-07-27
| | | | | | | | | | | ../drivers/soc/qcom/icnss.c:3154:37: warning: implicit conversion from enumeration type 'enum icnss_driver_mode' to different enumeration type 'enum wlfw_driver_mode_enum_v01' [-Wenum-conversion] ret = wlfw_wlan_mode_send_sync_msg(mode); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ 1 warning generated. Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
* drivers: soc: qcom: fix register names on ARM64Greg Hackmann2022-07-27
| | | | | | | | | | | | gcc apparently lets you use r0, r1, etc. as register names even in aarch64 mode. clang does not. This change has no impact on the code generated by gcc (confirmed by disassembling scm.o with and without the patch). Change-Id: I8a7103738bb6603693287afd22c0346cb397458e Signed-off-by: Greg Hackmann <ghackmann@google.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
* sched/core: Properly fix constant logical operand Clang warningSultan Alsawaf2022-07-27
| | | | | | | | When sched_feat(NONTASK_CAPACITY) evaluates to a constant at compile time, Clang is unhappy. Use a double negation to make the constant boolean so that Clang is happy. Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
* ANDROID: Kbuild, LLVMLinux: disable clang -Wpointer-bool-conversionGreg Hackmann2022-07-27
| | | | | | | | | | | | clang warns when converting the address of an array or function to boolean, since it can never be NULL. The kernel relies on gcc silently optimizing these checks away, like when dealing with cpumask_var_t (which can be either a pointer or an array object, depending on the value of CONFIG_CPUMASK_OFFSTACK). Change-Id: I322568a6e467d7278f065503f37dd1dddd340ef4 Signed-off-by: Greg Hackmann <ghackmann@google.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
* configs: Update scheduler optionsDavide Garberi2022-07-27
| | | | | | | | | * Enable BFQ and CFQ * Set noop as default for the bootup * Disable the iosched test, just useless Signed-off-by: Davide Garberi <dade.garberi@gmail.com> Change-Id: I6247ddc569f116d7aeb7b929f0d6bb3c5eee5e31
* configs: Enable sched tuneDavide Garberi2022-07-27
| | | | Change-Id: Ibd227489342a66a123b3e05341f02998c234fd76
* configs: Enable diag charDavide Garberi2022-07-27
| | | | Change-Id: If2b2f519f992f17ced24fd1260397a47e9acc7c2
* configs: Enable quotaDavide Garberi2022-07-27
| | | | | | | * Needed to mount cache as rw with f2fs: F2FS-fs (mmcblk0p39): Filesystem with quota feature cannot be mounted RDWR without CONFIG_QUOTA Change-Id: Ibd9b3cc71e6f6d50ddf4056294f67592161f705a
* configs: Switch to LEDS_QPNP_HAPTICSDavide Garberi2022-07-27
|
* z2_plus_defconfig: Enable MMC_SDHCI_MSM_ICE configVenkat Gopalakrishnan2022-07-27
| | | | | | | | | This enables the client ICE driver to support inline crypto operations for eMMC controller on msm platform. Change-Id: I73817f9e0e8c448fd739e9cdd2153fcce3e64710 Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org> Signed-off-by: Subhajeet Muhuri <kenny3fcb@gmail.com>
* configs: Use Westwood+ TCP congestion algorithm by defaultSultanxda2022-07-27
| | | | Change-Id: I18e0d4a6164551de29a7d365facbd599b8f0a94d
* configs: Disable CONFIG_SCHED_DEBUGYaroslav Furman2022-07-27
| | | | | | Signed-off-by: Yaroslav Furman <yaro330@gmail.com> Signed-off-by: Subhajeet Muhuri <kenny3fcb@gmail.com> Change-Id: I1547c053d1af44f9eb1f825f180e71d6de9c699d
* configs: disable 2 unused driversYaroslav Furman2022-07-27
| | | | | | | | | | | | | | | | | | | [ 5.942721] Error: Driver 'IPCRTR' is already registered, aborting... [ 5.942796] IPC_RTR: msm_ipc_router_smd_driver_register: Failed to register platform driver [IPCRTR] [ 5.942873] IPC_RTR: msm_ipc_router_smd_driver_register Already driver registered IPCRTR [ 5.942948] IPC_RTR: msm_ipc_router_smd_driver_register Already driver registered IPCRTR and [ 3.078606] Error: Driver 'msm_rng' is already registered, aborting... [ 3.078640] msm_rng_init: platform_driver_register error:-16 Signed-off-by: Yaroslav Furman <yaro330@gmail.com> Change-Id: Ibe923a5a0becca97d8104ee976a827243cb9aa01
* configs: Clean up and optimizeSultan Alsawaf2022-07-27
| | | | | | Signed-off-by: Subhajeet Muhuri <kenny3fcb@gmail.com> Signed-off-by: Davide Garberi <dade.garberi@gmail.com> Change-Id: I61cd43c4802c00d797249e2f8128a915052f5b55
* configs: clean up configs and make savedefconfigPatrick Tjin2022-07-27
| | | | | | | | | | | | | | | | | | | Remove SCSI media changer support Remove Ethernet plug in card support Remove Qualcomm HBTP driver Remove PPP sync support Remove Linux Logo Remove PCI and SPI sound card support Remove Serial based input device support Remove Elecom BT mouse support Remove USB touch screen support Remove Non-USB Mouse, Joystick support Test: Keyboard, Mouse, Ethernet(USB3GIGV1), Headset Test: Power/Volume Up/Down hard keys work Change-Id: Icfdcc6ee0479c8d943a330d724aa29e0f0ca47ee Signed-off-by: Patrick Tjin <pattjin@google.com> Signed-off-by: Subhajeet Muhuri <kenny3fcb@gmail.com>
* configs: remove unused configs for BluetoothEcco Park2022-07-27
| | | | | | | | | | The configs for this is used for Bluez. So, there is no reason to keep this that causes the Security Vulnerability. Bug: 63527053 Change-Id: I954017d87639b2ae8db61be2d5dedfb32ff9d1e3 Signed-off-by: Ecco Park <eccopark@google.com>
* configs: disable mdss xlog debugAdrian Salido2022-07-27
| | | | | | Bug: 62470966 Change-Id: Ib12674f38fb109ea467729eeeff283299ace2e63 Signed-off-by: Adrian Salido <salidoa@google.com>
* configs: disable MSM_11ADThierry Strudel2022-07-27
| | | | | Change-Id: I01399642ab5d2e6405cf8dbb23caa140fcf71b56 Signed-off-by: Thierry Strudel <tstrudel@google.com>
* configs: Disable MSM_IPC_ROUTER_MHI_XPRTYaroslav Furman2022-07-27
| | | | | | | It doesn't probe succesfully. Signed-off-by: Yaroslav Furman <yaro330@gmail.com> Change-Id: I834373476f8933bde95d4073c0d8a4a579298e9b
* configs: remove unused kernel configWei Wang2022-07-27
| | | | | | | | Bug: 66228430 Test: boot Change-Id: Ib779822633f700a4378b8ea3293fc6f8cb9f7175 Signed-off-by: Wei Wang <wvw@google.com> Signed-off-by: Subhajeet Muhuri <kenny3fcb@gmail.com>
* configs: Set panic timeout to 5Davide Garberi2022-07-27
| | | | | | * Doing so the device waits 5 seconds from the panic before rebooting Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* configs: Enable MAGIC_SYSRQDavide Garberi2022-07-27
| | | | | | * Without this you can't test and reproduce a kernel panic... Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* configs: Disable DEVPORT config for msm8996Swetha Chikkaboraiah2022-07-27
| | | | | | | | | | | | | Disable CONFIG_DEVPORT config for msm8996. As selinux policy requires this node to be not accessible to userspace. CRs-Fixed: 2077590 Change-Id: I302d71a56764504ec246ddb6a98d8c07094846e4 Signed-off-by: Mohammed Khajapasha <mkhaja@codeaurora.org> Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org> Signed-off-by: Subhajeet Muhuri <kenny3fcb@gmail.com> Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* configs: Enable CONFIG_SCHED_HMP_CSTATE_AWAREJoonwoo Park2022-07-27
| | | | | | | | | | | Enable CONFIG_SCHED_HMP_CSTATE_AWARE in order to optimize task placement with CPUs C-state. This brings better system performance. CRs-fixed: 1006303 Change-Id: I18e62015371143bca56396c747eaad3b22c5e3a3 Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org> Signed-off-by: Subhajeet Muhuri <kenny3fcb@gmail.com> Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* configs: Use RCU_NOCB for RCU subsystemImran Khan2022-07-27
| | | | | | | | | | | | Use per CPU NOCB threads to process RCU callbacks, rather than processing the callbacks in softirq context. Processing large number of callbacks in softirq context may result in delayed execution of other softirqs, so remove processing of callbacks from softirq context. Change-Id: I96faf1e5c8e786a2cb2410bb1265875410f74ae3 Signed-off-by: Imran Khan <kimran@codeaurora.org> Signed-off-by: Subhajeet Muhuri <kenny3fcb@gmail.com> Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* configs: msm8996 specific changesYaroslav Furman2022-07-27
| | | | | | | | | | * Remove QBT1000 as it isn't used * Remove erratum fixes as they aren't needed * Add a few configs for security * Add CONFIG_INET_IPCOMP - for VPN Signed-off-by: Yaroslav Furman <yaro330@gmail.com> Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* configs: msm8996: Enable and disable few configsRahul Shahare2022-07-27
| | | | | | | | | | | | | | | | | | | | | | This change will enables and disables below list of configs in defconfig and perf_deconfig to address the pop-up issue. Enable configs: CONFIG_HARDENED_USERCOPY CONFIG_CRYPTO_GCM CONFIG_IPV6_VTI CONFIG_NET_IPVTI CONFIG_SECURITY_PERF_EVENTS_RESTRICT CONFIG_USB_CONFIGFS_F_AUDIO_SRC CONFIG_USB_CONFIGFS_F_MIDI CONFIG_CP15_BARRIER_EMULATION CONFIG_SETEND_EMULATION Disable configs: CONFIG_USELIB Change-Id: I7135d8a41bd34018c3d8f7c2342b2c2a12a9e07b Signed-off-by: Rahul Shahare <rshaha@codeaurora.org>
* configs: Enable app specific setting on MSM8996Sarangdhar Joshi2022-07-27
| | | | | | | | | | Enable support for app specific setting on MSM8996. This is required for providing an interface so that app specific settings can be applied / cleared. CRs-Fixed: 981519 Change-Id: Ice69a77b40dbd98bfff0c8095d78a25424527a2f Signed-off-by: Sanrio Alvares <salvares@codeaurora.org>
* configs: Enable FP settings for msm8996Sarangdhar Joshi2022-07-27
| | | | | | | | | Enable FP(Floating Point) and SIMD settings required during execution of AArch32 processes. CRs-Fixed: 952837 Change-Id: I71c9294a59053aad2abfd359f9d3035cf493307a Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
* configs: Disable SMB135X_CHARGERDavide Garberi2022-07-27
| | | | | | * We're not using this in 3.18 and it's useless for us Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* drivers: input: add hall switch driverYaroslav Furman2022-07-27
| | | | | | | | | Used in accessories with magnets to lock/unlock device and etc. 4.4 Linux version. Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
* msm_thermal: ignore sensor -19Yaroslav Furman2022-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | z2 has issues initializing it. Lots and lots of messages like this in dmesg: [ 51.109389] msm_thermal:therm_get_temp Unable to read thermal zone sensor:-19 [ 51.109419] msm_thermal:hotplug_init_cpu_offlined Unable to read TSENS sensor:-19. [ 51.109423] msm_thermal:therm_get_temp Unable to read thermal zone sensor:-19 [ 51.109426] msm_thermal:sensor_mgr_set_threshold Unable to read temperature for zone:-19. err:-19 [ 51.109429] msm_thermal:therm_get_temp Unable to read thermal zone sensor:-19 [ 51.109431] msm_thermal:sensor_mgr_set_threshold Unable to read temperature for zone:-19. err:-19 [ 51.109434] msm_thermal:therm_get_temp Unable to read thermal zone sensor:-19 [ 51.109437] msm_thermal:sensor_mgr_set_threshold Unable to read temperature for zone:-19. err:-19 [ 51.109439] msm_thermal:therm_get_temp Unable to read thermal zone sensor:-19 [ 51.109442] msm_thermal:sensor_mgr_set_threshold Unable to read temperature for zone:-19. err:-19 [ 51.109445] msm_thermal:therm_get_temp Unable to read thermal zone sensor:-19 [ 51.109447] msm_thermal:sensor_mgr_set_threshold Unable to read temperature for zone:-19. err:-19 [ 51.109450] msm_thermal:therm_get_temp Unable to read thermal zone sensor:-19 [ 51.109453] msm_thermal:sensor_mgr_set_threshold Unable to read temperature for zone:-19. err:-19 [ 51.109455] msm_thermal:therm_get_temp Unable to read thermal zone sensor:-19 [ 51.109458] msm_thermal:sensor_mgr_set_threshold Unable to read temperature for zone:-19. err:-19 [ 51.109461] msm_thermal:therm_get_temp Unable to read thermal zone sensor:-19 Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
* msm: mdss: add idle state nodeAdrian Salido2022-07-27
| | | | | | | | | | Add a helper node that can be used to notify user space through sysfs node when fb device has not had any activity for a specified amount of time (through idle_time node). Bug: 62110101 Change-Id: I4dfa4b1a376149aa55a940dad7ac336ec99f1af8 Signed-off-by: Adrian Salido <salidoa@google.com>
* clock-gcc-8996: gcc_mss_q6_bimc_axi_clk is not always on anymoreYaroslav Furman2022-07-27
| | | | | | | | | | | | For some reason it can randomly error on boot with message [ 0.466725] gcc_mss_q6_bimc_axi_clk: status stuck off *warning* [ 0.468169] failed to enable always-on clock gcc_mss_q6_bimc_axi_clk Fine... Let it not be always on. Signed-off-by: Yaroslav Furman <yaro330@gmail.com> Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* init: Remove CGROUP_SCHEDTUNE duplicated definitionDavide Garberi2022-07-27
| | | | | | * This has been added twice who knows when by CAF, most likely during an important merge Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* clk: msm: clock-cpu-8996: Use CLKFLAG_NO_RATE_CACHE for perfcl_hf_muxSultanxda2022-07-27
| | | | | | | | | The performance cluster can have frequency change requests ignored when it comes online without having this flag set. This can result in the perfcl running at its default frequency instead of the frequency that the CPU governor wants. Signed-off-by: Sultanxda <sultanxda@gmail.com>
* qcom-cpufreq: Use CLKFLAG_NO_RATE_CACHESultanxda2022-07-27
| | | | | | | | | | | | | | | | | | | | | | After a CPU comes online, clk_set_rate() silently refuses to change said CPU's frequency to the frequency it was running at before going offline (since it thinks that we are setting the same frequency redundantly). By default, each CPU runs at its minimum frequency when coming online, so if the governor decides to keep a CPU running at the frequency it used before going offline, then clk_set_rate() will ignore the frequency change request and the CPU will stay stuck running at its minimum frequency for a potentially long period of time (i.e. until the governor decides to change the frequency to something different). This can cause severe lag when a device is woken up from deep sleep. In order to prevent a CPU from being stuck at its default frequency for a potentially long period of time, set the CLKFLAG_NO_RATE_CACHE flag so that the governor's frequency change requests will always be honored right after a CPU comes online. Note that this requires a CPU's component clocks to be using CLKFLAG_NO_RATE_CACHE as well in order to fix the issue. Signed-off-by: Sultanxda <sultanxda@gmail.com>
* kernel: Fix potential refcount leak in su checkTom Marshall2022-07-27
| | | | | Change-Id: I8d2c8bed65a01eb0928308df638a04449a5bd881 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* kernel: Only expose su when daemon is runningTom Marshall2022-07-27
| | | | | | | | | | | | | | | It has been claimed that the PG implementation of 'su' has security vulnerabilities even when disabled. Unfortunately, the people that find these vulnerabilities often like to keep them private so they can profit from exploits while leaving users exposed to malicious hackers. In order to reduce the attack surface for vulnerabilites, it is therefore necessary to make 'su' completely inaccessible when it is not in use (except by the root and system users). Change-Id: I79716c72f74d0b7af34ec3a8054896c6559a181d Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* configs: Enable USB_CONFIGFS_RNDISDavide Garberi2022-07-27
| | | | | | | * Fixes usb tethering * Depends on https://github.com/DD3Boh/android_kernel_zuk_msm8996/commit/120991fe0830555988da869c6b4f0a518f301bc8 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* drivers: usb: Fix rndis file inclusionDavide Garberi2022-07-27
| | | | | | | | * We can just remove it from CONFIG_USB_F_GSI and keep it in CONFIG_USB_F_QCRNDIS as I can't get the first to build without the second but I can get the second to build without the first * The same thing is for CONFIG_USB_CONFIGFS_RNDIS * Fixes a build error because of the file being included twice Signed-off-by: Davide Garberi <dade.garberi@gmail.com>