[PATCH] Input: add switch event(SW_COVER_ATTACHED)

2020-10-30 Thread HyungJae Im
We need support to various accessories on the device, some requiring switch does not exist in switch list. So added switch for the following purpose. SW_COVER_ATTACHED is for the checking the cover attached or not on the device. We also added driver that uses such event. Signed-off-by: Hyungjae

Re: [PATCH v2] media: staging: rkisp1: cap: refactor enable/disable stream to allow multistreaming

2020-10-30 Thread Helen Koike
Hi Dafna, On 10/26/20 2:50 PM, Dafna Hirschfeld wrote: > Hi, > > > Am 19.10.20 um 18:04 schrieb Helen Koike: >> Allow streaming from self picture path and main picture path at the same >> time. >> >> Take care for s_stream() callbacks to not be called twice. >> When starting a stream,

[PATCH v3 0/3] add ima_arch support for ARM64

2020-10-30 Thread Chester Lin
Add IMA arch dependent support for ARM64. Some IMA functions can check arch-specific status before running. For example, the ima_load_data function or the boot param "ima_appraise=" should not be executed when UEFI secure boot is enabled. We want to fill the gap in order to complete the IMA

[PATCH v3 1/3] efi: generalize efi_get_secureboot

2020-10-30 Thread Chester Lin
Generalize the efi_get_secureboot() function so not only efistub but also other subsystems can use it. Signed-off-by: Chester Lin --- drivers/firmware/efi/libstub/Makefile | 2 +- drivers/firmware/efi/libstub/efi-stub.c | 2 +- drivers/firmware/efi/libstub/efistub.h| 22 ---

[PATCH v3 2/3] ima: replace arch-specific get_sb_mode() with a common helper ima_get_efi_secureboot()

2020-10-30 Thread Chester Lin
remove the get_sb_mode() from x86/kernel/ima_arch.c and create a common helper ima_get_efi_secureboot() in IMA so that all EFI-based architectures can refer to the same procedure. Signed-off-by: Chester Lin --- arch/x86/kernel/ima_arch.c | 69 +++-

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

2020-10-30 Thread John Stultz
On Wed, Oct 28, 2020 at 6:51 AM Will Deacon wrote: > On Tue, Oct 27, 2020 at 10:53:47PM -0700, John Stultz wrote: > > Alternatively, I'm considering trying to switch the module dependency > > annotation so that the CONFIG_QCOM_SCM modularity depends on ARM_SMMU > > being a module. But that is

[PATCH v3 3/3] arm64/ima: add ima_arch support

2020-10-30 Thread Chester Lin
Add arm64 IMA arch support. The code and arch policy is mainly inherited from x86. Signed-off-by: Chester Lin --- arch/arm64/Kconfig | 1 + arch/arm64/kernel/Makefile | 2 ++ arch/arm64/kernel/ima_arch.c | 43 3 files changed, 46 insertions(+)

Re: [f2fs-dev] [PATCH v7 1/2] f2fs: add F2FS_IOC_GET_COMPRESS_OPTION ioctl

2020-10-30 Thread Chao Yu
On 2020/10/30 12:10, Daeho Jeong wrote: From: Daeho Jeong Added a new F2FS_IOC_GET_COMPRESS_OPTION ioctl to get file compression option of a file. struct f2fs_comp_option { u8 algorithm; => compression algorithm => 0:lzo, 1:lz4, 2:zstd, 3:lzorle u8

[PATCH v4 1/2] pinctrl: qcom: Allow pinctrl-msm code to be loadable as a module

2020-10-30 Thread John Stultz
Tweaks to allow pinctrl-msm code to be loadable as a module. This is needed in order to support having the qcom-scm driver, which pinctrl-msm calls into, configured as a module. This requires that we tweak Kconfigs selecting PINCTRL_MSM to also depend on QCOM_SCM || QCOM_SCM=n so that we match

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

2020-10-30 Thread John Stultz
Allow the qcom_scm driver to be loadable as a permenent module. This still uses the "depends on QCOM_SCM || !QCOM_SCM" bit to ensure that drivers that call into the qcom_scm driver are also built as modules. While not ideal in some cases its the only safe way I can find to avoid build errors

RE: [PATCH v6 4/5] iommu/vt-d: Add iommu_ops support for subdevice bus

2020-10-30 Thread Tian, Kevin
> From: Lu Baolu > Sent: Friday, October 30, 2020 12:58 PM > > The iommu_ops will only take effect when INTEL_IOMMU_SCALABLE_IOV > kernel > option is selected. It applies to any device passthrough framework which > implements an underlying bus for the subdevices. > > - Subdevice probe: > When

Re: [f2fs-dev] [PATCH v7 2/2] f2fs: add F2FS_IOC_SET_COMPRESS_OPTION ioctl

2020-10-30 Thread Chao Yu
Daeho, If there is no change, we are used to not resend the patch with updated version. Thanks, On 2020/10/30 12:10, Daeho Jeong wrote: From: Daeho Jeong Added a new F2FS_IOC_SET_COMPRESS_OPTION ioctl to change file compression option of a file. struct f2fs_comp_option { u8 algorithm;

Re: [v8] i2c: imx: support slave mode for imx I2C driver

2020-10-30 Thread Oleksij Rempel
Hi On Mon, Oct 26, 2020 at 06:05:14PM +0800, Biwen Li wrote: > From: Biwen Li > > The patch supports slave mode for imx I2C driver > > Signed-off-by: Biwen Li > --- > Change in v8: > - fix build issue > > Change in v7: > - support auto switch mode between master and slave >

Re: [PATCH 00/13] selftests fixes

2020-10-30 Thread Michael Ellerman
Shuah Khan writes: > On 10/27/20 7:37 PM, Michael Ellerman wrote: >> Tommi Rantala writes: >>> Hi, small fixes to issues I hit with selftests. >>> >>> Tommi Rantala (13): >>>selftests: filter kselftest headers from command in lib.mk >>>selftests: pidfd: fix compilation errors due to

RE: [PATCH v6 5/5] vfio/type1: Use mdev bus iommu_ops for IOMMU callbacks

2020-10-30 Thread Tian, Kevin
> From: Lu Baolu > Sent: Friday, October 30, 2020 12:58 PM > > With the IOMMU driver registering iommu_ops for the mdev_bus, the > IOMMU > operations on an mdev could be done in the same way as any normal device > (for example, PCI/PCIe). There's no need to distinguish an mdev from > others for

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

2020-10-30 Thread Daniel Latypov
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 (checked via the added type annotation), drop the yield so we

Re: [PATCH 1/6] MIPS: Loongson64: Do not write the read only field LPA of CP0_CONFIG3

2020-10-30 Thread Tiezhu Yang
On 10/30/2020 12:00 PM, Jiaxun Yang wrote: 在 2020/10/29 16:02, Tiezhu Yang 写道: The field LPA of CP0_CONFIG3 register is read only for Loongson64, so the write operations are meaningless, remove them. Signed-off-by: Tiezhu Yang --- arch/mips/include/asm/mach-loongson64/kernel-entry-init.h

Re: [PATCH 2/3] phy: mediatek: Move mtk_mipi_dsi_phy driver into drivers/phy/mediatek folder

2020-10-30 Thread Chunfeng Yun
On Thu, 2020-10-29 at 23:27 +0800, Chun-Kuang Hu wrote: > mtk_mipi_dsi_phy is currently placed inside mediatek drm driver, but it's > more suitable to place a phy driver into phy driver folder, so move > mtk_mipi_dsi_phy driver into phy driver folder. > > Signed-off-by: Chun-Kuang Hu > --- >

[PATCH] proc: Provide details on indirect branch speculation

2020-10-30 Thread Anand K Mistry
Similar to speculation store bypass, show information about the indirect branch speculation mode of a task in /proc/$pid/status. Signed-off-by: Anand K Mistry --- Documentation/filesystems/proc.rst | 2 ++ fs/proc/array.c| 28 2 files changed,

[PATCH] Input: add switch event(SW_EXT_PEN_ATTACHED)

2020-10-30 Thread HyungJae Im
We need support to various accessories on the device, some requiring switch does not exist in switch list. So added switch for the following purpose. SW_EXT_PEN_ATTACHED is for the checking the external pen attached or not on the device. We also added driver that uses such event. Signed-off-by:

Re: [PATCH 30/33] docs: ABI: cleanup several ABI documents

2020-10-30 Thread Vaibhav Jain
Mauro Carvalho Chehab writes: > There are some ABI documents that, while they don't generate > any warnings, they have issues when parsed by get_abi.pl script > on its output result. > > Address them, in order to provide a clean output. > > Signed-off-by: Mauro Carvalho Chehab > diff --git

Re: [PATCH v4 00/15] Audio graph card updates and usage with Tegra210 audio

2020-10-30 Thread Sameer Pujar
Hi Mark, Morimoto-san, Summary of changes: * Support multiple instances of a component. For example there can be multiple I2S devices which can use the same component driver. * Support open platforms with empty Codec endpoint. Customers can plug their own HW and can populate codec

Re: [PATCH 4/6] MIPS: Loongson64: Add Mail_Send support for 3A4000+ CPU

2020-10-30 Thread Tiezhu Yang
On 10/30/2020 12:06 PM, Jiaxun Yang wrote: 在 2020/10/29 16:02, Tiezhu Yang 写道: Loongson 3A4000+ CPU has per-core Mail_Send register to send mail, there is no need to maintain register address of each core and node, just simply specify cpu number. Signed-off-by: Lu Zeng Signed-off-by:

Re: mm/memblock: export memblock_{start/end}_of_DRAM

2020-10-30 Thread David Hildenbrand
On 29.10.20 22:29, Sudarshan Rajagopalan wrote: Hello all, Hi! We have a usecase where a module driver adds certain memory blocks using add_memory_driver_managed(), so that it can perform memory hotplug operations on these blocks. In general, these memory blocks aren’t something that gets

Re: [PATCH V3 2/2] PCI: dwc: Add support to configure for ECRC

2020-10-30 Thread Vidya Sagar
On 10/30/2020 3:33 AM, Jingoo Han wrote: External email: Use caution opening links or attachments On 10/29/20, 1:40 AM, Vidya Sagar wrote: DesignWare core has a TLP digest (TD) override bit in one of the control registers of ATU. This bit also needs to be programmed for proper ECRC

[PATCH 0/2] Add rt1015 support to CML boards

2020-10-30 Thread Brent Lu
First patch adds tdm 4-slot 100fs DAI setting to avoid jitter of using 64fs on CML boards. Second patch is a DMI quirk for HP Dooly. Brent Lu (2): ASoC: intel: sof_rt5682: Add support for cml_rt1015_rt5682 ASoC: intel: sof_rt5682: Add quirk for Dooly sound/soc/intel/boards/sof_rt5682.c

[PATCH 1/2] ASoC: intel: sof_rt5682: Add support for cml_rt1015_rt5682

2020-10-30 Thread Brent Lu
This patch adds the driver data and updates quirk info for cml with rt1015 speaker amp and rt5682 headset codec. Due to different mclk frequency on JSL and CML, we need to use 4 slot TDM 100fs to avoid the SSP m/n counter. Signed-off-by: Brent Lu --- sound/soc/intel/boards/sof_rt5682.c

[PATCH 2/2] ASoC: intel: sof_rt5682: Add quirk for Dooly

2020-10-30 Thread Brent Lu
This DMI product family string of this board is "Google_Hatch" so the DMI quirk will take place. However, this board is using rt1015 speaker amp instead of max98357a specified in the quirk. Therefore, we need an new DMI quirk for this board. Signed-off-by: Brent Lu ---

Re: [PATCH] crypto: talitos - Endianess in current_desc_hdr()

2020-10-30 Thread Herbert Xu
On Thu, Oct 08, 2020 at 09:34:55AM +, Christophe Leroy wrote: > current_desc_hdr() compares the value of the current descriptor > with the next_desc member of the talitos_desc struct. > > While the current descriptor is obtained from in_be32() which > return CPU ordered bytes, next_desc

Re: [PATCH] crypto: talitos - Fix return type of current_desc_hdr()

2020-10-30 Thread Herbert Xu
On Thu, Oct 08, 2020 at 09:34:56AM +, Christophe Leroy wrote: > current_desc_hdr() returns a u32 but in fact this is a __be32, > leading to a lot of sparse warnings. > > Change the return type to __be32 and ensure it is handled as > sure by the caller. > > Fixes: 3e721aeb3df3 ("crypto:

Re: [PATCH 1/1] crypto: hisilicon: Fix doc warnings in sgl.c and qm.c

2020-10-30 Thread Herbert Xu
On Fri, Oct 09, 2020 at 09:19:38AM +0100, Shiju Jose wrote: > Fix following warnings caused by mismatch between > function parameters and function comments. > > drivers/crypto/hisilicon/sgl.c:256: warning: Excess function parameter > 'hw_sgl_dma' description in 'hisi_acc_sg_buf_unmap' >

Re: [PATCH] crypto: inside-secure: Fix sizeof() mismatch

2020-10-30 Thread Herbert Xu
On Sat, Oct 10, 2020 at 05:47:36PM +0100, Colin King wrote: > From: Colin Ian King > > An incorrect sizeof() is being used, sizeof(priv->ring[i].rdr_req) is > not correct, it should be sizeof(*priv->ring[i].rdr_req). Note that > since the size of ** is the same size as * this is not causing any

Re: [PATCH] crypto: sm2 - remove unnecessary reset operations

2020-10-30 Thread Herbert Xu
On Thu, Oct 15, 2020 at 05:24:41PM +0800, Tianjia Zhang wrote: > This is an algorithm optimization. The reset operation when > setting the public key is repeated and redundant, so remove it. > At the same time, `sm2_ecc_os2ec()` is optimized to make the > function more simpler and more in line

Re: [PATCH v2 00/12] ARM: dts: imx: Board compatibles cleanup

2020-10-30 Thread Shawn Guo
On Wed, Sep 30, 2020 at 09:01:31PM +0200, Krzysztof Kozlowski wrote: > Hi, > > Changes since v1: > 1. Drop applied vendor-prefix patches. > 2. Add Reviews from Rob. > 3. Use ABB prefix for Aristainetos boards. > 4. Add missed compatibles for i.MX51, i.MX53 and i.MX6DL. > 5. Fix typo (VF600 ->

[PATCH v2 2/6] i2c: iproc: handle only slave interrupts which are enabled

2020-10-30 Thread Rayagonda Kokatanur
Handle only slave interrupts which are enabled. The IS_OFFSET register contains the interrupt status bits which will be set regardless of the enabling of the corresponding interrupt condition. One must therefore look at both IS_OFFSET and IE_OFFSET to determine whether an interrupt condition is

[PATCH v2 0/6] fix iproc driver to handle master read request

2020-10-30 Thread Rayagonda Kokatanur
This series of patches adds the following, - Handle master abort error - Fix support for single/multi byte master read request with/without repeated start. - Handle rx fifo full interrupt - Fix typo Changes from V1: --Address review comments from Ray Jui, Remove fixes tag Rayagonda Kokatanur

[PATCH v2 3/6] i2c: iproc: update slave isr mask (ISR_MASK_SLAVE)

2020-10-30 Thread Rayagonda Kokatanur
Update slave isr mask (ISR_MASK_SLAVE) to include remaining two slave interrupts. Fixes: c245d94ed106 ("i2c: iproc: Add multi byte read-write support for slave mode") Signed-off-by: Rayagonda Kokatanur --- drivers/i2c/busses/i2c-bcm-iproc.c | 3 ++- 1 file changed, 2 insertions(+), 1

Re: [PATCH v4 0/6] crypto: lib/sha256 - cleanup/optimization

2020-10-30 Thread Herbert Xu
On Sun, Oct 25, 2020 at 10:31:13AM -0400, Arvind Sankar wrote: > Patch 1/2 -- Use memzero_explicit() instead of structure assignment/plain > memset() to clear sensitive state. > > Patch 3 -- Currently the temporary variables used in the generic sha256 > implementation are cleared, but the

[PATCH v2 1/6] i2c: iproc: handle Master aborted error

2020-10-30 Thread Rayagonda Kokatanur
Handle Master aborted error by flushing tx and rx fifo and reinitializing the hw. Signed-off-by: Rayagonda Kokatanur --- drivers/i2c/busses/i2c-bcm-iproc.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-bcm-iproc.c

[PATCH v2 6/6] i2c: iproc: handle rx fifo full interrupt

2020-10-30 Thread Rayagonda Kokatanur
Add code to handle IS_S_RX_FIFO_FULL_SHIFT interrupt to support master write request with >= 64 bytes. Iproc has a slave rx fifo size of 64 bytes. Rx fifo full interrupt (IS_S_RX_FIFO_FULL_SHIFT) will be generated when RX fifo becomes full. This can happen if master issues write request of more

[PATCH v2 4/6] i2c: iproc: fix typo in slave_isr function

2020-10-30 Thread Rayagonda Kokatanur
Fix typo in bcm_iproc_i2c_slave_isr(). Signed-off-by: Rayagonda Kokatanur --- drivers/i2c/busses/i2c-bcm-iproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-bcm-iproc.c b/drivers/i2c/busses/i2c-bcm-iproc.c index cd687696bf0b..7a235f9f5884 100644

[PATCH v2 5/6] i2c: iproc: handle master read request

2020-10-30 Thread Rayagonda Kokatanur
Handle single or multi byte master read request with or without repeated start. Fixes: c245d94ed106 ("i2c: iproc: Add multi byte read-write support for slave mode") Signed-off-by: Rayagonda Kokatanur --- drivers/i2c/busses/i2c-bcm-iproc.c | 215 +++-- 1 file changed,

Re: [PATCH] memory: pl353-smc: fix compile test on !ARM_AMBA

2020-10-30 Thread Michal Simek
On 30. 10. 20 1:40, Nick Desaulniers wrote: > + authors/reviewers of commit fee10bd22678 ("memory: pl353: Add driver > for arm pl353 static memory controller") > > On Thu, Oct 29, 2020 at 12:34 PM Krzysztof Kozlowski wrote: >> >> The pl353-smc driver uses module_amba_driver so it has a build

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

[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

[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

[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

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

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:

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 > >

[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 ---

[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

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

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

[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.

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

[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

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

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 >

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

[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

[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

[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

[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

[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

[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 +

[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 ---

[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

[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 ---

[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

[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

[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:

[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

[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 ---

[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

[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

[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

[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.

[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

[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

[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 +

[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(+)

[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

[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

[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

[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

[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

  1   2   3   4   5   6   7   8   9   10   >