Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3387135imu; Mon, 14 Jan 2019 02:01:01 -0800 (PST) X-Google-Smtp-Source: ALg8bN6vyBtPG/3s0m11R7sJl7rK4L1qHAD8c/E/JyGeoTCKieAebo4X26VoI4HEBvCG6j1UgoUj X-Received: by 2002:a62:2547:: with SMTP id l68mr24232453pfl.131.1547460060989; Mon, 14 Jan 2019 02:01:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547460060; cv=none; d=google.com; s=arc-20160816; b=zlJh6UNv1ExOLH/wreKwAorpAoftUe2GIe0DGzMf/jLD2lJ76EhV13OqkGkMUhj0wy 073VGrXciVCApNSPggrJ9K823VVnCxAbJNXc78lK+QXM2t45KzKXvJoBqhEeipcUTwRR dJIA4FcKUC6zaXrFhAwIkBBR9XAprVdVfpjJbBFNOo+3g1ZCUMAvYVb8jQeu80ppihpJ 9hPt4L3x2DcVfJIxUHGaxR7v38cW8bF2PhFhXQrBMo375EKWwvpoy22LZJDcYvbCmwDN /6EwLaK5u41n8y7Zh+9bDkokCgeV9BFcZDXVL6ZeE9a6aUGegAcLRC3/obvQp6/dC4ii A3IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+xou8RMEFy2bcsKgoqdXLDip0asPY/iH85oHbiBXhd0=; b=oo/E7lZyo0+ojCjztrHv8H1z7049/6LAsAa9RKFsN78Z5ryR7Cj+psixm88fDXbPi4 55x3YOOEvAoaCzNROHN4KwP0GrcDC9kN76wnkKbaOhHim2+CjOfkTsJ2bJVJBLebHNVo /QfjIfQ72kYFNvQpmeGUTYzTSK8ZxrF/iBHfO1OQHxQI6jar6En57xv3sWE7StLOmHaQ /XvaDc8kSCHsy5JskJQvDnpjaz+plIjyMEkyoiqRZb5N2SI8icKjIpeh9KaK4Ril4Q2Y vg2NLr8x8xLyX/j7GpARbjXkVvdK8fKRkIFN5zeBPjoLl0vHQMwtO/0Ahyc8XUc1hHwY kv8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=oZjOdfDb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e67si65720075pfa.15.2019.01.14.02.00.44; Mon, 14 Jan 2019 02:01:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=oZjOdfDb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726948AbfANJ7E (ORCPT + 99 others); Mon, 14 Jan 2019 04:59:04 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:32802 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726934AbfANJ7B (ORCPT ); Mon, 14 Jan 2019 04:59:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+xou8RMEFy2bcsKgoqdXLDip0asPY/iH85oHbiBXhd0=; b=oZjOdfDbcaXIe01UZRZTHtVAgG Uzx2SyiLhyKpTtg9OWt/1Oz6lTNzvF6VYKN0J3AaGkjd8dz8Xi1Yy33zcDG2EH7E8LTMtF5dbYvfL zmjfJUirIO/B7ZEqpKAJoEdSHdG4t+mdiZlSf+xuXTkvDCWVsa9fJSXz64F1GbnE90cR/M/bSx0uh 6Dh/jAu14XAFSohCZpYaun+GogH7hdXTYnVy36iNoHz2ocxJwu//HpjI35Hrh9m/REiZHqlWKI+Vg 4BUwT+YTRvACmsMxmrYW0HC6hWd1nwicftXZzkAyFnLaL0ZeyqroxSvT8bmAehAFZxPlZPkvEU3Vc oxbXoUKg==; Received: from 089144213167.atnat0022.highway.a1.net ([89.144.213.167] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1giz0y-0002PT-RF; Mon, 14 Jan 2019 09:58:41 +0000 From: Christoph Hellwig To: Ulf Hansson Cc: Russell King , Nicolas Pitre , Aaro Koskinen , Ben Dooks , linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/11] mmc: core: don't use block layer bounce buffers Date: Mon, 14 Jan 2019 10:58:03 +0100 Message-Id: <20190114095804.27978-11-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190114095804.27978-1-hch@lst.de> References: <20190114095804.27978-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All MMC and SD host drivers are highmem safe now, and bounce buffering for addressing limitations is handled in the DMA layer now. Signed-off-by: Christoph Hellwig --- drivers/mmc/core/queue.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/mmc/core/queue.c b/drivers/mmc/core/queue.c index 35cc138b096d..26a18b851397 100644 --- a/drivers/mmc/core/queue.c +++ b/drivers/mmc/core/queue.c @@ -354,17 +354,12 @@ static const struct blk_mq_ops mmc_mq_ops = { static void mmc_setup_queue(struct mmc_queue *mq, struct mmc_card *card) { struct mmc_host *host = card->host; - u64 limit = BLK_BOUNCE_HIGH; - - if (mmc_dev(host)->dma_mask && *mmc_dev(host)->dma_mask) - limit = (u64)dma_max_pfn(mmc_dev(host)) << PAGE_SHIFT; blk_queue_flag_set(QUEUE_FLAG_NONROT, mq->queue); blk_queue_flag_clear(QUEUE_FLAG_ADD_RANDOM, mq->queue); if (mmc_can_erase(card)) mmc_queue_setup_discard(mq->queue, card); - blk_queue_bounce_limit(mq->queue, limit); blk_queue_max_hw_sectors(mq->queue, min(host->max_blk_count, host->max_req_size / 512)); blk_queue_max_segments(mq->queue, host->max_segs); -- 2.20.1