Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp352007pxk; Thu, 17 Sep 2020 05:02:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykTMJcry0g5hixLVfW9DQNBvSSr901xYV6CDju5gNzdOS3h6ru5pHRwtICvOQz61VqHCyr X-Received: by 2002:a17:906:a2d2:: with SMTP id by18mr29934300ejb.37.1600344126334; Thu, 17 Sep 2020 05:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600344126; cv=none; d=google.com; s=arc-20160816; b=NNw/HreVrW96NcLwPQ8sx++BFhaxdADoF64J9ZLb7XDtWIdGujqXCZ/ahA3nco+ytK a94XgL06nuWk60AiDbztyLjHKK/lPdu2k36d+h+lxuPx+J69uypG14irbrxkKuTv0ufI XH3DjSBCpsRDftWqc/ZkeCUCBZdm+kjiV4Y21Un7cnhAmvVUEEA0uQwUn+rqRfuSBdi1 zQRxn5K5agr+2yqMZU0XTZz+4JrRRBOCc8lJdGcT0dCMYyLqF7gz8+6yExVqNBT3DJ4b HYdkqmAzl2v96tOfx1y8DuBsJDNwxc3E1xT5Sg1acvwa/IAvUuuwS/bv6TVgQyaY6BtT ZQmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:subject:references:in-reply-to :cc:to:from; bh=b213n2K96MVj+1jdcxfC+ooltTawhvSwpfxNFRd4Cjk=; b=W+mPJ3efzevaMZRRwnmyOamxhZrZpIQM0seS7PZT6JOXlVEO03CCoOdvv8kfV3b5Se nSFKZAJR2INULfupBPIIsMaoBM1EP/cKqRnrYzh8+NOnw6xnzV9I+mCeQL1c/EPBT/2o oigovh4UwPkt3OQE4gB88L/1nGDOhsPCFZXEw4CBaRO65TY0n+zZewZKJX3MuYPh494Q rOo/F/zTjZiiPj3IpxBqmGoXjxGWxhMWqEJb6GsLFemzKyWiUzJNGXB9fDZGMFFpWTXY e8Oagy6OkPfMt5TVg1wqKRQ7bD8iU2fF+5DL0us3WIKB4UgRnVizPNbi9mePKCCgxlnw v7ww== ARC-Authentication-Results: i=1; mx.google.com; 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 m20si12112163edv.189.2020.09.17.05.01.42; Thu, 17 Sep 2020 05:02:06 -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; 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 S1726989AbgIQMAW (ORCPT + 99 others); Thu, 17 Sep 2020 08:00:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726627AbgIQL10 (ORCPT ); Thu, 17 Sep 2020 07:27:26 -0400 Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 145C1C061788 for ; Thu, 17 Sep 2020 04:27:20 -0700 (PDT) Received: by ozlabs.org (Postfix, from userid 1034) id 4BsZSM4Dglz9sTW; Thu, 17 Sep 2020 21:27:15 +1000 (AEST) From: Michael Ellerman To: Thiago Jung Bauermann , iommu@lists.linux-foundation.org Cc: Michael Ellerman , Christoph Hellwig , Satheesh Rajendran , Robin Murphy , Ram Pai , linuxppc-dev@lists.ozlabs.org, Konrad Rzeszutek Wilk , linux-kernel@vger.kernel.org In-Reply-To: <20200818221126.391073-1-bauerman@linux.ibm.com> References: <20200818221126.391073-1-bauerman@linux.ibm.com> Subject: Re: [PATCH v3] powerpc/pseries/svm: Allocate SWIOTLB buffer anywhere in memory Message-Id: <160034200698.3339803.12661483575080905618.b4-ty@ellerman.id.au> Date: Thu, 17 Sep 2020 21:27:15 +1000 (AEST) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 18 Aug 2020 19:11:26 -0300, Thiago Jung Bauermann wrote: > POWER secure guests (i.e., guests which use the Protection Execution > Facility) need to use SWIOTLB to be able to do I/O with the hypervisor, but > they don't need the SWIOTLB memory to be in low addresses since the > hypervisor doesn't have any addressing limitation. > > This solves a SWIOTLB initialization problem we are seeing in secure guests > with 128 GB of RAM: they are configured with 4 GB of crashkernel reserved > memory, which leaves no space for SWIOTLB in low addresses. > > [...] Applied to powerpc/next. [1/1] powerpc/pseries/svm: Allocate SWIOTLB buffer anywhere in memory https://git.kernel.org/powerpc/c/eae9eec476d13fad9af6da1f44a054ee02b7b161 cheers