Re: configfs: return value for drop_item()/make_item()?

2007-01-23 Thread Joel Becker
On Tue, Jan 23, 2007 at 02:49:59PM +0100, Michael Noisternig wrote: > Sorry, I wasn't clear. I meant that it's not possible to let the user > create the parent directory via mkdir(2) within sysfs. I.e. > # mkdir object <-- create object/, configfs only > # ls object > type > # echo b >

Re: [ANNOUNCE] System Inactivity Monitor v1.0

2007-01-23 Thread Pavel Machek
On Tue 2007-01-23 20:01:07, Mattia Dongili wrote: > On Tue, Jan 23, 2007 at 05:34:42PM +0100, Pavel Machek wrote: > [...] > > > Do you believe it could be a user-space daemon or what? > > > > Yes, what prevents userspace daemon watching /dev/input/event* to > > provide this functionality? > >

Re: [ANNOUNCE] System Inactivity Monitor v1.0

2007-01-23 Thread Mattia Dongili
On Tue, Jan 23, 2007 at 05:34:42PM +0100, Pavel Machek wrote: [...] > > Do you believe it could be a user-space daemon or what? > > Yes, what prevents userspace daemon watching /dev/input/event* to > provide this functionality? hmmm... EVIOCGRAB for example? the synaptics Xorg driver is using

reading a binary sysfs attribute continues forever

2007-01-23 Thread Jonathan M. McCune
Hello, I have written a kernel module which introduces a new subsystem in sysfs, and it contains several attributes, one of which is binary. So far, I've been testing it using text. My problem is, attempting to read data continues forever. For example: # echo "test data" >

Re: [PATCH] MMC: au1xmmc R6 response support

2007-01-23 Thread Pierre Ossman
Manuel Lauss wrote: > Hi, > > here's a trivial patch which adds R6 reponse support to the au1xmmc > driver. Fixes SD card detection / operation. > NAK. MMC_RSP_R1 and MMC_RSP_R6 have the same value so this will break the switch. Rgds -- -- Pierre Ossman Linux kernel, MMC maintainer

[PATCH 2.6.20-rc5 07/12] md: move raid5 parity checks to raid5_run_ops

2007-01-23 Thread Dan Williams
From: Dan Williams <[EMAIL PROTECTED]> handle_stripe sets STRIPE_OP_CHECK to request a check operation in raid5_run_ops. If raid5_run_ops is able to perform the check with a dma engine the parity will be preserved in memory removing the need to re-read it from disk, as is necessary in the

[PATCH 2.6.20-rc5 04/12] md: use raid5_run_ops for stripe cache operations

2007-01-23 Thread Dan Williams
From: Dan Williams <[EMAIL PROTECTED]> Each stripe has three flag variables to reflect the state of operations (pending, ack, and complete). -pending: set to request servicing in raid5_run_ops -ack: set to reflect that raid5_runs_ops has seen this request -complete: set when the operation is

[PATCH 2.6.20-rc5 08/12] md: satisfy raid5 read requests via raid5_run_ops

2007-01-23 Thread Dan Williams
From: Dan Williams <[EMAIL PROTECTED]> Use raid5_run_ops to carry out the memory copies for a raid5 read request. Signed-off-by: Dan Williams <[EMAIL PROTECTED]> --- drivers/md/raid5.c | 40 +++- 1 files changed, 15 insertions(+), 25 deletions(-) diff

[PATCH 2.6.20-rc5 11/12] md: remove raid5 compute_block and compute_parity5

2007-01-23 Thread Dan Williams
From: Dan Williams <[EMAIL PROTECTED]> replaced by raid5_run_ops Signed-off-by: Dan Williams <[EMAIL PROTECTED]> --- drivers/md/raid5.c | 124 1 files changed, 0 insertions(+), 124 deletions(-) diff --git a/drivers/md/raid5.c

[PATCH 2.6.20-rc5 12/12] dmaengine: driver for the iop32x, iop33x, and iop13xx raid engines

2007-01-23 Thread Dan Williams
From: Dan Williams <[EMAIL PROTECTED]> This is a driver for the iop DMA/AAU/ADMA units which are capable of pq_xor, pq_update, pq_zero_sum, xor, dual_xor, xor_zero_sum, fill, copy+crc, and copy operations. Changelog: * fixed a slot allocation bug in do_iop13xx_adma_xor that caused too few slots

[PATCH 2.6.20-rc5 09/12] md: use async_tx and raid5_run_ops for raid5 expansion operations

2007-01-23 Thread Dan Williams
From: Dan Williams <[EMAIL PROTECTED]> The parity calculation for an expansion operation is the same as the calculation performed at the end of a write with the caveat that all blocks in the stripe are scheduled to be written. An expansion operation is identified as a stripe with the POSTXOR

[PATCH 2.6.20-rc5 10/12] md: move raid5 io requests to raid5_run_ops

2007-01-23 Thread Dan Williams
From: Dan Williams <[EMAIL PROTECTED]> handle_stripe now only updates the state of stripes. All execution of operations is moved to raid5_run_ops. Signed-off-by: Dan Williams <[EMAIL PROTECTED]> --- drivers/md/raid5.c | 68 1 files

[PATCH 2.6.20-rc5 03/12] md: add raid5_run_ops and support routines

