Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp954323ybk; Wed, 20 May 2020 16:48:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwoF1LmoIEQQjlpgFnk8JCtJkqNJSoYfeRBMUXPw+Xp+oM9fTxyqWSnDtX/hQTQvD8S8Ti X-Received: by 2002:a17:906:90c1:: with SMTP id v1mr1269676ejw.322.1590018537058; Wed, 20 May 2020 16:48:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590018537; cv=none; d=google.com; s=arc-20160816; b=N9unVF0I8VmkG9waPiFASDDxF/vhE0zUFQhfuetU88Ektje6uECd51HOiwUwi3hYij f2PlJN53vHZBY+VU/52YjPHZgxSoroaLmHJyqvpzGFbrHdkjkVAFmuFzK7I8k2RW5M2s BoQuHM9lydqkixJzps+zxzuZRn4770PSbmtQ5SR1aKVKa5I1uZcV34+VfNAPbChm1obn Q5lpV4eJZ/bCSiSobxX0+X7hcBKdz0S1uIGIfxAYjS37E6ML6KMH62W812MA6a0jYaLQ gzP5t7D2WAawR1kdaYX413Hk3YAvBQbiiWUPLvjxC1V7RAQ7S8Zmz930TH8w+VqtVkal ArVw== 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=AuFB2IXceTcqHNQ61dk2dgPfSWAmzBhbSbdqkNxpIts=; b=iXiaGny+eIct6QJowBHRp8QDdCS2utkl9HllVLN4dR+0xonQaR3JQ9KNXYR82t4gtz XYUBa1eaiVuiMU3hKRs/Wsk163C26iCiuj6wK1OmolfAg8Y8FoZfSMI+j0NEX3kI+Yc3 RA65A6Ny+r0D0jHNOPQWS7PcaotwzVqYD8DMgxWdg6IkeQNf+8+241WtMPfIVP/z7ynj H2Q5uCHaSEeFFl9+9g2ZoDRH+XKkgjAK5qpf3oRm249MT33/5kkDO5nbbZ8L0veZJloi UaTcJgQSoOO1PpR9pZK5Qfx6iDvmsrwk85QQcgcrZm8gqJvnaraZDxh0XqVlvvkzex05 fV2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aFQEiP48; 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 m5si2240963eds.245.2020.05.20.16.48.34; Wed, 20 May 2020 16:48:57 -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=aFQEiP48; 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 S1726789AbgETXpJ (ORCPT + 99 others); Wed, 20 May 2020 19:45:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:36678 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726566AbgETXpI (ORCPT ); Wed, 20 May 2020 19:45:08 -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 F189F20748; Wed, 20 May 2020 23:45:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590018308; bh=ngrtvfLYBKfv8MQkCaYk8tYirfeqXPlMFjsOE/YFGgk=; h=Date:From:To:cc:Subject:From; b=aFQEiP489M9V1lc9WQ1OxfNV/2V+7N4zYIpsMfXXKumiUZCXkMtf0oX/l0ZaBRhko XXDUqKcjb3djxslDnJAwC1DX+oVg2M4ipvZyxQQ2EMXpfKDr0PuWTiEpSvLXpbWjS3 1PiciD+5N1v3vJ8I1FAXnL7M5Kig9bCT9MNlgPYI= Date: Wed, 20 May 2020 16:45:07 -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 Subject: [PATCH 00/10] 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) 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