Received: by 10.213.65.68 with SMTP id h4csp435129imn; Tue, 13 Mar 2018 08:59:12 -0700 (PDT) X-Google-Smtp-Source: AG47ELvwXw+dkfx9BcwoFwbafSUStEycp2vcWibnDpn2R5Yb0EcfbQ0YoTy+asGOtfdFVk2c4vj4 X-Received: by 10.101.86.73 with SMTP id m9mr922538pgs.70.1520956752680; Tue, 13 Mar 2018 08:59:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520956752; cv=none; d=google.com; s=arc-20160816; b=oHgT/TTSCNPXyUuPQdldEzdgtc/LBMzZi8IfsIJd71B91CLaoD63d4cw1yx8eiXqx9 vmvPMGIF+4GPuc8yXlCFksi/aU5ecxqXOFe1a/gDwPk1HJhzsQkBf3sKnCLwwf69h/Ry 8tEVmr+Pfqoppb3RHIVWPvAogSgTfVBIiUnU7yH50tNNLUGL+vMWEcps3QYePrYObMbb raddGZ/NSW5c5zIRR0Qg1P7LJydMvQ0U9xQn4TlemE9ngaXrCoVaCjiP0knVmg7rjvoJ aGSEj+gNFv3beHwr0OX3iPp4ihc3f+QqzGxpmtrgwi+DGVjflB88nl//Gp6zUHNPsWVu AAbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=mcb2nOOny7RvkwJm4q9TUlCC7TpVORcSVNizWd9SN38=; b=gQeIzXBuxmvZYevFGIVibQ/hzZNPk0SiocXeBxDvaX/9XzL6ZhtzL1gNkw/03MQw1R 3/ippmPqnKsqTbNTkRMs6RvWDSMyPHANRJQo3MUfI8jFArFYo/A68dQT/4YQfKSBwyZv 1Zy/WiinS8IqT09tMtrgf4esoTkqDTM7bdamloG0tjhQJt/BEw18ZL8TQS1SuFPR0Pf0 Is12Um0dgDAWyLv1vTN5J4RNVO0plUGjcbjqtiXaX6y6bM+4STZx+hD+8XyM042/49UO 4Z8/HoFtYzh7uCja78cANEJf7PFdZOmKw5OmGH8phPg0hxOJ9yVsXzEEdfhC4RTJQ334 w5Cg== 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 c7-v6si274302plo.432.2018.03.13.08.58.57; Tue, 13 Mar 2018 08:59:12 -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 S934544AbeCMP5H (ORCPT + 99 others); Tue, 13 Mar 2018 11:57:07 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34286 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934534AbeCMPiS (ORCPT ); Tue, 13 Mar 2018 11:38:18 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 84FA5126E; Tue, 13 Mar 2018 15:38:17 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ben Crocker , Alex Deucher Subject: [PATCH 4.14 070/140] drm/radeon: insist on 32-bit DMA for Cedar on PPC64/PPC64LE Date: Tue, 13 Mar 2018 16:24:33 +0100 Message-Id: <20180313152502.894564942@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152458.201155692@linuxfoundation.org> References: <20180313152458.201155692@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ben Crocker commit 2c83029cda55a5e7665c7c6326909427d6a01350 upstream. In radeon_device_init, set the need_dma32 flag for Cedar chips (e.g. FirePro 2270). This fixes, or at least works around, a bug on PowerPC exposed by last year's commits 8e3f1b1d8255105f31556aacf8aeb6071b00d469 (Russell Currey) and 253fd51e2f533552ae35a0c661705da6c4842c1b (Alistair Popple) which enabled the 64-bit DMA iommu bypass. This caused the device to freeze, in some cases unrecoverably, and is the subject of several bug reports internal to Red Hat. Signed-off-by: Ben Crocker Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/radeon/radeon_device.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/gpu/drm/radeon/radeon_device.c +++ b/drivers/gpu/drm/radeon/radeon_device.c @@ -1397,6 +1397,10 @@ int radeon_device_init(struct radeon_dev if ((rdev->flags & RADEON_IS_PCI) && (rdev->family <= CHIP_RS740)) rdev->need_dma32 = true; +#ifdef CONFIG_PPC64 + if (rdev->family == CHIP_CEDAR) + rdev->need_dma32 = true; +#endif dma_bits = rdev->need_dma32 ? 32 : 40; r = pci_set_dma_mask(rdev->pdev, DMA_BIT_MASK(dma_bits));