kernel-testers.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw-KKrjLPT3xs0@public.gmane.org>
To: Anisse Astier <anisse-fwwRqrJYcP2HXe+LvDLADg@public.gmane.org>,
	Chris Wilson
	<chris-Y6uKTt2uX1cEflXRtASbqLVCufUGDwFn@public.gmane.org>
Cc: Linux Kernel Mailing List
	<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Kernel Testers List
	<kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Maciej Rutecki
	<maciej.rutecki-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Florian Mickler <florian-sVu6HhrpSfRAfugRpC6u6w@public.gmane.org>,
	Eric Anholt <eric-WhKQ6XTQaPysTnJN9+BGXg@public.gmane.org>,
	Tim Gardner <tim.gardner-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>,
	Daniel Vetter <daniel.vetter-/w4YWyX8dFk@public.gmane.org>,
	Andrew Morton
	<akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>,
	Jesse Barnes <jbarnes-Y1mF5jBUw70BENJcbMCuUQ@public.gmane.org>
Subject: Re: [Bug #16891] Kernel panic while loading intel module during boot
Date: Mon, 4 Oct 2010 22:40:30 +0200	[thread overview]
Message-ID: <201010042240.31110.rjw@sisk.pl> (raw)
In-Reply-To: <201010042142.29402.rjw-KKrjLPT3xs0@public.gmane.org>

On Monday, October 04, 2010, Rafael J. Wysocki wrote:
> On Monday, October 04, 2010, Anisse Astier wrote:
> > On Sun,  3 Oct 2010 23:53:02 +0200 (CEST), "Rafael J. Wysocki" <rjw-KKrjLPT3xs0@public.gmane.org> wrote :
> > 
> > > This message has been generated automatically as a part of a report
> > > of regressions introduced between 2.6.34 and 2.6.35.
> > > 
> > > The following bug entry is on the current list of known regressions
> > > introduced between 2.6.34 and 2.6.35.  Please verify if it still should
> > > be listed and let the tracking team know (either way).
> > > 
> > > 
> > > Bug-Entry	: http://bugzilla.kernel.org/show_bug.cgi?id=16891
> > > Subject		: Kernel panic while loading intel module during boot
> > > Submitter	: Anisse Astier <anisse-fwwRqrJYcP2HXe+LvDLADg@public.gmane.org>
> > > Date		: 2010-08-24 13:19 (41 days old)
> > > 
> > > 
> > 
> > This bug is still valid, and should be listed as a regression.
> > I tried to upload on bugzilla a patch authored by Daniel Vetter that fixes
> > the problem, but then bugzilla went into blackhole mode.
> > 
> > I'll provide this patch here in the meantime in case anyone is interested.
> 
> Thanks for the update and the patch.
> 
> Well, I wonder who's going to merge it?

Chris, can you please have a look?

Thanks,
Rafael


> > ---
> > From: Daniel Vetter <daniel.vetter-/w4YWyX8dFk@public.gmane.org>
> > Date: Fri, 1 Oct 2010 19:52:09 +0200
> > Subject: [PATCH] intel-gtt: fix 2.6.35 regression
> > 
> > Port of commit "intel-gtt: fix gtt_total_entries detection" to 2.6.35.
> > 
> > Also adds PINEVIEW_IG to IS_G33 detection list
> > 
> > Signed-off-by: Anisse Astier <anisse-fwwRqrJYcP2HXe+LvDLADg@public.gmane.org>
> > ---
> >  drivers/char/agp/intel-agp.h |    1 +
> >  drivers/char/agp/intel-gtt.c |   63 ++++++++++++++++++------------------------
> >  2 files changed, 28 insertions(+), 36 deletions(-)
> > 
> > diff --git a/drivers/char/agp/intel-agp.h b/drivers/char/agp/intel-agp.h
> > index bc9a4ad..2fbbe63 100644
> > --- a/drivers/char/agp/intel-agp.h
> > +++ b/drivers/char/agp/intel-agp.h
> > @@ -226,6 +226,7 @@
> >  		agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_Q35_HB || \
> >  		agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_Q33_HB || \
> >  		agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_PINEVIEW_M_HB || \
> > +		agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_PINEVIEW_IG || \
> >  		agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_PINEVIEW_HB)
> >  
> >  #define IS_PINEVIEW (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_PINEVIEW_M_HB || \
> > diff --git a/drivers/char/agp/intel-gtt.c b/drivers/char/agp/intel-gtt.c
> > index ed11c77..ea18f64 100644
> > --- a/drivers/char/agp/intel-gtt.c
> > +++ b/drivers/char/agp/intel-gtt.c
> > @@ -501,7 +501,7 @@ static void intel_i830_init_gtt_entries(void)
> >  
> >  	pci_read_config_word(agp_bridge->dev, I830_GMCH_CTRL, &gmch_ctrl);
> >  
> > -	if (IS_I965) {
> > +	if (IS_G33 || IS_I965) {
> >  		u32 pgetbl_ctl;
> >  		pgetbl_ctl = readl(intel_private.registers+I810_PGETBL_CTL);
> >  
> > @@ -534,22 +534,6 @@ static void intel_i830_init_gtt_entries(void)
> >  			size = 512;
> >  		}
> >  		size += 4; /* add in BIOS popup space */
> > -	} else if (IS_G33 && !IS_PINEVIEW) {
> > -	/* G33's GTT size defined in gmch_ctrl */
> > -		switch (gmch_ctrl & G33_PGETBL_SIZE_MASK) {
> > -		case G33_PGETBL_SIZE_1M:
> > -			size = 1024;
> > -			break;
> > -		case G33_PGETBL_SIZE_2M:
> > -			size = 2048;
> > -			break;
> > -		default:
> > -			dev_info(&agp_bridge->dev->dev,
> > -				 "unknown page table size 0x%x, assuming 512KB\n",
> > -				(gmch_ctrl & G33_PGETBL_SIZE_MASK));
> > -			size = 512;
> > -		}
> > -		size += 4;
> >  	} else if (IS_G4X || IS_PINEVIEW) {
> >  		/* On 4 series hardware, GTT stolen is separate from graphics
> >  		 * stolen, ignore it in stolen gtt entries counting.  However,
> > @@ -1220,24 +1204,31 @@ static int intel_i915_get_gtt_size(void)
> >  	int size;
> >  
> >  	if (IS_G33) {
> > -		u16 gmch_ctrl;
> > +		u32 pgetbl_ctl;
> > +		pgetbl_ctl = readl(intel_private.registers+I810_PGETBL_CTL);
> >  
> > -		/* G33's GTT size defined in gmch_ctrl */
> > -		pci_read_config_word(agp_bridge->dev, I830_GMCH_CTRL, &gmch_ctrl);
> > -		switch (gmch_ctrl & I830_GMCH_GMS_MASK) {
> > -		case I830_GMCH_GMS_STOLEN_512:
> > +		switch (pgetbl_ctl & I965_PGETBL_SIZE_MASK) {
> > +		case I965_PGETBL_SIZE_128KB:
> > +			size = 128;
> > +			break;
> > +		case I965_PGETBL_SIZE_256KB:
> > +			size = 256;
> > +			break;
> > +		case I965_PGETBL_SIZE_512KB:
> >  			size = 512;
> >  			break;
> > -		case I830_GMCH_GMS_STOLEN_1024:
> > +		case I965_PGETBL_SIZE_1MB:
> >  			size = 1024;
> >  			break;
> > -		case I830_GMCH_GMS_STOLEN_8192:
> > -			size = 8*1024;
> > +		case I965_PGETBL_SIZE_2MB:
> > +			size = 2048;
> > +			break;
> > +		case I965_PGETBL_SIZE_1_5MB:
> > +			size = 1024 + 512;
> >  			break;
> >  		default:
> > -			dev_info(&agp_bridge->dev->dev,
> > -				 "unknown page table size 0x%x, assuming 512KB\n",
> > -				(gmch_ctrl & I830_GMCH_GMS_MASK));
> > +			dev_info(&intel_private.pcidev->dev,
> > +				 "unknown page table size, assuming 512KB\n");
> >  			size = 512;
> >  		}
> >  	} else {
> > @@ -1269,14 +1260,6 @@ static int intel_i915_create_gatt_table(struct agp_bridge_data *bridge)
> >  	pci_read_config_dword(intel_private.pcidev, I915_MMADDR, &temp);
> >  	pci_read_config_dword(intel_private.pcidev, I915_PTEADDR, &temp2);
> >  
> > -	gtt_map_size = intel_i915_get_gtt_size();
> > -
> > -	intel_private.gtt = ioremap(temp2, gtt_map_size);
> > -	if (!intel_private.gtt)
> > -		return -ENOMEM;
> > -
> > -	intel_private.gtt_total_size = gtt_map_size / 4;
> > -
> >  	temp &= 0xfff80000;
> >  
> >  	intel_private.registers = ioremap(temp, 128 * 4096);
> > @@ -1285,6 +1268,14 @@ static int intel_i915_create_gatt_table(struct agp_bridge_data *bridge)
> >  		return -ENOMEM;
> >  	}
> >  
> > +	gtt_map_size = intel_i915_get_gtt_size();
> > +
> > +	intel_private.gtt = ioremap(temp2, gtt_map_size);
> > +	if (!intel_private.gtt)
> > +		return -ENOMEM;
> > +
> > +	intel_private.gtt_total_size = gtt_map_size / 4;
> > +
> >  	temp = readl(intel_private.registers+I810_PGETBL_CTL) & 0xfffff000;
> >  	global_cache_flush();	/* FIXME: ? */
> >  
> > 

  parent reply	other threads:[~2010-10-04 20:40 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-03 21:36 2.6.36-rc6-git2: Reported regressions 2.6.34 -> 2.6.35 Rafael J. Wysocki
2010-10-03 21:36 ` [Bug #16221] 2.6.35-rc2-git5 -- [drm:drm_mode_getfb] *ERROR* invalid framebuffer id Rafael J. Wysocki
2010-10-03 21:53 ` [Bug #16462] unable to connect to hidden SSID AP on legal channel 13 Rafael J. Wysocki
2010-10-04  7:45   ` Daniel J Blueman
2010-10-03 21:53 ` [Bug #16228] BUG/boot failure on Dell Precision T3500 (pci/ahci_stop_engine) Rafael J. Wysocki
2010-10-03 21:53 ` [Bug #16265] Why is kslowd accumulating so much CPU time? Rafael J. Wysocki
2010-10-03 21:53 ` [Bug #16312] WARNING: at fs/fs-writeback.c:1127 __mark_inode_dirty Rafael J. Wysocki
2010-10-03 21:53 ` [Bug #16380] Loop devices act strangely in 2.6.35 Rafael J. Wysocki
2010-10-03 21:53 ` [Bug #16458] Bluetooth disabled after resume Rafael J. Wysocki
2010-10-03 21:53 ` [Bug #16488] [i915] Framebuffer ID error after suspend/hibernate leading to X crash Rafael J. Wysocki
2010-10-03 21:53 ` [Bug #16549] 2.6.35: suspicious rcu_dereference_check() usage Rafael J. Wysocki
2010-10-03 21:53 ` [Bug #16515] [bisected] Radeon rv280 can't boot on kernel 2.6.35 Rafael J. Wysocki
2010-10-03 21:53 ` [Bug #16562] 2.6.35: cpu_idle bug report / on i7 870 cpu (x86_64) Rafael J. Wysocki
2010-10-03 21:53 ` [Bug #16525] unexpected high load since 2.6.35 Rafael J. Wysocki
2010-10-03 21:53 ` [Bug #16891] Kernel panic while loading intel module during boot Rafael J. Wysocki
2010-10-04 15:25   ` Anisse Astier
     [not found]     ` <20101004172509.0aded2ba-nMKIGJZKI6fIeUwiHPfBe2GXanvQGlWp@public.gmane.org>
2010-10-04 19:42       ` Rafael J. Wysocki
     [not found]         ` <201010042142.29402.rjw-KKrjLPT3xs0@public.gmane.org>
2010-10-04 20:40           ` Rafael J. Wysocki [this message]
2010-10-04 21:08           ` Anisse Astier
     [not found]             ` <AANLkTinsc=DqQwnR18McRP8fLei=GHWV1yykCcYDUCzv-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-10-04 22:40               ` Rafael J. Wysocki
     [not found]                 ` <201010050040.59281.rjw-KKrjLPT3xs0@public.gmane.org>
2010-10-05 13:28                   ` Greg KH
2010-10-05 16:08                     ` Daniel Vetter
2010-10-03 21:53 ` [Bug #16691] IPW5100: iwlagn broken with 2.6.34.x to 2.6.35.2 update Rafael J. Wysocki
2010-10-03 21:53 ` [Bug #16614] [2.6.35] usb 2.0 em28xx kernel panic general protection fault: 0000 [#1] SMP RIP: 0010:[<ffffffffa004fbc5>] [<ffffffffa004fbc5>] em28xx_isoc_copy_vbi+0x62e/0x812 [em28xx] Rafael J. Wysocki
2010-10-03 21:53 ` [Bug #17261] Freezes on bootup Rafael J. Wysocki
2010-10-03 21:53 ` [Bug #17772] Unable to locate IOAPIC for GSI * Rafael J. Wysocki
2010-10-03 21:53 ` [Bug #17812] Kernel completely frozen when memory is full Rafael J. Wysocki
2010-10-03 21:53 ` [Bug #18522] cdrom drive doesn't detect removal Rafael J. Wysocki
2010-10-03 21:53 ` [Bug #19612] Computer fails to hibernate - problem idling SMP CPU's Rafael J. Wysocki
2010-10-03 21:53 ` [Bug #19302] PROBLEM: kernel crash on USB-modem (Huawei E1750) hangup Rafael J. Wysocki
2010-10-04 18:01 ` 2.6.36-rc6-git2: Reported regressions 2.6.34 -> 2.6.35 Rafał Miłecki
  -- strict thread matches above, loose matches on Subject: below --
2010-10-10 19:10 2.6.36-rc7-git2: " Rafael J. Wysocki
2010-10-10 19:18 ` [Bug #16891] Kernel panic while loading intel module during boot Rafael J. Wysocki
2010-10-11  7:18   ` Tim Gardner
     [not found]     ` <4CB2BA3F.4040208-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2010-10-11 20:25       ` Rafael J. Wysocki
2010-10-17 20:53 2.6.36-rc8-git3: Reported regressions 2.6.34 -> 2.6.35 Rafael J. Wysocki
2010-10-17 20:55 ` [Bug #16891] Kernel panic while loading intel module during boot Rafael J. Wysocki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201010042240.31110.rjw@sisk.pl \
    --to=rjw-kkrjlpt3xs0@public.gmane.org \
    --cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
    --cc=anisse-fwwRqrJYcP2HXe+LvDLADg@public.gmane.org \
    --cc=chris-Y6uKTt2uX1cEflXRtASbqLVCufUGDwFn@public.gmane.org \
    --cc=daniel.vetter-/w4YWyX8dFk@public.gmane.org \
    --cc=eric-WhKQ6XTQaPysTnJN9+BGXg@public.gmane.org \
    --cc=florian-sVu6HhrpSfRAfugRpC6u6w@public.gmane.org \
    --cc=jbarnes-Y1mF5jBUw70BENJcbMCuUQ@public.gmane.org \
    --cc=kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=maciej.rutecki-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=tim.gardner-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).