From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964889AbcCQUMW (ORCPT ); Thu, 17 Mar 2016 16:12:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35007 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753182AbcCQUMU (ORCPT ); Thu, 17 Mar 2016 16:12:20 -0400 Subject: [PATCH v2 0/2] iommu/vt-d: Fault logging improvements From: Alex Williamson To: iommu@lists.linux-foundation.org, dwmw2@infradead.org Cc: joe@perches.com, joro@8bytes.org, linux-kernel@vger.kernel.org Date: Thu, 17 Mar 2016 14:12:19 -0600 Message-ID: <20160317200557.29049.32879.stgit@gimli.home> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ratelimit and improve formatting. v2: - Use a single ratelimit state as suggested by Joe Perches, except I chose to move it up to dmar_fault() so that it includes the "handling fault status reg" pr_err and we can avoid collecting entries for logging if we don't plan to print them. - Added reformatting changes suggested by Joe Perches. - While there is clearly more that could be done with disabling fault handling for specific context entries on storm and sending errors to drivers, this makes a marked improvement on its own. Thanks, Alex --- Alex Williamson (2): iommu/vt-d: Ratelimit fault handler iommu/vt-d: Improve fault handler error messages drivers/iommu/dmar.c | 47 +++++++++++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 20 deletions(-)