Re: [ANNOUNCE] util-linux v2.22-rc1

2012-07-27 Thread Tom Gundersen
On Fri, Jul 27, 2012 at 9:37 AM, Karel Zak wrote: > > The util-linux release v2.22-rc1 is available at > >ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.22/ > > Feedback and bug reports, as always, are welcomed. I'm still getting an empty /usr/share/man/ru/man1/, don't know if I'm doing s

[PATCH v3] x86: simplefb: avoid overflow

2013-10-01 Thread Tom Gundersen
On my MacBook Air lfb_size is 4M, which makes the bitshit overflow, meaning we fall back to efifb unnecessarily. Cast to u64 to avoid the overflow. Signed-off-by: Tom Gundersen Reviewed-by: David Herrmann Cc: Geert Uytterhoeven Cc: H. Peter Anvin Cc: Ingo Molnar Cc: Stephen Warren , Cc

Re: [PATCH v3] simplefb: print some info about the registered fb

2013-10-01 Thread Tom Gundersen
On Sat, Sep 7, 2013 at 4:08 PM, Tom Gundersen wrote: > This is similar to the output printed by efifb. > > Signed-off-by: Tom Gundersen > Acked-by: Stephen Warren > Cc: David Herrmann > --- > v2: also print smem_len, as requested by David > v3: don't cast

Re: [PATCH] input: i8042 - add PNP modaliases

2013-10-04 Thread Tom Gundersen
On Wed, Sep 4, 2013 at 11:27 AM, Tom Gundersen wrote: > This allows the module to be autoloaded in the common case. > > In order to work on non-PnP systems the module should be compiled in or loaded > unconditionally at boot (c.f. modules-load.d(5)), as before. > > Cc: Mat

[REGRESSION]: bcma: fix handling of big addrl

2013-09-17 Thread Tom Gundersen
The above commit causes a regression for me. Booting with initcall_debug shows that bcma_modinit never returns: calling bcma_modinit+0x0/0x33 [bcma] @ 210 bcma-pci-bridge :02:00.0: enabling device ( -> 0002) bcma: bus0: Found chip with id 0xA8D8, rev 0x01 and package 0x08 Which means th

Re: [REGRESSION]: bcma: fix handling of big addrl

