[PATCH]realtek:r8169: Bugfix or workaround for missing extended GigaMAC registers settings

2012-11-29 Thread Wang YanQing
with extended GigaMAC reigisters have the same problem, I meet it in 8168e-vl with RTL_GIGA_MAC_VER_34, so I make this patch just for it.] Signed-off-by: Wang YanQing --- drivers/net/ethernet/realtek/r8169.c | 24 1 file changed, 24 insertions(+) diff --git a/drive

Re: [PATCH]realtek:r8169: Bugfix or workaround for missing extended GigaMAC registers settings

2012-11-30 Thread Wang YanQing
On Fri, Nov 30, 2012 at 07:35:00AM +0100, Francois Romieu wrote: > Which kernel version is it ? I have done the test and debug with mainline e23739b4ade80a3a7f87198f008f6c44a7cbc9fd, v3.7-rc7-51-ge23739b > I'd rather see the GigaMAC registers written through a call to > rtl_rar_set when the mac

[PATCH v2]realtek:r8169: Bugfix or workaround for missing extended GigaMAC registers settings

2012-11-30 Thread Wang YanQing
call to rtl_rar_set when the mac address is read in rtl_init_one instead of duplicating most of rtl_rar_set in a quite different place. Signed-off-by: Wang YanQing --- drivers/net/ethernet/realtek/r8169.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/realtek/r8169.c b/d

Re: [PATCH]realtek:r8169: Bugfix or workaround for missing extended GigaMAC registers settings

2012-11-30 Thread Wang YanQing
On Fri, Nov 30, 2012 at 05:04:29PM +0800, Wang YanQing wrote: > On Fri, Nov 30, 2012 at 07:35:00AM +0100, Francois Romieu wrote: > > Which kernel version is it ? > I have done the test and debug with mainline > e23739b4ade80a3a7f87198f008f6c44a7cbc9fd, v3.7-rc7-51-ge23739b More

[PATCH] lib80211: make lib80211 can be enabled independently

2013-04-04 Thread Wang YanQing
r Broadcom Corporation BCM43225 802.11b/g/n Signed-off-by: Wang YanQing --- net/wireless/Kconfig | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/net/wireless/Kconfig b/net/wireless/Kconfig index 16d08b3..6e83f0a 100644 --- a/net/wireless/Kconfig +++ b/net/wirele

Re: [PATCH] lib80211: make lib80211 can be enabled independently

2013-04-04 Thread Wang YanQing
On Fri, Apr 05, 2013 at 10:51:30AM +1100, Julian Calaby wrote: > Just as a bit of explanation for Johannes' NACK: > > 1. The only reason lib80211 still exists is because a couple of > in-tree drivers still use it. If this weren't the case, the code would > have been removed a long time ago as it's

[PATCH]smp: Fix send func call IPI to empty cpu mask

2013-01-25 Thread Wang YanQing
IPI mask")) return; then the problem 83d349f3 fix will happen again. Signed-off-by: Wang YanQing --- kernel/smp.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/kernel/smp.c b/kernel/smp.c index 29dd40a..7c56aba 100644 --- a/kernel/smp.c +++ b/kernel/s

[PATCH]video:uvesafb: Fix dereference NULL pointer code path

2013-01-26 Thread Wang YanQing
platform_device_alloc could failed and return NULL, we should check this before call platform_device_put. Signed-off-by: Wang YanQing --- drivers/video/uvesafb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/video/uvesafb.c b/drivers/video/uvesafb.c index 2f8f82d

[PATCH] smp:Fix use un-initialized cpumask_ipi

2013-01-27 Thread Wang YanQing
c7b798525b50256c8084215a139fa40b0114bfcc [smp: Fix SMP function call empty cpu mask race] use the un-initialized variable cpumask_ipi when enable CONFIG_CPUMASK_OFFSTACK. Signed-off-by: Wang YanQing --- I am sorry for miss it, I just think it when I was lying on the bed last night

[PATCH Resend] smp:Fix use un-initialized cpumask_ipi

2013-01-27 Thread Wang YanQing
c7b798525b50256c8084215a139fa40b0114bfcc [smp: Fix SMP function call empty cpu mask race] use the un-initialized variable cpumask_ipi when enable CONFIG_CPUMASK_OFFSTACK. Signed-off-by: Wang YanQing --- I am sorry for miss it first. kernel/smp.c | 4 1 file changed, 4 insertions(+) diff

[PATCH Resend Resend] smp:Fix use un-initialized cpumask_ipi

2013-01-27 Thread Wang YanQing
c7b798525b50256c8084215a139fa40b0114bfcc [smp: Fix SMP function call empty cpu mask race] use the un-initialized variable cpumask_ipi when enable CONFIG_CPUMASK_OFFSTACK. Signed-off-by: Wang YanQing --- I am sorry for miss it first. kernel/smp.c | 4 1 file changed, 4 insertions(+) diff

Re: [PATCH]smp: Fix send func call IPI to empty cpu mask

2013-01-28 Thread Wang YanQing
On Mon, Jan 28, 2013 at 09:25:55AM +, Jan Beulich wrote: > But the patch is obviously incomplete for the CPUMASK_OFFSTACK > case, as the newly added cpumask_ipi member never gets > its bit array allocated. > > Jan Yes, I have found it, and the patch is in lkml some hours ago. Thanks. -- To un

