Re: [linux-usb-devel] 2.4.0-test10 problems (power-down problem)

2000-11-08 Thread Dan Streetman
7;ve seen will power down if you hold the power button down for 2-3 seconds. Try that instead of pulling the plug and battery. It may be true for other machines also. -- Dan Streetman [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bod

Re: ps2 keyboard filter hook

2001-06-15 Thread Dan Streetman
o release the actual driver but it didn't work. -- Dan Streetman [EMAIL PROTECTED] 186,282 miles per second: It isn't just a good idea, it's the law! - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: ps2 keyboard filter hook

2001-06-15 Thread Dan Streetman
I think this may be possible). The filtering needs to be done fairly early (I think), or the keyboard state may get corrupted by seemingly random 'normal' scancodes coming in (for non-raw modes)... Vojtech, could you comment on if the above is possible using the i

Re: ps2 keyboard filter hook

2001-06-15 Thread Dan Streetman
en it) and then register a new >PS/2 port which the normal keyboard driver would attach to. Sweet! Thanks. I assume this (along with the linux-console stuff) won't make it into the 2.4 kernel for a while though, until after it's been in 2.5 for a while? Thanks aga

Re: ps2 keyboard filter hook

2001-06-18 Thread Dan Streetman
us benefits like peer review, increased user and developer base, etc. were ignored; they thought the user and/or developer base (any retail company or ISV) was too specific and/or small. -- Dan Streetman [EMAIL PROTECTED] -- 186,282 miles per second: I

Re: ps2 keyboard filter hook

2001-06-28 Thread Dan Streetman
ad asked for approval from the company-wide decision makers, they would have given it. From the limited experience I've had with them, they are very pro-OSS. -- Dan Streetman [EMAIL PROTECTED] -- 186,282 miles per second: It isn't just a good

Re: [PATCH 1/2] zpool: Delete an error message for a failed memory allocation in zpool_create_pool()

2017-08-16 Thread Dan Streetman
d-off-by: Markus Elfring Acked-by: Dan Streetman > --- > mm/zpool.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/mm/zpool.c b/mm/zpool.c > index fd3ff719c32c..fe1943f7d844 100644 > --- a/mm/zpool.c > +++ b/mm/zpool.c > @@ -172,7 +172,6 @@ struct zpool *zpoo

Re: [PATCH 2/2] zpool: Use common error handling code in zpool_create_pool()

2017-08-16 Thread Dan Streetman
On Mon, Aug 14, 2017 at 7:16 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 14 Aug 2017 13:04:33 +0200 > > Add a jump target so that a bit of exception handling can be better reused > in this function. > > Signed-off-by: Markus Elfring Acked-by: Dan St

Re: [PATCH V3] crypto/nx842: Add CRC and validation support

2015-10-14 Thread Dan Streetman
On Wed, Oct 14, 2015 at 10:27 AM, Herbert Xu wrote: > On Thu, Oct 08, 2015 at 01:45:51PM -0700, Haren Myneni wrote: >> >> This patch adds CRC generation and validation support for nx-842. >> Add CRC flag so that nx842 coprocessor includes CRC during compression >> and validates during decompressio

[PATCH] ixgbe: Wait for 1ms, not 1us, after RST

2015-10-26 Thread dan . streetman
From: Dan Streetman The driver currently waits 1us after issuing a RST, but the spec requires it to wait 1ms. Signed-off-by: Dan Streetman Signed-off-by: Dan Streetman --- drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a

[PATCH] ixgbe: check Master Disable bit after setting

2015-10-26 Thread dan . streetman
From: Dan Streetman Spec section 8.2.4.1.1 notes that after setting the PCIe Master Disable bit, it must be read to verify it was set before polling the Master Enable status bit. This adds the check to verify the Master Disable bit was set. This also corrects the spec section number reference

Re: [PATCH v2] zswap: re-check zswap_is_full after do zswap_shrink

2018-07-25 Thread Dan Streetman
On Mon, Jun 25, 2018 at 4:08 AM Li Wang wrote: > > On 30 May 2018 at 20:53, Dan Streetman wrote: > > On Wed, May 30, 2018 at 6:39 AM, Li Wang wrote: > >> The '/sys/../zswap/stored_pages:' keep raising in zswap test with > >> "zswap.max_pool_perce

Re: [PATCH] zswap: only save zswap header if zpool is shrinkable

2018-01-10 Thread Dan Streetman
On Tue, Jan 9, 2018 at 5:47 PM, Yu Zhao wrote: > On Tue, Jan 09, 2018 at 01:25:18PM -0500, Dan Streetman wrote: >> On Mon, Jan 8, 2018 at 5:51 PM, Yu Zhao wrote: >> > We waste sizeof(swp_entry_t) for zswap header when using zsmalloc >> > as zpool driver because zsmall

Re: [PATCH v3] zswap: only save zswap header when necessary

2018-01-11 Thread Dan Streetman
> + zpool->evictable = driver->shrink && ops && ops->evict; Since the ops->evict comes from zswap (and is never omitted), if we do restore zs_zpool_shrink() in the future to call the zsmalloc shrinker (and not do eviction), we'll have to add a driv

