mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch 1/6] s390, block: disable fixed buffer mode when DMA support is disabled
@ 2011-05-24 23:53 David Rientjes
  2011-05-24 23:53 ` [patch 2/6] scsi: warn and avoid creating dma caches if " David Rientjes
                   ` (5 more replies)
  0 siblings, 6 replies; 16+ messages in thread
From: David Rientjes @ 2011-05-24 23:53 UTC (permalink / raw)
  To: Martin Schwidefsky, Heiko Carstens
  Cc: Pekka Enberg, Christoph Lameter, linux-s390, linux-kernel

dasd=fixedbuffers must create a SLAB_CACHE_DMA cache, which is not
possible if CONFIG_ZONE_DMA is disabled (a supported configuration
without 64-bit support).

If passed, emit a warning and disable fixed buffer mode.

Signed-off-by: David Rientjes <rientjes@google.com>
---
 drivers/s390/block/dasd_devmap.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/s390/block/dasd_devmap.c b/drivers/s390/block/dasd_devmap.c
--- a/drivers/s390/block/dasd_devmap.c
+++ b/drivers/s390/block/dasd_devmap.c
@@ -282,6 +282,11 @@ dasd_parse_keyword( char *parsestring ) {
 		return residual_str;
 	}
 	if (strncmp("fixedbuffers", parsestring, length) == 0) {
+#ifndef CONFIG_ZONE_DMA
+		DBF_EVENT(DBF_WARNING, "%s", "DMA support disabled, "
+					"fixed buffer mode disabled.");
+		return residual_str;
+#endif
 		if (dasd_page_cache)
 			return residual_str;
 		dasd_page_cache =

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2011-05-25 23:41 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-24 23:53 [patch 1/6] s390, block: disable fixed buffer mode when DMA support is disabled David Rientjes
2011-05-24 23:53 ` [patch 2/6] scsi: warn and avoid creating dma caches if " David Rientjes
2011-05-24 23:53 ` [patch 3/6] scsi, fnic: require DMA support for Cisco FNIC David Rientjes
2011-05-25  8:04   ` Christoph Hellwig
2011-05-25 19:28     ` Roland Dreier
2011-05-25 23:35       ` Abhijeet Joglekar (abjoglek)
2011-05-25 23:40         ` David Rientjes
2011-05-24 23:53 ` [patch 4/6] slub: avoid compiling SLAB_CACHE_DMA without DMA support David Rientjes
2011-05-25 14:58   ` Christoph Lameter
2011-05-25 23:34     ` David Rientjes
2011-05-24 23:53 ` [patch 5/6] slab: " David Rientjes
2011-05-24 23:53 ` [patch 6/6] slab: only define SLAB_CACHE_DMA for CONFIG_ZONE_DMA David Rientjes
2011-05-25 10:49   ` Heiko Carstens
2011-05-25 15:02     ` Christoph Lameter
2011-05-25 23:37     ` David Rientjes
2011-05-25  7:24 ` [patch 1/6] s390, block: disable fixed buffer mode when DMA support is disabled Heiko Carstens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®