[PATCH]iommu: Include linux/err.h

2013-02-25 Thread Wang YanQing
The linux/iommu.h header uses ERR_PTR defined in linux/err.h but doesn't include it. Reviewed-by: Alex Williamson Signed-off-by: Wang YanQing --- I send this twice to joerg.roe...@amd.com more than one month, but it had been ignored, I don't why. include/linux/iommu.h | 1 + 1 fi

[PATCH]gma500: remove unused drm_psb_no_fb

2013-03-13 Thread Wang YanQing
commit f9f23a77f07506a32d9dc1d925bf85c0e7507b66(gma500: remove no_fb bits) remove all the drm_psb_no_fb relations code in gma500 except this line code, so remove it also. Signed-off-by: Wang YanQing --- drivers/gpu/drm/gma500/psb_drv.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers

[PATCH]scripts:kconfig:meconf: Add Save button to save config at anytime

2012-09-23 Thread Wang YanQing
er save config, and then use "%" or fg to resume menuconfig and go on tuning. Signed-off-by: Wang YanQing --- scripts/kconfig/lxdialog/menubox.c | 7 +-- scripts/kconfig/mconf.c| 32 +++- 2 files changed, 36 insertions(+), 3 deletions(-)

Re: [PATCH v2 2/5] kconfig: fix trivial typos and update mconf documentation

2013-10-04 Thread Wang YanQing
line. > > Furthermore, the help texts now should fit in 80 columns again when viewed > in mconf. > > Signed-off-by: Martin Walch Reviewed-by: Wang YanQing Thanks, I like it. :) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a m

Re: [PATCH v2 3/5] kconfig: adjust warning message for conflicting types

2013-10-04 Thread Wang YanQing
at the second type > replaces the first type. > > This patch clarifies this by changing the warning to > > ignoring type redefinition of from to > > Signed-off-by: Martin Walch Acked-by: Wang YanQing -- To unsubscribe from this list: send the line "unsubscribe li

Re: [PATCH v2 5/5] kconfig: fix bug in search results string: use strlen(gstr->s), not gstr->len

2013-10-05 Thread Wang YanQing
> Signed-off-by: Martin Walch Acked-by: Wang YanQing Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH]kconfig:mconf: avoid unneeded memcpy

2013-10-05 Thread Wang YanQing
r old jump key label in current implementation, I can't image out any case which a search result could change its jump key label, unless user search new string, but then we will re-assign jump key label, and it will be fix after that. Signed-off-by: Wang YanQing --- scripts/kconfig/mconf.c |

Re: [PATCH]kconfig:mconf: avoid unneeded memcpy

2013-10-06 Thread Wang YanQing
On Sun, Oct 06, 2013 at 01:57:15AM +0800, Wang YanQing wrote: > In function update_text we assign jump key label > per page (1)-(9) cycled, and use three space char > as the header after k exceed JUMP_NB. > > We don't need to call memcpy with header of three > space c

Re: [PATCH] kernel/smp.c: free related resources when failure occurs in hotplug_cfd()

2013-07-08 Thread Wang YanQing
On Mon, Jul 08, 2013 at 04:50:24PM +0800, Chen Gang wrote: > When failure occurs in hotplug_cfd(), need release related resources, > or will cause memory leak. > > Also beautify the related code. > > Signed-off-by: Chen Gang > --- > kernel/smp.c | 13 + > 1 files changed, 9 insert

Re: [PATCH v2] kernel/smp.c: free related resources when failure occurs in hotplug_cfd()

2013-07-08 Thread Wang YanQing
free_cpumask_var(cfd->cpumask); > return notifier_from_errno(-ENOMEM); > } > -- > 1.7.7.6 Acked-by: Wang YanQing -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vge

Re: [PATCH v2 01/25] Revert smp: Fix SMP function call empty cpu mask race

2013-09-13 Thread Wang YanQing
gt; Later commit 9a46ad6d6df3 "smp: make smp_call_function_many() use logic > similar to smp_call_function_single()" fixed the same issue in another > way when optimizing smp_call_function_many(), which then obsoletes > changes introduced by commit f44310b98ddb7. So revert it. &g

Re: [PATCH v2 01/25] Revert smp: Fix SMP function call empty cpu mask race

2013-09-13 Thread Wang YanQing
On Sat, Sep 14, 2013 at 12:41:36PM +0800, Wang YanQing wrote: > On Thu, Sep 12, 2013 at 12:07:05AM +0800, Jiang Liu wrote: > > From: Jiang Liu > > > > Commit f44310b98ddb7 "smp: Fix SMP function call empty cpu mask race" > > introduced field call_functio

[PATCH v2] trace: show more and exactly help information about snapshot

2013-09-13 Thread Wang YanQing
else tracing_reset(&tr->max_buffer, iter->cpu_file); } break; } It does nothing if it isn't allocated. Perhaps we need it to say "(but does not allocate or free)" -- Steve Signed-off-by: Wang YanQing --- I think

Re: [PATCH v1 1/3] SMP: kill redundant call_function_data->cpumask_ipi field

