* [PATCH] Revert "Bluetooth: Use devname:vhci module alias for virtual HCI driver"
@ 2014-03-05 11:59 Thomas Bächler
2014-03-05 15:28 ` Josh Boyer
2014-03-05 16:46 ` Marcel Holtmann
0 siblings, 2 replies; 10+ messages in thread
From: Thomas Bächler @ 2014-03-05 11:59 UTC (permalink / raw)
To: Marcel Holtmann
Cc: Gustavo Padovan, Johan Hedberg, linux-bluetooth, linux-kernel,
Thomas Bächler
Adding the devname:vhci alias and thus adding a static /dev/vhci device node
only works when assigning a fixed major/minor number. However, the code
currently uses a dynamically assigned minor number. It is therefore impossible
to create a static device and to autoload the module when accessing it.
Reverting this fixes the kmod error message
depmod: ERROR: Module 'hci_vhci' has devname (vhci) but lacks major and minor information. Ignoring.
This reverts commit bfacbb9aec029b3200053d84c8cd5d7575f2d4a5.
---
drivers/bluetooth/hci_vhci.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c
index 1ef6990..cf05d70 100644
--- a/drivers/bluetooth/hci_vhci.c
+++ b/drivers/bluetooth/hci_vhci.c
@@ -384,4 +384,3 @@ MODULE_AUTHOR("Marcel Holtmann <marcel@holtmann.org>");
MODULE_DESCRIPTION("Bluetooth virtual HCI driver ver " VERSION);
MODULE_VERSION(VERSION);
MODULE_LICENSE("GPL");
-MODULE_ALIAS("devname:vhci");
--
1.9.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH] Revert "Bluetooth: Use devname:vhci module alias for virtual HCI driver"
2014-03-05 11:59 [PATCH] Revert "Bluetooth: Use devname:vhci module alias for virtual HCI driver" Thomas Bächler
@ 2014-03-05 15:28 ` Josh Boyer
2014-03-05 16:11 ` Johan Hedberg
2014-03-05 16:46 ` Marcel Holtmann
1 sibling, 1 reply; 10+ messages in thread
From: Josh Boyer @ 2014-03-05 15:28 UTC (permalink / raw)
To: Thomas Bächler
Cc: Marcel Holtmann, Gustavo Padovan, Johan Hedberg, linux-bluetooth,
Linux-Kernel@Vger. Kernel. Org
On Wed, Mar 5, 2014 at 6:59 AM, Thomas B=E4chler <thomas@archlinux.org> wro=
te:
> Adding the devname:vhci alias and thus adding a static /dev/vhci device n=
ode
> only works when assigning a fixed major/minor number. However, the code
> currently uses a dynamically assigned minor number. It is therefore impos=
sible
> to create a static device and to autoload the module when accessing it.
>
> Reverting this fixes the kmod error message
> depmod: ERROR: Module 'hci_vhci' has devname (vhci) but lacks major and =
minor information. Ignoring.
>
> This reverts commit bfacbb9aec029b3200053d84c8cd5d7575f2d4a5.
We've had several reports of this in Fedora as well. I hadn't gotten
around to digging into it yet, so thanks for bringing this up Thomas.
josh
> ---
> drivers/bluetooth/hci_vhci.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c
> index 1ef6990..cf05d70 100644
> --- a/drivers/bluetooth/hci_vhci.c
> +++ b/drivers/bluetooth/hci_vhci.c
> @@ -384,4 +384,3 @@ MODULE_AUTHOR("Marcel Holtmann <marcel@holtmann.org>"=
);
> MODULE_DESCRIPTION("Bluetooth virtual HCI driver ver " VERSION);
> MODULE_VERSION(VERSION);
> MODULE_LICENSE("GPL");
> -MODULE_ALIAS("devname:vhci");
> --
> 1.9.0
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" i=
n
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH] Revert "Bluetooth: Use devname:vhci module alias for virtual HCI driver"
2014-03-05 15:28 ` Josh Boyer
@ 2014-03-05 16:11 ` Johan Hedberg
0 siblings, 0 replies; 10+ messages in thread
From: Johan Hedberg @ 2014-03-05 16:11 UTC (permalink / raw)
To: Josh Boyer; +Cc: Thomas Bächler, linux-bluetooth
Hi,
On Wed, Mar 05, 2014, Josh Boyer wrote:
> On Wed, Mar 5, 2014 at 6:59 AM, Thomas Bächler <thomas@archlinux.org> wrote:
> > Adding the devname:vhci alias and thus adding a static /dev/vhci device node
> > only works when assigning a fixed major/minor number. However, the code
> > currently uses a dynamically assigned minor number. It is therefore impossible
> > to create a static device and to autoload the module when accessing it.
> >
> > Reverting this fixes the kmod error message
> > depmod: ERROR: Module 'hci_vhci' has devname (vhci) but lacks major and minor information. Ignoring.
> >
> > This reverts commit bfacbb9aec029b3200053d84c8cd5d7575f2d4a5.
>
> We've had several reports of this in Fedora as well. I hadn't gotten
> around to digging into it yet, so thanks for bringing this up Thomas.
How does this relate to the "Bluetooth: allocate static minor for vhci"
patch that we have in the bluetooth-next tree (also in wireless-next,
going to the 3.15 kernel). It's commit b075dd40c95d11c2c8690f6c4d6232fc.
Johan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Revert "Bluetooth: Use devname:vhci module alias for virtual HCI driver"
2014-03-05 11:59 [PATCH] Revert "Bluetooth: Use devname:vhci module alias for virtual HCI driver" Thomas Bächler
2014-03-05 15:28 ` Josh Boyer
@ 2014-03-05 16:46 ` Marcel Holtmann
2014-03-05 17:50 ` Josh Boyer
1 sibling, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2014-03-05 16:46 UTC (permalink / raw)
To: Thomas Bächler
Cc: Gustavo F. Padovan, Johan Hedberg, linux-bluetooth, linux-kernel
Hi Thomas,
> Adding the devname:vhci alias and thus adding a static /dev/vhci device node
> only works when assigning a fixed major/minor number. However, the code
> currently uses a dynamically assigned minor number. It is therefore impossible
> to create a static device and to autoload the module when accessing it.
>
> Reverting this fixes the kmod error message
> depmod: ERROR: Module 'hci_vhci' has devname (vhci) but lacks major and minor information. Ignoring.
>
> This reverts commit bfacbb9aec029b3200053d84c8cd5d7575f2d4a5.
NAK. We allocated a static minor for this.
Regards
Marcel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Revert "Bluetooth: Use devname:vhci module alias for virtual HCI driver"
2014-03-05 16:46 ` Marcel Holtmann
@ 2014-03-05 17:50 ` Josh Boyer
2014-03-05 18:36 ` Marcel Holtmann
0 siblings, 1 reply; 10+ messages in thread
From: Josh Boyer @ 2014-03-05 17:50 UTC (permalink / raw)
To: Marcel Holtmann
Cc: Thomas Bächler, Gustavo F. Padovan, Johan Hedberg,
linux-bluetooth, Linux-Kernel@Vger. Kernel. Org
On Wed, Mar 5, 2014 at 11:46 AM, Marcel Holtmann <marcel@holtmann.org> wrote:
> Hi Thomas,
>
>> Adding the devname:vhci alias and thus adding a static /dev/vhci device node
>> only works when assigning a fixed major/minor number. However, the code
>> currently uses a dynamically assigned minor number. It is therefore impossible
>> to create a static device and to autoload the module when accessing it.
>>
>> Reverting this fixes the kmod error message
>> depmod: ERROR: Module 'hci_vhci' has devname (vhci) but lacks major and minor information. Ignoring.
>>
>> This reverts commit bfacbb9aec029b3200053d84c8cd5d7575f2d4a5.
>
> NAK. We allocated a static minor for this.
Johan mentioned that. Commit b075dd40c95d11c2c8690f6c4d6232fc,
correct? Why isn't that headed into 3.14 right now, and CC'd to
stable? Currently you have a somewhat broken driver in 3.13 and
3.14-rcX that seems to have a pretty clear fix.
josh
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Revert "Bluetooth: Use devname:vhci module alias for virtual HCI driver"
2014-03-05 17:50 ` Josh Boyer
@ 2014-03-05 18:36 ` Marcel Holtmann
2014-03-05 18:48 ` Thomas Bächler
0 siblings, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2014-03-05 18:36 UTC (permalink / raw)
To: Josh Boyer
Cc: Thomas Bächler, Gustavo F. Padovan, Johan Hedberg,
linux-bluetooth, Linux-Kernel@Vger. Kernel. Org
Hi Josh,
>>> Adding the devname:vhci alias and thus adding a static /dev/vhci device node
>>> only works when assigning a fixed major/minor number. However, the code
>>> currently uses a dynamically assigned minor number. It is therefore impossible
>>> to create a static device and to autoload the module when accessing it.
>>>
>>> Reverting this fixes the kmod error message
>>> depmod: ERROR: Module 'hci_vhci' has devname (vhci) but lacks major and minor information. Ignoring.
>>>
>>> This reverts commit bfacbb9aec029b3200053d84c8cd5d7575f2d4a5.
>>
>> NAK. We allocated a static minor for this.
>
> Johan mentioned that. Commit b075dd40c95d11c2c8690f6c4d6232fc,
> correct? Why isn't that headed into 3.14 right now, and CC'd to
> stable? Currently you have a somewhat broken driver in 3.13 and
> 3.14-rcX that seems to have a pretty clear fix.
somewhat broken? kmod prints this as an error, but it is not a regression in user functionality. The driver works just as before. The error message can be ignored.
So if anybody feels strongly that the static device node assignment should be put into -stable, then I am fine with it. However I do not see this as passing requirement for a -stable fix since it is really not affecting anyone (minus the misleading message from kmod).
Regards
Marcel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Revert "Bluetooth: Use devname:vhci module alias for virtual HCI driver"
2014-03-05 18:36 ` Marcel Holtmann
@ 2014-03-05 18:48 ` Thomas Bächler
2014-03-05 18:53 ` Josh Boyer
2014-03-18 11:34 ` Lucas De Marchi
0 siblings, 2 replies; 10+ messages in thread
From: Thomas Bächler @ 2014-03-05 18:48 UTC (permalink / raw)
To: Marcel Holtmann, Josh Boyer
Cc: Gustavo F. Padovan, Johan Hedberg, linux-bluetooth,
Linux-Kernel@Vger. Kernel. Org
[-- Attachment #1: Type: text/plain, Size: 1427 bytes --]
Am 05.03.2014 19:36, schrieb Marcel Holtmann:
>>>> This reverts commit bfacbb9aec029b3200053d84c8cd5d7575f2d4a5.
>>>
>>> NAK. We allocated a static minor for this.
>>
>> Johan mentioned that. Commit b075dd40c95d11c2c8690f6c4d6232fc,
>> correct?
I am sorry Marcel, I only looked at the Linus tree, not at bluetooth or
bluetooth-next. This commit should indeed fix the problem. Disregard my
patch.
> Why isn't that headed into 3.14 right now, and CC'd to
>> stable? Currently you have a somewhat broken driver in 3.13 and
>> 3.14-rcX that seems to have a pretty clear fix.
>
> somewhat broken? kmod prints this as an error, but it is not a regression in user functionality. The driver works just as before. The error message can be ignored.
It's a regression in my sanity, since numerous users blame all kernel
bugs on this error message and I am tired of explaining the situation
(problem + error message == problem found *sigh*). I only sent this
patch since I hadn't found the correct fix.
> So if anybody feels strongly that the static device node assignment should be put into -stable, then I am fine with it. However I do not see this as passing requirement for a -stable fix since it is really not affecting anyone (minus the misleading message from kmod).
Since b075dd4 will end up in the Linus tree eventually, I have no
trouble backporting it myself.
Sorry for the disturbance.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Revert "Bluetooth: Use devname:vhci module alias for virtual HCI driver"
2014-03-05 18:48 ` Thomas Bächler
@ 2014-03-05 18:53 ` Josh Boyer
2014-03-05 19:02 ` Marcel Holtmann
2014-03-18 11:34 ` Lucas De Marchi
1 sibling, 1 reply; 10+ messages in thread
From: Josh Boyer @ 2014-03-05 18:53 UTC (permalink / raw)
To: Thomas Bächler
Cc: Marcel Holtmann, Gustavo F. Padovan, Johan Hedberg,
linux-bluetooth, Linux-Kernel@Vger. Kernel. Org
On Wed, Mar 5, 2014 at 1:48 PM, Thomas B=E4chler <thomas@archlinux.org> wro=
te:
> Am 05.03.2014 19:36, schrieb Marcel Holtmann:
>>>>> This reverts commit bfacbb9aec029b3200053d84c8cd5d7575f2d4a5.
>>>>
>>>> NAK. We allocated a static minor for this.
>>>
>>> Johan mentioned that. Commit b075dd40c95d11c2c8690f6c4d6232fc,
>>> correct?
>
> I am sorry Marcel, I only looked at the Linus tree, not at bluetooth or
> bluetooth-next. This commit should indeed fix the problem. Disregard my
> patch.
>
>> Why isn't that headed into 3.14 right now, and CC'd to
>>> stable? Currently you have a somewhat broken driver in 3.13 and
>>> 3.14-rcX that seems to have a pretty clear fix.
>>
>> somewhat broken? kmod prints this as an error, but it is not a regressio=
n in user functionality. The driver works just as before. The error message=
can be ignored.
>
> It's a regression in my sanity, since numerous users blame all kernel
> bugs on this error message and I am tired of explaining the situation
> (problem + error message =3D=3D problem found *sigh*). I only sent this
> patch since I hadn't found the correct fix.
Exactly.
>> So if anybody feels strongly that the static device node assignment shou=
ld be put into -stable, then I am fine with it. However I do not see this a=
s passing requirement for a -stable fix since it is really not affecting an=
yone (minus the misleading message from kmod).
>
> Since b075dd4 will end up in the Linus tree eventually, I have no
> trouble backporting it myself.
I don't have any difficulty doing that either, but if it was in stable
every distro getting bugs about it wouldn't have to carry the fix on
their own.
josh
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Revert "Bluetooth: Use devname:vhci module alias for virtual HCI driver"
2014-03-05 18:53 ` Josh Boyer
@ 2014-03-05 19:02 ` Marcel Holtmann
0 siblings, 0 replies; 10+ messages in thread
From: Marcel Holtmann @ 2014-03-05 19:02 UTC (permalink / raw)
To: Josh Boyer
Cc: Thomas Bächler, Gustavo F. Padovan, Johan Hedberg,
bluez mailin list (linux-bluetooth@vger.kernel.org),
Linux-Kernel@Vger. Kernel. Org
Hi Josh,
>>>>>> This reverts commit bfacbb9aec029b3200053d84c8cd5d7575f2d4a5.
>>>>>
>>>>> NAK. We allocated a static minor for this.
>>>>
>>>> Johan mentioned that. Commit b075dd40c95d11c2c8690f6c4d6232fc,
>>>> correct?
>>
>> I am sorry Marcel, I only looked at the Linus tree, not at bluetooth or
>> bluetooth-next. This commit should indeed fix the problem. Disregard my
>> patch.
>>
>>> Why isn't that headed into 3.14 right now, and CC'd to
>>>> stable? Currently you have a somewhat broken driver in 3.13 and
>>>> 3.14-rcX that seems to have a pretty clear fix.
>>>
>>> somewhat broken? kmod prints this as an error, but it is not a regression in user functionality. The driver works just as before. The error message can be ignored.
>>
>> It's a regression in my sanity, since numerous users blame all kernel
>> bugs on this error message and I am tired of explaining the situation
>> (problem + error message == problem found *sigh*). I only sent this
>> patch since I hadn't found the correct fix.
>
> Exactly.
>
>>> So if anybody feels strongly that the static device node assignment should be put into -stable, then I am fine with it. However I do not see this as passing requirement for a -stable fix since it is really not affecting anyone (minus the misleading message from kmod).
>>
>> Since b075dd4 will end up in the Linus tree eventually, I have no
>> trouble backporting it myself.
>
> I don't have any difficulty doing that either, but if it was in stable
> every distro getting bugs about it wouldn't have to carry the fix on
> their own.
the patch is currently in wireless-next and will eventually end up in net-next. Maybe it is better to have it cherry picked once it reaches net-next.
Regards
Marcel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Revert "Bluetooth: Use devname:vhci module alias for virtual HCI driver"
2014-03-05 18:48 ` Thomas Bächler
2014-03-05 18:53 ` Josh Boyer
@ 2014-03-18 11:34 ` Lucas De Marchi
1 sibling, 0 replies; 10+ messages in thread
From: Lucas De Marchi @ 2014-03-18 11:34 UTC (permalink / raw)
To: Thomas Bächler
Cc: Marcel Holtmann, Josh Boyer, Gustavo F. Padovan, Johan Hedberg,
linux-bluetooth, Linux-Kernel@Vger. Kernel. Org
Hi Thomas
On Wed, Mar 5, 2014 at 3:48 PM, Thomas B=C3=A4chler <thomas@archlinux.org> =
wrote:
> Am 05.03.2014 19:36, schrieb Marcel Holtmann:
>>>>> This reverts commit bfacbb9aec029b3200053d84c8cd5d7575f2d4a5.
>>>>
>>>> NAK. We allocated a static minor for this.
>>>
>>> Johan mentioned that. Commit b075dd40c95d11c2c8690f6c4d6232fc,
>>> correct?
>
> I am sorry Marcel, I only looked at the Linus tree, not at bluetooth or
> bluetooth-next. This commit should indeed fix the problem. Disregard my
> patch.
>
>> Why isn't that headed into 3.14 right now, and CC'd to
>>> stable? Currently you have a somewhat broken driver in 3.13 and
>>> 3.14-rcX that seems to have a pretty clear fix.
>>
>> somewhat broken? kmod prints this as an error, but it is not a regressio=
n in user functionality. The driver works just as before. The error message=
can be ignored.
>
> It's a regression in my sanity, since numerous users blame all kernel
> bugs on this error message and I am tired of explaining the situation
> (problem + error message =3D=3D problem found *sigh*). I only sent this
> patch since I hadn't found the correct fix.
Feel free to CC kmod mailing list in these cases
(linux-modules@vger.kernel.org). We've added this message to kmod
exactly to catch problems like this and help people doing the drivers.
Once I found out the problem with vhci I sent the patch to fix it,
which is heading to Linus tree.
--=20
Lucas De Marchi
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-03-18 11:34 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-05 11:59 [PATCH] Revert "Bluetooth: Use devname:vhci module alias for virtual HCI driver" Thomas Bächler
2014-03-05 15:28 ` Josh Boyer
2014-03-05 16:11 ` Johan Hedberg
2014-03-05 16:46 ` Marcel Holtmann
2014-03-05 17:50 ` Josh Boyer
2014-03-05 18:36 ` Marcel Holtmann
2014-03-05 18:48 ` Thomas Bächler
2014-03-05 18:53 ` Josh Boyer
2014-03-05 19:02 ` Marcel Holtmann
2014-03-18 11:34 ` Lucas De Marchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox