[PATCH v2] Documentation: Coccinelle: Improve command example for debugging patches

2020-11-25 Thread Sumera Priyadarsini
Modify Coccinelle documentation to clarify usage of make command to run coccicheck on a folder. Changes in v2: - Give example of folder instead of file - Add note Signed-off-by: Sumera Priyadarsini --- Documentation/dev-tools/coccinelle.rst | 9 - 1 file changed, 8 insertions(+), 1

RE: [RESEND PATCH v1] proc: use untagged_addr() for pagemap_read addresses

2020-11-25 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Miles Chen [mailto:miles.c...@mediatek.com] > Sent: Thursday, November 26, 2020 8:49 PM > To: Song Bao Hua (Barry Song) > Cc: Alexey Dobriyan ; Andrew Morton > ; linux-kernel@vger.kernel.org; > linux-fsde...@vger.kernel.org;

RE: [RESEND PATCH v1] proc: use untagged_addr() for pagemap_read addresses

2020-11-25 Thread Miles Chen
On Thu, 2020-11-26 at 07:16 +, Song Bao Hua (Barry Song) wrote: > > > -Original Message- > > From: Miles Chen [mailto:miles.c...@mediatek.com] > > Sent: Monday, November 23, 2020 7:39 PM > > To: Alexey Dobriyan ; Andrew Morton > > > > Cc: linux-kernel@vger.kernel.org;

[PATCH v2] ARM: zynq: Add Z-turn board V5

2020-11-25 Thread agriveaux
From: Alexandre GRIVEAUX Adding Z-turn board V5 to resolve the change between: "Z-TURNBOARD_schematic.pdf" schematics state version 1 to 4 has Atheros AR8035 "Z-Turn_Board_sch_V15_20160303.pdf" schematics state version 5 has Micrel KSZ9031 Changes v1 -> v2: Instead of using new board, the v2

[PATCH 3/3] arm64: dts: rockchip: rk3328-roc-cc: Enable analog audio

2020-11-25 Thread Chen-Yu Tsai
From: Chen-Yu Tsai Now that driver support for the RK3328's audio codec, and the plumbing is defined at the SoC level, we can enable analog audio at the board level. Enable analog audio by enabling the codec and the I2S interface connected and the simple-audio-card that binds them together.

[PATCH 2/3] arm64: dts: rockchip: rk3328-roc-cc: Enable HDMI audio

2020-11-25 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The RK3328-ROC-CC already has HDMI display output enabled. Now that audio for the HDMI controller is supported, it can be enabled as well. Enable the simple-audio-card, and the I2S interface the audio is fed from. Signed-off-by: Chen-Yu Tsai ---

[PATCH 0/3] arm64: dts: rockchip: rk3328-roc-cc: Misc improvements

2020-11-25 Thread Chen-Yu Tsai
From: Chen-Yu Tsai Hi, Here are some improvements for the ROC-RK3328-CC. Patch 1 sets dr_mode to "host" for OTG. Since the board has a type A host port wired to the OTG controller, setting this is appropriate. Patch 2 enables HDMI audio. Patch 3 enables analog audio. I opted to use one

[PATCH 1/3] arm64: dts: rockchip: rk3328-roc-cc: Set dr_mode to "host" for OTG

2020-11-25 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The board has a standard USB A female port connected to the USB OTG controller's data pins. Set dr_mode in the OTG controller node to indicate this usage, instead of having the implementation guess. Fixes: 2171f4fdac06 ("arm64: dts: rockchip: add roc-rk3328-cc board")

[RESEND PATCH v4 0/6] Add GCC and RPMh clock support for SDX55

2020-11-25 Thread Manivannan Sadhasivam
Hello, This series adds Global Clock Controller (GCC) and RPMh clock support for SDX55 SoC from Qualcomm with relevant DT bindings. This series has been tested on SDX55 MTP board. The dts patches will be posted separately. Thanks, Mani Changes in v4: * Made core_bi_pll_test_se clock optional

[RESEND PATCH v4 4/6] clk: qcom: Add support for SDX55 RPMh clocks

2020-11-25 Thread Manivannan Sadhasivam
Add support for following clocks maintained by RPMh in SDX55 SoCs. * BI TCXO * RF_CLK1 * RF_CLK1_AO * RF_CLK2 * RF_CLK2_AO * QPIC (Qualcomm Technologies, Inc. Parallel Interface Controller) Signed-off-by: Manivannan Sadhasivam Reviewed-by: Vinod Koul Reviewed-by: Bjorn Andersson ---

[RESEND PATCH v4 1/6] dt-bindings: clock: Add SDX55 GCC clock bindings

2020-11-25 Thread Manivannan Sadhasivam
From: Vinod Koul Add device tree bindings for global clock controller on SDX55 SoCs. Signed-off-by: Vinod Koul Signed-off-by: Manivannan Sadhasivam Reviewed-by: Rob Herring --- .../bindings/clock/qcom,gcc-sdx55.yaml| 77 include/dt-bindings/clock/qcom,gcc-sdx55.h|

[RESEND PATCH v4 3/6] dt-bindings: clock: Introduce RPMHCC bindings for SDX55

2020-11-25 Thread Manivannan Sadhasivam
From: Vinod Koul Add compatible for SDX55 RPMHCC and DT include. Signed-off-by: Vinod Koul Signed-off-by: Manivannan Sadhasivam Reviewed-by: Bjorn Andersson Acked-by: Rob Herring --- Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml | 1 + include/dt-bindings/clock/qcom,rpmh.h

