From patchwork Tue Nov 20 14:09:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Murphy X-Patchwork-Id: 10690577 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 29FAB13AD for ; Tue, 20 Nov 2018 15:56:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 176C52A9F3 for ; Tue, 20 Nov 2018 15:56:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0BBF62AA26; Tue, 20 Nov 2018 15:56:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A8B912A9F3 for ; Tue, 20 Nov 2018 15:56:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=tysrYVtngL1XzF3G9PZTAmS4U0WcdDdvj9CLeD/xK2M=; b=ieaEzsJKx/07cw 6mUtP0vdiQ1bYd8jTODbTKwN90DO04MnZpwmGqA6UlIPwXJkRJXW6bzme04VV/Dz5so6ow0ppVXq8 MXlSHch6hVw5nydEz7wjomaNqOtaOFKuWFENzxyQygdGOuitNPjf4YO39zT6AQmNRej92JdlOgm2g a4FlFHzsmpQ21+GW8y8n+8RG6WlUfDr4lhrvvzNeZhBQyjD9S7XRQkIK7sCS/kAw1C8Q3NDztlLUe /i6PeH5NovlSBpKR6dhni5oJ334pLMOptREnOsQxacH7yVfToY4OGXkT1ytKAWKtEKqNsbGQM+JLn /MmXcyMjAVMCZvlRiRXA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gP8OJ-00074w-GH; Tue, 20 Nov 2018 15:56:43 +0000 Received: from merlin.infradead.org ([205.233.59.134]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gP8Fv-0003nl-D3 for linux-arm-kernel@bombadil.infradead.org; Tue, 20 Nov 2018 15:48:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:MIME-Version: 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:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=IVwQl2QopZ6Cb0ENnbBnZKYU7bl765rC5P4mjxbbmZQ=; b=tmoMsBxSSk//WiIdAl7DNGZ3NU CCQ2gmMuuJGnTONWEoSeujaKRC2bFKI03ol++oeNkdcb7jIz41te9aQUtwqzA66z35ayvOLbbzT/J RSsdx9MRh1reRGj3DeCbJB3Nzwy5aHqTaeu2kD5cAkFxuHgLxl9pz+fzxNoeR2eqAbuLWCnAKYUG9 eIiRGLPNVQaOjXgzpzQdt3HRUto7QvEVCCm3s/hEFA1etVh5OzMcctyHNrwmk/n9KEYamADUC4l1i Kb0f2Gtk1qYAWBA9tU7eTlod/3uwEiJrjLpKSP85lXluMqPzGI0xrORVkJI8kdq/yipjkQDFaBgrp byeDWefw==; Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by merlin.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gP6jO-0008Ps-3N for linux-arm-kernel@lists.infradead.org; Tue, 20 Nov 2018 14:10:26 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4204FEBD; Tue, 20 Nov 2018 06:10:09 -0800 (PST) Received: from e110467-lin.cambridge.arm.com (e110467-lin.cambridge.arm.com [10.1.196.75]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D59A13F5A0; Tue, 20 Nov 2018 06:10:07 -0800 (PST) From: Robin Murphy To: hch@lst.de, konrad.wilk@oracle.com Subject: [PATCH 0/2] SWIOTLB fixes for 4.20 Date: Tue, 20 Nov 2018 14:09:51 +0000 Message-Id: X-Mailer: git-send-email 2.19.1.dirty MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181120_091022_227874_564D9330 X-CRM114-Status: GOOD ( 15.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: iommu@lists.linux-foundation.org, john.stultz@linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This is what I have so far, which at least resolves the most ovbious problems. I still haven't got very far with the USB corruption issue I see on Juno with -rc1, but I'm yet to confirm whether that's actually attributable to the SWIOTLB changes or something else entirely. Robin. Robin Murphy (2): swiotlb: Make DIRECT_MAPPING_ERROR viable swiotlb: Skip cache maintenance on map error include/linux/dma-direct.h | 2 +- kernel/dma/swiotlb.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) Reviewed-by: Christoph Hellwig Reviewed-by: Christoph Hellwig Acked-by: Konrad Rzeszutek Wilk