Re: [PATCH] tpm: efi: Don't create binary_bios_measurements file for an empty log

2020-10-30 Thread Kai-Heng Feng
> On Oct 29, 2020, at 01:39, Tyler Hicks wrote: > > On 2020-10-28 11:30:11, Tyler Hicks wrote: >> So, we need help from Kai, Kenneth, or Mimi to verify my assumption that >> their firmware is providing an empty main event log and a populated >> final event log. > > Hi Kai, Kenneth, and Mimi -

Re: [PATCH] f2fs: move ioctl interface definitions to separated file

2020-10-30 Thread kernel test robot
Hi Chao, I love your patch! Yet something to improve: [auto build test ERROR on f2fs/dev-test] [also build test ERROR on linus/master v5.10-rc1 next-20201030] [cannot apply to linux/master] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

Re: [PATCH v5 1/2] arm64: dts: Add the Kontron i.MX8M Mini SoMs and baseboards

2020-10-30 Thread Shawn Guo
On Thu, Oct 01, 2020 at 05:13:37PM +0200, Schrempf Frieder wrote: > From: Frieder Schrempf > > Kontron Electronics GmbH offers small and powerful SoMs based on the > i.MX8M Mini SoC including PMIC, LPDDR4-RAM, eMMC and SPI NOR. > > The matching baseboards have the same form factor and similar in

[PATCH 0/1] debugfs: Add a helper to export atomic64_t values

2020-10-30 Thread Anand K Mistry
Here's my story: Once upon a time, there lived a developer that wanted to export an atomic64_t value to userspace using debugfs to help with debugging. But that developer found there was no helper function to do so and was very sad. The End. Yeah, it's a sad story. Here's my patch, merge me maybe?

[PATCH 1/1] debugfs: Add a helper to export atomic64_t values

2020-10-30 Thread Anand K Mistry
This mirrors support for exporting atomic_t values. Signed-off-by: Anand K Mistry --- fs/debugfs/file.c | 37 + include/linux/debugfs.h | 6 ++ 2 files changed, 43 insertions(+) diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c index a768a09430c

[PATCH] PM / reboot: Use S5 for reboot

2020-10-30 Thread Kai-Heng Feng
After reboot, it's not possible to use hotkeys to enter BIOS setup and boot menu on some HP laptops. BIOS folks identified the root cause is the missing _PTS call, and BIOS is expecting _PTS to do proper reset. Using S5 for reboot is default behavior under Windows, "A full shutdown (S5) occurs wh

Re: [PATCH] PM / reboot: Use S5 for reboot

2020-10-30 Thread Kai-Heng Feng
Hi Hans, > On Oct 30, 2020, at 15:06, Kai-Heng Feng wrote: > > After reboot, it's not possible to use hotkeys to enter BIOS setup and > boot menu on some HP laptops. > > BIOS folks identified the root cause is the missing _PTS call, and BIOS > is expecting _PTS to do proper reset. > > Using S5

Re: [RFC PATCH 2/3] RISC-V: Initial DTS for Microchip ICICLE board

2020-10-30 Thread Atish Patra
On Thu, Oct 29, 2020 at 3:24 AM Ben Dooks wrote: > > On 28/10/2020 23:27, Atish Patra wrote: > > Add initial DTS for Microchip ICICLE board having only > > essential devcies (clocks, sdhci, ethernet, serial, etc). > > > > Signed-off-by: Atish Patra > > --- > > arch/riscv/boot/dts/Makefile

Re: [PATCH 00/12] dt-bindings: arm: fsl: fix and document compatibles

2020-10-30 Thread Shawn Guo
On Thu, Oct 01, 2020 at 07:07:47PM +0200, Krzysztof Kozlowski wrote: > Hi, > > This is a continuation of my series: > https://lore.kernel.org/linux-arm-kernel/20200930190143.27032-1-k...@kernel.org/ > > It is rebased on top of it and finally fixes remaining i.MX2 - i.MX8 > boards compatibles. >

Re: [Outreachy kernel] [PATCH] drm/amdgpu: use DEFINE_DEBUGFS_ATTRIBUTE with debugfs_create_file_unsafe()

2020-10-30 Thread Greg KH
On Fri, Oct 30, 2020 at 08:52:45AM +0530, Deepak R Varma wrote: > Using DEFINE_DEBUGFS_ATTRIBUTE macro with debugfs_create_file_unsafe() > function in place of the debugfs_create_file() function will make the > file operation struct "reset" aware of the file's lifetime. Additional > details here: h

Re: [PATCH 20/33] docs: ABI: testing: make the files compatible with ReST output

2020-10-30 Thread Mauro Carvalho Chehab
Em Thu, 29 Oct 2020 14:49:12 + Jonathan Cameron escreveu: > On Wed, 28 Oct 2020 15:23:18 +0100 > Mauro Carvalho Chehab wrote: > > > From: Mauro Carvalho Chehab > > > > Some files over there won't parse well by Sphinx. > > > > Fix them. > > > > Signed-off-by: Mauro Carvalho Chehab > > S

[PATCH] i40e: Fix memory leak in i40e_probe

2020-10-30 Thread Keita Suzuki
Struct i40e_veb is allocated in function i40e_setup_pf_switch, and stored to an array field veb inside struct i40e_pf. However when i40e_setup_misc_vector fails, this memory leaks. Fix this by calling exit and teardown functions. Signed-off-by: Keita Suzuki --- drivers/net/ethernet/intel/i40e/i

[tip:x86/seves] BUILD SUCCESS 2411cd82112397bfb9d8f0f19cd46c3d71e0ce67

