Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5475845pxb; Mon, 28 Mar 2022 13:00:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGiTL/VZWMIzTsfRKsbSCFoecr3hAz6kMQihevhLUpR8UhFgnogUiTHHDZtY/3veILXUcC X-Received: by 2002:ab0:77d5:0:b0:352:42d7:88c2 with SMTP id y21-20020ab077d5000000b0035242d788c2mr12983769uar.1.1648497658855; Mon, 28 Mar 2022 13:00:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648497658; cv=none; d=google.com; s=arc-20160816; b=jEi/tTaORF9yXv5EafBOPBXyISCwn5jApsu9z4m7u7NN25MiS41/TV75MXhOLqBHrA F0Lj8eKcnDl1Zy32fE5SPtQUB0CWAoZSFVSNFcgVcVKH6mSZNdAtV4Z3fOK5zU2VoDga Dj69CS2G/gCTD/gEhO4BqpbiX3w3prvbYB+IsmpeOKhiz5PxV99XnO9XzFxvvoB+WtMf ByMF58V9wagKay1MDNimCNfldImosH9Yin6phf4/6bKZCV8XS3/So3iwxk1/5iFmT23+ H94FRZ+YfQXqsUjKZMnbaSXo9O8FA5JY+CG/iqVri+phGVN1gerx3MSUCOBSJPkwV68t zoUw== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=nJO5E5YD857Be4i83ypHN59i/VCIHMrXJalTXZF8ChM=; b=DZbwfrAqE2FjRl8NXxgY+1cNvBWeeheG6mAyem0d7WIFFbnAoMjNZFPuJGoPcuioDl WSjZeuf3ED824SlATtcQDxTH7hBk5FPA1C1bWdo7kk5mLEpB/SAPw1cUZbLiiHln5XXw RE9U/W09FQ9m58vk2zuJKIIN3mInuB1fdhKDcdU3JvdPKpIcCqU7MfXdNXZq6Ezs/SIs rO5wSJ83kmqN+Xe67dOU8liHtqrsNXMzvF1i2kdvFtyRPdio0MiLG16uVZmZNqiktQc9 bDqLUop0/cHlAFwDxKkU4CFKadgvvU719gQ2vgUEypMZhvBxQKdYR5Yx2nOiWXQm6yeB kgeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=yK20yxad; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q126-20020a1ff284000000b0033fbfabcc13si3003840vkh.162.2022.03.28.13.00.42; Mon, 28 Mar 2022 13:00:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=yK20yxad; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240002AbiC1Jw6 (ORCPT + 68 others); Mon, 28 Mar 2022 05:52:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240015AbiC1Jwu (ORCPT ); Mon, 28 Mar 2022 05:52:50 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4D504F477; Mon, 28 Mar 2022 02:51:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=nJO5E5YD857Be4i83ypHN59i/VCIHMrXJalTXZF8ChM=; t=1648461070; x=1649670670; b=yK20yxadnBzN8+9B1mQwJU3zPiDgzvgZdc6u8IMOow3L36F JN7CgNZvilXkGCxHZF3v6gt8pCZRES6bh4hP4gsxSuNeSuEJCG3DTpkSLLQ9dscCS0MqHoSvmjibe nCyBHIPgyrCibtGVlDv45CQbNwt0wJityVt1jRZzfomB8sptqE7XqKUm03wjBAz6RdsyTf2jJkVYH oV+6U/yWl/7iZIAwTENCotrfMAEnsWrdPzvBdMpZksjbjyldCmVxKdPyb0723wZd3ZBIxgzE24ZjO 6pQTptAn6sIMyGZU+iIuB1eHqvW9/BWUPuw7+62LJoQe1pnnvcmoLmOSNGemSIvA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.95) (envelope-from ) id 1nYm1Y-001X37-2H; Mon, 28 Mar 2022 11:50:56 +0200 Message-ID: Subject: Re: [REGRESSION] Recent swiotlb DMA_FROM_DEVICE fixes break ath9k-based AP From: Johannes Berg To: Halil Pasic Cc: Linus Torvalds , Maxime Bizon , Toke =?ISO-8859-1?Q?H=F8iland-J=F8rgensen?= , Robin Murphy , Christoph Hellwig , Oleksandr Natalenko , Marek Szyprowski , Kalle Valo , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Olha Cherevyk , iommu , linux-wireless , Netdev , Linux Kernel Mailing List , Greg Kroah-Hartman , stable Date: Mon, 28 Mar 2022 11:50:54 +0200 In-Reply-To: References: <1812355.tdWV9SEqCh@natalenko.name> <20220324055732.GB12078@lst.de> <4386660.LvFx2qVVIh@natalenko.name> <81ffc753-72aa-6327-b87b-3f11915f2549@arm.com> <878rsza0ih.fsf@toke.dk> <4be26f5d8725cdb016c6fdd9d05cfeb69cdd9e09.camel@freebox.fr> <20220324163132.GB26098@lst.de> <871qyr9t4e.fsf@toke.dk> <31434708dcad126a8334c99ee056dcce93e507f1.camel@freebox.fr> <298f4f9ccad7c3308d3a1fd8b4b4740571305204.camel@sipsolutions.net> <20220327051502.63fde20a.pasic@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, 2022-03-28 at 11:48 +0200, Johannes Berg wrote: > > However, this basically means that the direction argument to the flush > APIs are completely useless, and we do have to define something > new/else... > No I worded that badly - the direction isn't useless, but thinking of it in terms of a buffer property rather than data movement is inaccurate. So then if we need something else to indicate how data was expected to be moved, the direction argument becomes useless, since it's not a buffer property but rather a temporal thing on a specific place that expected certain data movement. johannes