linux-kernel mailing list

FromSubjectsort iconDate
Paul E. McKenney
[PATCH, RFC, tip/core/rcu] scalable classic RCU implementation
Hello! Experimental, not for inclusion. Attached is a patch to Classic RCU that applies a hierarchy, greatly reducing the contention on the top-level lock for large machines. This passes mild rcutorture testing on x86 and ppc64, but is most definitely not ready for inclusion. It is OK for experimental work assuming sufficiently brave experimenters. See also Manfred Spraul's patch at http://lkml.org/lkml/2008/8/21/336 (or his earlier work from 2004 at [ message continues ]
" title="http://marc.info/?l=linux-kernel&m=1085...">http://marc.info/?l=linux-kernel&m=1085...
Aug 21, 7:43 pm 2008
Kay Sievers
Re: char/tpm: tpm_infineon no longer loaded for HP 2510p lap...
I don't know of any specific documentation, but it's pretty easy: Devices, any kind of device, can export a match, based on specific properties of the subsystem it belongs to. In most cases its the same propery/id that is used inside the kernel, to find a (already loaded) driver which will bind this device. Any unique string, hardware ID's, whatever, are stuffed into a modalias, prefixed by "<subsystem>:" to be unique. PCI and USB are pretty obvious, they just stuff all their hardware ID...
Aug 21, 5:18 pm 2008
Bjorn Helgaas
Re: char/tpm: tpm_infineon no longer loaded for HP 2510p lap...
This all sounds like good stuff that I'd like PNP to have. Is there any reason I shouldn't implement pnp_device_uevent()? Any backwards- compatibility issues? I think that sounds like a better solution than doing this PNP ID mangling. Bjorn --
Aug 21, 5:58 pm 2008
Alex Chiang
[PATCH 0/2] pciehp/shpchp prevent duplicate slot names
Hi Jesse, Here are patches: [PATCH 1/2] pciehp: Rename duplicate slot name N as N-1, N-2, N-M... [PATCH 2/2] shpchp: Rename duplicate slot name N as N-1, N-2, N-M... Against Linus's 2.6.27-rc4. As noted in the changelogs, these are temporary patches, meant as placeholders until I complete the longer patch series that allows the PCI core to manage the slot names on behalf of the drivers. The longer patch series will keep the same behavior that these temp patches implement, so that's good...
Aug 21, 5:11 pm 2008
Jesse Barnes
Re: [PATCH 0/2] pciehp/shpchp prevent duplicate slot names
Excellent, thanks Alex & Kenji-san. I applied this to my for-linus branch. I'll have Linus pull it soon. Thanks, -- Jesse Barnes, Intel Open Source Technology Center --
Aug 21, 6:16 pm 2008
Alex Chiang
[PATCH 2/2] shpchp: Rename duplicate slot name N as N-1, N-2...
Commit ef0ff95f136f0f2d035667af5d18b824609de320 (shpchp: fix slot name) introduces the shpchp_slot_with_bus module parameter, which was intended to help work around broken firmware that assigns the same name to multiple slots. Commit b3bd307c628af2f0a581c42d5d7e4bcdbbf64b6a (shpchp: add message about shpchp_slot_with_bus option) tells the user to use the above parameter in the event of a name collision. This approach is sub-optimal because it requires too much work from the user. Instead, let...
Aug 21, 5:13 pm 2008
Alex Chiang
[PATCH 1/2] pciehp: Rename duplicate slot name N as N-1, N-2...
Commit 3800345f723fd130d50434d4717b99d4a9f383c8 (pciehp: fix slot name) introduces the pciehp_slot_with_bus module parameter, which was intended to help work around broken firmware that assigns the same name to multiple slots. Commit 9e4f2e8d4ddb04ad16a3828cd9a369a5a5287009 (pciehp: add message about pciehp_slot_with_bus option) tells the user to use the above parameter in the event of a name collision. This approach is sub-optimal because it requires too much work from the user. Instead, let...
Aug 21, 5:13 pm 2008
Alex Chiang
refcount leak in pci_get_device()?
Hi Greg, While playing around with my slot symlink stuff, I noticed that the following sequence is problematic: 1. clean boot 2. modprobe acpiphp 3. echo 0 > /sys/bus/pci/slots/N/power 4. ??? After step 3, we *should* be seeing pci_release_dev() getting called, but we never do because the refcount on the device is still quite high (5 or 6, on my ia64 system). I'm still trying to track this down, but I did notice, via code inspection, at least one suspicious area: #define for_eac...
Aug 21, 4:19 pm 2008
Greg KH
Re: refcount leak in pci_get_device()?
No, pci_get_device() never decremented the refcount, and that didn't change in the above git commit. The description of pci_get_device() says that a reference is grabbed: Iterates through the list of known PCI devices. If a PCI device is found with a matching @vendor and @device, the reference count to the device is incremented and a pointer to its device structure is returned. Otherwise, %NULL is returned. A new search is initiated by passing %NULL as the @from argument. Otherwise if @...
Aug 21, 4:40 pm 2008
Matthew Wilcox
Re: refcount leak in pci_get_device()?
In particular, I'd like to know whether this should be fixed by pci_get_dev_by_id() decrementing the refcount of from/dev_start, pci_get_subsys() decrementing 'from', or by bus_find_device() decrementing 'start'. It looks like bus_find_device() is the place where this should logically happen, but the kerneldoc doesn't document the intended behaviour. -- Matthew Wilcox Intel Open Source Technology Centre "Bill, look, we understand that you're interested in selling us this operating system, ...
Aug 21, 4:25 pm 2008
Greg KH
Re: refcount leak in pci_get_device()?
Ah, no the driver core isn't supposed to do this, it's something the pci functions do out of "niceness" as that's how we can use them in an iterator properly. Does the following (untested) patch fix the issue for you all? thanks, greg k-h -------------- Subject: PCI: fix reference leak in pci_get_dev_by_id() From: Greg Kroah-Hartman <gregkh@suse.de> Alex Chiang and Matthew Wilcox pointed out that pci_get_dev_by_id() does not properly decrement the reference on the from pointer ...
Aug 21, 4:47 pm 2008
Jesse Barnes
Re: refcount leak in pci_get_device()?
Wow, thanks Greg, that was fast. I applied this to my for-linus branch; I'll ask Linus to pull it for 2.6.27. Thanks, -- Jesse Barnes, Intel Open Source Technology Center --
Aug 21, 6:23 pm 2008
Alex Chiang
Re: refcount leak in pci_get_device()?
Perfect, yes. I applied it, and observed the refcount on the device I was using to debug this problem. I was able to modprobe acpiphp successfully, and echo 0 into the device's 'power' file. I then watched the rest of the hotplug core do its thing, decrementing the refcount properly along the way, and at the end, we did call pci_release_dev(), as I originally expected to. :) Just to verify, I toggled the device's power a few times (echoing a 1 and then a 0, etc.) and watched the refcounts...
Aug 21, 6:14 pm 2008
Yinghai Lu
[PATCH] x86: fix probe_nr_irqs for xen
otherwise Xen is _completely_ unusable with 5 or more VCPUs. ( when !CONFIG_HAVE_SPARSE_IRQ) based on Alex's patch also add +1 offset after redir_entries Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Cc: Alex Nixon <alex.nixon@citrix.com> Index: linux-2.6/arch/x86/kernel/io_apic.c =================================================================== --- linux-2.6.orig/arch/x86/kernel/io_apic.c +++ linux-2.6/arch/x86/kernel/io_apic.c @@ -3625,16 +3625,21 @@ int __init probe_nr...
Aug 21, 4:10 pm 2008
Jeremy Fitzhardinge
Re: [PATCH] x86: fix probe_nr_irqs for xen
Looks good to me. We can fix this in a better way later. --
Aug 21, 7:33 pm 2008
Yinghai Lu
Re: [PATCH] x86: fix probe_nr_irqs for xen
later could set CONFIG_HAVE_SPARSE_IRQ to true by default. YH --
Aug 21, 7:49 pm 2008
Jeremy Fitzhardinge
Re: [PATCH] x86: fix probe_nr_irqs for xen
Well, perhaps. But we can use vectors rather than IRQs for Xen event channel mappings, which will save us from having to allocate lots of per-cpu irqs. Also, implementing probe_nr_irqs() in a more generic (rather than io_apic-specific) way. Using some interface that queries each irq chip for how many irqs it supports, or something. J --
Aug 21, 7:52 pm 2008
Yinghai Lu
Re: [PATCH] x86: fix probe_nr_irqs for xen
hope we can kill nr_irqs/NR_IRQS YH --
Aug 21, 7:56 pm 2008
Alan Stern
How do I raise the priority of one thread in a multi-threade...
Can anyone tell me how to raise the priority of one thread in a multi-threaded process (using the pthreads library)? Neither nice(2) nor setpriority(2) is appropriate since they affect the priority of an entire process rather than a single thread. Thanks, Alan Stern --
Aug 21, 2:58 pm 2008
Michal Hocko
Re: How do I raise the priority of one thread in a multi-thr...
-- Michal Hocko L3 team SUSE LINUX s.r.o. Lihovarska 1060/12 190 00 Praha 9 Czech Republic --
Aug 21, 4:28 pm 2008
Alan Stern
Re: How do I raise the priority of one thread in a multi-thr...
Actually I was looking for pthread_setschedparam(). But it wasn't clear at first that I needed to change the policy to SCHED_FIFO and that special capabilities were needed. With those changes it seems to work correctly. Thanks for pointing me in the right direction! Alan Stern --
Aug 21, 5:04 pm 2008
Anton Vorontsov
[PATCH] genirq: fix irq_desc->depth handling with DEBUG_SHIRQ
When DEBUG_SHIRQ is selected, a spurious IRQ is issued before the setup_irq() initializes the desc->depth. An IRQ handler may call disable_irq_nosync(), but then setup_irq() will overwrite desc->depth, and upon enable_irq() we'll catch this WARN: ------------[ cut here ]------------ Badness at kernel/irq/manage.c:180 NIP: c0061ab8 LR: c0061f10 CTR: 00000000 REGS: cf83be50 TRAP: 0700 Not tainted (2.6.27-rc3-23450-g74919b0) MSR: 00021032 <ME,IR,DR> CR: 22042022 XER: 20000000 TASK =...
Aug 21, 2:58 pm 2008
Alok Kataria
x86: Fix VMI for early params...for mainline
While fixing a recent breakage in VMI on the recent x86 tree, I noticed that vmi specific kernel commandline parameters were broken. Below is the fix. Please note this needs to go into the mainline tree. -- x86: Fix VMI for early params From: Alok N Kataria <akataria@vmware.com> In a recent commit 31343d8a5079cda57ffd539fcf4f00cea344fe98, while fixing a different bug, I moved the call to vmi_init before early params could be parsed. This broke the vmi specific commandline parameters...
Aug 21, 2:32 pm 2008
Martin Schwidefsky
[GIT PULL] 2.6.27-rc4 updates for s390
Hi Linus, please pull from 'for-linus' branch of git://git390.osdl.marist.edu/pub/scm/linux-2.6.git for-linus In particular the patch from Eric is noteworthy since it gets ext4 working again on s390. The shortlog: Eric Sandeen (1): [S390] fix ext2_find_next_bit Gerald Schaefer (1): [S390] dcssblk: fix race in dcssblk_add_store() Heiko Carstens (1): [S390] Remove unneeded spinlock initialization. Jan Glauber (3): [S390] qdio: prevent oopsing if qdio_establis...
Aug 21, 2:28 pm 2008
Alok Kataria
x86: VMI: Fix bug, do_IRQ: cannot handle...
Below is the patch which needs to be applied to x86-tip/master, to fix the VMI bug caused by commit 9c3f2468d8339866d9ef6a25aae31a8909c6be0d. x86: make 32bit support per_cpu vector Thanks to Yinghai, for giving a heads up. Please apply. Alok -- From: Alok N Kataria <akataria@vmware.com> x86: VMI, Initialize IRQ vector. Initialize vector_irq for the vmi used vector, to point to correct irq. Signed-off-by: Alok N Kataria <akataria@vmware.com> Cc: Zachary Amsden <zach@...
Aug 21, 2:26 pm 2008
Martin Filip
cpufreq regression, unable to set lower frequency
Hi LKML, I've upgraded my kernel few days earlier and suddenly my cpufreqd stopperd working. My configuration is this: AC adapter connected: set scaling_max_freq and scaling_min_freq to maximal available frequency AC adapter disconnected: set scaling_max_freq to maximal available, scaling_min_freq to minimal available. When I connect AC adapter, everything works fine but when I disconnect my adapter, everything remains on maximal frequency and in logs I can see: cpufreqd: cpufreqd_set_...
Aug 21, 1:51 pm 2008
Mattia Dongili
Re: cpufreq regression, unable to set lower frequency
=3Dcommitdiff;h=3D53391fa20cab6df6b476a5a0ad6be653c9de0c46 =20 what version of cpufrequtils are running? This error should be fixed in 004 (or later) with this patch: http://git.kernel.org/?p=3Dutils/kernel/cpufreq/cpufrequtils.git;a=3Dcommit= ;h=3Db88f8975d27690e04e520b05a1ed66bf1e306ee6 thanks --=20
Aug 21, 6:55 pm 2008
Alex Nixon
[PATCH 1/7] x86/paravirt: Add hooks for CPU hotplugging
Signed-off-by: Alex Nixon <alex.nixon@citrix.com> Cc: Jeremy Fitzhardinge <jeremy@goop.org> Cc: Ingo Molnar <mingo@elte.hu> --- arch/x86/kernel/paravirt.c | 8 ++++++++ arch/x86/kernel/process_32.c | 10 ++++++++-- arch/x86/kernel/process_64.c | 9 +++++++-- arch/x86/kernel/smpboot.c | 8 ++++---- include/asm-x86/paravirt.h | 27 +++++++++++++++++++++++++++ include/asm-x86/smp.h | 13 +++++++++++-- 6 files changed, 65 insertions(+), 10 deletions(-) ...
Aug 21, 2:04 pm 2008
Jeremy Fitzhardinge
Re: [PATCH 1/7] x86/paravirt: Add hooks for CPU hotplugging
I think I'd prefer these to be part of smp_ops. We're only talking about three new operations, and they're the logical compliments of the existing smp_ops functions for bringing up cpus. --
Aug 21, 2:19 pm 2008
Alex Nixon
[PATCH 2/7] x86/paravirt: Add paravirt hook for wbinvd_halt
The native case of wb_invd_halt uses inline asm to ensure the compiler doesn't reorder the sequence of instructions, which has the side-effect of skirting around the paravirt hooks for those instructions. Thus, create a new hook for this case. Signed-off-by: Alex Nixon <alex.nixon@citrix.com> Cc: Jeremy Fitzhardinge <jeremy@goop.org> Cc: Ingo Molnar <mingo@elte.hu> --- arch/x86/kernel/paravirt.c | 1 + include/asm-x86/paravirt.h | 6 ++++++ include/asm-x86/processor.h | ...
Aug 21, 2:04 pm 2008
Jeremy Fitzhardinge
Re: [PATCH 2/7] x86/paravirt: Add paravirt hook for wbinvd_...
Not necessary. Halting in Xen doesn't require the caches to be flushed in this way, and I think that would be true for any virtual environment (and if it were, the invalidate/halt instruction sequence would work anyway). The correct fix is to make sure that the native_play_dead calls this, but the xen_play_dead doesn't (ie, make sure it's not in the common code path). --
Aug 21, 2:16 pm 2008
Alex Nixon
[PATCH 3/7] Xen: Add Xen implementation of wbinvd_halt
Signed-off-by: Alex Nixon <alex.nixon@citrix.com> Cc: Jeremy Fitzhardinge <jeremy@goop.org> Cc: Ingo Molnar <mingo@elte.hu> --- arch/x86/xen/irq.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/x86/xen/irq.c b/arch/x86/xen/irq.c index bb04260..4e3f7f7 100644 --- a/arch/x86/xen/irq.c +++ b/arch/x86/xen/irq.c @@ -122,12 +122,19 @@ static void xen_halt(void) xen_safe_halt(); } +static void xen_wbinvd_halt(void) +{ + native_wbinvd();...
Aug 21, 2:04 pm 2008
Alex Nixon
[PATCH 4/7] x86_32: Clean up play_dead.
The removal of the CPU from the various maps was redundant as it already happened in cpu_disable. After cleaning this up, cpu_uninit only resets the tlb state, so rename it and create a noop version for the X86_64 case (so the two play_deads can be unified later). Signed-off-by: Alex Nixon <alex.nixon@citrix.com> Cc: Jeremy Fitzhardinge <jeremy@goop.org> Cc: Ingo Molnar <mingo@elte.hu> --- arch/x86/kernel/cpu/common.c | 6 +----- arch/x86/kernel/process_32.c | 17 ++++-----...
Aug 21, 2:04 pm 2008
Alex Nixon
[PATCH 5/7] x86: Unify x86_32 and x86_64 play_dead into one...
Add the new play_dead into smpboot.c, as it fits more cleanly in there alongside other CONFIG_HOTPLUG functions. Signed-off-by: Alex Nixon <alex.nixon@citrix.com> Cc: Jeremy Fitzhardinge <jeremy@goop.org> Cc: Ingo Molnar <mingo@elte.hu> --- arch/x86/kernel/process_32.c | 38 -------------------------------------- arch/x86/kernel/process_64.c | 28 ---------------------------- arch/x86/kernel/smpboot.c | 25 +++++++++++++++++++++++++ include/asm-x86/smp.h | 1 +...
Aug 21, 2:04 pm 2008
Alex Nixon
[PATCH 6/7] x86: Separate generic cpu disabling code from A...
It allows paravirt implementations of cpu_disable to share the cpu_disable_common code, without having to take on board APIC writes, which may not be appropriate. Signed-off-by: Alex Nixon <alex.nixon@citrix.com> Cc: Jeremy Fitzhardinge <jeremy@goop.org> Cc: Ingo Molnar <mingo@elte.hu> --- arch/x86/kernel/smpboot.c | 40 +++++++++++++++++++++++----------------- include/asm-x86/smp.h | 1 + 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/arch/x86/kernel...
Aug 21, 2:04 pm 2008
Alex Nixon
[PATCH 7/7] Xen: Implement CPU hotplugging
Note the changes from 2.6.18-xen CPU hotplugging: A vcpu_down request from the remote admin via Xenbus both hotunplugs the CPU, and disables it by removing it from the cpu_present map, and removing its entry in /sys A vcpu_up request from the remote admin only re-enables the CPU, and does not immediately bring the CPU up. A udev event is emitted, which can be caught by the user if he wishes to automatically re-up CPUs when available, or implement a more complex policy. Signed-off-by: Alex Nixon &l...
Aug 21, 2:04 pm 2008
Jeremy Fitzhardinge
Re: [PATCH 7/7] Xen: Implement CPU hotplugging
What's this? A typo fix? It should be folded back to the appropriate --
Aug 21, 2:37 pm 2008
Peter Oberparleiter
[PATCH -mm] kernel: move CONSTRUCTORS section to asm-generic...
This patch applies to 2.6.27-rc4 + current -mm patches. From: Peter Oberparleiter <oberpar@linux.vnet.ibm.com> Currently each arch/*/vmlinux.lds file separately mentions the CONSTRUCTORS section. If it is not mentioned, constructors (such as needed for the gcov infrastructure) are never called. If it is mentioned outside of the same section as DATA_DATA, it can lead to linker problems: Moving the CONSTRUCTORS section to DATA_DATA fixes this problem for powerpc and reduces code duplicat...
Aug 21, 1:54 pm 2008
Greg KH
[GIT PATCH] driver core patches against 2.6.26-rc4
Here are some fixes and updates for driver core related things against your 2.6.26-git tree. The biggest patches here are: - ja_JP documentation updates - new UIO driver (self contained) The rest are all bugfixes and build fixes and one adds a new field to struct device to make the linux-next tree merges a lot happier. All of these, with the exception of one documentation update, have been in the -next trees and the -mm releases for a while now. Please pull from: master.kernel.org:/pub/...
Aug 21, 1:30 pm 2008
Greg Kroah-Hartman
[PATCH 15/15] pnp: fix "add acpi:* modalias entries"
From: Kay Sievers <kay.sievers@vrfy.org> With 22454cb99fc39f2629ad06a7eccb3df312f8830e we added only the first entry of the device table. We need to loop over the whole device list. Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> --- scripts/mod/file2alias.c | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 4fa1f3a..4c9890e 10...
Aug 21, 1:33 pm 2008
Greg Kroah-Hartman
[PATCH 14/15] UIO: generic irq handling for some uio platfor...
From: Magnus Damm <magnus.damm@gmail.com> This is V3 of uio_pdrv_genirq.c, a platform driver for UIO with generic IRQ handling code. This driver is very similar to the regular UIO platform driver, but is only suitable for devices that are connected to the interrupt controller using unique interrupt lines. The uio_pdrv_genirq driver includes generic interrupt handling code which disables the serviced interrupt in the interrupt controller and makes the user space driver responsible for acknow...
Aug 21, 1:33 pm 2008
Greg Kroah-Hartman
[PATCH 13/15] UIO: uio_pdrv: fix license specification
From: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com> Thanks to Magnus Damm for pointing that out. Signed-off-by: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com> Cc: Magnus Damm <magnus.damm@gmail.com> Acked-by: Hans J. Koch <hjk@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> --- drivers/uio/uio_pdrv.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/uio/uio_pdrv.c b/drivers/uio/uio_pdrv.c index aa3bff8..0b4ef39 ...
Aug 21, 1:33 pm 2008
Greg Kroah-Hartman
[PATCH 12/15] UIO: uio_pdrv: fix memory leak
From: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com> Thanks to Magnus Damm for pointing that out. Signed-off-by: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com> Cc: Magnus Damm <magnus.damm@gmail.com> Acked-by: Hans J. Koch <hjk@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> --- drivers/uio/uio_pdrv.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/uio/uio_pdrv.c b/drivers/uio/uio_pdrv.c index 5d0d2e8..aa3bff8 ...
Aug 21, 1:33 pm 2008
Greg Kroah-Hartman
[PATCH 11/15] block: drop references taken by class_find_dev...
From: Kay Sievers <kay.sievers@vrfy.org> Otherwise we leak references, which is not a good thing to do. Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> --- block/genhd.c | 22 ++++++++++++++++------ 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/block/genhd.c b/block/genhd.c index f34befc..656c2c7 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -313,8 +313,10 @@ static void *part_start(struct seq_f...
Aug 21, 1:32 pm 2008
Greg Kroah-Hartman
[PATCH 10/15] block: fix partial read() of /proc/{partitions...
From: Kay Sievers <kay.sievers@vrfy.org> The proc files get truncated if they do not fit into the buffer with a single read(). We need to move the seq_file index from the callback of class_find_device() to the caller of class_find_device(), to keep its value across multiple invocations of the callback. Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> --- block/genhd.c | 14 ++++++++------ 1 files changed, 8 insertions(+), ...
Aug 21, 1:32 pm 2008
Greg Kroah-Hartman
[PATCH 09/15] PM: Remove WARN_ON from device_pm_add
From: Rafael J. Wysocki <rjw@sisk.pl> PM: Remove WARN_ON from device_pm_add Fix message in device_pm_add() saying that the device will not be added to dpm_list, although in fact the device is going to be added to the list regardless of the ordering violation. Remove the WARN_ON(true) triggered in that situation, because it is hit by USB very often and spams the users' logs. This patch fixes bug #11263 Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Greg Kroah-Har...
Aug 21, 1:32 pm 2008
Greg Kroah-Hartman
[PATCH 08/15] driver core: add init_name to struct device
This gives us a way to handle both the bus_id and init_name values being used for a while during the transition period. Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> --- drivers/base/core.c | 20 +++++++++++++------- include/linux/device.h | 1 + 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/drivers/base/core.c b/drivers/base/core.c index 4004131..d021c98 100644 --- a/drivers/base/core.c +++ b/drivers/base/core....
Aug 21, 1:32 pm 2008
Greg Kroah-Hartman
[PATCH 07/15] PM: don't skip device PM init when CONFIG_PM_S...
From: Alan Stern <stern@rowland.harvard.edu> This patch (as1124) fixes a couple of bugs in the PM core. The new dev->power.status field should be initialized regardless of whether CONFIG_PM_SLEEP is enabled, and similarly dpm_sysfs_add() should be called whenever CONFIG_PM is enabled. The patch separates out the call to dpm_sysfs_add() from the call to device_pm_add(). As a result device_pm_add() can no longer return an error, so its return type is changed to void. Signed-off-by: Al...
Aug 21, 1:32 pm 2008
Greg Kroah-Hartman
[PATCH 06/15] driver model: anti-oopsing medicine
From: David Brownell <dbrownell@users.sourceforge.net> Anti-oops medicine for the class iterators ... the oops was observed when a class was implicitly referenced before it was initialized. [Modified by Greg to spit a warning back so someone knows to fix their code] Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> --- drivers/base/class.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) ...
Aug 21, 1:32 pm 2008
David Brownell
Re: [PATCH 06/15] driver model: anti-oopsing medicine
Or -- for future reference -- using WARN() with non-constant initial parameter: if (WARN(!class-p, "%s called ...\n" ...)) return -EINVAL; Some of those macros now have return values, supportin C code that looks a bit more compact. - Dave --
Aug 21, 2:24 pm 2008
previous daytodaynext day
August 20, 2008August 21, 2008August 22, 2008