2020-10-30 Thread kernel test robot
mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a005-20201030 x86_64 randconfig-a001-20201030 x86_64

Re: [PATCH] KVM: x86: Filter out more Intel-specific PMU MSRs in kvm_init_msr_list()

2020-10-30 Thread Vitaly Kuznetsov
Vitaly Kuznetsov writes: > When running KVM selftest in a Hyper-V VM they stumble upon > > Unexpected result from KVM_GET_MSRS, r: 14 (failed MSR was 0x309) > > MSR_ARCH_PERFMON_FIXED_CTR[0..3] along with MSR_CORE_PERF_FIXED_CTR_CTRL, > MSR_CORE_PERF_GLOBAL_STATUS, MSR_CORE_PERF_GLOBAL_CTRL, >

Re: [PATCH 1/1] debugfs: Add a helper to export atomic64_t values

2020-10-30 Thread Greg Kroah-Hartman
On Fri, Oct 30, 2020 at 06:04:42PM +1100, Anand K Mistry wrote: > This mirrors support for exporting atomic_t values. > > Signed-off-by: Anand K Mistry > > --- > > fs/debugfs/file.c | 37 + > include/linux/debugfs.h | 6 ++ > 2 files changed, 43 i

RE: Re: [PATCH v2 1/1] scsi: ufs: Fix unexpected values get from ufshcd_read_desc_param()

2020-10-30 Thread Daejun Park
>> Hi, Can Guo >> >>> Since WB feature has been added, WB related sysfs entries can be >>> accessed >>> even when an UFS device does not support WB feature. In that case, the >>> descriptors which are not supported by the UFS device may be wrongly >>> reported when they are accessed from their co

Re: [PATCH] kunit: tool: fix extra trailing \n in parsed test output

2020-10-30 Thread David Gow
On Fri, Oct 30, 2020 at 1:41 PM Daniel Latypov wrote: > > On Thu, Oct 29, 2020 at 7:34 PM David Gow wrote: > > > > On Wed, Oct 21, 2020 at 7:32 AM Daniel Latypov wrote: > > > > > > For simplcity, strip all trailing whitespace from parsed output. > > > I imagine no one is printing out meaningful

Re: [PATCH] kunit: tool: fix --raw_output to actually show output

