Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3796348pxb; Sun, 27 Mar 2022 05:40:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwG77/zqOHvPkPrPLOMQemD1Aq7/bmg3CpF2mAqGoa3L2CTCCk7mqTC4LoWz/qZjlB5hoAc X-Received: by 2002:a05:6402:1259:b0:418:e674:5718 with SMTP id l25-20020a056402125900b00418e6745718mr10242618edw.69.1648384812105; Sun, 27 Mar 2022 05:40:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648384812; cv=none; d=google.com; s=arc-20160816; b=esSCpWJ6F4vTziIijU2xQbBmr2IMZh/iEXTJpPEz3KaVcqJC7NDcx5wn8RrbNvfLxY yuM7LUy5CCg5Q07iywgxIyzIz5erRN0Tm/krT5SNWNybxCBircVVH849wJ7PTOkaJEBw c0vf4YawvJRxTQeoYjuFRI9PFXQwaxnknj2KFC5O+yWYNmgQ78lPKkiVws+LVd1STaew I1A8Sv+3pYu5oPSB+OFg+Yxkaey8576NBDIttMjy4R4lr/L/nXTBZNfJr4Uh+PKySnZN YFkawex70VNS/1XrAldGPxodQ1w5PMu4/m9SCQRjgp8CX395wNkQsq7NldGsDbO+jNlM 2sMw== 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=lSLy1cPxoDC//3e7623ZX4es74MP3w4cCLgF29j5fUU=; b=ugjy0XY97edBb7WLCd11bk/35QW4ep8+m2jeVLyDMUEGoE62OIW86hLlajz30y4kpq v3WXtzWhlZsa/MVDGW0KNBD27dsAKBMH5W90Z8trnRWIOdV1k8nWsqAaSbb9rp+T2Jm+ UmyO4ep8Rxk7rg4HAhsZe8T1f9UiS3+oBr4eixqv20n4a/9ZQR9Nz9w63B05Fv6OssBW NqbxzAn027/Gby+TTvXs3O0L0xkymKhzkyC05EFT/XiVl7ZwCp6cN6E4lxru2tFLCOkj Zcoc+z0AWJTdZ2rFXPHfdlLr3mXAkLCirbPoJQ+J7kzVbNln4iMiopUcbB2g8yUwRIhr dS3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=HTqOpqut; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v5-20020a170906380500b006e02fed871esi9737410ejc.418.2022.03.27.05.39.42; Sun, 27 Mar 2022 05:40:12 -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=@linux-foundation.org header.s=google header.b=HTqOpqut; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235211AbiCZWnm (ORCPT + 69 others); Sat, 26 Mar 2022 18:43:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235098AbiCZWnj (ORCPT ); Sat, 26 Mar 2022 18:43:39 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9F872D1F0 for ; Sat, 26 Mar 2022 15:42:02 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id c15so14586369ljr.9 for ; Sat, 26 Mar 2022 15:42:02 -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=lSLy1cPxoDC//3e7623ZX4es74MP3w4cCLgF29j5fUU=; b=HTqOpqutn/t7/GJQrakk/gAhabnVwnukxwMtMja/1SljWHCaJh+ZhMav3V4OqLq1/m JldSGIs54yIcMbIeQmTLdzLUuMQeARuWCJqZUzEEphC4IEXZ9NChSkH88YY0FSWwPQJu U24K7ZOq8FQZ2yFFgeY8MWj+ZVkdrqhAUb3Tw= 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=lSLy1cPxoDC//3e7623ZX4es74MP3w4cCLgF29j5fUU=; b=5yslJxDNAOwa5VhcPr3A1UjYHIkMSwaDsFR9GQpKLJTK7rD9RkTFXQAnfW6HW2YF+/ OnBVgBv+8tYSDWpSnhHi0KEsarnb52YyiNgfOe5TPXmxIJ/afU3QNC56j4bZFceYcqRX a8UUpUo8Sh/7tIZsvtxVEgUU/ToQCERsxaSMc5Q6zUHcvjLH4Mvq4SUna6edjEb6N4T4 9QUrt5O2v6+VFDY4rGp9V1ayhK/Nd2hU4jzEs74nowznmnMAv/rKdmUTIbt16J5yueg4 nY4rhbouLgheAfWyOEIk5oofgrEe13JBg16zaliLEGrz0fiIgG/c5GrKCrSuqDI6r4qM EEIQ== X-Gm-Message-State: AOAM533rjE8oCV6W4gkwv2OxMpRuJDyU1W7TyCNLUUO/bOqZdSLzN9nP /M94LOSQeeCx0zR04DpyIpU4CYokv0rP7fgwQso= X-Received: by 2002:a2e:a58a:0:b0:249:9003:584f with SMTP id m10-20020a2ea58a000000b002499003584fmr13677354ljp.58.1648334520853; Sat, 26 Mar 2022 15:42:00 -0700 (PDT) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com. [209.85.167.49]) by smtp.gmail.com with ESMTPSA id f4-20020a056512092400b004485164791csm1186247lft.119.2022.03.26.15.41.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 26 Mar 2022 15:41:59 -0700 (PDT) Received: by mail-lf1-f49.google.com with SMTP id m3so18965189lfj.11 for ; Sat, 26 Mar 2022 15:41:57 -0700 (PDT) X-Received: by 2002:a05:6512:b13:b0:448:90c6:dc49 with SMTP id w19-20020a0565120b1300b0044890c6dc49mr13805287lfu.542.1648334517200; Sat, 26 Mar 2022 15:41:57 -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> <20220326003853.44c3285c.pasic@linux.ibm.com> <8735j47l7y.fsf@toke.dk> In-Reply-To: From: Linus Torvalds Date: Sat, 26 Mar 2022 15:41:40 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [REGRESSION] Recent swiotlb DMA_FROM_DEVICE fixes break ath9k-based AP To: David Laight Cc: =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= , Halil Pasic , Robin Murphy , Maxime Bizon , Netdev , Kalle Valo , linux-wireless , Oleksandr Natalenko , stable , "David S. Miller" , iommu , Olha Cherevyk , Greg Kroah-Hartman , Jakub Kicinski , Paolo Abeni , Christoph Hellwig , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 Sat, Mar 26, 2022 at 3:38 PM David Laight wrote: > > Is the idea of 'buffer ownership' even a good one? I do think it might be best to not think in those terms, but literally just in data movement terms. Because the "buffer ownership" mental model is clearly confused, when data transfer might be ongoing, but the CPU might need to just look at "what's going on right now" without actually taking any ownership of the buffer. Linus