Commit graph

36211 commits

Author SHA1 Message Date
Linux Build Service Account
78b2005d27 Merge "CVE-2019-13106: ext4: fix out-of-bounds memset" 2020-02-12 21:07:47 -08:00
Linux Build Service Account
1ff6632005 Merge "ipq: Added validations for "dump_compressed" env variable" 2020-02-05 23:35:36 -08:00
Karthick Shanmugham
71dd01bd18 ipq: Added validations for "dump_compressed" env variable
Validations added for dump_compressed environment variable

Change-Id: Ie596103f4c8ff31a0ca25d0c23166b8bac37c75a
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
2020-01-31 11:30:30 +05:30
Linux Build Service Account
82f0ffe01b Merge "dts: ipq6018: remove model and compatible strings" 2020-01-30 20:39:21 -08:00
Linux Build Service Account
c571db2085 Merge "ipq6018: fix rootfs authentication" 2020-01-30 20:39:14 -08:00
Kathiravan T
895a31bb8d dts: ipq6018: remove model and compatible strings
model and compatible will be useful when CONFIG_DISPLAY_BOARDINFO is
enabled. Currently it is not enabled for ipq6018. So removing the
corresponding entries.

Change-Id: Ia05059cab91d25283e291564d606eaf81e94781f
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2020-01-29 15:35:22 +05:30
Kathiravan T
43eb86c0bc dts: ipq6018: don't build the emulation dts
Emulation DTS is no more required. So just keep it for reference, don't build
it. This helps to free up some space.

Change-Id: I93a462fd720acbe27792fa995317bbb44ca82f9b
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2020-01-29 15:29:40 +05:30
Linux Build Service Account
367c88379a Merge "board: ipq5018: Enable gcc cbcr clk for qpic." 2020-01-28 09:39:16 -08:00
Linux Build Service Account
ef609e2ab5 Merge "ipq807x: Dont use PCIe for CPE boards(HK01.c5)" 2020-01-28 09:39:15 -08:00
Linux Build Service Account
8dca615456 Merge "Minidump:U-Boot Optimizations for Minidump Feature" 2020-01-28 00:36:44 -08:00
Rajkumar Ayyasamy
81926317cd ipq6018: fix rootfs authentication
Copy rootfs header and then append the rootfs image
to it for authentication.

Change-Id: I3e8184fa324e779eb5aa226f65df8e03401d027a
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2020-01-28 13:19:20 +05:30
Nitheesh Sekar
ada240339d ipq807x: Dont use PCIe for CPE boards(HK01.c5)
Change-Id: I96b0e5991bae17830d5bc8523b789fc592450b7f
Signed-off-by: Nitheesh Sekar <nsekar@codeaurora.org>
2020-01-24 06:10:10 -08:00
Vandhiadevan Karunamoorthy
db70e98a74 board: ipq5018: Enable gcc cbcr clk for qpic.
Change-Id: Id30214131b0ef5476437597aba70d81e48fe7c8d
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2020-01-23 00:38:21 -08:00
Vandhiadevan Karunamoorthy
0b98a31e25 ipq5018: Enable USB support
Change-Id: I8ccc9d85a9fe5e650843a22bfe438788d031a854
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-01-23 13:10:39 +05:30
Gitanjali Krishna
2bc2a3a8c4 Minidump:U-Boot Optimizations for Minidump Feature
This change adds support in u-boot to handle
dumping of DEBUGFS TLV information and MMU Metadata
file.

Change-Id: Iebf67b932ba90b5081e6903c5fe44ed3105df798
Signed-off-by: Gitanjali Krishna <gitanjal@codeaurora.org>
2020-01-22 12:11:00 -08:00
Sham Muthayyan
a039256740 ipq807x: Fix Noc error message
Change-Id: I2669d8180c11192ecec4a706c175487810eeaf1a
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2020-01-21 02:48:19 -08:00
Paul Emge
6f8e96927c CVE-2019-13106: ext4: fix out-of-bounds memset
In ext4fs_read_file in ext4fs.c, a memset can overwrite the bounds of
the destination memory region. This patch adds a check to disallow
this.

Change-Id: I5138ca873009117194407d82af004a637317c1d0
Signed-off-by: Paul Emge <paulemge@forallsecure.com>
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
2020-01-14 20:46:06 +05:30
Paul Emge
e621657025 CVE-2019-13104: ext4: check for underflow in ext4fs_read_file
In ext4fs_read_file, it is possible for a broken/malicious file
system to cause a memcpy of a negative number of bytes, which
overflows all memory. This patch fixes the issue by checking for
a negative length.

Change-Id: Ia9abdb744dfff20aa1a538d38f335284e30a307b
Signed-off-by: Paul Emge <paulemge@forallsecure.com>
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
2020-01-14 20:36:12 +05:30
Paul Emge
043f757bb9 CVE-2019-13103: disk: stop infinite recursion in DOS Partitions
part_get_info_extended and print_partition_extended can recurse infinitely
while parsing a self-referential filesystem or one with a silly number of
extended partitions. This patch adds a limit to the number of recursive
partitions.

