From: mglocker Date: Thu, 4 Jan 2024 21:02:30 +0000 (+0000) Subject: Set the interrupt aggregation counter down to 1, which fixes the read X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=baf9e3d1b05e7311e69e4eba80b4f2f990898edf;p=openbsd Set the interrupt aggregation counter down to 1, which fixes the read performance from ~20MB/s to ~220MB/s. --- diff --git a/sys/dev/ic/ufshcireg.h b/sys/dev/ic/ufshcireg.h index 18091ec4936..4893d1ea6bd 100644 --- a/sys/dev/ic/ufshcireg.h +++ b/sys/dev/ic/ufshcireg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ufshcireg.h,v 1.3 2023/08/15 08:27:30 miod Exp $ */ +/* $OpenBSD: ufshcireg.h,v 1.4 2024/01/04 21:02:30 mglocker Exp $ */ /* * Copyright (c) 2022 Marcus Glocker @@ -21,7 +21,7 @@ */ #define UFSHCI_UCD_PRDT_MAX_SEGS 64 #define UFSHCI_UCD_PRDT_MAX_XFER (UFSHCI_UCD_PRDT_MAX_SEGS * PAGE_SIZE) -#define UFSHCI_INTR_AGGR_COUNT 6 +#define UFSHCI_INTR_AGGR_COUNT 1 /* Max. allowed value = 31 */ #define UFSHCI_INTR_AGGR_TIMEOUT 0x64 /* 4ms */ #define UFSHCI_MAX_UNITS 32