2013-09-09 Thread Wang YanQing
gt;lock, flags); > } > Your optimization don't need to keep cpumask_ipi, just clear cfd->cpumask, and test whether cfd->cpumask is empty after "for_each_cpu(cpu, cfd->cpumask)". Acked-by: Wang YanQing Thanks. -- To unsubscribe from this list: send the

[PATCH]trace: fix wrong help information about snapshot

2013-09-12 Thread Wang YanQing
apshot" should looks like below: " echo 2 > snapshot : Clears snapshot buffer (but does not free) (Doesn't have to be '2' works with any number that is not a '0' or '1')" Signed-off-by: Wang YanQing -

[PATCH v2]mconf: Add Save button

2012-10-07 Thread Wang YanQing
er save config, and then use "%" or fg to resume menuconfig and go on tuning. Changes v1-v2: * Rewrite the most code to make it more correct Signed-off-by: Wang YanQing --- scripts/kconfig/lxdialog/menubox.c | 17 scripts/kconfig/mconf.c| 40 +

[PATCH v3]mconf: Add Save button

2012-10-07 Thread Wang YanQing
er save config, and then use "%" or fg to resume menuconfig and go on tuning. v2: Rewrite the most code to make it more correct v3: Fix the behavior of conf_message_callback when exit. Signed-off-by: Wang YanQing --- scripts/kconfig/lxdialog/menubox.c | 17 +++--- s

Re: [PATCH v3]mconf: Add Save button

2012-10-08 Thread Wang YanQing
On Mon, Oct 08, 2012 at 08:03:40AM +0200, Borislav Petkov wrote: > Well, there are a bunch of patches from Benjamin Poirier adding the > possibility to jump to search results and you could use them to go to > your desired submenu. First there are two ways to save the .config in menuconfig 1:Exit me

Re: [PATCH v3]mconf: Add Save button

2012-10-08 Thread Wang YanQing
On Mon, Oct 08, 2012 at 10:28:32AM +0200, Borislav Petkov wrote: > On Mon, Oct 08, 2012 at 03:22:49PM +0800, Wang YanQing wrote: > > With one terminal, I can do: > > 1: make menuconfig > > 2: ajust and use "Save" button to save .config > > 3: use CRTL-Z(konso

[PATCH v3]realtek:r8169: Bugfix or workaround for missing extended GigaMAC registers settings

2012-11-30 Thread Wang YanQing
call to rtl_rar_set when the mac address is read in rtl_init_one instead of duplicating most of rtl_rar_set in a quite different place. V2-V3: 1:Add conditon code to around this fix, because it make no sense for most NIC 2:Add comment in code Signed-off-by: Wang YanQing --- drivers/net/et

Re: [PATCH]realtek:r8169: Bugfix or workaround for missing extended GigaMAC registers settings

2012-11-30 Thread Wang YanQing
On Fri, Nov 30, 2012 at 06:00:02PM +0800, Wang YanQing wrote: > I found the mainline's r8169 works the same as realtek's driver, > the first time don't work, but it works after reboot, the reason > is the pci driver's shutdown don't call rtl_rar_set in 3.0 s

[PATCH v4]menuconfig: Add Save button

2012-12-01 Thread Wang YanQing
configuration file with Save button. Signed-off-by: Wang YanQing --- scripts/kconfig/lxdialog/menubox.c | 21 +- scripts/kconfig/mconf.c| 45 ++ 2 files changed, 47 insertions(+), 19 deletions(-) diff --git a/scripts/kconfig/lxdialog

Re: [PATCH v3]realtek:r8169: Bugfix or workaround for missing extended GigaMAC registers settings

2012-12-02 Thread Wang YanQing
On Sat, Dec 01, 2012 at 12:44:01PM +0100, Francois Romieu wrote: > Wang YanQing : > > + /* > > +*This is a fix for BIOS forget to set > > +*extend GigaMAC registers > > +*Wang YanQing 12/1/2012 > > +*/ > > This part will go into the change

[PATCH] lxdialog:inputbox: Fix can't change selected button with Left/Right when input box selected

2012-12-02 Thread Wang YanQing
This patch fix it. Signed-off-by: Wang YanQing --- scripts/kconfig/lxdialog/inputbox.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/kconfig/lxdialog/inputbox.c b/scripts/kconfig/lxdialog/inputbox.c index dd8e587..7841f46 100644 --- a/scripts/kconfig/lxdialog/

Re: [PATCH] lxdialog:inputbox: Fix can't change selected button with Left/Right when input box selected

2012-12-02 Thread Wang YanQing
On Sun, Dec 02, 2012 at 06:32:43PM +0100, Yann E. MORIN wrote: > Wang, All, > > On Sunday 02 December 2012 Wang YanQing wrote: > > inputbox code don't support use Left/Right to change input > > position in the input box, so it use continue to skip them > > when

Re: [PATCH v4]menuconfig: Add Save button

2012-12-02 Thread Wang YanQing
w. > > > V1-V2: Rewrite the most code to make it more correct > > V2-V3: Fix the behavior of conf_message_callback when exit. > > V3-V4: > > 1: Move Buttons a little left to make them look like symmetrical. > > 2: Exchange the position between Save button a

[PATCH 1/2 v2] menuconfig: Add Save/Load buttons

2012-12-17 Thread Wang YanQing
space while at it for below line: "*) Formerly when I used Page Down and Page Up, the cursor would be set" ] Changes: V1-V2: 1:use PATH_MAX instead of hard code suggested by Yann E. MORIN 2:drop the spurious empty-line removal suggested by Yann E. MORIN Signed-off-by: Wang YanQing --

[PATCH 1/2 v3] menuconfig: Add Save/Load buttons

2012-12-18 Thread Wang YanQing
ition well centered reported by Yann E. MORIN Signed-off-by: Wang YanQing --- Hi Yann E. MORIN, can you give your Rev'ed-by and Tested-by to his patch, Thanks very much for your help, I just don't know how to computer out the right position :) The Changes appear in commit log is ok, I foun

