Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 979dca38 authored by Randy Dunlap's avatar Randy Dunlap Committed by James Bottomley
Browse files

[SCSI] imm: no need for unchecked_isa_dma



Relax the lowmem bounce buffer requirement for imm so that any
low memory page will do -- they don't need to be below the
ISA 16 MB limit, just need to be mapped in low memory.

Signed-off-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 818bf493
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -1119,6 +1119,10 @@ static int device_check(imm_struct *dev)
	return -ENODEV;
	return -ENODEV;
}
}


/*
 * imm cannot deal with highmem, so this causes all IO pages for this host
 * to reside in low memory (hence mapped)
 */
static int imm_adjust_queue(struct scsi_device *device)
static int imm_adjust_queue(struct scsi_device *device)
{
{
	blk_queue_bounce_limit(device->request_queue, BLK_BOUNCE_HIGH);
	blk_queue_bounce_limit(device->request_queue, BLK_BOUNCE_HIGH);
@@ -1141,10 +1145,6 @@ static struct scsi_host_template imm_template = {
	.use_clustering		= ENABLE_CLUSTERING,
	.use_clustering		= ENABLE_CLUSTERING,
	.can_queue		= 1,
	.can_queue		= 1,
	.slave_alloc		= imm_adjust_queue,
	.slave_alloc		= imm_adjust_queue,
	.unchecked_isa_dma	= 1, /* imm cannot deal with highmem, so
				      * this is an easy trick to ensure
				      * all io pages for this host reside
				      * in low memory */
};
};


/***************************************************************************
/***************************************************************************