Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2225533pxb; Fri, 25 Mar 2022 13:24:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdCjiz/iy0U9+0hiRDFOUb16s7dcOEW+7ETJg+DHuypGAdsa55MXjOBO7K74KNNtTRywqN X-Received: by 2002:a17:902:e94e:b0:154:3a4:c5e8 with SMTP id b14-20020a170902e94e00b0015403a4c5e8mr13711734pll.19.1648239864115; Fri, 25 Mar 2022 13:24:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648239864; cv=none; d=google.com; s=arc-20160816; b=PXYoQnlxkelOnP+efrfDLUdQmhHRGjgII/nM1fD29qGlwsHTIRluDbUqCeUeDqP0KV WMw/zOSKWMOuqn+B9SHUmNx9USb8mMvilpzMbdRW8pIz66Ckdx9d8Lg7K5paU/wF/JZu SRBf2NqzzKVvJ36QGh4ct1ZSF7R8scMzA9xXCd48HbJLwIbStuOLtPTpPH8Y1+za+2N+ 9idNlj9kXYfUlRSyZVFOz61IufadHGwbRmgQUDZTyM+2r9kn779/UZ9zy5bhPxjwqZCq mNpFG31zWcH/86/fbVuheFJMSRse8cl33Ruu4qWjpbPjWHbwH381KdRTJRdiic25DXFT eLww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=4MqmH9CCCrUKFAq5y+I/qeK/sNikgDEGLg2VH+hZ/B8=; b=H3T/roaV2cbnLvpx0nJ8DIeLE4e6CC7RlUyoVgSZHzvreQhJ5qzwKMrXaYjFXQdb1+ ulamcxe7YzG2SK2VzLbgRZCjNnw1SqUQiwWiSoJtI/X81YL1uPiHHBj3VJxvPhNbSHT7 yu3zwTKL5FDiZXplw7g0I707geHWzgUpcGBTcwRK/JCb0mjVhhVo3CaqtQBV8+fqa0Tl hwNPBAnRWlvSM+i/WpO/Q5quTR2hiC4v3YDhOgGYy953PRsqX4ogbDtYNgm28BZ6Tct7 FFh2CEAje/LTpEV0JR4W+eSE+TADNz3TsrnfRQYUN2iOk29216OUSYP5OjDoPzomrnKk C0+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=EEYCtzdx; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id bx8-20020a056a00428800b004fa3a8e0055si3488734pfb.268.2022.03.25.13.24.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 13:24:24 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=EEYCtzdx; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3D7471FF22B; Fri, 25 Mar 2022 12:38:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230490AbiCYThp (ORCPT + 70 others); Fri, 25 Mar 2022 15:37:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230481AbiCYTh1 (ORCPT ); Fri, 25 Mar 2022 15:37:27 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97F49261DD3 for ; Fri, 25 Mar 2022 12:21:55 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id d5so14973347lfj.9 for ; Fri, 25 Mar 2022 12:21:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4MqmH9CCCrUKFAq5y+I/qeK/sNikgDEGLg2VH+hZ/B8=; b=EEYCtzdxDwF4pZQoFLQy5R1bkbtIioQJ+didZOsq+7BOWsBdCAqNeXRuHlQHbxjkxI 6ZpgNOxAuZZNbggkh7Po3d0QcOFG1glqGOPQvM9m9QhMt25NNyLu1evDrcAPEgux5s6f doW8iQM9agqh0IgmvQNxMRNQkwdp7w1AkhPq4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4MqmH9CCCrUKFAq5y+I/qeK/sNikgDEGLg2VH+hZ/B8=; b=6LRl08f7pUAkoX25yPiQft+FGbGC6zR7/sd107QY6eCXcM6s8UXrCrfQtbuaUxAyHO MQZW8+2QM+A7TJRYS3PwQoFBM5cCy2QrqOv+hsD++kbo86YaG1N6Y7HHfWlwnAAK80px pPXGQZb8CBtJZCpe/D8Bx8ua8fEEGd2titArNtRAn58CmLqMq2FO7ZEEB9TLvxSm91ff nC/pPiiculs6Q/G4JWgBNOcizIBGDyKve1E+TtLt59eSljp63XnIGuRhg23uvwfI6eHq 07EqtOC33JrxyPZyBj218MckEuHHLCuxRH3sM0a0aKXfNw6aoCdKehYLoQXYof7rRit+ Vs5A== X-Gm-Message-State: AOAM531nsrNCroU369ASoWX69Ve+jDPUHT+S7qXSL4r6tsUdQMefWg/k tqM3HAD2pSvOn9rtbh75zeVrn1ImSvGVZy3xaUY= X-Received: by 2002:ac2:5e31:0:b0:44a:247d:6022 with SMTP id o17-20020ac25e31000000b0044a247d6022mr8688477lfg.509.1648236113589; Fri, 25 Mar 2022 12:21:53 -0700 (PDT) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com. [209.85.167.45]) by smtp.gmail.com with ESMTPSA id f17-20020a2e1f11000000b00247f8eb86a7sm746771ljf.108.2022.03.25.12.21.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Mar 2022 12:21:51 -0700 (PDT) Received: by mail-lf1-f45.google.com with SMTP id 5so14988820lfp.1 for ; Fri, 25 Mar 2022 12:21:50 -0700 (PDT) X-Received: by 2002:ac2:4203:0:b0:448:8053:d402 with SMTP id y3-20020ac24203000000b004488053d402mr8851909lfh.687.1648236109737; Fri, 25 Mar 2022 12:21:49 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: Linus Torvalds Date: Fri, 25 Mar 2022 12:21:33 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [REGRESSION] Recent swiotlb DMA_FROM_DEVICE fixes break ath9k-based AP To: Robin Murphy Cc: Maxime Bizon , =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= , Christoph Hellwig , Oleksandr Natalenko , Halil Pasic , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fri, Mar 25, 2022 at 12:14 PM Robin Murphy wrote: > > Note "between the DMA transfers", and not "during the DMA transfers". > The fundamental assumption of the streaming API is that only one thing > is ever accessing the mapping at any given time, which is what the whole > notion of ownership is about. Well, but that ignores reality. Any documentation that ignores the "CPU will want to see the intermediate state" is by definition garbage, because that is clearly a simple fact. We don't write documentation for fantasy. Linus