Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1772171pxv; Fri, 23 Jul 2021 17:30:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu6hT7tJV1PcXqZaUAuyjN6e8ZKFKszfy6fyikICsPycyMN5dIpiP5AKqdhiTVkhkCwZu+ X-Received: by 2002:a5d:925a:: with SMTP id e26mr5822558iol.195.1627086609638; Fri, 23 Jul 2021 17:30:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627086609; cv=none; d=google.com; s=arc-20160816; b=UZa+mZmsMbZmV+gs3VDB4eVs79glX1UzU3db2vmzUPYysr2HJwMrW+ITROtBHhzWHl C2XqO673RhODaL37guI5X0mqkY987bZU7tuIj8z6vGRnu3DDnBu0hzdLNXTTyMHm3jIh pPSWyrFA4kg4E9JmFnSpyO2Lg2Ns8cW5uHkOiSuEg1vPqCakxP9/dPBfS6HniQDH/s+u evguTjEbISEH2h3fReb5Zm4gUIIeVyGDMQoi9YUaiA8gMmTDbt4UdYskgZDwETCsdM9o lcllxaiFrESukXzOg3YbDW41nxvZLNSAnsPZV72oZB568PsaUutJr9+hwgldvJZbWI63 HAMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=yUR9vJJVBZ++4KfjLkcZVAYSvkA3ayEGS4PyGfLalPM=; b=deNG38kJJbTmR5Jl8AGgIqCaTivm0xiKDFyUNs2SVww1IcY/qUNoRYuTu6M9/8hteO YRDuT89VrPXu0kI2JEa7omF95LXS4MKbztNxWmjO0Bw64Wbzsu9FEikNNravMfZ7H8v8 NFV1pySIaYzndsCJvccH++7tqQY8+1ukQinQnxYrxNeRSr1BY6DKrPFE2h3bIiakZ3io 0VoXg8l1/47DlNfxALPKV9ZSTUXRlH9jTXL3dt+FrPrGU+5Yv6L8jt6QunEU1BiIPLcV 5Xq490ALYnIsQmL9Bu45JdwdXEoGG0ISVnCPVo0nFW6fwpRXAT7UMJx2W6jfsEmTJ7pE 0Ohg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fEg7jmTI; 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 f17si33647842ion.28.2021.07.23.17.29.48; Fri, 23 Jul 2021 17:30:09 -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=@gmail.com header.s=20161025 header.b=fEg7jmTI; 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 S233413AbhGWXr3 (ORCPT + 99 others); Fri, 23 Jul 2021 19:47:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232724AbhGWXr2 (ORCPT ); Fri, 23 Jul 2021 19:47:28 -0400 Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A20CC061575; Fri, 23 Jul 2021 17:28:00 -0700 (PDT) Received: by mail-qt1-x82b.google.com with SMTP id h10so2837360qth.5; Fri, 23 Jul 2021 17:28:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=yUR9vJJVBZ++4KfjLkcZVAYSvkA3ayEGS4PyGfLalPM=; b=fEg7jmTITwuBlSObLCFYUgVdaZDKJo3E9aqB9Xs8g8wePAAwzjlXTfYPChZoE60gPy GxArM5zAYk22cjsHQiobsf4uDInsfcVjl6o5Uj7n/h3qAGesmatZS+tPp790DXpEsMCo Nw37ZtOfkWZiO+ROkp4UIZv3Yp69+x1iVegf1OsXbwvthf4sq/9icxsp+2UN6hE3ZMin YMmX6/Y0B8g+L6g0PSwp1SnwnkNTW41BYPWka4qE7h+0JpF9CzBwnomLzuopBGS0boXg EeNTihTE+EgswZv1sREROSkd4cCdE/PkKX4lrZ91gzjsgttwNV/D5Z9wfDsra7CxBEMW aMpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=yUR9vJJVBZ++4KfjLkcZVAYSvkA3ayEGS4PyGfLalPM=; b=SuZrmE/Kw6G4EPsE/vj9Mvn+Y8+c1hmUyZ1dsRiLPY9TGr1pDxKFcPr1mWRwwUgLr7 SjM2aC/A8xFdYIYdOa7Mnstoi2amRfotyzlqh+BHvAFl6hdYojmxCZpPbwwBkXlzv2Fo 7AdiRhoXRLr2ZZRcGjig2QKpOo+41LnkgPWPKWvx2734P0N2rfbvXMBxnCa45+PzX3d2 d67n6k9JrMHdeV+EtoqZczms+H4TaM3LlyikEWZPqpB1kzrUw8GtbdCBgG5pca6plJ2W cbvdVso5B90ouNtXiROERVOPm53lCu5pCAJLvvYjXbt+Puhb9L/Kw8Te0hkAon87vzzf OQZg== X-Gm-Message-State: AOAM530d4jnEae7G7MBikHQGVplEqfVxcC6sI/neNk9TDXWjGLLazZy+ Qva8iaNz72siVoWyQviJaCE= X-Received: by 2002:ac8:584e:: with SMTP id h14mr6051271qth.339.1627086479562; Fri, 23 Jul 2021 17:27:59 -0700 (PDT) Received: from fedora ([130.44.160.152]) by smtp.gmail.com with ESMTPSA id bl41sm4445922qkb.17.2021.07.23.17.27.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jul 2021 17:27:58 -0700 (PDT) Sender: Konrad Rzeszutek Wilk Date: Fri, 23 Jul 2021 20:27:56 -0400 From: Konrad Rzeszutek Wilk To: Halil Pasic Cc: Konrad Rzeszutek Wilk , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Christian Borntraeger , Nathan Chancellor , Vasily Gorbik , linux-s390 , Robin Murphy , Heiko Carstens , stable@vger.kernel.org, Claire Chang , Will Deacon , Christoph Hellwig , Guenter Roeck Subject: Re: [PATCH v2 1/1] s390/pv: fix the forcing of the swiotlb Message-ID: 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: <20210723231746.3964989-1-pasic@linux.ibm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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).