Skip to content

Commit

Permalink
[SCSI] ps3rom: sector size should be 512 bytes
Browse files Browse the repository at this point in the history
It should be desired that 64 KiB is available for ATAPI transferrring.
(Historically) in SCSI/block layer sector size is defined as 512 during
sector-byte calculation.
Originally in ps3rom.c CD_FRAMESIZE (2048) was used, which limited
/sys/block/sr0/queue/max_sectors_kb to 16 KiB (32 sectors).

Signed-off-by: Aegis Lin <aegislin@gmail.com>
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
  • Loading branch information
Aegis Lin authored and James Bottomley committed Feb 8, 2008
1 parent 0bb67f1 commit 51883b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/ps3rom.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

#define BOUNCE_SIZE (64*1024)

#define PS3ROM_MAX_SECTORS (BOUNCE_SIZE / CD_FRAMESIZE)
#define PS3ROM_MAX_SECTORS (BOUNCE_SIZE >> 9)


struct ps3rom_private {
Expand Down

0 comments on commit 51883b5

Please sign in to comment.