Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4148180imm; Mon, 25 Jun 2018 10:30:31 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKEa8Fog5lFBhys3sR5zwbS5CAeOaCsbvJQt5dcCEHPD7tTUFoNr/29AkVKClyS48WVpCG4 X-Received: by 2002:a17:902:1007:: with SMTP id b7-v6mr13235230pla.277.1529947831726; Mon, 25 Jun 2018 10:30:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529947831; cv=none; d=google.com; s=arc-20160816; b=XqQWP0blu1DjWU0GAZNYrtFdvMpFRIQr2Dwh74ShCCwQl18+w0zkiIVgne7ATlBwRs CKJxqscWFbYcvW63gH82ZppPeZ7MfnYHPE91J22noFmgDA/wLpTtvPc84Vm2gEHucc23 yhH6g5mnui+VEQjBJmBB2z/d2EA9yHEjFWt4nkFI23a+pw8R039rj0baYRuTTz42iiv6 qf3sBLOc7gMF+iNeaRNn7EOR9jY/3QsoegxbbrRC130rTsGG1J+b5o/J3VdfgSV1d/Xx r/zHndT7t263qFOENpq8dgpM4lAuQj2rfZv6cnTlbp2R+9mioOzTig74GLfSNs4kS29v AEgA== 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:references:cc:to:from:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=S6L5LLKZYkMf3TAMMUMPbwWXtIPpmggCbFLu7lTYF48=; b=RCxkMsi0H8GAOL/sIrAZz9Y641atjZnyxfBAEorXHR0sjziYntlW656aAsc+xavN5A xfd3T7SzIsnOxKlCsqiqFJh//ZM+v2Q/+a9zFFQE049GSLnNB1i7CPJHLLwZWr73biYN 0lPTxHY86vFnfmL8FN2h7aWuMhYnmm5oEGNXe6TFuaqZVI9K4SyPA8HAt4Ucr5TmoV78 Fh3uW1f52J2w+sqQ9eUliOZM4BOxsFmJZKfIpo8vI5EyD3kqMdg5W104rvQ0vyTLH+SD XRxQLXZxojv+3R7zr+jUy//a63DDQsXLtZvXnvDyKIdBieNnsHa8RZ0MUajHE8UY5RYX SYrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Y6vcJavF; dkim=pass header.i=@codeaurora.org header.s=default header.b=Y6vcJavF; 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 w10-v6si14434053pfg.328.2018.06.25.10.30.16; Mon, 25 Jun 2018 10:30:31 -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=Y6vcJavF; dkim=pass header.i=@codeaurora.org header.s=default header.b=Y6vcJavF; 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 S934710AbeFYR2T (ORCPT + 99 others); Mon, 25 Jun 2018 13:28:19 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:59520 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933920AbeFYR2R (ORCPT ); Mon, 25 Jun 2018 13:28:17 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 9AA4260213; Mon, 25 Jun 2018 17:28:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529947696; bh=lJ0gdfrAvKadxBFsRoWdZYWzC71hXZ67L6wDQiXsagM=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From; b=Y6vcJavFqndyUpBa4VVxcieEQNW9vOIFunmeyupwzuAp1hqUcaTGp5TbzjOjMlbFV TAJ8TCTtGMp84qgLhVhWxZbl1P2latlEmgRDi3kh7FpujiYLD4Ai7pNv+UTHNbf2U5 PeZZ3Z40NR+/tAMRLTim1ovnxwUJsijZBPx9yAJY= 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.235.228.150] (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 4C06360131; Mon, 25 Jun 2018 17:28:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529947696; bh=lJ0gdfrAvKadxBFsRoWdZYWzC71hXZ67L6wDQiXsagM=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From; b=Y6vcJavFqndyUpBa4VVxcieEQNW9vOIFunmeyupwzuAp1hqUcaTGp5TbzjOjMlbFV TAJ8TCTtGMp84qgLhVhWxZbl1P2latlEmgRDi3kh7FpujiYLD4Ai7pNv+UTHNbf2U5 PeZZ3Z40NR+/tAMRLTim1ovnxwUJsijZBPx9yAJY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 4C06360131 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 From: Sinan Kaya 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> <37289a27-eb99-6a73-4d32-4a75edd11dcd@codeaurora.org> <7777f7bfead902f2f5175d48907fccec@codeaurora.org> Message-ID: Date: Mon, 25 Jun 2018 13:28:14 -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: <7777f7bfead902f2f5175d48907fccec@codeaurora.org> 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/25/2018 11:52 AM, okaya@codeaurora.org wrote: >> Note that this is not the only MMIO translation related change made by >> Heyi Guo to the generic PCI host bridge and bus drivers, but given >> that those did not support MMIO translation at all, I take it your >> affected platforms will already have their own changes to accommodate >> this. > > Platform has been doing mmio translation for quite a while. Because all accesses go through pci io protocol, the rest of the UEFI never needed to be aware of bar address or do direct access. > > This is the first time I hear of direct access. Maybe, GOP is a special case. > > I started copying your response to the bios vendor. > > They are probably missing that patch. I will pass it along. I was informed that they fixed the issue in BIOS by presenting CPU physical address instead of PCI bus address in FrameBufferBase of the AST GOP UEFI driver. We can drop this patch now. -- 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.