[PATCH] net: tcp: close sock if net namespace is exiting

2018-01-18 Thread Dan Streetman
i?id=97811 Signed-off-by: Dan Streetman --- include/net/net_namespace.h | 10 ++ net/ipv4/tcp.c | 3 +++ net/ipv4/tcp_timer.c| 15 +++ 3 files changed, 28 insertions(+) diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index f8

Re: [PATCH 1/2] mm/zswap: make type and compressor const

2018-01-08 Thread Dan Streetman
On Tue, Jan 2, 2018 at 5:03 AM, Joey Pabalinas wrote: > The characters pointed to by `zswap_compressor`, `type`, and `compressor` > aren't ever modified. Add const to the static variable and both parameters in > `zswap_pool_find_get()`, `zswap_pool_create()`, and `__zswap_param_set()` > > Signed-o

Re: [PATCH 2/2] mm/zswap: move `zswap_has_pool` to front of `if ()`

2018-01-08 Thread Dan Streetman
On Tue, Jan 2, 2018 at 5:03 AM, Joey Pabalinas wrote: > `zwap_has_pool` is a simple boolean, so it should be tested first > to avoid unnecessarily calling `strcmp()`. Test `zswap_has_pool` > first to take advantage of the short-circuiting behavior of && in > `__zswap_param_set()`. > > Signed-off-b

Re: [PATCH] zswap: only save zswap header if zpool is shrinkable

2018-01-09 Thread Dan Streetman
include the header info that zswap_writeback_entry (i.e. ops->evict) later needs, so yeah it does make more sense to call it zpool_evictable() and zpool->evictable. However, I think the function should still be zpool_shrink() and zpool->driver->shrink(), because it should be possible for

Re: net: hang in unregister_netdevice: waiting for lo to become free

2018-04-13 Thread Dan Streetman
On Thu, Apr 12, 2018 at 8:15 AM, Dmitry Vyukov wrote: > On Wed, Feb 21, 2018 at 3:53 PM, Tommi Rantala > wrote: >> On 20.02.2018 18:26, Neil Horman wrote: >>> >>> On Tue, Feb 20, 2018 at 09:14:41AM +0100, Dmitry Vyukov wrote: On Tue, Feb 20, 2018 at 8:56 AM, Tommi Rantala wrote: >

Re: [PATCH] mm: fix z3fold warnings on CONFIG_SMP=n

2018-09-27 Thread Dan Streetman
On Thu, Sep 27, 2018 at 4:27 PM Alex Xu (Hello71) wrote: > > Spinlocks are always lockable on UP systems, even if they were just > locked. i think it would be much better to just use either assert_spin_locked() or just spin_is_locked(), instead of an #ifdef. > > Cc: Dan Streetma

Re: [PATCH v2] mm: fix z3fold warnings on CONFIG_SMP=n

2018-09-28 Thread Dan Streetman
On Thu, Sep 27, 2018 at 5:15 PM Alex Xu (Hello71) wrote: > > Spinlocks are always lockable on UP systems, even if they were just > locked. > > Cc: Dan Streetman I cc'ed Vitaly also, as this code is from him, but the change certainly looks correct to me. Acked-by: Dan Stre

Re: net: hang in unregister_netdevice: waiting for lo to become free

2018-05-11 Thread Dan Streetman
On Fri, May 11, 2018 at 5:19 AM, Dmitry Vyukov wrote: > On Thu, May 10, 2018 at 12:23 PM, Dan Streetman wrote: >>>>>>>> wrote: >>>>>>>>> On 20.02.2018 18:26, Neil Horman wrote: >>>>>>>>>> >>>>>

Re: [PATCH RFC] zswap: reject to compress/store page if zswap_max_pool_percent is 0

2018-05-30 Thread Dan Streetman
On Tue, May 29, 2018 at 10:57 PM, Li Wang wrote: > Hi Dan, > > On Wed, May 30, 2018 at 5:14 AM, Dan Streetman wrote: >> >> On Thu, May 24, 2018 at 5:57 AM, Li Wang wrote: >> > The '/sys/../zswap/stored_pages:' keep raising in zswap test with >&g

Re: [PATCH v2] zswap: re-check zswap_is_full after do zswap_shrink

2018-05-30 Thread Dan Streetman
w under the max_pool_percent, and > not to compress/store if reach its limitaion. > > Signed-off-by: Li Wang Acked-by: Dan Streetman > Cc: Seth Jennings > Cc: Dan Streetman > Cc: Huang Ying > Cc: Yu Zhao > --- > mm/zswap.c | 9 + > 1 file changed, 9 in

Re: [PATCH 1/2] mm/zpool: add name argument to create zpool

2015-01-05 Thread Dan Streetman
bug/zsmalloc/zram0 >> >> This patch adds a argument *name* to zs_create_pool() and other >> related functions. >> >> Signed-off-by: Ganesh Mahendran > Acked-by: Minchan Kim Acked-by: Dan Streetman > > -- > Kind regards, > Minchan Kim -- To u

[PATCH] Documentation/mic/mpssd: fix compile error on BE platforms

