Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp595496lqh; Thu, 28 Mar 2024 10:23:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWgLweg1/k6wdQCsyQ1/iaw5BZedl3J1NlIYgdMH1ve7QJtbPUUFCYobTfMqtV66Vqle+dtIxZJ18flBquYYqqckcmLc/dqmOLoeUcq7Q== X-Google-Smtp-Source: AGHT+IEidPZ3Mb4exF1p4SKlneywKmokCU6MdNYhL4QKkhgcdhyypFC8kUzNtRhBtopMm9/e1t2Z X-Received: by 2002:a05:6a20:da92:b0:1a3:dc15:3014 with SMTP id iy18-20020a056a20da9200b001a3dc153014mr4824892pzb.11.1711646587920; Thu, 28 Mar 2024 10:23:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711646587; cv=pass; d=google.com; s=arc-20160816; b=Dwxo6DlAEnF935d6Z/K9XiQztmEDTYqNfU1ireZhrEs9jLg1+x9p79uC9xfizCHfHc r8CdpSgVPUFtd2r3bYq7NLnr/XIZwnAtIlEfsgdo5pwHeoR0ywbqf8gaESHL6dWzkOXA Hmt5x3Bi0qlSu6T/SDev9DQlNUmJPL0t67voOIMDrtgBx43sWtDEpc/sJvpD330NAz0x Y+8Hnu9P1QipFo7KzBFyDJoiOhnbeI891kJZDe3rQESqEAoJ+W1iCSvqpJ/CJ7Y86Caj cxu48qL0CgC5mEXFNT5P3btKRg4gh25bEXmSqW4lECHqg+YIsmIX+QGbNKSChsKvUGEB 0diw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=491v2sJs3bH5nTNoK6p5vrNH5PpI8bd1XR/a8hy6MrI=; fh=rXEwMxrYOhCIOP0NPO2xX0bWQge8eWNzt8rbZEsF93M=; b=LxI9BFjTbQfCpZhSE3R9LRdgoK6O7OpyXiKwMFAT+6zq14mWlqZs+4d7zYUHN+VYdp a4/EGFPrZsvusfKFQl5tPBlFUHAR6z6yHT8sfl40NkzQh1ukP3gR843/PrQba34cmgOO k7H2xqAdq4QCkqUbwqwozny9ePEpWXHaiytQtMxl70QARNs+fKavO+xJ2VtJapwQM+LN IQcZL82A8yhBn67KcrunweNKf8ri6xoC5ZqK2bVEkR/PtpDUol+soPn4d7y1I3khQZ8w nYXB/DncQOqct9zNkkCR/45uVFuYsXU5m83k/a4tahz/70aRb8RIo1EEHOe+DQJIFpId UXMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mpYK7CtE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123359-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123359-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s24-20020a632158000000b005e4c83e4f41si1766785pgm.183.2024.03.28.10.23.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 10:23:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123359-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mpYK7CtE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123359-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123359-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 34C7A29908A for ; Thu, 28 Mar 2024 17:23:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9796E7F470; Thu, 28 Mar 2024 17:22:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mpYK7CtE" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C05BF5A780; Thu, 28 Mar 2024 17:22:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711646574; cv=none; b=O6tEhWY8xlMqdZphDudDFIpkzMi9qGEkngehtaDa5a2hXZqy20uGMxvabjght3B3esmTI7G39bP+02lE2iVHtw6kcMHJzWjNEKqW1zsBsfrbaECvxLmN0nrWG6+1IWkVqzWAR48RzD/EZv7FoMGYD6EBpPVDGNCRGKTViRvVTek= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711646574; c=relaxed/simple; bh=qua/zmPT+EiKZ8b7JnambugGScyxnGAtKKDsUfi9O2A=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Zlazpe4VPIR3v2+lSMk4Fj6sJc+w395N65gYETieee3LxVeXbbhEs5SGlrU+99/n3fM42wlrpDaknm/aL65wpklUiNUSnnpkHV1mphp1dWjSI0z/siQwPsLURxlFxkwFqHOTK3+yPuu662zTX7VUNvircHecYx5zrUS1c2WXpD4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mpYK7CtE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E8E9C433F1; Thu, 28 Mar 2024 17:22:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711646574; bh=qua/zmPT+EiKZ8b7JnambugGScyxnGAtKKDsUfi9O2A=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=mpYK7CtE8kP2DP4Gu/JghUPoKhF/ix5wL8F/cGRw0BPfjxCHeQgzcRUhx36ZVsp80 BG6oCt60Yp9PzIXXfRAGmtYKTZKokjop+im8Zc7KcXJIyr4fSsGSKa/fwK1NHSxJMT SP1YadUZAQyd5PFF/KSB5IJ56nULe28LhhTUD0aBAxCtqY0O1drmObju/epGG/bPOh DM8iMm+aYuIKeJeyCDD9CFVcdE3GYCSCwo7z8ndISI97l+1PvGUkmEdHCPD7QvMzVe SzMEnVMeeHuEcq1qhcD9ZnIvs6yJ8OQUVKZ0+uyLtquaHJ0m1wOlaSS29MCLtItglR WrMzaodCMARog== Message-ID: Date: Thu, 28 Mar 2024 10:22:52 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] ARC: mm: fix new code about cache aliasing To: Mathieu Desnoyers , Vineet Gupta , linux-snps-arc@lists.infradead.org, Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org References: <20240328053919.992821-1-vgupta@kernel.org> <20240328053919.992821-3-vgupta@kernel.org> <2084d534-5e64-4a38-aba5-aeb03c9e71cd@efficios.com> Content-Language: en-US From: Vineet Gupta In-Reply-To: <2084d534-5e64-4a38-aba5-aeb03c9e71cd@efficios.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 3/28/24 06:57, Mathieu Desnoyers wrote: > On 2024-03-28 01:39, Vineet Gupta wrote: >> Manual/partial revert of 8690bbcf3b70 ("Introduce cpu_dcache_is_aliasing() across all architectures") >> >> Current generation of ARCv2/ARCv3 based HSxx cores are only PIPT (to software >> at least). >> >> Legacy ARC700 cpus could be VIPT aliasing (based on cache geometry and >> PAGE_SIZE) however recently that support was ripped out so VIPT aliasing >> cache is not relevant to ARC anymore. >> >> P.S. : This has been discussed a few times on lists [1] >> P.S.2: Please CC the arch maintainers and/or mailing list before adding >> such interfaces. > Because 8690bbcf3b70 was introducing a tree-wide change affecting all > architectures, I CC'd linux-arch@vger.kernel.org. I expected all > architecture maintainers to follow that list, which is relatively > low volume. Ideally yeah arch maintainers should be lurking there. > I'm sorry that you learn about this after the fact as a result. Please don't be, no harm done, the fix was easy ;-) > My intent was to use the list rather than CC about 50 additional > people/mailing lists. That is true but I don't think maintainers mind that in general. I still posit that any new interfaces to arch code should be explicitly run by them. > Of course, if VIPT aliasing is removed from ARC, removing the > config ARCH_HAS_CPU_CACHE_ALIASING and using the generic > cpu_dcache_is_aliasing() is the way to go. Feel free to add > my: > > Acked-by: Mathieu Desnoyers Thx, -Vineet