From patchwork Wed Feb 13 11:42:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hannes Reinecke X-Patchwork-Id: 10809643 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 10852922 for ; Wed, 13 Feb 2019 11:42:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F2D592CD78 for ; Wed, 13 Feb 2019 11:42:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E6F052CD79; Wed, 13 Feb 2019 11:42:47 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CAF02CD04 for ; Wed, 13 Feb 2019 11:42:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403935AbfBMLmo (ORCPT ); Wed, 13 Feb 2019 06:42:44 -0500 Received: from mx2.suse.de ([195.135.220.15]:47622 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732932AbfBMLmo (ORCPT ); Wed, 13 Feb 2019 06:42:44 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 55F1DAF0A; Wed, 13 Feb 2019 11:42:43 +0000 (UTC) From: Hannes Reinecke To: Christoph Hellwig Cc: "Martin K. Petersen" , James Bottomley , linux-scsi@vger.kernel.org, Ewan Milne , Hannes Reinecke Subject: [PATCH 0/4] scsi: fixup dma_set_mask_and_coherent() calls Date: Wed, 13 Feb 2019 12:42:30 +0100 Message-Id: <20190213114234.67275-1-hare@suse.de> X-Mailer: git-send-email 2.16.4 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The recent patchset to use dma_set_mask_and_coherent() introduced a regression where a call to set a 64-bit DMA mask was followed by a call to set a 32-bit DMA mask, leading to I/O errors and data corruption. Patchset is based on a suggestions from Ewan Milne. Hannes Reinecke (4): lpfc: fix calls to dma_set_mask_and_coherent() hptiop: fix calls to dma_set_mask_and_coherent() bfa: fix calls to dma_set_mask_and_coherent() hisi_sas: fix calls to dma_set_mask_and_coherent() drivers/scsi/bfa/bfad.c | 10 +++++++--- drivers/scsi/hisi_sas/hisi_sas_main.c | 8 ++++++-- drivers/scsi/hptiop.c | 10 +++++++--- drivers/scsi/lpfc/lpfc_init.c | 9 ++++++--- 4 files changed, 26 insertions(+), 11 deletions(-)