2007-01-23 Thread Dan Williams
From: Dan Williams <[EMAIL PROTECTED]> Prepare the raid5 implementation to use async_tx for running stripe operations: * biofill (copy data into request buffers to satisfy a read request) * compute block (generate a missing block in the cache from the other blocks) * prexor (subtract existing

[PATCH 2.6.20-rc5 06/12] md: move raid5 compute block operations to raid5_run_ops

2007-01-23 Thread Dan Williams
From: Dan Williams <[EMAIL PROTECTED]> handle_stripe sets STRIPE_OP_COMPUTE_BLK to request servicing from raid5_run_ops. It also sets a flag for the block being computed to let other parts of handle_stripe submit dependent operations. raid5_run_ops guarantees that the compute operation

[PATCH 2.6.20-rc5 05/12] md: move write operations to raid5_run_ops

2007-01-23 Thread Dan Williams
From: Dan Williams <[EMAIL PROTECTED]> handle_stripe sets STRIPE_OP_PREXOR, STRIPE_OP_BIODRAIN, STRIPE_OP_POSTXOR to request a write to the stripe cache. raid5_run_ops is triggerred to run and executes the request outside the stripe lock. Signed-off-by: Dan Williams <[EMAIL PROTECTED]> ---

[PATCH 2.6.20-rc5 02/12] dmaengine: add the async_tx api

2007-01-23 Thread Dan Williams
From: Dan Williams <[EMAIL PROTECTED]> async_tx is an api to describe a series of bulk memory transfers/transforms. When possible these transactions are carried out by asynchrounous dma engines. The api handles inter-transaction dependencies and hides dma channel management from the client.

[PATCH 2.6.20-rc5 01/12] dmaengine: add base support for the async_tx api

2007-01-23 Thread Dan Williams
From: Dan Williams <[EMAIL PROTECTED]> * introduce struct dma_async_tx_descriptor as a common field for all dmaengine software descriptors * convert the device_memcpy_* methods into separate prep, set src/dest, and submit stages * support capabilities beyond memcpy (xor, memset, xor zero sum,

Re: [ANNOUNCE] System Inactivity Monitor v1.0

2007-01-23 Thread Pavel Machek
Hi! >>But I still believe it can be out. >> >> Do you believe it could be a user-space daemon or what? > >Yes, what prevents userspace daemon watching /dev/input/event* to >provide this functionality? > > Well that was my first attempt. Just an hack, but it works.

Is it possible to directly call do_path_lookup() in kernel?

2007-01-23 Thread Xin Zhao
Hi, I tried to call the following code in a kernel module: error = do_path_lookup(AT_FDCWD, "/etc/profile.d/glib2.csh", LOOKUP_PARENT, ); I exported the function do_path_lookup() using "EXPORT_SYMBOL_GPL(do_path_lookup);" But do_path_lookup() caused the "general protection fault:

[PATCH] mxser: remove useless fields

2007-01-23 Thread Cedric Le Goater
the session and pgrp fields in mxser_struct are unused. Signed-off-by: Cedric Le Goater <[EMAIL PROTECTED]> --- drivers/char/mxser.c |7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) Index: 2.6.20-rc4-mm1/drivers/char/mxser.c

Re: [Alsa-devel] [2.6 patch] echo3g_dsp.c shouldn't include #include

2007-01-23 Thread Takashi Iwai
At Tue, 23 Jan 2007 16:17:56 +0100, Adrian Bunk wrote: > > Despite being under linux/, linux/irq.h shouldn't be #include'd by arch > independent code. > > Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> Thanks, I applied to ALSA tree now. Takashi - To unsubscribe from this list: send the line

Re: 2.6.20-rc3-mm1: umount reiser4 FS stuck in D state

2007-01-23 Thread Laurent Riffard
Le 23.01.2007 16:46, Jens Axboe a écrit : On Tue, Jan 23 2007, Vladimir V. Saveliev wrote: Hello On Saturday 13 January 2007 01:56, Laurent Riffard wrote: Le 06.01.2007 19:58, Vladimir V. Saveliev a écrit : Hello On Saturday 06 January 2007 13:58, Laurent Riffard wrote: Hello, got this

[PATCH] correct sys_shmget allocation check

2007-01-23 Thread Guy Streeter
As written, sys_shmget will return ENOSPC when one page is still available for allocation. This patch corrects the test. Signed-off-by: Guy Streeter <[EMAIL PROTECTED]> -- Index: linux-2.6/ipc/shm.c === ---

Re: linux-2.6.20-rc4-mm1 Reiser4 filesystem freeze and corruption

2007-01-23 Thread Vladimir V. Saveliev
Hello On Tuesday 23 January 2007 10:38, Vince wrote: > Zan Lynx wrote: > > I have been running 2.6.20-rc2-mm1 without problems, but both rc3-mm1 > > and rc4-mm1 have been giving me these freezes. They were happening > > inside X and without external console it was impossible to get anything, > >

Re: [Ksummit-2006-discuss] 2007 Linux Kernel Summit

2007-01-23 Thread David Miller
From: Alan Cox <[EMAIL PROTECTED]> Date: Mon, 22 Jan 2007 07:45:02 -0500 > On Mon, Jan 22, 2007 at 12:07:11PM +0100, Christoph Hellwig wrote: > > > process. This year, the Kernel Summit will be held in Cambridge, > > > England, at the DeVere University Arms Hotel, September 5-6 (with a > > >

[PATCH] videobuf_qbuf: fix? possible videobuf_queue->stream corruption and lockup

2007-01-23 Thread Oleg Nesterov
I am pretty sure the bug is real, but the patch may be wrong, please review. We are doing ->buf_prepare(buf) before adding buf to q->stream list. This means that videobuf_qbuf() should not try to re-add a STATE_PREPARED buffer. Signed-off-by: Oleg Nesterov <[EMAIL PROTECTED]> ---

Re: SATA problems

2007-01-23 Thread Pablo Sebastian Greco
Tejun Heo wrote: Hello, Pablo. Please apply common hardware debugging method. You know, swap drives. Use separate power supply for disks, swap cables, etc... It seems more like a hardware problem at this point. Thanks. Well, it took me a few days, but I think I'm ready to report back.

Re: [Proposal] 2.6.18-stable release plans?

2007-01-23 Thread Stefan Richter
Sunil Naidu wrote: > I have to dig deep into the patch & kernel version to understand what > are the features/implementations or fixes (patch). Problem here is 2 > ways:- > > 1) Identifying which is a better kernel (features) for > Desktop/Embedded/Server (I know, info mentioned in Changelog.

[PATCH] [RESEND] return ENOENT from ext3_link when racing with unlink

2007-01-23 Thread Eric Sandeen
(resend now that LCA is done) An update from the earlier thread, [PATCH] [RFC] remove ext3 inode from orphan list when link and unlink race I think this is better than the original idea of trying to handle the race; I've seen that the orphan inode list can get corrupted, but there may well be

Re: [ANNOUNCE] System Inactivity Monitor v1.0

2007-01-23 Thread Alessandro Di Marco
Pavel Machek <[EMAIL PROTECTED]> writes: >But I still believe it can be out. > > Do you believe it could be a user-space daemon or what? Yes, what prevents userspace daemon watching /dev/input/event* to provide this functionality? Well that was my first attempt. Just an hack,

Re: [PATCH] mv643xx_eth: Fix race condition in mv643xx_eth_free_tx_descs

2007-01-23 Thread Thibaut VARENE
On 1/23/07, Dale Farnsworth <[EMAIL PROTECTED]> wrote: From Dale Farnsworth <[EMAIL PROTECTED]> mv643xx_eth: Fix race condition in mv643xx_eth_free_tx_descs This bug was found and isolated by Thibaut VARENE <[EMAIL PROTECTED]> and Jarek Poplawski <[EMAIL PROTECTED]>. This patch is a

[PATCH] mv643xx_eth: Fix race condition in mv643xx_eth_free_tx_descs

2007-01-23 Thread Dale Farnsworth
>From Dale Farnsworth <[EMAIL PROTECTED]> mv643xx_eth: Fix race condition in mv643xx_eth_free_tx_descs This bug was found and isolated by Thibaut VARENE <[EMAIL PROTECTED]> and Jarek Poplawski <[EMAIL PROTECTED]>. This patch is a modification of their fixes. We acquire and release the lock for

SAS1068 PCI-X Fusion-MPT SAS 1000:0055

2007-01-23 Thread areq
Hi I have new NEC server with SAS1068 PCI-X Fusion-MPT SAS pciid: 1000:0055 mptsas form 2.6.20-rc5 don't recognize it ;( I see that driver support only 1000:0054 and 1000:0058 devices. ./drivers/message/fusion/mptsas.c: { PCI_VENDOR_ID_LSI_LOGIC, MPI_MANUFACTPAGE_DEVID_SAS1068,

LSISAS1068 controller reset (mptsas driver)

2007-01-23 Thread Emiliano Gabrielli (aka AlberT)
Hi, I'm not subscribed to the list .. so plz CC: to me on answer I'm having some problems with the LSISAS1068 controller (on a Dell PowerEdge 860 havind 2 SAS HD in HW raid 1)... dmesg gives a number of the following errors: sd 0:8:0:0: command: cdb[0]=0x2a: 2a 00 04 29 49 14 00 00

Re: [PATCH 0/4] atl1: Attansic L1 ethernet driver

2007-01-23 Thread Jay Cliburn
Jeff Garzik wrote: OK, I have merged the monolithic patch into jgarzik/netdev-2.6.git#atl1. Once I'm done merging patches tonight, I will merge this new 'atl1' branch into the 'ALL' meta-branch, which will auto-propagate this driver into Andrew Morton's -mm for testing. For future driver

Re: [ANNOUNCE] System Inactivity Monitor v1.0

2007-01-23 Thread Pavel Machek
Hi1 >>> +if [ ! -d "/proc/sin" ]; then >>> +echo "/proc/sin not found, has sinmod been loaded?" >>> +exit >>> +fi >> >>No new /proc files, please. >> >> This was merely a prototype realized in a hurry, not a production >> driver.

[PATCH RFC] hwmon/f71805f: Fix a race condition

2007-01-23 Thread Jean Delvare
Hi all, I think I introduced a potential race condition bug with commit 51c997d80e1f625aea3426a8a9087f5830ac6db3. I didn't realize it back then, but platform_device_put and platform_device_release both appear to free the platform data associated with the device. This makes an explicit kfree

[PATCH 3/3] replacement patch for pipefs and sockfs

2007-01-23 Thread Jeff Layton
Hi Andrew, I sent a set of 3 patches to you a week or so ago. This patch is a replacement for the third one in the set. Either one will work, but I think this is a better approach. The main differences here are: 1) pipefs declares its drop_inode function to be generic_delete_inode, which

Re: [PATCH 2.6.20-rc5] SPI: alternative fix for spi_busnum_to_master

2007-01-23 Thread Atsushi Nemoto
On Tue, 23 Jan 2007 07:42:15 -0800, David Brownell <[EMAIL PROTECTED]> wrote: > > Indeed the check can be omitted. Should I send a new patch just > > moving class_device_get() into "if (master->bus_num == bus_num)" > > block? > > Yes, please. OK, here is. This patch uses spi_master_get()

Re: 2.6.20-rc3-mm1: umount reiser4 FS stuck in D state

2007-01-23 Thread Jens Axboe
On Tue, Jan 23 2007, Vladimir V. Saveliev wrote: > Hello > > On Saturday 13 January 2007 01:56, Laurent Riffard wrote: > > Le 06.01.2007 19:58, Vladimir V. Saveliev a écrit : > > > Hello > > > > > > On Saturday 06 January 2007 13:58, Laurent Riffard wrote: > > >> Hello, > > >> > > >> got this

Re: [PATCH 2.6.20-rc5] SPI: alternative fix for spi_busnum_to_master

2007-01-23 Thread David Brownell
On Monday 22 January 2007 5:10 pm, Atsushi Nemoto wrote: > On Mon, 22 Jan 2007 14:12:02 -0800, David Brownell <[EMAIL PROTECTED]> wrote: > > > Here is a revised version. The children list of spi_master_class > > > contains only spi_master class so we can just compare bus_num member > > > instead

Re: Could convert a buffer that allocated by vmalloc to pages?

2007-01-23 Thread Kyle McMartin
On Tue, Jan 23, 2007 at 10:15:33PM +0800, Yu-Chen Wu wrote: > printk(KERN_INFO "vmalloc_to_page tpage :%x\n",tpage); > //===info of dmesg== > [ 1561.768492] page allocated:60ea9000 > [ 1561.768497] vmalloc_to_page tpage :7fcf7e18 > > Why the page address get from

Re: 2.6.20-rc3-mm1: umount reiser4 FS stuck in D state

2007-01-23 Thread Vladimir V. Saveliev
Hello On Saturday 13 January 2007 01:56, Laurent Riffard wrote: > Le 06.01.2007 19:58, Vladimir V. Saveliev a écrit : > > Hello > > > > On Saturday 06 January 2007 13:58, Laurent Riffard wrote: > >> Hello, > >> > >> got this with 2.6.20-rc3-mm1: > >> > >> === > >> SysRq :

RE: Could convert a buffer that allocated by vmalloc to pages?

2007-01-23 Thread Yu-Chen Wu
Hi Anton, All of the code as below: //== extern struct vm_struct *vmlist; struct vm_struct *vmlist2,*L2vm; int find_vm_struct(void *addr) { struct vm_struct **p; int i; struct page *pg;

Re: SATA exceptions with 2.6.20-rc5

2007-01-23 Thread Larry Walton
The last patch (sata_nv-force-int-dev-in-interrupt.patch) seems to have fix the problem. Much appreciated, thank you. I'd consider it a must have in 2.6.20. -- *--* Mail: [EMAIL PROTECTED] *--* Voice: 206.892.6269 *--* Cell: 206.225.0154 *--* HTTP://real.com

Re: [PATCH] Undo some of the pseudo-security madness

2007-01-23 Thread Alan
> SBCL is the most actively developed open source Common Lisp implementation, > which has an optimising native compiler built in, so it is not an interpreter, > and is, most certainly, not crappy. If it requires MAP_FIXED I would beg to disagree. > 1. cannot serve as a vehicle for exploitation

Re: [RFC 1/6] bidi support: request dma_data_direction

2007-01-23 Thread Benny Halevy
Muli Ben-Yehuda wrote: > On Tue, Jan 23, 2007 at 03:45:00PM +0200, Benny Halevy wrote: > +static inline int dma_uni_dir(enum dma_data_direction dir) +{ + return (dir == DMA_TO_DEVICE) || (dir == DMA_FROM_DEVICE) || + (dir == DMA_NONE); +} >>> While this doesn't

[2.6 patch] echo3g_dsp.c shouldn't include #include

2007-01-23 Thread Adrian Bunk
Despite being under linux/, linux/irq.h shouldn't be #include'd by arch independent code. Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> --- linux-2.6.20-rc4-mm1/sound/pci/echoaudio/echo3g_dsp.c.old 2007-01-23 15:16:37.0 +0100 +++ linux-2.6.20-rc4-mm1/sound/pci/echoaudio/echo3g_dsp.c

Re: Suspend to RAM generates oops and general protection fault

2007-01-23 Thread Jean-Marc Valin
Luming Yu a écrit : > what about removing psmouse module? Trying that now. Any particular reason you suspect that one? Jean-Marc > On 1/23/07, Jean-Marc Valin <[EMAIL PROTECTED]> wrote: >> >>> will be a device driver. Common causes of suspend/resume problems >> from >> >>> the list you

Re: Why active list and inactive list?

2007-01-23 Thread Rik van Riel
Peter Zijlstra wrote: On Mon, 2007-01-22 at 18:03 -0800, Christoph Lameter wrote: What happened to all those advanced page replacement endeavors? They are here: http://programming.kicks-ass.net/kernel-patches/page-replace/2.6.19-pr1/ I should update to .20 soonish. What is the most

Re: [patch] notifiers: fix blocking_notifier_call_chain() scalability

2007-01-23 Thread Nick Piggin
Peter Zijlstra wrote: On Tue, 2007-01-23 at 10:45 +0100, Ingo Molnar wrote: The fix is to enhance blocking_notifier_call_chain() to only take the lock if there appears to be work on the call-chain. With this patch applied i get nicely saturated system, and much higher munmap performance,

[GIT PULL] please pull infiniband.git

2007-01-23 Thread Roland Dreier
Linus, please pull from master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband.git for-linus This tree is also available from kernel.org mirrors at: git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband.git for-linus This will pick up three small fixes: Hoang-Nam

Re: Suspend to RAM generates oops and general protection fault

2007-01-23 Thread Luming Yu
On 1/23/07, Jean-Marc Valin <[EMAIL PROTECTED]> wrote: Luming Yu a écrit : > what about removing psmouse module? Trying that now. Any particular reason you suspect that one? I suspect it is due to broken modules. If not psmouse, please trying a boot with minimal modules loaded, and re-test .

Re: [PATCH 13/15] ide: fix UDMA/MWDMA/SWDMA masks

2007-01-23 Thread Sergei Shtylyov
Hello. Alan wrote: Ugh, I'm not seeing any *actual* support for MW/SW DMA in this driver... Thats long been broken. Should be correct in the libata driver Here's a surprise for you. pata_cmd64x copied the SW/MW DMA setup code from the IDE driver. No way it could be working. You may

RE: Could convert a buffer that allocated by vmalloc to pages?

2007-01-23 Thread Anton Altaparmakov
On Tue, 23 Jan 2007, Yu-Chen Wu wrote: > I tried vmalloc_to_page() and I have some question. > I print the "pages" in vm_struct structure of the buffer to compare the > address get from vmalloc_to_page(), result as follows: Both the code you are showing and your question do not make any sense to

[ANNOUNCE] kvm-12 release

2007-01-23 Thread Avi Kivity
Perhaps the most visible change is that -no-acpi is no longer required to install Windows (it is still recommended as the Windows ACPI HAL will eat a lot of cpu time). Changes from kvm-11: - More migration work (Uri Lublin) - savevm/loadvm (and migration) work on AMD (Leonard Norrgard) - More

Re: i965 testers wanted (Re: intel-agp PM experiences)

2007-01-23 Thread Sunil Naidu
On 1/23/07, Pavel Machek <[EMAIL PROTECTED]> wrote: > I've post a patch which trys to resolve pci config restore issue, see > http://lkml.org/lkml/2007/1/16/297. It resolves s3 issue with my 965G machine, > that my X can come back to live after s3, but I wasn't aware of the issues Andreas > has

[PATCH 3/3] Char: mxser_new, fix sparse warning

2007-01-23 Thread Jiri Slaby
mxser_new, fix sparse warning Feed NULL instead of 0 where pointer is expected. Signed-off-by: Jiri Slaby <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> --- commit e87e9f65c3ac51d447cfe435217032a07f7a56e0 tree fbb8597542ed5919d3fae6b9ab45865e0659e922 parent 76b3ee2d5737395df62553cec1b8193252476147

[PATCH 2/3] Char: mxser_new, lock count and flags

2007-01-23 Thread Jiri Slaby
mxser_new, lock count and flags Both open count and INITIALIZED flag should be changed under lock. Signed-off-by: Jiri Slaby <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> --- commit 76b3ee2d5737395df62553cec1b8193252476147 tree dfc50c164ddde6b73a954f694dfdcb98ed921629 parent

[PATCH 1/3] Char: mxser_new, do not null driver_data

2007-01-23 Thread Jiri Slaby
mxser_new, do not null driver_data driver_data are initialzed to NULL from tty layer, no need to do it in the driver. In this case it cases oops, since driver_data may be NULL for a short while for another closing process. Signed-off-by: Jiri Slaby <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>

Re: [RFC 1/6] bidi support: request dma_data_direction

2007-01-23 Thread Muli Ben-Yehuda
On Tue, Jan 23, 2007 at 03:45:00PM +0200, Benny Halevy wrote: > >> +static inline int dma_uni_dir(enum dma_data_direction dir) > >> +{ > >> + return (dir == DMA_TO_DEVICE) || (dir == DMA_FROM_DEVICE) || > >> + (dir == DMA_NONE); > >> +} > > > > While this doesn't look very useful. Why

Re: [RFC][PATCH 6/6] automatic tuning applied to some kernel components

2007-01-23 Thread Nadia Derbey
Andrew Morton wrote: On Tue, 16 Jan 2007 07:15:22 +0100 [EMAIL PROTECTED] wrote: The following kernel components register a tunable structure and call the auto-tuning routine: . file system . shared memory (per namespace) . semaphore (per namespace) . message queues (per namespace) This

[PATCH 5/5] KVM: SVM: Propagate cpu shutdown events to userspace

2007-01-23 Thread Avi Kivity
From: Joerg Roedel <[EMAIL PROTECTED]> This patch implements forwarding of SHUTDOWN intercepts from the guest on to userspace on AMD SVM. A SHUTDOWN event occurs when the guest produces a triple fault (e.g. on reboot). This also fixes the bug that a guest reboot actually causes a host reboot

[PATCH 3/5] KVM: MMU: Perform access checks in walk_addr()

2007-01-23 Thread Avi Kivity
Check pte permission bits in walk_addr(), instead of scattering the checks all over the code. This has the following benefits: 1. We no longer set the accessed bit for accessed which fail permission checks. 2. Setting the accessed bit is simplified. 3. Under some circumstances, we used to

[PATCH 4/5] KVM: MMU: Report nx faults to the guest

2007-01-23 Thread Avi Kivity
Rith the recent guest page fault change, we perform access checks on our own instead of relying on the cpu. This means we have to perform the nx checks as well. Software like the google toolbar on windows appears to rely on this somehow. Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> Index:

[PATCH 2/5] KVM: Emulate IA32_MISC_ENABLE msr

2007-01-23 Thread Avi Kivity
This allows netbsd 3.1 i386 to get further along installing. Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> Index: linux-2.6/drivers/kvm/kvm_main.c === --- linux-2.6.orig/drivers/kvm/kvm_main.c +++ linux-2.6/drivers/kvm/kvm_main.c @@

[PATCH 1/5] KVM: SVM: Fix SVM idt confusion

2007-01-23 Thread Avi Kivity
From: Leonard Norrgard <[EMAIL PROTECTED]> There's an obvious typo in svm_{get,set}_idt, causing it to access the ldt instead. Because these functions are only called for save/load on AMD, the bug does not impact normal operation. With the fix, save/load works as expected on AMD hosts.

[PATCH 0/5] KVM fixes for 2.6.20

2007-01-23 Thread Avi Kivity
The following series of patches fixes several kvm problems. I believe they are important and well-tested enough to be included in 2.6.20, especially the host reboot fix on AMD machines. -- error compiling committee.c: too many arguments to function - To unsubscribe from this list: send the

Re: change strip_cache_size freeze the whole raid

2007-01-23 Thread kyle
I can try and do this later this week possibly. Justin. alt-sysrq-T or "echo t > /proc/sysrq-trigger" can be really helpful to diagnose this sort of problem (providing the system isn't so badly stuck that the kernel logs don't get stored). It is probably hitting a memory-allocation

Re: revert "Fix up" of mmap_kmem

2007-01-23 Thread Franck Bui-Huu
On 1/22/07, Hugh Dickins <[EMAIL PROTECTED]> wrote: Please revert 2.6.19's 99a10a60ba9bedcf5d70ef81414d3e03816afa3f (shown below) for 2.6.20. Nadia Derbey has reported that mmap of /dev/kmem no longer works with the kernel virtual address as offset, and Franck has confirmed that his patch came

Re: [ANNOUNCE] System Inactivity Monitor v1.0

2007-01-23 Thread Alessandro Di Marco
Pavel Machek <[EMAIL PROTECTED]> writes: Hi! >> +if [ ! -d "/proc/sin" ]; then >> +echo "/proc/sin not found, has sinmod been loaded?" >> +exit >> +fi > >No new /proc files, please. > > This was merely a prototype realized in a hurry, not a

RE: Could convert a buffer that allocated by vmalloc to pages?

2007-01-23 Thread Yu-Chen Wu
Hi Anton, Thanks for r your answer. I tried vmalloc_to_page() and I have some question. I print the "pages" in vm_struct structure of the buffer to compare the address get from vmalloc_to_page(), result as follows: //===source code L2cache=vmalloc(L2SIZE);// L2SIZE=40960

Re: [PATCH] Undo some of the pseudo-security madness

2007-01-23 Thread Samium Gromoff
At Tue, 23 Jan 2007 08:48:07 +, Pavel Machek wrote: > > Are you saying that the usefulness of AS randomisation is > > overall exceeding that of MAP_FIXED, and the latter should be > > abolished? > > MAP_FIXED still works. You just have to be more careful where you map. No amount of

Re: configfs: return value for drop_item()/make_item()?

2007-01-23 Thread Michael Noisternig
If you argue that they are in fact created by the user because they are a direct result of a user action, then I can apply the same argument to this one example: ... This is precisely what configfs is designed to forbid. The kernel does not, ever, create configfs objects on its own. It does it

Re: [RFC 1/6] bidi support: request dma_data_direction

2007-01-23 Thread Benny Halevy
Douglas Gilbert wrote: > Benny Halevy wrote: >> Douglas Gilbert wrote: > > Perhaps the right use of DMA_BIRECTIONAL needs to be > defined. > > Could it be used with a XDWRITE(10) SCSI command > defined in sbc3r07.pdf at http://www.t10.org ? I suspect > using two scatter gather lists would be a

Re: Kernel 2.6.19.2 New RAID 5 Bug (oops when writing Samba -> RAID5)

2007-01-23 Thread Justin Piszcz
On Tue, 23 Jan 2007, Michael Tokarev wrote: > Justin Piszcz wrote: > > > > On Tue, 23 Jan 2007, Michael Tokarev wrote: > > > >> Disabling pre-emption on critical and/or server machines seems to be a good > >> idea in the first place. IMHO anyway.. ;) > > > > So bottom line is make sure not