2013-09-17 Thread Tom Gundersen
On Tue, Sep 17, 2013 at 10:02 PM, Hauke Mehrtens wrote: > On 09/17/2013 09:11 PM, Tom Gundersen wrote: >> The above commit causes a regression for me. >> >> Booting with initcall_debug shows that bcma_modinit never returns: >> >> calling bcma_modinit+0x0/0x33 [bc

[PATCH] input: i8042 - add PNP modaliases

2013-09-04 Thread Tom Gundersen
This allows the module to be autoloaded in the common case. In order to work on non-PnP systems the module should be compiled in or loaded unconditionally at boot (c.f. modules-load.d(5)), as before. Cc: Matthew Garrett Cc: Dmitry Torokhov Signed-off-by: Tom Gundersen --- This appears to

[PATCH 1/2][usbutils] lsusb: port to hwdb

2013-09-04 Thread Tom Gundersen
12cbd60..f543240 100644 --- a/names.c +++ b/names.c @@ -3,6 +3,7 @@ * names.c -- USB name database manipulation routines * * Copyright (C) 1999, 2000 Thomas Sailer (sai...@ife.ee.ethz.ch) + * Copyright (C) 2013 Tom Gundersen (t...@jklm.no) * * This program is f

[PATCH RESEND][pciutils] libpci: pci_id_lookup - add udev/hwdb support

2013-09-04 Thread Tom Gundersen
This lets you select hwdb support at compile time. hwdb is an efficient hardware database shipped with recent versions of udev. It contains among other sources pci.ids so querying hwdb rather than reading pci.ids directly should give the same result. Ideally Linux distros using udev could stop

Re: [PATCH RESEND][pciutils] libpci: pci_id_lookup - add udev/hwdb support

2013-09-04 Thread Tom Gundersen
On Wed, Sep 4, 2013 at 3:57 PM, Martin Mares wrote: > Hello! > > First of all: Sorry for not replying to the first mail. I do not follow > linux-pci too much these days (or, I do that in big batches). No problem, I guessed as much. >> This lets you select hwdb support at compile time. >> >> hwdb

[PATCH] x86: simplefb: avoid overflow

2013-09-06 Thread Tom Gundersen
lfb_size can easily be say 4M, which would make the bitshit overflow and the test fail. Signed-off-by: Tom Gundersen Cc: David Herrmann Cc: H. Peter Anvin --- arch/x86/kernel/sysfb_simplefb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/sysfb_simplefb.c

[PATCH] simplefb: print some info about the registered fb

2013-09-06 Thread Tom Gundersen
This is similar to the output printed by efifb. Signed-off-by: Tom Gundersen Cc: Stephen Warren Cc: David Herrmann --- drivers/video/simplefb.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c index 8d78106..4196686 100644 --- a

[PATCH] simplefb: print some info about the registered fb

2013-09-06 Thread Tom Gundersen
This is similar to the output printed by efifb. Signed-off-by: Tom Gundersen Cc: Stephen Warren Cc: David Herrmann --- Hi, Sorry for the resend, got the ml address wrong. -t drivers/video/simplefb.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/video/simplefb.c b

Re: [PATCH] x86: simplefb: avoid overflow

2013-09-06 Thread Tom Gundersen
On Fri, Sep 6, 2013 at 1:24 PM, David Herrmann wrote: > Hi > > On Fri, Sep 6, 2013 at 12:59 PM, Geert Uytterhoeven > wrote: >> On Fri, Sep 6, 2013 at 11:55 AM, David Herrmann >> wrote: >>> On Fri, Sep 6, 2013 at 11:32 AM, Tom Gundersen wrote: >>>&g

[REGRESSION] v3.12-rc1: i915_driver_load oopses when sysfb enabled

2013-09-06 Thread Tom Gundersen
Hi guys, With current git (v3.11-5058-g57d7309) I get the following oops: [5.434312] [ cut here ] [5.434318] WARNING: CPU: 2 PID: 199 at arch/x86/mm/ioremap.c:171 __ioremap_caller+0x2e3/0x390() [5.434321] Info: mapping multiple BARs. Your kernel is fine. [5

[PATCH v2] simplefb: print some info about the registered fb

2013-09-07 Thread Tom Gundersen
This is similar to the output printed by efifb. Signed-off-by: Tom Gundersen Acked-by: Stephen Warren Cc: David Herrmann --- v2: also print smem_len as requested by David drivers/video/simplefb.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/video/simplefb.c b/drivers

Re: [REGRESSION] v3.12-rc1: i915_driver_load oopses when sysfb enabled

2013-09-07 Thread Tom Gundersen
On Sat, Sep 7, 2013 at 2:40 PM, David Herrmann wrote: > On Fri, Sep 6, 2013 at 2:10 PM, Tom Gundersen wrote: >> Hi guys, >> >> With current git (v3.11-5058-g57d7309) I get the following oops: >> >> [5.434312] [ cut here ] >> [

[PATCH v3] simplefb: print some info about the registered fb

2013-09-07 Thread Tom Gundersen
This is similar to the output printed by efifb. Signed-off-by: Tom Gundersen Acked-by: Stephen Warren Cc: David Herrmann --- v2: also print smem_len, as requested by David v3: don't cast, as requested by Geert drivers/video/simplefb.c | 8 1 file changed, 8 insertions(+) diff

Re: [REGRESSION] v3.12-rc1: i915_driver_load oopses when sysfb enabled

2013-09-07 Thread Tom Gundersen
Hi David, On Sat, Sep 7, 2013 at 11:57 PM, Tom Gundersen wrote: > On Sat, Sep 7, 2013 at 4:30 PM, David Herrmann wrote: >> Attached are two patches. The first one should fix this issue, the >> second one is the rebased ioremap_wc() patch from the other thread. >> >> D

Re: [REGRESSION] v3.12-rc1: i915_driver_load oopses when sysfb enabled

2013-09-08 Thread Tom Gundersen
On Sun, Sep 8, 2013 at 2:13 AM, David Herrmann wrote: > Hi > > On Sun, Sep 8, 2013 at 1:22 AM, Tom Gundersen wrote: >> Hi David, >> >> On Sat, Sep 7, 2013 at 11:57 PM, Tom Gundersen wrote: >>> On Sat, Sep 7, 2013 at 4:30 PM, David Herrmann >>> wr

[BUG?] HID: uhid: add devname module alias

2013-09-09 Thread Tom Gundersen
Hi Marcel, The above commit (60cbd53 in mainline) doesn't appear to work for me. I.e., depmod does not create an entry in modules.devname and hence no device node is created on boot. If I understand correctly, you'd also need to create the correct "char-major--" alias (which I don't think you can

[BUG?] staging: zram: Add auto loading of module if user opens /dev/zram.

2013-09-09 Thread Tom Gundersen
Hi Konrad, The above commit (c70bda9 in mainline) doesn't appear to work for me. I.e., depmod does not create an entry in modules.devname and hence no device node is created on boot. If I understand correctly, you'd also need to create the correct "char-major--" alias. But I don't really see how

Re: [PATCH] HID: uhid: allocate static minor

2013-09-09 Thread Tom Gundersen
on-demand > auto-loading > > However, uhid uses dynamic minor numbers so this doesn't actually work. We > need to load uhid to know which minor it's going to use. > > Hence, allocate a static minor (just like uinput does) and we're good > to go. > > Repo

[PATCH] depmod: warn on invalid devname specification

2013-09-09 Thread Tom Gundersen
During the last merge window (3.12) a couple of modules gained devname aliases, but without the necessary major and minor information. These were then silently ignored when generating modules.devname. Complain loudly to avoid such errors sneaking in undetected in the future: depmod: ERROR: Mo

[PATCH] cuse: creat 'dead' device node for on-demand module loading

2013-09-09 Thread Tom Gundersen
This allows udev (or more recently systemd-tmpfiles) to create /dev/cuse on boot, in the same way as /dev/fuse is currently created, and the corresponding module to be loaded on first access. The corresponding functionalty was introduced for fuse in commit 578454f. Signed-off-by: Tom Gundersen

[PATCH v2] cuse: creat 'dead' device node for on-demand module loading

2013-09-09 Thread Tom Gundersen
This allows udev (or more recently systemd-tmpfiles) to create /dev/cuse on boot, in the same way as /dev/fuse is currently created, and the corresponding module to be loaded on first access. The corresponding functionalty was introduced for fuse in commit 578454f. Signed-off-by: Tom Gundersen

Re: [PATCH] modules: add support for soft module dependencies

2013-09-10 Thread Tom Gundersen
On Tue, Sep 10, 2013 at 4:01 PM, Lucas De Marchi wrote: > On Wed, Jul 24, 2013 at 11:03 PM, Herbert Xu > wrote: >> On Thu, Jul 25, 2013 at 09:32:02AM +0930, Rusty Russell wrote: >>> Herbert Xu writes: >>> > Hi Rusty: >>> > >>> > I don't know why this patch never went into the kernel, even >>> >

[PATCH] config: also parse softdeps from modules

2013-09-10 Thread Tom Gundersen
This information can be found in /lib/modules/`uname -r`/modules.softdep, and has only recently been exported by the kernel. Also remove the advice about copying modules.softdep to /lib/modules as it is not clear how to do this correctly with several kernels installed with potentially conflicting

Re: [PATCH] usb: ohci/uhci - add soft dependencies on ehci_hcd

2013-09-10 Thread Tom Gundersen
Hi Alan, On Tue, Sep 10, 2013 at 7:02 PM, Alan Stern wrote: > On Tue, 10 Sep 2013, Tom Gundersen wrote: > >> Support for specifying soft dependencies in the modules themselves was >> introduced in commit 7cb14ba. >> >> In Arch we have always been shipping a module.d

[PATCH] usb: ohci/uhci - add soft dependencies on ehci_hcd

2013-09-10 Thread Tom Gundersen
fragment generated by depmod. Signed-off-by: Tom Gundersen Cc: Alan Stern Cc: Greg Kroah-Hartman --- drivers/usb/host/ohci-hcd.c | 1 + drivers/usb/host/uhci-hcd.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 8f6b695

Re: [PATCH] usb: ohci/uhci - add soft dependencies on ehci_hcd

2013-09-10 Thread Tom Gundersen
On Tue, Sep 10, 2013 at 7:31 PM, Alan Stern wrote: > On Tue, 10 Sep 2013, Tom Gundersen wrote: > >> Hi Alan, >> >> On Tue, Sep 10, 2013 at 7:02 PM, Alan Stern >> wrote: >> > On Tue, 10 Sep 2013, Tom Gundersen wrote: >> > >> >> Suppor

[PATCH v2] usb: ohci/uhci - add soft dependencies on ehci_pci

2013-09-10 Thread Tom Gundersen
fragment generated by depmod. Signed-off-by: Tom Gundersen Cc: Alan Stern Cc: Greg Kroah-Hartman --- v2: change the dependencies to *_pci, as suggested by Alan drivers/usb/host/ohci-pci.c | 1 + drivers/usb/host/uhci-pci.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/usb/host

Re: [PATCH 1/2][usbutils] lsusb: port to hwdb

2013-09-12 Thread Tom Gundersen
On Fri, Sep 13, 2013 at 12:47 AM, Greg Kroah-Hartman wrote: > On Wed, Sep 04, 2013 at 02:47:07PM +0200, Tom Gundersen wrote: >> Most of the information in usb.ids is now contained in udev's hwdb. Read the >> information from the hwdb instead of usb.ids. >> >> This

Re: [PATCH RESEND][pciutils] libpci: pci_id_lookup - add udev/hwdb support

2013-09-13 Thread Tom Gundersen
On Wed, Sep 4, 2013 at 4:59 PM, Tom Gundersen wrote: > On Wed, Sep 4, 2013 at 3:57 PM, Martin Mares wrote: >> Hello! >> >> First of all: Sorry for not replying to the first mail. I do not follow >> linux-pci too much these days (or, I do that in big batches). > &

[PATCH] input: allow SERIO=m even without EXPERT=y

2013-09-02 Thread Tom Gundersen
EXPERT. Moreover, building these drivers as modules gets rid of the following ugly error during boot: [2.337745] i8042: PNP: No PS/2 controller found. Probing ports directly. [3.439537] i8042: No controller found Signed-off-by: Tom Gundersen Cc: Dmitry Torokhov --- drivers/input

Re: [PATCH] input: allow SERIO=m even without EXPERT=y

2013-09-02 Thread Tom Gundersen
On Mon, Sep 2, 2013 at 11:30 PM, Geert Uytterhoeven wrote: > On Mon, Sep 2, 2013 at 11:01 PM, richard -rw- weinberger > wrote: >> On Mon, Sep 2, 2013 at 8:47 PM, Tom Gundersen wrote: >>> There is plenty of consumer hardware (e.g., mac books) that does not use >>>

[PATCH 2/2] input: allow MOUSEDEV=m even without EXPERT=y

2013-09-03 Thread Tom Gundersen
Moust (if not all) modern software, including X, uses /dev/eventX rather than the legacy /dev/mouseX devices. It therefore makes sense for general-purpose (distro) kernels to use MOUSEDV=m (or even n), so let's drop the EXPERT=y requirement. Signed-off-by: Tom Gundersen Cc: Dmitry Tor

Re: [PATCH 1/2] input: allow SERIO=m even without EXPERT=y

2013-09-03 Thread Tom Gundersen
Sorry, this resend was accidental, please ignore. I only intended to send patch 2/2. On Tue, Sep 3, 2013 at 3:40 PM, Tom Gundersen wrote: > There is plenty of consumer hardware (e.g., mac books) that does not use > AT keyboards or PS/2 mice. It therefore makes sense for distro kernels >

[PATCH 1/2] input: allow SERIO=m even without EXPERT=y

2013-09-03 Thread Tom Gundersen
EXPERT. Moreover, building these drivers as modules gets rid of the following ugly error during boot: [2.337745] i8042: PNP: No PS/2 controller found. Probing ports directly. [3.439537] i8042: No controller found Signed-off-by: Tom Gundersen Cc: Dmitry Torokhov --- drivers/input

Re: [PATCH] input: allow SERIO=m even without EXPERT=y

2013-09-03 Thread Tom Gundersen
On Tue, Sep 3, 2013 at 5:02 PM, Matthew Garrett wrote: > On Mon, Sep 02, 2013 at 08:47:10PM +0200, Tom Gundersen wrote: >> There is plenty of consumer hardware (e.g., mac books) that does not use >> AT keyboards or PS/2 mice. It therefore makes sense for distro kernels >>

Re: [PATCH v2 0/6] Chainsaw efivars.c

2013-04-16 Thread Tom Gundersen
Hi Matt, On Tue, Apr 16, 2013 at 11:41 PM, Matt Fleming wrote: > This patch series introduces the new efivar_entry API, and splits out the > major > parts of efivars.c into new files. In particular, having the efivarfs code > under fs/ allows building an efivarfs.ko module, which means mount(8)

Re: [REGRESSION] 3.10.{6,7} crashes on network activity

2013-08-19 Thread Tom Gundersen
On Tue, Aug 20, 2013 at 8:03 AM, Greg Kroah-Hartman wrote: > On Tue, Aug 20, 2013 at 07:59:47AM +0800, Tom Gundersen wrote: >> Hi guys, >> >> Starting with 3.10.6 (and still present in .7) I get an oops on >> connecting to the network. >> >> The attached

Re: [REGRESSION] 3.10.{6,7} crashes on network activity

2013-08-20 Thread Tom Gundersen
On Tue, Aug 20, 2013 at 12:56 PM, Felix Fietkau wrote: > On 2013-08-20 2:28 AM, Greg Kroah-Hartman wrote: >> On Tue, Aug 20, 2013 at 08:26:11AM +0800, Tom Gundersen wrote: >>> On Tue, Aug 20, 2013 at 8:03 AM, Greg Kroah-Hartman >>> wrote: >>> > On Tue

Re: [REGRESSION] 3.10.{6,7} crashes on network activity

2013-08-20 Thread Tom Gundersen
On Tue, Aug 20, 2013 at 4:15 PM, Arend van Spriel wrote: > On 08/20/2013 06:56 AM, Felix Fietkau wrote: >> >> On 2013-08-20 2:28 AM, Greg Kroah-Hartman wrote: >>> >>> On Tue, Aug 20, 2013 at 08:26:11AM +0800, Tom Gundersen wrote: >>>> >>>

Re: [systemd-devel] [PATCH] Change CONFIG_FW_LOADER_USER_HELPER to default n and don't select it

2013-08-06 Thread Tom Gundersen
hange would break new kernels as well >> as old kernels. >> >> Since the kernel apparently can't count on reasonable userspace >> support, turn this thing off by default. >> >> commit a3bd8447be4ea2ce230eb8ae0e815c04d85fa15a >> Author: Tom Gundersen >

Re: [systemd-devel] [PATCH] Change CONFIG_FW_LOADER_USER_HELPER to default n and don't select it

2013-08-06 Thread Tom Gundersen
On Tue, Aug 6, 2013 at 11:11 AM, Tom Gundersen wrote: > On Tue, Aug 6, 2013 at 10:20 AM, Maarten Lankhorst > wrote: >> Op 05-08-13 18:29, Andy Lutomirski schreef: >>> The systemd commit below can delay firmware loading by multiple >>> minutes if CONFIG_FW_LOADER_US

Re: [PATCH 01/13] kdbus: add documentation

2015-01-26 Thread Tom Gundersen
Hi Michael, On Mon, Jan 26, 2015 at 3:42 PM, Michael Kerrisk (man-pages) wrote: > 2. Is the API to be invoked directly by applications or is intended to >be used only behind specific libraries? You seem to be saying that >the latter is the case (here, I'm referring to your comment above >

Re: [GIT PULL] kdbus for 4.1-rc1

2015-04-16 Thread Tom Gundersen
On Wed, Apr 15, 2015 at 2:09 PM, Jiri Kosina wrote: > On Wed, 15 Apr 2015, Greg Kroah-Hartman wrote: > >> 'systemctl reboot' calls a bunch of other things to determine if you >> have local access to the machine, or permissions to reboot the machine >> (i.e. CAP_SYS_BOOT), and other things that pol

Re: [GIT PULL] kdbus for 4.1-rc1

2015-04-16 Thread Tom Gundersen
On 04/15/2015 10:22 PM, Andy Lutomirski wrote: > On Wed, Apr 15, 2015 at 9:44 AM, Havoc Pennington wrote: >> That is, with dbus if I send a broadcast message, then send a unicast >> request to another client, then drop the connection causing the bus to >> broadcast that I've dropped; then the othe

Re: [PATCH v4 00/14] Add kdbus implementation

2015-03-31 Thread Tom Gundersen
On Tue, Mar 31, 2015 at 3:58 PM, Andy Lutomirski wrote: > On Mon, Mar 30, 2015 at 9:56 AM, David Herrmann wrote: >> Hi >> >> On Wed, Mar 25, 2015 at 7:12 PM, Andy Lutomirski wrote: >>> On Wed, Mar 25, 2015 at 10:29 AM, David Herrmann >>> wrote: >> [...] > I could be wrong about the lack of

Re: [RFC] Simplifying kernel configuration for distro issues

2012-07-18 Thread Tom Gundersen
Linus, [sorry for the messed up threading, I could not figure out how to make gmail use in-relp-to] > The point I'm slowly getting to is that I would actually love to have > *distro* Kconfig-files, where the distribution would be able to say > "These are the minimums I *require* to work". So we'd

Re: [PATCH 0/4] Provide netdev naming-policy via sysfs

2014-02-27 Thread Tom Gundersen
over, it would be useful for udev to reliably know if some other userspace process already renamed a device, so we know not to touch it. This can easily happen for instance if some renaming happens in the initrd or from script called from udev rules. Acked-by: Tom Gundersen > David Herrmann (4):

Re: [PATCH 0/4] Provide netdev naming-policy via sysfs

2014-03-01 Thread Tom Gundersen
On Thu, Feb 27, 2014 at 4:47 PM, Tom Gundersen wrote: > On Thu, Feb 27, 2014 at 3:47 PM, David Herrmann wrote: >> This series implements a new sysfs attribute for netdevs called >> "name_assign_type". It provides an integer that describes where an interface >> name

Re: [PATCH RESEND][pciutils] libpci: pci_id_lookup - add udev/hwdb support

2014-02-12 Thread Tom Gundersen
On Wed, Feb 12, 2014 at 8:58 PM, Martin Mares wrote: > Hi! > >> Ping? > > Sorry for the delay, I was alternatingly ill and overloaded with other > stuff... No worries. I hope you are better now. > As I said before, I do not like the current implementation of hwdb much (it's > too much tied to L

Re: [PATCH] input: i8042 - add PNP modaliases

2013-10-30 Thread Tom Gundersen
On Fri, Oct 4, 2013 at 2:26 PM, Tom Gundersen wrote: > On Wed, Sep 4, 2013 at 11:27 AM, Tom Gundersen wrote: >> This allows the module to be autoloaded in the common case. >> >> In order to work on non-PnP systems the module should be compiled in or >> loaded >

Re: [PATCH net-next v9 3/9] net: nl802154 - make add_iface take name assign type

2014-07-18 Thread Tom Gundersen
On Fri, Jul 18, 2014 at 1:19 AM, David Miller wrote: > From: Tom Gundersen > Date: Thu, 17 Jul 2014 10:06:04 +0200 > >> @@ -192,8 +193,10 @@ int ieee802154_add_iface(struct sk_buff *skb, struct >> genl_info *info) >> if (devname[nla_len(info->attrs[

Re: [PATCH net-next v9 4/9] net: set name_assign_type when setting names via ioctls

2014-07-18 Thread Tom Gundersen
On Fri, Jul 18, 2014 at 1:20 AM, David Miller wrote: > From: Tom Gundersen > Date: Thu, 17 Jul 2014 10:06:05 +0200 > >> @@ -2787,10 +2788,13 @@ static int gsm_create_network(struct gsm_dlci *dlci, >> struct gsm_netconfig *nc) >> pr_debug("create network

Re: [PATCH] Hyperv: Trigger DHCP renew after host hibernation

2014-07-21 Thread Tom Gundersen
On Fri, Jul 18, 2014 at 12:55 PM, Yue Zhang wrote: > From: Yue Zhang > > This patch addresses the comment from Olaf Hering and Greg KH > for a previous commit 3a494e710367 ("hyperv: Add handler for > RNDIS_STATUS_NETWORK_CHANGE event") > > In previous solution, the driver calls "network restart"

Re: [PATCH] Hyperv: Trigger DHCP renew after host hibernation

2014-07-21 Thread Tom Gundersen
On Mon, Jul 21, 2014 at 12:21 PM, Yue Zhang (OSTC DEV) wrote: >> From: Tom Gundersen [mailto:t...@jklm.no] >> Sent: Monday, July 21, 2014 5:42 PM >> >> On Fri, Jul 18, 2014 at 12:55 PM, Yue Zhang wrote: >> > From: Yue Zhang >> > >> > This patch

Re: [PATCH v7 08/33] net: nl80211 - make rdev_add_virtual_intf take name_assign_type

2014-07-21 Thread Tom Gundersen
Hi Johannes, On Mon, Jul 21, 2014 at 11:40 AM, Johannes Berg wrote: > On Thu, 2014-07-10 at 10:17 +0200, Tom Gundersen wrote: >> Pass the value down and set it at the same place the name itself is set. > > Is this going to be applied as part of one bigger series? This patch i

Re: [systemd-devel] [RFC v2 3/6] kthread: warn on kill signal if not OOM

2014-09-11 Thread Tom Gundersen
On Wed, Sep 10, 2014 at 11:10 PM, Luis R. Rodriguez wrote: >>> More than two years >>> have gone by on growing design and assumptions on top of that original >>> commit. I'm not sure if *systemd folks* yet believe its was a design >>> regression? >> >> I don't think so. udev should not allow its w

Re: [systemd-devel] [RFC v2 3/6] kthread: warn on kill signal if not OOM

2014-09-11 Thread Tom Gundersen
On Fri, Sep 12, 2014 at 12:26 AM, Luis R. Rodriguez wrote: > On Thu, Sep 11, 2014 at 2:43 PM, Tom Gundersen wrote: >> How about simply introducing a new flag to finit_module() to indicate >> that the caller does not care about asynchronicity. We could then pass >> this fr

Re: [PATCH v1 5/5] driver-core: add driver asynchronous probe support

2014-09-28 Thread Tom Gundersen
Hi Luis, Thanks for the patches and the detailed analysis. Feel free to add Acked-by: Tom Gundersen Minor comments on the commit message below. On Fri, Sep 26, 2014 at 11:57 PM, Luis R. Rodriguez wrote: > From: "Luis R. Rodriguez" > > Some init systems may wish to ex

Re: [PATCH v1 5/5] driver-core: add driver asynchronous probe support

2014-09-30 Thread Tom Gundersen
On Tue, Sep 30, 2014 at 4:27 AM, Luis R. Rodriguez wrote: > On Sun, Sep 28, 2014 at 07:07:24PM +0200, Tom Gundersen wrote: >> On Fri, Sep 26, 2014 at 11:57 PM, Luis R. Rodriguez >> wrote: >> > From: "Luis R. Rodriguez" >> > Systemd has a general t

[PATCH] net: tunnels - enable module autoloading

2014-05-13 Thread Tom Gundersen
Enable the module alias hookup to allow tunnel modules to be autoloaded on demand. This is in line with how most other netdev kinds work, and will allow userspace to create tunnels without having CAP_SYS_MODULE. Signed-off-by: Tom Gundersen Tested-by: Susant Sahani --- net/ipv4/ipip.c

[PATCH v2] net: tunnels - enable module autoloading

2014-05-15 Thread Tom Gundersen
Enable the module alias hookup to allow tunnel modules to be autoloaded on demand. This is in line with how most other netdev kinds work, and will allow userspace to create tunnels without having CAP_SYS_MODULE. Signed-off-by: Tom Gundersen --- v2: add ';' Hi Dave, I must have se

Re: [PATCH] net: tunnels - enable module autoloading

2014-05-15 Thread Tom Gundersen
On Thu, May 15, 2014 at 11:32 PM, Stephen Hemminger wrote: > On Tue, 13 May 2014 10:48:28 +0200 > Tom Gundersen wrote: > >> Enable the module alias hookup to allow tunnel modules to be autoloaded on >> demand. >> >> This is in line with how most other

[PATCH v9 1/4] net: add name_assign_type netdev attribute

2014-07-14 Thread Tom Gundersen
minor documentation fixes v9: move comment to the right commit Signed-off-by: Tom Gundersen Reviewed-by: David Herrmann Reviewed-by: Kay Sievers --- Documentation/ABI/testing/sysfs-class-net | 11 +++ include/linux/netdevice.h | 2 ++ include/uapi/linux/netdev

[PATCH v9 4/4] net: rtnetlink - make create_link take name_assign_type

2014-07-14 Thread Tom Gundersen
This passes down NET_NAME_USER (or NET_NAME_ENUM) to alloc_netdev(), for any device created over rtnetlink. v9: restore reverse-christmas-tree order of local variables Signed-off-by: Tom Gundersen --- drivers/net/veth.c | 11 --- include/net/rtnetlink.h | 1 + net/core

[PATCH v9 2/4] net: set name assign type for renamed devices

2014-07-14 Thread Tom Gundersen
Based on a patch from David Herrmann. This is the only place devices can be renamed. v9: restore revers-christmas-tree order of local variables Signed-off-by: Tom Gundersen Reviewed-by: David Herrmann --- net/core/dev.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/net/core

Re: [PATCH] firmware loader: inform direct failure when udev loader is disabled

2014-07-01 Thread Tom Gundersen
rror -2 > > Example without FW_LOADER_USER_HELPER_FALLBACK This ^^ should be "Example output with [...]" ? Otherwise looks good, so: Reviewed-by: Tom Gundersen > platform fake-dev.0: Direct firmware load for fake.bin failed with error -2 > platform fake-dev.0: Falling back

[PATCH v7 00/33] Provide netdev naming-policy via sysfs

2014-07-10 Thread Tom Gundersen
eventually be dropped. - introduce a new assign type NET_NAME_PREDICTABLE to indicate to userspace that the kernel-assigned names are well-behaved. Tom Gundersen (33): net: add name_assign_type netdev attribute net: set name assign type for renamed devices net: set name_assign_type in

[PATCH v7 06/33] net: set name assign type for names passed directly from userspace

2014-07-10 Thread Tom Gundersen
Such names should be NET_NAME_USER, in case the emptystring is given we fallback to an enumerated name. Signed-off-by: Tom Gundersen --- drivers/net/bonding/bond_main.c | 3 ++- drivers/net/tun.c | 9 ++--- drivers/tty/n_gsm.c | 10 +++--- net/atm/br2684.c

[PATCH v7 01/33] net: add name_assign_type netdev attribute

2014-07-10 Thread Tom Gundersen
ff-by: Tom Gundersen Reviewed-by: David Herrmann Reviewed-by: Kay Sievers --- Documentation/ABI/testing/sysfs-class-net | 11 +++ include/linux/netdevice.h | 2 ++ include/uapi/linux/netdevice.h| 6 ++ net/core/net-sysfs.c

[PATCH v7 32/33] net: x25_asy - set name assign type

2014-07-10 Thread Tom Gundersen
Names are given by the first available X.25 channel, so order of device creation matters. Signed-off-by: Tom Gundersen --- drivers/net/wan/x25_asy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wan/x25_asy.c b/drivers/net/wan/x25_asy.c index df6c073

[PATCH v7 31/33] net: slcan - set name assign type

2014-07-10 Thread Tom Gundersen
Names are given by the first available SLCAN channel, so order of device creation matters. Signed-off-by: Tom Gundersen Cc: Wolfgang Grandegger Cc: Marc Kleine-Budde Cc: linux-...@vger.kernel.org --- drivers/net/can/slcan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH v7 23/33] net: openvswitch - set name assign type

2014-07-10 Thread Tom Gundersen
Signed-off-by: Tom Gundersen Cc: Pravin Shelar Cc: d...@openvswitch.org --- net/openvswitch/datapath.c | 1 + net/openvswitch/vport-internal_dev.c | 2 +- net/openvswitch/vport.h | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/net/openvswitch

[PATCH v7 25/33] net: infiniband - steal ifname label

2014-07-10 Thread Tom Gundersen
Use the same assign type, as the name we are basing our new name on. Signed-off-by: Tom Gundersen Cc: Tom Tucker Cc: Steve Wise Cc: Roland Dreier Cc: Sean Hefty Cc: Hal Rosenstock Cc: linux-r...@vger.kernel.org --- drivers/infiniband/hw/amso1100/c2_provider.c | 2 +- 1 file changed, 1

[PATCH v7 29/33] net: brcmfmac - set name assign type

2014-07-10 Thread Tom Gundersen
The name is given by the firmware, so we assume it is predictable. Signed-off-by: Tom Gundersen Cc: Brett Rudley Cc: Arend van Spriel Cc: "Franky (Zhenhui) Lin" Cc: Hante Meuleman Cc: John Linville Cc: linux-wirel...@vger.kernel.org Cc: brcm80211-dev-l...@broadcom.com --- d

[PATCH v7 33/33] net: slip - set name assign type

2014-07-10 Thread Tom Gundersen
Names are given by the first available SLIP channel, so order of device creation matters. Signed-off-by: Tom Gundersen Cc: Tyler Hall --- drivers/net/slip/slip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/slip/slip.c b/drivers/net/slip/slip.c index 05387b1

[PATCH v7 30/33] net: ppp - set name assign type

2014-07-10 Thread Tom Gundersen
it NET_NAME_USER. Signed-off-by: Tom Gundersen Cc: Paul Mackerras Cc: linux-...@vger.kernel.org --- drivers/net/ppp/ppp_generic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c index 5c002b1..9757b52 100644 --- a/drivers/net/ppp

[PATCH v7 28/33] net: dsa - set name assign type

2014-07-10 Thread Tom Gundersen
The name is given by the firmware, so we assume it is predictable. Signed-off-by: Tom Gundersen Cc: Fabian Godehardt Cc: Florian Fainelli --- net/dsa/dsa.c | 3 ++- net/dsa/dsa_priv.h | 3 ++- net/dsa/slave.c| 6 +++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a

[PATCH v7 27/33] net: tile - set name assign type

2014-07-10 Thread Tom Gundersen
The name is obtained from the 'hardware', so consider it predictable. Signed-off-by: Tom Gundersen Cc: Chris Metcalf --- drivers/net/ethernet/tile/tilegx.c | 7 --- drivers/net/ethernet/tile/tilepro.c | 13 +++-- 2 files changed, 11 insertions(+), 9 deletions(-) di

[PATCH v7 24/33] net: vlan - set name assign type

2014-07-10 Thread Tom Gundersen
When deriving the name from the real device, inherit the assign type, otherwise set PREDICTABLE as the name will be uniquely determined by the VLANID. Signed-off-by: Tom Gundersen Cc: Patrick McHardy --- net/8021q/vlan.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a

[PATCH v7 26/33] net: ipoib - set name assign type

2014-07-10 Thread Tom Gundersen
When naming a device based on a combination of the parent device, and the upsr-supplied key, inherit the name assign type from the parent. Signed-off-by: Tom Gundersen Cc: Roland Dreier Cc: Sean Hefty Cc: Hal Rosenstock Cc: Erez Shitrit Cc: Michal Schmidt Cc: Jim Foraker Cc: linux-r

[PATCH v7 22/33] net: hamradio - set name assign type

2014-07-10 Thread Tom Gundersen
The hamradio devices are created the same way with the same names on module init time so should therefore be PREDICTABLE rather than ENUM. Signed-off-by: Tom Gundersen Cc: Thomas Sailer Cc: Joerg Reuter Cc: Jean-Paul Roubelat Cc: Wenliang Fan Cc: linux-h...@vger.kernel.org --- drivers/net

[PATCH v7 20/33] net: irlan - set name assign type

2014-07-10 Thread Tom Gundersen
Signed-off-by: Tom Gundersen Cc: Samuel Ortiz Cc: Dragos Foianu --- include/net/irda/irlan_eth.h | 2 +- net/irda/irlan/irlan_common.c | 2 +- net/irda/irlan/irlan_eth.c| 7 --- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include/net/irda/irlan_eth.h b/include/net

[PATCH v7 19/33] net: isdn - set name assign type

2014-07-10 Thread Tom Gundersen
Signed-off-by: Tom Gundersen Cc: Karsten Keil --- drivers/isdn/i4l/isdn_common.c | 4 ++-- drivers/isdn/i4l/isdn_net.c| 10 +- drivers/isdn/i4l/isdn_net.h| 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/isdn/i4l/isdn_common.c b/drivers/isdn/i4l

[PATCH v7 18/33] net: arcdev - label alloc_arcdev names

2014-07-10 Thread Tom Gundersen
Let the drivers pass in the name assign type. They all get the name as a module parameter. Signed-off-by: Tom Gundersen Cc: Dan Carpenter Cc: Paul Gortmaker --- drivers/net/arcnet/arc-rimi.c | 2 +- drivers/net/arcnet/arcnet.c | 8 ++-- drivers/net/arcnet/com20020-isa.c | 2

[PATCH v7 21/33] net: batman-adv - set name assign type

2014-07-10 Thread Tom Gundersen
Signed-off-by: Tom Gundersen Cc: Marek Lindner Cc: Simon Wunderlich Cc: Antonio Quartulli Cc: b.a.t.m@lists.open-mesh.org --- net/batman-adv/hard-interface.c | 5 +++-- net/batman-adv/hard-interface.h | 3 ++- net/batman-adv/soft-interface.c | 9 ++--- net/batman-adv/soft-interface.h

[PATCH v7 15/33] net: xen-netback - set name assign type

2014-07-10 Thread Tom Gundersen
The name contains then xen handle, which is not guaranteed to be stable between restarts, so label this NET_NAME_ENUM. Signed-off-by: Tom Gundersen Cc: Ian Campbell Cc: Wei Liu Cc: xen-de...@lists.xenproject.org --- drivers/net/xen-netback/interface.c | 4 ++-- 1 file changed, 2 insertions

[PATCH v7 17/33] net: airo - set name assign type

2014-07-10 Thread Tom Gundersen
alloc_netdev is first called without a name, before the name and name assign type is open-coded later. Signed-off-by: Tom Gundersen Cc: John Linville Cc: linux-wirel...@vger.kernel.org --- drivers/net/wireless/airo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless

[PATCH v7 16/33] net: gdm_lte - set name assign type

2014-07-10 Thread Tom Gundersen
Devices are named according to the scheme lteXpdnY, where Y is the nic type, and X is the normal enumeration, so the scheme is NET_NAME_ENUM. Signed-off-by: Tom Gundersen Cc: Greg Kroah-Hartman Cc: Won Kang Cc: Rashika Kheria Cc: de...@driverdev.osuosl.org --- drivers/staging/gdm724x

[PATCH v7 14/33] net: caif_serial - set name assign type

2014-07-10 Thread Tom Gundersen
The name is uniquely determined by the name of the TTY. Signed-off-by: Tom Gundersen Cc: Dmitry Tarnyagin --- drivers/net/caif/caif_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/caif/caif_serial.c b/drivers/net/caif/caif_serial.c index 27bbc56

[PATCH v7 13/33] net: mrt - set name assign type

2014-07-10 Thread Tom Gundersen
We have one device per routing table, so the naming is predictable. Signed-off-by: Tom Gundersen Cc: Alexey Kuznetsov Cc: James Morris Cc: Hideaki YOSHIFUJI Cc: Patrick McHardy --- net/ipv4/ipmr.c | 2 +- net/ipv6/ip6mr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v7 07/33] net: rtnetlink - make create_link take name_assign_type

2014-07-10 Thread Tom Gundersen
Signed-off-by: Tom Gundersen --- drivers/net/veth.c | 11 --- include/net/rtnetlink.h | 1 + net/core/rtnetlink.c| 12 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/drivers/net/veth.c b/drivers/net/veth.c index b4a10bc..5058700 100644 --- a

[PATCH v7 12/33] net: af_rose - set name assign type

2014-07-10 Thread Tom Gundersen
A given number of indistinguishable interfaces are allocated at init time, so consider their names predictable. Signed-off-by: Tom Gundersen Cc: linux-h...@vger.kernel.org --- net/rose/af_rose.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/rose/af_rose.c b/net/rose

[PATCH v7 11/33] net: af_netrom - set name assign type

2014-07-10 Thread Tom Gundersen
A given number of indistinguishable interfaces are allocated at init time, so consider their names predictable. Signed-off-by: Tom Gundersen Cc: Ralf Baechle Cc: linux-h...@vger.kernel.org --- net/netrom/af_netrom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netrom

[PATCH v7 08/33] net: nl80211 - make rdev_add_virtual_intf take name_assign_type

2014-07-10 Thread Tom Gundersen
Pass the value down and set it at the same place the name itself is set. Signed-off-by: Tom Gundersen Cc: Johannes Berg Cc: John Linville --- drivers/net/wireless/ath/ath6kl/cfg80211.c| 6 -- drivers/net/wireless/ath/ath6kl/cfg80211.h| 1 + drivers/net/wireless

[PATCH v7 10/33] net: dummy - set name assign type

2014-07-10 Thread Tom Gundersen
A fixed number of indistinguishable dummy devices are allocated at module init time, the names are therefore PREDICTABLE rather than ENUM. Signed-off-by: Tom Gundersen Cc: dingtianhong Cc: Tan Xiaojun Cc: WANG Cong --- drivers/net/dummy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

  1   2   >