2020-10-30 Thread David Gow
On Fri, Oct 30, 2020 at 2:17 PM Daniel Latypov wrote: > > Currently --raw_output means nothing gets shown. > Why? > Because `raw_output()` has a `yield` and therefore is a generator, which > means it only executes when you ask it for a value. > > Given no one actually is using it as a generator (c

[PATCH] spi: sprd: add runtime pm for transfer message

2020-10-30 Thread Chunyan Zhang
From: Bangzheng Liu Before transfer one message, spi core would set chipselect, sprd spi device should be resumed from runtime suspend, otherwise kernel would crash once access spi registers. The sprd spi device can be suspended until clearing chipselect which would be executed after transfer. F

Re: [patch V2 00/18] mm/highmem: Preemptible variant of kmap_atomic & friends

2020-10-30 Thread Christoph Hellwig
On Thu, Oct 29, 2020 at 11:18:06PM +0100, Thomas Gleixner wrote: > This is achieved by: ... > > - Consolidating all kmap atomic implementations in generic code ... > Though I wanted to share the current state of affairs before investigating > that further. If there is consensus in going forwa

[PATCH v2] f2fs: move ioctl interface definitions to separated file

2020-10-30 Thread Chao Yu
Like other filesystem does, we introduce a new file f2fs.h in path of include/uapi/linux/, and move f2fs-specified ioctl interface definitions to that file, after then, in order to use those definitions, userspace developer only need to include the new header file rather than copy & paste definitio

Re: [PATCH -V2 1/2] mempolicy: Rename MPOL_F_MORON to MPOL_F_MOPRON

2020-10-30 Thread Huang, Ying
Michal Hocko writes: > On Wed 28-10-20 10:34:10, Huang Ying wrote: >> To follow code-of-conduct better. > > This is changing a user visible interface and any userspace which refers > to the existing name will fail to compile unless I am missing something. Although these flags are put in uapi, I

Re: [PATCH v4 2/2] firmware: QCOM_SCM: Allow qcom_scm driver to be loadable as a permenent module

2020-10-30 Thread John Stultz
> diff --git a/drivers/net/wireless/ath/ath10k/Kconfig > b/drivers/net/wireless/ath/ath10k/Kconfig > index 40f91bc8514d8..a490e78890017 100644 > --- a/drivers/net/wireless/ath/ath10k/Kconfig > +++ b/drivers/net/wireless/ath/ath10k/Kconfig > @@ -44,6 +44,7 @@ config ATH10K_SNOC > tristate "

[PATCH] cpufreq: schedutil: Don't skip freq update if need_freq_update is set

2020-10-30 Thread Viresh Kumar
The cpufreq policy's frequency limits (min/max) can get changed at any point of time, while schedutil is trying to update the next frequency. Though the schedutil governor has necessary locking and support in place to make sure we don't miss any of those updates, there is a corner case where the go

Re: [PATCH 1/1] debugfs: Add a helper to export atomic64_t values

2020-10-30 Thread Anand K. Mistry
On Fri, 30 Oct 2020 at 18:20, Greg Kroah-Hartman wrote: > > On Fri, Oct 30, 2020 at 06:04:42PM +1100, Anand K Mistry wrote: > > This mirrors support for exporting atomic_t values. > > > > Signed-off-by: Anand K Mistry > > > > --- > > > > fs/debugfs/file.c | 37 +

Re: [PATCH v2 net] net: sch_generic: aviod concurrent reset and enqueue op for lockless qdisc

2020-10-30 Thread Yunsheng Lin
On 2020/10/30 3:05, Cong Wang wrote: > On Wed, Oct 28, 2020 at 7:54 PM Yunsheng Lin wrote: >> >> On 2020/9/18 3:26, Cong Wang wrote: >>> On Fri, Sep 11, 2020 at 1:13 AM Yunsheng Lin wrote: On 2020/9/11 4:07, Cong Wang wrote: > On Tue, Sep 8, 2020 at 4:06 AM Yunsheng Lin > wrot

Re: [PATCH] treewide: Remove stringification from __alias macro definition

2020-10-30 Thread Nathan Chancellor
On Thu, Oct 29, 2020 at 08:07:31PM -0700, Joe Perches wrote: > Like the old __section macro, the __alias macro uses macro # stringification > to create quotes around the symbol name used in the __attribute__. > > This can cause differences between gcc and clang when the stringification > itself co

[PATCH v2 01/39] scripts: get_abi.pl: change script to allow parsing in ReST mode

2020-10-30 Thread Mauro Carvalho Chehab
Right now, several ABI files won't parse as ReST, as they contain severe violations to the spec, with makes the script to crash. So, the code has a sanity logic with escapes bad code and cleans tags that can cause Sphinx to crash. Add support for disabling this mode. Right now, as enabling rst-m

[PATCH v2 32/39] docs: ABI: change read/write attributes

2020-10-30 Thread Mauro Carvalho Chehab
Unfortunately, (R) and (W) are valid markups for enumerated lists, as described at: https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#enumerated-lists So, we ned to replace them by: (R) -> (Read) (W) -> (Write) As otherwise, (R) will be displayed as R.,

[PATCH v2 12/39] docs: kernel_abi.py: add a script to parse ABI documentation

2020-10-30 Thread Mauro Carvalho Chehab
The ABI documentation is special: it is not plain text files, but, instead, files with an strict format, as specified by Documentation/ABI/README. Add a parser for it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/kernel_abi.py | 157 + 1 file changed

[PATCH v2 05/39] scripts: get_abi.pl: cleanup ABI cross-reference logic

2020-10-30 Thread Mauro Carvalho Chehab
Right now, the cross-references are generated on a single step, when doing ReST output. While this is nice optimization, it prevents auto-creating cross-references for ABI symbols. So, split it into a separate logic. While here, turn on Perl warnings, as it helps to debug problems inside the scr

[PATCH v2 28/39] docs: ABI: fix syntax to be parsed using ReST notation

2020-10-30 Thread Mauro Carvalho Chehab
There are a number of new changes at the ABI files that cause them to produce warnings when generating ABI output. Fix them. Signed-off-by: Mauro Carvalho Chehab --- .../ABI/stable/sysfs-driver-firmware-zynqmp | 62 - Documentation/ABI/testing/debugfs-moxtet | 28 -- .../

[PATCH v2 11/39] docs: kernellog.py: add support for info()

2020-10-30 Thread Mauro Carvalho Chehab
An extension may want to just inform about something. So, add support for it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/kernellog.py | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/sphinx/kernellog.py b/Documentation/sphinx/kernellog.py

[PATCH v2 00/39] ABI: add it to the documentation build system

2020-10-30 Thread Mauro Carvalho Chehab
Hi Greg, That's the second version of the ABI documentation patches, adding support for having the Linux ABI documentted inside the Linux admin manual. When compared with the version I sent years ago, this version has: - a logic to detect duplicated ABI symbols; - it auto-generate cross-referenc

[PATCH v2 19/39] docs: ABI: stable: make files ReST compatible

2020-10-30 Thread Mauro Carvalho Chehab
Several entries at the stable ABI files won't parse if we pass them directly to the ReST output. Adjust them, in order to allow adding their contents as-is at the stable ABI book. Signed-off-by: Mauro Carvalho Chehab --- Documentation/ABI/stable/firewire-cdev| 4 + Documentation/ABI/st

[PATCH v2 09/39] scripts: get_abi.pl: use bold font for ABI definitions

2020-10-30 Thread Mauro Carvalho Chehab
As we're using tables, let's distinguish the ones used by ABI by using a bold font. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl index 5612f019fae0..12a23f9a2f86 100755 --- a/scripts/get_ab

[PATCH v2 35/39] docs: ABI: sysfs-class-power: unify duplicated properties

2020-10-30 Thread Mauro Carvalho Chehab
The ABI is not supposed to have duplicated entries, as warned by get_abi.pl: $ ./scripts/get_abi.pl validate 2>&1|grep sysfs-class-power Warning: /sys/class/power_supply//current_avg is defined 2 times: Documentation/ABI/testing/sysfs-class-power:108 Documentation/ABI/testing/s

[PATCH v2 34/39] docs: ABI: unify /sys/class/leds//brightness documentation

2020-10-30 Thread Mauro Carvalho Chehab
This ABI is defined twice, one for normal leds and another one for multicolor ones. Ensure that just one definition is there at ABI. Acked-by: Pavel Machek Signed-off-by: Mauro Carvalho Chehab --- Documentation/ABI/testing/sysfs-class-led | 25 --- .../ABI/testing/sysfs-cla

[PATCH v2 06/39] scripts: get_abi.pl: detect duplicated ABI definitions

2020-10-30 Thread Mauro Carvalho Chehab
The ABI should define only once each What. The current script logic assumes that. However, that's not the case, currently: there are several symbols with a generic definition, and per-driver ones. Better handle such cases, by preserving the cross-references with the files that define them, but al

[PATCH v2 38/39] docs: ABI: sysfs-class-led-trigger-pattern: remove hw_pattern duplication

2020-10-30 Thread Mauro Carvalho Chehab
The ABI files are supposed to be unique. Yet, in the specific case of hw_pattern, there are some duplicated entries as warned by scripts/get_abi.pl: Warning: /sys/class/leds//hw_pattern is defined 3 times: Documentation/ABI/testing/sysfs-class-led-trigger-pattern:14 Documentation/ABI/t

[PATCH v2 37/39] docs: ABI: sysfs-class-backlight: unify ABI documentation

2020-10-30 Thread Mauro Carvalho Chehab
Both adp8860 and adp8870 define some extensions to the backlight class. This causes warnings: Warning: /sys/class/backlight//ambient_light_level is defined 2 times: /sys/class/backlight//ambient_light_level:8 /sys/class/backlight//ambient_light_level:30 Warning: /sys/class/back

[PATCH v2 39/39] scripts: get_abi.pl: assume ReST format by default

2020-10-30 Thread Mauro Carvalho Chehab
All ABI files are now compatible with ReST format. So, change the script default to assume that the ABI source files are compatible with ReST. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get_abi.pl b/scri

[PATCH v2 17/39] docs: add ABI documentation to the admin-guide book

2020-10-30 Thread Mauro Carvalho Chehab
As we don't want a generic Sphinx extension to execute commands, change the one proposed to Markus to call the abi_book.pl script. Use a script to parse the Documentation/ABI directory and output it at the admin-guide. Signed-off-by: Mauro Carvalho Chehab --- Documentation/admin-guide/abi-obsol

[PATCH v2 33/39] docs: ABI: stable: remove a duplicated documentation

2020-10-30 Thread Mauro Carvalho Chehab
Perhaps due to a wrong cut-and-paste, this entry: What: /sys/bus/vmbus/devices//channels//cpu was added twice by the same patch, one following the other. Remove the duplication. Fixes: c2e5df616e1a ("vmbus: add per-channel sysfs info") Acked-by: Wei Liu Signed-off-by: Mauro C

[PATCH v2 26/39] docs: Kconfig/Makefile: add a check for broken ABI files

2020-10-30 Thread Mauro Carvalho Chehab
The files under Documentation/ABI should follow the syntax as defined at Documentation/ABI/README. Allow checking if they're following the syntax by running the ABI parser script on COMPILE_TEST. With that, when there's a problem with a file under Documentation/ABI, it would produce a warning lik

[PATCH v2 25/39] docs: abi-testing.rst: enable --rst-sources when building docs

2020-10-30 Thread Mauro Carvalho Chehab
Now that ABI/testing documents were fixed, add --rst-sources to the ABI/testing too. Signed-off-by: Mauro Carvalho Chehab --- Documentation/admin-guide/abi-testing.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/admin-guide/abi-testing.rst b/Documentation/admin-guide/abi-t

[PATCH v2 27/39] docs: ABI: convert testing/configfs-acpi to ReST

2020-10-30 Thread Mauro Carvalho Chehab
There are some problems with this file when a ReST content is produced. Fix it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/ABI/testing/configfs-acpi | 34 ++--- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/Documentation/ABI/testing/configfs-acpi

[PATCH v2 22/39] docs: ABI: make it parse ABI/stable as ReST-compatible files

2020-10-30 Thread Mauro Carvalho Chehab
Now that the stable ABI files are compatible with ReST, parse them without converting complex descriptions as literal blocks nor escaping special characters. Please notice that escaping special characters will probably be needed at descriptions, at least for the asterisk character. Signed-off-by:

[PATCH v2 29/39] docs: ABI: vdso: use the right format for ABI

2020-10-30 Thread Mauro Carvalho Chehab
This ABI is not following the format described at ABI/README. Use it, filling in the blanks with the git log that added it, and using the current e-mail from Andy. Signed-off-by: Mauro Carvalho Chehab --- Documentation/ABI/stable/vdso | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Do

[PATCH v2 23/39] docs: ABI: create a 2-depth index for ABI

2020-10-30 Thread Mauro Carvalho Chehab
That helps to identify what ABI files are adding titles. Signed-off-by: Mauro Carvalho Chehab --- Documentation/admin-guide/abi.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/admin-guide/abi.rst b/Documentation/admin-guide/abi.rst index 3b9645c77469..bcab3

[PATCH v2 24/39] docs: ABI: don't escape ReST-incompatible chars from obsolete and removed

2020-10-30 Thread Mauro Carvalho Chehab
With just a single fix, the contents there can be parsed properly without the need to escape any ReST incompatible stuff. Signed-off-by: Mauro Carvalho Chehab --- Documentation/ABI/obsolete/sysfs-gpio | 2 ++ Documentation/admin-guide/abi-obsolete.rst | 1 + Documentation/admin-guide/abi-re

[PATCH v2 30/39] docs: ABI: sysfs-bus-nvdimm: use the right format for ABI

2020-10-30 Thread Mauro Carvalho Chehab
This ABI is not following the format described at ABI/README. Use it, filling in the blanks with the git log that added it, and using the current e-mail from Dan. Signed-off-by: Mauro Carvalho Chehab --- Documentation/ABI/testing/sysfs-bus-nvdimm | 6 ++ 1 file changed, 6 insertions(+) dif

[PATCH v2 36/39] docs: ABI: sysfs-c2port: remove a duplicated entry

2020-10-30 Thread Mauro Carvalho Chehab
As warned by scripts/get_abi.pl: Warning: /sys/class/c2port/c2portX/flash_erase is defined 2 times: Documentation/ABI/testing/sysfs-c2port:60 Documentation/ABI/testing/sysfs-c2port:68 This entry was added twice at the same patch. Probalby a cut-and paste issue. Fixes: 4e17e1db9647 ("A

[PATCH v2 21/39] docs: ABI: sysfs-uevent: make it compatible with ReST output

2020-10-30 Thread Mauro Carvalho Chehab
- Replace " by ``, in order to use monospaced fonts; - mark literal blocks as such. Signed-off-by: Mauro Carvalho Chehab --- Documentation/ABI/testing/sysfs-uevent | 28 +++--- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-uev

[PATCH v2 08/39] scripts: get_abi.pl: prevent duplicated file names

2020-10-30 Thread Mauro Carvalho Chehab
The same filename may exist on multiple directories within ABI. Create separate entries at the internal database for each of them. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/scripts/get_abi.pl b

[PATCH v2 15/39] docs: kernel_abi.py: use --enable-lineno for get_abi.pl

2020-10-30 Thread Mauro Carvalho Chehab
Just like kernel-doc extension, we need to be able to identify what part of an imported document has issues, as reporting them as: get_abi.pl rest --dir $srctree/Documentation/ABI/obsolete --rst-source:1689: ERROR: Unexpected indentation. Makes a lot harder for someone to fix. It should

[PATCH v2 16/39] docs: kernel_abi.py: Handle with a lazy Sphinx parser

2020-10-30 Thread Mauro Carvalho Chehab
The Sphinx docutils parser is lazy: if the content is bigger than a certain number of lines, it silenlty stops parsing it, producing an incomplete content. This seems to be worse on newer Sphinx versions, like 2.0. So, change the logic to parse the contents per input file. Signed-off-by: Mauro Ca

[PATCH v2 18/39] docs: ABI: README: specify that files should be ReST compatible

2020-10-30 Thread Mauro Carvalho Chehab
As we plan to remove the escaping code from the scripts/get_abi.pl, specify at the ABI README file that the content of the file should be ReST compatible. Signed-off-by: Mauro Carvalho Chehab --- Documentation/ABI/README | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git

[PATCH v2 14/39] docs: kernel_abi.py: make it compatible with Sphinx 1.7+

2020-10-30 Thread Mauro Carvalho Chehab
The same way kerneldoc.py needed changes to work with newer Sphinx, this script needs the same changes. While here, reorganize the include order to match kerneldoc.py. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/kernel_abi.py | 39 +- 1 file changed

[PATCH v2 13/39] docs: kernel_abi.py: fix UTF-8 support

2020-10-30 Thread Mauro Carvalho Chehab
The parser breaks with UTF-8 characters with Sphinx 1.4. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/kernel_abi.py | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/Documentation/sphinx/kernel_abi.py b/Documentation/sphinx/kernel_abi.py i

[PATCH v2 07/39] scripts: get_abi.pl: output users in ReST format

2020-10-30 Thread Mauro Carvalho Chehab
Right now, the script only outputs Users on search. Print it also in ReST format. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 8 1 file changed, 8 insertions(+) diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl index 1d1408fad130..e5a5588a8639 100755 --- a/scripts/

[PATCH v2 02/39] scripts: get_abi.pl: fix parsing on ReST mode

2020-10-30 Thread Mauro Carvalho Chehab
When the source ABI file is using ReST notation, the script should handle whitespaces and lines with care, as otherwise the file won't be properly recognized. Address the bugs that are on such part of the script. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 30 ++---

[PATCH v2 03/39] scripts: get_abi.pl: Allow optionally record from where a line came from

2020-10-30 Thread Mauro Carvalho Chehab
The get_abi.pl reads a lot of files and can join them on a single output file. Store where each "What:" output came from, in order to be able to optionally display it. This is useful for the Sphinx extension, with can now be able to blame what ABI file has issues, and on what line the What: descri

[PATCH v2 04/39] scripts: get_abi.pl: improve its parser to better catch up indentation

2020-10-30 Thread Mauro Carvalho Chehab
The original parser for indentation were relying on having just one description for each "what". However, that's not the case: there are a number of ABI symbols that got defined multiple times. Improve the parser for it to better handle descriptions if entries are duplicated. Signed-off-by: Mauro

Re: [PATCH v2] Documentation: Chinese translation of Documentation/arm64/perf.rst

2020-10-30 Thread Alex Shi
Reviewed-by: Alex Shi 在 2020/10/30 下午12:05, Bailu Lin 写道: > This is a Chinese translated version of > Documentation/arm64/perf.rst > > Signed-off-by: Bailu Lin > ---

Re: [PATCH v7 08/12] ARM: dts: imx: Fix schema warnings for pwm-leds

2020-10-30 Thread Shawn Guo
On Mon, Oct 05, 2020 at 10:34:47PM +0200, Alexander Dahl wrote: > The node names for devices using the pwm-leds driver follow a certain > naming scheme (now). Parent node name is not enforced, but recommended > by DT project. > > DTC arch/arm/boot/dts/imx53-ppd.dt.yaml > CHECK arch/arm/

[rcu] 44bad5b3cc: dmesg.INFO:rcu_preempt_detected_stalls_on_CPUs/tasks

2020-10-30 Thread kernel test robot
Greeting, FYI, we noticed the following commit (built with gcc-9): commit: 44bad5b3cca2d452d17ef82841b20b42a2cf11a0 ("rcu: Do full report for .need_qs for strict GPs") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: trinity version: trinity-i386-4d2343bd-1_2

Re: [PATCH v2 1/2] bpf: don't rely on GCC __attribute__((optimize)) to disable GCSE

2020-10-30 Thread Ard Biesheuvel
On Fri, 30 Oct 2020 at 04:22, Alexei Starovoitov wrote: > > On Thu, Oct 29, 2020 at 05:28:11PM -0700, Nick Desaulniers wrote: > > > > We already know that -fno-asynchronous-unwind-tables get dropped, > > hence this patch. > > On arm64 only. Not on x86 > > > And we know -fomit-frame-pointer or > >

Re: linux-next: failure while fetching the pinctrl-samsung-fixes tree

2020-10-30 Thread Krzysztof Kozlowski
On Thu, 29 Oct 2020 at 22:10, Stephen Rothwell wrote: > > Hi all, > > Fetching the pinctrl-samsung-fixes tree produces this error: > > fatal: couldn't find remote ref refs/heads/pinctrl-fixes That's my fault - I wanted to have unified naming across by repositories. Could you start fetching branch

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

2020-10-30 Thread Christian König
Am 30.10.20 um 01:07 schrieb Stephen Rothwell: Hi all, After merging the drm-misc tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/gpu/drm/nouveau/nouveau_ttm.c: In function 'nouveau_ttm_init': drivers/gpu/drm/nouveau/nouveau_ttm.c:320:19: error: implicit declarati

Re: [PATCH v2] clk: renesas: r8a774c0: Add RPC clocks

2020-10-30 Thread Geert Uytterhoeven
Hi Prabhakar, On Thu, Oct 29, 2020 at 3:28 PM Geert Uytterhoeven wrote: > On Thu, Oct 29, 2020 at 11:55 AM Lad Prabhakar > wrote: > > Describe the RPCSRC internal clock and the RPC[D2] clocks derived from it, > > as well as the RPC-IF module clock, in the RZ/G2E (R8A774C0) CPG/MSSR > > driver.

Re: [PATCH] arm64: dts: imx8mm-beacon-som: Fix Choppy BT audio

2020-10-30 Thread Shawn Guo
On Wed, Oct 07, 2020 at 08:02:37AM -0500, Adam Ford wrote: > When streaming bluetooth audio, the sound is choppy due to the > fact that the default baud rate of the HCI interface is too slow > to handle 16-bit stereo at 48KHz. > > The Bluetooth chip is capable of up to 4M baud on the serial port,

Re: [Outreachy kernel] [PATCH] drm/amdgpu: use DEFINE_DEBUGFS_ATTRIBUTE with debugfs_create_file_unsafe()

2020-10-30 Thread Deepak R Varma
On Fri, Oct 30, 2020 at 08:11:20AM +0100, Greg KH wrote: > On Fri, Oct 30, 2020 at 08:52:45AM +0530, Deepak R Varma wrote: > > Using DEFINE_DEBUGFS_ATTRIBUTE macro with debugfs_create_file_unsafe() > > function in place of the debugfs_create_file() function will make the > > file operation struct "

[PATCH v2 0/2] Modify documentation and machine driver for SC7180 sound card

2020-10-30 Thread Ajye Huang
Note: - The patch is made by the collaboration of Ajye Huang Cheng-Yi Chiang Changes from v1 to v2: - Ducumentation: Modify the dimc-gpios property description and examples. - Machine driver: - Remove "qcom,sc7180-sndcard-rt5682-m98357-2mic" compatible - See gpio property and use anadditi

[PATCH v2 1/2] ASoC: google: dt-bindings: modify machine bindings for two MICs case

2020-10-30 Thread Ajye Huang
Add a property "dmic-gpios" for switching between two MICs. Signed-off-by: Ajye Huang --- .../bindings/sound/google,sc7180-trogdor.yaml | 58 +++ 1 file changed, 58 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/google,sc7180-trogdor.yaml b/Documentation/dev

Re: [RFC PATCH v2] selinux: Fix kmemleak after disabling selinux runtime

2020-10-30 Thread Hou Tao
Hi, On 2020/10/29 0:29, Casey Schaufler wrote: > On 10/27/2020 7:06 PM, Chen Jun wrote: >> From: Chen Jun >> >> Kmemleak will report a problem after using >> "echo 1 > /sys/fs/selinux/disable" to disable selinux on runtime. > > Runtime disable of SELinux has been deprecated. It would be > wastef

[PATCH v2 2/2] ASoC: qcom: sc7180: Modify machine driver for 2mic

2020-10-30 Thread Ajye Huang
In addition, having mixer control to switch between DMICs by using "dmic-gpios" property. Refer to this one as an example, commit b7a742cff3f6 ("ASoC: AMD: Use mixer control to switch between DMICs") Signed-off-by: Ajye Huang --- sound/soc/qcom/sc7180.c | 59

Re: [PATCH 2/3] mwifiex: add allow_ps_mode module parameter

2020-10-30 Thread Tsuchiya Yuto
On Wed, 2020-10-28 at 15:04 -0700, Brian Norris wrote: > On Wed, Oct 28, 2020 at 2:56 PM Tsuchiya Yuto wrote: > > > > To make the ps_mode (power_save) control easier, this commit adds a new > > module parameter allow_ps_mode and set it false (disallowed) by default. > > This sounds like a bad id

Re: [PATCHv2 2/4] coresight: tmc-etf: Fix NULL ptr dereference in tmc_enable_etf_sink_perf()

2020-10-30 Thread Sai Prakash Ranjan
Hello guys, On 2020-10-24 02:07, Mathieu Poirier wrote: On Fri, Oct 23, 2020 at 03:44:16PM +0200, Peter Zijlstra wrote: On Fri, Oct 23, 2020 at 02:29:54PM +0100, Suzuki Poulose wrote: > On 10/23/20 2:16 PM, Peter Zijlstra wrote: > > On Fri, Oct 23, 2020 at 01:56:47PM +0100, Suzuki Poulose wrote

Re: [Outreachy kernel] [PATCH] drm/amdgpu: use DEFINE_DEBUGFS_ATTRIBUTE with debugfs_create_file_unsafe()

2020-10-30 Thread Christian König
Am 30.10.20 um 08:57 schrieb Deepak R Varma: On Fri, Oct 30, 2020 at 08:11:20AM +0100, Greg KH wrote: On Fri, Oct 30, 2020 at 08:52:45AM +0530, Deepak R Varma wrote: Using DEFINE_DEBUGFS_ATTRIBUTE macro with debugfs_create_file_unsafe() function in place of the debugfs_create_file() function wi

Re: [PATCH] arm64: dts: imx8mm-beacon-som: Configure supplies on secondary cpus

2020-10-30 Thread Shawn Guo
On Wed, Oct 07, 2020 at 09:04:57AM -0500, Adam Ford wrote: > Each cpu core should have a corresponding supply, but only cpu0 does. > This patch adds a supply for each of the secondary cpus. > > Signed-off-by: Adam Ford Applied, thanks.

Re: [PATCH 2/3] mwifiex: add allow_ps_mode module parameter

2020-10-30 Thread Tsuchiya Yuto
On Thu, 2020-10-29 at 13:04 -0400, Willem de Bruijn wrote: > On Wed, Oct 28, 2020 at 9:13 PM Brian Norris wrote: > > > > On Wed, Oct 28, 2020 at 2:56 PM Tsuchiya Yuto wrote: > > > > > > To make the ps_mode (power_save) control easier, this commit adds a new > > > module parameter allow_ps_mode

Re: [Outreachy kernel] [PATCH] drm/amdgpu: use DEFINE_DEBUGFS_ATTRIBUTE with debugfs_create_file_unsafe()

2020-10-30 Thread Greg KH
On Fri, Oct 30, 2020 at 01:27:16PM +0530, Deepak R Varma wrote: > On Fri, Oct 30, 2020 at 08:11:20AM +0100, Greg KH wrote: > > On Fri, Oct 30, 2020 at 08:52:45AM +0530, Deepak R Varma wrote: > > > Using DEFINE_DEBUGFS_ATTRIBUTE macro with debugfs_create_file_unsafe() > > > function in place of the

Re: [PATCH 1/1] debugfs: Add a helper to export atomic64_t values

2020-10-30 Thread Greg Kroah-Hartman
On Fri, Oct 30, 2020 at 06:30:49PM +1100, Anand K. Mistry wrote: > On Fri, 30 Oct 2020 at 18:20, Greg Kroah-Hartman > wrote: > > > > On Fri, Oct 30, 2020 at 06:04:42PM +1100, Anand K Mistry wrote: > > > This mirrors support for exporting atomic_t values. > > > > > > Signed-off-by: Anand K Mistry

[PATCH 0/2] Designware I2C slave confusing IC_INTR_STOP_DET handle

2020-10-30 Thread Michael Wu
When an I2C slave works, sometimes both IC_INTR_RX_FULL and IC_INTR_STOP_DET may be rising during an IRQ handle, especially when system is busy or too late to handle interrupts. If IC_INTR_RX_FULL is rising and the system doesn't handle immediately, IC_INTR_STOP_DET may be rising and the system ha

[PATCH 1/2] i2c: designware: call i2c_dw_read_clear_intrbits_slave() once

2020-10-30 Thread Michael Wu
If some bits were cleared by i2c_dw_read_clear_intrbits_slave() in i2c_dw_isr_slave() and not handled immediately, those cleared bits would not be shown again by later i2c_dw_read_clear_intrbits_slave(). They therefore were forgotten to be handled. i2c_dw_read_clear_intrbits_slave() should be call

Re: [PATCH 1/3] mwifiex: disable ps_mode explicitly by default instead

2020-10-30 Thread Tsuchiya Yuto
On Thu, 2020-10-29 at 11:25 -0700, Brian Norris wrote: > On Wed, Oct 28, 2020 at 7:04 PM Tsuchiya Yuto wrote: > > > > On Microsoft Surface devices (PCIe-88W8897), the ps_mode causes > > connection unstable, especially with 5GHz APs. Then, it eventually causes > > fw crash. > > > > This commit di

[PATCH 2/2] i2c: designware: slave should do WRITE_REQUESTED before WRITE_RECEIVED

2020-10-30 Thread Michael Wu
Sometimes we would get the following flow when doing an i2cset: 0x1 STATUS SLAVE_ACTIVITY=0x1 : RAW_INTR_STAT=0x514 : INTR_STAT=0x4 I2C_SLAVE_WRITE_RECEIVED 0x1 STATUS SLAVE_ACTIVITY=0x0 : RAW_INTR_STAT=0x714 : INTR_STAT=0x204 I2C_SLAVE_WRITE_REQUESTED I2C_SLAVE_WRITE_RECEIVED Documentation/i2c/s

Re: [PATCH v8 1/4] SFH: Add maintainers and documentation for AMD SFH based on HID framework

2020-10-30 Thread Lukas Bulwahn
wrong here, but it seems that the git commit 302f0dad8c97 ("SFH: Add maintainers and documentation for AMD SFH based on HID framework") on next-20201030 dropped the addition of the rst file compared to this patch v8 here. See: git show --stat 302f0dad8c97a11abcf145ff3c70

Re: [RESEND PATCH] KEYS: asymmetric: Fix kerneldoc

2020-10-30 Thread Jarkko Sakkinen
On Thu, Oct 29, 2020 at 04:48:30PM +0100, Krzysztof Kozlowski wrote: > Fix W=1 compile warnings (invalid kerneldoc): > > crypto/asymmetric_keys/asymmetric_type.c:160: warning: Function parameter > or member 'kid1' not described in 'asymmetric_key_id_same' > crypto/asymmetric_keys/asymmetr

Re: [PATCH v2 2/2] init/Kconfig: Increase default log buffer size from 128 KB to 512 KB

2020-10-30 Thread Geert Uytterhoeven
On Tue, Aug 11, 2020 at 12:55 PM Petr Mladek wrote: > On Tue 2020-08-11 11:29:24, Paul Menzel wrote: > > Commit f17a32e97e (let LOG_BUF_SHIFT default to 17) from 2008 was the > > last time, the the default log buffer size bump was increased. > > > > Machines have evolved, and on current hardware,

Re: [PATCH] arm64/smp: Move rcu_cpu_starting() earlier

2020-10-30 Thread Will Deacon
On Thu, Oct 29, 2020 at 09:17:35AM -0400, Qian Cai wrote: > On Thu, 2020-10-29 at 09:10 +, Will Deacon wrote: > > On Wed, Oct 28, 2020 at 02:26:14PM -0400, Qian Cai wrote: > > > The call to rcu_cpu_starting() in secondary_start_kernel() is not early > > > enough in the CPU-hotplug onlining proc

Re: [PATCH v4 03/11] arm64: dts: ls1088a: add external MDIO device nodes

2020-10-30 Thread Shawn Guo
On Mon, Oct 26, 2020 at 06:09:57PM +0200, Ioana Ciornei wrote: > Add the external MDIO device nodes found in the WRIOP global memory > region. This is needed for management of external PHYs. > > Signed-off-by: Ioana Ciornei > --- > Changes in v2: > - removed the 0x from the unit addresses > Chan

Re: [PATCH 2/3] hwmon: ltc2992: Add support for GPIOs.

2020-10-30 Thread kernel test robot
ig: x86_64-randconfig-r023-20201030 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 772aaa602383cf82795572ebcd86b0e660f3579f) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/

[PATCH] crypto: arm64 - move const after static

2020-10-30 Thread Tian Tao
Fixed the WARNING: Move const after static - use 'static const u8' Signed-off-by: Tian Tao --- arch/arm64/crypto/aes-ce-glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/crypto/aes-ce-glue.c b/arch/arm64/crypto/aes-ce-glue.c index 56a5f6f..8ba6f04 100644 --- a

Re: [PATCH] mtd: rawnand: stm32_fmc2: fix broken ECC

2020-10-30 Thread Miquel Raynal
Hi Christophe, Christophe Kerello wrote on Thu, 29 Oct 2020 17:38:12 +0100: > Since commit d7157ff49a5b ("mtd: rawnand: Use the ECC framework user > input parsing bits"), ECC are broken in FMC2 driver in case of > nand-ecc-step-size and nand-ecc-strength are not set in the device tree. > The def

Re: [Outreachy kernel] [PATCH] drm/amdgpu: use DEFINE_DEBUGFS_ATTRIBUTE with debugfs_create_file_unsafe()

2020-10-30 Thread Greg KH
On Fri, Oct 30, 2020 at 01:47:05PM +0530, Sumera Priyadarsini wrote: > On Fri, 30 Oct, 2020, 1:32 PM Greg KH, wrote: > > > On Fri, Oct 30, 2020 at 01:27:16PM +0530, Deepak R Varma wrote: > > > On Fri, Oct 30, 2020 at 08:11:20AM +0100, Greg KH wrote: > > > > On Fri, Oct 30, 2020 at 08:52:45AM +053

Re: [Outreachy kernel] [PATCH] drm/amdgpu: use DEFINE_DEBUGFS_ATTRIBUTE with debugfs_create_file_unsafe()

2020-10-30 Thread Greg KH
On Fri, Oct 30, 2020 at 09:00:04AM +0100, Christian König wrote: > Am 30.10.20 um 08:57 schrieb Deepak R Varma: > > On Fri, Oct 30, 2020 at 08:11:20AM +0100, Greg KH wrote: > > > On Fri, Oct 30, 2020 at 08:52:45AM +0530, Deepak R Varma wrote: > > > > Using DEFINE_DEBUGFS_ATTRIBUTE macro with debugf

Re: [RESENDPATCH v15 2/2] mtd: rawnand: Add NAND controller support on Intel LGM SoC

2020-10-30 Thread Miquel Raynal
Hello, > >> +static const struct nand_controller_ops ebu_nand_controller_ops = { > >> + .attach_chip = ebu_nand_attach_chip, > >> + .setup_interface = ebu_nand_set_timings, > >> + .exec_op = ebu_nand_exec_op, > >> +}; > >> + > >> +static void ebu_dma_cleanup(struct ebu_nand_controller *ebu_host

Re: [PATCH -V2 1/2] mempolicy: Rename MPOL_F_MORON to MPOL_F_MOPRON

2020-10-30 Thread Michal Hocko
On Fri 30-10-20 15:27:51, Huang, Ying wrote: > Michal Hocko writes: > > > On Wed 28-10-20 10:34:10, Huang Ying wrote: > >> To follow code-of-conduct better. > > > > This is changing a user visible interface and any userspace which refers > > to the existing name will fail to compile unless I am m

  1   2   3   4   5   6   7   8   9   10   >