2014-12-04 Thread Dan Streetman
https://sourceware.org/bugzilla/show_bug.cgi?id=17679 But this patch is still needed to prevent build failures with the current glibc htole* macro definitions. Signed-off-by: Dan Streetman --- Documentation/mic/mpssd/mpssd.c | 54 - 1 file changed, 37 inser

Re: [PATCH linux-next] Documentation: Build mic/mpssd only for x86_64

2014-12-04 Thread Dan Streetman
of leaving the htole16() et. al. functions in mpssd.c? Shouldn't they be removed? > > Reported-by: Daniel Borkmann > Reported-by: Dan Streetman > Suggested-by: Peter Foley > Signed-off-by: Ashutosh Dixit > --- > Documentation/mic/mpssd/Makefile | 2 +- > 1 file chan

Re: [PATCH linux-next] Documentation: Build mic/mpssd only for x86_64

2014-12-05 Thread Dan Streetman
On Fri, Dec 5, 2014 at 1:18 PM, Ashutosh Dixit wrote: > On Thu, Dec 04 2014 at 07:27:06 PM, Dan Streetman wrote: >> On Thu, Dec 4, 2014 at 4:27 PM, Ashutosh Dixit >> wrote: >>> mic/mpssd along with MIC drivers are currently only usable on >>> x86_64. So build m

[PATCH 01/11] powerpc: export of_get_ibm_chip_id function

2015-04-07 Thread Dan Streetman
Export the of_get_ibm_chip_id() function. This will be used by the PowerNV NX-842 driver. Signed-off-by: Dan Streetman --- arch/powerpc/kernel/prom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index b8e15c6..f9fb9a2 100644 --- a

[PATCH 00/11] add 842 hw compression for PowerNV platform

2015-04-07 Thread Dan Streetman
on cycles using variable alignment and length buffers, multiple threads, and can calculate the throughput. Dan Streetman (11): powerpc: export of_get_ibm_chip_id function powerpc: Add ICSWX instruction crypto: add software 842 decompression drivers/crypto/nx: move nx-842.c to nx-842-pseries.c

[PATCH 05/11] drivers/crypto/nx: add NX-842 platform frontend driver

2015-04-07 Thread Dan Streetman
Add NX-842 frontend that allows using either the pSeries platform or PowerNV platform driver for the NX-842 hardware. Update the MAINTAINERS file to include the new filenames. Signed-off-by: Dan Streetman --- MAINTAINERS| 2 +- crypto/842.c | 2

[PATCH 06/11] drivers/crypto/nx: add nx842 constraints

2015-04-07 Thread Dan Streetman
ed because the 842 hardware requires buffers to meet specific constraints that vary based on platform - for example, the pSeries max length is much lower than the PowerNV max length. These constraints are used by a later patch that improves the crypto 842 driver. Signed-off-by: Dan Streetman --

[PATCH 07/11] drivers/crypto/nx: add PowerNV platform NX-842 driver

2015-04-07 Thread Dan Streetman
Add driver for NX-842 hardware on the PowerNV platform. This allows the use of the 842 compression hardware coprocessor on the PowerNV platform. Signed-off-by: Dan Streetman --- drivers/crypto/nx/Kconfig | 10 + drivers/crypto/nx/Makefile | 2 + drivers/crypto/nx/nx-842

[PATCH 03/11] crypto: add software 842 decompression

2015-04-07 Thread Dan Streetman
function is required by later patches that update the crypto 842 driver to fall back to software 842 decompression if the NX-842 hardware fails and/or returns an error. Signed-off-by: Dan Streetman --- MAINTAINERS | 2 + include/linux/sw842.h| 7 + lib/842/842_decompress.c | 413

[PATCH 11/11] crypto: add crypto compression sefltest

2015-04-07 Thread Dan Streetman
compressor during compression or decompression will end the test and be logged. Signed-off-by: Dan Streetman --- crypto/Kconfig | 9 + crypto/Makefile| 1 + crypto/comp_selftest.c | 928 + 3 files changed, 938 insertions

[PATCH 09/11] crypto: remove LZO fallback from crypto 842

2015-04-07 Thread Dan Streetman
/decompression. The user of the crypto 842 driver can fallback to another format if desired. Signed-off-by: Dan Streetman --- crypto/842.c | 139 - crypto/Kconfig | 4 +- 2 files changed, 29 insertions(+), 114 deletions(-) diff --git a/crypto

[PATCH 08/11] drivers/crypto/nx: simplify pSeries nx842 driver

2015-04-07 Thread Dan Streetman
-off-by: Dan Streetman --- drivers/crypto/nx/nx-842-pseries.c | 779 - 1 file changed, 153 insertions(+), 626 deletions(-) diff --git a/drivers/crypto/nx/nx-842-pseries.c b/drivers/crypto/nx/nx-842-pseries.c index 3773e36..0b7bad3 100644 --- a/drivers/crypto/nx

[PATCH 10/11] crypto: rewrite crypto 842 to use nx842 constraints

2015-04-07 Thread Dan Streetman
n hardware with any alignment or length buffers; previously with only the pSeries NX-842 driver all (uncompressed) buffers needed to be page-sized and page-aligned. Signed-off-by: Dan Streetman --- MAINTAINERS | 1 + crypto/842.c | 414 --

