Re: How to secure erase PCI-E NVME SSD connected via USB3?

2018-08-02 Thread Jeff Chua
On Thu, Aug 2, 2018 at 8:29 PM, Alan Cox wrote: >> # hdparm --user-master u --security-erase p /dev/sda >> (returns immediately and does nothing). >> >> I've tried hdparm on an SSD connected via USB3 and it secure-erased ok. >> >> Anyone working on this? > > Sounds to me like you need to contact

Re: How to secure erase PCI-E NVME SSD connected via USB3?

2018-08-02 Thread Jeff Chua
On Thu, Aug 2, 2018 at 8:29 PM, Alan Cox wrote: >> # hdparm --user-master u --security-erase p /dev/sda >> (returns immediately and does nothing). >> >> I've tried hdparm on an SSD connected via USB3 and it secure-erased ok. >> >> Anyone working on this? > > Sounds to me like you need to contact

Re: How to secure erase PCI-E NVME SSD connected via USB3?

2018-08-01 Thread Jeff Chua
On Wed, Aug 1, 2018 at 1:02 PM, Jeff Chua wrote: > On Tue, Jul 31, 2018 at 7:07 PM, Ming Lei wrote: >> On Sun, Jul 29, 2018 at 5:09 PM, Jeff Chua wrote: >>> I'm testing the USB3-to-PCI-E NVME SSD. It's works using uas module, >>> recognized it as /dev/sda. >&

Re: How to secure erase PCI-E NVME SSD connected via USB3?

2018-08-01 Thread Jeff Chua
On Wed, Aug 1, 2018 at 1:02 PM, Jeff Chua wrote: > On Tue, Jul 31, 2018 at 7:07 PM, Ming Lei wrote: >> On Sun, Jul 29, 2018 at 5:09 PM, Jeff Chua wrote: >>> I'm testing the USB3-to-PCI-E NVME SSD. It's works using uas module, >>> recognized it as /dev/sda. >&

Re: How to secure erase PCI-E NVME SSD connected via USB3?

2018-07-31 Thread Jeff Chua
On Tue, Jul 31, 2018 at 7:07 PM, Ming Lei wrote: > On Sun, Jul 29, 2018 at 5:09 PM, Jeff Chua wrote: >> I'm testing the USB3-to-PCI-E NVME SSD. It's works using uas module, >> recognized it as /dev/sda. >> >> Since it's an USB device, the nvme-cli tools won't work,

Re: How to secure erase PCI-E NVME SSD connected via USB3?

2018-07-31 Thread Jeff Chua
On Tue, Jul 31, 2018 at 7:07 PM, Ming Lei wrote: > On Sun, Jul 29, 2018 at 5:09 PM, Jeff Chua wrote: >> I'm testing the USB3-to-PCI-E NVME SSD. It's works using uas module, >> recognized it as /dev/sda. >> >> Since it's an USB device, the nvme-cli tools won't work,

How to secure erase PCI-E NVME SSD connected via USB3?

2018-07-29 Thread Jeff Chua
I'm testing the USB3-to-PCI-E NVME SSD. It's works using uas module, recognized it as /dev/sda. Since it's an USB device, the nvme-cli tools won't work, nor does hdparm, as it's a NVME SSD. So, how to secure-erase the NVME SSD connected via the JMS583 chip? Thanks, Jeff.

How to secure erase PCI-E NVME SSD connected via USB3?

2018-07-29 Thread Jeff Chua
I'm testing the USB3-to-PCI-E NVME SSD. It's works using uas module, recognized it as /dev/sda. Since it's an USB device, the nvme-cli tools won't work, nor does hdparm, as it's a NVME SSD. So, how to secure-erase the NVME SSD connected via the JMS583 chip? Thanks, Jeff.

Re: can't boot with reiserfs on linux-4.6.0+

