Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752110AbbKJTO0 (ORCPT ); Tue, 10 Nov 2015 14:14:26 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:60813 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752025AbbKJTOX (ORCPT ); Tue, 10 Nov 2015 14:14:23 -0500 From: Arnd Bergmann To: Timur Tabi Cc: Sinan Kaya , linux-arm-kernel@lists.infradead.org, Abhijit Mahajan , Nagalakshmi Nandigama , linux-scsi@vger.kernel.org, jcm@redhat.com, "James E.J. Bottomley" , linux-kernel@vger.kernel.org, Sreekanth Reddy , Praveen Krishnamoorthy , cov@codeaurora.org, linux-arm-msm@vger.kernel.org, agross@codeaurora.org, MPT-FusionLinux.pdl@avagotech.com, Hannes Reinecke Subject: Re: [PATCH V2 1/3] scsi: mptxsas: try 64 bit DMA when 32 bit DMA fails Date: Tue, 10 Nov 2015 20:13:30 +0100 Message-ID: <6333643.g8NiezT8gD@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <564222CB.3000701@codeaurora.org> References: <1447034266-28003-1-git-send-email-okaya@codeaurora.org> <4982446.ZlJVrezq1Y@wuerfel> <564222CB.3000701@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:P17Qm+f+HK3vaezAmFq4rKO6f2CaBPEOjHogBk/lSrNzL2pWHl8 fKMcgegQhKL7gXj3gvDM4/q7Ws/b1KqKHHJ8YzbDw2JAOi3vW7OpMiGI3rYlyNlD6NzxVj7 0A6UH+ZCPPo+QSVZi95wF8HQNZVpJ2pkJsdU+rkXtXKr1UKXk+73EPskTjwaxaL9JZbuC97 TO4Mcw6IabO4CDS9ywBzw== X-UI-Out-Filterresults: notjunk:1;V01:K0:nEYOXP/nzCg=:NyE2fqh9Ik36lv4idL3MQW +3vKmrmBK9ojfFOYo0EeF0l9Xl7jgAV9SRulw327nuPmXsQZOMmBddeepnNj34doV8JWzLpf3 wd9AwpuiCf0wq2V4i8A+nrGokQvs7VFsWDUQwkUFnaa42aKQZcQw/yOpd8lqww/+2eArQyBoQ oAeTuJKh7iw1reitLvjEXS60sH/45JYN9sX5dlZoAIqvjP6RMjTBESZigdVZJafwj+tDbPL5i mtsxmUuDN/tkVOpeak8RkIAq119tqnh1SjGL77WPU4sX6347wJ4wSFTnYAZlzI7c1JfJzIrWh LIpHCAd+YjXVvvx/Ekv5CE83l2SgwBXKJCtCMTar6jSLvrAlvg7cXM6dHMo+bC0FGBOvLF4m9 yUfH6CZcZKx3bxpcxllCzVmauhnBmvecbqut7VDIz30WGU1y/DMRus51+IxYmf+TjwK70IcFH NWaTGrTULelrCnQoAsNuiReNuaeR2IbB/7S5W7jR9ZwudxtjzFo/4YB6S0CjOs3PkaHpjsm41 zfEW2mYcGG2dOy07L3RynckYBClPPy9wTi2cddobhexv30EJA1BE0gbd4pwBiUdr+bE3hA90M XX/6J3BXaMA4zI7vI+1/2j01hhu8NIqowqfBwnFt1YJOmIBU9oQFNRcPC+v37UmauR71gf8NT yyNnw8Cy3xStHxEvuzO2GXTGZRH8PhmjHoLW7JatdQC445QgU935DqN74ciyw5gnUrfgnZ4Vu 4Q9DfORXUEWqvucy Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1253 Lines: 28 On Tuesday 10 November 2015 11:00:59 Timur Tabi wrote: > On 11/10/2015 10:47 AM, Arnd Bergmann wrote: > > What BenH was worried about here is that the driver sets different masks > > for streaming and coherent mappings, which is indeed a worry that > > could hit us on ARM as well, but I suppose we'll have to deal with > > that in platform code. > > > > Setting both masks to 32-bit is something that a lot of drivers do, > > and without IOMMU enabled, you'd hit the same bug on all of them. > > Also note that I think that on PowerPC, the mask is set to 32 by default > for all devices. I don't think we do that on ARM64. So on PowerPC, > some drivers get away with not explicitly setting the mask. > If the mask is 64-bit by default on ARM64, that is a bug that we need to fix urgently. Can you verify this? A lot of PCI devices can only do 32-bit DMA, and we have plenty of drivers that don't bother setting a mask at all because the 32-bit mask is the default on all other architectures. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/