[PATCH 04/11] drivers/crypto/nx: move nx-842.c to nx-842-pseries.c

2015-04-07 Thread Dan Streetman
-off-by: Dan Streetman --- drivers/crypto/nx/Makefile |2 +- drivers/crypto/nx/nx-842-pseries.c | 1603 drivers/crypto/nx/nx-842.c | 1603 3 files changed, 1604 insertions(+), 1604 deletions(-) create

[PATCH 02/11] powerpc: Add ICSWX instruction

2015-04-07 Thread Dan Streetman
for communication with the NX-842 coprocessor on a PowerNV system. Signed-off-by: Dan Streetman --- arch/powerpc/include/asm/icswx.h | 184 ++ arch/powerpc/include/asm/ppc-opcode.h | 13 +++ 2 files changed, 197 insertions(+) create mode 100644 arch/powerpc

Re: [PATCH 09/11] crypto: remove LZO fallback from crypto 842

2015-04-08 Thread Dan Streetman
On Wed, Apr 8, 2015 at 10:16 AM, Herbert Xu wrote: > On Tue, Apr 07, 2015 at 01:34:28PM -0400, Dan Streetman wrote: >> Update the crypto 842 driver to no longer fallback to LZO if the 842 >> hardware is unavailable. Simplify the crpypto 842 driver to remove all >> heade

Re: [PATCH 09/11] crypto: remove LZO fallback from crypto 842

2015-04-08 Thread Dan Streetman
On Wed, Apr 8, 2015 at 10:38 AM, Herbert Xu wrote: > On Wed, Apr 08, 2015 at 10:28:23AM -0400, Dan Streetman wrote: >> >> So, the sw implementation is only for decompression; there's no sw >> compression implementation in these patches. > > As a genera

Re: [PATCH 11/11] crypto: add crypto compression sefltest

2015-04-08 Thread Dan Streetman
On Wed, Apr 8, 2015 at 10:16 AM, Herbert Xu wrote: > On Tue, Apr 07, 2015 at 01:34:30PM -0400, Dan Streetman wrote: >> Add configurable module to perform self-tests on any crypto compression >> driver. >> >> This allows testing any crypto compression driver with any

[PATCH] devicetree: add ibm-nx-powernv details

2015-04-08 Thread Dan Streetman
Add a devicetree description for property nodes for the NX Coprocessor in an IBM PowerPC processor. Signed-off-by: Dan Streetman --- Is this the right location/naming for this file? And did I get the content format right? Should this file be called "ibm-nx-opal.txt" instead

[PATCH] crypto: prevent nx 842 load if no hw driver

2015-05-28 Thread Dan Streetman
zswap) that expect an available crypto compression driver to actually work, this is bad. This patch fixes that, so the 842-nx crypto compression driver won't load if it doesn't have the driver and hardware available to perform the compression. Signed-off-by: Dan Streetman --- drivers/cry

[PATCH] frontswap: allow multiple backends

2015-05-28 Thread Dan Streetman
y previous frontswap implementation that they replace when registering. This allows frontswap to successfully manage multiple implementations by keeping a list of them all. Signed-off-by: Dan Streetman --- drivers/xen/tmem.c| 8 +-- include/linux/frontswap.h | 4 +- mm/frontswap.c

[PATCH 1/2] rcu: introduce list_last_or_null_rcu

2015-05-28 Thread Dan Streetman
ed by rcu. This simply iterates forward through the entire list, to get to the last entry. If the list is empty, it returns NULL. Signed-off-by: Dan Streetman --- include/linux/rculist.h | 21 + 1 file changed, 21 insertions(+) diff --git a/include/linux/rculist.h b/include

[PATCH 2/2] list: introduce list_last_entry_or_null

2015-05-28 Thread Dan Streetman
non-rcu variant of list_last_or_null_rcu Signed-off-by: Dan Streetman --- include/linux/list.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/linux/list.h b/include/linux/list.h index feb773c..38577f89 100644 --- a/include/linux/list.h +++ b/include/linux/list.h

Re: [PATCH 1/2] rcu: introduce list_last_or_null_rcu

2015-05-28 Thread Dan Streetman
On Thu, May 28, 2015 at 4:39 PM, wrote: > On Thu, May 28, 2015 at 04:35:27PM -0400, Dan Streetman wrote: >> Add list_last_or_null_rcu(), to simplify getting the last entry from a >> rcu-protected list. The standard list_last_entry() can't be used as it >> is not rcu-

Re: [PATCH 1/2] rcu: introduce list_last_or_null_rcu

2015-05-28 Thread Dan Streetman
On Thu, May 28, 2015 at 4:42 PM, Dan Streetman wrote: > On Thu, May 28, 2015 at 4:39 PM, wrote: >> On Thu, May 28, 2015 at 04:35:27PM -0400, Dan Streetman wrote: >>> Add list_last_or_null_rcu(), to simplify getting the last entry from a >>> rcu-protected list. T

Re: [PATCH 1/2] rcu: introduce list_last_or_null_rcu

