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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB61AC43334 for ; Tue, 5 Jul 2022 16:46:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230450AbiGEQq2 (ORCPT ); Tue, 5 Jul 2022 12:46:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbiGEQq1 (ORCPT ); Tue, 5 Jul 2022 12:46:27 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39D0313DE4; Tue, 5 Jul 2022 09:46:27 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 2637168AA6; Tue, 5 Jul 2022 18:46:24 +0200 (CEST) Date: Tue, 5 Jul 2022 18:46:23 +0200 From: Christoph Hellwig Cc: linux-parisc@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: flush_icache_range in the sticore driver Message-ID: <20220705164623.GA14566@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org Hi all, flush_icache_range is supposed to flush the instruction cache, which is something no driver should be doing. It was added in commit 03b18f1b2afe ("[PARISC] Clean up sti_flush") but the explanation in there looks odd. Can someone shed a light what flushes this tries to flush and why it can't be done behind a proper API?