From patchwork Tue Mar 3 03:34:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mikel Rychliski X-Patchwork-Id: 11417117 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2326A174A for ; Tue, 3 Mar 2020 03:41:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0C87720848 for ; Tue, 3 Mar 2020 03:41:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726947AbgCCDl4 (ORCPT ); Mon, 2 Mar 2020 22:41:56 -0500 Received: from yyz.mikelr.com ([170.75.163.43]:57142 "EHLO yyz.mikelr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726970AbgCCDl4 (ORCPT ); Mon, 2 Mar 2020 22:41:56 -0500 Received: from glidewell.ykf.mikelr.com (198-84-194-208.cpe.teksavvy.com [198.84.194.208]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by yyz.mikelr.com (Postfix) with ESMTPSA id 7D0933CF20; Mon, 2 Mar 2020 22:35:02 -0500 (EST) From: Mikel Rychliski To: amd-gfx@lists.freedesktop.org, linux-pci@vger.kernel.org Cc: Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , "David (ChunMing) Zhou" , Bjorn Helgaas , Matthew Garrett , Mikel Rychliski Subject: [PATCH 0/4] Fix loading of radeon BIOS from 32-bit EFI Date: Mon, 2 Mar 2020 22:34:53 -0500 Message-Id: <20200303033457.12180-1-mikel@mikelr.com> X-Mailer: git-send-email 2.13.7 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org This patch set fixes an opps when loading the radeon driver on old Macs with a 32-bit EFI implementation. Tested on a MacPro 1,1 with a Radeon X1900 XT card and 32-bit kernel. Mikel Rychliski (4): drm/radeon: Stop directly referencing iomem PCI: Use ioremap, not phys_to_virt for platform rom drm/radeon: iounmap unused mapping drm/amdgpu: iounmap unused mapping drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c | 1 + drivers/gpu/drm/radeon/radeon_bios.c | 12 ++++++++---- drivers/pci/rom.c | 5 ++--- 3 files changed, 11 insertions(+), 7 deletions(-)