[PATCH RESEND 1/2 v3] menuconfig: Add Save/Load buttons

2012-12-18 Thread Wang YanQing
ition well centered reported by Yann E. MORIN Signed-off-by: Wang YanQing --- Hi Yann E. MORIN, can you give your Rev'ed-by and Tested-by to this patch, Thanks very much for your help, I just don't know how to computer out the right position :) The Changes appear in commit log is ok,

Re: [PATCH] kconfig:lxdialog: remove duplicate code

2012-12-23 Thread Wang YanQing
On Mon, Dec 17, 2012 at 07:19:07PM +0100, Yann E. MORIN wrote: > Wang, All, > > On Monday 17 December 2012 Wang YanQing wrote: > > dialog.h has two line the same below: > > extern char dialog_input_result[]; > > This patch remove one of them. > > > > Signed

[PATCH] iommu: Include linux/err.h

2013-04-18 Thread Wang YanQing
The linux/iommu.h header uses ERR_PTR defined in linux/err.h but doesn't include it. Cc:j...@8bytes.org Reviewed-by: Alex Williamson Signed-off-by: Wang YanQing --- This patch has been in LKML for more than 2 months, I even forget it, but the compile error when I compile a kernel modul

Re: [PATCH]drivers:acpi: Fix wrong parameter passed to memblock_reserve

2013-04-18 Thread Wang YanQing
On Mon, Apr 15, 2013 at 07:47:38PM -0700, Yinghai Lu wrote: > On Mon, Apr 15, 2013 at 6:44 PM, Wang YanQing wrote: > > > > The parameter of memblock_reserve is start address, > > and size, not address range. > > > > Signed-off-by: Wang YanQing > > --- >

[PATCH]memblock: Fix potential section mismatch problem

2013-06-12 Thread Wang YanQing
This patch convert __init to __init_memblock for functions which make reference to memblock variable with attribute __meminitdata. Signed-off-by: Wang YanQing --- mm/memblock.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/mm/memblock.c b/mm

Re: [PATCH]memblock: Fix potential section mismatch problem

2013-06-12 Thread Wang YanQing
On Wed, Jun 12, 2013 at 10:29:17AM -0700, Yinghai Lu wrote: > On Wed, Jun 12, 2013 at 9:08 AM, Wang YanQing wrote: > > > > This patch convert __init to __init_memblock > > for functions which make reference to memblock variable > > with attribute __meminitdata. > &

Re: [PATCH kbuild-next] kconfig/lxdialog: Add definitions for mininimum (re)size values

2013-06-15 Thread Wang YanQing
changelog > * Add a comment above the block of new definitions ] > > Signed-off-by: Sedat Dilek Acked-by: Wang YanQing -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH] TTY:vt: convert remain take_over_console's users to do_take_over_console

2013-06-05 Thread Wang YanQing
On Tue, Jun 04, 2013 at 10:13:18PM +0200, Pavel Machek wrote: > On Tue 2013-05-21 13:15:12, Wang YanQing wrote: > > Impact: > > 1:convert all remain take_over_console to do_take_over_console > > This is step backwards. What is step backwards? do_take_over_console appear MUCH

Re: [PATCH] TTY:vt: convert remain take_over_console's users to do_take_over_console

2013-06-06 Thread Wang YanQing
On Thu, Jun 06, 2013 at 01:47:46PM +0200, Pavel Machek wrote: > On Thu 2013-06-06 09:23:13, Wang YanQing wrote: > > On Tue, Jun 04, 2013 at 10:13:18PM +0200, Pavel Machek wrote: > > > On Tue 2013-05-21 13:15:12, Wang YanQing wrote: > > > > Impact: > > > >

Re: [PATCH] arch: parisc: kernel: using strlcpy() instead of strcpy()

2013-05-30 Thread Wang YanQing
On Thu, May 30, 2013 at 09:18:43AM +0800, Chen Gang wrote: > > 'boot_args' is an input args, and 'boot_command_line' has a fix length. > > So need use strlcpy() instead of strcpy() to avoid memory overflow. > > > Signed-off-by: Chen Gang > --- > arch/parisc/kernel/setup.c |3 ++- > 1 file

[PATCH]memblock: do double array and add merge directly path in memblock_insert_region

2013-06-09 Thread Wang YanQing
can get better performance, this patch add support to do merge directly in memblock_insert_region. Signed-off-by: Wang YanQing --- mm/memblock.c | 87 +-- 1 file changed, 42 insertions(+), 45 deletions(-) diff --git a/mm/memblock.c b/mm

