Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1123807pxj; Sat, 15 May 2021 04:42:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDHL2FMClfha84DhvAsxYW837T2UPPinXPBoBeza0mg5khvhaa+ireT5CSB2QgcT8XdV4J X-Received: by 2002:a92:d287:: with SMTP id p7mr15537699ilp.30.1621078943797; Sat, 15 May 2021 04:42:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621078943; cv=none; d=google.com; s=arc-20160816; b=R2Q3Gqh17Xz9rDAynBlVKzwAcb47Wj3zwHQItvXClW1DeuD9dnKKR/ESkJ7/6n8tac 5GJ7RQDi59pgRMWR3/IKg87Wod8ON6WB6PPOtSe5nlpdbpkd/zx5nAXqXn9l1wGgYpe4 sP11lZR9LnRGkzDTwr3ghqKyBq71J8+kWIrFh45rfC9DfcWtzrq+6tye5tgYNyg4fun/ RF4ismzi0YfWDdDpF4GZuYt2S0g96xotrYH0QdXpFuz5IJF+IFeBl+sn5zOB4EosApER 0vxM+AGR3fguuizMTdVdiNdh4Byuaouv2E/X0ngFBFbEbkYmOMXKStgUHWUKhwbb8As+ mQCQ== 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=/3SG2S4b1jAWtFWhzgeuEC/Tk68koyEiGsAbPS07zrQ=; b=f9uHnnBf/vu36Dk8CqMA5gYHbT3i5dKPDpA6JNzpDuuwzJujGhvdmAGKA6crL0ofif fO1NTpiKIlOwzjdN/vYbR0TzTrjYLingLoYlxehzQcgGMx3s1sLwXjoJfusc/SEOJYso CdOsal13w4AYmUe5o3Y/qnXwUm2ZKzCmLKG+uvc4+X133Ht+JV6h5pSzrFvmtk1RBcAW Iz8Sorj31D4NfP2gWz48mRXI0v7l8wbNA0T0UTyPPVfGefGe+MuLy/AJvOHpQQ6TW06W xpAnw7DIxg9vU11a5EdWcrwhLwWeoONpn0smFUh/L/6+R90ajqTdz9RpZkYZPoSSqI5m DWHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IOBd8yMa; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y1si10202156ilq.100.2021.05.15.04.42.06; Sat, 15 May 2021 04:42:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IOBd8yMa; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 S234520AbhEOJDV (ORCPT + 99 others); Sat, 15 May 2021 05:03:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:39138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229819AbhEOJDT (ORCPT ); Sat, 15 May 2021 05:03:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A92416135D; Sat, 15 May 2021 09:02:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621069326; bh=JbkgiqKo05fRNbDZSt9CFHvFX6bz61XsTpTkCFIs3zs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=IOBd8yMa4rv0vsCxa1k4BW/oZzG3MFSbxqmKM2UJ3Ro3tUehP++GOxRHaur97iPPA VHumfaThH6c6jZf02shZ3S0ph21UmmDMl5GsNCHPfejtczRHHghMrjJxC4fgWqX2Dj fqz2hq0zOCb3XiqlS3OpQwX+Q+BhCcCvKWit+K548+3faVfsPCWvTUkbRVo92QK1NY tZW4IcFXI//tPqKeKfJHoXED2++YYgZAkIuRzPoOojRqv+rpoeJOayTAC+o/9Xa32H q9P6IO/H3K1IvgpIcEj1EYDA58BMaG27BAj/UjF1awLqWWXMmHCi/8Z+Z+h3u2OwjF uygYlZ0AuO9Lg== Received: by mail-wr1-f49.google.com with SMTP id z17so1420758wrq.7; Sat, 15 May 2021 02:02:06 -0700 (PDT) X-Gm-Message-State: AOAM532d2AL1CNA/qB2+veLPyWxTpr+CCYi9+zPe6j532Vg+lwDJNR1g vwNAHRVYFJAFBfN487/UyQJ1sTsFLYLyzpPSq0Y= X-Received: by 2002:adf:fe04:: with SMTP id n4mr6617537wrr.361.1621069325292; Sat, 15 May 2021 02:02:05 -0700 (PDT) MIME-Version: 1.0 References: <20210514100106.3404011-1-arnd@kernel.org> <20210514100106.3404011-11-arnd@kernel.org> <87lf8gikhp.fsf@codeaurora.org> In-Reply-To: <87lf8gikhp.fsf@codeaurora.org> From: Arnd Bergmann Date: Sat, 15 May 2021 11:01:02 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 10/13] mwifiex: re-fix for unaligned accesses To: Kalle Valo Cc: linux-arch , Linus Torvalds , Vineet Gupta , Amitkumar Karwar , Ganapathi Bhat , Sharvari Harisangam , Xinming Hu , "David S. Miller" , Jakub Kicinski , Devidas Puranik , linux-wireless , Networking , Linux Kernel Mailing List , devidas.puranik@nxp.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Sat, May 15, 2021 at 8:22 AM Kalle Valo wrote: > Arnd Bergmann writes: > > From: Arnd Bergmann > > > > A patch from 2017 changed some accesses to DMA memory to use > > get_unaligned_le32() and similar interfaces, to avoid problems > > with doing unaligned accesson uncached memory. > > > > However, the change in the mwifiex_pcie_alloc_sleep_cookie_buf() > > function ended up changing the size of the access instead, > > as it operates on a pointer to u8. > > > > Change this function back to actually access the entire 32 bits. > > Note that the pointer is aligned by definition because it came > > from dma_alloc_coherent(). > > > > Fixes: 92c70a958b0b ("mwifiex: fix for unaligned reads") > > Signed-off-by: Arnd Bergmann > > Via which tree should this go? I assume it will go via some other tree > so: > > Acked-by: Kalle Valo I have queued the series in the asm-generic tree for 5.14, as the patches that depend on this one are a little too invasive for 5.13 at this point. If you think this fix should be in 5.13, please take it through your tree. Arnd