2016-05-26 Thread Jeff Chua
On Thu, May 26, 2016 at 3:46 PM, Hillf Danton wrote: >> > See if this fixes your reproducer. >> > >> > diff --git a/fs/xattr.c b/fs/xattr.c >> > index b11945e..49b8eab 100644 >> > --- a/fs/xattr.c >> > +++ b/fs/xattr.c >> > @@ -667,6 +667,9 @@ xattr_resolve_name(const

Re: can't boot with reiserfs on linux-4.6.0+

2016-05-26 Thread Jeff Chua
On Thu, May 26, 2016 at 3:46 PM, Hillf Danton wrote: >> > See if this fixes your reproducer. >> > >> > diff --git a/fs/xattr.c b/fs/xattr.c >> > index b11945e..49b8eab 100644 >> > --- a/fs/xattr.c >> > +++ b/fs/xattr.c >> > @@ -667,6 +667,9 @@ xattr_resolve_name(const struct xattr_handler >> >

Re: can't boot with reiserfs on linux-4.6.0+

2016-05-26 Thread Jeff Chua
On Wed, May 25, 2016 at 11:51 PM, Al Viro <v...@zeniv.linux.org.uk> wrote: > On Wed, May 25, 2016 at 05:30:22PM +0800, Jeff Chua wrote: >> On Wed, May 25, 2016 at 2:37 AM, Al Viro <v...@zeniv.linux.org.uk> wrote: >> > On Tue, May 24, 2016 at 04:59:02PM +0100, Al Viro

Re: can't boot with reiserfs on linux-4.6.0+

2016-05-26 Thread Jeff Chua
On Wed, May 25, 2016 at 11:51 PM, Al Viro wrote: > On Wed, May 25, 2016 at 05:30:22PM +0800, Jeff Chua wrote: >> On Wed, May 25, 2016 at 2:37 AM, Al Viro wrote: >> > On Tue, May 24, 2016 at 04:59:02PM +0100, Al Viro wrote: >> > >> >> Umm... Any cha

Re: can't boot with reiserfs on linux-4.6.0+

2016-05-25 Thread Jeff Chua
On Wed, May 25, 2016 at 2:37 AM, Al Viro wrote: > On Tue, May 24, 2016 at 04:59:02PM +0100, Al Viro wrote: > >> Umm... Any chance of getting the function names to go with the addresses? >> I'll try to reproduce it here, but the things would be easier with that >>

Re: can't boot with reiserfs on linux-4.6.0+

2016-05-25 Thread Jeff Chua
On Wed, May 25, 2016 at 2:37 AM, Al Viro wrote: > On Tue, May 24, 2016 at 04:59:02PM +0100, Al Viro wrote: > >> Umm... Any chance of getting the function names to go with the addresses? >> I'll try to reproduce it here, but the things would be easier with that >> information... > > See if this

Re: can't boot with reiserfs on linux-4.6.0+

2016-05-25 Thread Jeff Chua
On Wed, May 25, 2016 at 12:10 AM, Linus Torvalds wrote: > On Tue, May 24, 2016 at 8:59 AM, Al Viro wrote: >> >> Umm... Any chance of getting the function names to go with the addresses? >> I'll try to reproduce it here, but the things

Re: can't boot with reiserfs on linux-4.6.0+

2016-05-25 Thread Jeff Chua
On Wed, May 25, 2016 at 12:10 AM, Linus Torvalds wrote: > On Tue, May 24, 2016 at 8:59 AM, Al Viro wrote: >> >> Umm... Any chance of getting the function names to go with the addresses? >> I'll try to reproduce it here, but the things would be easier with that >> information... > > Yeah, we

can't boot with reiserfs on linux-4.6.0+

2016-05-24 Thread Jeff Chua
Seems to break after index 348619f..d55dc5a 100644 Boot up with ext4 works, but try anything to access anything on the reiser partition such as "/mnt/bin/passwd" resulted in the following ... [ 93.380353] BUG: unable to handle kernel NULL pointer dereference at (null) [ 93.380924]

can't boot with reiserfs on linux-4.6.0+

2016-05-24 Thread Jeff Chua
Seems to break after index 348619f..d55dc5a 100644 Boot up with ext4 works, but try anything to access anything on the reiser partition such as "/mnt/bin/passwd" resulted in the following ... [ 93.380353] BUG: unable to handle kernel NULL pointer dereference at (null) [ 93.380924]

Re: how to check how much data left to sync to disk at umount?

2015-09-18 Thread Jeff Chua
On Thu, Sep 17, 2015 at 9:50 AM, Dave Chinner wrote: > On Mon, Sep 07, 2015 at 01:29:33PM +0800, Jeff Chua wrote: >> When umount a slow device such as an SD card, the command will take a >> while to run depending on how much data is left to write to the >> device. Is there

Re: how to check how much data left to sync to disk at umount?

2015-09-18 Thread Jeff Chua
On Thu, Sep 17, 2015 at 9:50 AM, Dave Chinner <da...@fromorbit.com> wrote: > On Mon, Sep 07, 2015 at 01:29:33PM +0800, Jeff Chua wrote: >> When umount a slow device such as an SD card, the command will take a >> while to run depending on how much data is left to w

how to check how much data left to sync to disk at umount?

2015-09-06 Thread Jeff Chua
When umount a slow device such as an SD card, the command will take a while to run depending on how much data is left to write to the device. Is there way to check how much data is remaining waiting to write to the device? Thanks, Jeff. -- To unsubscribe from this list: send the line "unsubscribe

how to check how much data left to sync to disk at umount?

2015-09-06 Thread Jeff Chua
When umount a slow device such as an SD card, the command will take a while to run depending on how much data is left to write to the device. Is there way to check how much data is remaining waiting to write to the device? Thanks, Jeff. -- To unsubscribe from this list: send the line "unsubscribe

Re: Stop SSD from waiting for "Spinning up disk..."

2015-06-25 Thread Jeff Chua
On Thu, Jun 25, 2015 at 2:08 PM, Martin Steigerwald wrote: > Am Mittwoch, 24. Juni 2015, 18:41:52 schrieb Greg Kroah-Hartman: >> On Thu, Jun 25, 2015 at 07:55:45AM +0800, Jeff Chua wrote: >> > On Thu, Jun 25, 2015 at 12:28 AM, Greg Kroah-Hartman >> > >> > wrot

Re: Stop SSD from waiting for Spinning up disk...

2015-06-25 Thread Jeff Chua
On Thu, Jun 25, 2015 at 2:08 PM, Martin Steigerwald mar...@lichtvoll.de wrote: Am Mittwoch, 24. Juni 2015, 18:41:52 schrieb Greg Kroah-Hartman: On Thu, Jun 25, 2015 at 07:55:45AM +0800, Jeff Chua wrote: On Thu, Jun 25, 2015 at 12:28 AM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote

Re: Stop SSD from waiting for "Spinning up disk..."

2015-06-24 Thread Jeff Chua
On Thu, Jun 25, 2015 at 12:28 AM, Greg Kroah-Hartman wrote: > On Thu, Jun 25, 2015 at 12:22:47AM +0800, Jeff Chua wrote: >> Both sda and sdb have the same SSD model. > > That's a bug in your USB bridge chip, odds are it is not reporting the > value properly. There's nothing th

Re: Stop SSD from waiting for "Spinning up disk..."

2015-06-24 Thread Jeff Chua
On Wed, Jun 24, 2015 at 2:55 AM, Martin Steigerwald wrote: > Am Dienstag, 23. Juni 2015, 20:26:12 schriebst Du: >> Hi, > > Hi, > >> [proper In-Reply-To trail missing since lkml.org now fails to provide it] > […] >> > Greg, >> > >> > SSD is coming mainstream and it doesn't make sense wasting time

Re: Stop SSD from waiting for Spinning up disk...

2015-06-24 Thread Jeff Chua
On Thu, Jun 25, 2015 at 12:28 AM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Thu, Jun 25, 2015 at 12:22:47AM +0800, Jeff Chua wrote: Both sda and sdb have the same SSD model. That's a bug in your USB bridge chip, odds are it is not reporting the value properly. There's nothing

Re: Stop SSD from waiting for Spinning up disk...

2015-06-24 Thread Jeff Chua
On Wed, Jun 24, 2015 at 2:55 AM, Martin Steigerwald mar...@lichtvoll.de wrote: Am Dienstag, 23. Juni 2015, 20:26:12 schriebst Du: Hi, Hi, [proper In-Reply-To trail missing since lkml.org now fails to provide it] […] Greg, SSD is coming mainstream and it doesn't make sense wasting time

Re: Stop SSD from waiting for "Spinning up disk..."

2015-06-23 Thread Jeff Chua
On Mon, Jun 22, 2015 at 11:36 PM, Greg Kroah-Hartman wrote: > On Mon, Jun 22, 2015 at 03:25:29PM +0800, Jeff Chua wrote: >> >> There's no need to wait for disk spin-up for USB SSD devices. This patch >> allow the SSD to skip waiting disk spin-up by passing sd_mod.ss

Re: Stop SSD from waiting for Spinning up disk...

2015-06-23 Thread Jeff Chua
On Mon, Jun 22, 2015 at 11:36 PM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Mon, Jun 22, 2015 at 03:25:29PM +0800, Jeff Chua wrote: There's no need to wait for disk spin-up for USB SSD devices. This patch allow the SSD to skip waiting disk spin-up by passing sd_mod.ssd=1 during

Stop SSD from waiting for "Spinning up disk..."

2015-06-22 Thread Jeff Chua
There's no need to wait for disk spin-up for USB SSD devices. This patch allow the SSD to skip waiting disk spin-up by passing sd_mod.ssd=1 during boot-up. If there's a better way to handle this, please share. Thanks, Jeff --- linux/drivers/scsi/sd.c 2015-05-25 07:29:44.0

Stop SSD from waiting for Spinning up disk...

2015-06-22 Thread Jeff Chua
There's no need to wait for disk spin-up for USB SSD devices. This patch allow the SSD to skip waiting disk spin-up by passing sd_mod.ssd=1 during boot-up. If there's a better way to handle this, please share. Thanks, Jeff --- linux/drivers/scsi/sd.c 2015-05-25 07:29:44.0

Re: frequent lockups in 3.18rc4

2014-12-13 Thread Jeff Chua
I started seeing this behavior somewhere around 3.16 with CONFIG_PREEMPT set. Setting CONFIG_PREEMPT off seems to help. And, yes, it happens on high load (compiling mozilla, xul) and using qemu chroot to compile mesa. I'm seeing a few persons bisecting already. If you want, I could start

Re: frequent lockups in 3.18rc4

2014-12-13 Thread Jeff Chua
I started seeing this behavior somewhere around 3.16 with CONFIG_PREEMPT set. Setting CONFIG_PREEMPT off seems to help. And, yes, it happens on high load (compiling mozilla, xul) and using qemu chroot to compile mesa. I'm seeing a few persons bisecting already. If you want, I could start

Re: [Regression] 3.15 mmc related ext4 corruption with qemu-system-arm

2014-06-16 Thread Jeff Chua
On Fri, Jun 13, 2014 at 8:28 PM, Ulf Hansson wrote: > On 13 June 2014 01:51, John Stultz wrote: >> On Wed, Jun 11, 2014 at 10:35 PM, John Stultz john.stu...@linaro.org> wrote: > I have quickly implemented my proposal 1). I am testing them on real > HW now, will post the patches as soon as I can

Re: [Regression] 3.15 mmc related ext4 corruption with qemu-system-arm

2014-06-16 Thread Jeff Chua
On Fri, Jun 13, 2014 at 8:28 PM, Ulf Hansson ulf.hans...@linaro.org wrote: On 13 June 2014 01:51, John Stultz john.stu...@linaro.org wrote: On Wed, Jun 11, 2014 at 10:35 PM, John Stultz john.stu...@linaro.org wrote: I have quickly implemented my proposal 1). I am testing them on real HW now,

