Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3014514rwb; Mon, 15 Aug 2022 16:10:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR4mcRlrd1xDV4SwdqukOcPQ3xNQGrA7hnVXhNgUop6AD/DhziHjZL2fkcGm8Eh+gAqWGlEZ X-Received: by 2002:a05:6402:358a:b0:43d:aa71:3033 with SMTP id y10-20020a056402358a00b0043daa713033mr16368856edc.248.1660605029344; Mon, 15 Aug 2022 16:10:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605029; cv=none; d=google.com; s=arc-20160816; b=eTjZT2ELhWku41jEnGMGUn1PgeO+HhnU4puoMsIk7DawHpK8bdDBwzH/mRnRvn4nat mgFfiiqfcFOKXcnRwrTszYrt8WQMTx+RbDVuFW1GqavBFZNZc5rBPnFTWeQBRJzgcOah RoCy9uhsP3XLyIKuqzqEu1Q8oJ1SwrplYWM0g7NuZpWGUcxm6jU/Bq56k7Y6N6N7IG3Y Tld57fM4tOin43+47K2N1h75dMt9GtWASbhgt7v3eKM9HZNIfNJWEJgihwVVAkT4e4cT b7L4TgpQSWisB8jy++d7ZBIywl/B87hUDT2Og0kIeY/54ImYnSHVuZ1cQvJcdc0Skijg erEg== 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=6RoUNqgnxEGrevW1STsKsl+4dSazXs2cUshaZ+hGuFY=; b=HO/33/zcZ5GPpcKv7k3r1LX0dJupQphyrjswAUw+Q9byrjd17qyJwN2sR+wjZLu8bk A1QeG0CDBJCu+hfwX0XjZr0bTFAoPA7EU1BCSzlXqM9anpEgkRhMWBpHhdWv4ZreFtla 2NfA+7IOnnG0D7wUsJHLY3B8tiTNsHleILhsHLYswr/Lm/QkTno7DyKXpin+ZvoxFmdz B9+vxIE5baX3qiNsnQE24bIWbVg674B553SWsDLSZdUsxyC/9ZBOT0YC0bSQ5nSV+XZc jpZuY0DYYx0dDCYmwqJHZB660kb/f8wbjeoQBlwZniNPoc7odA3locSXWPAjS3HzJ5QG yvGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="G8zxx/mD"; 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 wu12-20020a170906eecc00b00730e4be74d1si9675823ejb.815.2022.08.15.16.10.03; Mon, 15 Aug 2022 16:10:29 -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="G8zxx/mD"; 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 S1349855AbiHOVsy (ORCPT + 99 others); Mon, 15 Aug 2022 17:48:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349376AbiHOVpZ (ORCPT ); Mon, 15 Aug 2022 17:45:25 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33864C9EAA; Mon, 15 Aug 2022 12:30:08 -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 94D49B81062; Mon, 15 Aug 2022 19:30:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ABA6FC433D6; Mon, 15 Aug 2022 19:30:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591806; bh=rqdC4nZwbSnbxPw0o+7GJSE6FDRyxJqDCjoWH0/UZjQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G8zxx/mDsjwsvbPa+jaRyGihBRpyFOmBT+VK71qE6f38zE/t75TJ1wHz+TRvIAoQ0 bu6nMCj1mSLAKwHQ1Tzyi23fHaYbvItWti/QasNaFcNXb7Pw59C7+lAChXIBP8J0qd XvfpaKv/TzrtwLLxNwnxM72HDvu5UX+KAuN1wfQ4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonathan Cameron , Robert Jones , =?UTF-8?q?Nuno=20S=C3=A1?= , Sasha Levin Subject: [PATCH 5.18 0660/1095] iio: imu: fxos8700: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 20:00:59 +0200 Message-Id: <20220815180456.707717476@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 c9a8417a13ed9c81383662fca8a4b89f84d31e78 ] ____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: 84e5ddd5c46e ("iio: imu: Add support for the FXOS8700 IMU") Signed-off-by: Jonathan Cameron Cc: Robert Jones Acked-by: Nuno Sá Link: https://lore.kernel.org/r/20220508175712.647246-77-jic23@kernel.org Signed-off-by: Sasha Levin --- drivers/iio/imu/fxos8700_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/imu/fxos8700_core.c b/drivers/iio/imu/fxos8700_core.c index ab288186f36e..423cfe526f2a 100644 --- a/drivers/iio/imu/fxos8700_core.c +++ b/drivers/iio/imu/fxos8700_core.c @@ -167,7 +167,7 @@ struct fxos8700_data { struct regmap *regmap; struct iio_trigger *trig; - __be16 buf[FXOS8700_DATA_BUF_SIZE] ____cacheline_aligned; + __be16 buf[FXOS8700_DATA_BUF_SIZE] __aligned(IIO_DMA_MINALIGN); }; /* Regmap info */ -- 2.35.1