]> git.hungrycats.org Git - linux/log
linux
22 years ago[CPUFREQ] Use speedstep_lib's capabilites for ->get() in speedstep-ich.c
Dave Jones [Fri, 7 May 2004 16:37:05 +0000 (17:37 +0100)]
[CPUFREQ] Use speedstep_lib's capabilites for ->get() in speedstep-ich.c

22 years ago[CPUFREQ] use speedstep_centrino's internal get function as ->get()
Dave Jones [Fri, 7 May 2004 16:36:26 +0000 (17:36 +0100)]
[CPUFREQ] use speedstep_centrino's internal get function as ->get()

22 years ago[CPUFREQ] Add powernowk8_get()
Dave Jones [Fri, 7 May 2004 16:35:39 +0000 (17:35 +0100)]
[CPUFREQ] Add powernowk8_get()
but be careful as some code needs to run on specified CPU only.

22 years ago[CPUFREQ] powernow-k7->get() implementation by Bruno Ducrot.
Dave Jones [Fri, 7 May 2004 16:34:15 +0000 (17:34 +0100)]
[CPUFREQ] powernow-k7->get() implementation by Bruno Ducrot.

22 years ago[CPUFREQ] powernow-k6 ->get
Dave Jones [Fri, 7 May 2004 16:33:10 +0000 (17:33 +0100)]
[CPUFREQ] powernow-k6 ->get
powernow_k6 has almost all pieces in place for its own ->get() function.
Add the rest.

22 years ago[CPUFREQ] Add p4-clockmod ->get
Dave Jones [Fri, 7 May 2004 16:32:21 +0000 (17:32 +0100)]
[CPUFREQ] Add p4-clockmod ->get
p4-clockmod is a bit more complicated as it might run on SMP, HT, and
the instructions need to run on the specific (physical) CPU.

22 years ago[CPUFREQ] Add longrun ->get
Dave Jones [Fri, 7 May 2004 16:31:46 +0000 (17:31 +0100)]
[CPUFREQ] Add longrun ->get
Longrun users might be interested in their CPU's current frequency as
well, so use a longrun-specific cpuid-call in longrun_get().

22 years ago[CPUFREQ] Add a longhaul_get function.
Dave Jones [Fri, 7 May 2004 16:29:19 +0000 (17:29 +0100)]
[CPUFREQ] Add a longhaul_get function.

22 years ago[CPUFREQ] use gx-suspmod's internal get function as ->get()
Dave Jones [Fri, 7 May 2004 16:18:53 +0000 (17:18 +0100)]
[CPUFREQ] use gx-suspmod's internal get function as ->get()

22 years ago[CPUFREQ] use elanfreq's internal get function as ->get()
Dave Jones [Fri, 7 May 2004 16:18:13 +0000 (17:18 +0100)]
[CPUFREQ] use elanfreq's internal get function as ->get()

22 years ago[CPUFREQ] Handle CPUFREQ_RESUMECHANGE notifications
Dave Jones [Fri, 7 May 2004 16:17:28 +0000 (17:17 +0100)]
[CPUFREQ] Handle CPUFREQ_RESUMECHANGE notifications
Notifications in i386, sparc64, x86_64, sh-sci and sa11xx-pcmcia notifiers.
sa1100-framebuffer doesn't seem to be able to handle frequency transitions
behind its back well. So, sa11xx will be marked
CPUFREQ_PANIC_OUTOFSYNC | CPUFREQ_PANIC_RESUME_OUTOFSYNC later.

22 years ago[CPUFREQ] (Hopefully) fix cpufreq resume support.
Dave Jones [Fri, 7 May 2004 16:13:59 +0000 (17:13 +0100)]
[CPUFREQ] (Hopefully) fix cpufreq resume support.

Upon resuming, first CPUfreq hardware support needs to be re-enabled in certain cases
(call to cpufreq_driver->resume()).

Then, two different paths may need to be taken:
a) frequency during suspend equals frequency during resume ==> everything is fine,

b) frequency differ ==> either we can't handle it, then panic (see flag
   CPUFREQ_PANIC_RESUME_OUTOFSYNC). Or we can handle it, then notify all

22 years ago[CPUFREQ] Fix 'out of sync' issue.
Dave Jones [Fri, 7 May 2004 16:11:44 +0000 (17:11 +0100)]
[CPUFREQ] Fix 'out of sync' issue.
Sometimes we might discover during a call to cpufreq_get() that we're "out of sync",
meaning the actual CPU frequency changed "behind our back". If this happens, the flag
CPUFREQ_PANIC_OUTOFSYNC decides what can be done: if it is set, the kernel panic's,
it it is not set, the cpufreq transition notifiers are informed of this change, and
a call to cpufreq_update_policy() is scheduled [using the default workqueue] so that
the user-defined values override BIOS / external interaction.

22 years ago[CPUFREQ] Export cpufreq_get() to userspace.
Dave Jones [Fri, 7 May 2004 16:09:07 +0000 (17:09 +0100)]
[CPUFREQ] Export cpufreq_get() to userspace.
As it involves calls to hardware which might take some time,
only let the super-user read out this value.