Re: [v3.9] [v3.10] [Regression] serial: 8250_pci: add support for another kind of NetMos Technology PCI 9835 Multi-I/O Controller

2013-07-01 Thread Wang YanQing
On Mon, Jul 01, 2013 at 12:14:45PM -0400, Joseph Salisbury wrote: > Hi Wang, > > A bug was opened against the Ubuntu kernel[0]. After a kernel bisect, > it was found that reverting the following commit resolved this bug: > > commit 8d2f8cd424ca0b99001f3ff4f5db87c4e525f366 >

Re: [PATCH 1/3] smp/ipi: Remove redundant cfd->cpumask_ipi mask

2013-07-05 Thread Wang YanQing
On Fri, Jul 05, 2013 at 09:57:01PM +0530, Preeti U Murthy wrote: > cfd->cpumask_ipi is used only in smp_call_function_many().The existing > comment around it says that this additional mask is used because > cfd->cpumask can get overwritten. > > There is no reason why the cfd->cpumask can be overwr

Re: [PATCH 3/3] smp/ipi:Remove check around csd lock in handler for smp_call_function variants

2013-07-05 Thread Wang YanQing
On Fri, Jul 05, 2013 at 09:57:21PM +0530, Preeti U Murthy wrote: > call_single_data is always locked by all callers of > arch_send_call_function_single_ipi() or > arch_send_call_function_ipi_mask() which results in execution of > generic_call_function_interrupt() handler. > > Hence remove the chec

Re: [PATCH 1/3] smp/ipi: Remove redundant cfd->cpumask_ipi mask

2013-07-05 Thread Wang YanQing
On Sat, Jul 06, 2013 at 10:59:39AM +0530, Preeti U Murthy wrote: > Hi Wang, > > On 07/06/2013 08:43 AM, Wang YanQing wrote: > > On Fri, Jul 05, 2013 at 09:57:01PM +0530, Preeti U Murthy wrote: > >> cfd->cpumask_ipi is used only in smp_call_function_many().The existing

Re: [PATCH 2/3] smp/ipi:Clarify ambiguous comments around deadlock scenarios in smp_call_function variants.

2013-07-05 Thread Wang YanQing
On Fri, Jul 05, 2013 at 09:57:11PM +0530, Preeti U Murthy wrote: > Elaborate on when deadlocks can occur when a call is made to > smp_call_function_single() and its friends. This avoids ambiguity about > when to use these calls. > > Signed-off-by: Preeti U Murthy > Cc: Peter Zijlstra > Cc: Ingo

Re: [PATCH 3/3] smp/ipi:Remove check around csd lock in handler for smp_call_function variants

2013-07-06 Thread Wang YanQing
On Sat, Jul 06, 2013 at 01:36:27PM +0530, Preeti U Murthy wrote: > Ideally it should be under a WARN_ON(). csd_unlock() has that WARN_ON(). > Unlocking a parameter which is not locked should be seen as a bug, which > the above code is not doing. In fact it avoids it being reported as a bug. Althou

Re: [PATCH V2] smp: Give WARN()ing when calling smp_call_function_many()/single() in serving irq

2013-07-06 Thread Wang YanQing
On Fri, Jul 05, 2013 at 03:50:57PM +0200, Thomas Gleixner wrote: > On Sat, 16 Feb 2013, Chuansheng Liu wrote: > > There is a real case for softirq DEADLOCK case: > > > > CPUACPUB > > spin_lock(&spinlock) > >

Re: [PATCH V2] smp: Give WARN()ing when calling smp_call_function_many()/single() in serving irq

2013-07-06 Thread Wang YanQing
On Fri, Jul 05, 2013 at 04:37:14PM +0200, Thomas Gleixner wrote: > Hmm, even there it matters, because of the following scenario: > > CPU 0 > smp_call_function_single(CPU 1) > csd_lock(CPU 1) No, smpl_call_function_single(CPU 1) will csd_lock(CPU 0), not csd_lock(CPU 1) > irq_enter() >

Re: [PATCH 3/3] smp/ipi:Remove check around csd lock in handler for smp_call_function variants

2013-07-07 Thread Wang YanQing
On Sun, Jul 07, 2013 at 09:53:48PM +0530, Preeti U Murthy wrote: > > " > > /* > > > > * Unlocked CSDs are valid through generic_exec_single(): > > > > */ >

[PATCH] x86: Fix override new_cpu_data.x86 with 486

2013-06-26 Thread Wang YanQing
will over write all the information in early_cpu_init, and before early_cpu_init, there is no user of new_cpu_data, but this is another patch in the future. Signed-off-by: Wang YanQing --- arch/x86/kernel/head_32.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel

Re: [PATCH] x86: Fix override new_cpu_data.x86 with 486

2013-06-27 Thread Wang YanQing
On Thu, Jun 27, 2013 at 12:54:35PM +0200, Borislav Petkov wrote: > On Thu, Jun 27, 2013 at 12:26:40AM +0800, Wang YanQing wrote: > > > > We should set X86 to 486 before use cpuid > > to detect the cpu type, if we set X86 to 486 > > after cpuid, then we will get 486 for

