Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3254588rwb; Mon, 15 Aug 2022 22:25:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR4WJXKz0Qmui1rtlI3Vo+UBZtcBlcPgo9FpLshT5Hb/AN74vnhi+j25Lg67/E3jDJ0DLsuP X-Received: by 2002:aa7:9d1a:0:b0:534:e0f1:16c6 with SMTP id k26-20020aa79d1a000000b00534e0f116c6mr8069652pfp.55.1660627518135; Mon, 15 Aug 2022 22:25:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660627518; cv=none; d=google.com; s=arc-20160816; b=eBUxOs9T3aPPUm8KKe5RA0LOcAiAognAHmj63+VdrC55PaY9GslYNioi2iSJUwT2ps xBKLRwogK3WxuwTmWp9gfivXhsBhaxk57a2HXJuGVa/Ywo/OlR0kSrDjie9F1x0kOwx0 uq+EYDcOxdrp+SOUpZTsvO5CnH+yTKm2hVyARG9rEzj7g49KJHKKlq8sFg7nU6NufZZb Omf4LMIi5gdGhopIt0duH73tWOy2YYmWXMdRSbN5Ubv8KXk4A11B1CAcE88IsODYtVZP MpcxAggo3/m63eSjF1C3ZG+WoAcWIwE89KTeQp1ORw4e6aOvwho8E5jH8wdIMk9lXrxn HaVQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=YJUGVNpAGC7LN/ScobzcX+WjFbQRBKCOZ9zcwPElz1M=; b=UiMinbBHJUXzXkAmiHeZON+n3/d4SboWNeBsbkShSTYGmn68jKTFR5uqbuyON55gT4 syUaL3svVUFgfo//+FXM0Q71JdvMP1qSA6onVvhwAN7kGa+yAjOEgdbB1N4vt8hrPBdE 0P9TfEigNoAfbaAvilPthcrZAfbU293VoNqVCjkryRAgeKri3wYeMnX+8TmXpVjdxNLQ TwIgkV+t3cWQ+IR1iBt1X98R2mwp8uzDZTCIqrkCh5cZ4glnKy6G/APv7a15RwkFTlNk xr1r7SITo2waPeSzYVmt6XkeD9bF3LRqBhgipLZ1M/8maSxedZjwFn5A0F3HJW47ZnQc ghAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=boyEgimr; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p29-20020a056a0026dd00b0052523d203a0si11214669pfw.77.2022.08.15.22.25.07; Mon, 15 Aug 2022 22:25:18 -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=@linuxfoundation.org header.s=korg header.b=boyEgimr; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231272AbiHPEg7 (ORCPT + 99 others); Tue, 16 Aug 2022 00:36:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231145AbiHPEgT (ORCPT ); Tue, 16 Aug 2022 00:36:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25B3A9C535; Mon, 15 Aug 2022 13:26:30 -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 9C45261135; Mon, 15 Aug 2022 20:26:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8AB40C433C1; Mon, 15 Aug 2022 20:26:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595189; bh=/cdezBGj4bknkTE384OeCK/zok3ZlI/KOePft7O4rk8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=boyEgimrlMqVCMJKSK4HVcaEj87Sll+sIGt07lv7OTFYYa3yJAyBfsRNbXL2ty3sC AP3QbS6F1qCC9Ejndr2+TMBCdu29nO4d9SJ0UJBykU89lhiQJNdpIXTlr51Nx0H+WU k1+0+HjeIObgiJgWFM7K6ShK9Qfoqyydw1WfCySo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonathan Cameron , =?UTF-8?q?Nuno=20S=C3=A1?= , Sasha Levin Subject: [PATCH 5.19 0684/1157] iio: dac: ad5791: Fix alignment for DMA saftey Date: Mon, 15 Aug 2022 20:00:40 +0200 Message-Id: <20220815180507.005040748@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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 From: Jonathan Cameron [ Upstream commit b2d5e9de77c8774a5a6cff59d928f2fa38cbc642 ] ____cacheline_aligned is an insufficient guarantee for non-coherent DMA on platforms with 128 byte cachelines above L1. Switch to the updated IIO_DMA_MINALIGN definition. Fixes: 791bb52a0cd2 ("iio:ad5791: Do not store transfer buffers on the stack") Signed-off-by: Jonathan Cameron Acked-by: Nuno Sá Link: https://lore.kernel.org/r/20220508175712.647246-56-jic23@kernel.org Signed-off-by: Sasha Levin --- drivers/iio/dac/ad5791.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/dac/ad5791.c b/drivers/iio/dac/ad5791.c index 339564fe47d1..a4167454da81 100644 --- a/drivers/iio/dac/ad5791.c +++ b/drivers/iio/dac/ad5791.c @@ -95,7 +95,7 @@ struct ad5791_state { union { __be32 d32; u8 d8[4]; - } data[3] ____cacheline_aligned; + } data[3] __aligned(IIO_DMA_MINALIGN); }; enum ad5791_supported_device_ids { -- 2.35.1