22 years ago[CPUFREQ] Move cpufreq_get() from the userspace governor to the core.
Dave Jones [Fri, 7 May 2004 16:08:05 +0000 (17:08 +0100)]
[CPUFREQ] Move cpufreq_get() from the userspace governor to the core.
Contrary to the previous implementation, it now calls the cpufreq driver,
and reads out the _actual_ current frequency, and not the frequency the
CPUfreq core _thinks_ the CPU is running at. Most cpufreq drivers do provide
such a "hw get" function (only ACPI-io can definitely not be supported,
I'm not sure about sh, sparc64 and powermac) anyway, and it is useful for
other issues.

22 years ago[CPUFREQ] Export scaling cur frequencies
Dave Jones [Fri, 7 May 2004 16:06:16 +0000 (17:06 +0100)]
[CPUFREQ] Export scaling cur frequencies
Many users want to know the current cpu freqeuncy, even if not using
the userspace frequency. On ->target cpufreq drivers (if they do their
calls to cpufreq_notify_transition correctly) this just means reading
out cpufreq_policy->cur.

22 years ago[CPUFREQ] powernow-k8: prevent BIOSs offering a vid of 0x1f, which means off.
Dave Jones [Thu, 22 Apr 2004 17:09:05 +0000 (18:09 +0100)]
[CPUFREQ] powernow-k8: prevent BIOSs offering a vid of 0x1f, which means off.
From paul.devriendt@amd.com

22 years ago[CPUFREQ] powernow-k8 ignore invalid p-states.
Dave Jones [Thu, 22 Apr 2004 17:05:21 +0000 (18:05 +0100)]
[CPUFREQ] powernow-k8 ignore invalid p-states.
From paul.devriendt@amd.com

22 years ago[CPUFREQ] powernow-k8 cpuid changes.
Dave Jones [Thu, 22 Apr 2004 17:01:36 +0000 (18:01 +0100)]
[CPUFREQ] powernow-k8 cpuid changes.
cpuid changes to support new processors that will be coming out in the
future. Also works around a processor that we have released to the field
that can have an erroneous cpuid value.

From paul.devriendt@amd.com

22 years ago[CPUFREQ] Fix security hole in proc handler.
Dave Jones [Wed, 21 Apr 2004 20:49:59 +0000 (21:49 +0100)]
[CPUFREQ] Fix security hole in proc handler.
Brad Spengler <spender@grsecurity.net> found an exploitable bug in the proc handler
of cpufreq, where a user-supplied unsigned int is cast to a signed int and then
passed on to copy_[to|from]_user() allowing arbitary amounts of memory to be written
(root only thankfully), or read (as any user).

The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned
the name CAN-2004-0228 to this issue.

22 years ago[CPUFREQ] Export an array of acpi driver supported frequencies in sysfs
Dave Jones [Wed, 21 Apr 2004 20:20:17 +0000 (21:20 +0100)]
[CPUFREQ] Export an array of acpi driver supported frequencies in sysfs
From Dominik.

22 years ago[CPUFREQ] Make an educated guess at the current P-state in the ACPI driver.
Dave Jones [Wed, 21 Apr 2004 20:18:57 +0000 (21:18 +0100)]
[CPUFREQ] Make an educated guess at the current P-state in the ACPI driver.
One big limitation of the ACPI specification is that it's impossible to
detect the current P-State by reading from ACPI-defined registers. And the
CPU isn't always at P0 when the system boots. So, try to "guess" the current
P-State by analyzing cpu_khz.

From Dominik.

22 years ago[CPUFREQ] Remove redundant part of powernow-k7 module parm
Dave Jones [Wed, 21 Apr 2004 18:58:29 +0000 (19:58 +0100)]
[CPUFREQ] Remove redundant part of powernow-k7 module parm
If used as a bootparam, this would've become powernow-k7.powernow_acpi_force which looks silly.

22 years ago[CPUFREQ] Fix unbalanced try_get_module/put_module
Dave Jones [Wed, 21 Apr 2004 18:07:29 +0000 (19:07 +0100)]
[CPUFREQ] Fix unbalanced try_get_module/put_module
Spotted by Charles Coffing <ccoffing@novell.com>

22 years ago[CPUFREQ] Fix broken cast.
Dave Jones [Mon, 19 Apr 2004 10:23:44 +0000 (11:23 +0100)]
[CPUFREQ] Fix broken cast.
This breaks on x86-64 with the following warning.

drivers/cpufreq/cpufreq_userspace.c: In function `cpufreq_procctl':
drivers/cpufreq/cpufreq_userspace.c:170: warning: cast from pointer to integer of different size
drivers/cpufreq/cpufreq_userspace.c: In function `cpufreq_sysctl':
drivers/cpufreq/cpufreq_userspace.c:208: warning: cast from pointer to integer of different size

22 years ago[CPUFREQ] Fix up missing CONFIG_X86_POWERNOW_K8_ACPI
Dave Jones [Mon, 19 Apr 2004 10:20:19 +0000 (11:20 +0100)]
[CPUFREQ] Fix up missing CONFIG_X86_POWERNOW_K8_ACPI
We don't need this, we can infer from CONFIG_ACPI_PROCESSOR

22 years ago[CPUFREQ] Fix debug build of powernow-k8
Dave Jones [Mon, 19 Apr 2004 09:08:52 +0000 (10:08 +0100)]
[CPUFREQ] Fix debug build of powernow-k8
From Paul Devriendt

22 years ago[CPUFREQ] Not all powernow-K7 BIOS's put the frequency at MAX at POST.
Dave Jones [Fri, 16 Apr 2004 17:41:34 +0000 (18:41 +0100)]
[CPUFREQ] Not all powernow-K7 BIOS's put the frequency at MAX at POST.

22 years ago[CPUFREQ] clear defaults before powernow-k7 acpi fallback
Dave Jones [Wed, 14 Apr 2004 23:26:47 +0000 (00:26 +0100)]
[CPUFREQ] clear defaults before powernow-k7 acpi fallback
Decoding the legacy tables may have set these values.

22 years ago[CPUFREQ] powernow-k7 ACPI->PST values were a factor of 10 off.
Dave Jones [Wed, 14 Apr 2004 23:22:30 +0000 (00:22 +0100)]
[CPUFREQ] powernow-k7 ACPI->PST values were a factor of 10 off.
As much as I like the idea of a 13GHz laptop, setting it to 1.3GHz is probably
for the best for the time being.

22 years ago[CPUFREQ] Make powernow-k7 acpi debug output a little less verbose.
Dave Jones [Wed, 14 Apr 2004 23:20:31 +0000 (00:20 +0100)]
[CPUFREQ] Make powernow-k7 acpi debug output a little less verbose.

22 years ago[CPUFREQ] Add a module parameter to force ACPI to be used.
Dave Jones [Wed, 14 Apr 2004 23:18:39 +0000 (00:18 +0100)]
[CPUFREQ] Add a module parameter to force ACPI to be used.

22 years ago[CPUFREQ] Remove bogus newline in powernow-k7 driver.
Dave Jones [Wed, 14 Apr 2004 19:21:08 +0000 (20:21 +0100)]
[CPUFREQ] Remove bogus newline in powernow-k7 driver.

22 years ago[CPUFREQ] powernow-k7 needs to init later.
Dave Jones [Wed, 14 Apr 2004 16:15:56 +0000 (17:15 +0100)]
[CPUFREQ] powernow-k7 needs to init later.
Due to the possible dependancy on ACPI.

22 years ago[CPUFREQ] Drop unneeded part of last patch.
Dave Jones [Wed, 14 Apr 2004 16:14:35 +0000 (17:14 +0100)]
[CPUFREQ] Drop unneeded part of last patch.
acpi fallback is handled already in the init function.

22 years ago[CPUFREQ] powernow-k7 ACPI integration.
Dave Jones [Wed, 14 Apr 2004 14:26:15 +0000 (15:26 +0100)]
[CPUFREQ] powernow-k7 ACPI integration.
More from Bruno Ducrot.

Warning: it will only half work on the ACER Aspire, though: there is
no pstate in the DSDT corresponding to the max frequency...
I'm looking how to handle that correctly, probably at the init stage,
if the max frequency is not given, then add it to powernow_table.

* Integrate acpi perflib from Dominik.
* Use acpi if the PST tables are known to be broken (ASUS Aspire match one PST,
  but give brain damaged values), or use ACPI if no PST found.

22 years ago[CPUFREQ] don't use speedstep-centrino on unsupported CPUs
Dave Jones [Wed, 14 Apr 2004 13:22:15 +0000 (14:22 +0100)]
[CPUFREQ] don't use speedstep-centrino on unsupported CPUs

From: Dominik Brodowski <linux@dominikbrodowski.de>

Don't use the ACPI data on CPUs we don't know nothing about.

22 years agoMerge delerium.codemonkey.org.uk:/mnt/nfs/sepia/bar/src/kernel/2.6/trees/bk-linus
Dave Jones [Wed, 14 Apr 2004 12:49:47 +0000 (13:49 +0100)]
Merge delerium.codemonkey.org.uk:/mnt/nfs/sepia/bar/src/kernel/2.6/trees/bk-linus
into delerium.codemonkey.org.uk:/mnt/nfs/sepia/bar/src/kernel/2.6/trees/cpufreq

22 years ago[CPUFREQ] Correcting SGTC. Timer is based upon FSB
Dave Jones [Wed, 14 Apr 2004 12:40:42 +0000 (13:40 +0100)]
[CPUFREQ] Correcting SGTC.  Timer is based upon FSB
From: Bruno Ducrot <ducrot@poupinou.org>

I think this patch is needed especially if the FSB is around 166MHz or
200MHz, or else I believe we get instabilities on some K7's motherboard
powernow capable (it's called Cool'n Quiet IIRC).

* Deduce fsb from cpu_khz and the max multiplier.  It will be given as kHz now,
  so that frequency associated to a multiplier will be computate more
  accurately.  Also, we need it for SGTC (see below).
* Fix how cpuid is computed in powernow_decode_bios().
* Be more restrictive for PST.  It may be possible (on desktop shipped with
  low power Athlon models) that FSB can be changed by dip switchs on
  motherboard for example.
* Fix computation for SGTC.  It use the bus timer (and then the bus
  frequency given by fsb).

22 years ago[PATCH] ppc64: restore r13 in an unrecoverable exception
Andrew Morton [Tue, 13 Apr 2004 02:26:35 +0000 (19:26 -0700)]
[PATCH] ppc64: restore r13 in an unrecoverable exception

From: Anton Blanchard <anton@samba.org>

We have to restore r13 when entering unrecoverable_exception.

22 years ago[PATCH] ppc64: Fix ibmveth.c compilation
Andrew Morton [Tue, 13 Apr 2004 02:26:22 +0000 (19:26 -0700)]
[PATCH] ppc64: Fix ibmveth.c compilation

From: Paul Mackerras <paulus@samba.org>

This patch changes PCI_DMA_TODEVICE to DMA_TO_DEVICE in a couple of
places in drivers/net/ibmveth.c, since it doesn't compile without this
change and it does compile with it.  It also reformats a couple of
over-long lines in the vicinity of the other changes.

22 years ago[PATCH] ufs2_frag_map_fix : fixes wrong content reading in ufs2 code
Andrew Morton [Tue, 13 Apr 2004 02:26:09 +0000 (19:26 -0700)]
[PATCH] ufs2_frag_map_fix : fixes wrong content reading in ufs2  code

From: Niraj Kumar <niraj17@iitbombay.org>

This is in continuation of the ufs2 read-only code that went into 2.6.5.

This patch fixes a bug where wrong content was being read off the disk
after around 4 MB mark.

22 years ago[PATCH] binfmt_misc: remove attribute(unused)
Andrew Morton [Tue, 13 Apr 2004 02:25:55 +0000 (19:25 -0700)]
[PATCH] binfmt_misc: remove attribute(unused)

From: Anton Blanchard <anton@samba.org>

It's been there since the kernel was first imported into bk.  We see no
reason for this.

22 years ago[PATCH] stack reductions: nfs root
Andrew Morton [Tue, 13 Apr 2004 02:25:41 +0000 (19:25 -0700)]
[PATCH] stack reductions: nfs root

From: Arjan van de Ven <arjanv@redhat.com>

root_nfs_name is called one in single threaded environment; can use static.

22 years ago[PATCH] Compile fix for macserial
Andrew Morton [Tue, 13 Apr 2004 02:25:29 +0000 (19:25 -0700)]
[PATCH] Compile fix for macserial

From: Jeff Mahoney <jeffm@suse.com>

This patch fixes a problem with the serial conversion to tiocm[sg]et.

The paste from rs_ioctl included the command sanity checking, but there's no
command for tiocm[sg]et.  The compile ends up failing.

22 years ago[PATCH] pcmcia/rsrc_mgr.c warning fix.
Andrew Morton [Tue, 13 Apr 2004 02:25:15 +0000 (19:25 -0700)]
[PATCH] pcmcia/rsrc_mgr.c warning fix.

From: "Luiz Fernando N. Capitulino" <lcapitulino@prefeitura.sp.gov.br>,
      me

drivers/pcmcia/rsrc_mgr.c: In function `find_io_region':
drivers/pcmcia/rsrc_mgr.c:604: warning: large integer implicitly truncated to unsigned type

We don't really know what underlying type an ioaddr_t has, so just use an
integer here and let the compiler promote it appropriately.

22 years ago[PATCH] another mips build fix
Andrew Morton [Tue, 13 Apr 2004 02:25:02 +0000 (19:25 -0700)]
[PATCH] another mips build fix

From: Samium Gromoff <deepfire@sic-elvis.zel.ru>

Without this one it fails to build, too.

22 years ago[PATCH] mips build fix
Andrew Morton [Tue, 13 Apr 2004 02:24:49 +0000 (19:24 -0700)]
[PATCH] mips build fix

From: Samium Gromoff <deepfire@sic-elvis.zel.ru>

Without this one it fails to build.

22 years ago[PATCH] Wrong return value in hfs_fill_super
Andrew Morton [Tue, 13 Apr 2004 02:24:35 +0000 (19:24 -0700)]
[PATCH] Wrong return value in hfs_fill_super

From: Nick Wellnhofer <wellnhofer@aevum.de>

hfs_fill_super in 2.6.5 returns -EIO instead of -EINVAL if a valid supe=
block isn't found.  So mount_block_root in init/do_mounts.c bails out before
trying to mount the root device as XFS.

22 years ago[PATCH] m68knommu: fixes to the 68328 DragonBall serial driver
Andrew Morton [Tue, 13 Apr 2004 02:24:22 +0000 (19:24 -0700)]
[PATCH] m68knommu: fixes to the 68328 DragonBall serial driver

From: <gerg@snapgear.com>

A few fixes for the 68328 "DragonBall" serial driver:

. use irqreturn_t for interrupt handlers
. correct a few variable types (stop compiler warnings)
. correctly use return values from put_user(), get_user() and copy_to_user()

Many of these originaly from kernel janitors.

22 years ago[PATCH] m68knommu: fixes to the ColdFire serial driver
Andrew Morton [Tue, 13 Apr 2004 02:24:08 +0000 (19:24 -0700)]
[PATCH] m68knommu: fixes to the ColdFire serial driver

From: <gerg@snapgear.com>

A whole bunch of fixes for the ColdFire serial driver:

. remove unused CONFIG_LEDMAN code
. reformat port definitions to new style structure init
. change "addr" field type to reduce casting in ColdFire serial driver
. cleanup locking problems in mcfrs_write().
. implement fraction baud rate clock support for hardware that
  supports it (namely the ColdFire 5272)
. implement wait_until_sent, some ColdFire parts of hardware support
  for this (again the 5272).
. correctly use return values from put_user(), get_user() and copy_to_user()

Many of these originaly from kernel janitors.

22 years ago[PATCH] m68knommu: change addr type to reduce casting in ColdFire serial driver
Andrew Morton [Tue, 13 Apr 2004 02:23:56 +0000 (19:23 -0700)]
[PATCH] m68knommu: change addr type to reduce casting in ColdFire serial driver

From: <gerg@snapgear.com>

Change "addr" field type to reduce casting in ColdFire serial driver.

22 years ago[PATCH] Fix tmscsim on amd64
Andrew Morton [Tue, 13 Apr 2004 02:23:42 +0000 (19:23 -0700)]
[PATCH] Fix tmscsim on amd64

From: Jeff Garzik <jgarzik@pobox.com>

DC390_init() takes a long, not an int.

22 years ago[PATCH] uninline copy_to_user() and copy_from_user()
Andrew Morton [Tue, 13 Apr 2004 02:23:29 +0000 (19:23 -0700)]
[PATCH] uninline copy_to_user() and copy_from_user()

40k reduction in my vmlinux.

Thanks to Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua> for performing
the analysis.

22 years ago[PATCH] uninline seq_puts() and seq_putc()
Andrew Morton [Tue, 13 Apr 2004 02:23:16 +0000 (19:23 -0700)]
[PATCH] uninline seq_puts() and seq_putc()

Saves 3.4k from my vmlinux.

Thanks to Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua> for performing
the analysis.

22 years ago[PATCH] uninline put_page()
Andrew Morton [Tue, 13 Apr 2004 02:23:02 +0000 (19:23 -0700)]
[PATCH] uninline put_page()

Shrinks my vmlinux by an astonishing 28k.

   text    data     bss     dec     hex filename
3038796  589890  150612 3779298  39aae2 vmlinux.before
3009761  590107  150612 3750480  393a50 vmlinux.after

Thanks to Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua> for performing
the analysis.

22 years ago[PATCH] fix vga16fb.c frame buffer bad memory mapping
Andrew Morton [Tue, 13 Apr 2004 02:22:50 +0000 (19:22 -0700)]
[PATCH] fix vga16fb.c frame buffer bad memory mapping

From: Vincent Sanders <vince@kyllikki.org>

The vga16fb driver uses a direct ioremap on 0xa00000 to gain access to the
vga card.  This is wrong on architectures other than x86, every other driver
uses VGA_MAP_MEM macro from vga.h to ensure the correct memory mapping.

22 years ago[PATCH] shrink VFS hash sizes on small machines
Andrew Morton [Tue, 13 Apr 2004 02:22:37 +0000 (19:22 -0700)]
[PATCH] shrink VFS hash sizes on small machines

From: Matt Mackall <mpm@selenic.com>

Base hash sizes on available memory rather than total memory.  An
additional 50% above current used memory is considered reserved for the
purposes of hash sizing to compensate for the hashes themselves and the
remainder of kernel and userspace initialization.

22 years ago[PATCH] get_files_struct cleanup
Andrew Morton [Tue, 13 Apr 2004 02:22:25 +0000 (19:22 -0700)]
[PATCH] get_files_struct cleanup

From: Russell King <rmk@arm.linux.org.uk>

Cleanup the 4 duplicate "get_files_struct" implementations into one
get_files_struct() function to compliment put_files_struct().

22 years ago[PATCH] put ia32 pgds and pmds back into slab
Andrew Morton [Tue, 13 Apr 2004 02:22:13 +0000 (19:22 -0700)]
[PATCH] put ia32 pgds and pmds back into slab

From: William Lee Irwin III <wli@holomorphy.com>

This optimisation was reverted when I was removing all users of page->list.
Bill fixed it up, so unrevert it again.

22 years ago[PATCH] kbuild: Create .tmp_versions when building external modules
Andrew Morton [Tue, 13 Apr 2004 02:21:59 +0000 (19:21 -0700)]
[PATCH] kbuild: Create .tmp_versions when building external modules

From: Sam Ravnborg <sam@ravnborg.org>

When building external modules the $PWD/.tmp_versions directory is used.
The .tmp_versions directory in the kernel tree cannot be used because this
would clutter up the kernel tree especially when more than one external
module is being build for the same kernel tree.

This patch make sure to create $PWD/.tmp_versions, and to delete it during
make clean.  It also removes warning about 'messed with SUBDIRS', this is
no longer relevant when .tmp_versions is made outside the kernel tree.

22 years ago[PATCH] hugetlbpage highmem fix
Andrew Morton [Tue, 13 Apr 2004 02:21:45 +0000 (19:21 -0700)]
[PATCH] hugetlbpage highmem fix

From: Andy Whitcroft <apw@shadowen.org>

When clearing a large page allocation ensure we use a page clear function
which will correctly clear a ZONE_HIGHMEM page.

22 years agoMerge bk://linux-dj.bkbits.net/cpufreq
Linus Torvalds [Tue, 13 Apr 2004 01:52:00 +0000 (18:52 -0700)]
Merge bk://linux-dj.bkbits.net/cpufreq
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://linux-dj.bkbits.net/agpgart
Linus Torvalds [Tue, 13 Apr 2004 01:16:54 +0000 (18:16 -0700)]
Merge bk://linux-dj.bkbits.net/agpgart
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] m68k show_interrupts bug
Geert Uytterhoeven [Tue, 13 Apr 2004 00:32:38 +0000 (17:32 -0700)]
[PATCH] m68k show_interrupts bug

M68k: Make sure machine-specific interrupts are always printed (bug introduced
by show_interrupts() conversion)

22 years ago[PATCH] Amiga eth%d
Geert Uytterhoeven [Tue, 13 Apr 2004 00:32:24 +0000 (17:32 -0700)]
[PATCH] Amiga eth%d

Amiga Ethernet drivers: Print card info after calling register_netdev(), to
avoid dev->name still being 'eth%d'.

22 years ago[PATCH] M68k time update
Geert Uytterhoeven [Tue, 13 Apr 2004 00:32:12 +0000 (17:32 -0700)]
[PATCH] M68k time update

M68k: Update time adjustment code cfr. other architectures.
(perhaps do_gettimeofday() is a good candidate for consolidation across archs?)

22 years ago[PATCH] M68k TLB fixes
Geert Uytterhoeven [Tue, 13 Apr 2004 00:31:58 +0000 (17:31 -0700)]
[PATCH] M68k TLB fixes

M68k TLB fixes from Roman Zippel:
  - Check current->active_mm for currently active mm
  - Set correct context to flush the right ATC entry
This is especially important for kswapd to correctly flush unmapped entries (it
caused random segfaults during large compiles)

22 years ago[PATCH] m68k I/O
Geert Uytterhoeven [Tue, 13 Apr 2004 00:31:46 +0000 (17:31 -0700)]
[PATCH] m68k I/O

m68k: Use explicit-sized types for I/O accesses

22 years ago[PATCH] Amikbd C99 cleanup
Geert Uytterhoeven [Tue, 13 Apr 2004 00:31:32 +0000 (17:31 -0700)]
[PATCH] Amikbd C99 cleanup

Amikbd: Use C99 array initializers and standard key defines

22 years ago[PATCH] M68k initializers cleanup
Geert Uytterhoeven [Tue, 13 Apr 2004 00:31:19 +0000 (17:31 -0700)]
[PATCH] M68k initializers cleanup

M68k: Clean up initializers:
  - Convert struct/array initializers to C99 style
  - Do not initialize data to 0 or NULL explicitly so it can move to bss

22 years ago[PATCH] M68k vector definitions
Geert Uytterhoeven [Tue, 13 Apr 2004 00:31:05 +0000 (17:31 -0700)]
[PATCH] M68k vector definitions

M68k: Add remaining CPU vector definitions

22 years ago[PATCH] Sun-3 duplicates
Geert Uytterhoeven [Tue, 13 Apr 2004 00:30:52 +0000 (17:30 -0700)]
[PATCH] Sun-3 duplicates

Sun-3: Kill duplicate definitions:
  - FC_CONTROL is defined in <asm/sun3-head.h>
  - vectors[] is declared in <asm/traps.h>

22 years ago[PATCH] MVME16x RTC const
Geert Uytterhoeven [Tue, 13 Apr 2004 00:30:39 +0000 (17:30 -0700)]
[PATCH] MVME16x RTC const

MVME16x RTC: Make days_in_mo[] const

22 years ago[PATCH] Amiga Zorro8390 Ethernet section conflict
Geert Uytterhoeven [Tue, 13 Apr 2004 00:30:24 +0000 (17:30 -0700)]
[PATCH] Amiga Zorro8390 Ethernet section conflict

Zorro8390: const data cannot be in the init data section (from Roman Zippel)

22 years ago[PATCH] pm2fb barrier cleanup
Geert Uytterhoeven [Tue, 13 Apr 2004 00:30:10 +0000 (17:30 -0700)]
[PATCH] pm2fb barrier cleanup

Permedia2: Always use the standard barrier macros (they do exist on m68k, and
map to barrier())

22 years ago[PATCH] Pm2fb is broken on Amiga
Geert Uytterhoeven [Tue, 13 Apr 2004 00:29:57 +0000 (17:29 -0700)]
[PATCH] Pm2fb is broken on Amiga

Permedia2: Mark pm2fb broken on Amiga, until somebody fixes it (pm2fb.c
explicitly tests for CONFIG_PCI right now)

22 years ago[PATCH] Zorro devlist.h kbuild
Geert Uytterhoeven [Tue, 13 Apr 2004 00:29:44 +0000 (17:29 -0700)]
[PATCH] Zorro devlist.h kbuild

Zorro: Quieten building of devlist.h (cfr. PCI)

22 years agoMerge http://lia64.bkbits.net/to-linus-2.5
Linus Torvalds [Mon, 12 Apr 2004 11:50:49 +0000 (04:50 -0700)]
Merge http://lia64.bkbits.net/to-linus-2.5
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://linux-scsi.bkbits.net/scsi-for-linus-2.6
Linus Torvalds [Mon, 12 Apr 2004 11:27:11 +0000 (04:27 -0700)]
Merge bk://linux-scsi.bkbits.net/scsi-for-linus-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://gkernel.bkbits.net/libata-2.6
Linus Torvalds [Mon, 12 Apr 2004 09:32:12 +0000 (02:32 -0700)]
Merge bk://gkernel.bkbits.net/libata-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge NFS conflicts
Linus Torvalds [Mon, 12 Apr 2004 09:31:17 +0000 (02:31 -0700)]
Merge NFS conflicts

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-pcmcia
Linus Torvalds [Mon, 12 Apr 2004 09:24:49 +0000 (02:24 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-pcmcia
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PCMCIA] init_pcmcia_cs() to return error from class_register()
Randy Dunlap [Mon, 12 Apr 2004 18:54:09 +0000 (19:54 +0100)]
[PCMCIA] init_pcmcia_cs() to return error from class_register()

Patch from: Randy Dunlap

From: Walter Harms

Now init_pcmcia_cs() returns the result of class_register().
Therefore init_pcmcia_cs() will possibly return an error.

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-serial
Linus Torvalds [Mon, 12 Apr 2004 09:22:59 +0000 (02:22 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-serial
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Mon, 12 Apr 2004 09:21:00 +0000 (02:21 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[ARM] use errno #defines in assembly
Randy Dunlap [Mon, 12 Apr 2004 19:03:14 +0000 (20:03 +0100)]
[ARM] use errno #defines in assembly

Patch from: Randy Dunlap

From: Danilo Piazzalunga

Some assembly code (on various archs) either
 1. uses hardcoded errno numbers instead of the canonical macro
    names, or
 2. defines them locally, instead of including the appropriate
    header (while including other headers).

This patch "fixes" such usage in
 - getuser.S for arm
 - putuser.S for arm

22 years agoDelete unused files in sound/oss
Linus Torvalds [Mon, 12 Apr 2004 09:05:30 +0000 (02:05 -0700)]
Delete unused files in sound/oss

From Herbert Xu; the files aren't used anywhere, and
shouldn't be there in the first place.

22 years ago[PATCH] Oprofile: ARM/XScale PMU driver
Andrew Morton [Mon, 12 Apr 2004 08:07:11 +0000 (01:07 -0700)]
[PATCH] Oprofile: ARM/XScale PMU driver

From: Zwane Mwaikambo <zwane@linuxpower.ca>

The following patch adds support for the XScale performance monitoring unit
to OProfile.  It uses not only the performance monitoring counters, but
also the clock cycle counter (CCNT) allowing for upto 5 usable counters.

The code has been developed and tested on an IOP331 (hardware courtesy of
Intel) therefore i haven't been able to test it on XScale PMU1 systems.
Testing on said systems would be appreciated, and if done, please uncomment
the #define DEBUG line at the top of op_model_xscale.c

OProfile userspace support has already been committed and should be
available via CVS.

22 years ago[PATCH] pmdisk is x86 only
Andrew Morton [Mon, 12 Apr 2004 08:06:59 +0000 (01:06 -0700)]
[PATCH] pmdisk is x86 only

Only x86 implements pmdisk_arch_suspend().  So mark pmdisk as ia32-only, to
avoid breaking allyesconfig.

22 years ago[PATCH] cciss_scsi warning
Andrew Morton [Mon, 12 Apr 2004 08:06:45 +0000 (01:06 -0700)]
[PATCH] cciss_scsi warning

drivers/block/cciss_scsi.c: In function `scsi_cmd_stack_free':
drivers/block/cciss_scsi.c:241: warning: cast from pointer to integer of different size

22 years ago[PATCH] cciss: /proc fix
Andrew Morton [Mon, 12 Apr 2004 08:06:33 +0000 (01:06 -0700)]
[PATCH] cciss: /proc fix

From: <mikem@beardog.cca.cpqcorp.net>

This patch fixes a bug where /proc displays 1 less logical volume than is
actually configured.  This causes problems for some installers.

22 years ago[PATCH] JBD: BH_Revoke cleanup
Andrew Morton [Mon, 12 Apr 2004 08:06:19 +0000 (01:06 -0700)]
[PATCH] JBD: BH_Revoke cleanup

Use the bh bit test/set infrastructure rather than open-coding everything.
No functional changes.

22 years ago[PATCH] Add CONFIG_SYSFS
Andrew Morton [Mon, 12 Apr 2004 08:06:06 +0000 (01:06 -0700)]
[PATCH] Add CONFIG_SYSFS

From: Patrick Mochel <mochel@digitalimplant.org>

Here is a patch to make sysfs optional.  Note that with CONFIG_SYSFS=n you
must specify the boot device's major:minor on the kernel boot command line
with

root=03:01

For embedded systems, it will save a significant amount of memory during
runtime.  And, it saves 4k from the built kernel image for me.

22 years ago[PATCH] parport: no procfs warning fix
Andrew Morton [Mon, 12 Apr 2004 08:05:52 +0000 (01:05 -0700)]
[PATCH] parport: no procfs warning fix

drivers/parport/procfs.c: In function `parport_default_proc_unregister':
drivers/parport/procfs.c:529: warning: `return' with a value, in function returning void

22 years ago[PATCH] kbuild: external module support
Andrew Morton [Mon, 12 Apr 2004 08:05:40 +0000 (01:05 -0700)]
[PATCH] kbuild: external module support

From: Sam Ravnborg <sam@ravnborg.org>

Based on initial patch from Andreas Gruenbacher there is now better support
for building external modules with kbuild.

The preferred syntax is now:
make -C $KERNELSRC M=$PWD

but the old syntax:
make -C $KERNELSRC SUBDIRS=$PWD modules
will remain supported.

The major differences compared to before are that:
1) No attempt is made to neither check nor update any files in $KERNELSRC
2) Module versions are now supported

