From patchwork Fri Mar 20 23:17:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Luis R. Rodriguez" X-Patchwork-Id: 6061511 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CA9F3BF90F for ; Fri, 20 Mar 2015 23:23:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0FEEF20519 for ; Fri, 20 Mar 2015 23:23:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E9AAC204B0 for ; Fri, 20 Mar 2015 23:23:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751876AbbCTXXJ (ORCPT ); Fri, 20 Mar 2015 19:23:09 -0400 Received: from mail-pd0-f174.google.com ([209.85.192.174]:33171 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751198AbbCTXXH (ORCPT ); Fri, 20 Mar 2015 19:23:07 -0400 Received: by pdnc3 with SMTP id c3so122052353pdn.0; Fri, 20 Mar 2015 16:23:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=/3ohgJwvqdSP7+vGM5OZxeCuKnwn3x3mhWieGNwRtuc=; b=fYen5KUAOF9x5cKqnRBL0PsROypAWs3pc5KKcpthm0MpEVXJKsNaMG9F2T1RH9K5R3 B4eCqUnj32tg5m1kRz0OiU5e6erxpxmeT/vItfjXFqt05qK1vSxJfeNFiQGkuvkFI6TX lmod/Izho1RlD3vu33ICgTR68/WVCajpj2tm+9BrYPWMgeW2tdr/J0kRRYzN6kN4aOBR nu3p+kNNh7yJXE5c5Hpg5e7XIvd+1QKf2irra6ro7IiKcHiEa+KIzLl/CL9RZjJGR0wo LvEPqxEEpJStzf0yDtuIVV7H4nUfSoKT0BdCoHrE2vZKCKP9Uiw7mnk2HvQ3rdbcdzDR dwdg== X-Received: by 10.70.87.195 with SMTP id ba3mr55552301pdb.126.1426893787412; Fri, 20 Mar 2015 16:23:07 -0700 (PDT) Received: from mcgrof@gmail.com (c-98-234-145-61.hsd1.ca.comcast.net. [98.234.145.61]) by mx.google.com with ESMTPSA id kn5sm9785765pdb.42.2015.03.20.16.23.03 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 20 Mar 2015 16:23:05 -0700 (PDT) Received: by mcgrof@gmail.com (sSMTP sendmail emulation); Fri, 20 Mar 2015 16:20:55 -0700 From: "Luis R. Rodriguez" To: luto@amacapital.net, mingo@redhat.com, tglx@linutronix.de, hpa@zytor.com, jgross@suse.com, JBeulich@suse.com, bp@suse.de, suresh.b.siddha@intel.com, venkatesh.pallipadi@intel.com, airlied@redhat.com Cc: linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, x86@kernel.org, xen-devel@lists.xenproject.org, "Luis R. Rodriguez" , Ingo Molnar , Daniel Vetter , Antonino Daplas , Jean-Christophe Plagniol-Villard , Tomi Valkeinen , Dave Hansen , Stefan Bader , konrad.wilk@oracle.com, ville.syrjala@linux.intel.com, david.vrabel@citrix.com, jbeulich@suse.com, toshi.kani@hp.com, bhelgaas@google.com, =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , xen-devel@lists.xensource.com Subject: [PATCH v1 01/47] x86: mtrr: annotate mtrr_type_lookup() is only implemented on generic_mtrr_ops Date: Fri, 20 Mar 2015 16:17:51 -0700 Message-Id: <1426893517-2511-2-git-send-email-mcgrof@do-not-panic.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1426893517-2511-1-git-send-email-mcgrof@do-not-panic.com> References: <1426893517-2511-1-git-send-email-mcgrof@do-not-panic.com> MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Luis R. Rodriguez" There area few users of mtrr_type_lookup(), including PAT. Note that PAT can be in theory enabled without MTRR fully kicking in, such is the case with Xen. Cc: Andy Lutomirski Cc: Suresh Siddha Cc: Venkatesh Pallipadi Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Juergen Gross Cc: Daniel Vetter Cc: Dave Airlie Cc: Antonino Daplas Cc: Jean-Christophe Plagniol-Villard Cc: Tomi Valkeinen Cc: Dave Hansen Cc: venkatesh.pallipadi@intel.com Cc: Stefan Bader Cc: konrad.wilk@oracle.com Cc: ville.syrjala@linux.intel.com Cc: david.vrabel@citrix.com Cc: jbeulich@suse.com Cc: toshi.kani@hp.com Cc: bhelgaas@google.com Cc: Roger Pau Monné Cc: linux-fbdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: xen-devel@lists.xensource.com Signed-off-by: Luis R. Rodriguez --- arch/x86/kernel/cpu/mtrr/generic.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kernel/cpu/mtrr/generic.c b/arch/x86/kernel/cpu/mtrr/generic.c index 7d74f7b..09c82de 100644 --- a/arch/x86/kernel/cpu/mtrr/generic.c +++ b/arch/x86/kernel/cpu/mtrr/generic.c @@ -230,6 +230,8 @@ u8 mtrr_type_lookup(u64 start, u64 end) int repeat; u64 partial_end; + /* XXX: Currently only implemented on generic_mtrr_ops */ + type = __mtrr_type_lookup(start, end, &partial_end, &repeat); /*