[RESEND PATCH v4 2/6] clk: qcom: Add SDX55 GCC support

2020-11-25 Thread Manivannan Sadhasivam
From: Naveen Yadav Add Global Clock Controller (GCC) support for SDX55 SoCs from Qualcomm. Signed-off-by: Naveen Yadav [mani: converted to parent_data, commented critical clocks, cleanups] Signed-off-by: Manivannan Sadhasivam Reviewed-by: Vinod Koul --- drivers/clk/qcom/Kconfig |7 +

[RESEND PATCH v4 6/6] clk: qcom: Add GDSC support for SDX55 GCC

2020-11-25 Thread Manivannan Sadhasivam
Add GDSC support to control the power supply of power domains in SDX55 GCC. Signed-off-by: Manivannan Sadhasivam --- drivers/clk/qcom/Kconfig | 1 + drivers/clk/qcom/gcc-sdx55.c | 33 + 2 files changed, 34 insertions(+) diff --git a/drivers/clk/qcom/Kconfig

[RESEND PATCH v4 5/6] dt-bindings: clock: Add GDSC in SDX55 GCC

2020-11-25 Thread Manivannan Sadhasivam
Add GDSC instances in SDX55 GCC block. Signed-off-by: Manivannan Sadhasivam --- include/dt-bindings/clock/qcom,gcc-sdx55.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/dt-bindings/clock/qcom,gcc-sdx55.h b/include/dt-bindings/clock/qcom,gcc-sdx55.h index

[PATCH RFC] checkpatch: add warning for unnecessary use of %h[xudi] and %hh[xudi]

2020-11-25 Thread Dwaipayan Ray
Modifiers %h and %hh should never be used. Commit cbacb5ab0aa0 ("docs: printk-formats: Stop encouraging use of unnecessary %h[xudi] and %hh[xudi]") specifies that: "Standard integer promotion is already done and %hx and %hhx is useless so do not encourage the use of %hh[xudi] or %h[xudi]." "The

[PATCH v4 5/6] dt-bindings: clock: Add GDSC in SDX55 GCC

2020-11-25 Thread Manivannan Sadhasivam
Add GDSC instances in SDX55 GCC block. Signed-off-by: Manivannan Sadhasivam --- include/dt-bindings/clock/qcom,gcc-sdx55.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/dt-bindings/clock/qcom,gcc-sdx55.h b/include/dt-bindings/clock/qcom,gcc-sdx55.h index

Re: [PATCH next] mm/swap.c: reduce lock contention in lru_cache_add

