Re: can't access PCIe card under sbc8548

2013-06-08 Thread wolfking
hi, all: The problem is now solved. In the sbc8548.dts file, the resource that is allocated to pcie controller is not suitable for my card. Actually, I think it is a typo, the range that is allocated to pcie io is 0x0800, now I change it to 0x0080. Then my serial card work OK! Is this

Re: fsqrt

2013-06-08 Thread Dan Malek
On Jun 7, 2013, at 4:30 PM, Benjamin Herrenschmidt wrote: > Right, looking more, the code really sucks. Hey! :) > …. Either you use the existing > apparent ability for MATH_EMU to operate in minimal mode, ie, > load/store/fmr only (which seems to do exactly the same thing as the > code in s

Re: fsqrt

2013-06-08 Thread Dan Malek
Hi Ben. On Jun 7, 2013, at 5:34 PM, Benjamin Herrenschmidt wrote: > The question is whether this is still relevant ? The only answer I could provide is that it's dependent upon the libraries and how the distributions are built. It's also dependent upon processors with hardware FP that don'

Re: Linux 3.9.5 [patch to fix powerpc build error attached]

2013-06-08 Thread Guenter Roeck
On Fri, Jun 07, 2013 at 12:58:16PM -0700, Greg KH wrote: > I'm announcing the release of the 3.9.5 kernel. > > All users of the 3.9 kernel series must upgrade. > > The updated 3.9.y git tree can be found at: > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git > linux-3.

Re: [PATCH -V7 09/18] powerpc: Switch 16GB and 16MB explicit hugepages to a different page table format

2013-06-08 Thread Aneesh Kumar K.V
Scott Wood writes: > On 06/06/2013 10:55:22 PM, Aneesh Kumar K.V wrote: >> Scott Wood writes: >> >> > On 04/28/2013 02:37:30 PM, Aneesh Kumar K.V wrote: >> >> From: "Aneesh Kumar K.V" >> >> >> >> We will be switching PMD_SHIFT to 24 bits to facilitate THP . >> >> >> >> Signed-off-by: Ane

[BUG] PCI related panic on powerpc based board with 3.10-rcX

2013-06-08 Thread Michael Guntsche
Good evening, I recently tested the latest 3.10-rc release (rc4) on my powerpc based routerboard which is currently running very stable on a 3.9 release. During boot I immediately got a kernel panic. I was able to get a log of the trace with the serial console. [0.039522] PCI: Probing PCI

Re: [BUG] PCI related panic on powerpc based board with 3.10-rcX

2013-06-08 Thread Michael Guntsche
After bisecting I found the responsible commit. 50d8f87d2b3: powerpc/fsl-pci Make PCIe hotplug work with Freescale PCIe controllers Reverting this commit allowed my board to boot again. @Rojhalat: Please have a look at http://marc.info/?l=linux-kernel&m=137071294204858&w=2 for my initial bugrepo

[PATCH v2 1/2] powerpc: add Book E support to 64-bit hibernation

2013-06-08 Thread Wang Dongsheng
Update the 64-bit hibernation code to support Book E CPUs. Some registers and instructions are not defined for Book3e (SDR reg, tlbia instruction). SDR: Storage Description Register. Book3S and Book3E have different address translation mode, we do not need HTABORG & HTABSIZE to translate virtual a

[PATCH v2 2/2] powerpc/hibernate: PPC64 fix user threads access to kernel space

2013-06-08 Thread Wang Dongsheng
If PID is used in the TLB, after hibernation resume, the user threads will access to kernel space. We must restore PID register, because TLB will use PID. The hibernation suspend flow is trapped from user space to kernel space, the PID register is user thread pid. The hibernation resume is begin

Re: fsqrt

2013-06-08 Thread Benjamin Herrenschmidt
The interesting thing I'm finding is that our math-emu is actually quite busted :-) For example look at fsqrt. It's defined as type AB which is incorrect, it should be type XB. It ends up looking for it's arguments in the wrong registers, same for fsrqts, fre, and a few others. Also quite a few f

Re: [PATCH v2 2/2] powerpc/hibernate: PPC64 fix user threads access to kernel space

2013-06-08 Thread Benjamin Herrenschmidt
On Sun, 2013-06-09 at 13:22 +0800, Wang Dongsheng wrote: > If PID is used in the TLB, after hibernation resume, the user > threads will access to kernel space. .../... I think the explanation is way more convoluted and confusing here than anything else. Simply say that upon resume from hibernat