From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 267F7C2B9F4 for ; Tue, 22 Jun 2021 23:04:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F28B161107 for ; Tue, 22 Jun 2021 23:04:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229800AbhFVXGl (ORCPT ); Tue, 22 Jun 2021 19:06:41 -0400 Received: from gw2.atmark-techno.com ([35.74.137.57]:38366 "EHLO gw2.atmark-techno.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229667AbhFVXGk (ORCPT ); Tue, 22 Jun 2021 19:06:40 -0400 Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by gw2.atmark-techno.com (Postfix) with ESMTPS id 5127B20D0D for ; Wed, 23 Jun 2021 08:04:23 +0900 (JST) Received: by mail-pl1-f200.google.com with SMTP id x15-20020a170902e04fb02900f5295925dbso11735plx.9 for ; Tue, 22 Jun 2021 16:04:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Zi+YumSK8qJAN2mxkpNMysen7VAorvJsTi6oKg7UA3c=; b=eFeMC7yBhGnjQkoPnr9p6YpLi+4/WF7p6NbNnQxt6JWedjIWgiea45bmAKXYMsrI3S Axyz3HyVu8zYWJSuemwyuJ3b3LMGMHDJryjlkib+rf2meOFLyBoboF9c+fOlHriN2xpJ z8TszV8Oi/UmesuQJX/Iy2hyWB2TqpqmRIe9yCOcAoDCKzURGjbgT34CxgFiTr7llCZ8 esMyLJ6zOIvlgdWjiZ88sXG5WHLlqsV8Ws1JgHFRIzzEPhV7/kz01eVHWr1/T5us+5OO HzyLBKGXXK7mE/8l4Dzub4U+E5fPVzvhkR8C0lEAd5IMwjLiRmqbo9k+V4B//KIDKRyd m7vg== X-Gm-Message-State: AOAM533FZyZfxIYNdGDtUH04xZRp63bmdDrqRDCX/jFM1mfA0Hf1ya/L D1HE/00Q1mNmlUk8/rH2UaGic4Z7W//r1ZBlzBzy6ZiR0kLvw5w9O6Eg8/HNkcbd+Ff/dSe6rFN o1C639/rcz3ujkuhEgy6u3HzKLw== X-Received: by 2002:a63:f4b:: with SMTP id 11mr931674pgp.250.1624403062419; Tue, 22 Jun 2021 16:04:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1DPt62WJkfxA5t0B59dYOyebgMR0VQB3YdAJXalVVOArvyr9AtZ9hq+qnqQudOs5PrJkKPw== X-Received: by 2002:a63:f4b:: with SMTP id 11mr931650pgp.250.1624403062198; Tue, 22 Jun 2021 16:04:22 -0700 (PDT) Received: from pc-0115 (178.101.200.35.bc.googleusercontent.com. [35.200.101.178]) by smtp.gmail.com with ESMTPSA id 206sm326731pfv.108.2021.06.22.16.04.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Jun 2021 16:04:21 -0700 (PDT) Received: from martinet by pc-0115 with local (Exim 4.94.2) (envelope-from ) id 1lvpRM-002Ue5-4i; Wed, 23 Jun 2021 08:04:20 +0900 Date: Wed, 23 Jun 2021 08:04:10 +0900 From: 'Dominique MARTINET' To: Konrad Rzeszutek Wilk Cc: Chanho Park , 'Jianxiong Gao' , 'Christoph Hellwig' , 'Konrad Rzeszutek Wilk' , 'Linus Torvalds' , 'Horia =?utf-8?Q?Geant=C4=83'?= , linux-kernel@vger.kernel.org, 'Lukas Hartmann' , 'Aymen Sghaier' , 'Herbert Xu' , "'David S. Miller'" , linux-crypto@vger.kernel.org, iommu@lists.linux-foundation.org, 'Marc Orr' , 'Erdem Aktas' , 'Peter Gonda' , 'Bumyong Lee' Subject: Re: swiotlb/caamjr regression (Was: [GIT PULL] (swiotlb) stable/for-linus-5.12) Message-ID: References: <20210617051232.GB27192@lst.de> <2038148563.21624247281621.JavaMail.epsvc@epcpadp4> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Konrad Rzeszutek Wilk wrote on Tue, Jun 22, 2021 at 05:58:14PM -0400: > On Tue, Jun 22, 2021 at 04:48:24PM +0900, 'Dominique MARTINET' wrote: > > Thanks, that should be good. > > > > Do you want me to send a follow-up patch with the two extra checks > > (tlb_addr & (IO_TLB_SIZE -1)) > swiotlb_align_offset(dev, orig_addr) > > tlb_offset < alloc_size > > > > or are we certain this can't ever happen? > > I would love more patches and I saw the previous one you posted. > > But we only got two (or one) weeks before the next merge window opens > so I am sending to Linus the one that was tested with NVMe and crypto > (see above). > > That is the > https://git.kernel.org/pub/scm/linux/kernel/git/konrad/swiotlb.git/commit/?h=stable/for-linus-5.14 > > And then after Linus releases the 5.14 - I would love to take your > cleanup on top of that and test it? That sounds good to me, will send with proper formatting after release. -- Dominique