[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110525072407.GB2498@osiris.boeblingen.de.ibm.com>
Date: Wed, 25 May 2011 09:24:07 +0200
From: Heiko Carstens <heiko.carstens@...ibm.com>
To: David Rientjes <rientjes@...gle.com>
Cc: Martin Schwidefsky <schwidefsky@...ibm.com>,
Pekka Enberg <penberg@...nel.org>,
Christoph Lameter <cl@...ux.com>, linux-s390@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [patch 1/6] s390, block: disable fixed buffer mode when DMA
support is disabled
On Tue, May 24, 2011 at 04:53:45PM -0700, David Rientjes wrote:
> 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@...gle.com>
What's the reasoning here?
On s390 for !CONFIG_64BIT ZONE_DMA would be equal to ZONE_NORMAL,
that's why we only have ZONE_NORMAL. So I don't see that something
wouldn't work...
> ---
> 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 =
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists