Commit graph

603231 commits

Author SHA1 Message Date
Bjørn Mork
2e641b848a usbnet: allow mini-drivers to consume L2 headers
Assume the minidriver has taken care of all L2 header parsing
if it sets skb->protocol.  This allows the minidriver to
support non-ethernet L2 headers, and even operate without
any L2 header at all.

Change-Id: Ied7fc3752673a68e5bb22a623cc3fc59c1f1e0ff
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Acked-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 81e0ce79f2919dbd5f025894d29aa806af8695c7
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[gustavos@codeaurora.org: fix checkpatch warning]
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
2018-11-19 13:02:17 -08:00
Gustavo Solaira
332c11dd05 net: socket: Add AF_QIPCRTR protocol definition
Add definition to enable QRTR based sockets.

Change-Id: Ic5b070462a103abcc5820fadb7b6bdc40946f1e5
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
2018-11-19 13:02:16 -08:00
Gustavo Solaira
a772e4964b include: Add device table definition for MHI drivers
Add driver definition used by MHI core to enable
device drivers that use the MHI bus.

Change-Id: I2740dd7687dff0312fd679dbac146d21d9cbc8fe
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
2018-11-19 13:02:16 -08:00
Linux Build Service Account
f1587d8660 Merge "dwc3: gadget: Remove soft reset as part of gadget run_stop" 2018-11-09 16:15:27 -08:00
Linux Build Service Account
ac7b931cf8 Merge "msm: kgsl: Correct the state transitions in suspend function" 2018-11-09 06:19:12 -08:00
Linux Build Service Account
06ff6ccf78 Merge "msm: kgsl: Don't halt dispatcher if device is not in SUSPEND state" 2018-11-09 06:19:10 -08:00
Sriharsha Allenki
8aa1802d6a dwc3: gadget: Remove soft reset as part of gadget run_stop
Soft reset of the core before setting the run stop
bit of the core is not suggested.
So, remove the soft reset of the core as part of
the run_stop operation.

Change-Id: Ib87176d8036a27cc7e0a5790b293ee79811e4734
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2018-11-09 02:17:13 -08:00
Linux Build Service Account
91c4a617f5 Merge "ARM: dts: msm: Enabled dt entry for bmi160 and iam20680" 2018-11-08 20:29:06 -08:00
Linux Build Service Account
70be7025dc Merge "timekeeping: Cap adjustments so they don't exceed the maxadj value" 2018-11-08 20:29:04 -08:00
Linux Build Service Account
b49958c0c6 Merge "defconfig: msm: Enable MSM_TIMER_LEAP for msm8996-auto" 2018-11-08 20:29:04 -08:00
Linux Build Service Account
a7ad7d6251 Merge "soc: qcom: hab: benchmark cross VM schdule latency" 2018-11-08 20:29:02 -08:00
puneet
a2ac9c46d5 ARM: dts: msm: Enabled dt entry for bmi160 and iam20680
GPS QDR feature has dependency on BMI160 and IAM20680
sensor driver which is enabled through GPIO 10 and 11 pins.

Change-Id: Ib9c257fc385233c733c24fa0f7175f739ce75a19
Signed-off-by: puneet <puneet@codeaurora.org>
2018-11-07 22:05:16 -08:00
John Stultz
1b6457b89d timekeeping: Cap adjustments so they don't exceed the maxadj value
Thus its been occasionally noted that users have seen
confusing warnings like:

    Adjusting tsc more than 11% (5941981 vs 7759439)

We try to limit the maximum total adjustment to 11% (10% tick
adjustment + 0.5% frequency adjustment). But this is done by
bounding the requested adjustment values, and the internal
steering that is done by tracking the error from what was
requested and what was applied, does not have any such limits.

This is usually not problematic, but in some cases has a risk
that an adjustment could cause the clocksource mult value to
overflow, so its an indication things are outside of what is
expected.

