Yeap your eMMC is dead…
We probably have two bugs… the PM which we are fixing in mainline… and maybe a quirk: quirks.h « core « mmc « drivers - kernel/git/torvalds/linux.git - Linux kernel source tree
Prior Kingston devices had broken trim, i would not be surprised if MK2704 also had broken trim. Might be best to just disable it… really wish i knew what developers where looking for when they commit those.
As I have devices with: Q2J54A (BeagleBone Green) and M62704 (BeagleBone Green), both get the quirk…
Edit so based on: mmc: core: disable TRIM on Kingston EMMC04G-M627 - kernel/git/torvalds/linux.git - Linux kernel source tree
Trying to use fstrim seems to also throw errors like:
[93010.835112] I/O error, dev loop0, sector 16902 op 0x3:(DISCARD) flags 0x800 phys_seg 1 prio class 2
Disabling TRIM makes the error go away, so lets add a quirk for this eMMC
to disable TRIM.
so i guess we try 'fstrim` on it…
debian@44-am335x-bbb:~$ dmesg | grep MK27
[ 5.366743] mmcblk1: mmc1:0001 MK2704 3.53 GiB
[ 5.387059] mmcblk1boot0: mmc1:0001 MK2704 2.00 MiB
[ 5.397639] mmcblk1boot1: mmc1:0001 MK2704 2.00 MiB
[ 5.410098] mmcblk1rpmb: mmc1:0001 MK2704 512 KiB, chardev (241:0)
debian@44-am335x-bbb:~$ sudo fstrim / -v
/: 0 B (0 bytes) trimmed
Regards,