Message ID | 20240215144633.96437-10-mathieu.desnoyers@efficios.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8465C4829E for <linux-mm@archiver.kernel.org>; Thu, 15 Feb 2024 14:47:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6D4BB8D001E; Thu, 15 Feb 2024 09:46:45 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6847B8D001F; Thu, 15 Feb 2024 09:46:45 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4FEC38D001E; Thu, 15 Feb 2024 09:46:45 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 316A68D001F for <linux-mm@kvack.org>; Thu, 15 Feb 2024 09:46:45 -0500 (EST) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 08E9BA28F7 for <linux-mm@kvack.org>; Thu, 15 Feb 2024 14:46:45 +0000 (UTC) X-FDA: 81794314770.15.38FB051 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by imf15.hostedemail.com (Postfix) with ESMTP id 6F064A002D for <linux-mm@kvack.org>; Thu, 15 Feb 2024 14:46:43 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=efficios.com header.s=smtpout1 header.b=ENsTjpMx; dmarc=pass (policy=none) header.from=efficios.com; spf=pass (imf15.hostedemail.com: domain of mathieu.desnoyers@efficios.com designates 167.114.26.122 as permitted sender) smtp.mailfrom=mathieu.desnoyers@efficios.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1708008403; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=UPDJkdwf3N1VcCYbcUnUgFJY3X3oR+UFxWlZudqMVIo=; b=jsYokQgUr9Q9ELdeKW7ah9lyLuhaTYMywSit/jOPSdC/zDD3dEz7/YHKqKLXAgh2PLtky6 Ot5bwE8xgG+Wfc/qB9m3PeuOTkqPjbSYraXAvLuW44kk7jRL5tRZRJ+BbBV40KqPUVvX4f V4ffI0LC7W05EkpEHi2wq/XgkvFpKao= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=efficios.com header.s=smtpout1 header.b=ENsTjpMx; dmarc=pass (policy=none) header.from=efficios.com; spf=pass (imf15.hostedemail.com: domain of mathieu.desnoyers@efficios.com designates 167.114.26.122 as permitted sender) smtp.mailfrom=mathieu.desnoyers@efficios.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708008403; a=rsa-sha256; cv=none; b=S1Zpv+JCOfcuFgTNMMQOnNmEJFpwTLk6ALvipRaN+chTuz6xRcCxrQGtw0J4HU3ONcLiTr XrIH47W0QzX0a/FjOkA1f5Vx0Nr8ZFQwSL+Vh7LLAhkd+dqjOhYViiOiznopcopl2gHFWj FSNq8Vf08UFQP37MX0UW2agAhSif0y4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1708008402; bh=5LHEXykJS2jSVE2sCzHC5a4cdCFsRj5a/HPr77qf3tA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ENsTjpMxLU1wLGqd749X/HFQGZd/c3vnn8cNkbklbkw6Pg6ZW7i6kFn81cmiMnX3+ AbjNIOQ8Du3bNfmEJ8ZLtHAEh0KN98NHRKAqLepXYe1cfaCpmfcsbCNtihbA+rngpk gdKdOKG+DbN5qVXdiKBMVZ7wpzDIjNSoxyh+Vd42SjLriNTZtWbYCMLCt7u6Qn1nmu FRcBlkrrjkJK8qAxMZJRIWdmbiie8ckjCZ+DVLtUMi93fbaISmkA9HGWfDx1wJBAES AWp7GQO12TcvOlhqO1bgojD2BVkaufnnQiT6uu4SauxatVT43b1st5JzJmJMrUSf6v pZsOUVUzt8qNA== Received: from thinkos.internal.efficios.com (192-222-143-198.qc.cable.ebox.net [192.222.143.198]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4TbHvQ3nTxzZPr; Thu, 15 Feb 2024 09:46:42 -0500 (EST) From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> To: Dan Williams <dan.j.williams@intel.com>, Arnd Bergmann <arnd@arndb.de>, Dave Chinner <david@fromorbit.com> Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers <mathieu.desnoyers@efficios.com>, Andrew Morton <akpm@linux-foundation.org>, Linus Torvalds <torvalds@linux-foundation.org>, Vishal Verma <vishal.l.verma@intel.com>, Dave Jiang <dave.jiang@intel.com>, Matthew Wilcox <willy@infradead.org>, Russell King <linux@armlinux.org.uk>, linux-arch@vger.kernel.org, linux-cxl@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-xfs@vger.kernel.org, dm-devel@lists.linux.dev, nvdimm@lists.linux.dev, linux-s390@vger.kernel.org Subject: [PATCH v6 9/9] dax: Fix incorrect list of data cache aliasing architectures Date: Thu, 15 Feb 2024 09:46:33 -0500 Message-Id: <20240215144633.96437-10-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240215144633.96437-1-mathieu.desnoyers@efficios.com> References: <20240215144633.96437-1-mathieu.desnoyers@efficios.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 6F064A002D X-Stat-Signature: 64hacwa9cz65ku8b7w7p1ignyfsr5taj X-Rspam-User: X-HE-Tag: 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FRCUNw9Uj/OC/YWzNLJve09POjVs44dHUMtCZLyY/3aCEZpb7smCiYEmtv7vrkVbnHJ1HfiJKcAfDB05p3Kc/H20L15nNdLdxIsM9Qvqrej2+E+7pjEC4pT38302mVVoz3n7TzBRdt+blIEIAFS1UMwTiOeZ1yxjLbzTtDcsbX2m/qdxUP4Dh/4kzrdUU2h6CzeaRLC4gnthAkDYO0uKiE0AG+ARQkkbTac8fG/IrzxO+oYO0aM+m28eUnJ5Oie6ovEeCgbct4eGOSFNeF2UpsSmffpAIaxpS2f8/oY0QoHd/OJ3r4HvAdTiNG8M/tHhdxbXA0D8643/9geEmMGFYfdE0D/KoqXzrpHxJZpo1Nbz3f0BMZD9fuq0yIjIh3/x15bFUnlt4QWH5Z7RLFMWuztpXkWVlWOSdXsuZ2tvVqqFEBpBwEB3JdTNyUyDMCT4W13kJdYURxLwqe3VOjgGL4J0ucgi2N3ZpJKR4VNXbhASeMD X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Introduce cpu_dcache_is_aliasing() to fix DAX regression
|
expand
|
diff --git a/drivers/dax/super.c b/drivers/dax/super.c index ce5bffa86bba..a21a7c262382 100644 --- a/drivers/dax/super.c +++ b/drivers/dax/super.c @@ -13,6 +13,7 @@ #include <linux/uio.h> #include <linux/dax.h> #include <linux/fs.h> +#include <linux/cacheinfo.h> #include "dax-private.h" /** @@ -455,9 +456,7 @@ struct dax_device *alloc_dax(void *private, const struct dax_operations *ops) * except for device-dax (NULL operations pointer), which does * not use aliased mappings from the kernel. */ - if (ops && (IS_ENABLED(CONFIG_ARM) || - IS_ENABLED(CONFIG_MIPS) || - IS_ENABLED(CONFIG_SPARC))) + if (ops && cpu_dcache_is_aliasing()) return ERR_PTR(-EOPNOTSUPP); if (WARN_ON_ONCE(ops && !ops->zero_page_range))