Change-Id: Ibf1449684580a313869ce9961077c46a12a42d8c
Signed-off-by: Paul Emge <paulemge@forallsecure.com>
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
2020-01-14 20:35:55 +05:30
Rajkumar Ayyasamy
4059457fec pack: ipq6018: add support for lk packing
Change-Id: I36b15d47e7f5b8f0426398dd51c188ac2e4bfece
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2020-01-14 11:34:40 +05:30
Pavithra Palanisamy
d180270132 pack: ipq807x: Add support for (HK10 + QCN90xx) changes in single-image
This change involves:
1. pack the hk10 specific system-partition binaries into single-image
2. flash the MIBIB partition based on the machid
3. update the offsets and sizes in the partiton table based on the
   selected system-partiton image.

Note: HK10 changes applicable to nand-2k and norplusnand-2k only.

Change-Id: I513e4ffc379ca9a7862e61dab7901f32d5aa9fe6
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2020-01-11 00:01:25 -08:00
Linux Build Service Account
944a01b45d Merge "ipq5018: Enable Early and Late init" 2020-01-08 06:39:24 -08:00
Linux Build Service Account
27e1d77810 Merge "ipq5018: Enable GMAC support" 2020-01-08 06:39:23 -08:00
Kathiravan T
3a8f8f7b4b spi_nand: ipq40xx: enable support for Fidelix SPI NAND
Fidelix SPI NAND FM35X2GA has two planes namely plane 0 and plane 1.
This change adds the support to calculate the plane bit accordingly
and use the same for command formation.

Change-Id: I6fb4b652e1c897f248cb9ad8914f67be7a7365f3
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2020-01-06 21:09:01 -08:00
Vandhiadevan Karunamoorthy
593aa8a95a ipq5018: Enable Early and Late init
Change-Id: I102678796a578945a7e7f2ccd573413419c482c2
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-01-06 00:25:09 -08:00
Vandhiadevan Karunamoorthy
28f53ee94c ipq5018: Enable GMAC support
Change-Id: I5505d65292cf38aeda0602d9f8d1ad703d8efedb
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-01-06 00:24:58 -08:00
Vandhiadevan Karunamoorthy
1555916ab9 ipq5018: Enable Crash dump support
Change-Id: Ic7a30878e1e458422ce77d5edc6eae235f7cddb6
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-01-06 00:24:38 -08:00
Vandhiadevan Karunamoorthy
f92636faf1 ipq5018: Enable I2C support
Change-Id: Ifd672462a78f48a51f7c0d4fc5fdfb08d9ae9d57
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-01-06 00:18:51 -08:00
Gitanjali Krishna
346d35a139 minidump: Change Metadata file name
Change Metadata file name for minidump
from MODULE_INFO.txt to MOD_INFO.txt to
avoid mismatch with T32 scripts

Change-Id: I4e56455ceaa7ba832b3882fc62a23a0b29244e83
Signed-off-by: Gitanjali Krishna <gitanjal@codeaurora.org>
2020-01-02 15:17:42 -08:00
Pavithra Palanisamy
b1b81b7267 ipq: crashdump: Adding delay for reset after usbdump
This change adds a time delay of 1 second before resetting the
SoC after USB crashdump collection, as some devices requires
spare time to flush the contents to disk.

Change-Id: I407ca5a2eb55762edd5fdb011b8464285019b18c
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-12-30 16:41:50 +05:30
Linux Build Service Account
a4bd0e3857 Merge "ipq40xx: removing redundant initialization in dts" 2019-12-26 18:08:36 -08:00
Linux Build Service Account
ed6d7b34c5 Merge "ipq5018 : Enable SCM calls" 2019-12-26 18:08:36 -08:00
Linux Build Service Account
298751b5f4 Merge "ipq6018: Move spi_clock_init function inside CONFIG_QCA_SPI" 2019-12-26 18:08:35 -08:00
Linux Build Service Account
c126ce2855 Merge "ipq5018: Enable PSCI for reset" 2019-12-25 18:31:10 -08:00
Linux Build Service Account
5d3735cfac Merge "ipq5018: Enable support for serial nand in qpic" 2019-12-25 18:31:09 -08:00
Vandhiadevan Karunamoorthy
2815decb83 ipq5018 : Enable SCM calls
Change-Id: I9b2e580e3d9536e8d27383eac0a6cec045198735
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2019-12-25 18:19:55 -08:00
Gerrit - the friendly Code Review server
9963d4ff55 Merge changes 2019-12-24 15:40:06 -08:00
Linux Build Service Account
0adb4367d4 Merge "ipq6018: Add support to enable crashdump compression" 2019-12-24 11:35:53 -08:00
Antony Arun T
7eae44f0e8 ipq40xx: removing redundant initialization in dts
removing the redundant initialization to reduce the size of uboot