Re: [RFC 1/6] bidi support: request dma_data_direction

2007-01-23 Thread Benny Halevy
Muli Ben-Yehuda wrote: > On Mon, Jan 22, 2007 at 01:21:28AM +0200, Boaz Harrosh wrote: > >> - Introduce a new enum dma_data_direction data_dir member in struct request. >> and remove the RW bit from request->cmd_flag > > Some architecture use 'enum dma_data_direction' and some 'int >

Re: [PATCH 04/12] clocksource: avr32 initialize list value

2007-01-23 Thread Haavard Skinnemoen
On Tue, 23 Jan 2007 05:02:49 -0800 Daniel Walker <[EMAIL PROTECTED]> wrote: > On Tue, 2007-01-23 at 13:42 +0100, Haavard Skinnemoen wrote: > > On 1/23/07, Daniel Walker <[EMAIL PROTECTED]> wrote: > > > Update arch/avre32/ with list initialization. > > > > > > Signed-Off-By: Daniel Walker <[EMAIL

Re: [Proposal] 2.6.18-stable release plans?

2007-01-23 Thread Sunil Naidu
On 1/23/07, Jesper Juhl <[EMAIL PROTECTED]> wrote: Now that 2.6.19 is out, most likely not. -stable releases are made for the latest stable 2.6.x kernel, once 2.6.x+1 is out that's the one -stable patches are made for (2.6.16 is an exception).. Earlier I was going through the stable paches

Re: [PATCH]: MTRR: fix 32-bit ioctls on x64_32

2007-01-23 Thread Giuliano Procida
On 17/01/07, H. Peter Anvin <[EMAIL PROTECTED]> wrote: Adding a case can add substantially to the generated code, especially if it makes a compact set of case labels non-compact. Is this one any better? It certainly makes for a slimmer object. Compiled, but not yet tested. Caveat patcher.

Re: [uml-devel] [PATCH] [UML] fix mknod

2007-01-23 Thread Johannes Stezenbach
On Tue, Jan 23, 2007 at 09:02:30AM +0100, Blaisorblade wrote: > On Monday 22 January 2007 21:13, Johannes Stezenbach wrote: > > > > I was playing with user-mode Linux and found that mknod creates > > devices node in hostfs with wrong major/minor numbers. > > The patch below fixes it for me. > >

Re: [RFC 3/6] bidi support: bidirectional request

2007-01-23 Thread Benny Halevy
James Bottomley wrote: > On Mon, 2007-01-22 at 01:25 +0200, Boaz Harrosh wrote: >> - Instantiate another request_io_part in request for bidi_read. >> - Define & Implement new API for accessing bidi parts. >> - API to Build bidi requests and map to sglists. >> - Define new end_that_request_block()

Re: PROBLEM: KB->KiB, MB -> MiB, ... (IEC 60027-2)

2007-01-23 Thread Krzysztof Halasa
Andreas Schwab <[EMAIL PROTECTED]> writes: > The exact number of sectors is often printend on the label. Sure, I'd even say "almost always" for recent disks. Still, they count in GBs, not sectors. OTOH it would be great if they say "xxx,xxx,xxx 512-byte sectors", and maybe "approx. X GB". --

Re: Could convert a buffer that allocated by vmalloc to pages?

2007-01-23 Thread Anton Altaparmakov
On Tue, 2007-01-23 at 21:04 +0800, Yu-Chen Wu wrote: > Hi, > I write a driver have a big buffer (16MB,allocated by vmalloc). > I want to use the buffer to do DMA transmission so I need getting the pages > of the buffer. > Have any kernel API can do this? > My platform is x86_64 and 2GB RAM

Re: SATA hotplug from the user side ?

2007-01-23 Thread Henrique de Moraes Holschuh
On Tue, 23 Jan 2007, Tejun Heo wrote: > Henrique de Moraes Holschuh wrote: > > Does SATA electrical conector keying let the disk firmware unload > > heads before the user manages to pull it out enough to sever power? > > I don't think so. Heh, thought as much. (Good) SCSI hotswap bays notice you

Re: [PATCH] KVM: propagate SHUTDOWN intercept to userspace on SVM

2007-01-23 Thread Avi Kivity
Joerg Roedel wrote: This patch implements forwarding of SHUTDOWN intercepts from the guest on to userspace on AMD SVM. A SHUTDOWN event occurs when the guest produces a triple fault (e.g. on reboot). This also fixes the bug that a guest reboot actually causes a host reboot under some

Re: [PATCH 04/12] clocksource: avr32 initialize list value

2007-01-23 Thread Daniel Walker
On Tue, 2007-01-23 at 13:42 +0100, Haavard Skinnemoen wrote: > On 1/23/07, Daniel Walker <[EMAIL PROTECTED]> wrote: > > Update arch/avre32/ with list initialization. > > > > Signed-Off-By: Daniel Walker <[EMAIL PROTECTED]> > > Looks good to me, although I suppose it wouldn't hurt to include > as

Could convert a buffer that allocated by vmalloc to pages?

2007-01-23 Thread Yu-Chen Wu
Hi, I write a driver have a big buffer (16MB,allocated by vmalloc). I want to use the buffer to do DMA transmission so I need getting the pages of the buffer. Have any kernel API can do this? My platform is x86_64 and 2GB RAM THX - To unsubscribe from this list: send the line "unsubscribe

Re: How to use an usb interface than is claimed by HID?

2007-01-23 Thread Rolf Offermanns
Ivan Ukhov wrote: >> .. which wouldn't help you either, supposing that you don't want to touch >> the kernel sources at all, because this function is unexported and >> static. >> >> So I think that there is no straightforward way, sorry. >> >> Is this a device that doesn't exist anywhere else

[PATCH] KVM: propagate SHUTDOWN intercept to userspace on SVM

2007-01-23 Thread Joerg Roedel
This patch implements forwarding of SHUTDOWN intercepts from the guest on to userspace on AMD SVM. A SHUTDOWN event occurs when the guest produces a triple fault (e.g. on reboot). This also fixes the bug that a guest reboot actually causes a host reboot under some circumstances. Signed-off-by:

Re: Kernel 2.6.19.2 New RAID 5 Bug (oops when writing Samba -> RAID5)

2007-01-23 Thread Michael Tokarev
Justin Piszcz wrote: > > On Tue, 23 Jan 2007, Michael Tokarev wrote: > >> Disabling pre-emption on critical and/or server machines seems to be a good >> idea in the first place. IMHO anyway.. ;) > > So bottom line is make sure not to use preemption on servers or else you > will get weird