HCI_AUTO_OFF ... how to do that from hcitool?

2014-05-26 Thread Jeff Chua
commit ab81cbf99c881ca2b9a83682a8722fc84b2483d2 Author: Johan Hedberg Date: Wed Dec 15 13:53:18 2010 +0200 Bluetooth: Implement automatic setup procedure for local adapters A new HCI_AUTO_OFF flag is added that user space needs to clear to avoid the automatic power off Help, how do I

HCI_AUTO_OFF ... how to do that from hcitool?

2014-05-26 Thread Jeff Chua
commit ab81cbf99c881ca2b9a83682a8722fc84b2483d2 Author: Johan Hedberg johan.hedb...@nokia.com Date: Wed Dec 15 13:53:18 2010 +0200 Bluetooth: Implement automatic setup procedure for local adapters A new HCI_AUTO_OFF flag is added that user space needs to clear to avoid the automatic power

Re: Lenovo X240 (haswell) suspend-to-ram hangs on 3-14.0-rc2

2014-02-18 Thread Jeff Chua
Here's my .config ... On Wed, Feb 19, 2014 at 5:32 AM, Theodore Ts'o wrote: > On Tue, Feb 18, 2014 at 09:28:02PM +0100, Takashi Iwai wrote: >> >> I checked CONFIG_SND_HDA_INTEL=y on my HP laptop with Haswell, but it >> worked fine. Could you give config? > > I don't have that config any more.

