Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp957163ybk; Wed, 20 May 2020 16:55:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwa8bvxiokacBVjoNaoJXFJCcZkpbAsZPtyYi99+gKotU4a08J8GZgngC+YRmoqJbSspzJF X-Received: by 2002:a17:906:2c50:: with SMTP id f16mr1383083ejh.540.1590018936289; Wed, 20 May 2020 16:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590018936; cv=none; d=google.com; s=arc-20160816; b=V5reBdVGayA7t3g+EAumVjdWwIh0JZXyfS4s/wdcDSaERKy1NQ2SJ2Kp2lv8rJs84v UhV2xKgDGyinHtq+fP4V0DjWdzMpAdSDmCQT8UZOSC8UThuJKLQEoDHKoD4/cnJfwMPk 250Qp0ccgFOyhG96ehY8ja49vQHq0Sq2+EqyunNvRs2gZ+0ljT/7YC0deRvaM8vS/NJW wyOWQX/DIxuHkTgl3EBi0OHjrSmAFvxhCa8i0oNnrJBklAWQCkvDdF/sOjJdrbS+9Huz SeS3GjsBzP/bJxyYgB70weAmHiL4gml/VFvB39u7i6SeShqIQlYEYPzV2t56Fsu0i7EN w0Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=DOijWyKqJLxNwQeBpPWMP+0S3cV6uReedydSlpIjzL4=; b=oT0/n/qWB/LFFgq+e6Kx6piLekvbtg/d5nhSNo6soZ/B5sMIDJ+3W7CSsvGJwUXDMG JsbPvHw1BgnP7NfKwzCNaWJemJgqloKWOxPClDDTO8YdPpuDByo60rq2IOAnnmNE3NGl LeG/2OlmYbHd+axc3ECcfrRTZxY29mAFmHKrARDxGCv5H+Cvtr8zAMI6j6VmDzJv34yL pmjGw0zpRQo87JejpfvE6iErmEk5zN+MV+mIeM7h8XgVk+EhP/iT0dzZT2IhEPKbPcfh j4lw8mX8QuKd41d4ZhgLCJ/51k9+45Lo8pRzpemkqreNS6weD3lHKV4uKgLCEJSl0bRV 3mtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zededa.com header.s=google header.b=VKLJf4RM; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h12si2433692edn.322.2020.05.20.16.55.13; Wed, 20 May 2020 16:55:36 -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=@zededa.com header.s=google header.b=VKLJf4RM; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726754AbgETXvg (ORCPT + 99 others); Wed, 20 May 2020 19:51:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726619AbgETXvf (ORCPT ); Wed, 20 May 2020 19:51:35 -0400 Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5FD0C061A0E for ; Wed, 20 May 2020 16:51:35 -0700 (PDT) Received: by mail-qt1-x843.google.com with SMTP id t25so4169701qtc.0 for ; Wed, 20 May 2020 16:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zededa.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DOijWyKqJLxNwQeBpPWMP+0S3cV6uReedydSlpIjzL4=; b=VKLJf4RMzZ8GKwYeh9OqRDk2QVWEm43naydQATItag3YW/jJ5eONuUaMTKh0s95LEh 8rgDtmyH+0qrLmnklWxl1XWFSu7uIlM30DG0fONhO/30xcMrA6IMw8Zp6a7iaB3GIqn2 S7IELd0Jg+esKrNB0DzDvAW/KK7ppEp87NWuSKApP6O63Xls3m8QUJAMgaygYnYm93JH sKzRJByGxKC1qNzWU2XCfC5b2NoVQARZfqn0YAbJsqUIM8KzV+mGq5Cgw0NRP8JV1Gnv Pe07AyDl+Q9k1ZW888U5f6HrlwhBFRIzybMwFGkFQVHj4NGMi0CcWVFYiQP29KvhkdNb S3NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DOijWyKqJLxNwQeBpPWMP+0S3cV6uReedydSlpIjzL4=; b=f2Lw1INJkjZZkb6RU0tTEyxUnGwoBbwSQcnh/EljMQ2usJL1BmtGzhtSVvTdOYKbzq a7AQ7VeHHoReJfsSLK7G9TPLDsM3JXDb6lBndhZbU1Zv3My0l2/ryZRzkffQKbxr6ZgA lb0uaj4+GCGyn7izTi9H0pxbm/ROuvSbEe8I38FQ+3ClVIT6f5c7tnRC/wIyYtr/V5UH Givt5AOgGrtJO58PHDvsD0s4voLkIqt/ajWX/CQmmM6o9GS4N+iJ22+6ahnbcsIVaZr2 zFFlMKF6+PyGe109QKDxQ2GROXe5DazmcZlUwe9Lzubz93Y8gChxJHf9khCq4HWOPAbj Bqqg== X-Gm-Message-State: AOAM5314Sgz/4uw8UMRDxZ5tefpnl+xZ2ClCutV5MptBAtessv1deSPS sPVy581gGSCPniWBx35UeG05TO4gJ9Rn++fBYcqKUg== X-Received: by 2002:ac8:670b:: with SMTP id e11mr8166734qtp.365.1590018694922; Wed, 20 May 2020 16:51:34 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Roman Shaposhnik Date: Wed, 20 May 2020 16:51:23 -0700 Message-ID: Subject: Re: [PATCH 00/10] fix swiotlb-xen for RPi4 To: Stefano Stabellini Cc: Juergen Gross , Boris Ostrovsky , Konrad Wilk , Xen-devel , linux-kernel@vger.kernel.org, tamas@tklengyel.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Thanks, Roman.