During stage 2 of kernel compilation where the modules are built, a new file
Module.symvers is created.  This file contains the version for all symbols
exported by the kernel and any module compiled within the kernel tree.

When the external module is build the Module.symvers file is being read and
symbol versions are used from that file.

The purpose of avoiding any updates in the kernel src is that usually in a
distribution the kernel src will be read-only, and there is no need to try to
update it.  And when building an external module the focus is on the module,
not the kernel.

I expect the distributions will start using something like this:

kernel src - with no generated files. Not even .config:
/usr/src/linux-<version>

Output from build:
/lib/modules/linux-<version>/build

where build is a real directory with relevant output files and the
appropriate .config.

I have some Documentation in the pipe-line, but wants to see how this
approach is received before completing it.

This patch is made on top of the previously posted patch to divide
make clean in three steps.

And you may need to edit the following line in the patch to make it apply:
 %docs: scripts_basic FORCE
to
 %docs: scripts FORCE

22 years ago[PATCH] kbuild: cleaning in three steps
Andrew Morton [Mon, 12 Apr 2004 08:05:26 +0000 (01:05 -0700)]
[PATCH] kbuild: cleaning in three steps

From: Sam Ravnborg <sam@ravnborg.org>

Previously 'make clean' deleted all automatically generated files.  The
following patch revert this behaviour, and now 'make clean' leaves enough
behind to allow external modules to be built.

