| To: | "David VomLehn (dvomlehn)" <dvomlehn@cisco.com> |
|---|---|
| Subject: | Re: 2.6.28 will not boot on 24K processor, ebase incorrectly modified in set_uncached_handler |
| From: | Ihar Hrachyshka <ihar.hrachyshka@gmail.com> |
| Date: | Tue, 27 Jan 2009 00:35:45 +0200 |
| Cc: | "Kevin D. Kissell" <kevink@paralogos.com>, linux-mips@linux-mips.org, "Dezhong Diao (dediao)" <dediao@cisco.com>, "Victor Williams Jr (williavi)" <williavi@cisco.com>, "Michael Sundius -X (msundius - Yoh Services LLC at Cisco)" <msundius@cisco.com> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=u+JER7oNwEnAN8U8nRYIkZ0GtA60pvJSLxyVPc0NfXE=; b=n49sCFNJjV6I2wmSsOA9EuIuv21c1kKiGIO8O938oQeG/Xo4cHQupskeHxmfhQfwUe BdGmqOGXXM/fmOa8Eblkhi1oGRTePmXH71GTaCmKI8dKJCURqU4mkCM0juUPtCMDTrc1 L5CRsG0AehanNfcZnsTs5Kdzle6MkMrg0ygRU= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=IbiH64yF/EGjYK4qgl5UHj0v/BZOs+W0Vfi4UtsbjTAeDK4B9kLVJFz3CnOsraH0A2 LIgl1OUbBeo8tdxYX9EtdYr3dzlroi+OQO0CNHJF2aZM0FbhgFstzL3UNTbmifRCnIWv JRcvjYUKYHF9VqmeNwXCC1hJaeB8TjwxBsISQ= |
| In-reply-to: | <FF038EB85946AA46B18DFEE6E6F8A28976828C@xmb-rtp-218.amer.cisco.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <FF038EB85946AA46B18DFEE6E6F8A28976825D@xmb-rtp-218.amer.cisco.com> <497C3C6F.3000209@paralogos.com> <FF038EB85946AA46B18DFEE6E6F8A28976828C@xmb-rtp-218.amer.cisco.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
On Sun, Jan 25, 2009 at 11:50 PM, David VomLehn (dvomlehn) <dvomlehn@cisco.com> wrote: >> From: Kevin D. Kissell [mailto:kevink@paralogos.com] >> Sent: Sunday, January 25, 2009 2:18 AM >> To: David VomLehn (dvomlehn) >> Cc: linux-mips@linux-mips.org; Dezhong Diao (dediao); Victor >> Williams Jr (williavi); Michael Sundius -X (msundius - Yoh >> Services LLC at Cisco) >> Subject: Re: 2.6.28 will not boot on 24K processor, ebase >> incorrectly modified in set_uncached_handler >> >> David VomLehn (dvomlehn) wrote: >> > The 2.6.28 kernel dies in memcpy when called from >> set_vi_srs_handler on >> > a >> > 24K processor. The problem is that ebase has an invalid value. The >> > original >> > value of ebase comes from a bootmem allocation, but the >> following code >> > in >> > set_uncached_handler takes a perfectly good kseg0 address >> and turns it >> > into >> > an invalid kseg1 address. >> > >> > if (cpu_has_mips_r2) >> > ebase += (read_c0_ebase() & 0x3ffff000); >> > >> > This code was added in commit >> 566f74f6b2f8b85d5b8d6caaf97e5672cecd3e3e. >> > >> I remember worrying about why it was "+=" and not "=" when others had >> problems with that patch. See the thread "NXP STB225 board >> support" from >> January 8 or so. When I asked about that, I got a comment >> that the add >> operation was correct, but that patch *should* have said >> "uncached_ebase >> += (read_c0_ebase() & 0x3ffff000);" I guess uncache_ebase is >> assumed to >> contain something interesting in some non-address bits. Try >> pre-pending >> "uncached_" to that "ebase"... > > Just adding uncached_ to the ebase doesn't appear to work. Looking at > the git > log makes it a bit unclear as to exactly who made this change, but it > would > be helpful to know what was intended. > > If the patch invoked broke lots of subarchs why should we have it in the first place? Can't we just revert it until we have a fix for this bug? |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Au1550 with kernel linux-2.6.28.1 PCI Cardbus mappings too large, Frank Neuber |
|---|---|
| Next by Date: | Re: [PATCH] au1000: convert to using gpiolib, Florian Fainelli |
| Previous by Thread: | RE: 2.6.28 will not boot on 24K processor, ebase incorrectly modified in set_uncached_handler, David VomLehn (dvomlehn) |
| Next by Thread: | [PATCH][MIPS] Cobalt: add select PCI, Yoichi Yuasa |
| Indexes: | [Date] [Thread] [Top] [All Lists] |