Re: [patch 03/26] Dynamic kernel command-line - arm

2007-01-23 Thread Russell King
On Tue, Jan 23, 2007 at 01:59:14PM +0200, Alon Bar-Lev wrote: > On 1/23/07, Russell King <[EMAIL PROTECTED]> wrote: > >> Rossell, I am confused. > >> There are many places in kernel where there is static __initdata > >> without initialization. Should all these be corrected too? Or your > >>

Re: [PATCH 04/12] clocksource: avr32 initialize list value

2007-01-23 Thread Haavard Skinnemoen
On 1/23/07, Daniel Walker <[EMAIL PROTECTED]> wrote: Update arch/avre32/ with list initialization. Signed-Off-By: Daniel Walker <[EMAIL PROTECTED]> Looks good to me, although I suppose it wouldn't hurt to include as well since there seems to be an ongoing effort to reduce the number of files

[PATCH] agpgart: Allow drm-populated agp memory types

2007-01-23 Thread thomas
From: Thomas Hellstrom <[EMAIL PROTECTED]> This patch allows drm to populate an agpgart structure with pages of its own. It's needed for the new drm memory manager which dynamically flips pages in and out of AGP. The patch modifies the generic functions as well as the intel agp driver. The

Re: 2.6.19.2 sky2/acpi crashes

