linux-kernel mailing list

FromSubjectsort iconDate
Bjorn Helgaas
[patch 21/28] PNPACPI: ignore _PRS interrupt numbers larger ...
ACPI Extended Interrupt Descriptors can encode 32-bit interrupt numbers, so an interrupt number may exceed the size of the bitmap we use to track possible IRQ settings. To avoid corrupting memory, complain and ignore too-large interrupt numbers. There's similar code in pnpacpi_parse_irq_option(), but I didn't change that because the small IRQ descriptor can only encode IRQs 0-15, which do not exceed bitmap size. In the future, we could handle IRQ numbers greater than PNP_IRQ_NR by replacing t...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 26/28] PNP: convert resource options to single linked...
ISAPNP, PNPBIOS, and ACPI describe the "possible resource settings" of a device, i.e., the possibilities an OS bus driver has when it assigns I/O port, MMIO, and other resources to the device. PNP used to maintain this "possible resource setting" information in one independent option structure and a list of dependent option structures for each device. Each of these option structures had lists of I/O, memory, IRQ, and DMA resources, for example: dev independent options ind-io0 -&gt...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 28/28] PNPACPI: add support for HP vendor-specific CC...
The HP CCSR descriptor describes MMIO address space that should appear as a MEM resource. This patch adds support for parsing these descriptors in the _CRS data. The visible effect of this is that these MEM resources will appear in /sys/devices/pnp0/.../resources, which means that "lspnp -v" will report it, user applications can use this to locate device CSR space, and kernel drivers can use the normal PNP resource accessors to locate them. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com&...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 22/28] PNP: rename pnp_register_*_resource() local va...
No functional change; just rename "data" to something more descriptive. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-by: Rene Herman <rene.herman@gmail.com> Index: work10/drivers/pnp/resource.c =================================================================== --- work10.orig/drivers/pnp/resource.c 2008-05-20 13:23:06.000000000 -0600 +++ work10/drivers/pnp/resource.c 2008-05-20 13:24:27.000000000 -0600 @@ -80,40 +80,40 @@ struct pnp_option *pnp_register_dependen int p...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 24/28] PNP: remove extra 0x100 bit from option priority
When building resource options, ISAPNP and PNPBIOS set the priority to something like "0x100 | PNP_RES_PRIORITY_ACCEPTABLE", but we immediately mask off the 0x100 again in pnp_build_option(), so that bit looks superfluous. Thanks to Rene Herman <rene.herman@gmail.com> for pointing this out. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-by: Rene Herman <rene.herman@gmail.com> Index: work14/drivers/pnp/isapnp/core.c =================================================...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 25/28] ISAPNP: handle independent options following d...
The ISAPNP spec recommends that independent options precede dependent ones, but this is not actually required. The current ISAPNP code incorrectly puts such trailing independent options at the end of the last dependent option list. This patch fixes that bug by resetting the current option list to the independent list when we see an "End Dependent Functions" tag. PNPBIOS and PNPACPI handle this the same way. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-by: Rene Herman <ren...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 27/28] PNP: avoid legacy IDE IRQs
If an IDE controller is in compatibility mode, it expects to use IRQs 14 and 15, so PNP should avoid them. This patch should resolve this problem report: parallel driver grabs IRQ14 preventing legacy SFF ATA controller from working https://bugzilla.novell.com/show_bug.cgi?id=375836 Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Index: work14/drivers/pnp/resource.c =================================================================== --- work14.orig/drivers/pnp/resource.c 2008-06-1...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 20/28] PNP: centralize resource option allocations
This patch moves all the option allocations (pnp_mem, pnp_port, etc) into the pnp_register_{mem,port,irq,dma}_resource() functions. This will make it easier to rework the option data structures. The non-trivial part of this patch is the IRQ handling. The backends have to allocate a local pnp_irq_mask_t bitmap, populate it, and pass a pointer to pnp_register_irq_resource(). Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-by: Rene Herman <rene.herman@gmail.com> --- driv...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 23/28] PNP: support optional IRQ resources
This patch adds an IORESOURCE_IRQ_OPTIONAL flag for use when assigning resources to a device. If the flag is set and we are unable to assign an IRQ to the device, we can leave the IRQ disabled but allow the overall resource allocation to succeed. Some devices request an IRQ, but can run without an IRQ (possibly with degraded performance). This flag lets us run the device without the IRQ instead of just leaving the device disabled. This is a reimplementation of this previous change by Rene Her...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 18/28] PNP: make resource assignment functions return...
This patch doesn't change any behavior; it just makes the return values more conventional. This changes pnp_assign_dma() from a void function to one that returns an int, just like the other assignment functions. For now, at least, pnp_assign_dma() always returns 0 (success), so it appears to never fail, just like before. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-by: Rene Herman <rene.herman@gmail.com> Index: work10/drivers/pnp/manager.c ===========================...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 19/28] PNP: remove redundant pnp_can_configure() check
pnp_assign_resources() is static and the only caller checks pnp_can_configure() before calling it, so no need to do it again. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-by: Rene Herman <rene.herman@gmail.com> Index: work10/drivers/pnp/manager.c =================================================================== --- work10.orig/drivers/pnp/manager.c 2008-05-13 13:29:57.000000000 -0600 +++ work10/drivers/pnp/manager.c 2008-05-13 13:30:21.000000000 -0600 @@ -231,9 +231,6...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 15/28] PNP: increase I/O port & memory option add...
ACPI Address Space Descriptors can be up to 64 bits wide. We should keep track of the whole thing when parsing resource options, so this patch changes PNP port and mem option fields from "unsigned short" and "unsigned int" to "resource_size_t". Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-by: Rene Herman <rene.herman@gmail.com> --- drivers/pnp/base.h | 16 ++++++++-------- drivers/pnp/interface.c | 17 +++++++++++------ drivers/pnp/resource.c | 14 ++++++++...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 17/28] PNP: in debug resource dump, make empty list o...
If the resource list is empty, say that explicitly. Previously, it was confusing because often the heading was followed by zero resource lines, then some "add resource" lines from auto-assignment, so the "add" lines looked like current resources. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-by: Rene Herman <rene.herman@gmail.com> Index: work10/drivers/pnp/support.c =================================================================== --- work10.orig/drivers/pnp/support.c ...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 12/28] PNP: define PNP-specific IORESOURCE_IO_* flags...
PNP previously defined PNP_PORT_FLAG_16BITADDR and PNP_PORT_FLAG_FIXED in a private header file, but put those flags in struct resource.flags fields. Better to make them IORESOURCE_IO_* flags like the existing IRQ, DMA, and MEM flags. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-by: Rene Herman <rene.herman@gmail.com> --- include/linux/ioport.h | 10 +++++++--- include/linux/pnp.h | 3 --- drivers/pnp/interface.c | 2 +- drivers/pnp/...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 16/28] PNP: improve resource assignment debug
When we fail to assign an I/O or MEM resource, include the min/max in the debug output to help match it with the options. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-by: Rene Herman <rene.herman@gmail.com> Index: work10/drivers/pnp/manager.c =================================================================== --- work10.orig/drivers/pnp/manager.c 2008-05-13 12:01:17.000000000 -0600 +++ work10/drivers/pnp/manager.c 2008-05-13 12:50:57.000000000 -0600 @@ -47,7 +47,10 @@ st...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 14/28] PNP: introduce pnp_irq_mask_t typedef
This adds a typedef for the IRQ bitmap, which should cause no functional change, but will make it easier to pass a pointer to a bitmap to pnp_register_irq_resource(). Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-by: Rene Herman <rene.herman@gmail.com> Index: work14/drivers/pnp/base.h =================================================================== --- work14.orig/drivers/pnp/base.h 2008-06-17 15:52:19.000000000 -0600 +++ work14/drivers/pnp/base.h 2008-06-17 15:52:20.0...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 13/28] PNP: make resource option structures private t...
Nothing outside the PNP subsystem should need access to a device's resource options, so this patch moves the option structure declarations to a private header file. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-by: Rene Herman <rene.herman@gmail.com> Index: work14/drivers/pnp/base.h =================================================================== --- work14.orig/drivers/pnp/base.h 2008-06-17 14:40:28.000000000 -0600 +++ work14/drivers/pnp/base.h 2008-06-17 14:42:28.000...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 11/28] PNP: whitespace/coding style fixes
No functional change; just make a couple declarations consistent with the rest of the file. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-by: Rene Herman <rene.herman@gmail.com> Index: work10/drivers/pnp/interface.c =================================================================== --- work10.orig/drivers/pnp/interface.c 2008-05-09 14:42:25.000000000 -0600 +++ work10/drivers/pnp/interface.c 2008-05-09 14:45:57.000000000 -0600 @@ -216,12 +216,12 @@ static ssize_t pnp_show...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 09/28] PNP: dont sort by type in /sys/.../resources
Rather than stepping through all IO resources, then stepping through all MMIO resources, etc., we can just iterate over the resource list once directly. This can change the order in /sys, e.g., # cat /sys/devices/pnp0/00:07/resources # OLD state = active io 0x3f8-0x3ff irq 4 # cat /sys/devices/pnp0/00:07/resources # NEW state = active irq 4 io 0x3f8-0x3ff The old code artificially sorted resources by type; the new code just lists them in the order...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 10/28] PNP: add pnp_possible_config() -- can a device...
As part of a heuristic to identify modem devices, 8250_pnp.c checks to see whether a device can be configured at any of the legacy COM port addresses. This patch moves the code that traverses the PNP "possible resource options" from 8250_pnp.c to the PNP subsystem. This encapsulation is important because a future patch will change the implementation of those resource options. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-by: Rene Herman <rene.herman@gmail.com> --- d...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 06/28] PNP: replace pnp_resource_table with dynamical...
PNP used to have a fixed-size pnp_resource_table for tracking the resources used by a device. This table often overflowed, so we've had to increase the table size, which wastes memory because most devices have very few resources. This patch replaces the table with a linked list of resources where the entries are allocated on demand. This removes messages like these: pnpacpi: exceeded the max number of IO resources 00:01: too many I/O port resources References: [ message continues ]
" title="http://bugzill...">http://bugzill...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 08/28] PNP: remove ratelimit on add resource failures
We used to have a fixed-size resource table. If a device had twenty resources when the table only had space for ten, we didn't need ten warnings, so we added the ratelimit. Now that we can dynamically allocate new resources, we should only get failures if the allocation fails. That should be rare enough that we don't need to ratelimit the messages. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Index: work10/drivers/pnp/resource.c ==================================================...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 07/28] PNPACPI: keep disabled resources when parsing ...
When we parse a device's _CRS data (the current resource settings), we should keep track of everything we find, even if it's currently disabled or invalid. This is what we already do for ISAPNP and PNPBIOS, and it helps keep things matched up when we subsequently re-encode resources. For example, consider a device with (mem, irq0, irq1, io), where irq0 is disabled. If we drop irq0 when parsing the _CRS, we will mistakenly put irq1 in the irq0 slot when we encode resources for an _SRS call. Sig...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 05/28] PNP: make pnp_{port,mem,etc}_start(), et al wo...
Some callers use pnp_port_start() and similar functions without making sure the resource is valid. This patch makes us fall back to returning the initial values if the resource is not valid or not even present. This mostly preserves the previous behavior, where we would just return the initial values set by pnp_init_resource_table(). The original 2.6.25 code didn't range-check the "bar", so it would return garbage if the bar exceeded the table size. This code returns sensible values instead. ...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 04/28] PNP: add pnp_resource_type_name() helper funct...
This patch adds a "pnp_resource_type_name(struct resource *)" that returns the string resource type. This will be used by the sysfs "show resources" function and the debug resource dump function. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Index: work10/drivers/pnp/base.h =================================================================== --- work10.orig/drivers/pnp/base.h 2008-05-15 15:23:27.000000000 -0600 +++ work10/drivers/pnp/base.h 2008-05-15 15:23:29.000000000 -0600 @@ -43,...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 02/28] PNP: remove pnp_resource.index
We used pnp_resource.index to keep track of which ISAPNP configuration register a resource should be written to. We needed this only to handle the case where a register is disabled but a subsequent register in the same set is enabled. Rather than explicitly maintaining the pnp_resource.index, this patch adds a resource every time we read an ISAPNP configuration register and marks the resource as IORESOURCE_DISABLED when appropriate. This makes the position in the pnp_resource_table always corresp...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 03/28] PNP: add pnp_resource_type() internal interface
Given a struct resource, this returns the type (IO, MEM, IRQ, DMA). Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Index: work10/drivers/pnp/base.h =================================================================== --- work10.orig/drivers/pnp/base.h 2008-05-15 15:23:24.000000000 -0600 +++ work10/drivers/pnp/base.h 2008-05-15 15:23:27.000000000 -0600 @@ -46,6 +46,7 @@ int pnp_check_dma(struct pnp_dev *dev, s void dbg_pnp_show_resources(struct pnp_dev *dev, char *desc); void pnp_i...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 01/28] PNP: add detail to debug resource dump
In the debug resource dump, decode the flags and indicate when a resource is disabled or has been automatically assigned. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Index: work10/drivers/pnp/support.c =================================================================== --- work10.orig/drivers/pnp/support.c 2008-05-02 11:18:50.000000000 -0600 +++ work10/drivers/pnp/support.c 2008-05-05 09:39:03.000000000 -0600 @@ -63,28 +63,46 @@ void dbg_pnp_show_resources(struct pnp_d for (i = 0...
Jun 17, 6:58 pm 2008
Bjorn Helgaas
[patch 00/28] PNP: convert fixed tables to lists, v3
This patch series contains all my PNP patches that are not yet in Linus' tree, including both the "convert resource table to dynamic list" series and the "convert resource options to unified dynamic list" series. This series should replace all the PNP patches in -mm from pnp-add-detail-to-debug-resource-dump.patch ... not-for-merging-pnp-changes-suspend-oops.patch except for isa-set-24-bit-dma_mask-for-isa-devices.patch, which got stuck in the middle but isn't really PNP-related. I'...
Jun 17, 6:58 pm 2008
Yinghai Lu
[PATCH] x86: Kconfig cleanup with genericarch
we already have summit and etc depends on genericarch, so use genericarch only Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 48b2143..ee63192 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -428,7 +428,7 @@ config MEMTEST config ACPI_SRAT def_bool y - depends on X86_32 && ACPI && NUMA && (X86_SUMMIT || X86_GENERICARCH) + depends on X86_32 && ACPI && NUMA && X86_GENE...
Jun 17, 6:39 pm 2008
Adrian Bunk
[2.6 patch] sh: make pcibios_max_latency static
This patch makes the needlessly global pcibios_max_latency static. Signed-off-by: Adrian Bunk <bunk@kernel.org> --- 68ca774cb5441d414e0bbb837bfc35488bf68bd6 diff --git a/arch/sh/drivers/pci/pci.c b/arch/sh/drivers/pci/pci.c index f57095a..d3839e6 100644 --- a/arch/sh/drivers/pci/pci.c +++ b/arch/sh/drivers/pci/pci.c @@ -135,7 +135,7 @@ int pcibios_enable_device(struct pci_dev *dev, int mask) * If we set up a device for bus mastering, we need to check and set * the latency timer as i...
Jun 17, 6:33 pm 2008
Adrian Bunk
[2.6 patch] remove pcibios_update_resource() functions
Russell King did the following back in 2003: <-- snip --> [PCI] pci-9: Kill per-architecture pcibios_update_resource() Kill pcibios_update_resource(), replacing it with pci_update_resource(). pci_update_resource() uses pcibios_resource_to_bus() to convert a resource to a device BAR - the transformation should be exactly the same as the transformation used for the PCI bridges. pci_update_resource "knows" about 64-bit BARs, but doesn't attempt to set...
Jun 17, 6:33 pm 2008
Adrian Bunk
[2.6 patch] sh: make EARLY_PCI_OP's static
This patch makes the needlessly global EARLY_PCI_OP's static. Signed-off-by: Adrian Bunk <bunk@kernel.org> --- bc7fc605abf94396ac4b30eaa5270e0f42d15924 diff --git a/arch/sh/drivers/pci/pci-auto.c b/arch/sh/drivers/pci/pci-auto.c index ea40470..cf48b12 100644 --- a/arch/sh/drivers/pci/pci-auto.c +++ b/arch/sh/drivers/pci/pci-auto.c @@ -78,7 +78,7 @@ static struct pci_dev *fake_pci_dev(struct pci_channel *hose, } #define EARLY_PCI_OP(rw, size, type) \ -int early_##rw##_config_##si...
Jun 17, 6:31 pm 2008
Adrian Bunk
[2.6 patch] sh/boards/dreamcast/rtc.c: make 2 functions static
This patch makes the needlessly global aica_rtc_{get,set}timeofday() static. Signed-off-by: Adrian Bunk <bunk@kernel.org> --- arch/sh/boards/dreamcast/rtc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 1716a5d5a29b5a2c16713e34465558cce3895545 diff --git a/arch/sh/boards/dreamcast/rtc.c b/arch/sh/boards/dreamcast/rtc.c index b3a876a..a743368 100644 --- a/arch/sh/boards/dreamcast/rtc.c +++ b/arch/sh/boards/dreamcast/rtc.c @@ -30,7 +30,7 @@ * * Grabs the current ...
Jun 17, 6:30 pm 2008
Adrian Bunk
[2.6 patch] move arch/sh/lib/io.o to obj-y
EXPORT_SYMBOL's in lib-y considered harmful: <-- snip --> ... MODPOST 1837 modules ERROR: "__raw_readsl" [drivers/ssb/ssb.ko] undefined! ERROR: "__raw_writesl" [drivers/ssb/ssb.ko] undefined! ERROR: "__raw_writesl" [drivers/net/smc91x.ko] undefined! ERROR: "__raw_readsl" [drivers/net/smc91x.ko] undefined! ERROR: "__raw_writesl" [drivers/net/3c59x.ko] undefined! ERROR: "__raw_readsl" [drivers/net/3c59x.ko] undefined! ... make[2]: *** [__modpost] Error 1 <-- snip --> Rep...
Jun 17, 6:30 pm 2008
Adrian Bunk
[2.6 patch] sh dreamcast: export board_pci_channels
This patch fixes the following build error: <-- snip --> ... MODPOST 1837 modules ERROR: "board_pci_channels" [drivers/pcmcia/yenta_socket.ko] undefined! ... make[2]: *** [__modpost] Error 1 <-- snip --> I freely admit that it's a pathological configuration, but as long as it is allowed it should build. Reported-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Adrian Bunk <bunk@kernel.org> --- arch/sh/drivers/pci/ops-dreamcast.c | 2 ++ 1 file c...
Jun 17, 6:30 pm 2008
Adrian Bunk
[2.6 patch] sh: export get_cpu_subtype
This patch fixes the following build error: <-- snip --> ... MODPOST 1837 modules ERROR: "get_cpu_subtype" [arch/sh/oprofile/oprofile.ko] undefined! ... make[2]: *** [__modpost] Error 1 <-- snip --> Reported-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Adrian Bunk <bunk@kernel.org> --- 3b4d9e75cf4e2d0eb47bc9e8867a9a60dbd1d8c2 diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index bca2bbc..9324cb9 100644 --- a/arch/sh/kernel/setup.c +++ b/...
Jun 17, 6:30 pm 2008
Adrian Bunk
[2.6 patch] video/stifb.c: make 2 functions static
This patch makes the following needlessly global functions static: - stifb_init_fb() - stifb_init() Signed-off-by: Adrian Bunk <bunk@kernel.org> --- drivers/video/stifb.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 952f8b344428d8995c34a677a9672656e0a306d6 diff --git a/drivers/video/stifb.c b/drivers/video/stifb.c index 598d35e..1664814 100644 --- a/drivers/video/stifb.c +++ b/drivers/video/stifb.c @@ -1078,8 +1078,7 @@ static struct fb_ops stifb_ops = { * Ini...
Jun 17, 6:30 pm 2008
Adrian Bunk
[2.6 patch] video/console/stico{n,re}.c: make code static
This patch makes the following needlessly global code static: - sticon.c: sticonsole_init() - sticore.c: struct default_sti - sticore.c: sti_init_graph() - sticore.c: sti_inq_conf() - sticore.c: sti_rom_copy() - sticore.c: sti_select_fbfont() - sticore.c: sti_select_font() - sticore.c: sti_get_wmode_rom() - sticore.c: sti_read_rom() Signed-off-by: Adrian Bunk <bunk@kernel.org> --- drivers/video/console/sticon.c | 2 - drivers/video/console/sticore.c | 33 ++++++++++++++-------...
Jun 17, 6:30 pm 2008
Adrian Bunk
[2.6 patch] make probe_serial_gsc() static
This patch makes the needlessly global probe_serial_gsc() static. Signed-off-by: Adrian Bunk <bunk@kernel.org> --- e0053c1295ce33ec15d2788140070660e95a07f0 diff --git a/drivers/serial/8250_gsc.c b/drivers/serial/8250_gsc.c index 0416ad3..418b4fe 100644 --- a/drivers/serial/8250_gsc.c +++ b/drivers/serial/8250_gsc.c @@ -111,7 +111,7 @@ static struct parisc_driver serial_driver = { .probe = serial_init_chip, }; -int __init probe_serial_gsc(void) +static int __init probe_serial_gsc(...
Jun 17, 6:30 pm 2008
Adrian Bunk
[2.6 patch] input/serio/hp_sdc_mlc.c: make a struct static
This patch makes the needlessly global struct hp_sdc_mlc_priv_s static. Signed-off-by: Adrian Bunk <bunk@kernel.org> --- a393b82d875616b9a78382d260b89f50b37fde71 diff --git a/drivers/input/serio/hp_sdc_mlc.c b/drivers/input/serio/hp_sdc_mlc.c index 587398f..b587e2d 100644 --- a/drivers/input/serio/hp_sdc_mlc.c +++ b/drivers/input/serio/hp_sdc_mlc.c @@ -50,7 +50,7 @@ MODULE_AUTHOR("Brian S. Julin <bri@calyx.com>"); MODULE_DESCRIPTION("Glue for onboard HIL MLC in HP-PARISC machines");...
Jun 17, 6:30 pm 2008
Adrian Bunk
[2.6 patch] input/serio/hil_mlc.c: make code static
Signed-off-by: Adrian Bunk <bunk@kernel.org> --- drivers/input/serio/hil_mlc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 2666f2e78ff94da848dadf01279e89a0ba459aa8 diff --git a/drivers/input/serio/hil_mlc.c b/drivers/input/serio/hil_mlc.c index 93a1a6b..37586a6 100644 --- a/drivers/input/serio/hil_mlc.c +++ b/drivers/input/serio/hil_mlc.c @@ -76,7 +76,7 @@ static struct timer_list hil_mlcs_kicker; static int hil_mlcs_probe; static void hil_mlcs_process(unsign...
Jun 17, 6:30 pm 2008
Andi Kleen
copy_from_user again()
Linus, Just in case you read that: I thought a little more about your patch. One problem I see (and that is why I aborted my version of it too) is that it becomes very inaccurate now in reporting. So for example when you have a source like offset 0 4 8 <---> unmapped boundary and it starts copying from 0-8 and faults then with your patch it will return full size even though it could have copied 8 bytes (return size - 8) That is what I meant by breaking it. Arguably it's just...
Jun 17, 6:19 pm 2008
Linus Torvalds
Re: copy_from_user again()
Well, it doesn't become any less accurate in reporting, quite the reverse: now it *is* accurate in reporting what it actually *did*. Before, it would report something that simply wasn't _true_. Being closer to what you might _wish_ would happen doesn't make it accurate, if it doesn'y match reality! However, you're right that the routine has always had (and I didn't change that) a 32-byte granularity in what it does and what it doesn't do in the unrolled part. Before, it _claimed_ to b...
Jun 17, 7:41 pm 2008
Jesse Barnes
[PATCH] DRM support for new pm_ops hooks
The PCI linux-next branch has support for the new PM ops hooks, so I thought I should refresh the DRM support for suspend/resume based on the new stuff. I think we can get away with having drivers provide just save/restore hooks and let the core take care of the rest. When we flesh out the prepare/complete hooks we may need another driver callback, not sure yet. How does it look? Thanks, Jesse
Jun 17, 6:06 pm 2008
eranian
[patch 19/19] perfmon2 minimal v2: AMD64 processor support
Add support for AMD64 processors for Family 6, 15, and 16. Both 32-bit and 64-bit modes are supported. Signed-off-by: Stephane Eranian <eranian@gmail.com> -- Index: o/arch/x86/perfmon/perfmon_amd64.c =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ o/arch/x86/perfmon/perfmon_amd64.c 2008-06-13 16:42:30.000000000 +0200 @@ -0,0 +1,441 @@ +/* + * This file contains the PMU description for the Athlon64 and Opteron64 ...
Jun 17, 6:03 pm 2008
eranian
[patch 18/19] perfmon2 minimal v2: Intel architectural PMU ...
This patch adds Intel architectural PMU support (version 1 and 2). Signed-off-by: Stephane Eranian <eranian@gmail.com> -- Index: o/arch/x86/perfmon/Makefile =================================================================== --- o.orig/arch/x86/perfmon/Makefile 2008-06-13 16:40:03.000000000 +0200 +++ o/arch/x86/perfmon/Makefile 2008-06-13 16:42:00.000000000 +0200 @@ -3,3 +3,4 @@ # Contributed by Stephane Eranian <eranian@hpl.hp.com> # obj-$(CONFIG_PERFMON) += perfmon.o +obj-$...
Jun 17, 6:03 pm 2008
eranian
[patch 17/19] perfmon2 minimal v2: system calls
This patch adds the top level perfmon2 system calls. Signed-off-by: Stephane Eranian <eranian@gmail.com> -- Index: o/perfmon/perfmon_syscalls.c =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ o/perfmon/perfmon_syscalls.c 2008-06-09 11:25:17.000000000 +0200 @@ -0,0 +1,741 @@ +/* + * perfmon_syscalls.c: perfmon2 system call interface + * + * This file implements the perfmon2 interface which + * provides access to t...
Jun 17, 6:03 pm 2008
eranian
[patch 16/19] perfmon2 minimal v2: X86 32-bit system calls ...
This patchs adds the entry points for the X86 32-bit perfmon2 system calls. Signed-off-by: Stephane Eranian <eranian@gmail.com> -- Index: o/arch/x86/kernel/syscall_table_32.S =================================================================== --- o.orig/arch/x86/kernel/syscall_table_32.S 2008-06-04 11:11:06.000000000 +0200 +++ o/arch/x86/kernel/syscall_table_32.S 2008-06-04 11:33:27.000000000 +0200 @@ -326,3 +326,16 @@ .long sys_fallocate .long sys_timerfd_settime /* 325 */ .long s...
Jun 17, 6:03 pm 2008
eranian
[patch 15/19] perfmon2 minimal v2: X86 64-bit system calls ...
This patchs adds the entry points for the X86 64-bit perfmon2 system calls. Signed-off-by: Stephane Eranian <eranian@gmail.com> -- Index: o/arch/x86/ia32/ia32entry.S =================================================================== --- o.orig/arch/x86/ia32/ia32entry.S 2008-06-04 11:09:38.000000000 +0200 +++ o/arch/x86/ia32/ia32entry.S 2008-06-04 11:33:03.000000000 +0200 @@ -731,4 +731,16 @@ .quad sys32_fallocate .quad compat_sys_timerfd_settime /* 325 */ .quad compat_sys_timerfd_...
Jun 17, 6:03 pm 2008
previous daytodaynext day
June 16, 2008June 17, 2008June 18, 2008