Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3271004rwb; Mon, 15 Aug 2022 22:53:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR6p5ffptcrX7sFIa0lAFHikU4ebhDGf4maJFAXmhyE3gbVgcDd/qUq/hLtLS+JvRI3GTO7c X-Received: by 2002:a05:6402:35c3:b0:43d:f5d9:b65d with SMTP id z3-20020a05640235c300b0043df5d9b65dmr17883882edc.149.1660629181746; Mon, 15 Aug 2022 22:53:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660629181; cv=none; d=google.com; s=arc-20160816; b=zZp0ej7H56wuXpeFt82BdzEygjwLRACozvw8X2HYidiuAKIHzuKLynPlKbi3YRT31O ip4tFg4blioNNsmZkPXd5WtcPZ7TChod5R7G8BoouO8P3RHhF9t2LfoPuGrc/Cpnh69W bGRy61sGo7c+yrdAYCynkUANGMOd2f+ZGS6z1wawdY9Qack/05Pc6nppzUQt3A5k3Frd KMru/Vqcki3ARnKORSIYkO743mkdzbfmM5tJ2Kjf7BcQKu6FqnpvUiPRN55nQ4hJhCUv QTLil5giqWftpSv4ZUKagdeteykfQxxKLrwy0BV6tniAV8NPy8lOA8lx/EfjuXdAMJxs QD0g== 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=1vuEJVHjlNcz1fiTtGPYpTGQdG/3ZqumftkVj/10ic8=; b=lTV4a0BLaaFNoaE6VqLIv4zUknXMNBh+NrTL5I1Z9DoA+qMa1CsfCFMyOGmtaVnZec Mk2Chjxmfcw8tJ63hHCyFGw7RUgWvowq1yDTVWmgqw5H5V5Ynt+lkB6vX3Y9zzWbG2d7 6Ld0iRLDK9sAh1toqvdZlUADEDN90BTyjFKsbMU7H5O+IimY2BR4OemkpyPDSVv1PTh5 7MENwnRfAT7JNe5+HtBeDC9IML9iloUV6SSnNMiPo6NJLzeoXpI/2PwuZKVrWYh2/O9Q JP6wbSKrlegcRs2gcHW6+98FdArQVU5azrISHu2aX0TNiI14YbnNX70WO6oyS6u8jyd9 DJKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zO8hIsiX; 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 i8-20020a50d748000000b00442b35a090fsi8566541edj.486.2022.08.15.22.52.36; Mon, 15 Aug 2022 22:53:01 -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=zO8hIsiX; 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 S231225AbiHPEgq (ORCPT + 99 others); Tue, 16 Aug 2022 00:36:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230474AbiHPEgB (ORCPT ); Tue, 16 Aug 2022 00:36:01 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E90099C504; Mon, 15 Aug 2022 13:26:25 -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 ams.source.kernel.org (Postfix) with ESMTPS id 23E65B81197; Mon, 15 Aug 2022 20:26:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B901C433D6; Mon, 15 Aug 2022 20:26:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595182; bh=ZxyM/5s66vFtuDDP4J/0MFczF9QSWxEyXjL60nT96AE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zO8hIsiXcLZbGM4sVSKB5cOVRWoimft3zTxP6la5EbDv+vhmit3YqQHkcERTwbuyW UfMScP/NWR7QEc0Pj2o/21BONzvOWY/4dRlnSpO4cMLl+gPp4AmwvE+T33t9gFH9Ol JBf+6HJxN+0virFMf6wmVmxo+siDfKgFc2LLgbAM= 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 0682/1157] iio: dac: ad5766: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 20:00:38 +0200 Message-Id: <20220815180506.937007829@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 c32be7f035ae430ba9c142b03ceb9f935b09ed6b ] ____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: fd9373e41b9b ("iio: dac: ad5766: add driver support for AD5766") Signed-off-by: Jonathan Cameron Acked-by: Nuno Sá Link: https://lore.kernel.org/r/20220508175712.647246-54-jic23@kernel.org Signed-off-by: Sasha Levin --- drivers/iio/dac/ad5766.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/dac/ad5766.c b/drivers/iio/dac/ad5766.c index 43189af2fb1f..899894523752 100644 --- a/drivers/iio/dac/ad5766.c +++ b/drivers/iio/dac/ad5766.c @@ -123,7 +123,7 @@ struct ad5766_state { u32 d32; u16 w16[2]; u8 b8[4]; - } data[3] ____cacheline_aligned; + } data[3] __aligned(IIO_DMA_MINALIGN); }; struct ad5766_span_tbl { -- 2.35.1