Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1318591yba; Tue, 2 Apr 2019 06:47:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/n4JATBhsvzh7O7UA7lmI1nX/e+NuvxNx/sU1svsc0WuCe7zJkokfUy3T6nJg9xEa3TMY X-Received: by 2002:a62:292:: with SMTP id 140mr36461430pfc.206.1554212856685; Tue, 02 Apr 2019 06:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554212856; cv=none; d=google.com; s=arc-20160816; b=DF0nHxY9c23ZytkT9uxVVmHjI95I1QcZ787BfECeYJPTHxnhvaqlAWnDdADnr2xAW/ bL83CR4nDkIgnqa6+nArSpwi7FI1SiywSep36ShL0T6RNBQ7H9RXW0kGM9ADsF8Srxjd W0CyT5vLz0/+HLChrksiU5XEOYn49/mOYGkwJE2Z/gy0KrmHqaueSpIp98TxDphEPmIU rImyRAQm305d3T41duCGQsd/SxEHLTp18Fn20sXxooB13ez935VWc9ElXXDFBEDH93O9 FMhJ7G3cQdZ9FTHBVXCMulFT595cjhJFVpwtoXNAvqw+gRImpVCaRrcsIrhZ+Bb8TiyZ 9Aog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=VaAdX8xHfNaHplu8OhaTNjpl/QPkIx4yWkIfQUFQrAU=; b=NNO+AVBnRHPjiKyHBNDAZPNmDVRNCI4tGN0ffchv9qPAzHuhihUabFXUTLmOvV8At5 i6tDS0mlQntC8dGV5Q/DYI8jEFqh7yJJNWmC3DsfirkQ5ja+jcsvaeGqZAgwXa9wZ5gw KK796v6e8X2Vnez8DLLpmYsR0oDZSQuvyTRYVWU3TweEghOoQ8cyjbljd/TXcGQm4LxX sZS9YIVc1xSCS06vnTNKD0vYF0YQTxS8txMGoOcd/d1sRw5rWeB21H3y1ALDLPj77XxH BpK/csqtpXqdkDMqHUtGa1iDmgthtXfMQT4/J2gisdwc6bl7tVR6rSkCWVQIENCZMBzS RMPA== 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 m5si10967113pll.132.2019.04.02.06.47.21; Tue, 02 Apr 2019 06:47:36 -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 S1731928AbfDBNpe (ORCPT + 99 others); Tue, 2 Apr 2019 09:45:34 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:43358 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731461AbfDBNkH (ORCPT ); Tue, 2 Apr 2019 09:40:07 -0400 Received: from [167.98.27.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hBJe0-0002os-LG; Tue, 02 Apr 2019 14:40:04 +0100 Received: from ben by deadeye with local (Exim 4.92) (envelope-from ) id 1hBJdx-0004vg-5a; Tue, 02 Apr 2019 14:40:01 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, Denis Kirjanov , "Martin K. Petersen" , "Shivasharan S" Date: Tue, 02 Apr 2019 14:38:27 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) X-Patchwork-Hint: ignore Subject: [PATCH 3.16 65/99] scsi: megaraid_sas: Use 63-bit DMA addressing In-Reply-To: X-SA-Exim-Connect-IP: 167.98.27.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.65-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Shivasharan S commit 894169db12463cea08d0e2a9e35f42b291340e5a upstream. Although MegaRAID controllers support 64-bit DMA addressing, as per hardware design, DMA address with all 64-bits set (0xFFFFFFFF-FFFFFFFF) results in a firmware fault. Driver will set 63-bit DMA mask to ensure the above address will not be used. Signed-off-by: Shivasharan S Signed-off-by: Martin K. Petersen [bwh: Backported to 3.16: Only one instance of a 64-bit mask needs changing] Signed-off-by: Ben Hutchings --- --- a/drivers/scsi/megaraid/megaraid_sas_base.c +++ b/drivers/scsi/megaraid/megaraid_sas_base.c @@ -4592,7 +4592,7 @@ megasas_set_dma_mask(struct pci_dev *pde * All our contollers are capable of performing 64-bit DMA */ if (IS_DMA64) { - if (pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) != 0) { + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(63)) != 0) { if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) != 0) goto fail_set_dma_mask;