From patchwork Tue Sep 24 15:01:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Schnelle X-Patchwork-Id: 11159053 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AB6661668 for ; Tue, 24 Sep 2019 15:01:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8964221655 for ; Tue, 24 Sep 2019 15:01:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=duncanthrax.net header.i=@duncanthrax.net header.b="PvFh5yd3" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2409772AbfIXPBo (ORCPT ); Tue, 24 Sep 2019 11:01:44 -0400 Received: from smtp.duncanthrax.net ([89.31.1.170]:59086 "EHLO smtp.duncanthrax.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390565AbfIXPBn (ORCPT ); Tue, 24 Sep 2019 11:01:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=duncanthrax.net; s=dkim; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From; bh=asTpfATHVdYEYQSAzZcEjMAWgV2/KRyuMk1HUDQHBjc=; b=PvFh5yd3mdo1z6yhrAVH1ePkAo 6LBbYmGkpdJg65jDje2CuuL0isd7FvmyAtsvVa59Aauk6WgjBYxFctbCl8CvuXXs6kQGzSU4r7hAn sq6sSLzclAeXdgswlSawjpxZlcxYJZoEk4obAY/auJuDvjpRLy2LT491oj+rWGPNnCfo=; Received: from hsi-kbw-046-005-233-221.hsi8.kabel-badenwuerttemberg.de ([46.5.233.221] helo=x280.stackframe.org) by smtp.eurescom.eu with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iCmJx-0006Pc-LN; Tue, 24 Sep 2019 17:01:41 +0200 From: Sven Schnelle To: Helge Deller Cc: linux-parisc@vger.kernel.org, Sven Schnelle Subject: [PATCH] parisc: remove 32-bit DMA enforcement from sba_iommu Date: Tue, 24 Sep 2019 17:01:31 +0200 Message-Id: <20190924150131.24404-1-svens@stackframe.org> X-Mailer: git-send-email 2.23.0.rc1 MIME-Version: 1.0 Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org This breaks booting from sata_sil24 with the recent DMA change. According to James Bottomley this was in to improve performance. Remove it for now to make DMA working again. Signed-off-by: Sven Schnelle --- drivers/parisc/sba_iommu.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/parisc/sba_iommu.c b/drivers/parisc/sba_iommu.c index 296668caf7e5..6ac9500f2752 100644 --- a/drivers/parisc/sba_iommu.c +++ b/drivers/parisc/sba_iommu.c @@ -678,14 +678,6 @@ static int sba_dma_supported( struct device *dev, u64 mask) return(0); } - /* Documentation/DMA-API-HOWTO.txt tells drivers to try 64-bit - * first, then fall back to 32-bit if that fails. - * We are just "encouraging" 32-bit DMA masks here since we can - * never allow IOMMU bypass unless we add special support for ZX1. - */ - if (mask > ~0U) - return 0; - ioc = GET_IOC(dev); if (!ioc) return 0;