[PATCH v2]x86: Fix override new_cpu_data.x86 with 486

2013-06-28 Thread Wang YanQing
We should set X86 to 486 before use cpuid to detect the cpu type, if we set X86 to 486 after cpuid, then we will get 486 until cpu_detect runs. Signed-off-by: Wang YanQing --- ChangeLog v1-v2: 1:Use more accurate and short commit log arch/x86/kernel/head_32.S | 2 +- 1 file changed, 1

[PATCH]serial: 8250_pci: add support for another kind of NetMos Technology PCI 9835 Multi-I/O Controller

2013-02-28 Thread Wang YanQing
01:08.0 Communication controller: NetMos Technology PCI 9835 Multi-I/O Controller (rev 01) Subsystem: Device [1000:0012] Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=m

[PATCH]serial: 8250: Fix detect XScale port wrong

2013-02-28 Thread Wang YanQing
it is harmless for current code, we will set UART_CAP_RTOIE if it is XScale port. Signed-off-by: Wang YanQing --- drivers/tty/serial/8250/8250.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/8250/8250.c b/drivers/tty/serial/8250/8250.c index 0e

Re: [PATCH]serial: 8250: Fix detect XScale port wrong

2013-03-02 Thread Wang YanQing
On Fri, Mar 01, 2013 at 02:17:16PM -0500, Paul Gortmaker wrote: > On 13-03-01 12:56 AM, Wang YanQing wrote: > > Some UARTs add enhanced functions with unused bit in > > 16550 standard, like UART_IER_UUE bit, it cause XScale > > Which xscale platform? It would be nice to kn

[PATCH]8250_pci: Add additional WCH CH352 device

2013-03-02 Thread Wang YanQing
This patch fix a problem XScale port detect code in autoconfig_16550a treat 16550A port as XScale port, caused by CH352 device use the 6th bit(UART_IER_UUE) in IER as a enhance function make this bit w/r. for the below device: " 01:08.0 Serial controller: Device 4348:3253 (rev 10) (prog-if 02 [165

Re: [PATCH]8250_pci: Add additional WCH CH352 device

2013-03-03 Thread Wang YanQing
On Sat, Mar 02, 2013 at 05:45:55PM +0800, Wang YanQing wrote: > This patch fix a problem XScale port > detect code in autoconfig_16550a treat > 16550A port as XScale port, caused by > CH352 device use the 6th bit(UART_IER_UUE) > in IER as a enhance function make this bit > w/r.

[PATCH v2]8250_pci: Add WCH CH352 quirk to avoid Xscale detection

2013-03-05 Thread Wang YanQing
or fixing the 352 as well. Signed-off-by: Wang YanQing Signed-off-by: Paul Gortmaker --- Changes V1-V2: 1: Use a better descriptive subject by Paul Gortmaker 2: Add more detail log by Paul Gortmaker I resend this version, because it will make merge job easy, and I will not owe gregkh jui

[PATCH v2]serial: 8250_pci: add device id for a kind of Multi-I/O Controller based on NetMos Technology PCI 9835

2013-03-05 Thread Wang YanQing
I get a Multi-I/O Controller below: 01:08.0 Communication controller: NetMos Technology PCI 9835 Multi-I/O Controller (rev 01) Subsystem: LSI Logic / Symbios Logic 1P2S Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- St

[PATCH v2]x86:boot: Remove unneccessary headers

2013-03-05 Thread Wang YanQing
iles included in header.S. Signed-off-by: Wang YanQing --- Changes: V1-V2: 1:add more detail and long long log arch/x86/boot/header.S | 4 1 file changed, 4 deletions(-) diff --git a/arch/x86/boot/header.S b/arch/x86/boot/header.S index 9ec06a1..43a3502 100644 --- a/arch/x86/boot/header.S +++

[PATCH][TRIVIAL] iommu: Include linux/err.h

2013-04-08 Thread Wang YanQing
The linux/iommu.h header uses ERR_PTR defined in linux/err.h but doesn't include it. Reviewed-by: Alex Williamson Signed-off-by: Wang YanQing --- I send this twice to joerg.roe...@amd.com more than one month, but it had been ignored, I don't why. include/linux/iommu.h | 1 + 1 fi

[PATCH][TRIVIAL] tg3: Fix compilation warning

2013-04-08 Thread Wang YanQing
This patch fix the below compilation warning: linux/drivers/net/ethernet/broadcom/tg3.c: In function 'tg3_hwclock_to_timestamp': linux/drivers/net/ethernet/broadcom/tg3.c:5686: warning: integer constant is too large for 'long' type Signed-off-by: Wang YanQing --- drivers/n

[PATCH][TRIVIAL] ata:pata_pdc2027x: Fix compiler warnings

2013-04-09 Thread Wang YanQing
Fix the follwing warnings: linux/drivers/ata/pata_pdc2027x.c:66: warning: 'pdc2027x_reinit_one' declared 'static' but never defined pdc2027x_reinit_one are defined only when CONFIG_PM is defined, thus making it conditional. Signed-off-by: Wang YanQing --- drivers/ata/pata_

[PATCH][TRIVIAL]drivers: Fix a class of compiler warnings

