From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36EAFC433DB for ; Thu, 25 Feb 2021 06:37:28 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 89ABC64ED3 for ; Thu, 25 Feb 2021 06:37:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 89ABC64ED3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:57258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFAH8-0002W6-D0 for qemu-devel@archiver.kernel.org; Thu, 25 Feb 2021 01:37:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFAFs-0001nj-GT; Thu, 25 Feb 2021 01:36:08 -0500 Received: from mail-io1-xd2e.google.com ([2607:f8b0:4864:20::d2e]:38908) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lFAFq-0004A7-S3; Thu, 25 Feb 2021 01:36:08 -0500 Received: by mail-io1-xd2e.google.com with SMTP id k17so4769054ioc.5; Wed, 24 Feb 2021 22:36:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=reBCH9NQ4PLO7z9HYq+Qls5ToyTit+apfHw2z710a18=; b=oOd4ynZ/8nMpDmvwu5Mfz5EkmQxkaC7+uiDHjbj+HPHFC7X+TqZO1TruH6lFLoVCql jj7XM2yMs3tsMEdU3ICAaSMg+qnaVXhfTiyAgjIfNR63O58X78bu3r6LdNbQ2OTlEV5M d6pjTLkQtVZLWjEJ16PyyY2sePe8s3WVxd25b+IaUnu9M11RSmohUUSBfh2DaXQtirFK sb2FJtpXqBC1bHo6rx+b29w09LNygNRvpSxepJIa/UyKYzn8X4jLtbL/39h0xKR3e/Wq up32yzW79xdN9ESmf9BiTNF99OooX7zk2TVq2PqBVbCwfMxDWLBTcIn5f0CM5qKK5X1C Rw7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=reBCH9NQ4PLO7z9HYq+Qls5ToyTit+apfHw2z710a18=; b=FGo4qyFoHiJlzLFFOTOubYEwtpixIfyBNPk+E2PaoXgWhi51OVdAZ+UQrYPjIp+FTZ HYld+TMNsa4dta/3unHvQ6YnOEn2sgo31y9XyhH347NriUaBqms/QdQ+k76pGZfTlh4z 7qKB98DDbGiXwJeQSdSnvlpSY7zYXZBVWfp8/AkAL0uzBfLRHw2Qqr7DTCoZ2itksD2a VjNOy2ks0vXF5y+b/lQIAcIEQkCMFU28UBayGlI5dNrfPN1L73jbm9R12IxWDDNH2GxL AXpZzBMH9jC4+eb4khIFFj1lC3sc3NXlUTwaDqj7NSdGtYBQ6HnU+DfWhIVQQuZ2wZQF PCtA== X-Gm-Message-State: AOAM530IzgBNK8py+XM21SXAbEeejLMzquLJ7zRxpf9mFYJBypjoHEAe UhZnKLYd2H9jnags316soVk= X-Google-Smtp-Source: ABdhPJzvjUqZems2gF69kEOwjY9BzyNLIakB7MO7TK2tLFryyaDiwvbmjym4UzJCuB2GOUWiCM9zng== X-Received: by 2002:a5e:dd46:: with SMTP id u6mr1497160iop.73.1614234965176; Wed, 24 Feb 2021 22:36:05 -0800 (PST) Received: from [127.0.0.1] (ec2-3-14-82-192.us-east-2.compute.amazonaws.com. [3.14.82.192]) by smtp.gmail.com with ESMTPSA id w6sm2804967ilj.7.2021.02.24.22.36.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Feb 2021 22:36:04 -0800 (PST) Message-ID: Subject: Re: [PATCH] arm: xlnx-versal: fix virtio-mmio base address assignment From: schspa To: Peter Maydell , "Edgar E. Iglesias" Date: Thu, 25 Feb 2021 14:35:57 +0800 In-Reply-To: References: <3362132240927a23ecca7b9d8cfd6e4130509eea.camel@gmail.com> <6f6a803af5941346050d84e77fcaa52e0175a8a7.camel@gmail.com> <20210205140807.GH477672@toto> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::d2e; envelope-from=schspa@gmail.com; helo=mail-io1-xd2e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eduardo Habkost , Kevin Zhao , Alistair Francis , QEMU Developers , Philippe =?ISO-8859-1?Q?Mathieu-Daud=E9?= , qemu-arm , Markus Armbruster Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Mon, 2021-02-08 at 12:59 +0000, Peter Maydell wrote: > I just suggested something on another thread: call > memory_region_find() > and then look at the offset_within_address_space field of the > returned > MemoryRegionSection. I think that should get you the offset of the > transport within the system address space regardless of how much > use of containers and other oddball mappings are involved. (If the > transport is not mapped into the system address space at all then > you'll get its offset within whatever that other address space is, > but I think we can reasonably ignore that unlikely corner case.) Thanks for your suggestions, I have tried it on both arm virt & the Xilinx platform works perfectly. I have upload a new patch v4 for it. -- schspa