Received: by 10.213.65.68 with SMTP id h4csp420139imn; Tue, 13 Mar 2018 08:30:30 -0700 (PDT) X-Google-Smtp-Source: AG47ELs+9Xg3OsvHQ3LQ+Q/aQ+zLxOd0belh6m1ihQwDiWb5ptIPFaTjU3MsrwaK0Syc24rUJcVC X-Received: by 2002:a17:902:30f:: with SMTP id 15-v6mr880395pld.365.1520955030149; Tue, 13 Mar 2018 08:30:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520955030; cv=none; d=google.com; s=arc-20160816; b=qzczoH2SRzmE3R6B+lXsK7ZYV3ezHoR4D7i5vgmC5zYGVClrBNsmKJnC6JoW/Sf261 v9r1aVad80SOTS98WqZk4uOIzvKb5dVrq8BIq1g9JEnQ4d+nsNtkgWeSjpF+K60e0uYl B3RVOKEohVVmt44v7ncBjt/0eox6T2l+6an07Xy/PNeh6k2nw6GUGrTrSaY7VbQuCgud CVpBl0sLbyHT0ndcPohp0vXCriWo2GCvNS/4ltQCZB1f3tzZRUePV6nYSIw7DS2iox5i xJcdo3YesLZpCR3+9U5hymJn7Fdowd8MxkuLhRTga6oc41lGTt8JpN6ZpQpHkOfkfmBU t/kA== 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=V3qQXPiWVFASPxZ0hyLcX8p370Jpz8hYXEo1JjFSnNY=; b=dXqYfOFaynb+URZiXlaILQqsnHripamloHb7wyfLnK4GEoUGq6rH54p+wdooJrL//8 A5ZDnybjKde6U1PpMFZadNdQIMAEB/DKQDVgtMOyIRflgyzLcoytEi57pdw9aA1p4ol4 Sk/B+ZFfNNVNOFlxvEJiPn7K8fcJ+2qrQrkKLHy9HdfHHYFwtKeswB0+qKc0GdgYLGjt qA+8+8+zyRIp+0kWB7q3Er/B/DfFyiPPOrHz5KXfF0pldZRp3Q+Q83i5DXEact59zG87 rIM29aaak6OQYw+/g2YpI1KKdElh+Yj5pUa4iwhSU2PnA1chnF5+jSb6VCdDxrJ+ol3c MT7w== 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 1-v6si256569plw.587.2018.03.13.08.30.15; Tue, 13 Mar 2018 08:30:30 -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 S932866AbeCMP2t (ORCPT + 99 others); Tue, 13 Mar 2018 11:28:49 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58160 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932826AbeCMP2p (ORCPT ); Tue, 13 Mar 2018 11:28:45 -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 D1C2BF02; Tue, 13 Mar 2018 15:28:44 +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.15 030/146] drm/radeon: insist on 32-bit DMA for Cedar on PPC64/PPC64LE Date: Tue, 13 Mar 2018 16:23:17 +0100 Message-Id: <20180313152322.864927717@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152320.439085687@linuxfoundation.org> References: <20180313152320.439085687@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.15-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));