2015-05-28 Thread Dan Streetman
On Thu, May 28, 2015 at 5:05 PM, Steven Rostedt wrote: > On Thu, 28 May 2015 16:35:27 -0400 > Dan Streetman wrote: > >> Add list_last_or_null_rcu(), to simplify getting the last entry from a >> rcu-protected list. The standard list_last_entry() can't be used as it &g

Re: [PATCH 1/2] rcu: introduce list_last_or_null_rcu

2015-05-28 Thread Dan Streetman
On Thu, May 28, 2015 at 5:05 PM, Paul E. McKenney wrote: > On Thu, May 28, 2015 at 04:42:20PM -0400, Dan Streetman wrote: >> On Thu, May 28, 2015 at 4:39 PM, wrote: >> > On Thu, May 28, 2015 at 04:35:27PM -0400, Dan Streetman wrote: >> >> Add list_last_or_null_

Re: [PATCH 1/2] rcu: introduce list_last_or_null_rcu

2015-05-28 Thread Dan Streetman
On Thu, May 28, 2015 at 5:17 PM, Paul E. McKenney wrote: > On Thu, May 28, 2015 at 05:14:25PM -0400, Dan Streetman wrote: >> On Thu, May 28, 2015 at 5:05 PM, Paul E. McKenney >> wrote: >> > On Thu, May 28, 2015 at 04:42:20PM -0400, Dan Streetman wrote: >> >

Re: [PATCH 1/2] rcu: introduce list_last_or_null_rcu

2015-05-28 Thread Dan Streetman
On Thu, May 28, 2015 at 5:16 PM, Paul E. McKenney wrote: > On Thu, May 28, 2015 at 05:12:00PM -0400, Dan Streetman wrote: >> On Thu, May 28, 2015 at 5:05 PM, Steven Rostedt wrote: >> > On Thu, 28 May 2015 16:35:27 -0400 >> > Dan Streetman wrote: >> > &

Re: [PATCH 1/2] rcu: introduce list_last_or_null_rcu

2015-05-28 Thread Dan Streetman
On Thu, May 28, 2015 at 5:28 PM, Steven Rostedt wrote: > On Thu, 28 May 2015 17:19:40 -0400 > Dan Streetman wrote: > >> >> oh, ok. how do we do type-generic inline funcs? return void*? >> > >> > I was hoping that you would tell me. I use macros in th

Re: [PATCH 1/2] rcu: introduce list_last_or_null_rcu

2015-05-28 Thread Dan Streetman
On Thu, May 28, 2015 at 5:30 PM, Dan Streetman wrote: > On Thu, May 28, 2015 at 5:28 PM, Steven Rostedt wrote: >> On Thu, 28 May 2015 17:19:40 -0400 >> Dan Streetman wrote: >> >>> >> oh, ok. how do we do type-generic inline funcs? return void*? >>>

Re: [PATCH 1/2] rcu: introduce list_last_or_null_rcu

2015-05-28 Thread Dan Streetman
On Thu, May 28, 2015 at 6:29 PM, Paul E. McKenney wrote: > On Thu, May 28, 2015 at 05:24:14PM -0400, Dan Streetman wrote: >> On Thu, May 28, 2015 at 5:16 PM, Paul E. McKenney >> wrote: >> > On Thu, May 28, 2015 at 05:12:00PM -0400, Dan Streetman wrote: >> >

Re: [PATCH] module: make perm const, change BUG_ON to BUILD_BUG_ON

2015-06-11 Thread Dan Streetman
On Thu, Jun 11, 2015 at 9:43 PM, Rusty Russell wrote: > Dan Streetman writes: >> Change the struct kernel_param.perm field to a const, as it should never >> be changed. Add inline functions that return a const value, which are >> compiled out, for kparam_[un]block_sysfs_r/w

[PATCH 0/2] remove nx842.h from include/linux

2015-06-12 Thread Dan Streetman
ectly get the required working memory size from the NX 842 hw driver. This cleans up include/linux/ by 1 file, and it saves some memory by reducing the 842-nx working memory size down to exactly what the NX 842 platform driver requires. Dan Streetman (2): crypto: move include/linux/nx842.h into dr

[PATCH 1/2] crypto: move include/linux/nx842.h into drivers/crypto/nx/nx-842.h

2015-06-12 Thread Dan Streetman
42-nx" crypto compression driver, since the direct nx-842 api is very limited in the buffer alignments and sizes that it will accept, and the crypto compression interface handles those limitations and allows any alignment and size buffers. Signed-off-by: Dan Streetman --- M

[PATCH 2/2] crypto: replace NX842_MEM_COMPRESS with function

2015-06-12 Thread Dan Streetman
to the specific sizeof() amount, as well as using the specific loaded platform driver's required amount, instead of the maximum of both. Signed-off-by: Dan Streetman --- drivers/crypto/nx/nx-842-crypto.c | 2 +- drivers/crypto/nx/nx-842-powernv.c | 11 +++ drivers/crypto/nx/n

[PATCH] module: add per-module param_lock

2015-06-12 Thread Dan Streetman
ck, or if the module is built-in, it locks the built-in mutex. Suggested-by: Rusty Russell Signed-off-by: Dan Streetman --- You suggested giving direct access to the mutex, but this patch just provides lock/unlock functions to the appropriate mutex, which seemed cleaner and clearer to me, but if y

