Commit graph

36238 commits

Author SHA1 Message Date
Rajkumar Ayyasamy
ebb903de26 ipq: tzt: add scm call return value check
Change-Id: Ic7736482a77cbf2eb08e7348ce955a5d0c1cbe37
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2020-03-10 16:17:56 +05:30
Linux Build Service Account
66efbd09dd Merge "driver: mtd: qpic: Enable support for page_scope & multi_page read command." 2020-03-09 20:39:03 -07:00
Linux Build Service Account
81e6528984 Merge "ipq5018: update crash dump structure" 2020-03-06 17:41:20 -08:00
Md Sadre Alam
599391c231 driver: mtd: qpic: Enable support for page_scope & multi_page read command.
This change will enable page_scope_read & multipage_read support for
QPIC.
QPIC version 2.0 onwards , QPIC support page_scope_read &
multipage_read command to enhance the read performance.
In normal page read command SW is needed to write EXEC_CMD register
for each Code word and collect any Status related to that CW before
issueing EXEC_CMD for next CW.

For page_scope read command SW is required to issue EXEC_CMD
only once for a page. Controller HW takes care of Codeword specific
details and automatically returns status associated with each CW to
BAM pipe, dedicated for status deposition.

enabling all bits in NAND_AUTO_STATUS_EN will require 4 data
descriptors of 24 bytes each. This will publish all NANDc status
registers in system memory.

For multipage_read command SW is required to issue EXEC_CMD only
once for all the pages which configured in QPIC_NAND_MULTI_PAGE_CMD
register.
All interrupts will be operational and valid in these modes.

To check the status for each codeword, it is not possible to access
the status registers while the read command is operational in
page_scope & multi_page read  modes. Hence, another feature to publish the
status data (for all NAND status registers) by programming the
NAND_AUTO_STATUS_EN register.

For serial NAND:
Read command for page_scope_read = 0x78800032 (QPIC_NAND_FLASH_CMD)
Read command for multi_page_read = 0x78400032 (QPIC_NAND_FLASH_CMD)

For Parallel NAND:
Read command for page_scope_read = 0x00800032 (QPIC_NAND_FLASH_CMD)
Read command for multi_page_read = 0x00400032 (QPIC_NAND_FLASH_CMD)

Now we fixed maximum data bytes read in one go 128KiB(2KiB page),
256KiB (4KiB page), 512 KiB (8kiB page), because from upper layer
we are getting more than 128KiB data bytes request in one go. if so
just changing the value of "MAX_MULTI_PAGE" macro will increase the
maximum data bytes in one go.

Change-Id: I48eea51ff8f5f79f3490d8a538c295ecc3eeee19
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2020-03-06 15:52:15 +05:30
Sham Muthayyan
44045b8654 mii: Fix the device name command
Change-Id: Iee9e96eddeaeddb3dd7463647e62325a50a31a1a
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2020-03-05 15:46:34 +05:30
Vandhiadevan Karunamoorthy
3014722d36 ipq5018: update crash dump structure
Change-Id: Id43d61e412f7d5ecd1085f2ae77f8b4cf6c5890a
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-03-04 20:17:31 +05:30
Gokul Sriram Palanisamy
72a5fde26f arm: dts: Added device-tree for CP01-C3 RDP
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: Ic55b259ee775a28d0714abf03c5cb5c90a1e024f
2020-02-27 21:45:48 +05:30
Linux Build Service Account
d105da6e79 Merge "ipq5018: Enable Env overwrite support" 2020-02-23 21:18:31 -08:00
Linux Build Service Account
e2990b80c5 Merge changes Ifcb63e50,I99bd6ab6,I06720e77,Ifcb632b0
* changes:
  ipq5018: Add flash command support
  ipq5018: load appropriate kernel dts from single image.
  ipq5018: Enable DEVICE_NULLDEV
  ipq5018: Add Pcie support
