Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753472AbbDNLQG (ORCPT ); Tue, 14 Apr 2015 07:16:06 -0400 Received: from plane.gmane.org ([80.91.229.3]:43931 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752464AbbDNLP4 (ORCPT ); Tue, 14 Apr 2015 07:15:56 -0400 X-Injected-Via-Gmane: http://gmane.org/ To: linux-kernel@vger.kernel.org From: =?UTF-8?B?SsO2cmctVm9sa2VyIFBlZXR6?= Subject: Re: [PATCH] x86, aperture: Check for GART before accessing GART registers Date: Tue, 14 Apr 2015 13:15:43 +0200 Message-ID: <552CF6DF.3000002@web.de> References: <1427898728-3434-1-git-send-email-Aravind.Gopalakrishnan@amd.com> <20150402100135.GA5210@gmail.com> <551D661D.3030000@amd.com> <20150402160634.GB8045@gmail.com> <551D6CF5.1010604@amd.com> <20150402165356.GE4579@pd.tnic> <551D7695.2010509@amd.com> <20150402171705.GF4579@pd.tnic> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org Cc: Ingo Molnar , tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, bhelgaas@google.com, linux-kernel@vger.kernel.org, Suravee.Suthikulpanit@amd.com, joro@8bytes.org X-Gmane-NNTP-Posting-Host: p5b0a06df.dip0.t-ipconnect.de In-Reply-To: <20150402171705.GF4579@pd.tnic> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1758 Lines: 46 Hi, tried this patch on my HP Pavilion notebook wiht AMD Phenom II processor. The BIOS has no IOMMU option. With this patch I'm still seeing the AGP messages mention in the patch description. Is this processor affected at all? /proc/cpuinfo says "cpu family" 16. That is 10h? Regards, jvp. Borislav Petkov wrote on 04/02/2015 19:17: > On Thu, Apr 02, 2015 at 12:04:21PM -0500, Aravind Gopalakrishnan wrote: >>> No need - I can amend the local copy I have here. > > Here's what I did: > > --- > From: Aravind Gopalakrishnan > Date: Wed, 1 Apr 2015 09:32:08 -0500 > Subject: [PATCH] x86/gart: Check for GART support before accessing GART > registers > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > GART registers are not present in newer AMD processors (Fam15h, > Model 10h and later). So, avoid accesses to GART registers in PCI > config space by returning early in early_gart_iommu_check() and > gart_iommu_hole_init() if GART is not available. > > Current code doesn't break on existing processors but there are some > side effects: > > We get bogus AGP aperture messages which are simply noise on > GART-less processors: > > AGP: Node 0: aperture [bus addr 0x00000000-0x01ffffff] (32MB) > AGP: Your BIOS doesn't leave a aperture memory hole > AGP: Please enable the IOMMU option in the BIOS setup > AGP: This costs you 64MB of RAM > AGP: Mapping aperture over RAM [mem 0xd4000000-0xd7ffffff] > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/