2020-11-25 Thread Yu Zhao
On Thu, Nov 26, 2020 at 02:39:03PM +0800, Alex Shi wrote: > > > 在 2020/11/26 下午12:52, Yu Zhao 写道: > >> */ > >> void __pagevec_lru_add(struct pagevec *pvec) > >> { > >> - int i; > >> - struct lruvec *lruvec = NULL; > >> + int i, nr_lruvec; > >>unsigned long flags = 0; > >> + struct

Re: linux-next: manual merge of the akpm tree with the arm64 tree

2020-11-25 Thread Peter Collingbourne
On Wed, Nov 25, 2020 at 11:06 PM Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the akpm tree got a conflict in: > > arch/arm64/mm/proc.S > > between commit: > > 49b3cf035edc ("kasan: arm64: set TCR_EL1.TBID1 when enabled") > > from the arm64 tree and commit: > >

[PATCH v4 6/6] clk: qcom: Add GDSC support for SDX55 GCC

2020-11-25 Thread Manivannan Sadhasivam
Add GDSC support to control the power supply of power domains in SDX55 GCC. Signed-off-by: Manivannan Sadhasivam --- drivers/clk/qcom/Kconfig | 1 + drivers/clk/qcom/gcc-sdx55.c | 33 + 2 files changed, 34 insertions(+) diff --git a/drivers/clk/qcom/Kconfig

[PATCH v4 4/6] clk: qcom: Add support for SDX55 RPMh clocks

2020-11-25 Thread Manivannan Sadhasivam
Add support for following clocks maintained by RPMh in SDX55 SoCs. * BI TCXO * RF_CLK1 * RF_CLK1_AO * RF_CLK2 * RF_CLK2_AO * QPIC (Qualcomm Technologies, Inc. Parallel Interface Controller) Signed-off-by: Manivannan Sadhasivam Reviewed-by: Vinod Koul Reviewed-by: Bjorn Andersson ---

[PATCH v4 2/6] clk: qcom: Add SDX55 GCC support

2020-11-25 Thread Manivannan Sadhasivam
From: Naveen Yadav Add Global Clock Controller (GCC) support for SDX55 SoCs from Qualcomm. Signed-off-by: Naveen Yadav [mani: converted to parent_data, commented critical clocks, cleanups] Signed-off-by: Manivannan Sadhasivam Reviewed-by: Vinod Koul --- drivers/clk/qcom/Kconfig |7 +

[PATCH v4 3/6] dt-bindings: clock: Introduce RPMHCC bindings for SDX55

2020-11-25 Thread Manivannan Sadhasivam
From: Vinod Koul Add compatible for SDX55 RPMHCC and DT include. Signed-off-by: Vinod Koul Signed-off-by: Manivannan Sadhasivam Reviewed-by: Bjorn Andersson Acked-by: Rob Herring --- Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml | 1 + include/dt-bindings/clock/qcom,rpmh.h

[tip:x86/urgent] BUILD SUCCESS 33fc379df76b4991e5ae312f07bcd6820811971e

2020-11-25 Thread kernel test robot
allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a004-20201125 i386 randconfig-a003-20201125 i386

[PATCH v4 1/6] dt-bindings: clock: Add SDX55 GCC clock bindings

2020-11-25 Thread Manivannan Sadhasivam
From: Vinod Koul Add device tree bindings for global clock controller on SDX55 SoCs. Signed-off-by: Vinod Koul Signed-off-by: Manivannan Sadhasivam Reviewed-by: Rob Herring --- .../bindings/clock/qcom,gcc-sdx55.yaml| 77 include/dt-bindings/clock/qcom,gcc-sdx55.h|

[PATCH v4 0/6] Add GCC and RPMh clock support for SDX55

2020-11-25 Thread Manivannan Sadhasivam
Hello, This series adds Global Clock Controller (GCC) and RPMh clock support for SDX55 SoC from Qualcomm with relevant DT bindings. This series has been tested on SDX55 MTP board. The dts patches will be posted separately. Thanks, Mani Changes in v4: * Made core_bi_pll_test_se clock optional

RE: [PATCH v2 1/1] vfio/type1: Add vfio_group_domain()

2020-11-25 Thread Liu, Yi L
On Thurs, Nov 26, 2020, at 9:27 AM, Lu Baolu wrote: > Add the API for getting the domain from a vfio group. This could be used > by the physical device drivers which rely on the vfio/mdev framework for > mediated device user level access. The typical use case like below: > > unsigned int

Re: [PATCH] drm/ttm: don't set page->mapping

2020-11-25 Thread Christoph Hellwig
On Wed, Nov 25, 2020 at 07:57:20PM -0400, Jason Gunthorpe wrote: > annotate is OK, I used that for a long time.. > > My main gripe was it didn't setup the to/cc until after the annotate > editor closes. I put the To/Cc into the cover letter text file.

Re: [PATCH] fs: export vfs_stat() and vfs_fstatat()

2020-11-25 Thread Christoph Hellwig
On Thu, Nov 26, 2020 at 03:15:48PM +0800, Yicong Yang wrote: > The public function vfs_stat() and vfs_fstatat() are > unexported after moving out of line in > commit 09f1bde4017e ("fs: move vfs_fstatat out of line"), > which will prevent the using in kernel modules. > So make them exported. And

[PATCH] fs: export vfs_stat() and vfs_fstatat()

2020-11-25 Thread Yicong Yang
The public function vfs_stat() and vfs_fstatat() are unexported after moving out of line in commit 09f1bde4017e ("fs: move vfs_fstatat out of line"), which will prevent the using in kernel modules. So make them exported. Fixes: 09f1bde4017e ("fs: move vfs_fstatat out of line") Reported-by: Yang

RE: [RESEND PATCH v1] proc: use untagged_addr() for pagemap_read addresses

2020-11-25 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Miles Chen [mailto:miles.c...@mediatek.com] > Sent: Monday, November 23, 2020 7:39 PM > To: Alexey Dobriyan ; Andrew Morton > > Cc: linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org; > linux-media...@lists.infradead.org; wsd_upstr...@mediatek.com;

[PATCH v1] gpio: dwapb: fix NULL pointer dereference at dwapb_gpio_suspend()

2020-11-25 Thread Luo Jiaxing
Following Calltrace is found when running echo freeze > /sys/power/state. [ 272.755506] Unable to handle kernel NULL pointer dereference at virtual address 0010 [ 272.755508] Mem abort info: [ 272.755508] ESR = 0x9606 [ 272.755510] EC = 0x25: DABT (current EL), IL = 32

[PATCH] NFC:Fix Warning: Comparison to bool

2020-11-25 Thread Runzhe Wang
This patch uses the shdlc->rnr variable as a judgment condition of statement, rather than compares with bool. Signed-off-by: Runzhe Wang Reported-by: Abaci --- net/nfc/hci/llc_shdlc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/nfc/hci/llc_shdlc.c

[PATCH] kvm:svm: Return the correct error code

2020-11-25 Thread Richard
The return value of sev_asid_new is assigned to the variable asid, which should be returned directly if the asid is an error code. Fixes: 1654efcbc431 ("KVM: SVM: Add KVM_SEV_INIT command") Signed-off-by: Peng Hao --- arch/x86/kvm/svm/sev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH AUTOSEL 5.9 33/33] xfs: don't allow NOWAIT DIO across extent boundaries

2020-11-25 Thread Dave Chinner
On Wed, Nov 25, 2020 at 06:46:54PM -0500, Sasha Levin wrote: > On Thu, Nov 26, 2020 at 08:52:47AM +1100, Dave Chinner wrote: > > We've already had one XFS upstream kernel regression in this -rc > > cycle propagated to the stable kernels in 5.9.9 because the stable > > process picked up a bunch of

[PATCH] selftests/clone3: Add gun99 to compile in Makefile.