The cleaning is now done in three steps:

make clean     - delete everything not needed for building external modules
make mrproper  - delete all generated files, including .config
make distclean - delete all temporary files such as *.orig, *~, *.rej etc.

This fixes reports about nvidia and vmware build issues.

22 years ago[PATCH] Make %docs depend on scripts_basic
Andrew Morton [Mon, 12 Apr 2004 08:05:14 +0000 (01:05 -0700)]
[PATCH] Make %docs depend on scripts_basic

From: Sam Ravnborg <sam@ravnborg.org>

From: Herbert Xu <herbert@gondor.apana.org.au>

It seems that the %docs targets only needs scripts_basic.  The following
patch does just that.  This removes its dependency on the existence of a
.config file.

22 years ago[PATCH] fb_copy_cmap() fix
Andrew Morton [Mon, 12 Apr 2004 08:04:59 +0000 (01:04 -0700)]
[PATCH] fb_copy_cmap() fix

From: Arjan van de Ven <arjanv@redhat.com>

fb_copy_cmap() takes an argument about wether to do memcpy, copy_from_user or
copy_to_user.  0 is memcpy, 2 is copy_to_user.  In the ioctl you want
copy_to_user for copying the colormap to userspace.

22 years ago[PATCH] framebuffer bugfix
Andrew Morton [Mon, 12 Apr 2004 08:04:47 +0000 (01:04 -0700)]
[PATCH] framebuffer bugfix

From: Arjan van de Ven <arjanv@redhat.com>

Patch below fixes a thinko in the frame buffer drivers; the code does

cursor.image.data = kmalloc(size, GFP_KERNEL);
....
cursor.mask = kmalloc(size, GFP_KERNEL);
....
                if (copy_from_user(&cursor.image.data, sprite->image.data, size) ||
                    copy_from_user(cursor.mask, sprite->mask, size)) {
....

where it's clear that the & in the first copy_from_user is utterly bogus
since the destination is the content of the newly allocated buffer, and not
the pointer to it as the code does.