Re: Lenovo X240 (haswell) suspend-to-ram hangs on 3-14.0-rc2

2014-02-18 Thread Jeff Chua
Here's my .config ... On Wed, Feb 19, 2014 at 5:32 AM, Theodore Ts'o ty...@mit.edu wrote: On Tue, Feb 18, 2014 at 09:28:02PM +0100, Takashi Iwai wrote: I checked CONFIG_SND_HDA_INTEL=y on my HP laptop with Haswell, but it worked fine. Could you give config? I don't have that config any

Re: Lenovo X240 (haswell) suspend-to-ram hangs on 3-14.0-rc2

2014-02-17 Thread Jeff Chua
On Sat, Feb 15, 2014 at 4:07 AM, Takashi Iwai wrote: >> # bad >> CONFIG_SND_HDA_CODEC_HDMI =y >> CONFIG_SND_HDA_INTEL=y >> CONFIG_SND_HDA_INPUT_BEEP=y CONFIG_SND_HDA_GENERIC=m > > It might be the remaining bugs of modularization in 3.14-rc2. > A few patches are found in for-linus branch of

Re: Lenovo X240 (haswell) suspend-to-ram hangs on 3-14.0-rc2

2014-02-17 Thread Jeff Chua
On Sat, Feb 15, 2014 at 4:07 AM, Takashi Iwai ti...@suse.de wrote: # bad CONFIG_SND_HDA_CODEC_HDMI =y CONFIG_SND_HDA_INTEL=y CONFIG_SND_HDA_INPUT_BEEP=y CONFIG_SND_HDA_GENERIC=m It might be the remaining bugs of modularization in 3.14-rc2. A few patches are found in for-linus branch of

Re: Lenovo X240 (haswell) suspend-to-ram hangs on 3-14.0-rc2

2014-02-14 Thread Jeff Chua
On Fri, Feb 14, 2014 at 9:57 PM, Takashi Iwai wrote: > The other possible change in hda_intel.c is the enablement of runtime > PM for Panther Point. But it's been working for other chips, so > wondering why it hits anything. In anyway, please give the full > Oops messages not only the stack

Re: Lenovo X240 (haswell) suspend-to-ram hangs on 3-14.0-rc2

2014-02-14 Thread Jeff Chua
On Fri, Feb 14, 2014 at 1:28 AM, Takashi Iwai wrote: > At Thu, 13 Feb 2014 12:14:58 -0500, Peter Hurley wrote: > Apparently there's no maintainer but I've cc'ed people who might > have a clue about this. Peter ... thanks for pointer. > On Fri, Feb 14, 2014 at 1:28 AM, Takashi Iwai wrote: > Is

Re: Lenovo X240 (haswell) suspend-to-ram hangs on 3-14.0-rc2

2014-02-14 Thread Jeff Chua
On Fri, Feb 14, 2014 at 1:28 AM, Takashi Iwai ti...@suse.de wrote: At Thu, 13 Feb 2014 12:14:58 -0500, Peter Hurley wrote: Apparently there's no maintainer but I've cc'ed people who might have a clue about this. Peter ... thanks for pointer. On Fri, Feb 14, 2014 at 1:28 AM, Takashi Iwai

Re: Lenovo X240 (haswell) suspend-to-ram hangs on 3-14.0-rc2

2014-02-14 Thread Jeff Chua
On Fri, Feb 14, 2014 at 9:57 PM, Takashi Iwai ti...@suse.de wrote: The other possible change in hda_intel.c is the enablement of runtime PM for Panther Point. But it's been working for other chips, so wondering why it hits anything. In anyway, please give the full Oops messages not only the

Lenovo X240 (haswell) suspend-to-ram hangs on 3-14.0-rc2

2014-02-13 Thread Jeff Chua
Can't suspend to ram/disk on the Lenovo X240 with Intel i7-4600. kernel 3.14.0-rc2 The same kernel works find on Lenovo X230 with Intel i7-3520M. Here's the trace .. [] ? do_exit+0x852/0x89d [] ? prinfk+0x4f/0x54 [] ? oops_end+0x78/0x7d [] ? no_context+0x1e6/0x1f5 [] ?

Lenovo X240 (haswell) suspend-to-ram hangs on 3-14.0-rc2

2014-02-13 Thread Jeff Chua
Can't suspend to ram/disk on the Lenovo X240 with Intel i7-4600. kernel 3.14.0-rc2 The same kernel works find on Lenovo X230 with Intel i7-3520M. Here's the trace .. [81034ba6] ? do_exit+0x852/0x89d [8158e5d8] ? prinfk+0x4f/0x54 [iiff81005060] ? oops_end+0x78/0x7d

Re: binfmt_misc broken

2013-06-10 Thread Jeff Chua
On Tue, Jun 11, 2013 at 9:51 AM, Al Viro wrote: > Patch is complete BS and I really wonder what kernel have you observed that > bug on - > with mainline on amd64 your example yields > root@kvm-amd64:~# cat /proc/sys/fs/binfmt_misc/arm > enabled > interpreter /usr/bin/qemu-arm-static > flags: >

binfmt_misc broken

2013-06-10 Thread Jeff Chua
According to Documentation/binfmt_misc.txt, the 'magic' and 'mask' can be set by echoing it to /proc/sys/fs/binfmt_misc/register. Here's the problem I can across while working on ARM. # echo

binfmt_misc broken

2013-06-10 Thread Jeff Chua
According to Documentation/binfmt_misc.txt, the 'magic' and 'mask' can be set by echoing it to /proc/sys/fs/binfmt_misc/register. Here's the problem I can across while working on ARM. # echo

Re: binfmt_misc broken