2013-04-09 Thread Wang YanQing
Signed-off-by: Wang YanQing --- drivers/dma/timb_dma.c | 2 +- drivers/mfd/omap-usb-host.c| 2 +- drivers/mfd/twl4030-madc.c | 2 +- drivers/mmc/host/wmt-sdmmc.c | 2 +- drivers/spi/spi-atmel.c| 2 +- drivers/tty/serial/xilinx_uartps.c | 2 +- dri

[PATCH]drm: Re-add DMT modes for monitors back

2013-04-09 Thread Wang YanQing
59.9 640x48060.0 59.9 DP1 disconnected (normal left inverted right x axis y axis) Signed-off-by: Wang YanQing --- drivers/gpu/drm/drm_edid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index dfd9ed3..

Re: [PATCH] kconfig: sort found symbols by relevance

2013-05-06 Thread Wang YanQing
On Mon, May 06, 2013 at 05:28:32PM +0200, Jean Delvare wrote: > Le Monday 06 May 2013 à 15:02 +0200, Yann E. MORIN a écrit : > > From: "Yann E. MORIN" > > > > When searching for symbols, return the symbols sorted by relevance. > > > > Relevance is the ratio of the length of the matched string an

[PATCH]ALSA: HDA: Fix Oops caused by dereference NULL pointer

2013-05-06 Thread Wang YanQing
ent in azx_probe. This will cause Oops due dereference NULL pointer. I meet it, good luck:) Signed-off-by: Wang YanQing --- sound/pci/hda/hda_codec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 622f726..9c76752 100644 --- a/sou

[PATCH]TTY: Fix tty can't be restarted by TCXONC ioctl request

2013-05-07 Thread Wang YanQing
with vim in ssh, and also see below bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=465823 Signed-off-by: Wang YanQing --- drivers/tty/tty_ioctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/tty/tty_ioctl.c b/drivers/tty/tty_ioctl.c index e4455e0..42e08

Re: [PATCH]TTY: Fix tty can't be restarted by TCXONC ioctl request

2013-05-07 Thread Wang YanQing
On Tue, May 07, 2013 at 11:58:00AM -0700, Greg KH wrote: > On Wed, May 08, 2013 at 02:47:34AM +0800, Wang YanQing wrote: > > The reason is before emacs takeover control the tty, > > we use CTRL-S to XOFF it. Then when emacs takeover the > > control, it may don't use the f

Re: [PATCH]TTY: Fix tty can't be restarted by TCXONC ioctl request

2013-05-07 Thread Wang YanQing
On Tue, May 07, 2013 at 04:50:05PM -0400, Peter Hurley wrote: > This should be fixed in n_tty_set_termios() instead of fixing userspace > workarounds. Sorry, I misuse the word "workaround", emacs just do the right thing I think. But your suggestion maybe import policy. > The problem occurs when t

Re: [PATCH]TTY: Fix tty can't be restarted by TCXONC ioctl request

2013-05-08 Thread Wang YanQing
On Tue, May 07, 2013 at 07:02:00PM -0700, Greg KH wrote: > What about Peter's comments on this patch? > Peter's comments will import policy, I means we should let userspace to decide whether and when to restart tty with the mechanism of TCXONC instead of restart tty accidental when make n_tty_set

Re: [PATCH]TTY: Fix tty can't be restarted by TCXONC ioctl request

2013-05-08 Thread Wang YanQing
On Wed, May 08, 2013 at 11:18:07AM -0400, Peter Hurley wrote: > On 05/08/2013 09:16 AM, Wang YanQing wrote: > > On Tue, May 07, 2013 at 07:02:00PM -0700, Greg KH wrote: > >> What about Peter's comments on this patch? > >> > > Peter's comments will i

[PATCH 0/9] Convert all to the caller hold lock version

2013-05-08 Thread Wang YanQing
After commit 50e244cc793d511b86adea24972f3a7264cae114 (fb: rework locking to fix lock ordering on takeover) and commit e93a9a868792ad71cdd09d75e5a02d8067473c4e (fb: Yet another band-aid for fixing lockdep mess) We have two version functions implement almost the same function, exce

[PATCH 1/9] fbcon: convert last fbcon_takeover call to do_fbcon_takeover

2013-05-08 Thread Wang YanQing
and duplication. Signed-off-by: Wang YanQing --- drivers/video/console/fbcon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index 3cd6759..1660644 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video

[PATCH 2/9] fbcon: delete unneeded function fbcon_takeover

2013-05-08 Thread Wang YanQing
Now there is no place use fbcon_takeover, and fbcon_takeover has huge duplication code with do_fbcon_takeover, we can achieve fbcon_takeover's function with do_fbcon_takeover easily, so we can just delete it. Signed-off-by: Wang YanQing --- drivers/video/console/fbcon.c

[PATCH 3/9] vt: delete unneeded functions register_con_driver|take_over_console

2013-05-08 Thread Wang YanQing
Now there is no place use register_con_driver|take_over_console, and we can achieve their function with do_register_con_driver| do_take_over_console easily, so just delete them to reduce code duplication. Signed-off-by: Wang YanQing --- drivers/tty/vt/vt.c | 45