Re: [PATCH] zswap: dynamic pool creation

2015-06-17 Thread Dan Streetman
On Wed, Jun 10, 2015 at 4:54 PM, Dan Streetman wrote: > On Thu, Jun 4, 2015 at 8:13 AM, Dan Streetman wrote: >> On Thu, Jun 4, 2015 at 8:02 AM, Dan Streetman wrote: >>> Add dynamic creation of pools. Move the static crypto compression >>> per-cpu transforms into e

Re: linux-next: build failure after merge of the modules tree

2015-06-24 Thread Dan Streetman
On Tue, Jun 23, 2015 at 9:37 PM, Stephen Rothwell wrote: > Hi Rusty, > > After merging the modules tree, today's linux-next build (x86_64 > allmodconfig) failed like this: that's weird. Are you sure it failed during allmodconfig? I can see why it would fail like that if CONFIG_MODULES ins't def

[PATCH] modules: only use mod->param_lock if CONFIG_MODULES

2015-06-24 Thread Dan Streetman
-in param_lock. Since "struct module" isn't defined if !CONFIG_MODULES, we must leave out the code that returns mod->param_lock if there are no modules. Signed-off-by: Dan Streetman --- kernel/params.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-)

Re: [RFC] module: add per-module params lock

2015-06-05 Thread Dan Streetman
On Thu, Jun 4, 2015 at 8:42 PM, Rusty Russell wrote: > Dan Streetman writes: >> I sent this as part of a patch series a few days ago, which I was asked to >> break up, so I'm sending only this patch as a RFC now, until I work out >> the details of the zswap patch tha

[PATCH 1/5] zpool: add zpool_has_pool()

2015-06-02 Thread Dan Streetman
runtime creation of zswap zpools. Signed-off-by: Dan Streetman --- include/linux/zpool.h | 2 ++ mm/zpool.c| 25 + 2 files changed, 27 insertions(+) diff --git a/include/linux/zpool.h b/include/linux/zpool.h index 56529b3..31b79e2 100644 --- a/include/linux

[PATCH 0/5] zswap: make params runtime changeable

2015-06-02 Thread Dan Streetman
since each module will take its own mutex and never conflict with another module's param changes. Dan Streetman (5): zpool: add zpool_has_pool() module: add per-module params lock zswap: runtime enable/disable zswap: dynamic pool creation zswap: change zpool/compressor at runtime

[PATCH 2/5] module: add per-module params lock

2015-06-02 Thread Dan Streetman
They are thus replaced with simplified functions that clearly indicate that all params for a module are being blocked, both for read and write access. Signed-off-by: Dan Streetman --- arch/um/drivers/hostaudio_kern.c | 20 +++ drivers/net/ethernet/myricom/myri10ge/

[PATCH 3/5] zswap: runtime enable/disable

2015-06-02 Thread Dan Streetman
Change the "enabled" parameter to be configurable at runtime. Remove the enabled check from init(), and move it to the frontswap store() function; when enabled, pages will be stored, and when disabled, pages won't be stored. Signed-off-by: Dan Streetman --- mm/zswap.c | 13 +

[PATCH 4/5] zswap: dynamic pool creation

2015-06-02 Thread Dan Streetman
Add dynamic creation of pools. Move the static crypto compression per-cpu transforms into each pool. Add a pointer to zswap_entry to the pool it's in. This is required by the following patch which enables changing the zswap zpool and compressor params at runtime. Signed-off-by: Dan Stre

[PATCH 5/5] zswap: change zpool/compressor at runtime

2015-06-02 Thread Dan Streetman
pool(s) are removed once they become empty. Signed-off-by: Dan Streetman --- mm/zswap.c | 135 +++-- 1 file changed, 122 insertions(+), 13 deletions(-) diff --git a/mm/zswap.c b/mm/zswap.c index 6eb0d93..af74bd2 100644 --- a/mm/zswap.c +++ b

[PATCH] zpool: remove zpool_evict

2015-06-02 Thread Dan Streetman
ll the zpool_ops->evict function, when it needs to evict a page. This avoids a spinlock and list search in zpool for each eviction. Signed-off-by: Dan Streetman --- include/linux/zpool.h | 5 ++--- mm/zbud.c | 23 +++ mm/zpool.c

[PATCH] MAINTAINERS: add zpool

2015-06-02 Thread Dan Streetman
Add entry for zpool to MAINTAINERS file. Signed-off-by: Dan Streetman --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e308718..5c0f13b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11056,6 +11056,13 @@ L: zd1211-d

[PATCH] crypto: fix nx-842 pSeries driver minimum buffer size

2015-06-02 Thread Dan Streetman
ot; marker. With the minimum buffer size set too high, some highly compressed buffers were being padded and the hw was incorrectly rejecting them; this sets the minimum correctly so there will be no incorrect padding. Signed-off-by: Dan Streetman --- drivers/crypto/nx/nx-842-pseries.c | 7 ++---

Re: [PATCH 3/5] zswap: runtime enable/disable