2013-06-10 Thread Jeff Chua
On Tue, Jun 11, 2013 at 9:51 AM, Al Viro v...@zeniv.linux.org.uk wrote: Patch is complete BS and I really wonder what kernel have you observed that bug on - with mainline on amd64 your example yields root@kvm-amd64:~# cat /proc/sys/fs/binfmt_misc/arm enabled interpreter

Re: linux-3.10-rc1 procfs interface breaks vmware, eicon, fio .... any fix?

2013-05-12 Thread Jeff Chua
t's to allow "me" to continue to be able to work on the latest linux-3.10.0-rc1 while waiting for someone to fix those old modules. Reasonable? Thanks, Jeff On Mon, May 13, 2013 at 10:04 AM, Al Viro wrote: > On Mon, May 13, 2013 at 08:19:46AM +0800, Jeff Chua wrote: >>

linux-3.10-rc1 procfs interface breaks vmware, eicon, fio .... any fix?

2013-05-12 Thread Jeff Chua
Anyone on lkml working on patches for vmware to make it run on Linux-3.10-rc1? The recent change in procfs interface breaks vmware, diva/eicon and fio modules. Every modules is now broken and needs to be reworked. Is there a more subtle way to handle this like give more time to allow developers

linux-3.10-rc1 procfs interface breaks vmware, eicon, fio .... any fix?

2013-05-12 Thread Jeff Chua
Anyone on lkml working on patches for vmware to make it run on Linux-3.10-rc1? The recent change in procfs interface breaks vmware, diva/eicon and fio modules. Every modules is now broken and needs to be reworked. Is there a more subtle way to handle this like give more time to allow developers

Re: linux-3.10-rc1 procfs interface breaks vmware, eicon, fio .... any fix?

2013-05-12 Thread Jeff Chua
to allow me to continue to be able to work on the latest linux-3.10.0-rc1 while waiting for someone to fix those old modules. Reasonable? Thanks, Jeff On Mon, May 13, 2013 at 10:04 AM, Al Viro v...@zeniv.linux.org.uk wrote: On Mon, May 13, 2013 at 08:19:46AM +0800, Jeff Chua wrote: Anyone on lkml

Re: 2nd attempt: help with dma_alloc_coherent() + dma_free_coherent()

2013-01-08 Thread Jeff Chua
On Wed, Jan 9, 2013 at 1:24 AM, Linus Torvalds wrote: > On Tue, Jan 8, 2013 at 9:17 AM, Jeff Chua wrote: >> >> Interesting, but there are 54 lines under the kernel directories that >> use "dma_alloc_coherent(NULL," followed by "dma_free_coherent(NULL,

Re: 2nd attempt: help with dma_alloc_coherent() + dma_free_coherent()

2013-01-08 Thread Jeff Chua
On Wed, Jan 9, 2013 at 12:39 AM, Linus Torvalds wrote: > On Tue, Jan 8, 2013 at 7:51 AM, Jeff Chua wrote: >> No response so far ... I'm sure someone know this stuff ... Thanks, Jeff. >> >> I'm trying to understand how this oops in the diva driver and it's just a >>

Re: 2nd attempt: help with dma_alloc_coherent() + dma_free_coherent()

2013-01-08 Thread Jeff Chua
On Wed, Jan 9, 2013 at 12:39 AM, Linus Torvalds torva...@linux-foundation.org wrote: On Tue, Jan 8, 2013 at 7:51 AM, Jeff Chua jeff.chua.li...@gmail.com wrote: No response so far ... I'm sure someone know this stuff ... Thanks, Jeff. I'm trying to understand how this oops in the diva driver

Re: 2nd attempt: help with dma_alloc_coherent() + dma_free_coherent()

