Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1473693pxb; Fri, 6 Nov 2020 10:28:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDtbhUZCYoB3qvXv3Y9S3yB2anF5JJ5ZqoWKllFiEizGEPxi3djN6637R5zXCWiMuKe8pV X-Received: by 2002:a17:906:49cf:: with SMTP id w15mr3477385ejv.252.1604687332620; Fri, 06 Nov 2020 10:28:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604687332; cv=none; d=google.com; s=arc-20160816; b=to/OWQNyKq+v5NZi1Z6nRtnCRLrO8JAtY8UoSummLTHmh27wabEXpwQP8EQfcFa0Td 8p24Kme79SC5uvCnB3nEjcHMWklJNAkFNDOxHmV9MKHvaDfHzTHiizMv6WIMjJXQkMYY Wx3ynPnmmnsCqlV9TYd7DrJRgo/5ZYPVNn3HqfCWx49TNRBfxAovd2umyLKeeK7SWksU L1zgJs4slxRTNY4YgkUSTMeEKM+LJGs0OH1ZbfEAOr3nP7bymd9pEz56pT+OCd921mB2 t13wUQdQje2tTGTWexxvjAWi8b821AA5oFb78McjWQAwQgbspgLDVptdbgBGIuhwd344 9HxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=UG7H8nlw1WvfXUaL5XorHpfQqnmhVFxaOGG9cZNx1Dk=; b=ICWOS1UBnQoyv/U4QQNrYMAdW8ODitSQPGVGc8ecKjuM//Mj2H7+tMZASNfl5mebN6 ADNCwP5yRXNTHQZESRUqh6wfxHfItslZlbaq1BXKvha/iZIzxGW/ifjHBoiCA4QwfjLM /aBHgzlAggkoSn4100ZXyaD/TJYtSW8NddAzWWOBARI3w2+J3MB4DjYn9/+cURT6Vzdk Lb6oRQ91O6fq0+zYoQLm19C2kRMSGEDZhkssYJZBnJxCMG6JmGzXjenGBI8jiWAtIl/v ca0K4Ll0zd5TaNjLZqYPFfM2+05nr2AYkvejFwKtKecLBzqdK5vn8tb5wwVZ6z/5A571 tKbQ== 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 y14si1382833eje.729.2020.11.06.10.28.28; Fri, 06 Nov 2020 10:28:52 -0800 (PST) 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 S1727905AbgKFSY3 (ORCPT + 99 others); Fri, 6 Nov 2020 13:24:29 -0500 Received: from verein.lst.de ([213.95.11.211]:52626 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727872AbgKFSY3 (ORCPT ); Fri, 6 Nov 2020 13:24:29 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 9DA7368B02; Fri, 6 Nov 2020 19:24:24 +0100 (CET) Date: Fri, 6 Nov 2020 19:24:24 +0100 From: Christoph Hellwig To: Konrad Rzeszutek Wilk Cc: Ashish Kalra , hch@lst.de, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, luto@kernel.org, peterz@infradead.org, dave.hansen@linux-intel.com, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, brijesh.singh@amd.com, Thomas.Lendacky@amd.com, ssg.sos.patches@amd.com Subject: Re: [PATCH v3] swiotlb: Adjust SWIOTBL bounce buffer size for SEV guests. Message-ID: <20201106182424.GA9330@lst.de> References: <20201104220804.21026-1-Ashish.Kalra@amd.com> <20201104221452.GA26079@char.us.oracle.com> <20201104223913.GA25311@ashkalra_ubuntu_server> <20201105174317.GA4294@char.us.oracle.com> <20201105184115.GA25261@ashkalra_ubuntu_server> <20201105190649.GB5366@char.us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201105190649.GB5366@char.us.oracle.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 05, 2020 at 02:06:49PM -0500, Konrad Rzeszutek Wilk wrote: > . > > > Right, so I am wondering if we can do this better. > > > > > > That is you are never going to get any 32-bit devices with SEV right? That > > > is there is nothing that bounds you to always use the memory below 4GB? > > > > > > > We do support 32-bit PCIe passthrough devices with SEV. > > Ewww.. Which devices would this be? There is still some new broken shit like that that keeps appearing. GPU is pretty famouts for supporting less than 64-bit addressing, even if it isn't all the way down to 32-bit.