From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 97E67C433F5 for ; Wed, 30 Mar 2022 22:13:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=L/w5EarKERIgzaq1Wow7nO0pk0v2cq6VKS2Sr3hzKNQ=; b=3LFcwMCof6AI1D 6TfbpFPZYolHhy+/ses3bB6Z2lu19/+QfD+PkSoZpVDfkh7l1MUFNWFcjmZ2A5zG/uLz46drXCgNa b88f5DzauNOSw7O8pLdschu653Y2JWeSi/uDQIAYFuY00md5Qiqo9voVEwNmFkYBiKU3q73h7Pldb 75F736F9vSOfHJ+LYiYUkNMRCzouj7zvOXHWZL6C48R4whcLlTB3zJ0DyfG/niAP/nBhwyxe3283r NABBS2imdn1Z9IaglOzr2jrVIX1y/D/7BN3u1Kexy7u+8Y+9BMd2/Na3JADSNf93ML+BPW6u/e2ds b5iphPNt7KALCKteScuQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nZgXw-00HaE4-G1; Wed, 30 Mar 2022 22:12:08 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nZgXr-00HaDd-Ok for linux-arm-kernel@lists.infradead.org; Wed, 30 Mar 2022 22:12:05 +0000 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 D58A96178A for ; Wed, 30 Mar 2022 22:12:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45307C340F3 for ; Wed, 30 Mar 2022 22:12:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648678322; bh=lHoWMWTBa3YM4ZDyXUSfiun+4hg+TkgrQeAvpXnV8dM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=G+4D0E+N2X4RZG7RuopLwUDRZ5fmnXbKKxlhE4xjxQ/w0V6nsaT2S5OilUzmgwDuY elIksuIWAexVfxRqDRV/L76hI6IECqlxXGPRNIM1SPH1YdKlwFN76MuW0X2j20dTUs f2oRVK8ygsp50zLXE9W7kVnVUs/2NxrOzpmJqe5tswh5yOcsZwJfAF0mnDtWSI5w/J U/+hUJuxgTeaQDc7z4Wu3JjwtJ4fMO2AYLXgECSV9OmFz0AreBYV1/iqKtcu0QXzNu F9CKdRVvvR6tXmSlsSKeGiOkKle2kETuRXleERZLxHn8T5Lao3r8TVsAVxYE4my0pT NwuiXDyS1PaDg== Received: by mail-io1-f41.google.com with SMTP id z6so26535402iot.0 for ; Wed, 30 Mar 2022 15:12:02 -0700 (PDT) X-Gm-Message-State: AOAM532UFs6KuWJBTDe+zJCjklOqU+CN1viVdfRbBLhSPhYBI7qfeEyL QunPYyv2zi88Y2zquFq0kNfZVOeexWtoC4E7og== X-Google-Smtp-Source: ABdhPJwz1I8224QmKi3GJkG495gJ+jibhVHp8fiJgqcR/6al4HLKY11f5Vyz0kFI8Ep0x3RH7WAuWz3ynmlArVoGYjU= X-Received: by 2002:a05:6638:3052:b0:317:79e1:8b7f with SMTP id u18-20020a056638305200b0031779e18b7fmr1180334jak.239.1648678321433; Wed, 30 Mar 2022 15:12:01 -0700 (PDT) MIME-Version: 1.0 References: <20220311101940.3403607-1-tarumizu.kohei@fujitsu.com> <20220311101940.3403607-4-tarumizu.kohei@fujitsu.com> In-Reply-To: <20220311101940.3403607-4-tarumizu.kohei@fujitsu.com> From: Rob Herring Date: Wed, 30 Mar 2022 17:11:50 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 3/8] arm64: Add hardware prefetch control support for ARM64 To: Kohei Tarumizu Cc: Catalin Marinas , Will Deacon , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , X86 ML , "H. Peter Anvin" , linux-arm-kernel , "linux-kernel@vger.kernel.org" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220330_151203_886537_0A41104C X-CRM114-Status: GOOD ( 16.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Mar 11, 2022 at 4:23 AM Kohei Tarumizu wrote: > > This adds module init/exit code, and creates sysfs attribute files for > "stream_detect_prefetcher_enable", "stream_detect_prefetcher_strong" > and "stream_detect_prefetcher_dist". This driver works only if part > number is FUJITSU_CPU_PART_A64FX at this point. The details of the > registers to be read and written in this patch are described below. > > "https://github.com/fujitsu/A64FX/tree/master/doc/" > A64FX_Specification_HPC_Extension_v1_EN.pdf > > Signed-off-by: Kohei Tarumizu > --- > arch/arm64/kernel/pfctl.c | 368 ++++++++++++++++++++++++++++++++++++++ This has nothing to do with arm64 arch other than you access registers as sysregs. That's not enough of a reason to put in arch/arm64. Move this to drivers/ assuming it continues. I agree that this seems questionable to expose to userspace in the first place... Rob _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel