Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp898431ybt; Fri, 10 Jul 2020 15:34:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1gKQgub66h45uHrd52IG0tpfNqQlm86r1R+uxHZ9dalS//UXYzql0AI54SVQ768kXp7wV X-Received: by 2002:aa7:d6cf:: with SMTP id x15mr77647569edr.164.1594420491564; Fri, 10 Jul 2020 15:34:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594420491; cv=none; d=google.com; s=arc-20160816; b=pOmTy9iiqW6VzqZrm9OgjEsc0DysoQnFBvQpZk0uFFm1awjyX3UX66oQxH2UbDA2Hb j6bpnPw1Y2VzKUFj8Cxfnj4ACIxWsvU7Atk85BclzmDWnOKu8qKZTDXx4dnRYDAdnun+ 6vJzFG0AHgGUi0LZy/tFIJZyjXcKW3ft0nEVT6vsZ/3SfTnJWucFiofdKapGtCuE8aw7 GCozYvmE59IzW9aTTL+Z58IPfbNVZop9zzUZCW+5dp+qXs3i75BW3zsHhAW+6nbuKC5o UEiGfjRzPr0jH0DpOTugMcJWLZDj4PPV8ZYlvQe3sPeEoSd1z/NSwpxo1pX7wYA4b3Y2 a6Dw== 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:message-id :subject:cc:to:from:date:dkim-signature; bh=IEci0YGG/EoagUpHX34kDszo4luxqz5sfPl2GB5aF3M=; b=zAzrPCm6EOqLyCK4AQT6etk6MJW8Gv99ox1DV+p9FGoBz8jRS4rAPe8bifjnrdF7RM nMNZKFDMGf9wa9t4J3asOuQbgZNOqSgo6zGDXtRhQ227SAopim3dA7sXCqBM/d0j5JI3 UT1LGkt1hPFfBZwqpZ81dQWk2+BN+AEycbLJ8R/2i3puMfiJvgjQjf0kNtqBcve97tPQ xqY1eDnUQyenyK4OmQ1p7mtSJ2wbYYEIAUimHhDFYST/2O2yCOCJ0gn3+ngoCCimZG2h obt0vj1XPC89Cn2IR781v2sNvywuBXk3o07dTSBJITpPhMCDJv+jW1jdHVNZsPl2vcgs Vy/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Pw2KlUzZ; 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 j13si4334363ejc.314.2020.07.10.15.34.28; Fri, 10 Jul 2020 15:34:51 -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=Pw2KlUzZ; 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 S1726496AbgGJWeT (ORCPT + 99 others); Fri, 10 Jul 2020 18:34:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:45778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726385AbgGJWeT (ORCPT ); Fri, 10 Jul 2020 18:34:19 -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 9CD5C20720; Fri, 10 Jul 2020 22:34:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594420459; bh=30tMeSPdpSpzi9JMvJiPg87Z492wFVcJ870fYtV5zZQ=; h=Date:From:To:cc:Subject:From; b=Pw2KlUzZl4LpIy2xtWqNZk6KKD9pfLyg08tNZvDitK+/OGlAAkx2eGh0w/G6sD1pp qR2XHpnwwbJHysHRwhK/G42ZbVPzC3jOPtnW3QqHPQmSyltqJeX0y49vaJ8+J0YM7O xNtCHhTP/6SAsY0ESmmxCgCDbFBAdbmoyzak/Mpo= Date: Fri, 10 Jul 2020 15:34:18 -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: sstabellini@kernel.org, xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, tamas@tklengyel.com, roman@zededa.com, hch@infradead.org Subject: [PATCH v3 00/11] fix swiotlb-xen for RPi4 Message-ID: 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 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) I addressed all comments by Christoph to v2 of the series except from the one about merging the precursor "add struct device *" patches. I can always merge them together at any time as needed. Boris gave his Reviewed-by to the whole series v2. I added his Reviewed-by to all patches, including the ones with small cosmetic fixes, except for patch #8 #9 #10 because they are either new or changed significantly in this version of the series. I retained Roman and Corey's Tested-by. Cheers, Stefano git://git.kernel.org/pub/scm/linux/kernel/git/sstabellini/xen.git fix-rpi4-v3 Boris Ostrovsky (1): swiotlb-xen: use vmalloc_to_page on vmalloc virt addresses Stefano Stabellini (10): swiotlb-xen: remove start_dma_addr swiotlb-xen: add struct device * parameter to xen_phys_to_bus swiotlb-xen: add struct device * parameter to xen_bus_to_phys swiotlb-xen: add struct device * parameter to xen_dma_sync_for_cpu swiotlb-xen: add struct device * parameter to xen_dma_sync_for_device swiotlb-xen: add struct device * parameter to is_xen_swiotlb_buffer swiotlb-xen: remove XEN_PFN_PHYS swiotlb-xen: introduce phys_to_dma/dma_to_phys translations xen/arm: introduce phys/dma translations in xen_dma_sync_for_* xen/arm: call dma_to_phys on the dma_addr_t parameter of dma_cache_maint arch/arm/xen/mm.c | 34 +++++++++++++++---------------- drivers/xen/swiotlb-xen.c | 119 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------- include/xen/page.h | 1 - include/xen/swiotlb-xen.h | 8 ++++---- 4 files changed, 93 insertions(+), 69 deletions(-)