Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3272851rwb; Mon, 15 Aug 2022 22:56:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR5mH+giGKwpI+8+mRa3GB2cPxLaz2r/irJw/SY+rjLK9efHfJjGxodMBLRaklFXtEj1QX5A X-Received: by 2002:a17:907:7fa0:b0:730:c9aa:b4a7 with SMTP id qk32-20020a1709077fa000b00730c9aab4a7mr12460731ejc.322.1660629387410; Mon, 15 Aug 2022 22:56:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660629387; cv=none; d=google.com; s=arc-20160816; b=NvhybMUneCstyq/iEi3QLeUuIHeXSNtULwzUk3hMhvSD8rRDDn/L3VeKeXQMPBf5+x SfLaZ3X/AC4Jlkg0MsiOQU62QuVNiv/TvKL+yxKAdEeFPC6gtTiJhQgFqLJeYs60Ving cuxvgc7wDPQ3Y+yFRw57kWSQ7mRm+Ziaxp3PezvT8/xGfqkugJG74iQCuCCJ4T2CBDxB Kv6kgdk9whoex1MV3YyDimtDcxA9KXdAXxi9iFtmouUS/r+amfDJWy0bEfAusME4zQb4 fUm1QeGx3B4CjsVbOn1Xx8kEZ0MzVqTYtEt8Gc3yva69aylQXHpVsy+gM98ev+970Mif QPDg== 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=gMnX37KDhzOPcbYfTVVH2D7YlPDJrJvdYrJtMWPHB50=; b=aOOxhIYaP+RIjEyEcB2MieQROimJ7g8xByDulje7fAVaPyEa7FFP0qvBLKN8TEnBz2 dQWPkcJ0L78pgREgQGI+ZKny77GXjO2DenuY2sBqOeCbqcN4ob7CTFHFMnSQC62MpdjB kTAR5P0qGtVTm554dTZAzqKqg+xdhE8vnY+Gb8nBPm+KqHG9yB/wRq3kIWPdEuHBzGS+ iDdyeIB0NhQAoLsXhI6uE/J1D7bCYkkIgh0Q5129/Hhwuo3gXhNf1LGQ57F7UD+1vnXT rsZAuGqvVhNzJxnhWLcDyK01XjnqIzIQwlZzlTnJwxRCVYaCayu3S2wmC3aISjKdcTR1 OlKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eNFTF5h7; 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 n4-20020a170906378400b007307fa2da78si8547529ejc.450.2022.08.15.22.56.02; Mon, 15 Aug 2022 22:56:27 -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=eNFTF5h7; 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 S231328AbiHPEhM (ORCPT + 99 others); Tue, 16 Aug 2022 00:37:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231192AbiHPEg2 (ORCPT ); Tue, 16 Aug 2022 00:36:28 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECD9E61725; Mon, 15 Aug 2022 13:27:40 -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 28DA0B8119B; Mon, 15 Aug 2022 20:27:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43F73C433D6; Mon, 15 Aug 2022 20:27:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595257; bh=kiF11z6MXxdcmqUH02ZK+3YK79JUgbzvn7owzU+ly+s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eNFTF5h7EELobRb0qvdBU4CdQkHUH4gqZ3iLu2i/EiulaeJG7asXO5IZu8jwkViHI ddjTDVpmVU1AM7CNLy7l3NUJyWRI19LpONhgtEIxH690dfgVN4gt7DaecBHGWgL9s7 DPgo0+63Y8w7u+ZhbZJpGndmtXeYG1mP3dQDhYwE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonathan Cameron , Jean-Baptiste Maneyrol , Jean-Baptiste Maneyrol , =?UTF-8?q?Nuno=20S=C3=A1?= , Sasha Levin Subject: [PATCH 5.19 0707/1157] iio: imu: inv_icm42600: Fix alignment for DMA safety in buffer code. Date: Mon, 15 Aug 2022 20:01:03 +0200 Message-Id: <20220815180507.860587073@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 b0aa05065a0c1d1bffa10923dbc36f7193babbb7 ] Second fix for this driver due to different introducing patches. ____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: 7f85e42a6c54 ("iio: imu: inv_icm42600: add buffer support in iio devices") Signed-off-by: Jonathan Cameron Cc: Jean-Baptiste Maneyrol Acked-by: Jean-Baptiste Maneyrol Acked-by: Nuno Sá Link: https://lore.kernel.org/r/20220508175712.647246-79-jic23@kernel.org Signed-off-by: Sasha Levin --- drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.h b/drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.h index de2a3949dcc7..8b85ee333bf8 100644 --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.h +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.h @@ -39,7 +39,7 @@ struct inv_icm42600_fifo { size_t accel; size_t total; } nb; - uint8_t data[2080] ____cacheline_aligned; + uint8_t data[2080] __aligned(IIO_DMA_MINALIGN); }; /* FIFO data packet */ -- 2.35.1