Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1172184imm; Fri, 22 Jun 2018 11:33:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKMYXBTxuskGHGk3luOWDM+8tzOduE3F91VFfJCle/pJ8MwddlIZshkRKn7/WL4BbLBElES X-Received: by 2002:a17:902:8486:: with SMTP id c6-v6mr2759158plo.283.1529692390834; Fri, 22 Jun 2018 11:33:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529692390; cv=none; d=google.com; s=arc-20160816; b=NDvtTJdJAKyjJ/lUQhhrHdudKs0C8JRiOdk2zP30eTKaB7c2jUTWR13dgy0ZO0JEo/ bEH/46NeaLqtOrcL1J1k3ibMIDDCl8jD7fFiko7MZaG4w8nXjQnNj4h0VHHNss4B0mqG pKrsGySgA++yks7EQ4SkluXJQ6ELViCC++smHnfAeltfUKHu84jYHXlY3ELB8YFofLiD DGOuMBMdhqQPYL9CzpPCdtZ6VtRBfz98zctJ/MbnWvzIrgpCu3Qn3JgZOlaJbyPVvt5E oZVU/Ws6gt/3Y2r3wvcZbsnJwuLctdgFV17O/84AvbzH3uE7eDOhB9kTHBEsxUnhNDhU zRBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=zXguwjG/LLlWq+qmr3sMWwAss44YL+rh8u1Cxu/TCKQ=; b=ySZ3TdLDwvouNLOu815tXHGiMaT7guCnFOmXqxyYUhBhGkR+t4DL7CUIu7clwR3Xl6 8xfiT0rH/qMi9HzeZORdUprN/URg4DnhnIsUz2uC4jsiElAi+JqVpH5To82/hNF7IAg1 jClrDzijQGbcXhyiwSh04y5qWjBmc3or3yjieqH8dWpstnVa804FbR7cWg0jrqJaiDWa QPTYGZ4uk6VYFee6TDriNPv/kgTCbIA5kZ+1IOFfRnHqbkoiVuz6hKzogAQt/Nwfnx1Z HEF3/Xbe5BBu9bH/uVwsCkDilYc12wq6Vw20A2otJ5B+OI+S53Q2jEN3FdP3ygwxhnKD ZiGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=OBaZRU2W; dkim=pass header.i=@codeaurora.org header.s=default header.b=Y660YBLu; 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 i27-v6si8193827pfd.117.2018.06.22.11.32.46; Fri, 22 Jun 2018 11:33:10 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=OBaZRU2W; dkim=pass header.i=@codeaurora.org header.s=default header.b=Y660YBLu; 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 S934302AbeFVSaP (ORCPT + 99 others); Fri, 22 Jun 2018 14:30:15 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:56098 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933869AbeFVSaN (ORCPT ); Fri, 22 Jun 2018 14:30:13 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 3C723605FD; Fri, 22 Jun 2018 18:30:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529692213; bh=NGNVyJ911kbzoMmhxApHbrIbCJ9QBNpGiW+3BSmTLFc=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=OBaZRU2W4gSNz+q2az/2kKLOfQsJwveqSmPvQLTgO/r8IpS3YGPBDpntHI48hEDhi tG8QUQ4oFhwKbFXUZJRDCoYUlLs7kw1k6spgIg+KkgGKnflyTygi0FiQ4dWb00IOME xjEAt4YDucxe56eQ774bGNboQZJ3wfYOluFpoOt8= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.177.57.83] (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 67094605FD; Fri, 22 Jun 2018 18:30:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529692212; bh=NGNVyJ911kbzoMmhxApHbrIbCJ9QBNpGiW+3BSmTLFc=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Y660YBLuyIXoPNYClP0BArYM5RJCK6xA1dBJts4RrrfZ8+dEdanHUfiIdaKt4XffZ 7AYddq2t9l/GuLPaxptJEyJp54PLgWJqNFi0wir8wJhwTGBQetVMLeHRSBur6wQ5eU cPy29IQ4GYJ9WIyd9OaD9dDfMjDDuAFn/YPZIQL0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 67094605FD Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=okaya@codeaurora.org Subject: Re: [PATCH V2 2/2] efi/fb: Convert PCI bus address to resource if translated by the bridge To: Ard Biesheuvel Cc: Bjorn Helgaas , "open list:EFIFB FRAMEBUFFER DRIVER" , Bartlomiej Zolnierkiewicz , linux-arm-msm@vger.kernel.org, Timur Tabi , open list , "open list:FRAMEBUFFER LAYER" , Peter Jones , linux-arm-kernel References: <1526653072-7153-1-git-send-email-okaya@codeaurora.org> <1526653072-7153-2-git-send-email-okaya@codeaurora.org> <20180619222921.GA90490@bhelgaas-glaptop.roam.corp.google.com> <2a805337-c0b5-e134-7695-5a543ecaa26a@codeaurora.org> From: Sinan Kaya Message-ID: <37289a27-eb99-6a73-4d32-4a75edd11dcd@codeaurora.org> Date: Fri, 22 Jun 2018 14:30:10 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/22/2018 2:01 PM, Ard Biesheuvel wrote: >> Yes, it is part of the PCI I/O protocol definition. FrameBufferBase is >> described as >> >> """ >> Base address of graphics linear frame buffer. Info contains >> information required to allow software to draw directly to the >> frame buffer without using Blt().Offset zero in >> FrameBufferBase represents the upper left pixel of the >> display. >> """ > I just tried AMD Radeon and NVidia graphics cards on a system with > non-1:1 mapped MMIO windows, and in both cases, the GOP protocol > structure is populated correctly, i.e., using the CPU address not the > PCIe address. > > EDK2 only recently gained support for MMIO translation in the host > bridge driver, so I so wonder if this is a platform issue rather than > a driver issue. It may be worth a try to dump the results of > GetBarAttributes() of all PCI I/O protocol instances (either in UEFI > or in the stub), to double check that the correct values are returned. > Thanks for checking out other platforms. I'll mark the issue as a BIOS issue and bounce your feedback to the BIOS provider. Let's hold onto this patch for the moment. -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.