[PATCH 4/9] vt: convert last unbind_con_driver call to do_unbind_con_driver

2013-05-08 Thread Wang YanQing
There is only one place use unbind_con_driver, this patch convert it to do_unbind_con_driver too, then we can delete unbind_con_driver to reduce code size and duplication. Signed-off-by: Wang YanQing --- drivers/tty/vt/vt.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff

[PATCH 6/9] vt: convert last bind_con_driver call to do_bind_con_driver

2013-05-08 Thread Wang YanQing
There is only one place use bind_con_driver now, this patch convert it to do_bind_con_driver too, then we can delete bind_con_driver whos function can be replaced by do_bind_con_driver easily to reduce code size and duplication. Signed-off-by: Wang YanQing --- drivers/tty/vt/vt.c | 7 +-- 1

[PATCH 7/9] vt: delete unneeded function bind_con_driver

2013-05-08 Thread Wang YanQing
Now there is no place use bind_con_driver, and do_bind_con_driver can achieve bind_con_driver's function easily, so just delete it to reduce code size and duplication. Signed-off-by: Wang YanQing --- drivers/tty/vt/vt.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/driver

[PATCH 8/9] fbcon: convert last two unregister_con_driver call to do_unregister_con_driver

2013-05-08 Thread Wang YanQing
There are only two place use unregister_con_driver now, this patch convert them to do_unregister_con_driver too, then we can delete unregister_con_driver whos function can be achieved with do_unregister_con_driver easily to reduce code size and duplication. Signed-off-by: Wang YanQing

[PATCH 9/9] vt: delete unneeded function unregister_con_driver

2013-05-08 Thread Wang YanQing
Now there is no place use unregister_con_driver, and we can achieve unregister_con_driver's function with unregister_con_driver easily, so just delete it to reduce code size and duplication. Signed-off-by: Wang YanQing --- drivers/tty/vt/vt.c | 13 + include/linux/console.h

[PATCH 5/9] vt: delete unneeded function unbind_con_driver

2013-05-08 Thread Wang YanQing
Now there is no place use unbind_con_driver, and we can achieve unbind_con_driver's function with do_unbind_con_driver easily, so just delete it to reduce code size and duplication. Signed-off-by: Wang YanQing --- drivers/tty/vt/vt.c | 28 include/

Re: [PATCH]TTY: Fix tty can't be restarted by TCXONC ioctl request

2013-05-08 Thread Wang YanQing
On Wed, May 08, 2013 at 02:32:23PM -0400, Peter Hurley wrote: > Perhaps you misunderstood. The snippet above does indeed restart > a tty which has been stopped via STOP_CHAR(tty) and the termios > IXON flag cleared. Thanks Peter, I get your meaning, and I think your suggestion is right, not only b

[PATCH v2] TTY: Fix tty miss restart after we turn off flow-control

2013-05-08 Thread Wang YanQing
report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=465823 Signed-off-by: Wang YanQing --- Changes v1-v2: 1: move the fix into n_tty_set_termios instead of change TCXONC's behavior suggested by Peter Hurley 2: rewrite some ChangeLog and use more reasonable subject. drive

[PATCH v3] TTY: Fix tty miss restart after we turn off flow-control

2013-05-08 Thread Wang YanQing
report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=465823 Signed-off-by: Wang YanQing --- Changes v1-v2: 1: move the fix into n_tty_set_termios instead of change TCXONC's behavior suggested by Peter Hurley 2: rewrite some ChangeLog and use more reasonable subject. Changes v2-v3:

Re: [PATCH v3] kconfig: sort found symbols by relevance

2013-05-09 Thread Wang YanQing
On Mon, May 06, 2013 at 11:15:31PM +0200, Yann E. MORIN wrote: > From: "Yann E. MORIN" > > When searching for symbols, return the symbols sorted by relevance. > > Sorting is done as thus: > - first, symbols with a prompt, [1] > - then, smallest offset, [2] > - then, shortest mat

Re: [PATCH v3] kconfig: sort found symbols by relevance

2013-05-09 Thread Wang YanQing
On Thu, May 09, 2013 at 06:12:17PM +0200, Yann E. MORIN wrote: > Wang, All, > > On Thu, May 09, 2013 at 11:27:31PM +0800, Wang YanQing wrote: > > On Mon, May 06, 2013 at 11:15:31PM +0200, Yann E. MORIN wrote: > > > From: "Yann E. MORIN" > > > > >

[PATCH 1/3] x86: reserve_crashkernel: use memblock_is_region_reserved to simplify code

2013-04-15 Thread Wang YanQing
Use memblock_is_region_reserved instead of memblock_find_in_range to simplify the check codes, and gain a little speed benefit. Signed-off-by: Wang YanQing --- arch/x86/kernel/setup.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/x86/kernel/setup.c b/arch/x86

[PATCH 2/3] x86:aperture_64: code pattern clean

2013-04-15 Thread Wang YanQing
This patch don't change code function, it just do prepare for import the memblock_alloc_in_range to do the code pattern which looks like below in one function: memblock_find_in_range() follow by memblock_reserve() Signed-off-by: Wang YanQing --- arch/x86/kernel/aperture_64.c | 4 ++-- 1

  1   2   3   >