It ends up most of the reports of this 11% warning are on systems
using chrony, which utilizes the adjtimex() ADJ_TICK interface
(which allows a +-10% adjustment). The original rational for
ADJ_TICK unclear to me but my assumption it was originally added
to allow broken systems to get a big constant correction at boot
(see adjtimex userspace package for an example) which would allow
the system to work w/ ntpd's 0.5% adjustment limit.

Chrony uses ADJ_TICK to make very aggressive short term corrections
(usually right at startup). Which push us close enough to the max
bound that a few late ticks can cause the internal steering to push
past the max adjust value (tripping the warning).

Thus this patch adds some extra logic to enforce the max adjustment
cap in the internal steering.

Note: This has the potential to slow corrections when the ADJ_TICK
value is furthest away from the default value. So it would be good to
get some testing from folks using chrony, to make sure we don't
cause any troubles there.

Change-Id: I31f2966d5134af18e3902cb0f1d9805f204a3e14
Cc: Miroslav Lichvar <mlichvar@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Andy Lutomirski <luto@kernel.org>
Tested-by: Miroslav Lichvar <mlichvar@redhat.com>
Reported-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Git-commit: ec02b076ceab63f99e5b3d80fd223d777266c236
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
2018-11-06 22:39:34 -08:00
Linux Build Service Account
e2a4721cfa Merge "ARM: dts: msm: Add pcie-ep device for msm8996" 2018-11-06 22:09:07 -08:00
Linux Build Service Account
cbb5bff2a0 Merge "cnss2: call remove driver_ops in cnss_wlan_unregister" 2018-11-06 22:09:05 -08:00
Linux Build Service Account
3e15f887cf Merge "ARM: dts: msm: Add support for APQ8096A" 2018-11-06 09:07:19 -08:00
Linux Build Service Account
38b693f401 Merge "soc: qcom: glink_smem_native_xprt: init in_ssr before IRQ eanbled." 2018-11-06 02:05:32 -08:00
Linux Build Service Account
8952000791 Merge "soc: qcom: hab: refine hab virtual channel's resource free" 2018-11-06 02:05:30 -08:00
Linux Build Service Account
e8e7047a8a Merge "soc: qcom: socinfo: Add support for APQ8096A" 2018-11-06 02:05:29 -08:00
Linux Build Service Account
0ac5501f23 Merge "ASoC: change mask in snd_soc_get/put_volsw_sx to unsigned int" 2018-11-06 02:05:28 -08:00
Linux Build Service Account
462513774f Merge "pps: DR_SYNC pulse needs to be connected to Linux PPS driver" 2018-11-06 02:05:21 -08:00
Linux Build Service Account
cbdfa9f566 Merge "ARCH: arm: defconfig: BMI160 and IAM20680 sensor enablement" 2018-11-06 02:05:19 -08:00
Arun KS
d26af6deeb ARM: dts: msm: Add support for APQ8096A
Add msm-id to support APQ8096A

Change-Id: I3b71d5cca6f4d1447b150dbe783073862755f80a
Signed-off-by: Arun KS <arunks@codeaurora.org>
2018-11-06 11:41:54 +05:30
Linux Build Service Account
300a22811b Merge "msm: ais: Fix arbitrary kernel write" 2018-11-05 19:37:45 -08:00
Gustavo Solaira
e4dea7a029 defconfig: msm: Enable MSM_TIMER_LEAP for msm8996-auto
Enable MSM_TIMER_LEAP config flag in both msm-auto_defconfig
and msm-auto-perf_defconfig files. This option enables check
for architecture timer leaps, when all least significant 32bits
of CNTVCT or CNTPCT counter is set and rereads counters.

Change-Id: I1b37f9931793e21f5144e0afb9c689a228c03493
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
2018-11-05 16:20:32 -08:00
Linux Build Service Account
071995902d Merge "soc: hab: fix uninitialized variable and relocate vchan refcnt" 2018-11-04 18:35:39 -08:00
Archana Sriram
3e3bb6e7bb msm: kgsl: Correct the state transitions in suspend function
GPU should not be forced to SUSPEND state when it is in INIT
or NONE state as this transition is invalid.

