From: Yinghai Lu <yinghai@kernel.org>
To: "Rogério Brito" <rbrito@ime.usp.br>
Cc: "Linus Torvalds" <torvalds@linux-foundation.org>,
"Jesse Barnes" <jbarnes@virtuousgeek.org>,
"Ivan Kokshaysky" <ink@jurassic.park.msu.ru>,
"Edward Donovan" <edward.donovan@numble.net>,
"Thomas Gleixner" <tglx@linutronix.de>,
"Bjorn Helgaas" <bhelgaas@google.com>,
linux-kernel@vger.kernel.org,
"Márcia Coutinho de Brito" <mcbrito@gmail.com>,
"Ram Pai" <linuxram@us.ibm.com>
Subject: Re: [Bug 41722] Clevo M5X0JE hangs in ACPI init
Date: Wed, 11 Jan 2012 21:06:51 -0800 [thread overview]
Message-ID: <CAE9FiQXCJobMuFWbyoWQpVup_pvKMuGpu7eotF0EJAx2_Ee7OQ@mail.gmail.com> (raw)
In-Reply-To: <CAOtrxKOZ1yuWaAYxjPLE2obwTkCfRytRFyQc3VuK9JmJLYVrqw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 945 bytes --]
On Tue, Jan 10, 2012 at 11:04 PM, Rogério Brito <rbrito@ime.usp.br> wrote:
> Hi, Yinghai.
>
> On Tue, Jan 10, 2012 at 03:07, Yinghai Lu <yinghai@kernel.org> wrote:
>> On Mon, Jan 9, 2012 at 6:41 PM, Rogério Brito <rbrito@ime.usp.br> wrote:
>> I have some pending patches that may fix bridge resource resizing.
>>
>> Can you try them at
>>
>> git://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.git
>> for-pci2
>>
>> also please boot with "debug ignore_loglevel"
>
> Grabbing it right now. Will report it after I get some sleep (5AM here).
please try attached patch, it will fix one bios wrong setting.
>
>> BTW, did you try boot with "pci=use_crs" and not with "acpi=off" ?
>
> I tried, but I got a hang (both with Linux---many versions---and with
> FreeBSD). With Linux I get:
>
> http://www.ime.usp.br/~rbrito/linux/clevo/boot-without-acpi-off.jpg
>
need to work on that later.
Yinghai
[-- Attachment #2: disable_cardbus_mem1_pref.patch --]
[-- Type: text/x-patch, Size: 1029 bytes --]
Subject: [PATCH] PCI: Disable cardbus bridge MEM1 pref CTL
Some BIOS enable both pref for MEM0 and MEM1.
but we assume MEM1 is non-pref...
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
---
drivers/pci/setup-bus.c | 8 ++++++++
1 file changed, 8 insertions(+)
Index: linux-2.6/drivers/pci/setup-bus.c
===================================================================
--- linux-2.6.orig/drivers/pci/setup-bus.c
+++ linux-2.6/drivers/pci/setup-bus.c
@@ -774,6 +774,14 @@ static void pci_bus_size_cardbus(struct
if (realloc_head)
add_to_list(realloc_head, bridge, b_res+1, pci_cardbus_io_size, 0 /* dont care */);
+ /* MEM1 must not be pref mmio */
+ pci_read_config_word(bridge, PCI_CB_BRIDGE_CONTROL, &ctrl);
+ if (ctrl & PCI_CB_BRIDGE_CTL_PREFETCH_MEM1) {
+ ctrl &= ~PCI_CB_BRIDGE_CTL_PREFETCH_MEM1;
+ pci_write_config_word(bridge, PCI_CB_BRIDGE_CONTROL, ctrl);
+ pci_read_config_word(bridge, PCI_CB_BRIDGE_CONTROL, &ctrl);
+ }
+
/*
* Check whether prefetchable memory is supported
* by this bridge.
next prev parent reply other threads:[~2012-01-12 5:06 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-41722-5003@https.bugzilla.kernel.org/>
[not found] ` <201109062222.p86MMlK9023363@demeter2.kernel.org>
2012-01-07 1:31 ` [Bug 41722] Clevo M5X0JE hangs in ACPI init Rogério Brito
2012-01-07 1:50 ` Linus Torvalds
2012-01-07 4:19 ` Edward Donovan
2012-01-08 22:27 ` Rogério Brito
2012-01-09 4:20 ` Bjorn Helgaas
2012-01-10 2:12 ` Rogério Brito
2012-01-08 22:13 ` Rogério Brito
2012-01-08 22:23 ` Linus Torvalds
2012-01-09 19:22 ` Jesse Barnes
2012-01-09 19:41 ` Linus Torvalds
2012-01-10 1:32 ` Yinghai Lu
2012-01-10 2:41 ` Rogério Brito
2012-01-10 5:07 ` Yinghai Lu
2012-01-11 7:04 ` Rogério Brito
2012-01-12 5:06 ` Yinghai Lu [this message]
2012-01-13 11:59 ` Rogério Brito
2012-01-13 17:29 ` Yinghai Lu
2012-01-13 22:24 ` Yinghai Lu
2012-01-14 2:01 ` Rogério Brito
2012-01-14 7:09 ` Rogério Brito
2012-01-14 21:05 ` Yinghai Lu
2012-01-16 23:08 ` Bjorn Helgaas
2012-01-19 3:50 ` Rogério Brito
2012-01-19 5:06 ` Yinghai Lu
2012-01-19 13:48 ` Rogério Brito
2012-01-19 16:12 ` Yinghai Lu
2012-01-19 16:15 ` Rogério Brito
2012-01-19 17:20 ` Rogério Brito
2012-01-19 19:48 ` Yinghai Lu
2012-01-21 9:26 ` Ram Pai
2012-01-21 10:35 ` Yinghai Lu
2012-01-24 22:18 ` Rogério Brito
2012-01-24 22:53 ` Bjorn Helgaas
2012-01-25 0:19 ` Yinghai Lu
2012-01-25 0:34 ` Linus Torvalds
2012-01-25 0:57 ` Yinghai Lu
2012-01-25 1:55 ` Rogério Brito
2012-01-25 2:33 ` Rogério Brito
2012-01-25 2:39 ` Rogério Brito
2012-01-25 23:58 ` Rogério Brito
2012-01-26 2:03 ` Yinghai Lu
2012-01-26 11:16 ` Rogério Brito
2012-01-27 3:41 ` Bjorn Helgaas
2012-02-06 23:11 ` Bjorn Helgaas
2012-02-07 0:21 ` Rogério Brito
2012-01-27 6:53 ` Yinghai Lu
2012-01-10 5:24 ` Bjorn Helgaas
2012-01-11 7:05 ` Rogério Brito
2012-01-11 10:45 ` Ram Pai
2012-01-10 1:57 ` Rogério Brito
2012-01-10 9:25 ` Edward Donovan
2012-01-11 7:15 ` Rogério Brito
2012-01-08 0:55 ` Márcia Brito
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=CAE9FiQXCJobMuFWbyoWQpVup_pvKMuGpu7eotF0EJAx2_Ee7OQ@mail.gmail.com \
--to=yinghai@kernel.org \
--cc=bhelgaas@google.com \
--cc=edward.donovan@numble.net \
--cc=ink@jurassic.park.msu.ru \
--cc=jbarnes@virtuousgeek.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxram@us.ibm.com \
--cc=mcbrito@gmail.com \
--cc=rbrito@ime.usp.br \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.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).