2020-02-23 21:18:30 -08:00
Linux Build Service Account
41b9b255fd Merge "Flash: ipq5018: Add SPI-NAND flash support" 2020-02-23 21:18:23 -08:00
Vandhiadevan Karunamoorthy
60fa9fec7c ipq5018: Enable Env overwrite support
Change-Id: I4561bd97abae2ef502f300cb8c4bae1e25aa2d9d
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-02-19 22:58:00 -08:00
Vandhiadevan Karunamoorthy
6d4bd587dd ipq5018: Add flash command support
Change-Id: Ifcb63e50d17d3fcc676845123dac02ee205f250a
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-02-19 22:57:50 -08:00
Vandhiadevan Karunamoorthy
a2edc11fd5 ipq5018: load appropriate kernel dts from single image.
Change-Id: I99bd6ab697b3951ed6c68135b13a223e125efc82
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-02-19 22:57:28 -08:00
Vandhiadevan Karunamoorthy
5fae168254 ipq5018: Enable DEVICE_NULLDEV
This change will redirect the unwanted console prints

Change-Id: I06720e774c280774abbb86b8e8cbcf365bbe8570
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-02-19 22:57:17 -08:00
Vandhiadevan Karunamoorthy
3f50b516ff ipq5018: Add Pcie support
Change-Id: Ifcb632b0cda947002e0538778484bb866f8227f8
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-02-19 22:57:03 -08:00
Linux Build Service Account
bacdce0556 Merge "pack.py: Updated bootargs for IPQ40xx" 2020-02-19 12:42:22 -08:00
Vandhiadevan Karunamoorthy
bbbdb8e5ab Flash: ipq5018: Add SPI-NAND flash support
Change-Id: I45d73fdd7e7315f110e4691a7dc9fe6698c51c37
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-02-19 03:32:03 -08:00
Gokul Sriram Palanisamy
d99fcb75f9 pack.py: Updated bootargs for IPQ40xx
Bootargs with rootwait wasn't effective.
Added rootdelay to fix rootmount issue.

Change-Id: I4dbc94902dce49f916846a26beadef8663e02822
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2020-02-18 11:48:24 +05:30
Linux Build Service Account
7e457276d2 Merge "tools: pack: remove nand-audio flash type" 2020-02-17 21:39:55 -08:00
Rajkumar Ayyasamy
ddedefb9bb tools: pack: remove nand-audio flash type
Change-Id: I3bfd64c5061307de6a9e2014acb7c10cfedfd426
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2020-02-17 01:40:31 -08:00
Sham Muthayyan
6cfb727942 ipq807x: Fix the crashdump filename print
Change-Id: Icd169363a394af97df9636466231616c8deaf2b2
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2020-02-16 22:04:59 -08:00
Linux Build Service Account
8cb9f37252 Merge "ipq: Moved board params structure to qca common" 2020-02-14 14:42:47 -08:00
Linux Build Service Account
3cc1ae92ed Merge "nand: ipq807x: Removed nand_gpio entries from dts" 2020-02-14 14:42:47 -08:00
Linux Build Service Account
bb5bf5074d Merge "ipq6018: fdt_fixup: Update the fdt fixup for atf case" 2020-02-14 11:55:53 -08:00
Linux Build Service Account
78b2005d27 Merge "CVE-2019-13106: ext4: fix out-of-bounds memset" 2020-02-12 21:07:47 -08:00
Balaji Prakash J
4a3b94cc98 ipq6018: fdt_fixup: Update the fdt fixup for atf case
Since, rproc upstream driver is enabled in kernel,
update the fdt fixup to patch the nosecure property
needed by the current rproc driver to skip the secure
rproc up and down. Also, add "qca,wcss-aon-reset-seq"
property needed for ipq6018 specific wcss rproc sequence.

Change-Id: Ifab40febe98e9246f14e683301036172f9c64d80
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
2020-02-11 11:04:27 +05:30
Gokul Sriram Palanisamy
7f77903353 ipq: Moved board params structure to qca common
Change-Id: I58ac138f4585a64bf1a89302ec212afe133c2101
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2020-02-10 11:42:21 +05:30
Gokul Sriram Palanisamy
b8b1da8bfd nand: ipq807x: Removed nand_gpio entries from dts
Since nand configuration is fixed across all HK boards,
removing the nand gpio_entries from device tree and
adding static board param entries. This helps reduce
image footprint and opens up space for new board support.

Change-Id: I89bc11165a6cdfcdb3b4650a73cbeea17895f991
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2020-02-07 16:54:10 +05:30
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