Change-Id: Ia3d0fd131348508fe34c57f271c1f991a98afa19
Signed-off-by: Archana Sriram <apsrir@codeaurora.org>
2018-11-01 23:49:07 -07:00
Yong Ding
cf41f3e0d3 soc: qcom: hab: refine hab virtual channel's resource free
Whenever a vchan is locally closed in hab_vchan_close or hab_free,
4 actions should be taken immediately, including,
 - remove it from the local hab context
 - mark its local closed flag
 - notify remote side and unblock local blocking calls over it
 - decrease the refcnt on the vchan

Change-Id: I3fbde9464f6405b6dadac248768a5fd857a29128
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2018-11-01 17:37:29 +08:00
Banajit Goswami
7a4ab19b31 ASoC: change mask in snd_soc_get/put_volsw_sx to unsigned int
If the result of (min + max) is negative in functions
snd_soc_get_volsw_sx() or snd_soc_put_volsw_sx(), there
will be an overflow for the variable 'mask'.
   UBSAN: Undefined behaviour in sound/soc/soc-ops.c:382:6
   signed integer overflow:
   -2147483648 - 1 cannot be represented in type 'int'

Fix this by updating the variable type of 'mask' to unsigned int.

Change-Id: Ia34f397fad5b93c0e2ffacae60e051ad20c20bdf
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-10-30 22:04:08 -07:00
Arun KS
d2be5dd424 soc: qcom: socinfo: Add support for APQ8096A
Add CPU ID to the socinfo table needed to support
APQ8096A Automotive SoC.

Change-Id: I621faa171c867b36fa541961772a841333917861
Signed-off-by: Arun KS <arunks@codeaurora.org>
2018-10-31 09:57:48 +05:30
Rajasekaran Kalidoss
7a18627fbf cnss2: call remove driver_ops in cnss_wlan_unregister
rmmod of wlan triggers cnss_wlan_unregister. wlan driver_ops
remove should be called for QCN7605 standalone and
composite devices to finish the rmmod path.

Change-Id: I0047eb65b68b7e81b9b9c9fd79825a0d3f27c640
Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
2018-10-30 01:46:39 -07:00
Yajun Li
67b38b0496 soc: hab: Fix a memory leakage when unexport
When the remote vchan is closed and unexport happens
in local at the same time, function hab_get_vchan_fromvcid
will return null in hab unexport, which will cause memory leak.

Change-Id: I8dac4f4154f24734dc2a11aa73f726cd705cc291
Signed-off-by: Yajun Li <yajunl@codeaurora.org>
2018-10-30 16:27:47 +08:00
Yajun Li
32782582c3 soc: hab: fix uninitialized variable and relocate vchan refcnt
Init hab msg pointer to avoid accessing an uninitialized
pointer.

The format specifier "%p" can leak kernel addresses. Use
"%pK" instead.

Check the status of the pfn_table, because of wrong pagetable
coming from the corresponding hab client unexpectedly.

Change-Id: Ic8c6ba0243d27007d014165f2869a5775a96c09d
Signed-off-by: Yajun Li <yajunl@codeaurora.org>
2018-10-30 15:54:26 +08:00
Linux Build Service Account
0773fb50d4 Merge "ASoC: msm: PP event handling support for loopback driver" into msm-4.4 2018-10-29 11:11:00 -07:00
Amandeep Singh
d10f17c39d Revert "msm-4.4: dts: mhi: Added and enabled mhi support"
This reverts commit 7475bc3d16.

Change-Id: Ia9f495862c4e10fb2b0f162160538f12c08de872
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2018-10-29 07:25:23 -07:00
Amandeep Singh
7475bc3d16 msm-4.4: dts: mhi: Added and enabled mhi support
Added and enabled mhi node in the dts for msm8996 auto.

