Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4374175pxv; Tue, 27 Jul 2021 06:02:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8mzopHz7UnBI5PgHYWwNEOgBGQOO4xS6mSuQrUwnStVqX/Em4S5K3UcoYcuqAUFuqIah9 X-Received: by 2002:a17:907:7203:: with SMTP id dr3mr21541070ejc.52.1627390924837; Tue, 27 Jul 2021 06:02:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627390924; cv=none; d=google.com; s=arc-20160816; b=D2w13nj7oj6afPUwx4a4TKdFNWuiBI7pHEBywlfLonMmfHKz+mLz0ZX8uRVJMs/lOb 4CyWfvdq6noXpqxhrWX4kkavDuoB/JqYjisokyUnZO4KiNAv/JACoNMQGgeeAeXdYmyR m5MrEjOAJwTrB+Q4l3/Gc/O3PJYxakPU4CVpyS1eeRJUKbKMxrrHywH6bv8mjv0lITm5 ch+n7ZVqY46zcAfFszuVlzJMMtbYIkRzuMFI/JsF40fnDYJ9+iNP/tRJxiTrJYZFaA0K rvomnMwRuz34TQLkRDqf+TxwuzuhlTZm50yw6ZGJdRO8sCLn0+gL0ewd9H+O+n2RG7QH WnIA== 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 :dkim-signature; bh=PqAWlWQfMA+gSfOtl4e1E4griUDLNB3R+lHkKc+OzyU=; b=VAaOPTpYnyqqh/IdXMUSDnTn3oXjD8meUWG2hMlER2Nze88ddzbO1JXrGZDR8jnPCL yrn6qupOri12gerhdkz+3njC75L+KDVMqKYQFyUQs7Zht6sJBeDszhQ1GXC+2o2TBn5b lfz3Jzhvq9ko7M+m9KTiNs4sFthBUcXafsWZaAuKMfj1iZ/ozDg/0oH/7iPpgceJ6mn6 +tfeY5a5h13WN+tZn4BlnMRkPAHbvRHDC4SZVf8bViY88G102L+1vcTpy4s4p6tfAW/x ZDmp897n3pjQ57GNy6Cra5i5VaetpZqTQshsHykjlrOh/UK6S2DGtoorxQxsoDMyX4wL hSYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="rw/J9LN5"; 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 d26si2604023edp.221.2021.07.27.06.01.41; Tue, 27 Jul 2021 06:02:04 -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=k20201202 header.b="rw/J9LN5"; 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 S236564AbhG0M6B (ORCPT + 99 others); Tue, 27 Jul 2021 08:58:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:47582 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236320AbhG0M6B (ORCPT ); Tue, 27 Jul 2021 08:58:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D5C54610D0; Tue, 27 Jul 2021 12:57:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627390681; bh=upwwg6+mtRT400miON1xGrEGEisD4k2v28v1j+AGpgk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rw/J9LN5ZJi6FHPU0vYJRZoIqMhSvG1QeCOj60BHUE7+SJtZye8gyJEYrRz5EtlNC tNWc1WCz//hQlth7tKzJHPdH/1GTYUjV5Hy1EwYpE3ptni29hD3gYAmgmXwnsS/wGk cuFdxRNV/LuSNGQbJQMHybqlrl4e37lEUMg7dOfw3Z42qaU+AgqSzKIgcNqeroEKHe 8I8GXS0LxK+uzm70wggraYVKBq9FwLrh16CDsIaWb5u6jzcMkjv4bed25MeufxnXjD 5rsLHSY3ZH4c3GBzvnqGLWMHFR6qS7H3hSLV9EVmz+VbpjNOZ3bVlEjBjJO1xaqU3T DVtgQq1zSL2Bg== Date: Tue, 27 Jul 2021 13:57:55 +0100 From: Will Deacon To: Christian Borntraeger Cc: Konrad Rzeszutek Wilk , Halil Pasic , Konrad Rzeszutek Wilk , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Nathan Chancellor , Vasily Gorbik , linux-s390 , Robin Murphy , Heiko Carstens , stable@vger.kernel.org, Claire Chang , Christoph Hellwig , Guenter Roeck Subject: Re: [PATCH v2 1/1] s390/pv: fix the forcing of the swiotlb Message-ID: <20210727125755.GA18586@willie-the-truck> References: <20210723231746.3964989-1-pasic@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 27, 2021 at 02:54:14PM +0200, Christian Borntraeger wrote: > > On 24.07.21 02:27, Konrad Rzeszutek Wilk wrote: > > On Sat, Jul 24, 2021 at 01:17:46AM +0200, Halil Pasic wrote: > > > Since commit 903cd0f315fe ("swiotlb: Use is_swiotlb_force_bounce for > > > swiotlb data bouncing") if code sets swiotlb_force it needs to do so > > > before the swiotlb is initialised. Otherwise > > > io_tlb_default_mem->force_bounce will not get set to true, and devices > > > that use (the default) swiotlb will not bounce despite switolb_force > > > having the value of SWIOTLB_FORCE. > > > > > > Let us restore swiotlb functionality for PV by fulfilling this new > > > requirement. > > > > > > This change addresses what turned out to be a fragility in > > > commit 64e1f0c531d1 ("s390/mm: force swiotlb for protected > > > virtualization"), which ain't exactly broken in its original context, > > > but could give us some more headache if people backport the broken > > > change and forget this fix. > > > > > > Signed-off-by: Halil Pasic > > > Tested-by: Christian Borntraeger > > > Reviewed-by: Christian Borntraeger > > > Fixes: 903cd0f315fe ("swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing") > > > Fixes: 64e1f0c531d1 ("s390/mm: force swiotlb for protected virtualization") > > > Cc: stable@vger.kernel.org #5.3+ > > > > > > --- > > > > Picked it up and stuck it in linux-next with the other set of patches (Will's fixes). > > Can you push out to kernel.org? It's pushed to the swiotlb tree: https://git.kernel.org/pub/scm/linux/kernel/git/konrad/swiotlb.git/log/?h=devel/for-linus-5.15 Since none of the restricted DMA series is in mainline yet, I don't think it's needed anywhere else. Will