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: Panic if we get a drive with unaligned logical sectors.

If identify device word 209 is valid, check to see if the drive report
on the alignment of LBA0 with respect to physical sector 0.

If it's not aligned, bail immediately. Supporting this properly
won't be hard, but it's not someting we want to do unless necessary.

Change-Id: I3d5bb8fad9e32fff43dfb6454393728d7c01b93b

+9
+9
firmware/drivers/ata-common.c
··· 220 220 221 221 DEBUGF("ata: %d logical sectors per phys sector", phys_sector_mult); 222 222 223 + if((identify_info[209] & 0xc000) == 0x4000) { /* B14 */ 224 + if (identify_info[209] & 0x3fff) { 225 + panicf("ata: Unaligned logical/physical sector mapping"); 226 + // XXX we can probably handle this by adding a fixed offset 227 + // to all operations and subtracting this from the reported 228 + // size. But we don't do tihs until we find a real-world need. 229 + } 230 + } 231 + 223 232 if (phys_sector_mult > 1) 224 233 { 225 234 /* Check if drive really needs emulation - if we can access