John Stultz 760b3dffb0 qdl: Rework qdl_write to limit write sizes to out_maxpktsize
On a number of machines, qdl could cause crashes on the host
system it ran on, due to swiotlb exaustion.

This seems to be due to 1M buffers being used during the writes.

In order to avoid this, rework qdl_write to break up the writes
into out_maxpktsize chunks.

With this patch, I no longer see host crashes when running qdl

Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Amit Pundir <amit.pundir@linaro.org>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: dragonboard-aosp@lists.96boards.org
Tested-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
[bjorn: Dropped change of max_payload_size]
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2019-05-03 12:18:25 -07:00
2016-07-08 11:27:19 -07:00
2017-08-29 13:56:05 +02:00
2017-10-04 19:33:09 -07:00
2019-02-27 09:10:12 -08:00
2019-02-27 15:06:12 -08:00

Qualcomm Download
=================

This tool communicates with USB devices of id 05c6:9008 to upload a flash
loader and use this to flash images.

Usage:
  qdl <prog.mbn> [<program> <patch> ...]

Building
========
In order to build the project you need libxml2 headers and libraries, found in
e.g. the libxml2-dev package.

With this installed run:
  make
Description
No description provided
Readme BSD-3-Clause 928 KiB
Languages
C 96.8%
Makefile 1.7%
Shell 1.5%