mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 17:48:58 +00:00
21549dbf7b
Update patch set for new release and add required kernel option
CONFIG_ZRAM_TRACK_ENTRY_ACTIME to generic config
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.66
Manually rebased:
bcm27xx/patches-6.6/950-0092-MMC-added-alternative-MMC-driver.patch
bcm53xx/patches-6.6/180-usb-xhci-add-support-for-performing-fake-doorbell.patch
starfive/patches-6.6/1000-serial-8250_dw-Add-starfive-jh7100-hsuart-compatible.patch
Removed upstreamed:
bcm27xx/patches-6.6/950-0029-vc4_hdmi-Avoid-log-spam-for-audio-start-failure.patch[1]
All other patches automatically rebased.
1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.66&id=e0388a95736abd1f5f5a94221dd1ac24eacbd4d7
Build system: x86/64
Build-tested: bcm27xx/bcm2712, flogic/glinet_gl-mt6000, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64
Run-tested: bcm27xx/bcm2712, flogic/glinet_gl-mt6000, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64
Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/17271
(cherry picked from commit 28f534d953
)
Link: https://github.com/openwrt/openwrt/pull/17302
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
48 lines
1.7 KiB
Diff
48 lines
1.7 KiB
Diff
From c9b61d1d83073761871c7acba332216494e6f0bb Mon Sep 17 00:00:00 2001
|
|
From: Jonathan Bell <jonathan@raspberrypi.com>
|
|
Date: Mon, 8 Apr 2024 16:09:52 +0100
|
|
Subject: [PATCH 1260/1350] drivers: mmc: disable write-caching on Samsung 2023
|
|
model year SD cards
|
|
|
|
Samsung EVO Plus, Pro Plus and Evo Ultimate cards of this era appear to
|
|
have a broken cache-flush implementation when operating in CQ mode.
|
|
|
|
Unfortunately the cards seem to use a separate CID name string for every
|
|
variant and capacity, so nobble the cache feature for this MANFID, OEMID
|
|
and year. Turning this off seems to have negligible impact on
|
|
random-write throughput in non-CQ mode.
|
|
|
|
Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
|
|
---
|
|
drivers/mmc/core/card.h | 1 +
|
|
drivers/mmc/core/quirks.h | 8 ++++++++
|
|
2 files changed, 9 insertions(+)
|
|
|
|
--- a/drivers/mmc/core/card.h
|
|
+++ b/drivers/mmc/core/card.h
|
|
@@ -85,6 +85,7 @@ struct mmc_fixup {
|
|
#define CID_MANFID_GIGASTONE 0x12
|
|
#define CID_MANFID_MICRON 0x13
|
|
#define CID_MANFID_SAMSUNG 0x15
|
|
+#define CID_MANFID_SAMSUNG_SD 0x1b
|
|
#define CID_MANFID_APACER 0x27
|
|
#define CID_MANFID_KINGSTON 0x70
|
|
#define CID_MANFID_HYNIX 0x90
|
|
--- a/drivers/mmc/core/quirks.h
|
|
+++ b/drivers/mmc/core/quirks.h
|
|
@@ -34,6 +34,14 @@ static const struct mmc_fixup __maybe_un
|
|
MMC_QUIRK_BROKEN_SD_CACHE | MMC_QUIRK_BROKEN_SD_POWEROFF_NOTIFY,
|
|
EXT_CSD_REV_ANY),
|
|
|
|
+ /*
|
|
+ * Samsung Pro Plus/EVO Plus/Pro Ultimate SD cards (2023) claim to cache
|
|
+ * flush OK, but become unresponsive afterwards.
|
|
+ */
|
|
+ _FIXUP_EXT(CID_NAME_ANY, CID_MANFID_SAMSUNG_SD, 0x534d, 2023, CID_MONTH_ANY,
|
|
+ 0, -1ull, SDIO_ANY_ID, SDIO_ANY_ID, add_quirk_sd,
|
|
+ MMC_QUIRK_BROKEN_SD_CACHE, EXT_CSD_REV_ANY),
|
|
+
|
|
END_FIXUP
|
|
};
|
|
|