Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3771073pxj; Mon, 21 Jun 2021 06:18:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzC7Gq4KHzExM0906R5n86cECTU9AEL2zALSKfYKHdc+aTfrBLo2gX/yT0Z/UodsgA9p155 X-Received: by 2002:a17:906:9511:: with SMTP id u17mr17386377ejx.440.1624281515180; Mon, 21 Jun 2021 06:18:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624281515; cv=none; d=google.com; s=arc-20160816; b=EI3e0mMR+mHfZVUpz8apAoli8VAVA4uwb48xOZo3wK0OOwuswZppf4/PFvcAPKI18n VIHj0qUzWTvB9imM3N4KWmi6vYCyQ7hE51TmZVZeGfNiJjm9mE9hh2N+Dhc/TWxAdJJ1 +zXI+K56zzpUP2MAgVkkYqrCAGdle9AqlPmzu5rkkODbIRgZRb5iWV9GDQfj4QbQVqje nyF4I8p9bicQB1qbSWTqydwSlYqWpJBWJbrpmQ9VijuFy9Z7weFlXQ9GhiIlJDBxS9oA Zno5KIQdVCFM6bmRLfdhb91xOnzn8nAnOAghhwezROSenc6Z0qtHPNr1oDO/tIsJshqm j1NQ== 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=9XTlsTLlkBEYe8ol8LyyT7LEeIfS9A4b08iDrrekDpY=; b=ZTYFGzbQNY8WDFc2a75MoOVrpRJKI5Mh9teu2ruUJXC9wrMkCj7Yj113s4rWL+lq7a GLsCcNVJxcmkNImk3HDCPA4i8V2Ee2n0reQvkTjLYn2phOpa1d92AR+N/fGg8E4WJkY6 QtqDjodP7xU1MjHei1YgiJQbt5phqD4yuuaIL3CoSfLF0Txw5NgS4w+QQGqviCfx3Pav h83LxH8g+qUf4ysNbe3Q/4eJxjyz4Flqh3IKJ0BCfE1Lnt8QHlphjtXSQU/qAzB4J91w ee/iyLdi/29km6ldxUn5U6UCQUGJYUodlM3aLZXMW9GfWwdZYVIoSxYdEYvsOBvC4mh8 K7JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PIRykwMf; 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 o1si16039503edt.289.2021.06.21.06.18.12; Mon, 21 Jun 2021 06:18:35 -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=PIRykwMf; 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 S230021AbhFUNTG (ORCPT + 99 others); Mon, 21 Jun 2021 09:19:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229876AbhFUNTD (ORCPT ); Mon, 21 Jun 2021 09:19:03 -0400 Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C13EC061574; Mon, 21 Jun 2021 06:16:48 -0700 (PDT) Received: by mail-qk1-x729.google.com with SMTP id g4so29036698qkl.1; Mon, 21 Jun 2021 06:16:48 -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=9XTlsTLlkBEYe8ol8LyyT7LEeIfS9A4b08iDrrekDpY=; b=PIRykwMfGGjSO6qdHCfr4joaEAUov0orGAxskj8/4IwUE9JkgEGsPwyZ4uVFVrCAKl gx4DI7WYSvqTHffT5X+Yqq7iWyWKCZzRbfivFCbeot6s2hriwbR/cqsSdiQ2fANdMWbS RE1GOcwvRGDnKpHdSwIsd2rVyxFwLft3HAYsnVy9UqMqSJvYBq7FMJ5vcw1qcdZRByvT i+c8Sa1aGBsX7xFow/gE44AahIVvryWi12YvetWwUgUeAjK8cCWdBLavaBGouC0FrV9D Lzx08oHVaXI3PmiPkIXTRUZKdNYRjxq56r1N9u50YiLgBx3xf5NXgh8tZONpzQkKHmUC zx+A== 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=9XTlsTLlkBEYe8ol8LyyT7LEeIfS9A4b08iDrrekDpY=; b=VxDXY2T6qPsP1SQ8vCI9azPPhjrjYzoJqjA7XCLYCFRiodIY2azBUUyMTUQ6PhX0tZ zKgF3eoHvd7/kzmGa7tU2wKt4kLHEh9navz+PbM7zI/AZNWYE+X0t2tWi8sEglMFUxyk odzm1NIdMOewqLTUlHdlMb4gSCY2u/4IdTc4nqo+j7zSi8kXleQug2J6b3asOt3xzjN8 bkYOS5Br2/9v0y/+JMb4rci1PseaLBKrVjh5v06aqUvMS3Hx+4YvIvlnR2VIkl5oF9/y emB/K8B5YQWKqbC2z9h7IxlZpHcZna64s6vqRf48HMvjE4JH/b4JDaxRtY1JgXCU48+j Lw/w== X-Gm-Message-State: AOAM5318OE43aO359K+IGzuhHXvW+G9LgwIRZbXA3aNgT+qY+XNDrDNG I7N9UoB3zaGHh5zAQ2aYO1w= X-Received: by 2002:a37:8407:: with SMTP id g7mr23434618qkd.123.1624281407788; Mon, 21 Jun 2021 06:16:47 -0700 (PDT) Received: from fedora ([130.44.160.152]) by smtp.gmail.com with ESMTPSA id h12sm9710218qkj.52.2021.06.21.06.16.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Jun 2021 06:16:46 -0700 (PDT) Sender: Konrad Rzeszutek Wilk Date: Mon, 21 Jun 2021 09:16:43 -0400 From: Konrad Rzeszutek Wilk To: 'Dominique MARTINET' 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=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 21, 2021 at 01:14:48PM +0900, 'Dominique MARTINET' wrote: > Chanho Park wrote on Mon, Jun 21, 2021 at 11:55:22AM +0900: > > Sure. No problem. But, the patch was already stacked on Konrad's tree > > and linux-next as well. > > > > https://git.kernel.org/pub/scm/linux/kernel/git/konrad/swiotlb.git/commit/?h=devel/for-linus-5.14&id=33d1641f38f0c327bc3e5c21de585c77a6512bc6 > > That patch is slightly different, it's a rewrite Konrad did that mixes > in Linus' suggestion[1], which breaks things for the NVMe usecase > Jianxiong Gao has. > > [1] offset = (tlb_addr - mem->start) & (IO_TLB_SIZE - 1) > > > Konrad is aware so I think it shouldn't be submitted :) The beaty of 'devel' and 'linux-next' is that they can be reshuffled and mangled. I pushed them original patch from Bumyong there and will let it sit for a day and then create a stable branch and give it to Linus. Then I need to expand the test-regression bucket so that this does not happen again. Dominique, how easy would it be to purchase one of those devices? I was originally thinking to create a crypto device in QEMU to simulate this but that may take longer to write than just getting the real thing. Or I could create some fake devices with weird offsets and write a driver for it to exercise this.. like this one I had done some time ago that needs some brushing off.