2020-11-25 Thread Xingxing Su
CFLAGS add -std=gnu99. Fllowing build error: test_core.c: In function ‘test_cgcore_destroy’: test_core.c:87:2: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i = 0; i < 10; i++) { ^ test_core.c:87:2: note: use option -std=c99 or -std=gnu99 to compile your code

Re: [RFC PATCH 0/4] crypto: add CRYPTO_TFM_REQ_DMA flag

2020-11-25 Thread Ard Biesheuvel
On Wed, 25 Nov 2020 at 22:39, Iuliana Prodan wrote: > > On 11/25/2020 11:16 PM, Ard Biesheuvel wrote: > > On Wed, 25 Nov 2020 at 22:14, Iuliana Prodan (OSS) > > wrote: > >> > >> From: Iuliana Prodan > >> > >> Add the option to allocate the crypto request object plus any extra space > >> needed

Re: [PATCH] perf script: Fix overrun issue for dynamically-allocated pmu type number

2020-11-25 Thread Jin, Yao
Hi Adrian, On 11/26/2020 2:51 PM, Adrian Hunter wrote: On 26/11/20 5:24 am, Jin Yao wrote: When unpacking the event which is from dynamic pmu, the array output[OUTPUT_TYPE_MAX] may be overrun. For example, type number of SKL uncore_imc is 10, but OUTPUT_TYPE_MAX is 7 now (OUTPUT_TYPE_MAX =

linux-next: manual merge of the akpm tree with the arm64 tree

2020-11-25 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm tree got a conflict in: arch/arm64/mm/proc.S between commit: 49b3cf035edc ("kasan: arm64: set TCR_EL1.TBID1 when enabled") from the arm64 tree and commit: 68cd215d6529 ("arm64: kasan: allow enabling in-kernel MTE") from the akpm tree. I

Re: [PATCH] drm/nouveau: fix relocations applying logic and a double-free

2020-11-25 Thread Daniel Vetter
On Mon, Nov 23, 2020 at 10:51:25AM +0100, Daniel Vetter wrote: > On Fri, Nov 20, 2020 at 4:23 PM Matti Hamalainen wrote: > > > > Commit 03e0d26fcf79 ("drm/nouveau: slowpath for pushbuf ioctl") included > > a logic-bug which results in the relocations not actually getting > > applied at all as the

Re: [PATCH] e1000e: Assign DPM_FLAG_SMART_SUSPEND and DPM_FLAG_MAY_SKIP_RESUME to speed up s2ram

2020-11-25 Thread Chen Yu
On Thu, Nov 26, 2020 at 02:36:42PM +0800, Kai-Heng Feng wrote: > > > > On Nov 25, 2020, at 18:36, Chen Yu wrote: > > > > Hi Kai-Heng, > > On Wed, Nov 25, 2020 at 01:17:28AM +0800, Kai-Heng Feng wrote: > >> Hi Yu, > >> > >>> On Nov 24, 2020, at 23:32, Chen Yu wrote: > >>> > >>> The NIC is

Re: [PATCH 4/4] Documentation/admin-guide/module-signing.rst: add openssl command option example for CodeSign EKU

2020-11-25 Thread joeyli
Hi Randy, Thanks for your review! I will update it in next version. Joey Lee On Wed, Nov 25, 2020 at 09:25:51AM -0800, Randy Dunlap wrote: > Hi-- > > On 11/24/20 11:26 PM, Lee, Chun-Yi wrote: > > Add an openssl command option example for generating CodeSign extended > > key usage in X.509 when

Re: [PATCH] tomoyo: Avoid potential null pointer access

2020-11-25 Thread Tetsuo Handa
On 2020/11/26 15:33, Zheng Zengkai wrote: > As your say,  I found the function tomoyo_assign_namespace( ) > > in security/tomoyo/domain.c has the similar situation, > > Can I add __GFP_NOWARN for both and remove the null check for _entry_ in > tomoyo_assign_namespace( )? > Good catch. Yes,

Re: linux-next: build warning after merge of the v4l-dvb tree

2020-11-25 Thread Stephen Rothwell
Hi all, On Wed, 18 Nov 2020 16:29:34 +1100 Stephen Rothwell wrote: > > After merging the v4l-dvb tree, today's linux-next build (htmldocs) > produced this warning: > > Documentation/output/lirc.h.rst:6: WARNING: undefined label: rc-proto-max (if > the link has no caption the label must

Re: [f2fs-dev] [PATCH 2/2] f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE

2020-11-25 Thread Chao Yu
Daeho, On 2020/11/26 14:35, Daeho Jeong wrote: Chao, A little bit wired, why not failing cluster_may_compress() for user mode, and let writepages write cluster as raw blocks, in-where we can update i_compr_blocks and global compr block stats correctly. For decompression ioctl, I've made

Re: [PATCH] perf script: Fix overrun issue for dynamically-allocated pmu type number

2020-11-25 Thread Adrian Hunter
On 26/11/20 5:24 am, Jin Yao wrote: > When unpacking the event which is from dynamic pmu, the array > output[OUTPUT_TYPE_MAX] may be overrun. For example, type number of > SKL uncore_imc is 10, but OUTPUT_TYPE_MAX is 7 now (OUTPUT_TYPE_MAX = > PERF_TYPE_MAX + 1). > > /* In builtin-script.c */ >

linux-next: build warnings after merge of the arm64 tree

2020-11-25 Thread Stephen Rothwell
Hi all, After merging the arm64 tree, today's linux-next build (htmldocs) produced these warnings: Documentation/ABI/testing/sysfs-kernel-iommu_groups:38: WARNING: Unexpected indentation. Documentation/ABI/testing/sysfs-kernel-iommu_groups:38: WARNING: Block quote ends without a blank line;

[PATCH] ASoC: hdmi-codec: Add RX support

2020-11-25 Thread Shengjiu Wang
HDMI interface can also be used as receiver, this patch is to add such support. The most difference compare with TX is that RX don't need to get edid information. Signed-off-by: Shengjiu Wang --- sound/soc/codecs/hdmi-codec.c | 33 - 1 file changed, 28

linux-next: build warnings after merge of the rcu tree

2020-11-25 Thread Stephen Rothwell
Hi all, After merging the rcu tree, today's linux-next build (htmldocs) produced these warnings: include/linux/rcupdate.h:872: warning: Excess function parameter 'ptr' description in 'kfree_rcu' include/linux/rcupdate.h:872: warning: Excess function parameter 'rhf' description in 'kfree_rcu'

linux-next: build warning after merge of the net-next tree

2020-11-25 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (htmldocs) produced this warning: include/linux/phy.h:869: warning: Function parameter or member 'config_intr' not described in 'phy_driver' Introduced by commit 6527b938426f ("net: phy: remove the .did_interrupt() and

Re: [PATCH next] mm/swap.c: reduce lock contention in lru_cache_add

2020-11-25 Thread Alex Shi
在 2020/11/26 下午12:52, Yu Zhao 写道: >> */ >> void __pagevec_lru_add(struct pagevec *pvec) >> { >> -int i; >> -struct lruvec *lruvec = NULL; >> +int i, nr_lruvec; >> unsigned long flags = 0; >> +struct page *page; >> +struct lruvecs lruvecs; >> >> -for (i = 0; i

Re: [stable 4.9] PANIC: double fault, error_code: 0x0 - clang boot failed on x86_64

2020-11-25 Thread Greg Kroah-Hartman
On Thu, Nov 26, 2020 at 10:14:43AM +0530, Naresh Kamboju wrote: > Linaro recently started building and testing with stable branches with clang. > Stable 4.9 branch kernel built with clang 10 boot crashed on x86 and qemu_x86. > We do not have base line results to compare with. > > steps to build

Re: [PATCH] e1000e: Assign DPM_FLAG_SMART_SUSPEND and DPM_FLAG_MAY_SKIP_RESUME to speed up s2ram

2020-11-25 Thread Kai-Heng Feng
> On Nov 25, 2020, at 18:36, Chen Yu wrote: > > Hi Kai-Heng, > On Wed, Nov 25, 2020 at 01:17:28AM +0800, Kai-Heng Feng wrote: >> Hi Yu, >> >>> On Nov 24, 2020, at 23:32, Chen Yu wrote: >>> >>> The NIC is put in runtime suspend status when there is no wire connected. >>> As a result, it is

[PATCH net-next v7 5/5] net/x25: remove x25_kill_by_device()

2020-11-25 Thread Martin Schiller
Remove obsolete function x25_kill_by_device(). It's not used any more. Signed-off-by: Martin Schiller --- net/x25/af_x25.c | 16 1 file changed, 16 deletions(-) diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c index 313a6222ded9..1432a05805ab 100644 --- a/net/x25/af_x25.c +++

[PATCH net-next v7 3/5] net/lapb: fix t1 timer handling for LAPB_STATE_0

2020-11-25 Thread Martin Schiller
1. DTE interface changes immediately to LAPB_STATE_1 and start sending SABM(E). 2. DCE interface sends N2-times DM and changes to LAPB_STATE_1 afterwards if there is no response in the meantime. Signed-off-by: Martin Schiller --- net/lapb/lapb_timer.c | 11 +-- 1 file changed, 9

[PATCH net-next v7 4/5] net/x25: fix restart request/confirm handling

2020-11-25 Thread Martin Schiller
We have to take the actual link state into account to handle restart requests/confirms well. Signed-off-by: Martin Schiller --- net/x25/x25_link.c | 41 + 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/net/x25/x25_link.c

[PATCH net-next v7 1/5] net/x25: handle additional netdev events

2020-11-25 Thread Martin Schiller
1. Add / remove x25_link_device by NETDEV_REGISTER/UNREGISTER and also by NETDEV_POST_TYPE_CHANGE/NETDEV_PRE_TYPE_CHANGE. This change is needed so that the x25_neigh struct for an interface is already created when it shows up and is kept independently if the interface goes UP or DOWN.

[PATCH net-next v7 2/5] net/lapb: support netdev events

2020-11-25 Thread Martin Schiller
This patch allows layer2 (LAPB) to react to netdev events itself and avoids the detour via layer3 (X.25). 1. Establish layer2 on NETDEV_UP events, if the carrier is already up. 2. Call lapb_disconnect_request() on NETDEV_GOING_DOWN events to signal the peer that the connection will go down.

[PATCH net-next v7 0/5] net/x25: netdev event handling

2020-11-25 Thread Martin Schiller
--- Changes to v6: o integrated some code styling suggestions by Jakub. Changes to v5: o fix numbering in commit message of patch 2/5. Changes to v4: o also establish layer2 (LAPB) on NETDEV_UP events, if the carrier is already UP. Changes to v3: o another complete rework of the patch-set to

Re: [f2fs-dev] [PATCH 2/2] f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE

2020-11-25 Thread Daeho Jeong
Chao, > A little bit wired, why not failing cluster_may_compress() for user mode, and > let writepages write cluster as raw blocks, in-where we can update > i_compr_blocks > and global compr block stats correctly. For decompression ioctl, I've made f2fs_need_compress_data() return "false" to

[PATCH] pinctrl: aspeed: Fix GPIO requests on pass-through banks

2020-11-25 Thread Andrew Jeffery
Commit 6726fbff19bf ("pinctrl: aspeed: Fix GPI only function problem.") fixes access to GPIO banks T and U on the AST2600. Both banks contain input-only pins and the GPIO pin function is named GPITx and GPIUx respectively. Unfortunately the fix had a negative impact on GPIO banks D and E for the

Re: [PATCH] tomoyo: Avoid potential null pointer access

2020-11-25 Thread Zheng Zengkai
Hello, Tetsuo Got it , Thank you for your explanation. Hello, Zheng. Thank you for a patch, but I won't apply this patch. Expected behavior is that tomoyo_warn_oom() is called if tomoyo_memory_ok() is called with entry == NULL. Adding __GFP_NOWARN might be OK, but returning without

Re: [RFC][PATCH 00/18] crypto: Add generic Kerberos library

2020-11-25 Thread Herbert Xu
On Thu, Nov 12, 2020 at 12:57:45PM +, David Howells wrote: > > Hi Herbert, Bruce, > > Here's my first cut at a generic Kerberos crypto library in the kernel so > that I can share code between rxrpc and sunrpc (and cifs?). Hi David: I can't find the bit where you are actually sharing this

[rcu:rcu/next] BUILD SUCCESS d33e4f0afdb2a1eb2890e0ea2ba4bb9101d92da5

2020-11-25 Thread kernel test robot
allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a004-20201125 i386 randconfig-a003-20201125 i386 randconfig-a002

[PATCH 3/3] clear_warn_once: add a warn_once_reset= boot parameter

2020-11-25 Thread Paul Gortmaker
In the event debugfs is not mounted, or if built with the .config setting DEBUG_FS_ALLOW_NONE chosen, this gives the sysadmin access to reset the WARN_ONCE() state on a periodic basis. Cc: Andi Kleen Cc: Petr Mladek Cc: Sergey Senozhatsky Cc: Steven Rostedt Cc: John Ogness Signed-off-by:

[PATCH 2/3] clear_warn_once: bind a timer to written reset value

2020-11-25 Thread Paul Gortmaker
Existing documentation has a write of "1" to clear/reset all the WARN_ONCE and similar to the as-booted state, so they can possibly be re-triggered again during debugging/testing. But having them auto-reset once a day, or once a week, might shed valuable information to a sysadmin on what the

[PATCH 1/3] clear_warn_once: expand debugfs to include read support

2020-11-25 Thread Paul Gortmaker
The existing clear_warn_once variable is write-only; used as per the documentation to reset the warn_once to as-booted state with: echo 1 > /sys/kernel/debug/clear_warn_once The objective is to expand on that functionality, which requires the debugfs variable to be read/write and not

[PATCH 0/3] clear_warn_once: add timed interval resetting

2020-11-25 Thread Paul Gortmaker
The existing clear_warn_once functionality is currently a manually issued state reset via the file /sys/kernel/debug/clear_warn_once when debugfs is mounted. The idea being that a developer would be running some tests, like LTP or similar, and want to check reproducibility without having to

Re: [PATCH 2/3] venus: Limit HFI sessions to the maximum supported

2020-11-25 Thread Alexandre Courbot
On Wed, Nov 25, 2020 at 10:01 PM Stanimir Varbanov wrote: > > > > On 11/25/20 5:46 AM, Alexandre Courbot wrote: > > On Fri, Nov 20, 2020 at 9:12 AM Stanimir Varbanov > > wrote: > >> > >> Currently we rely on firmware to return error when we reach the maximum > >> supported number of sessions.

Re: [PATCH bpf-next v3 3/3] bpf: Add a selftest for bpf_ima_inode_hash

2020-11-25 Thread Yonghong Song
On 11/24/20 7:12 AM, KP Singh wrote: From: KP Singh The test does the following: - Mounts a loopback filesystem and appends the IMA policy to measure executions only on this file-system. Restricting the IMA policy to a particular filesystem prevents a system-wide IMA policy change. -

[PATCH] ASoC: fsl: Fix config name of CONFIG_ARCH_MXC

2020-11-25 Thread Shengjiu Wang
CONFIG_ARCH_MXC should be ARCH_MXC Fixes: 674226db62ec ("ASoC: fsl: SND_SOC_FSL_AUD2HTX should depend on ARCH_MXC") Signed-off-by: Shengjiu Wang --- sound/soc/fsl/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/Kconfig b/sound/soc/fsl/Kconfig index

Re: [PATCH v4 2/3] fscrypt: Have filesystems handle their d_ops

2020-11-25 Thread Daniel Rosenberg
> > This change has the side-effect of removing the capability of the root > directory from being case-insensitive. It is not a backward > incompatible change because there is no way to make the root directory > CI at the moment (it is never empty). But this restriction seems > artificial. Is

Re: [PATCH v2] char: tpm: add i2c driver for cr50

2020-11-25 Thread Ezequiel Garcia
On Thu, 2020-11-26 at 05:30 +0200, Jarkko Sakkinen wrote: > On Tue, 2020-11-24 at 10:14 -0300, Ezequiel Garcia wrote: > > Hi Jarkko, > > > > Thanks for your review. > > > > On Tue, 2020-11-24 at 00:06 +0200, Jarkko Sakkinen wrote: > > > On Fri, Nov 20, 2020 at 07:23:45PM +0200, Adrian Ratiu

Re: [PATCH] drm/omap: dmm_tiler: fix return error code in omap_dmm_probe()

2020-11-25 Thread Tomi Valkeinen
On 17/11/2020 15:41, Thomas Zimmermann wrote: > Hi > > Am 17.11.20 um 07:10 schrieb Yang Yingliang: >> Return -ENOMEM when allocating refill memory failed. >> >> Fixes: 71e8831f6407 ("drm/omap: DMM/TILER support for OMAP4+ platform") >> Reported-by: Hulk Robot >> Signed-off-by: Yang Yingliang

Re: [PATCH net-next v6 2/5] net/lapb: support netdev events

2020-11-25 Thread Martin Schiller
On 2020-11-26 01:08, Xie He wrote: Hi Martin, Since we are going to assume lapb->state would remain in LAPB_STATE_0 when the carrier is down (as understood by me. Right?), could we add a check in lapb_connect_request to reject the upper layer's "connect" instruction when the carrier is

Fair Pay Icon - The Space Lab.

2020-11-25 Thread Ywe Cærlyn
I have chosen the Space Lab, as the Fair Pay Initiative OS Icon. See https://www.youtube.com/channel/UCR3gmLVjHS5A702wo4bol_Q Serenity! Ywe Cærlyn

Re: [RFC PATCH 5/9] cxl/mem: Find device capabilities

2020-11-25 Thread Jon Masters
On 11/11/20 12:43 AM, Ben Widawsky wrote: + case CXL_CAPABILITIES_CAP_ID_SECONDARY_MAILBOX: + dev_dbg(>pdev->dev, + "found UNSUPPORTED Secondary Mailbox capability\n"); Per spec, the secondary mailbox is intended for use by

Re: [PATCH net-next v6 2/5] net/lapb: support netdev events

2020-11-25 Thread Martin Schiller
On 2020-11-25 22:49, Jakub Kicinski wrote: On Tue, 24 Nov 2020 10:39:35 +0100 Martin Schiller wrote: This patch allows layer2 (LAPB) to react to netdev events itself and avoids the detour via layer3 (X.25). 1. Establish layer2 on NETDEV_UP events, if the carrier is already up. 2. Call

Re: Potential Issue in Tracing Ring Buffer

2020-11-25 Thread Greg KH
On Tue, Nov 24, 2020 at 10:39:17PM +, J. Avila wrote: > Hello, > > In the ftrace logs we've collected internally, we have found that there are > situations where time seems to go backwards; this breaks userspace tools which > expect time to always go forward in these logs. For example, in

Re: [PATCH] tracing: Fix align of static buffer

2020-11-25 Thread Greg KH
On Wed, Nov 25, 2020 at 02:56:54PM -0800, Minchan Kim wrote: > With 5.9 kernel on ARM64, I found ftrace_dump output was broken but > it had no problem with normal output "cat /sys/kernel/debug/tracing/trace". > > With investigation, it seems coping the data into temporal buffer seems to > break

[PATCH v1 2/3] scsi: ufs: Refine error history functions

2020-11-25 Thread Stanley Chu
Nowadays UFS error history does not only have "history of errors" but also have history of some other events which are not defined as errors. This patch fixes the confused naming of related functions, and change the way for updating and printing history as preparation of next patch. This patch

[PATCH v1 0/3] Refine error history and introduce notify_event vop

2020-11-25 Thread Stanley Chu
Hi, This series refines error history functions and introduce a new notify_event vop to allow vendor to get notified of important events. Stanley Chu (3): scsi: ufs: Add error history for abort event in UFS Device W-LUN scsi: ufs: Refine error history functions scsi: ufs: Introduce

[PATCH v1 3/3] scsi: ufs: Introduce notify_event variant function

2020-11-25 Thread Stanley Chu
Introduce notify_event variant function to allow vendor to get notified of important events and connect to any proprietary debugging facilities. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufshcd.c | 2 ++ drivers/scsi/ufs/ufshcd.h | 11 +++ 2 files changed, 13 insertions(+) diff

Re: [PATCH -tip 18/32] kernel/entry: Add support for core-wide protection of kernel-mode

2020-11-25 Thread Balbir Singh
On Tue, Nov 17, 2020 at 06:19:48PM -0500, Joel Fernandes (Google) wrote: > Core-scheduling prevents hyperthreads in usermode from attacking each > other, but it does not do anything about one of the hyperthreads > entering the kernel for any reason. This leaves the door open for MDS > and L1TF

[PATCH v1 1/3] scsi: ufs: Add error history for abort event in UFS Device W-LUN

2020-11-25 Thread Stanley Chu
Add error history for abort event in UFS Device W-LUN. Besides, use specified value as parameter of ufshcd_update_reg_hist() to identify the aborted tag or LUNs. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufshcd.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH -V6 1/3] numa balancing: Migrate on fault among multiple bound nodes

2020-11-25 Thread Huang Ying
Now, NUMA balancing can only optimize the page placement among the NUMA nodes if the default memory policy is used. Because the memory policy specified explicitly should take precedence. But this seems too strict in some situations. For example, on a system with 4 NUMA nodes, if the memory of

Re: [PATCH] regmap: sdw: add required header files

2020-11-25 Thread Greg KH
On Wed, Nov 25, 2020 at 09:01:28PM +0800, Bard Liao wrote: > From: Pierre-Louis Bossart > > Explicitly add header files used by regmap SoundWire support. What is failing to build without this? thanks, greg k-h

[PATCH -V6 0/3] autonuma: Migrate on fault among multiple bound nodes

2020-11-25 Thread Huang Ying
To make it possible to optimize cross-socket memory accessing with AutoNUMA even if the memory of the application is bound to multiple NUMA nodes. Patch [2/3] and [3/3] are NOT kernel patches. Instead, they are patches for man-pages and numactl respectively. They are sent together to make it

[PATCH -V6 3/3] NOT kernel/numactl: Support to enable Linux kernel NUMA balancing

2020-11-25 Thread Huang Ying
From: Huang Ying A new API: numa_set_membind_balancing() is added to libnuma. It is same as numa_set_membind() except that the Linux kernel NUMA balancing will be enabled for the task if the feature is supported by the kernel. At the same time, a new option: --balancing (-b) is added to

[PATCH -v6 2/3] NOT kernel/man-pages man2/set_mempolicy.2: Add mode flag MPOL_F_NUMA_BALANCING

2020-11-25 Thread Huang Ying
From: Huang Ying Signed-off-by: "Huang, Ying" --- man2/set_mempolicy.2 | 8 1 file changed, 8 insertions(+) diff --git a/man2/set_mempolicy.2 b/man2/set_mempolicy.2 index 68011eecb..fb16bb351 100644 --- a/man2/set_mempolicy.2 +++ b/man2/set_mempolicy.2 @@ -113,6 +113,11 @@ A nonempty

[PATCHv2] arm64: dts: qcom: sm8150: Add Coresight support

2020-11-25 Thread Sai Prakash Ranjan
Add coresight components found on Qualcomm Technologies, Inc. SM8150 SoC. Signed-off-by: Sai Prakash Ranjan Reviewed-by: Mathieu Poirier --- Changes in v2: * Rebase on top of qcom for-next branch * Add reviewed-by tag collected from previous version --- arch/arm64/boot/dts/qcom/sm8150.dtsi

linux-next: manual merge of the userns tree with the bpf-next tree

2020-11-25 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the userns tree got a conflict in: kernel/bpf/task_iter.c between commit: 91b2db27d3ff ("bpf: Simplify task_file_seq_get_next()") from the bpf-next tree and commit: edc52f17257a ("bpf/task_iter: In task_file_seq_get_next use

Re: [f2fs-dev] [PATCH 2/2] f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE

2020-11-25 Thread Daeho Jeong
Eric, do_page_cache_ra() is defined in mm/internal.h for internal use between in mm, so we cannot use this one right now. So, I think we could use page_cache_ra_unbounded(), because we already check i_size boundary on our own. What do you think? 2020년 11월 24일 (화) 오후 12:05, Chao Yu 님이 작성: > > On

[PATCH] arm64: dts: meson: add KHAMSIN IR remote node to SML5442TW

2020-11-25 Thread Christian Hewitt
Set the IR keymap to the KHAMSIN remote shipped with the SML5442TW. Signed-off-by: Christian Hewitt --- The rc-khamsin keymap is queued (or in the process of being picked) via the media tree [0] so it would be nice to add this within the 5.11 cycle. [0]

Re: [PATCH] [v7] wireless: Initial driver submission for pureLiFi STA devices

2020-11-25 Thread Srinivasan Raju
> I haven't had a chance to review this yet but we have some documentation for > new drivers: > https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches#new_driver > Is the firmware publically available? Thanks Kalle, We will make the firmware available in our website

RE: [EXT] Re: [PATCH v1 1/2] mmc: Support kmsg dumper based on pstore/blk

2020-11-25 Thread Bhaskara Budiredla
Sure, I will tune to those discussions and would wait for that. - Bhaskara >-Original Message- >From: Christoph Hellwig >Sent: Tuesday, November 24, 2020 9:49 PM >To: Ulf Hansson >Cc: Bhaskara Budiredla ; Kees Cook >; Colin Cross ; Tony Luck >; Sunil Kovvuri Goutham ;

Re: [PATCH next] mm/swap.c: reduce lock contention in lru_cache_add

2020-11-25 Thread Yu Zhao
On Fri, Nov 20, 2020 at 04:27:27PM +0800, Alex Shi wrote: > The current relock logical will change lru_lock when found a new > lruvec, so if 2 memcgs are reading file or alloc page at same time, > they could hold the lru_lock alternately, and wait for each other for > fairness attribute of ticket

Re: [PATCH v9 2/2] Add Intel LGM SoC DMA support.

2020-11-25 Thread Vinod Koul
On 25-11-20, 18:39, Reddy, MallikarjunaX wrote: > > > > > desc needs to be configure for each dma channel and the remapped > > > > > address of > > > > > the IGP & EGP is desc base adress. > > > > Why should this address not passed as src_addr/dst_addr? > > > src_addr/dst_addr is the data

Re: [PATCH 22/25] perf buildid-cache: Add support to add build ids from perf data

2020-11-25 Thread Namhyung Kim
On Thu, Nov 26, 2020 at 1:36 AM Jiri Olsa wrote: > > On Wed, Nov 25, 2020 at 10:00:10PM +0900, Namhyung Kim wrote: > > On Tue, Nov 24, 2020 at 8:06 AM Jiri Olsa wrote: > > > > > > Adding support to specify perf data file as -a option file > > > argument, > > > > > > If the file is detected to be

[stable 4.9] PANIC: double fault, error_code: 0x0 - clang boot failed on x86_64

2020-11-25 Thread Naresh Kamboju
Linaro recently started building and testing with stable branches with clang. Stable 4.9 branch kernel built with clang 10 boot crashed on x86 and qemu_x86. We do not have base line results to compare with. steps to build and boot: # build kernel with tuxmake # sudo pip3 install -U tuxmake #

  1   2   3   4   5   6   7   8   9   10   >