Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

ATA: Add some more logf debugging

Change-Id: If1f919c43d02a974e478018750c60e3619db1505

+16
+2
firmware/drivers/ata.c
··· 414 414 } 415 415 } 416 416 417 + logf("ata XFER (%d) %d @ %llu", write, incount, start); 418 + 417 419 timeout = current_tick + READWRITE_TIMEOUT; 418 420 419 421 ATA_OUT8(ATA_SELECT, ata_device);
+14
firmware/target/arm/s5l8702/ipod6g/storage_ata-6g.c
··· 18 18 * KIND, either express or implied. 19 19 * 20 20 ****************************************************************************/ 21 + //#define LOGF_ENABLE 22 + 21 23 #include "config.h" 22 24 #include "storage.h" 23 25 #include "timer.h" ··· 32 34 #include "debug.h" 33 35 #include "panic.h" 34 36 #include "fs_defines.h" 37 + #include "logf.h" 35 38 36 39 #ifndef ATA_RETRIES 37 40 #define ATA_RETRIES 3 ··· 652 655 */ 653 656 static int ata_power_up(void) 654 657 { 658 + logf("ata POWERUP %ld", current_tick); 659 + 655 660 ata_set_active(); 656 661 ide_power_enable(true); 657 662 long spinup_start = current_tick; ··· 775 780 { 776 781 if (!ata_powered) 777 782 return; 783 + 784 + logf("ata POWERDOWN %ld", current_tick); 785 + 778 786 PCON(7) = 0; 779 787 PCON(8) = 0; 780 788 PCON(9) = 0; ··· 909 917 if (!ceata) 910 918 ATA_COMMAND = BIT(1); 911 919 920 + logf("ata XFER (%d) %d @ %llu", write, count, sector); 921 + 912 922 while (count) 913 923 { 914 924 uint32_t cnt = MIN(ata_lba48 ? 65536 : 256, count); ··· 1044 1054 { 1045 1055 uint8_t cmd; 1046 1056 1057 + logf("ata FLUSH CACHE %ld", current_tick); 1058 + 1047 1059 if (ceata) { 1048 1060 memset(ceata_taskfile, 0, 16); 1049 1061 ceata_taskfile[0xf] = CMD_FLUSH_CACHE_EXT; /* CE-ATA only supports EXT */ ··· 1089 1101 ata_flush_cache(); 1090 1102 1091 1103 if (ata_disk_can_sleep()) { 1104 + logf("ata SLEEP %ld", current_tick); 1105 + 1092 1106 if (ceata) { 1093 1107 memset(ceata_taskfile, 0, 16); 1094 1108 ceata_taskfile[0xf] = CMD_STANDBY_IMMEDIATE;