Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2788093imm; Thu, 18 Oct 2018 22:55:54 -0700 (PDT) X-Google-Smtp-Source: ACcGV615otgE1CtMdPaXmMa7hcDgiNkyCKWEKvvsqFVUt8HI6LC7nMt5N1CRx3Re9stvhpf1yM1J X-Received: by 2002:a62:569d:: with SMTP id h29-v6mr4683561pfj.42.1539928554435; Thu, 18 Oct 2018 22:55:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539928554; cv=none; d=google.com; s=arc-20160816; b=VgsbVgaweVzIe23mCxy/p2bCdk+oTRnA1M7IpWZsw/4WIoStt04DamifEKxtBIaSdV vc3H2yPKAvxB/EiLFQcMWGyNWG5WAGrsxI/TfFg95PWBP5iQFqJY71pEaqW9Yir+XbkS zRE7pqGJBtUFKF3It51zGi11alGtC6TJTs1jn4RjPInXEvrvuz9qcFWz3N1hYHGlSS/3 ZJ8VKAjDmoehharcL+FyUZb6lieswOy04C0+0qbld+Odkli5WNr9v6ZMfYnswljUgB1O BxU1NIvDDzDlfiOKpXyRCXkyhyBuTj6sys1T249IvFjx9Glmxddz6VbjePWo6cx4MlCf mtSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=YCzwiMiy7TxAPyCUYTbK/Hr+gJIDsvcji5P6FCF+2W8=; b=C03HWOZoEzq8JASE5vBNN1GArPaEJG/gPqaHYUrzPmIrLI1sDHE/M+Ofc4B2SV2zb7 ammgNbUZBMOa+HFbe347o4hkcEwh8GVNOwkeu9MvVyQj5Vn0KgoCPUwK5Hrw5uRaV3vd yUJqMXhV5MzND5Ob8p+07KKCL3cV8AhzQcFrJgO6U41MxNzViBHmeTESNs9rFHvf8OLe Hh10bPAHUa8EAa5OlltWnC2HQ7bAebzpzdcrT8bwc/7ZWZHuYRm8D+TJ835pJPBvqb6X GLKaG9ZZpN0qDhM61c9SsG9QscsiNFjp7cXpVlCyoJXGg/fbcc1v1Vvk82hILKzUC+ZR 6zpA== ARC-Authentication-Results: i=1; mx.google.com; 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 a3-v6si22927728pgb.457.2018.10.18.22.55.38; Thu, 18 Oct 2018 22:55:54 -0700 (PDT) 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; 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 S1726999AbeJSN7d (ORCPT + 99 others); Fri, 19 Oct 2018 09:59:33 -0400 Received: from terminus.zytor.com ([198.137.202.136]:50435 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726542AbeJSN7d (ORCPT ); Fri, 19 Oct 2018 09:59:33 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w9J5so3J1121917 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 18 Oct 2018 22:54:50 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w9J5snYS1121914; Thu, 18 Oct 2018 22:54:49 -0700 Date: Thu, 18 Oct 2018 22:54:49 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Christoph Hellwig Message-ID: Cc: hch@lst.de, mingo@kernel.org, tedheadster@gmail.com, hpa@zytor.com, tglx@linutronix.de, linux-kernel@vger.kernel.org Reply-To: linux-kernel@vger.kernel.org, hpa@zytor.com, tglx@linutronix.de, mingo@kernel.org, hch@lst.de, tedheadster@gmail.com In-Reply-To: <20181014075208.2715-1-hch@lst.de> References: <20181014075208.2715-1-hch@lst.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/swiotlb: Enable swiotlb for > 4GiG RAM on 32-bit kernels Git-Commit-ID: 485734f3fc77c1eb77ffe138c027b9a4bf0178f3 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q,FREEMAIL_FORGED_REPLYTO autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 485734f3fc77c1eb77ffe138c027b9a4bf0178f3 Gitweb: https://git.kernel.org/tip/485734f3fc77c1eb77ffe138c027b9a4bf0178f3 Author: Christoph Hellwig AuthorDate: Sun, 14 Oct 2018 09:52:08 +0200 Committer: Ingo Molnar CommitDate: Fri, 19 Oct 2018 07:49:32 +0200 x86/swiotlb: Enable swiotlb for > 4GiG RAM on 32-bit kernels We already build the swiotlb code for 32-bit kernels with PAE support, but the code to actually use swiotlb has only been enabled for 64-bit kernels for an unknown reason. Before Linux v4.18 we paper over this fact because the networking code, the SCSI layer and some random block drivers implemented their own bounce buffering scheme. [ mingo: Changelog fixes. ] Fixes: 21e07dba9fb1 ("scsi: reduce use of block bounce buffers") Fixes: ab74cfebafa3 ("net: remove the PCI_DMA_BUS_IS_PHYS check in illegal_highdma") Reported-by: Matthew Whitehead Signed-off-by: Christoph Hellwig Signed-off-by: Thomas Gleixner Tested-by: Matthew Whitehead Cc: konrad.wilk@oracle.com Cc: iommu@lists.linux-foundation.org Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/20181014075208.2715-1-hch@lst.de Signed-off-by: Ingo Molnar --- arch/x86/kernel/pci-swiotlb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/kernel/pci-swiotlb.c b/arch/x86/kernel/pci-swiotlb.c index 661583662430..71c0b01d93b1 100644 --- a/arch/x86/kernel/pci-swiotlb.c +++ b/arch/x86/kernel/pci-swiotlb.c @@ -42,10 +42,8 @@ IOMMU_INIT_FINISH(pci_swiotlb_detect_override, int __init pci_swiotlb_detect_4gb(void) { /* don't initialize swiotlb if iommu=off (no_iommu=1) */ -#ifdef CONFIG_X86_64 if (!no_iommu && max_possible_pfn > MAX_DMA32_PFN) swiotlb = 1; -#endif /* * If SME is active then swiotlb will be set to 1 so that bounce