Change-Id: If8e97be523e83444a166cee94baa8728fcd61675
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-12-24 02:35:51 -08:00
Selvam Sathappan Periakaruppan
d7d23e8d8e ipq6018: Move spi_clock_init function inside CONFIG_QCA_SPI
This change is necessary to fix the werror we get during
compilation after disabling SPI Flash.

Change-Id: Ica45e5d6d3cee1a67841f029322a84b6034d2195
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2019-12-24 00:12:08 +05:30
Md Sadre Alam
2c13362d84 ipq5018: Enable support for serial nand in qpic
This change will add support for serial nand.

QPIC-2.1.1 supports parallel nand as well as serial nand.

QPIC will operate either in parallel configuration or
serial nand. Both can't work together.

This change will support initially four serial nand parts.

MT29F1G01ABBFDWB-IT (Micron-0x2C,0x15, 2K + 128)

GD5F1GQ4RE9IG (Giga Device-0xC8,0xC1, 2K + 128)

GD5F2GQ5REYIH (Giga Device-0xC8,0x22, 2K + 64)

GD5F1GQ4RE9IH (Giga Device-0xC8, 0xC9, 2K + 64)

Device Internal ECC is disabled for all three devices. This change will
enabele QPIC ECC engine.

For MT29F1G01ABBFDWB-IT 4-bit ECC as well 8-bit ECC will be supported.

For  GD5F1GQ4RE9IG 4-bit ECC as well 8-bit ECC will be supported.

For GD5F2GQ5REYIH only 4-bit ECC will be supported due to 64-bytes spare.

For GD5F1GQ4RE9IH only 4-bit ECC will be supported due to 64-bytes spare.

Change-Id: I3f38f9c76b7bb235bb335a481fbc42ae1bd00395
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2019-12-23 11:54:23 +05:30
Balaji Prakash J
847e43ef9c ipq: crashdump: Used table info instead of CONFIG_TZ_END_ADDR
Using CONFIG_TZ_END_ADDR for manipulating the size of EBICS_S2
dump size, restricts us to have CONFIG_TZ_END_ADDR as the
EBICS_S2 start address. Instead of using CONFIG_TZ_END_ADDR,
used the table info for calculating the size.

This way, for ipq6018, 256M boundary(0x50000000) can be used as
EBICS_S2 dump start address.

Change-Id: I2fc69774301aad599425af1e9b106fe8bc35dbf8
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
2019-12-22 21:29:10 -08:00
Pavithra Palanisamy
5e2038bc94 ipq807x: Add support for compressed crashdump collection.
This change will add support for collecting crashdump as
compressed gzip file, if specified through uboot environment
variable 'dump_compressed'

Change-Id: I0c3fb16bc07aaa0103e75a551477fce13f9e26da
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-12-23 09:26:21 +05:30
anusha
8b0e6488a2 ipq6018: Add SPI clock settings
Currently SPI clocks are enabled by default in SBL.
Added the clock settings in uboot to remove SBL dependency.

Change-Id: I78340daeb267edf4f4bb579fba991699d1bccb3d
Signed-off-by: anusha <anusharao@codeaurora.org>
2019-12-19 00:39:24 -08:00
anusha
a0f2464c86 ipq6018: Add I2C clock settings
Currently I2C clocks are enabled by default in SBL.
Added clk settings in uboot to remove SBL dependency.

Change-Id: I6bc2ecaa5a9262dd1f134e5b62fd2cf38c682ff3
Signed-off-by: anusha <anusharao@codeaurora.org>
2019-12-19 00:39:00 -08:00
anusha
a0c90b59d9 ipq6018: Update USB clock settings
Change-Id: Ia8fd80bc3aac1a1e8b3bc0ad68c9449d4fe44993
Signed-off-by: anusha <anusharao@codeaurora.org>
2019-12-19 00:38:32 -08:00
anusha
57288cb706 ipq6018: Update SDCC clock settings
Change-Id: I8f3d372f5ee33a4ba5b2b482ed380d1968df9378
Signed-off-by: anusha <anusharao@codeaurora.org>
2019-12-19 00:38:01 -08:00
anusha
d42a4a450c ipq6018: Update PCIE clock settings
Change-Id: I91ffa8dc1ae516edf52fc0e7592cbb2399a2e248
Signed-off-by: anusha <anusharao@codeaurora.org>
2019-12-19 00:35:56 -08:00
Vandhiadevan Karunamoorthy
1b56392bcb ipq5018: Enable PSCI for reset
Change-Id: Ide99470756e91f77c267398b2b491714ced38054
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2019-12-18 11:34:36 +05:30
Antony Arun T
687d46c783 ipq807x: fix nand flash size issue
This patch fixes the nand flash size access issue
found in flash with two logical units

Change-Id: Ifcbaa40709c4ac5d508b629fcc6cf7006f167628
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-12-12 17:26:53 +05:30