Change-Id: I3932f4e51844437172b0f9e71731b42de9d5b4c4
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2018-10-29 07:16:12 -07:00
Madhanraj Chelladurai
363aa31036 pps: DR_SYNC pulse needs to be connected to Linux PPS driver
DR_SYNC pulse needs to be connected to Linux PPS driver for
GNSS driver to receive pps_event. DR_SYNC pulse is generated
by GSS firmware in modem, GNSS driver needs to receive
pps_event of this pulse to get the kernel timestamp to
synchronize time/data to finer quality.

Change-Id: I1c686fcf6306e890cc0a5c3296cdcaff49282e2f
CRs-Fixed: 1068214
Signed-off-by: Madhanraj Chelladurai <mchellad@codeaurora.org>
2018-10-29 04:09:45 -07:00
puneet
a552ff86f3 ARCH: arm: defconfig: BMI160 and IAM20680 sensor enablement
Enabled the bmi160 & iam20680 sensor code compilation

Change-Id: I69db96c17eb361f96beab3053c3bca22cd2a38c8
Signed-off-by: puneet <puneet@codeaurora.org>
2018-10-29 04:04:20 -07:00
puneet
01b30f1206 drivers: iio: imu: enabled bmi and iam sensor compilation
Did makefile changes to allow the sensor driver compilation

Change-Id: I435597d950fe789faffbf65e278bcafa8b4ca184
Signed-off-by: puneet <puneet@codeaurora.org>
2018-10-29 04:03:37 -07:00
Deepak Kumar
82150f24c0 msm: kgsl: Don't halt dispatcher if device is not in SUSPEND state
Add a check to make sure device actually transitioned to SUSPEND
state before halting dispatcher in adreno_suspend_device function.
kgsl_pwrctrl_change_state(device,KGSL_STATE_SUSPEND) in
kgsl_suspend_device can return zero without actually changing state
to SUSPEND if device state is NONE or INIT.

Change-Id: I4a5a69007c71651ea2cf7fa7360c960c6856031e
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
Signed-off-by: Archana Sriram <apsrir@codeaurora.org>
2018-10-29 15:14:01 +05:30
Linux Build Service Account
cff9fccb67 Merge "defconfig: Enable CONFIG_BUG_ON_DATA_CORRUPTION" 2018-10-28 22:24:47 -07:00
Linux Build Service Account
cc0e91494c Merge "icnss: NULL terminate the fw build timestamp string" 2018-10-28 07:23:30 -07:00
Linux Build Service Account
86e17dc33a Merge "msm: mdss: Fix potential null pointer dereference" 2018-10-27 12:48:38 -07:00
Linux Build Service Account
edcc07ba51 Merge "drm/msm/sde: ignore scaler v2 data if not enabled" 2018-10-27 12:48:37 -07:00
Linux Build Service Account
e4a7383ace Merge "ARM: dts: msm: update dload type imem offset for MSM8998" 2018-10-26 22:43:01 -07:00
Linux Build Service Account
66e452d86e Merge "clk/msm: fix HDMI PHY registers as per latest programming guide" 2018-10-26 22:42:58 -07:00
Yuanyuan Liu
f6c8e3c802 icnss: NULL terminate the fw build timestamp string
If fw build timestamp passed by QMI is a non-NULL terminated string,
it might result in a out-of-bounds read in icnss_get_soc_info. Hence,
manually NULL terminate the string.

Change-Id: I252196cd12784d841b29303c42591efc59da64f1
CRs-Fixed: 2322317
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2018-10-26 16:52:18 -07:00
Linux Build Service Account
7f2f2979f9 Merge "msm:ipa:Prevent rt rule deletion if rt rule id is invalid" 2018-10-26 07:44:34 -07:00
Linux Build Service Account
5eee6c6d86 Merge "ion: remove unsafe function ion_handle_get_by_id()" 2018-10-26 07:44:32 -07:00
Linux Build Service Account
e3ef3fd986 Merge "drivers/misc: ignore minimum encryption level change for stream type 1" 2018-10-26 00:09:46 -07:00