summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Liu <victorliu@google.com>2022-10-14 14:08:40 -0700
committerVictor Liu <victorliu@google.com>2022-10-14 21:13:15 +0000
commitc2872d0980131d7b5671d405f6ff6a7d1e9d8fd6 (patch)
tree55bb420ba2e5f85789e6c361c033bc6eea420b1f
parent6c5737ec6689fb13465ff8d036f5a2677864c86b (diff)
downloaduwb-c2872d0980131d7b5671d405f6ff6a7d1e9d8fd6.tar.gz
update to qorvo qm35 5.0 release
uci-kernel-module @7ef436 libqmrom @f08a03 Bug: 235729422 Signed-off-by: Victor Liu <victorliu@google.com> Change-Id: If8bd96356b331cb21f0e7bb1b139539cf4d96a12
-rw-r--r--hsspi_test.c22
-rw-r--r--qm35-spi.c2
2 files changed, 22 insertions, 2 deletions
diff --git a/hsspi_test.c b/hsspi_test.c
index e21f6f5..598157e 100644
--- a/hsspi_test.c
+++ b/hsspi_test.c
@@ -111,9 +111,17 @@ void hsspi_test_set_inter_frame_ms(int ms)
void hsspi_test_received(struct hsspi_layer *layer,
struct hsspi_block *blk, int status)
{
- static uint64_t bytes, msgs, errors;
+ static uint64_t bytes, msgs, errors, bytes0, msgs0, errors0;
+ static time64_t last_perf_dump;
int error = check_rx(blk->data, blk->length) ? 1 : 0;
+ time64_t now;
errors += error;
+
+ if (!last_perf_dump) {
+ last_perf_dump = ktime_get_seconds();
+ }
+ now = ktime_get_seconds();
+
/* inject latencies between each message and between the check
* of ss-ready and the xfer.
* The test is expected to fail if
@@ -135,6 +143,18 @@ void hsspi_test_received(struct hsspi_layer *layer,
if (error || ((msgs % 100) == 0))
pr_info("hsspi test: bytes received %llu, msgs %llu, errors %llu\n",
bytes, msgs, errors);
+ if (now > last_perf_dump) {
+ uint64_t dbytes = bytes >= bytes0 ? bytes - bytes0 : ~0ULL - bytes0 + bytes;
+ uint64_t dmsgs = msgs >= msgs0 ? msgs - msgs0 : ~0ULL - msgs0 + msgs;
+ uint64_t derrors = errors >= errors0 ? errors - errors0 : ~0ULL - errors0 + errors;
+ pr_info("hsspi test perfs: %llu B/s, %llu msgs/s, %llu errors/s\n",
+ dbytes / (now - last_perf_dump), dmsgs / (now - last_perf_dump),
+ derrors / (now - last_perf_dump));
+ bytes0 = bytes;
+ msgs0 = msgs;
+ errors0 = errors;
+ last_perf_dump = now;
+ }
}
void hsspi_test_sent(struct hsspi_layer *layer,
diff --git a/qm35-spi.c b/qm35-spi.c
index f0fe060..97afd0c 100644
--- a/qm35-spi.c
+++ b/qm35-spi.c
@@ -68,7 +68,7 @@ static const struct of_device_id qm35_dt_ids[] = {
};
MODULE_DEVICE_TABLE(of, qm35_dt_ids);
-static bool flash_on_probe = true;
+static bool flash_on_probe = false;
module_param(flash_on_probe, bool, 0444);
MODULE_PARM_DESC(flash_on_probe, "Flash during the module probe");