2007-01-23 Thread Lionel Landwerlin
Le mardi 23 janvier 2007 à 17:22 +0800, Luming Yu a écrit : > Please try to remove processor module. Ok, that's done. Same problem. Just to show you I did not forget to remove processor.ko from initrd image, I tried to load speedstep_centrino : Jan 23 13:09:58 cocoduo kernel: [ 105.697279]

[PATCH] fix prototype of csum_ipv6_magic() (ia64)

2007-01-23 Thread Al Viro
Signed-off-by: Al Viro <[EMAIL PROTECTED]> --- include/asm-ia64/checksum.h |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/asm-ia64/checksum.h b/include/asm-ia64/checksum.h index 2b78582..97af155 100644 --- a/include/asm-ia64/checksum.h +++

kernel panic when inserting usb isdn modem

2007-01-23 Thread Christian Weiske
Hello, I reproducably get a kernel panic when plugging in a usb isdn modem, Billion tiny USB ISDN TA 128). It is said to work with the hfc_usb isdn drivers in the kernel, so I compiled them into it. Kernel is 2.6.20-rc5, gcc 3.4.6 on a via epia 5000 board. Is there anything I can do? Shall I

[PATCH] s2io bogus memset

2007-01-23 Thread Al Viro
memset() after kmalloc() on size * 8 would better be on size * 8, not just size; fixed by switching to kcalloc() - it's more idiomatic anyway. Signed-off-by: Al Viro <[EMAIL PROTECTED]> --- diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c --- a/drivers/net/s2io.c +++ b/drivers/net/s2io.c @@

[PATCH] funsoft: ktermois fix

2007-01-23 Thread Al Viro
Signed-off-by: Al Viro <[EMAIL PROTECTED]> --- drivers/usb/serial/funsoft.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/usb/serial/funsoft.c b/drivers/usb/serial/funsoft.c index 31501c9..2bebd63 100644 --- a/drivers/usb/serial/funsoft.c +++

[PATCH] horizon.c: missing __devinit

2007-01-23 Thread Al Viro
Signed-off-by: Al Viro <[EMAIL PROTECTED]> --- drivers/atm/horizon.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/atm/horizon.c b/drivers/atm/horizon.c index 4dc1010..f96446c 100644 --- a/drivers/atm/horizon.c +++ b/drivers/atm/horizon.c @@ -1845,7 +1845,7 @@

<    1   2   3   4   5   6   7   >