Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp11874ybg; Tue, 2 Jun 2020 14:53:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7YY/+o/+BvCVHS9pqGOzQzRpyQTYO09rMibIuRucuaepF9dIG4sZ7DE2CB19HJhCwoTRw X-Received: by 2002:a17:906:703:: with SMTP id y3mr25877321ejb.61.1591134805098; Tue, 02 Jun 2020 14:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591134805; cv=none; d=google.com; s=arc-20160816; b=SifdhV2hP1wuctiM4V4AcByXYFxLNzTweuO7DJqbYBix4URhpQLx37SJ3Shz2sU/Rt TPV4wejji+fBfdXrw5gWy2rWNuOj+nm1SiQkqDoiD97DkwEg1tR0sqDQdxNLcz6peU8M 5gjZvVbuNbfjflojRPaZpgp5T1Ye8AWMw1qsgmz8LiKuLNZ/IcOj2X+1Vun86PSCfhWR pM7D+2FhCcKBKqpXWUKI67B4LU7AqoMzorEDCZFtMaAw7pgXaLuw9jFGDyZZSTFu/50E lAW/ShWKaYPI92DEjIIEI7GFJFXUf/7tb3girUY0V+esndUPtDK1a+v+bbGW6Ds1TKfv SeeQ== 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 :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=gpl9LCCMSfdCzeibPXcIHfBn7vy+nH1nUNObZ2Nzyos=; b=JCCFVNOgF4s4UtYPPZysfgKJFvh/UHtgZa0c3g9A/e8aEWdfjPWP66CF23RMEgIsOy HAnIGrOBrf1goJ5gMH8L/lF6E0ebqQRpjBoZLVfO3BsOqhPb94MtaKgBGLHlm7uEp3ZZ IrllDmU5mOoQUE0fHiBt65VrSAyWY9axrAoLQTR/cOBF351nHVRmaTFFr3imGm2HSTfh byt+GU2ZSqnI5kAcFpAPGAz5fuowhiQeohXMS0UAFJVqnlCiTQW4P0igUcFtWhK38+lk YumHmDl7X5dr7tqTMOuoqQNu8XECOHwbkikjZ6U5+qGPtUMYhqDkjUkcJzTBWbaCA4t/ qG8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mDaApVbv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t9si8824eds.213.2020.06.02.14.53.01; Tue, 02 Jun 2020 14:53:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mDaApVbv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727794AbgFBVvD (ORCPT + 99 others); Tue, 2 Jun 2020 17:51:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:60780 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726112AbgFBVvD (ORCPT ); Tue, 2 Jun 2020 17:51:03 -0400 Received: from localhost (c-67-164-102-47.hsd1.ca.comcast.net [67.164.102.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8AA68206E2; Tue, 2 Jun 2020 21:51:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591134662; bh=OG5HRGyKV3zEjimah4a0c6gJZ7mOncwrp6JlgmZTJXU=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=mDaApVbv13sLSvUPxDLg7qf18jrKrHmMzTnkjukv5eL/Ku5u0trpjQZW8FgRBbpE7 uBfuTN+v5BZDdxYgO2H6sOcDNFN74Qf468AoUzW3+fytW0qRePC2BAmt9zbt8oMYoD zmqTdVRF9X0/E+gGvz8I7eQlQC2c74oIBtYkeX9k= Date: Tue, 2 Jun 2020 14:51:02 -0700 (PDT) From: Stefano Stabellini X-X-Sender: sstabellini@sstabellini-ThinkPad-T480s To: jgross@suse.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com cc: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, tamas@tklengyel.com, roman@zededa.com, sstabellini@kernel.org Subject: Re: [PATCH 00/10] fix swiotlb-xen for RPi4 In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I would like to ask the maintainers, Juergen, Boris, Konrad, whether you have any more feedback before I send v2 of the series. Cheers, Stefano On Wed, 20 May 2020, Stefano Stabellini wrote: > Hi all, > > This series is a collection of fixes to get Linux running on the RPi4 as > dom0. > > Conceptually there are only two significant changes: > > - make sure not to call virt_to_page on vmalloc virt addresses (patch > #1) > - use phys_to_dma and dma_to_phys to translate phys to/from dma > addresses (all other patches) > > In particular in regards to the second part, the RPi4 is the first > board where Xen can run that has the property that dma addresses are > different from physical addresses, and swiotlb-xen was written with the > assumption that phys addr == dma addr. > > This series adds the phys_to_dma and dma_to_phys calls to make it work. > > > Cheers, > > Stefano >