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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84971C4338F for ; Mon, 2 Aug 2021 14:39:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 679C360F58 for ; Mon, 2 Aug 2021 14:39:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234404AbhHBOjR (ORCPT ); Mon, 2 Aug 2021 10:39:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233940AbhHBOjQ (ORCPT ); Mon, 2 Aug 2021 10:39:16 -0400 Received: from theia.8bytes.org (8bytes.org [IPv6:2a01:238:4383:600:38bc:a715:4b6d:a889]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29A6DC06175F for ; Mon, 2 Aug 2021 07:39:07 -0700 (PDT) Received: by theia.8bytes.org (Postfix, from userid 1000) id 358D5806; Mon, 2 Aug 2021 16:39:05 +0200 (CEST) Date: Mon, 2 Aug 2021 16:38:52 +0200 From: Joerg Roedel To: Luigi Rizzo Cc: Will Deacon , linux-kernel , David Rientjes , Luigi Rizzo , Suravee Suthikulpanit Subject: Re: [PATCH] amd/iommu: fix logic bug in amd_iommu_report_page_fault() Message-ID: References: <20210731192637.3653796-1-lrizzo@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 02, 2021 at 04:30:50PM +0200, Luigi Rizzo wrote: > Ah didn't realize that. Thank you! > > Two questions on the topic: > 1. how comes only the AMD driver is so verbose in reporting io page faults? > Neither intel nor other iommu drivers seem to log anything What do you mean by 'verbose'? It is only a line per fault, and at least the Intel driver also logs DMAR faults with one line per fault :) > 2. Would it make sense to have a control to disable such logging, > either per-device or globally? Eg something like this (negative > logic so it must be set explicitly to disable logging). Yes, we can talk about that. But only after the trace-event for it landed in the code. There must be some way to report the faults and if userspace prefers to catch them via trace-events than we can disable printing them to the kernel log. Regards, Joerg