2013-01-08 Thread Jeff Chua
On Wed, Jan 9, 2013 at 1:24 AM, Linus Torvalds torva...@linux-foundation.org wrote: On Tue, Jan 8, 2013 at 9:17 AM, Jeff Chua jeff.chua.li...@gmail.com wrote: Interesting, but there are 54 lines under the kernel directories that use dma_alloc_coherent(NULL, followed by dma_free_coherent(NULL

Re: /usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory

2012-12-15 Thread Jeff Chua
On Sun, Dec 16, 2012 at 9:53 AM, Al Viro wrote: > On Sun, Dec 16, 2012 at 09:39:01AM +0800, Jeff Chua wrote: >> On Sun, Dec 16, 2012 at 9:28 AM, Al Viro wrote: >> > On Sun, Dec 16, 2012 at 09:23:38AM +0800, Jeff Chua wrote: >> >> How should the symbolic links

Re: /usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory

2012-12-15 Thread Jeff Chua
On Sun, Dec 16, 2012 at 9:39 AM, Jeff Chua wrote: > On Sun, Dec 16, 2012 at 9:28 AM, Al Viro wrote: >> On Sun, Dec 16, 2012 at 09:23:38AM +0800, Jeff Chua wrote: >>> How should the symbolic links be setup to compile the latest kernel? >>> >>> >>> Cur

Re: /usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory

2012-12-15 Thread Jeff Chua
On Sun, Dec 16, 2012 at 9:28 AM, Al Viro wrote: > On Sun, Dec 16, 2012 at 09:23:38AM +0800, Jeff Chua wrote: >> How should the symbolic links be setup to compile the latest kernel? >> >> >> Currently I had these links and kernels compiled fine until 2 days ago. >

Re: /usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory

2012-12-15 Thread Jeff Chua
On Sun, Dec 16, 2012 at 9:28 AM, Al Viro v...@zeniv.linux.org.uk wrote: On Sun, Dec 16, 2012 at 09:23:38AM +0800, Jeff Chua wrote: How should the symbolic links be setup to compile the latest kernel? Currently I had these links and kernels compiled fine until 2 days ago. asm - /usr

Re: /usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory

2012-12-15 Thread Jeff Chua
On Sun, Dec 16, 2012 at 9:39 AM, Jeff Chua jeff.chua.li...@gmail.com wrote: On Sun, Dec 16, 2012 at 9:28 AM, Al Viro v...@zeniv.linux.org.uk wrote: On Sun, Dec 16, 2012 at 09:23:38AM +0800, Jeff Chua wrote: How should the symbolic links be setup to compile the latest kernel? Currently I had

Re: /usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory

2012-12-15 Thread Jeff Chua
On Sun, Dec 16, 2012 at 9:53 AM, Al Viro v...@zeniv.linux.org.uk wrote: On Sun, Dec 16, 2012 at 09:39:01AM +0800, Jeff Chua wrote: On Sun, Dec 16, 2012 at 9:28 AM, Al Viro v...@zeniv.linux.org.uk wrote: On Sun, Dec 16, 2012 at 09:23:38AM +0800, Jeff Chua wrote: How should the symbolic links

Re: [PATCH] Introduce a method to catch mmap_region (was: Recent kernel "mount" slow)

2012-11-29 Thread Jeff Chua
On Thu, Nov 29, 2012 at 2:45 PM, Al Viro wrote: > On Wed, Nov 28, 2012 at 10:37:27PM -0800, Linus Torvalds wrote: >> On Wed, Nov 28, 2012 at 10:30 PM, Al Viro wrote: >> > >> > Note that sync_blockdev() a few lines prior to that is good only if we >> > have no other processes doing write(2) (or

Re: [PATCH] Introduce a method to catch mmap_region (was: Recent kernel mount slow)

2012-11-29 Thread Jeff Chua
On Thu, Nov 29, 2012 at 2:45 PM, Al Viro v...@zeniv.linux.org.uk wrote: On Wed, Nov 28, 2012 at 10:37:27PM -0800, Linus Torvalds wrote: On Wed, Nov 28, 2012 at 10:30 PM, Al Viro v...@zeniv.linux.org.uk wrote: Note that sync_blockdev() a few lines prior to that is good only if we have no

Re: [PATCH 2/2] block_dev: don't take the write lock if block size doesn't change

2012-11-28 Thread Jeff Chua
On Wed, Nov 28, 2012 at 12:01 PM, Mikulas Patocka wrote: > block_dev: don't take the write lock if block size doesn't change > > Taking the write lock has a big performance impact on the whole system > (because of synchronize_sched_expedited). This patch avoids taking the > write lock if the

Re: [PATCH 1/2] percpu-rwsem: use synchronize_sched_expedited

2012-11-28 Thread Jeff Chua
On Wed, Nov 28, 2012 at 11:59 AM, Mikulas Patocka wrote: > > > On Tue, 27 Nov 2012, Jeff Chua wrote: > >> On Tue, Nov 27, 2012 at 3:38 PM, Jens Axboe wrote: >> > On 2012-11-27 06:57, Jeff Chua wrote: >> >> On Sun, Nov 25, 2012 at 7:23 AM, Jeff Chua >&g

Re: Recent kernel "mount" slow

2012-11-28 Thread Jeff Chua
On Wed, Nov 28, 2012 at 4:33 PM, Jens Axboe wrote: > On 2012-11-28 04:57, Mikulas Patocka wrote: >> >> >> On Tue, 27 Nov 2012, Jens Axboe wrote: >> >>> On 2012-11-27 11:06, Jeff Chua wrote: >>>> On Tue, Nov 27, 2012 at 3:38 PM, Jens Axboe w

Re: Recent kernel mount slow

2012-11-28 Thread Jeff Chua
On Wed, Nov 28, 2012 at 4:33 PM, Jens Axboe ax...@kernel.dk wrote: On 2012-11-28 04:57, Mikulas Patocka wrote: On Tue, 27 Nov 2012, Jens Axboe wrote: On 2012-11-27 11:06, Jeff Chua wrote: On Tue, Nov 27, 2012 at 3:38 PM, Jens Axboe ax...@kernel.dk wrote: On 2012-11-27 06:57, Jeff Chua

Re: [PATCH 1/2] percpu-rwsem: use synchronize_sched_expedited

2012-11-28 Thread Jeff Chua
On Wed, Nov 28, 2012 at 11:59 AM, Mikulas Patocka mpato...@redhat.com wrote: On Tue, 27 Nov 2012, Jeff Chua wrote: On Tue, Nov 27, 2012 at 3:38 PM, Jens Axboe ax...@kernel.dk wrote: On 2012-11-27 06:57, Jeff Chua wrote: On Sun, Nov 25, 2012 at 7:23 AM, Jeff Chua jeff.chua.li...@gmail.com

Re: [PATCH 2/2] block_dev: don't take the write lock if block size doesn't change

2012-11-28 Thread Jeff Chua
On Wed, Nov 28, 2012 at 12:01 PM, Mikulas Patocka mpato...@redhat.com wrote: block_dev: don't take the write lock if block size doesn't change Taking the write lock has a big performance impact on the whole system (because of synchronize_sched_expedited). This patch avoids taking the write

Re: Recent kernel "mount" slow

2012-11-27 Thread Jeff Chua
On Tue, Nov 27, 2012 at 3:38 PM, Jens Axboe wrote: > On 2012-11-27 06:57, Jeff Chua wrote: >> On Sun, Nov 25, 2012 at 7:23 AM, Jeff Chua wrote: >>> On Sun, Nov 25, 2012 at 5:09 AM, Mikulas Patocka >>> wrote: >>>> So it's better to slow down mount. >

Re: Recent kernel "mount" slow

2012-11-27 Thread Jeff Chua
Jens, Limited access now at Incheon Airport. Will try the patch out when I arrived. Thanks, Jeff On 11/27/12, Jens Axboe wrote: > On 2012-11-27 08:38, Jens Axboe wrote: >> On 2012-11-27 06:57, Jeff Chua wrote: >>> On Sun, Nov 25, 2012 at 7:23 AM, Jeff Chua >>> wrote

Re: Recent kernel mount slow

2012-11-27 Thread Jeff Chua
Jens, Limited access now at Incheon Airport. Will try the patch out when I arrived. Thanks, Jeff On 11/27/12, Jens Axboe ax...@kernel.dk wrote: On 2012-11-27 08:38, Jens Axboe wrote: On 2012-11-27 06:57, Jeff Chua wrote: On Sun, Nov 25, 2012 at 7:23 AM, Jeff Chua jeff.chua.li...@gmail.com

Re: Recent kernel mount slow

2012-11-27 Thread Jeff Chua
On Tue, Nov 27, 2012 at 3:38 PM, Jens Axboe ax...@kernel.dk wrote: On 2012-11-27 06:57, Jeff Chua wrote: On Sun, Nov 25, 2012 at 7:23 AM, Jeff Chua jeff.chua.li...@gmail.com wrote: On Sun, Nov 25, 2012 at 5:09 AM, Mikulas Patocka mpato...@redhat.com wrote: So it's better to slow down mount

Re: Recent kernel "mount" slow

2012-11-26 Thread Jeff Chua
On Sun, Nov 25, 2012 at 7:23 AM, Jeff Chua wrote: > On Sun, Nov 25, 2012 at 5:09 AM, Mikulas Patocka wrote: >> So it's better to slow down mount. > > I am quite proud of the linux boot time pitting against other OS. Even > with 10 partitions. Linux can boot up in just a fe

Re: Recent kernel mount slow

2012-11-26 Thread Jeff Chua
On Sun, Nov 25, 2012 at 7:23 AM, Jeff Chua jeff.chua.li...@gmail.com wrote: On Sun, Nov 25, 2012 at 5:09 AM, Mikulas Patocka mpato...@redhat.com wrote: So it's better to slow down mount. I am quite proud of the linux boot time pitting against other OS. Even with 10 partitions. Linux can boot

Re: Recent kernel "mount" slow

2012-11-24 Thread Jeff Chua
On Sun, Nov 25, 2012 at 5:09 AM, Mikulas Patocka wrote: > So it's better to slow down mount. I am quite proud of the linux boot time pitting against other OS. Even with 10 partitions. Linux can boot up in just a few seconds, but now you're saying that we need to do this semaphore check at boot

Re: Recent kernel mount slow

2012-11-24 Thread Jeff Chua
On Sun, Nov 25, 2012 at 5:09 AM, Mikulas Patocka mpato...@redhat.com wrote: So it's better to slow down mount. I am quite proud of the linux boot time pitting against other OS. Even with 10 partitions. Linux can boot up in just a few seconds, but now you're saying that we need to do this

Re: Recent kernel "mount" slow

2012-11-23 Thread Jeff Chua
On Sat, Nov 24, 2012 at 7:31 AM, Jeff Chua wrote: > On Sat, Nov 24, 2012 at 6:21 AM, Jeff Chua wrote: >> On Fri, Nov 23, 2012 at 9:24 PM, Jens Axboe wrote: >>> On 2012-11-22 20:21, Linus Torvalds wrote: >>>> Doesn't sound like a fsdevel issue since it seems to be i

Re: Recent kernel "mount" slow

2012-11-23 Thread Jeff Chua
On Sat, Nov 24, 2012 at 6:21 AM, Jeff Chua wrote: > On Fri, Nov 23, 2012 at 9:24 PM, Jens Axboe wrote: >> On 2012-11-22 20:21, Linus Torvalds wrote: >>> Doesn't sound like a fsdevel issue since it seems to be independent of >>> filesystems. More like some generic blo

Re: Recent kernel "mount" slow

2012-11-23 Thread Jeff Chua
On Fri, Nov 23, 2012 at 9:24 PM, Jens Axboe wrote: > On 2012-11-22 20:21, Linus Torvalds wrote: >> Doesn't sound like a fsdevel issue since it seems to be independent of >> filesystems. More like some generic block layer thing. Adding Jens >> (and quoting the whole thing) >> >> Jens, any ideas?

Re: Recent kernel mount slow

2012-11-23 Thread Jeff Chua
On Fri, Nov 23, 2012 at 9:24 PM, Jens Axboe ax...@kernel.dk wrote: On 2012-11-22 20:21, Linus Torvalds wrote: Doesn't sound like a fsdevel issue since it seems to be independent of filesystems. More like some generic block layer thing. Adding Jens (and quoting the whole thing) Jens, any

Re: Recent kernel mount slow

2012-11-23 Thread Jeff Chua
On Sat, Nov 24, 2012 at 6:21 AM, Jeff Chua jeff.chua.li...@gmail.com wrote: On Fri, Nov 23, 2012 at 9:24 PM, Jens Axboe ax...@kernel.dk wrote: On 2012-11-22 20:21, Linus Torvalds wrote: Doesn't sound like a fsdevel issue since it seems to be independent of filesystems. More like some generic

Re: Recent kernel mount slow

2012-11-23 Thread Jeff Chua
On Sat, Nov 24, 2012 at 7:31 AM, Jeff Chua jeff.chua.li...@gmail.com wrote: On Sat, Nov 24, 2012 at 6:21 AM, Jeff Chua jeff.chua.li...@gmail.com wrote: On Fri, Nov 23, 2012 at 9:24 PM, Jens Axboe ax...@kernel.dk wrote: On 2012-11-22 20:21, Linus Torvalds wrote: Doesn't sound like a fsdevel

Re: Recent kernel "mount" slow

2012-11-22 Thread Jeff Chua
On Wed, Nov 21, 2012 at 11:46 PM, Jeff Chua wrote: > On Wed, Nov 21, 2012 at 2:09 AM, Jan Kara wrote: >> I haven't heard about such problem so far. What filesystem are you using? > > I've tried ext2/ext3/ext4/reiserfs/btrfs ... all seems to be slower > than before. Seems to

Re: Recent kernel mount slow

2012-11-22 Thread Jeff Chua
On Wed, Nov 21, 2012 at 11:46 PM, Jeff Chua jeff.chua.li...@gmail.com wrote: On Wed, Nov 21, 2012 at 2:09 AM, Jan Kara j...@suse.cz wrote: I haven't heard about such problem so far. What filesystem are you using? I've tried ext2/ext3/ext4/reiserfs/btrfs ... all seems to be slower than

Re: Recent kernel "mount" slow

2012-11-21 Thread Jeff Chua
On Wed, Nov 21, 2012 at 2:09 AM, Jan Kara wrote: > I haven't heard about such problem so far. What filesystem are you using? I've tried ext2/ext3/ext4/reiserfs/btrfs ... all seems to be slower than before. Seems to be fs independent. > Can you quantify 'is slower'? Bisecting would be welcome

Re: Recent kernel mount slow

2012-11-21 Thread Jeff Chua
On Wed, Nov 21, 2012 at 2:09 AM, Jan Kara j...@suse.cz wrote: I haven't heard about such problem so far. What filesystem are you using? I've tried ext2/ext3/ext4/reiserfs/btrfs ... all seems to be slower than before. Seems to be fs independent. Can you quantify 'is slower'? Bisecting would

Recent kernel "mount" slow

2012-11-18 Thread Jeff Chua
It seems the recent kernel is slower mounting hard disk than older kernels. I've not bisect down to exact when this happen as it might already been reported or solved. I'm on the latest commit, but it doesn't seems to be fixed yet. commit 3587b1b097d70c2eb9fee95ea7995d13c05f66e5 Author: Al Viro

Recent kernel mount slow

2012-11-18 Thread Jeff Chua
It seems the recent kernel is slower mounting hard disk than older kernels. I've not bisect down to exact when this happen as it might already been reported or solved. I'm on the latest commit, but it doesn't seems to be fixed yet. commit 3587b1b097d70c2eb9fee95ea7995d13c05f66e5 Author: Al Viro

Re: new regression in 2.6.25-rc3: no keyboard/lid acpi events on thinkpad T61p - resume hang

2008-02-25 Thread Jeff Chua
On Tue, Feb 26, 2008 at 4:45 AM, Michael S. Tsirkin <[EMAIL PROTECTED]> wrote: On Mon, Feb 25, 2008 at 9:46 PM, Andrew Morton <[EMAIL PROTECTED]> wrote: > On Mon, 25 Feb 2008 21:19:24 +0200 "Michael S. Tsirkin" <[EMAIL PROTECTED]> wrote: > You mean suspend-to-ram works correctly on your

Re: new regression in 2.6.25-rc3: no keyboard/lid acpi events on thinkpad T61p - resume hang

2008-02-25 Thread Jeff Chua
On Tue, Feb 26, 2008 at 4:45 AM, Michael S. Tsirkin [EMAIL PROTECTED] wrote: On Mon, Feb 25, 2008 at 9:46 PM, Andrew Morton [EMAIL PROTECTED] wrote: On Mon, 25 Feb 2008 21:19:24 +0200 Michael S. Tsirkin [EMAIL PROTECTED] wrote: You mean suspend-to-ram works correctly on your t61p?

Re: [PATCH] PM: Introduce PM_EVENT_HIBERNATE (was: Re: i915 hibernation patch (was: Re: 2.6.25-rc2 System no longer ...))

2008-02-24 Thread Jeff Chua
On Sun, Feb 24, 2008 at 2:43 AM, Linus Torvalds <[EMAIL PROTECTED]> wrote: > > > On Sat, 23 Feb 2008, Rafael J. Wysocki wrote: > > > > > Thanks for testing. Below is the final version of the patch with a > > changelog > > etc. > > Thanks, applied. > > With this, I also find that I dislike

Re: [PATCH] PM: Introduce PM_EVENT_HIBERNATE (was: Re: i915 hibernation patch (was: Re: 2.6.25-rc2 System no longer ...))

2008-02-24 Thread Jeff Chua
On Sun, Feb 24, 2008 at 2:43 AM, Linus Torvalds [EMAIL PROTECTED] wrote: On Sat, 23 Feb 2008, Rafael J. Wysocki wrote: Thanks for testing. Below is the final version of the patch with a changelog etc. Thanks, applied. With this, I also find that I dislike the use of

Re: i915 hibernation patch (was: Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off aftersuspend-to-disk. Screen becomes green.)

2008-02-22 Thread Jeff Chua
On Sat, Feb 23, 2008 at 10:07 AM, Linus Torvalds <[EMAIL PROTECTED]> wrote: > On Sat, 23 Feb 2008, Rafael J. Wysocki wrote: > > OK, please have a look at the modified patch below. > > All right, I'm fine with it. Now we just need to confirm that it works for > people.. Looks good. Applied

Re: i915 hibernation patch (was: Re: [Suspend-devel] 2.6.25-rc2 System no longer powers off aftersuspend-to-disk. Screen becomes green.)

2008-02-22 Thread Jeff Chua
On Sat, Feb 23, 2008 at 10:07 AM, Linus Torvalds [EMAIL PROTECTED] wrote: On Sat, 23 Feb 2008, Rafael J. Wysocki wrote: OK, please have a look at the modified patch below. All right, I'm fine with it. Now we just need to confirm that it works for people.. Looks good. Applied Rafael

  1   2   3   4   5   >