Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3605888rdb; Wed, 13 Sep 2023 18:18:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHu5/f6OCqjCG/599UN5KSs1J3tVQ6WeIHuEugDfd71NtUgY/++45M/kPGPT31hzeCQwWti X-Received: by 2002:a05:6a20:9741:b0:14c:6438:a787 with SMTP id hs1-20020a056a20974100b0014c6438a787mr3837139pzc.57.1694654305857; Wed, 13 Sep 2023 18:18:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694654305; cv=none; d=google.com; s=arc-20160816; b=BMAB5sdwhCZv3YCtNYkUnLmj+6EXXOSG8KKOI7ZI++SMerKGHTDYicRVNOr5yGyqUY kbBJCT6NQ4QJkg3u4A9ccHhqu1zvdb6orKO9+YWRw2Z77qZaMxzSctRxwLp2wX6CCogi yMXpRPx555qZslf/S8VujpVYJ/B0XgRr5lY+wcBWMEQUPby/nLKHTrZzTifgE/ubGzGa saD/phG6p+MGdF4MaMVvp7WgZFQwW24c6wivaPRO2I7MPGhO+YzYyfrFVctPEe7Szips pfjRWdBfHURwaFav4Ndhb2P7rUM+tKeXz/h3Lcur7Uhh9l+E2c1h/p2Tkd9/WRd+1xcN 0cfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=+brLSHxHaQwbuLZV5gqXbdwetnIZUnQiRcEf6RzzOjU=; fh=cVaBOY4pN8ZoSNZR8GgUMNq1KZ8OulbjOY4YaUNbUFc=; b=c9KvAoK6zULOEp3e2PDNkBX2dUjzLCQYmGgcCWlOiUoOJzfl7ommYY9b7HtYY63YOC qvQM2WrIhsw6yf5izxPVthcHYrxyUKv+8Dk3zCPiVYo6ouhq/TcnQ1Vj6MFjwetdxqwE dCMXht6Glc1yBzfEZPrLZycKmYhZtigaewZf0pn1wVIRh33F5jf/hfo+bHRewX8STHtm /Up2FenoV6EFgXVPLNnrpjYVdA6LTP2Uz5UppjpHCCVSmG9aYQqTuDSleyvg1ULdZnnw YNF6Jv4s9MaPxdd1bJl+5JKYELms2h3nWFYhIc9h7AgbaJwBvnHjtCghV2YgUC6ho0Pk /bPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tesarici.cz header.s=mail header.b=vndP0sDB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tesarici.cz Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id ki8-20020a170903068800b001b23d721059si464187plb.317.2023.09.13.18.18.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 18:18:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@tesarici.cz header.s=mail header.b=vndP0sDB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tesarici.cz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 3BE4981E14FB; Wed, 13 Sep 2023 05:27:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240474AbjIMM1F (ORCPT + 99 others); Wed, 13 Sep 2023 08:27:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240455AbjIMM1D (ORCPT ); Wed, 13 Sep 2023 08:27:03 -0400 Received: from bee.tesarici.cz (bee.tesarici.cz [77.93.223.253]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30AD419A8 for ; Wed, 13 Sep 2023 05:26:59 -0700 (PDT) Received: from meshulam.tesarici.cz (dynamic-2a00-1028-83b8-1e7a-4427-cc85-6706-c595.ipv6.o2.cz [IPv6:2a00:1028:83b8:1e7a:4427:cc85:6706:c595]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bee.tesarici.cz (Postfix) with ESMTPSA id 10A4116D705; Wed, 13 Sep 2023 14:26:57 +0200 (CEST) Authentication-Results: mail.tesarici.cz; dmarc=fail (p=none dis=none) header.from=tesarici.cz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tesarici.cz; s=mail; t=1694608017; bh=l2P3vuYEXp8YYXF7TcGLCAflguOs4M8Iw9ghGrNwm+Q=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=vndP0sDBhJr4VQYNperhPevNZ5jfin8s2dQrJTBbaQUNEInznbdhVMPC1/bOej7lF COgkx2U4rtksBq0xIoHqsE+Lv1yUeodoyllWJmycFGli6as2M44hfwCOESMtGwmCxg NyO4Z6Hm88nLvkemT5wKU+MByf0sB+8rmDDzwzLpVqbePStPt3tpTbusWwY1b1qblK o6Adl7XpZLspGEWdc/arJDsCJWo7hIVZlqyFogJ0hPBPNqz60jpxi0QlmWZll2yuyd eZ53H08QGbFBX6CfBjHo+Ug92ljptB5zBSDoRYmjkbcvgXWulBNVqUkf30BpONXHtU qvc0lfwRzQRJQ== Date: Wed, 13 Sep 2023 14:26:56 +0200 From: Petr =?UTF-8?B?VGVzYcWZw61r?= To: Christoph Hellwig , Catalin Marinas Cc: Marek Szyprowski , Robin Murphy , "open list:DMA MAPPING HELPERS" , open list , Roberto Sassu , Jonathan Corbet Subject: Re: [PATCH] swiotlb: fix the check whether a device has used software IO TLB Message-ID: <20230913142656.29e135d6@meshulam.tesarici.cz> In-Reply-To: <20230913121403.GB4544@lst.de> References: <20230913114016.17752-1-petr@tesarici.cz> <20230913121403.GB4544@lst.de> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Sep 2023 05:27:05 -0700 (PDT) On Wed, 13 Sep 2023 14:14:03 +0200 Christoph Hellwig wrote: > Thanks, I've applied this to get it into linux-next ASAP. I'd love > to have reviews before sending it on to Linus, though. Fully understood, given my past record. ;-) @Catalin Marinas: I have added you to the list of recipient, because you spotted some issues with memory barriers in one of my previous attempts. Petr T