Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3024755rwb; Mon, 15 Aug 2022 16:22:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR5INuKtlA/eTupXIxAMFJONXrJFN58TAsKwNjoLBA5VTtlHY4drenfbOD+rQiMplom8VL4J X-Received: by 2002:a17:907:7fa1:b0:734:b26a:17bc with SMTP id qk33-20020a1709077fa100b00734b26a17bcmr11647413ejc.157.1660605679692; Mon, 15 Aug 2022 16:21:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605679; cv=none; d=google.com; s=arc-20160816; b=tpxU2eEFBL1K3pxCw/yPPTHedjADXO0e7VDzvq3AcxSJpgwwCBx7tUuAaCsnB7Xbm5 lhDZA5D22cBvYA991nJq3lGhmoQDg08wkt7qJmO5BgXgrLjfN/dvrBIc85lJ1QSlgy92 tgsWb5iRMpI4Ui1MN01os9ogZo3f0NXyV6FTXfO5XGGhV8uuKVe7s/MbAmV76qPuFh/5 crUjRG1EbaoMDP+ZpEjnKeGptCT+7kcGwuqb3oHYGePHj0aPPs250GYKhVoM/tQab+cK CPEpa5TFR10ctRHWF23P0+siAg+8J2bCwz52QVRToQtEHq2i6eaR7bUu/+eYxlwhdUCm mb3A== 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=KZmWLgsROgYUQxe175+bjIGSa+bo0rbZ3e1yYIMyVMg=; b=YbwGjKfqKH1VcmPc1Fs7YOsO+GQdPWGV+bxY7fpNKuEQLJbT8AgzXFBpddTgz1bsPd pDdb0eHVrTNqdOJ1BzGzazsoY7R8lXDEv+1L46NkJ2+SwTUKngwrMb/1zh44lms97Jiw uKmYg2aDYU4K9nGMDA3SdzYwdb8LOZN5W+TZHo2FIRSpIxKvs3l09mj2etjpKv7Z5tDM Oy6eIXcSOBSxeWYPLKimlFbSTP219FOcr1EL1kZ5W70g9p7IqDSZnV9mH4guWO6WKP3w 5WDjy4mmhgV9q6R9tIhqj8UVaPJ3RckbvqTl5FQUdWDUN35fDgCZg6k+y55Jm9WfgCNh kDeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=We7Alsmr; 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 c7-20020a05640227c700b0043be28d93adsi9705695ede.261.2022.08.15.16.20.52; Mon, 15 Aug 2022 16:21:19 -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=We7Alsmr; 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 S1350174AbiHOVuo (ORCPT + 99 others); Mon, 15 Aug 2022 17:50:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350220AbiHOVr2 (ORCPT ); Mon, 15 Aug 2022 17:47:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46B1065251; Mon, 15 Aug 2022 12:31:18 -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 A9B3560FB9; Mon, 15 Aug 2022 19:31:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F73BC433D6; Mon, 15 Aug 2022 19:31:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591877; bh=z1xUNYx42fke/EV5QP7IxecBd8URVJ29kBbGoG4kACI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=We7Alsmr3ojowbIhKABYTYg7jeaAQJUhyK2Fba8QJPT8laLnyDktGTlu3vsMEsTnC kE1IkETD060mFbcNdryTCVUFUt4659le9QyP61HHO/Xl6uU9T/YLPVvXLnexHNzME6 MU0OjyglycoKC+JckMPTOFiSSfFTW5n9Ru+b/8Qc= 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 0656/1095] iio: gyro: adis16080: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 20:00:55 +0200 Message-Id: <20220815180456.539742838@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 ae6eeb534924ecc2afd5a394964fd6de0ca54d39 ] ____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 tag is inaccurate but unlikely anyone will backport this beyond that point so I haven't chased the history futher than 2013. Fixes: 3c80372dae17 ("staging:iio:adis16080: be16 cleanups") Signed-off-by: Jonathan Cameron Acked-by: Nuno Sá Link: https://lore.kernel.org/r/20220508175712.647246-73-jic23@kernel.org Signed-off-by: Sasha Levin --- drivers/iio/gyro/adis16080.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/gyro/adis16080.c b/drivers/iio/gyro/adis16080.c index acef59d822b1..14b3abf6dce9 100644 --- a/drivers/iio/gyro/adis16080.c +++ b/drivers/iio/gyro/adis16080.c @@ -45,7 +45,7 @@ struct adis16080_state { const struct adis16080_chip_info *info; struct mutex lock; - __be16 buf ____cacheline_aligned; + __be16 buf __aligned(IIO_DMA_MINALIGN); }; static int adis16080_read_sample(struct iio_dev *indio_dev, -- 2.35.1