Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4459911iob; Sun, 8 May 2022 13:34:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLNjd+nQMswUoaIplZgPrfLUFurpSVmtN5PM/4xnKmOFdqEkc0MDq2wh0c0Lepb2zdwhYX X-Received: by 2002:a17:907:2146:b0:6f5:28b5:5f38 with SMTP id rk6-20020a170907214600b006f528b55f38mr10896836ejb.118.1652042048020; Sun, 08 May 2022 13:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652042048; cv=none; d=google.com; s=arc-20160816; b=zkZ1bGAZCb6unDKUOwTW7nN9qkRqCPCOZp6N+ZQFPCCsY5+GwQN5/uecKpaUyjOFri 3E9dLW+hgMRdFvB9HvIqNZZBr6BAe44xeDdKm+EvA70gLSV+QZnnbQOP+qg+mnyR5SCs 8ALR6mAFkU0Zo6gBHR3bAQyUagF02zjBSjRJZJa1vjjjv4xWgjcAW/TgQUOKkgwJ9PlE Mmip+h6+hCZOgcNlbTCp4qxjtgxPD3dNAk6LtmnVqBDOKWP0Njw38qylQoj9g2sfJG71 /vUzEEB4Lwqp9uhyDbulIHo7UpmALaVLlV436JaWKvAJWtuCGpGtMwVWvYB0DJaxFUf3 fOHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=R0Vap8Rqc5LVQN07ZzXBwPk6HmyIUKmBdg76rBeud2k=; b=oIHcThv9Ms1ptMASjS4T55dqOvD9SUzINZ8ztGJF/l+mBXmOljlPQilatpQ+th7KoY azpcTCYqq/qp2/Gc7p1rlEwdzDfAJjfTGwWRDPrEELqf4O0b79+n0HtZ9rXMGcieSKRD Ec8hTABaQ5HHHWsii2AinJua5+dO2jmMftd5kuk+a6kzWzOInupbxXA453SHTQ7aHPj5 8V4T3JkLmEBhHG1lWngD+a44lSpUADaTs+32hlZrHNgmd2d+mWzSrIiyIgXvnA5aIize S96N9S06ADpClFT1CW3BQz+04Jll2YvJ8wwpfNJxVuzNrFbaZu4Nq4ftLn72NrZSZBZZ q5Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AXmhgoiv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a10-20020a50c30a000000b004261e994bdasi9088478edb.458.2022.05.08.13.33.44; Sun, 08 May 2022 13:34:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@kernel.org header.s=k20201202 header.b=AXmhgoiv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389372AbiEFGPm (ORCPT + 99 others); Fri, 6 May 2022 02:15:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353259AbiEFGPj (ORCPT ); Fri, 6 May 2022 02:15:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E90CD5B3C2; Thu, 5 May 2022 23:11:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4B35E61F0C; Fri, 6 May 2022 06:11:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7DBDC385A8; Fri, 6 May 2022 06:11:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651817515; bh=hHJ2dKaQKUKX5YA0P8F4R0QuX/KqDRWP+QfV5J6aF/I=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=AXmhgoivoTIbOkrlU7cOSNNeQVxmMkJrZlYludZjC1B+6e92V8SQFv1SL/KyByxWW Q+wzOCCju2+v0Tveu/H+KRWiEY6aKp+XZOIg/YK8jG9UpwF9wFerSkraLHQyddCxad KQBXpvh7uaJYcQ8Lu7FUSkLROpLCzyi9EC4gQVUTXb4N7yCp2YEP4IZaLT40YDjuR0 TsAm7w9DonnasfT0JknwSPUTyA0ay0p+f2ShPc9k20713PJtVtnun7BFKJuzW75lHh MlNi3B6Evj+gy5ZudY+TIpH80mB3pi+BYRtegAmW7Xh40V9HHu++ka97YX1zCCzFRZ o6CDVodLztT6g== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] wl1251: dynamically allocate memory used for DMA From: Kalle Valo In-Reply-To: <1676021ae8b6d7aada0b1806fed99b1b8359bdc4.1651495112.git.hns@goldelico.com> References: <1676021ae8b6d7aada0b1806fed99b1b8359bdc4.1651495112.git.hns@goldelico.com> To: "H. Nikolaus Schaller" Cc: arnd@arndb.de, tony@atomide.com, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "H. Nikolaus Schaller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, letux-kernel@openphoenux.org, kernel@pyra-handheld.com, linux-omap@vger.kernel.org User-Agent: pwcli/0.1.0-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <165181750762.835.18351799442836112147.kvalo@kernel.org> Date: Fri, 6 May 2022 06:11:52 +0000 (UTC) X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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-kernel@vger.kernel.org "H. Nikolaus Schaller" wrote: > With introduction of vmap'ed stacks, stack parameters can no > longer be used for DMA and now leads to kernel panic. > > It happens at several places for the wl1251 (e.g. when > accessed through SDIO) making it unuseable on e.g. the > OpenPandora. > > We solve this by allocating temporary buffers or use wl1251_read32(). > > Tested on v5.18-rc5 with OpenPandora. > > Fixes: a1c510d0adc6 ("ARM: implement support for vmap'ed stacks") > Signed-off-by: H. Nikolaus Schaller Patch applied to wireless-next.git, thanks. 454744754cbf wl1251: dynamically allocate memory used for DMA -- https://patchwork.kernel.org/project/linux-wireless/patch/1676021ae8b6d7aada0b1806fed99b1b8359bdc4.1651495112.git.hns@goldelico.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches