Re: [PATCH v2 1/5] uaccess: add pagefault_count to thread_info

2014-12-15 Thread LF.Tan
On Wed, Dec 10, 2014 at 10:23 PM, David Hildenbrand wrote: > This patch adds the pagefault_count to the thread_info of all > architectures. It will be used to count the pagefault_disable() levels > on a per-thread basis. > > We are not reusing the preempt_count as this is per cpu on x86 and we wan

Re: [PATCH 00/18] uaccess: fix sparse warning on get_user for bitwise types

2014-12-15 Thread LF.Tan
On Mon, Dec 15, 2014 at 12:51 AM, Michael S. Tsirkin wrote: > At the moment, if p and x are both tagged as bitwise types, > get_user(x, p) produces a sparse warning on many architectures. > This is because *p on these architectures is loaded into long > (typically using asm), then cast back to typ

Re: [PATCH v6 00/29] nios2 Linux kernel port

2014-11-06 Thread LF.Tan
On Mon, Nov 3, 2014 at 6:51 PM, Ley Foon Tan wrote: > > This is the 6th version of patchset adds the Linux kernel port for Nios II > processor from Altera. All of the feedback from v5 patchseries has been > addressed. Note, only patch #1, #7 and #21 have non-trivial changes. > Thanks to all who pr

Re: [PATCH v3 01/29] asm-generic: add generic futex for !CONFIG_SMP

2014-09-23 Thread LF.Tan
On Mon, Sep 8, 2014 at 5:22 PM, Ley Foon Tan wrote: > Follow m68k futex implementation for !CONFIG_SMP. > > Signed-off-by: Ley Foon Tan > --- > include/asm-generic/futex.h | 82 > + > 1 file changed, 82 insertions(+) > > diff --git a/include/asm-gener

Re: [PATCH] net: stmmac: add fix_mac_speed support for socfpga

2014-08-19 Thread LF.Tan
On Wed, Aug 20, 2014 at 2:33 PM, Ley Foon Tan wrote: > This patch adds fix_mac_speed() support for > Altera socfpga Ethernet controller. Emac splitter is a > soft IP core in FPGA system that converts GMII interface from > Synopsys mac to RGMII/SGMII interface. This splitter core is > an optional I

Re: [PATCH v2 24/29] nios2: Module support

2014-07-15 Thread LF.Tan
On Tue, Jul 15, 2014 at 8:21 PM, Arnd Bergmann wrote: >> >> AFAIR this is due to relocation issues, as the FIXME comment in the >> "original" code [1] states. I don't know whether this still applies, >> though (or what would be the proper fix for this to overcome the >> relocation issues). >> >>

Re: [PATCH 06/28] nios2: Memory management

2014-04-22 Thread LF.Tan
On Wed, Apr 23, 2014 at 12:24 AM, Sam Ravnborg wrote: >> Other than being "pretty" the above fix is to remove a mismatch type >> warning. You can get rid of the warning in different ways: >> >> ifdef __ASSEMBLY__ >> define PAGE_SIZE 4096 >> else >> define PAGE_SIZE 4096UL >> endif > >

min() and max() have warning: comparison of distinct pointer types lacks a cast

2014-04-21 Thread LF.Tan
Hi all Have these warning messages when compiling kernel. Anyone know what's wrong? Regards. In file included from mm/readahead.c:10:0: mm/readahead.c: In function 'max_sane_readahead': include/linux/kernel.h:713:17: warning: comparison of distinct pointer types lacks

BUG_ON(irq_has_action(entry->irq + i)) in free_msi_irqs()

2013-10-29 Thread LF.Tan
Hi all I am new in PCI and now working on MSI support on our PCIe host driver. I have an endpoint driver requests for a MSI interrupt. When the endpoint driver try to free the interrupt, it cause the kernel BUG_ON() message is printed out. The software flow: Endpoint driver --> pci_disable_msi --

Re: [RFC PATCH 0/4] add support for gcov format introduced in gcc 4.7

2013-08-26 Thread LF.Tan
wrote: > On 26.08.2013 13:39, LF.Tan wrote: >> Hi all >> >> I am interested to enable Gcov on my platform (on a target board). I >> have tried to apply the 4 patches submitted by Frantisek Hrbata. But, >> the *.gcda is always empty. Note, I am using GCC 4.7.3. >>

Re: [RFC PATCH 0/4] add support for gcov format introduced in gcc 4.7

2013-08-26 Thread LF.Tan
Hi all I am interested to enable Gcov on my platform (on a target board). I have tried to apply the 4 patches submitted by Frantisek Hrbata. But, the *.gcda is always empty. Note, I am using GCC 4.7.3. I have followed the steps in Documentation/gcov.txt. I've mounted the NFS filesystem and it has

Hardware mutex common framework

2013-06-26 Thread LF.Tan
Hi all Do we have hardware mutex common framework available in kernel? I can't find in drivers/, but, I found there is a hardware spinlock framework under drivers/hwspinlock. I believe the spinlock and mutex should have different framework. Please correct me if wrong. I would like to introduce a