Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp959354ybk; Wed, 20 May 2020 17:00:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx23Pk8/UyEPaSqymSFi9yODaeQ769CMJWvvmQ75GfwHKxucmqlSQQqIGCOSStkATfUFGmo X-Received: by 2002:a05:6402:1b0f:: with SMTP id by15mr5442644edb.316.1590019209940; Wed, 20 May 2020 17:00:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590019209; cv=none; d=google.com; s=arc-20160816; b=n/4YqshQtlwvo1TxqB1u3KhRUJ/up1FDVTVfbw3Kl0KPcQdxM8g5oVRIhzgiEC5TAP G8jTNlVJIwjioBJQUsmrwamJBQ1crGGeiqoBgz5Caj2f2tasNfiAuOVXNNXGx1okRwSS 7L7Ql8LiCJAvipikyZUsc94WzgBBIfVpDxG29COR7q4Bu3FSTmSgQ6SLGOkWvnHZa6ml Q8qqkRyvdu/sNak5KKtEoxIx5VM+dBNqhckAHi+pb9K7662/4R/pStYTeK0tK5zAVBGc L2qQLcWEeS6zwXvuoBLx52A6KzlpnOFYLLrl/CYAN0XGPSctswcG8yZZiDgK6uEP36eF sihA== 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=emN73S/dfci3RWwLqcm7ko1VwZpdGqaArjuFj4fGSJ4=; b=X0cnDqXH1cZJ6IZTQlE/CzPribnCtrToxqasmW/UpNEZmkg071S/u4TY5Wpf+Lx6F5 0so+0eE2PVffy2ZTkHQIvSXBoxeFxsSRsXylEUGFhQoCh9nCLwr64R25W8Qz4KUAR/oX itTo6F8uztLYeDgZI7Jv66F+K7HLXMBUoVJP1cM8TtEl8u10e4iax3iAJH1nw6NI7aDy GxzNgYASC1KZ5C09/hhslya52UhaYmSko8ktA3BwabnKjMPZ3mNW/K65aVepz9w9/44V 2hUwab+BEoYZqYSRImOu3FRrtp34n9yzUFRh+QTy2kbyqoALaEzb+nBTI3JxY2GdvJa7 RRuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=l2UoEQEz; 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 m7si2275062edg.244.2020.05.20.16.59.47; Wed, 20 May 2020 17:00:09 -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=l2UoEQEz; 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 S1726737AbgETX4U (ORCPT + 99 others); Wed, 20 May 2020 19:56:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:40618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726619AbgETX4U (ORCPT ); Wed, 20 May 2020 19:56:20 -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 7773220708; Wed, 20 May 2020 23:56:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590018979; bh=b+7RuEJNy8D/QcJ0wriRra2UVUAspE2s+m1lbqHAsB0=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=l2UoEQEzsRADKyvFaNG6S8GjntlJDaSWSTSicqkJe5Jzsc4y5ZqffdC9pc/WobvTJ XDhda7d9E/z8h6aUD/kiErxVMDFOwyqPxeOOewgJg/JGosWUhzo7V6kpi1O13U8R84 6SGCtDLy2ymm24kRznYs+6GNzvx50a6okZAfHW6Q= Date: Wed, 20 May 2020 16:56:19 -0700 (PDT) From: Stefano Stabellini X-X-Sender: sstabellini@sstabellini-ThinkPad-T480s To: Roman Shaposhnik cc: Stefano Stabellini , Juergen Gross , Boris Ostrovsky , Konrad Wilk , Xen-devel , linux-kernel@vger.kernel.org, tamas@tklengyel.com 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 On Wed, 20 May 2020, Roman Shaposhnik wrote: > On Wed, May 20, 2020 at 4:45 PM 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. > > Great to see this! Stefano, any chance you can put it in a branch some place > so I can test the final version? Here it is, but keep in mind that it is based on Linux master (because it is meant to go upstream): git://git.kernel.org/pub/scm/linux/kernel/git/sstabellini/xen.git fix-rip4-v1