On 2017/8/29 20:46, Peter Zijlstra wrote:
On Tue, Aug 29, 2017 at 11:46:41AM +, Yang Zhang wrote:
In ttwu_do_wakeup, it will update avg_idle when wakeup from idle. Here
we just reuse this logic to update the poll time. It may be a little
late to update the poll in ttwu_do_wakeup, but the tes
On 2017/9/1 14:58, Wanpeng Li wrote:
2017-09-01 14:44 GMT+08:00 Yang Zhang :
On 2017/8/29 22:02, Wanpeng Li wrote:
Here is the data we get when running benchmark netperf:
2. w/ patch:
halt_poll_threshold=1 -- 15803.89 bits/s -- 159.5 %CPU
halt_poll_threshold=2 --
> Am 31.08.2017 um 00:38 schrieb Jonathan Corbet :
>
> On Fri, 16 Jun 2017 21:27:48 +0200
> Markus Heiser wrote:
>
>> Reported by Johannes Berg [1]. Problem here: function
>> process_proto_type() concatenates the striped lines of declaration
>> without any whitespace. A one-liner of::
>>
>> s
2017-09-01 1:46 GMT+02:00 Mauro Carvalho Chehab :
> The DVB documentation was negligected for a long time, with
> resulted on several gaps between the API description and its
> documentation.
>
> I'm doing a new reading at the documentation. As result of it,
> this series:
>
> - improves the introd
Em Fri, 1 Sep 2017 10:40:28 +0200
Honza Petrouš escreveu:
> 2017-09-01 1:46 GMT+02:00 Mauro Carvalho Chehab :
> > The DVB documentation was negligected for a long time, with
> > resulted on several gaps between the API description and its
> > documentation.
> >
> > I'm doing a new reading at the
Em Fri, 1 Sep 2017 08:28:20 +0200
Honza Petrouš escreveu:
> 2017-09-01 1:46 GMT+02:00 Mauro Carvalho Chehab :
> > No driver uses this ioctl, nor it is documented anywhere.
> >
> > So, get rid of it.
> >
> > Signed-off-by: Mauro Carvalho Chehab
> > ---
> > Documentation/media/dmx.h.rst.exception
2017-09-01 11:37 GMT+02:00 Mauro Carvalho Chehab :
> Em Fri, 1 Sep 2017 08:28:20 +0200
> Honza Petrouš escreveu:
>
>> 2017-09-01 1:46 GMT+02:00 Mauro Carvalho Chehab :
>> > No driver uses this ioctl, nor it is documented anywhere.
>> >
>> > So, get rid of it.
>> >
>> > Signed-off-by: Mauro Carvalh
> Am 31.08.2017 um 21:43 schrieb Jonathan Corbet :
>
> On Thu, 31 Aug 2017 22:21:29 +0300
> Jani Nikula wrote:
>
>> On python3, Popen() universal_newlines=True converts the subprocess
>> stdout to unicode text using a codec based on user preferences. Given
>> LANG indicating ascii and utf-8 std
On 29/08/17 15:17, Mauro Carvalho Chehab wrote:
> Add a glossary of terms for V4L2, as several concepts are complex
> enough to cause misunderstandings.
>
> Signed-off-by: Mauro Carvalho Chehab
> ---
> Documentation/media/uapi/v4l/glossary.rst | 150
> ++
> Documenta
Em Fri, 1 Sep 2017 11:53:11 +0200
Honza Petrouš escreveu:
> 2017-09-01 11:37 GMT+02:00 Mauro Carvalho Chehab :
> > Em Fri, 1 Sep 2017 08:28:20 +0200
> > Honza Petrouš escreveu:
> >
> >> 2017-09-01 1:46 GMT+02:00 Mauro Carvalho Chehab
> >> :
> >> > No driver uses this ioctl, nor it is docume
2017-09-01 12:45 GMT+02:00 Mauro Carvalho Chehab :
> Em Fri, 1 Sep 2017 11:53:11 +0200
> Honza Petrouš escreveu:
>
>> 2017-09-01 11:37 GMT+02:00 Mauro Carvalho Chehab :
>> > Em Fri, 1 Sep 2017 08:28:20 +0200
>> > Honza Petrouš escreveu:
>> >
>> >> 2017-09-01 1:46 GMT+02:00 Mauro Carvalho Chehab
Em Fri, 1 Sep 2017 13:14:04 +0200
Honza Petrouš escreveu:
> 2017-09-01 12:45 GMT+02:00 Mauro Carvalho Chehab :
> > Em Fri, 1 Sep 2017 11:53:11 +0200
> > Honza Petrouš escreveu:
> >
> >> 2017-09-01 11:37 GMT+02:00 Mauro Carvalho Chehab
> >> :
> >> > Em Fri, 1 Sep 2017 08:28:20 +0200
> >> > H
Convergence doesn't exist anymore. The community itself maintains
the spec. Update accordingly.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dvb/intro.rst | 16 ++--
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/Documentation/media/uapi/dvb/intro
Using typedefs inside the Kernel is against CodingStyle, and
there's no good usage here.
Just like we did at frontend.h, at changeset 0df289a209e0
("[media] dvb: Get rid of typedev usage for enums"), let's keep
those typedefs only to provide userspace backward compatibility.
No functional changes
For most of the stuff there, documenting is easy, as the
header file contains information.
Yet, I was unable to document two data structs:
ca_msg and ca_descr
As those two structs are used by a few drivers, keep them.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dv
Now that DVB spec is almost in sync, document what's missing.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dvb/ca.rst | 5 +
Documentation/media/uapi/dvb/legacy_dvb_apis.rst | 5 +
2 files changed, 10 insertions(+)
diff --git a/Documentation/media/uapi/
Right now, on several places, the driver is returning a
"-1" error to userspace, instead of a proper error code.
Fix it.
Signed-off-by: Mauro Carvalho Chehab
---
drivers/media/pci/bt8xx/dst_ca.c | 41 +---
1 file changed, 22 insertions(+), 19 deletions(-)
di
Now that frontend.h contains most documentation for the frontend,
remove the duplicated information from Documentation/ and use the
kernel-doc auto-generated one instead.
That should simplify maintainership of DVB frontend uAPI, as most
of the documentation will stick with the header file.
Signed
Instead of a generic boilerplate, fill it with relevant
information about this ioctl.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dvb/ca-get-cap.rst | 36 -
1 file changed, 5 insertions(+), 31 deletions(-)
diff --git a/Documentation/media/uapi/d
Right now, the same undocumented structs are on two places:
at ca_data_types.rst and together with their ioctls.
Move them to just one place and use the standard way to
represent them.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dvb/ca-get-msg.rst| 38 ++---
There's no driver currently using it; it is also not
documented about what it would be supposed to do.
So, get rid of it.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/dmx.h.rst.exceptions | 1 -
Documentation/media/uapi/dvb/dmx-get-caps.rst | 41 ---
Instead of a generic boilerplate, fill it with relevant
information about this ioctl.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dvb/ca-get-descr-info.rst | 29 +++---
1 file changed, 4 insertions(+), 25 deletions(-)
diff --git a/Documentation/media/uapi/d
The DVB documentation was negligected for a long time, with
resulted on several gaps between the API description and its
documentation.
I'm doing a new reading at the documentation. As result of it,
this series:
- improves the introductory chapter, making it more generic;
- Do some adjustments at
The references there are only for DVB. Add missing references for
ATSC and ISDB standards.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dvb/intro.rst | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/Documentation/media/uapi/dvb/intro.rst
b/Docume
struct dtv_cmds_h is just an ancillary struct used by the
dvb_frontend.c to internally store frontend commands.
It doesn't belong to the userspace header, nor it is used anywhere,
except inside the DVB core. So, remove it from the header.
Signed-off-by: Mauro Carvalho Chehab
---
drivers/media/d
Most of the stuff at the Digital TV frontend header file
are documented only at the Documentation. However, a few
kernel-doc markups are there, several of them with parsing
issues.
Add the missing documentation, copying definitions from the
Documentation when it applies, fixing some bugs.
Please
No driver uses this ioctl, nor it is documented anywhere.
So, get rid of it.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/dmx.h.rst.exceptions| 13
Documentation/media/uapi/dvb/dmx-set-source.rst | 44 -
Documentation/media/uapi/dvb/dmx_f
This ioctl seems to be some attempt to support a feature
at the bt8xx dst_ca driver. Yet, as said there, it
"needs more work". Right now, the code there is just
a boilerplate.
At the end of the day, no driver uses this ioctl, nor it is
documented anywhere (except for "needs more work").
So, get r
Both CA and decoders are optional. Also, the presence or
absence has nothing to do on being a PCI card or not.
Nowadays, most hardware leaves the decoders to either the
GPU or to some ISP inside the SoC, instead of implementing
it inside the Digital TV part of the device.
So, change the wording t
Instead of a generic boilerplate, fill it with relevant
information about this ioctl.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dvb/ca-get-slot-info.rst | 98 +++
1 file changed, 11 insertions(+), 87 deletions(-)
diff --git a/Documentation/media/uapi/
Several frontend properties are specific to a subset of the
delivery systems. Make it clearer when describing each
property.
Signed-off-by: Mauro Carvalho Chehab
---
.../media/uapi/dvb/fe_property_parameters.rst | 82 --
1 file changed, 75 insertions(+), 7 deletions(-)
Using typedefs inside the Kernel is against CodingStyle, and
there's no good usage here.
Just like we did at frontend.h, at changeset 0df289a209e0
("[media] dvb: Get rid of typedev usage for enums"), let's keep
those typedefs only to provide userspace backward compatibility.
No functional changes
Use a table to document the supported bandwidths. That makes
it clearer to readers.
Signed-off-by: Mauro Carvalho Chehab
---
.../media/uapi/dvb/fe_property_parameters.rst | 44 +-
1 file changed, 26 insertions(+), 18 deletions(-)
diff --git a/Documentation/media/uapi/dv
The demux documentation is pretty poor nowadays: most of the
structs and enums aren't documented at all.
Add proper kernel-doc markups for them and use it.
Now, the demux API is fully documented :-)
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/dmx.h.rst.exceptions | 5 +
Do
There's a flag defined for Digital TV demux that is not used
anywhere, called DMX_KERNEL_CLIENT. Get rid of it.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/dmx.h.rst.exceptions | 1 -
Documentation/media/uapi/dvb/dmx_types.rst | 1 -
include/uapi/linux/dvb/dmx.h
Due to a mistake, the DVB net chapter was actually broken
into two different chapters. Fix it.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dvb/net.rst | 1 -
1 file changed, 1 deletion(-)
diff --git a/Documentation/media/uapi/dvb/net.rst
b/Documentation/media/uapi/dvb/net
This seems to be a pure fictional API :-)
It only exists at the DVB book, with no code implemeting it.
So, just get rid of it.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dvb/dmx-get-event.rst | 60 --
Documentation/media/uapi/dvb/dmx_fcalls.rst
This ioctl is not implemented at dst_ca driver. There's just
a boilerplate code there. Remove it, as it is unlikely that
anyone would implement it those days.
Signed-off-by: Mauro Carvalho Chehab
---
drivers/media/pci/bt8xx/dst_ca.c | 17 -
1 file changed, 17 deletions(-)
diff -
While we don't have any documentation for it, based on what's
there at Kaffeine and VDR, it seems that this command should
be issued before start using CA. So, document it as such.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dvb/ca-reset.rst | 3 ++-
1 file changed, 2 inser
On several places at the introduction, a digital TV board and its
kernel support is called as DVB. The reason is simple: by the
time the document was written, there were no other digital TV
standards :-)
Modernize the specs by referring to them as Digital TV.
Signed-off-by: Mauro Carvalho Chehab
The device node name for CA is wrong since ever. I suspect
that the name there was before DVBv3 (with was the first API
introduced at the Kernel).
Anyway, use the right name there.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dvb/ca-fopen.rst | 4 ++--
1 file changed, 2 ins
The struct that contains an union of DVB parameters is
called dvb_frontend_parameters (and not FrontendParameters).
Fix it.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dvb/dvb-frontend-parameters.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Docum
In the past, the documentation used to say that, if a CRC error
was found, a "-ECRC" error would be returned. That's not true:
the DVB core will just silently ignore such errors.
So, add an explicit note about that.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dvb/dmx-fread
Those are introduced by the conversion scripts and don't
really help. Get rid of them.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/gen-errors.rst | 44 +
1 file changed, 11 insertions(+), 33 deletions(-)
diff --git a/Documentation/media/uapi
The hardware description mentions that some parts are optional.
Make it clearer at the drawing.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dvb/dvbstb.svg | 31 +++
1 file changed, 15 insertions(+), 16 deletions(-)
diff --git a/Documentation/med
This error can be produced at least at the DVB subsystem.
As it is generic enough, document it.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/gen-errors.rst | 5 +
1 file changed, 5 insertions(+)
diff --git a/Documentation/media/uapi/gen-errors.rst
b/Documentation/medi
Do minor editorial changes to improve documentation readability:
- mark literals as such;
- add table markups to hint sizes;
- define what PES means;
- instead of hardcoding devnode numbers to zero (like adapter0/) use a
question mark, to indicate that multiple devnodes may exist;
- add cross-re
The usage of the term "DVB" at the dvb API docs is confusing,
as, right now, it can refer to either the European digital TV
standard or to the subsystem.
So, prefer calling it as "Digital TV" on most places, to avoid
ambiguity.
Signed-off-by: Mauro Carvalho Chehab
---
.../media/uapi/dvb/audio-c
There are several issues on the return value for ioctls:
- Text is confusing;
- Some error codes don't exist;
- The non-generic error codes should come before the text
that points to the generic error codes;
- Tables don't contain column size hints;
- Some references are not marked as such.
Cor
The DVB term can either refer to the subsystem or to a delivery
system. Avoid it in the first case at the kernel-doc markups.
Signed-off-by: Mauro Carvalho Chehab
---
include/uapi/linux/dvb/frontend.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/uapi/linux/dv
Instead of having one chapter per file, place all of them at
the same chapter. That better organize the chapters at the uAPI
documentation.
As a side effect, now all uAPI headers are at the same page,
at the html output, with makes easier to use it as a reference
index for the spec.
Signed-off-by
Originally, when DVB was introduced, all codecs would be part of
MPEG2 standard. That's not true anymore, as there are a large
number of codec standards used on digital TV nowadays.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dvb/intro.rst | 9 -
1 file changed, 4 i
This ioctl is supported by the DVB core, but was never
documented.
Add a documentation for it.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dvb/dmx-get-pes-pids.rst | 22 --
1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/Documentation/med
There are several missing items at the API history. Yet,
as we're doing a significant change there, add a new entry.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dvb/dvbapi.rst | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/Documentation/media/uapi
This series should come after this series:
[PATCH v2 00/26] Improve DVB documentation and reduce its gap
(with actually has 27 patches :-p )
It adds documentation for a dmx.h ioctl (DMX_GET_PES_PIDS) and do
a cleanup at the documentation, to make it more coherent with the other
me
As we did with frontend.h, ca.h and dmx.h, move the struct
definition to net.h.
That should help to keep it updated, as more stuff gets
added there.
Signed-off-by: Mauro Carvalho Chehab
---
Documentation/media/uapi/dvb/net-add-if.rst | 34 -
Documentation/media/uapi/
On Thu, Aug 31, 2017 at 05:02:17PM -0700, Eric Biggers wrote:
> From: Eric Biggers
>
> Perhaps long overdue, add a documentation file for filesystem-level
> encryption, a.k.a. fscrypt or fs/crypto/, to the Documentation
> directory. The new file is based loosely on the latest version of the
> "E
Hi Kees,
On Thu, Jun 1, 2017 at 9:10 PM, Kees Cook wrote:
> On Thu, Jun 1, 2017 at 7:56 AM, Djalal Harouni wrote:
...
>
>> BTW Kees, also in next version I won't remove the
>> capable(CAP_NET_ADMIN) check from [1]
>> even if there is the new request_module_cap(), I would like it to be
>> in a di
While the current kernel code in drivers/of/ allows developers to be
sloppy and use a status value of "ok" in DTS files, the current DTSpec
0.1 makes it clear that the only acceptable spelling of that is
"okay". There's quite a lot of this scattered throughout the kernel
source, but this patch cle
While the current kernel code in drivers/of/ allows developers to be
sloppy and use a status value of "ok" in DTS files, the current DTSpec
0.1 makes it clear that the only acceptable spelling of that is
"okay". There's quite a lot of this scattered throughout the kernel
source, but this patch cle
60 matches
Mail list logo