2015-06-02 Thread Dan Streetman
On Tue, Jun 2, 2015 at 4:11 PM, Seth Jennings wrote: > On Tue, Jun 02, 2015 at 11:11:55AM -0400, Dan Streetman wrote: >> Change the "enabled" parameter to be configurable at runtime. Remove >> the enabled check from init(), and move it to the frontswap store() >>

Re: [PATCH 0/5] zswap: make params runtime changeable

2015-06-02 Thread Dan Streetman
On Tue, Jun 2, 2015 at 4:26 PM, Seth Jennings wrote: > On Tue, Jun 02, 2015 at 11:11:52AM -0400, Dan Streetman wrote: >> This patch series allows setting all zswap params at runtime, instead >> of only being settable at boot-time. >> >> The changes to zswap are rather

[PATCH] zswap: runtime enable/disable

2015-06-02 Thread Dan Streetman
om 2 years ago: http://lkml.iu.edu/hypermail/linux/kernel/1307.2/04289.html Suggested-by: Seth Jennings Signed-off-by: Dan Streetman --- Documentation/vm/zswap.txt | 18 -- mm/zswap.c | 12 +--- 2 files changed, 21 insertions(+), 9 deletions(-) diff --gi

Re: [PATCH] MAINTAINERS: add zpool

2015-06-02 Thread Dan Streetman
On Tue, Jun 2, 2015 at 5:09 PM, Joe Perches wrote: > On Tue, 2015-06-02 at 12:56 -0400, Dan Streetman wrote: >> Add entry for zpool to MAINTAINERS file. > [] >> diff --git a/MAINTAINERS b/MAINTAINERS > [] >> @@ -11056,6 +11056,13 @@ L: zd1211-d...@lists.sourceforg

Re: [PATCHv2] frontswap: allow multiple backends

2015-06-02 Thread Dan Streetman
On Tue, Jun 2, 2015 at 5:06 PM, Andrew Morton wrote: > On Mon, 1 Jun 2015 10:22:24 -0400 Dan Streetman wrote: > >> Change frontswap single pointer to a singly linked list of frontswap >> implementations. Update Xen tmem implementation as register no longer >> returns a

[PATCHv3] frontswap: allow multiple backends

2015-06-02 Thread Dan Streetman
y previous frontswap implementation that they replace when registering. This allows frontswap to successfully manage multiple implementations by keeping a list of them all. Signed-off-by: Dan Streetman --- Changes since v2: -initialize bitmaps in frontswap_register_ops -fix comment capitalization d

Re: [PATCH] MAINTAINERS: add zpool

2015-06-03 Thread Dan Streetman
On Tue, Jun 2, 2015 at 11:56 PM, Sergey Senozhatsky wrote: > On (06/02/15 14:30), Joe Perches wrote: >> > >> +ZPOOL COMPRESSED PAGE STORAGE API >> > >> +M: Dan Streetman >> > >> +L: linux...@kvack.org >> > >> +S: Maintain

Re: [PATCH] crypto: prevent nx 842 load if no hw driver

2015-06-03 Thread Dan Streetman
On Wed, Jun 3, 2015 at 1:08 AM, Herbert Xu wrote: > On Thu, May 28, 2015 at 04:21:31PM -0400, Dan Streetman wrote: >> Change the nx-842 common driver to wait for loading of both platform >> drivers, and fail loading if the platform driver pointer is not set. >> Add an indepe

[PATCH] zswap: dynamic pool creation

2015-06-04 Thread Dan Streetman
Add dynamic creation of pools. Move the static crypto compression per-cpu transforms into each pool. Add a pointer to zswap_entry to the pool it's in. This is required by a separate patch which enables changing the zswap zpool and compressor params at runtime. Signed-off-by: Dan Stre

Re: [PATCH] zswap: dynamic pool creation

2015-06-04 Thread Dan Streetman
On Thu, Jun 4, 2015 at 8:02 AM, Dan Streetman wrote: > Add dynamic creation of pools. Move the static crypto compression > per-cpu transforms into each pool. Add a pointer to zswap_entry to > the pool it's in. Seth, as far as the design, from your previous comments I assume you

[RFC] module: add per-module params lock

2015-06-04 Thread Dan Streetman
ram mutex. They are thus replaced with simplified functions that clearly indicate that all params for a module are being blocked, both for read and write access. Signed-off-by: Dan Streetman --- arch/um/drivers/hostaudio_kern.c | 20 +++ drivers/net/ethernet/myricom/myri10ge/myr

Re: [PATCH 1/2] rcu: introduce list_last_or_null_rcu

2015-05-29 Thread Dan Streetman
On Thu, May 28, 2015 at 6:29 PM, Paul E. McKenney wrote: > On Thu, May 28, 2015 at 05:24:14PM -0400, Dan Streetman wrote: >> On Thu, May 28, 2015 at 5:16 PM, Paul E. McKenney >> wrote: >> > On Thu, May 28, 2015 at 05:12:00PM -0400, Dan Streetman wrote: >> >

[PATCH] zpool: change pr_info to pr_debug

2015-05-29 Thread Dan Streetman
Change the pr_info() calls to pr_debug(). There's no need for the extra verbosity in the log. Also change the msg formats to be consistent. Signed-off-by: Dan Streetman --- mm/zpool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/zpool.c b/mm/zpool.c

[PATCH] zpool: add EXPORT_SYMBOL for functions

2015-05-29 Thread Dan Streetman
Export the zpool functions that should be exported. Signed-off-by: Dan Streetman --- mm/zpool.c | 9 + 1 file changed, 9 insertions(+) diff --git a/mm/zpool.c b/mm/zpool.c index 6b1f103..884659d 100644 --- a/mm/zpool.c +++ b/mm/zpool.c @@ -188,6 +188,7 @@ struct zpool

[PATCH] zpool: add zpool_has_pool()

2015-05-29 Thread Dan Streetman
Add zpool_has_pool() function, indicating if the specified type of zpool is available (i.e. zsmalloc or zbud). This allows checking if a pool is available, without actually trying to allocate it, similar to crypto_has_alg(). Signed-off-by: Dan Streetman --- include/linux/zpool.h | 2 ++ mm

Re: [PATCH] zpool: add EXPORT_SYMBOL for functions

2015-05-29 Thread Dan Streetman
On Fri, May 29, 2015 at 11:22 AM, Christoph Hellwig wrote: > On Fri, May 29, 2015 at 11:09:32AM -0400, Dan Streetman wrote: >> Export the zpool functions that should be exported. > > Why? because they are available for public use, per zpool.h? If, e.g., zram ever started using

Re: [PATCH] zpool: add EXPORT_SYMBOL for functions

2015-05-29 Thread Dan Streetman
On Fri, May 29, 2015 at 12:30 PM, Christoph Hellwig wrote: > On Fri, May 29, 2015 at 11:36:05AM -0400, Dan Streetman wrote: >> because they are available for public use, per zpool.h? If, e.g., >> zram ever started using zpool, it would need them exported, wouldn't >>

Re: [PATCH] zpool: add zpool_has_pool()

2015-06-01 Thread Dan Streetman
On Fri, May 29, 2015 at 5:37 PM, Andrew Morton wrote: > On Fri, 29 May 2015 11:12:18 -0400 Dan Streetman wrote: > >> Add zpool_has_pool() function, indicating if the specified type of zpool >> is available (i.e. zsmalloc or zbud). This allows checking if a pool is >> ava

Re: [PATCH] frontswap: allow multiple backends

2015-06-01 Thread Dan Streetman
On Fri, May 29, 2015 at 6:07 PM, Andrew Morton wrote: > On Thu, 28 May 2015 16:28:37 -0400 Dan Streetman wrote: > >> Change frontswap single pointer to a singly linked list of frontswap >> implementations. Update Xen tmem implementation as register no longer >> returns a

[PATCHv2] frontswap: allow multiple backends

2015-06-01 Thread Dan Streetman
y previous frontswap implementation that they replace when registering. This allows frontswap to successfully manage multiple implementations by keeping a list of them all. Suggested-by: Andrew Morton Signed-off-by: Dan Streetman --- Changes since v1, all per Andrew's suggestions: -comments add

Re: [PATCH 1/2] rcu: introduce list_last_or_null_rcu

2015-06-01 Thread Dan Streetman
On Mon, Jun 1, 2015 at 2:17 PM, Paul E. McKenney wrote: > On Fri, May 29, 2015 at 09:40:43AM -0400, Dan Streetman wrote: >> On Thu, May 28, 2015 at 6:29 PM, Paul E. McKenney >> wrote: >> > On Thu, May 28, 2015 at 05:24:14PM -0400, Dan Streetman wrote: >> >> O

Re: [RFC] module: add per-module params lock

2015-06-09 Thread Dan Streetman
On Mon, Jun 8, 2015 at 5:13 PM, Rusty Russell wrote: > Dan Streetman writes: >> On Thu, Jun 4, 2015 at 8:42 PM, Rusty Russell wrote: >>> Dan Streetman writes: >>>> I sent this as part of a patch series a few days ago, which I was asked to >>>> break u

[PATCH] module: make perm const, change BUG_ON to BUILD_BUG_ON

2015-06-10 Thread Dan Streetman
sense and even causes compile failures with some compilers. */ So instead, this copies the idea from __param_check() to add inline constant functions to check the param permissions. That way no extra bits are needed. Signed-off-by: Dan Streetman --- include/linux/mod

Re: [PATCH] zswap: dynamic pool creation

2015-06-10 Thread Dan Streetman
On Thu, Jun 4, 2015 at 8:13 AM, Dan Streetman wrote: > On Thu, Jun 4, 2015 at 8:02 AM, Dan Streetman wrote: >> Add dynamic creation of pools. Move the static crypto compression >> per-cpu transforms into each pool. Add a pointer to zswap_entry to >> the pool it's i

Re: [RFC][PATCH 4/5] mm/zpool: allow NULL `zpool' pointer in zpool_destroy_pool()

2015-06-10 Thread Dan Streetman
nozhatsky > Reported-by: Andrew Morton > LKML-reference: https://lkml.org/lkml/2015/6/8/583 Acked-by: Dan Streetman > --- > mm/zpool.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/mm/zpool.c b/mm/zpool.c > index bacdab6..2f59b90 100644 > ---

  1   2   3   4   5   6   >