Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2950948rwb; Mon, 15 Aug 2022 14:43:44 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Mr3datt+Nes8pHotitJPZXlvHtsVtpKO/opzgpG1cjzFV7Bfhy4mJEPL7RI3n1gh1G+gG X-Received: by 2002:a17:907:6d24:b0:731:7720:bb9b with SMTP id sa36-20020a1709076d2400b007317720bb9bmr11583991ejc.717.1660599823830; Mon, 15 Aug 2022 14:43:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660599823; cv=none; d=google.com; s=arc-20160816; b=0yti8KFx3md8/x8rlRVlmj0+FXJRDcEKWPwo5VHEdihA3avtnOh/QfsLTXKqnMNqNW 1lI7qQeb3T3ZUzJxxvv8J2N6x/W/AuWNffAq8BJ2ztv5tG6QLBt2vOuvkjwxGfhTpHFw pM2bGAdldS5shaFK6HD1XWPJVyJVebf0GhMU5Nh45J8hyt5esKX2rpER5vgfwcgZ8JYw ZyzN4WEnHtc5VPvz2LNq6zstiXgUwXzw+Qx2GWJ/+/HDEbQA3NuA0yqTq0FO8xO42FI4 qz54S1GSsXlqJwd7Ku/iJicudAG4hOSIiwhnIHn07ngsgXZZCXAWwX+sjHILTyPHqkeI AAUw== 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=D2Bpkebc9FNOiKMR3t5tlDlAaWR8n3iULMjl/1VZvafVKJV2lVay36Ti13676YPCq4 RywnrvoP97RDDQPAsBujn3K+v4jBNJW9ywpMTIwdLi1dLSTKUDptnNQPWNow6yp0Friv nCk9FpAVdUJaiMWXoEdbZX0xw90aSDc62nYs67r5/oI8CSytvhbmDb6l14EvjY3/+rq9 P2Jnt34PzJvljWBuCV99IA2jBytAYswh8nVgm0aV2JTAr2uw51ve0hIeih17WyXSSWj1 fIikuI/MPZpvqZnHUi2HvhX2mjuNCe1rTqQ6DdRjJoK60jI0rp90ZfQDTF7CdOdqtLN4 bz5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Q4J8NacJ; 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 nd32-20020a17090762a000b007306e4fc2f2si8886177ejc.374.2022.08.15.14.43.09; Mon, 15 Aug 2022 14:43:43 -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=Q4J8NacJ; 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 S1349291AbiHOVkw (ORCPT + 99 others); Mon, 15 Aug 2022 17:40:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348667AbiHOVhB (ORCPT ); Mon, 15 Aug 2022 17:37:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6CF32E4; Mon, 15 Aug 2022 12:26:53 -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 4C7F8610A3; Mon, 15 Aug 2022 19:26:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32FC7C433C1; Mon, 15 Aug 2022 19:26:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591612; bh=ZxyM/5s66vFtuDDP4J/0MFczF9QSWxEyXjL60nT96AE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q4J8NacJkVa2rfvCuXuFmNLXAm0VNy9z5I0OlBp6RKOyUHb+yzf/RI8KRUtgokO9Q 3KNK/A68Lh3Ie/qbIiJwCsQZURtSNNj4RTdZVFrsARYYu7rAQYFCBd2+HfBViPxgPx wCHmICwuVhi6zPTqKKGQpKknE1rkXuMtst9DR/+M= 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.18 0637/1095] iio: dac: ad5766: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 20:00:36 +0200 Message-Id: <20220815180455.770895356@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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