[PATCH v20 0/9] Free some vmemmap pages of HugeTLB page

2021-04-15 Thread Muchun Song
Hi, Since Mike's patches (make hugetlb put_page safe for all calling contexts[1]) applied into the next-20210412. We can move forward on this patch series now. This patch series will free some vmemmap pages(struct page structures) associated with each HugeTLB page when preallocated to save memory

[PATCH v20 1/9] mm: memory_hotplug: factor out bootmem core functions to bootmem_info.c

2021-04-15 Thread Muchun Song
Move bootmem info registration common API to individual bootmem_info.c. And we will use {get,put}_page_bootmem() to initialize the page for the vmemmap pages or free the vmemmap pages to buddy in the later patch. So move them out of CONFIG_MEMORY_HOTPLUG_SPARSE. This is just code movement without a

[PATCH v20 2/9] mm: hugetlb: introduce a new config HUGETLB_PAGE_FREE_VMEMMAP

2021-04-15 Thread Muchun Song
The option HUGETLB_PAGE_FREE_VMEMMAP allows for the freeing of some vmemmap pages associated with pre-allocated HugeTLB pages. For example, on X86_64 6 vmemmap pages of size 4KB each can be saved for each 2MB HugeTLB page. 4094 vmemmap pages of size 4KB each can be saved for each 1GB HugeTLB page.

Re: [PATCH v4 5/6] dt-bindings: display: add Unisoc's mipi dsi controller bindings

2021-04-15 Thread Maxime Ripard
On Fri, Apr 09, 2021 at 08:23:19AM +0800, Kevin Tang wrote: > Maxime Ripard 于2021年4月7日周三 下午6:46写道: > > > On Wed, Mar 31, 2021 at 09:49:14AM +0800, Kevin Tang wrote: > > > Hi Maxime, > > > > > > Maxime Ripard 于2021年3月24日周三 下午7:13写道: > > > > > > > On Mon, Feb 22, 2021 at 09:28:21PM +0800, Kevin Ta

[PATCH v20 3/9] mm: hugetlb: gather discrete indexes of tail page

2021-04-15 Thread Muchun Song
For HugeTLB page, there are more metadata to save in the struct page. But the head struct page cannot meet our needs, so we have to abuse other tail struct page to store the metadata. In order to avoid conflicts caused by subsequent use of more tail struct pages, we can gather these discrete indexe

[PATCH v20 4/9] mm: hugetlb: free the vmemmap pages associated with each HugeTLB page

2021-04-15 Thread Muchun Song
Every HugeTLB has more than one struct page structure. We __know__ that we only use the first 4 (__NR_USED_SUBPAGE) struct page structures to store metadata associated with each HugeTLB. There are a lot of struct page structures associated with each HugeTLB page. For tail pages, the value of compo

[PATCH v20 5/9] mm: hugetlb: defer freeing of HugeTLB pages

2021-04-15 Thread Muchun Song
In the subsequent patch, we should allocate the vmemmap pages when freeing a HugeTLB page. But update_and_free_page() can be called under any context, so we cannot use GFP_KERNEL to allocate vmemmap pages. However, we can defer the actual freeing in a kworker to prevent from using GFP_ATOMIC to all

[PATCH v20 6/9] mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB page

2021-04-15 Thread Muchun Song
When we free a HugeTLB page to the buddy allocator, we need to allocate the vmemmap pages associated with it. However, we may not be able to allocate the vmemmap pages when the system is under memory pressure. In this case, we just refuse to free the HugeTLB page. This changes behavior in some corn

[PATCH v20 7/9] mm: hugetlb: add a kernel parameter hugetlb_free_vmemmap

2021-04-15 Thread Muchun Song
Add a kernel parameter hugetlb_free_vmemmap to enable the feature of freeing unused vmemmap pages associated with each hugetlb page on boot. We disables PMD mapping of vmemmap pages for x86-64 arch when this feature is enabled. Because vmemmap_remap_free() depends on vmemmap being base page mapped

[PATCH v20 8/9] mm: memory_hotplug: disable memmap_on_memory when hugetlb_free_vmemmap enabled

2021-04-15 Thread Muchun Song
The parameter of memory_hotplug.memmap_on_memory is not compatible with hugetlb_free_vmemmap. So disable it when hugetlb_free_vmemmap is enabled. Signed-off-by: Muchun Song --- Documentation/admin-guide/kernel-parameters.txt | 4 drivers/acpi/acpi_memhotplug.c | 1 + mm/m

[PATCH v20 9/9] mm: hugetlb: introduce nr_free_vmemmap_pages in the struct hstate

2021-04-15 Thread Muchun Song
All the infrastructure is ready, so we introduce nr_free_vmemmap_pages field in the hstate to indicate how many vmemmap pages associated with a HugeTLB page that can be freed to buddy allocator. And initialize it in the hugetlb_vmemmap_init(). This patch is actual enablement of the feature. There

[PATCH v2 1/3] mmc: sdhci-s3c: simplify getting of_device_id match data

2021-04-15 Thread Krzysztof Kozlowski
Use of_device_get_match_data() to make the code slightly smaller and to remove the of_device_id table forward declaration. Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. Rewrite the commit msg as it is not a NULL pointer dereference. --- drivers/mmc/host/sdhci-s3c.c | 12 +++--

[PATCH v2 2/3] mmc: sdhci-s3c: correct kerneldoc of sdhci_s3c_drv_data

2021-04-15 Thread Krzysztof Kozlowski
Correct the name of sdhci_s3c_drv_data structure in kerneldoc: drivers/mmc/host/sdhci-s3c.c:143: warning: expecting prototype for struct sdhci_s3c_driver_data. Prototype was for struct sdhci_s3c_drv_data instead Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. None --- drive

[PATCH v2 3/3] mmc: sdhci-s3c: constify uses of driver/match data

2021-04-15 Thread Krzysztof Kozlowski
The driver data (struct sdhci_s3c_drv_data) stored in of_device_id table is allocated as const and used only in const-way. Skip unnecessary const-away casts and convert all users to work with pointer to const. This is both more logical and safer. Signed-off-by: Krzysztof Kozlowski --- Changes

[PATCH] drm/vc4: remove unused function

2021-04-15 Thread Jiapeng Chong
Fix the following clang warning: drivers/gpu/drm/vc4/vc4_vec.c:201:1: warning: unused function 'to_vc4_vec_connector' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/vc4/vc4_vec.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/gp

Re: [PATCH] arm64: dts: marvell: armada-37xx: Set linux,pci-domain to zero

2021-04-15 Thread Marek Behun
On Thu, 15 Apr 2021 10:36:40 +0200 Pali Rohár wrote: > On Tuesday 13 April 2021 13:17:29 Rob Herring wrote: > > On Mon, Apr 12, 2021 at 7:41 AM Pali Rohár wrote: > > > > > > Since commit 526a76991b7b ("PCI: aardvark: Implement driver 'remove' > > > function and allow to build it as module") PC

[PATCH] drm/rockchip: remove unused function

2021-04-15 Thread Jiapeng Chong
Fix the following clang warning: drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c:320:20: warning: unused function 'dsi_set' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 5 - 1 file changed, 5 deletions(-)

[PATCH][next] can: etas_es58x: Fix missing null check on netdev pointer

2021-04-15 Thread Colin King
From: Colin Ian King There is an assignment to *netdev that is can potentially be null but the null check is checking netdev and not *netdev as intended. Fix this by adding in the missing * operator. Addresses-Coverity: ("Dereference before null check") Fixes: 8537257874e9 ("can: etas_es58x: add

Re: [peterz-queue:perf/core 18/22] kernel/events/core.c:6418:22: sparse: sparse: incorrect type in assignment (different address spaces)

2021-04-15 Thread Peter Zijlstra
On Wed, Apr 14, 2021 at 04:33:22PM +0200, Marco Elver wrote: > On Wed, Apr 14, 2021 at 10:10PM +0800, kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git > > perf/core > > head: 0da503cd07380952599b67ded6efe030d78ea42d > > commit: c7d4112e9f0e69e

Re: [PATCH] selftests/bpf: Fix the ASSERT_ERR_PTR macro

2021-04-15 Thread Florent Revest
On Thu, Apr 15, 2021 at 2:28 AM Andrii Nakryiko wrote: > On Wed, Apr 14, 2021 at 11:58 AM Martin KaFai Lau wrote: > > On Wed, Apr 14, 2021 at 05:56:32PM +0200, Florent Revest wrote: > > > It is just missing a ';'. This macro is not used by any test yet. > > > > > > Signed-off-by: Florent Revest

Re: [PATCH 2/7] stm class: Replace uuid_t with plain u8 uuid[16]

2021-04-15 Thread Andy Shevchenko
On Thu, Apr 15, 2021 at 11:35 AM Greg Kroah-Hartman wrote: > > On Wed, Apr 14, 2021 at 10:14:34PM +0300, Alexander Shishkin wrote: > > Greg Kroah-Hartman writes: > > > > >> Using raw buffer APIs against uuid_t / guid_t. > > > > > > So you want to do that, or you do not want to do that? Totally >

[PATCH] Bluetooth: 6lowpan: remove unused function

2021-04-15 Thread Jiapeng Chong
Fix the following clang warning: net/bluetooth/6lowpan.c:913:20: warning: unused function 'bdaddr_type' [-Wunused-function]. net/bluetooth/6lowpan.c:106:35: warning: unused function 'peer_lookup_ba' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- net/bluetooth/6

Re: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI

2021-04-15 Thread Andy Shevchenko
On Thu, Apr 15, 2021 at 3:43 AM Geert Uytterhoeven wrote: > On Wed, Apr 14, 2021 at 9:14 PM Andy Shevchenko > wrote: > > On Wed, Apr 14, 2021 at 08:55:21PM +0200, Geert Uytterhoeven wrote: > > > On Wed, Apr 14, 2021 at 8:18 PM Andy Shevchenko > > > wrote: > > > > On Wed, Apr 14, 2021 at 08:06:18

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

2021-04-15 Thread Stephen Rothwell
Hi all, After merging the powerpc tree, today's linux-next build (powerpc allyesconfig) produced this warning: In file included from include/linux/device.h:15, from arch/powerpc/include/asm/io.h:27, from include/linux/io.h:13, from include/linux/

Re: [PATCH] riscv: atomic: Using ARCH_ATOMIC in asm/atomic.h

2021-04-15 Thread Peter Zijlstra
On Thu, Apr 15, 2021 at 07:39:22AM +, guo...@kernel.org wrote: > - Add atomic_andnot_* operation > @@ -76,6 +59,12 @@ ATOMIC_OPS(sub, add, -i) > ATOMIC_OPS(and, and, i) > ATOMIC_OPS( or, or, i) > ATOMIC_OPS(xor, xor, i) > +ATOMIC_OPS(andnot, and, -i) ~i, surely.

Re: [PATCH v4 05/13] module: Add printk formats to add module build ID to stacktraces

2021-04-15 Thread Petr Mladek
On Tue 2021-04-13 15:57:49, Stephen Boyd wrote: > Quoting Petr Mladek (2021-04-13 08:01:14) > > On Fri 2021-04-09 18:52:52, Stephen Boyd wrote: > > > Let's make kernel stacktraces easier to identify by including the build > > > ID[1] of a module if the stacktrace is printing a symbol from a module.

Re: [PATCH v3 2/3] drm: bridge: add it66121 driver

2021-04-15 Thread Neil Armstrong
On 14/04/2021 19:35, Paul Cercueil wrote: > Hi Neil, > > Le mer. 14 avril 2021 à 8:17, Neil Armstrong a > écrit : >> Hi, >> >> Le 13/04/2021 à 22:56, Paul Cercueil a écrit : >>>  Hi Neil, >>> >>>  I get build failures locally: >>> >>>  drivers/gpu/drm/bridge/ite-it66121.c: In function ‘it66121_h

[PATCH] clocksource/drivers/timer-ti-dm: Save and restore timer TIOCP_CFG

2021-04-15 Thread Tony Lindgren
As we are using cpu_pm to save and restore context, we must also save and restore the timer sysconfig register TIOCP_CFG. This is needed because we are not calling PM runtime functions at all with cpu_pm. Fixes: b34677b0999a ("clocksource/drivers/timer-ti-dm: Implement cpu_pm notifier for context

[PATCH][next] can: etas_es58x: Fix potential null pointer dereference on pointer cf

2021-04-15 Thread Colin King
From: Colin Ian King The pointer cf is being null checked earlier in the code, however the update of the rx_bytes statistics is dereferencing cf without null checking cf. Fix this by moving the statement into the following code block that has a null cf check. Addresses-Coverity: ("Dereference a

[PATCH v4 29/33] dt-bindings: media: atmel-isc: convert to yaml

2021-04-15 Thread Eugen Hristev
Convert the Atmel ISC to yaml binding format. Signed-off-by: Eugen Hristev --- Changes in v4: - added '|' at description to maintain line breaks .../devicetree/bindings/media/atmel,isc.yaml | 115 ++ .../devicetree/bindings/media/atmel-isc.txt | 65 -- 2 files change

[PATCH] RISC-V: Fix error code returned by riscv_hartid_to_cpuid()

2021-04-15 Thread Anup Patel
We should return a negative error code upon failure in riscv_hartid_to_cpuid() instead of NR_CPUS. This is also aligned with all uses of riscv_hartid_to_cpuid() which expect negative error code upon failure. Fixes: 6825c7a80f18 ("RISC-V: Add logical CPU indexing for RISC-V") Cc: sta...@vger.kernel

Re: [PATCH] mmc: core: Don't allocate IDA for OF aliases

2021-04-15 Thread Ulf Hansson
On Tue, 13 Apr 2021 at 02:36, Stephen Boyd wrote: > > There's a chance that the IDA allocated in mmc_alloc_host() is not freed > for some time because it's freed as part of a class' release function > (see mmc_host_classdev_release() where the IDA is freed). If another > thread is holding a refere

[PATCH] driver: input: touchscreen: modify Raydium i2c touchscreen driver

2021-04-15 Thread simba.hsu
This path makes auto-update available when IC's status is Recovery mode. Signed-off-by: simba@raydium.corp-partner.google.com Change-Id: I5ae54896a201b949eba7514500a7e75574f5726b --- drivers/input/touchscreen/raydium_i2c_ts.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --gi

Re: [PATCH 3/3] sched: Use cpu_dying() to fix balance_push vs hotplug-rollback

2021-04-15 Thread Peter Zijlstra
On Tue, Apr 13, 2021 at 08:51:23AM +0200, Peter Zijlstra wrote: > > I'm afraid I don't follow; we're replacing a read of rq->balance_push with > > cpu_dying(), and those are still written on the same side of the > > synchronize_rcu(). What am I missing? > > Yeah, I'm not sure anymnore either; I t

[PATCH v4 30/33] dt-bindings: media: add microchip,xisc device bindings

2021-04-15 Thread Eugen Hristev
Add bindings for the Microchip eXtended Image Sensor Controller. Based on the atmel,isc.yaml binding. Signed-off-by: Eugen Hristev --- .../bindings/media/microchip,xisc.yaml| 129 ++ 1 file changed, 129 insertions(+) create mode 100644 Documentation/devicetree/bindings/m

[tip: x86/urgent] x86/dma: Tear down DMA ops on driver unbind

2021-04-15 Thread tip-bot2 for Jean-Philippe Brucker
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 9f8614f5567eb4e38579422d38a1bdfeeb648ffc Gitweb: https://git.kernel.org/tip/9f8614f5567eb4e38579422d38a1bdfeeb648ffc Author:Jean-Philippe Brucker AuthorDate:Wed, 14 Apr 2021 10:26:34 +02:00

Re: [RFC][PATCH] locking: Generic ticket-lock

2021-04-15 Thread Catalin Marinas
(fixed Will's email address) On Thu, Apr 15, 2021 at 10:09:54AM +0200, Peter Zijlstra wrote: > On Thu, Apr 15, 2021 at 05:47:34AM +0900, Stafford Horne wrote: > > > How's this then? Compile tested only on openrisc/simple_smp_defconfig. > > > > I did my testing with this FPGA build SoC: > > > >

Re: [PATCH v4 4/6] drm/sprd: add Unisoc's drm display controller driver

2021-04-15 Thread Maxime Ripard
Hi, On Thu, Apr 15, 2021 at 08:18:52AM +0800, Kevin Tang wrote: > Maxime Ripard 于2021年3月24日周三 下午7:10写道: > > > +static struct sprd_dpu *sprd_crtc_init(struct drm_device *drm, > > > + struct drm_plane *primary) > > > +{ > > > + struct device_node *port; > > > + struct s

Re: [peterz-queue:perf/core 18/22] kernel/events/core.c:6418:22: sparse: sparse: incorrect type in assignment (different address spaces)

2021-04-15 Thread Marco Elver
On Thu, Apr 15, 2021 at 10:48AM +0200, Peter Zijlstra wrote: > On Wed, Apr 14, 2021 at 04:33:22PM +0200, Marco Elver wrote: > > On Wed, Apr 14, 2021 at 10:10PM +0800, kernel test robot wrote: > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git > > > perf/core > > > head:

Re: [PATCH][next] can: etas_es58x: Fix potential null pointer dereference on pointer cf

2021-04-15 Thread Marc Kleine-Budde
On 15.04.2021 09:55:35, Colin King wrote: > From: Colin Ian King > > The pointer cf is being null checked earlier in the code, however the > update of the rx_bytes statistics is dereferencing cf without null > checking cf. Fix this by moving the statement into the following code > block that has

[PATCH] MIPS: Makefile: Replace -pg with CC_FLAGS_FTRACE

2021-04-15 Thread zhaoxiao
In preparation for mips supporting ftrace built on other compiler options, let's have the mips Makefiles remove the $(CC_FLAGS_FTRACE) flags, whatever these may be, rather than assuming '-pg'. Signed-off-by: zhaoxiao --- arch/mips/kernel/Makefile | 8 1 file changed, 4 insertions(+), 4

Re: [PATCH][next] can: etas_es58x: Fix missing null check on netdev pointer

2021-04-15 Thread Marc Kleine-Budde
On 15.04.2021 09:47:23, Colin King wrote: > From: Colin Ian King > > There is an assignment to *netdev that is can potentially be null but the > null check is checking netdev and not *netdev as intended. Fix this by > adding in the missing * operator. > > Addresses-Coverity: ("Dereference before

Re: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI

2021-04-15 Thread Yicong Yang
On 2021/4/15 16:18, Yicong Yang wrote: > On 2021/4/15 2:06, Geert Uytterhoeven wrote: >> Hi Yicong, >> >> On Wed, Apr 14, 2021 at 11:24 AM Yicong Yang >> wrote: >>> On 2021/4/13 20:26, Geert Uytterhoeven wrote: The HiSilicon Kunpeng I2C controller is only present on HiSilicon Kunpeng So

Re: [PATCH] pwm: mediatek: remove unused function

2021-04-15 Thread Uwe Kleine-König
On Thu, Apr 15, 2021 at 04:35:53PM +0800, Jiapeng Chong wrote: > Fix the following clang warning: > > drivers/pwm/pwm-mediatek.c:110:19: warning: unused function > 'pwm_mediatek_readl' [-Wunused-function]. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong Looks right, even though I w

Re: [PATCH v2 7/9] sched,debug: Convert sysctl sched_domains to debugfs

2021-04-15 Thread Peter Zijlstra
On Tue, Apr 13, 2021 at 03:55:15PM +0100, Valentin Schneider wrote: > On 12/04/21 12:14, Peter Zijlstra wrote: > > Stop polluting sysctl, move to debugfs for SCHED_DEBUG stuff. > > > > Signed-off-by: Peter Zijlstra (Intel) > > Reviewed-by: Dietmar Eggemann > > On my Juno (2+4 big.LITTLE), sys/ke

Re: [PATCH] mmc: meson-gx: remove useless warning about scatterlist size alignment in block mode

2021-04-15 Thread Ulf Hansson
On Wed, 14 Apr 2021 at 12:00, Neil Armstrong wrote: > > Since commit e085b51c74cc ("mmc: meson-gx: check for scatterlist size > alignment in block mode"), > support for SDIO SD_IO_RW_EXTENDED transferts are properly filtered but some > driver > like brcmfmac still gives a block sg buffer size no

Re: [GIT PULL] interconnect changes for 5.13

2021-04-15 Thread Greg KH
On Thu, Apr 15, 2021 at 11:09:48AM +0300, Georgi Djakov wrote: > Hello Greg, > > This is the pull request with the interconnect changes for the 5.13-rc1 > merge window. These include two new drivers. > > Patches have been in linux-next without any reported issues. Please pull > into char-misc-nex

Re: [PATCH 2/7] stm class: Replace uuid_t with plain u8 uuid[16]

2021-04-15 Thread Greg Kroah-Hartman
On Thu, Apr 15, 2021 at 11:48:48AM +0300, Andy Shevchenko wrote: > On Thu, Apr 15, 2021 at 11:35 AM Greg Kroah-Hartman > wrote: > > > > On Wed, Apr 14, 2021 at 10:14:34PM +0300, Alexander Shishkin wrote: > > > Greg Kroah-Hartman writes: > > > > > > >> Using raw buffer APIs against uuid_t / guid_t

Re: [PATCH v4 4/6] drm/sprd: add Unisoc's drm display controller driver

2021-04-15 Thread Maxime Ripard
Hi, On Fri, Apr 09, 2021 at 09:35:07PM +0800, Kevin Tang wrote: > > > > > + } > > > > > + > > > > > + return MODE_OK; > > > > > +} > > > > > + > > > > > +static void sprd_crtc_atomic_enable(struct drm_crtc *crtc, > > > > > +struct drm_atomic_state *state) >

Re: [peterz-queue:perf/core 18/22] kernel/events/core.c:6418:22: sparse: sparse: incorrect type in assignment (different address spaces)

2021-04-15 Thread Peter Zijlstra
On Thu, Apr 15, 2021 at 11:03:09AM +0200, Marco Elver wrote: > On Thu, Apr 15, 2021 at 10:48AM +0200, Peter Zijlstra wrote: > > I've ended up with the below delta, does that work for you? > > Thanks, that works for me. Do note that I explicitly chose u64 for > sig_addr/pending_addr because data->

Re: [PATCH 10/15] usb: dwc2: Allow exit hibernation in urb enqueue

2021-04-15 Thread Sergei Shtylyov
On 15.04.2021 8:40, Artur Petrosyan wrote: When core is in hibernation state and an external hub is connected, upper layer sends URB enqueue request, which results in port reset issue. - Added exit from hibernation state to avoid port reset issue and process upper layer request properly. Signe

Re: [PATCH v2 3/6] dt-bindings: phy: Add binding for TI TCAN104x CAN transceivers

2021-04-15 Thread Aswath Govindraju
Hi Marc, On 15/04/21 1:08 pm, Marc Kleine-Budde wrote: > On 15.04.2021 11:57:20, Aswath Govindraju wrote: >> Hi Marc, >> >> On 14/04/21 9:03 pm, Marc Kleine-Budde wrote: >>> On 14.04.2021 19:35:18, Aswath Govindraju wrote: Add binding documentation for TI TCAN104x CAN transceivers.

Re: [PATCH][next] can: etas_es58x: Fix potential null pointer dereference on pointer cf

2021-04-15 Thread Colin Ian King
On 15/04/2021 10:03, Marc Kleine-Budde wrote: > On 15.04.2021 09:55:35, Colin King wrote: >> From: Colin Ian King >> >> The pointer cf is being null checked earlier in the code, however the >> update of the rx_bytes statistics is dereferencing cf without null >> checking cf. Fix this by moving th

Re: [PATCH v2 4/6] phy: phy-can-transceiver: Add support for generic CAN transceiver driver

2021-04-15 Thread kernel test robot
/linux-can-next.git testing config: m68k-randconfig-r014-20210415 (attached as .config) compiler: m68k-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/

[PATCH] platform/x86: intel_chtdc_ti_pwrbtn: Fix missing IRQF_ONESHOT as only threaded handler

2021-04-15 Thread zhuguangqing83
From: Guangqing Zhu Coccinelle noticed: drivers/platform/x86/intel_chtdc_ti_pwrbtn.c:59:7-32: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT Signed-off-by: Guangqing Zhu --- drivers/platform/x86/intel_chtdc_ti_pwrbtn.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[PATCH] driver: input: touchscreen: modify Raydium i2c touchscreen driver

2021-04-15 Thread simba.hsu
This path makes auto-update available when IC's status is Recovery mode Signed-off-by: simba.hsu Change-Id: Icf974d59f7717da0de8bd97a06c496a32dafa1ff --- drivers/input/touchscreen/raydium_i2c_ts.c | 53 ++ 1 file changed, 45 insertions(+), 8 deletions(-) diff --git a/drivers

Re: [PATCH v2 3/6] dt-bindings: phy: Add binding for TI TCAN104x CAN transceivers

2021-04-15 Thread Marc Kleine-Budde
On 15.04.2021 14:41:57, Aswath Govindraju wrote: > +++ b/Documentation/devicetree/bindings/phy/ti,tcan104x-can.yaml > > Can you create a maintainers entry for this file with your address? > > I don't see this being done for other phy yamls in the > Documentation/devicetree/bindings/phy folder

[PATCH] stm class: Use correct UUID APIs

2021-04-15 Thread Alexander Shishkin
From: Andy Shevchenko It appears that the STM code didn't manage to accurately decypher the delicate inner workings of an alternative thought process behind the UUID API and directly called generate_random_uuid() that clearly needs to be a static function in lib/uuid.c. At the same time, said ST

[PATCH 1/3] drm/panel: Add connector_type and bus_format for AUO G104SN02 V2 panel

2021-04-15 Thread Stefan Riedmueller
The AUO G104SN02 V2 is an LVDS display which supports 6 and 8 bpc PSWG. Add the corresponding connector type and 8 bpc as default bus_format. Signed-off-by: Stefan Riedmueller --- drivers/gpu/drm/panel/panel-simple.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/panel/pan

[PATCH 2/3] drm/panel: Add connector_type for some EDT displays

2021-04-15 Thread Stefan Riedmueller
The connector_type for following two EDT displays is missing: - EDT ETM0430G0DH6 - EDT ETM0700G0BDH6 Both are parallel displays thus add the corresponding connector_type. Signed-off-by: Stefan Riedmueller --- drivers/gpu/drm/panel/panel-simple.c | 2 ++ 1 file changed, 2 insertions(+) diff -

Re: [PATCH 57/57] staging: rtl8723bs: hal: sdio_halinit: Remove unused variable 'ret'

2021-04-15 Thread Fabio Aiuto
On Wed, Apr 14, 2021 at 07:11:29PM +0100, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/staging/rtl8723bs/hal/sdio_halinit.c: In function > ‘CardDisableRTL8723BSdio’: > drivers/staging/rtl8723bs/hal/sdio_halinit.c:881:5: warning: variable ‘ret’ > set but not u

[PATCH 3/3] drm/panel: Add bus_format and bus_flags for EDT ETM0430G0DH6

2021-04-15 Thread Stefan Riedmueller
Add corresponding bus_format and bus_flags for the EDT ETM0430G0DH6 display. Signed-off-by: Stefan Riedmueller --- drivers/gpu/drm/panel/panel-simple.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 723c09a

Re: [PATCH 1/5] mm/swapfile: add percpu_ref support for swap

2021-04-15 Thread Miaohe Lin
On 2021/4/15 12:20, Dennis Zhou wrote: > On Thu, Apr 15, 2021 at 11:16:42AM +0800, Miaohe Lin wrote: >> On 2021/4/14 22:53, Dennis Zhou wrote: >>> On Wed, Apr 14, 2021 at 01:44:58PM +0800, Huang, Ying wrote: Dennis Zhou writes: > On Wed, Apr 14, 2021 at 11:59:03AM +0800, Huang, Ying

Re: [PATCH] arm64: alternatives: Move length validation in alternative_{insn,endif}

2021-04-15 Thread Catalin Marinas
Hi Nathan, On Tue, Apr 13, 2021 at 05:08:04PM -0700, Nathan Chancellor wrote: > After commit 2decad92f473 ("arm64: mte: Ensure TIF_MTE_ASYNC_FAULT is > set atomically"), LLVM's integrated assembler fails to build entry.S: > > :5:7: error: expected assembly-time absolute expression > .org . - (66

[syzbot] INFO: trying to register non-static key in nfc_llcp_sock_unlink

2021-04-15 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:50987bec Merge tag 'trace-v5.12-rc7' of git://git.kernel.o.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14d2cab1d0 kernel config: https://syzkaller.appspot.com/x/.config?x=b5591c832f889fd9 das

Re: [PATCH 2/7] stm class: Replace uuid_t with plain u8 uuid[16]

2021-04-15 Thread Alexander Shishkin
Greg Kroah-Hartman writes: > On Wed, Apr 14, 2021 at 10:14:34PM +0300, Alexander Shishkin wrote: >> Greg Kroah-Hartman writes: >> >> >> Using raw buffer APIs against uuid_t / guid_t. >> > >> > So you want to do that, or you do not want to do that? Totally >> > confused, >> >> My understanding

Re: [PATCH RFC net-next 0/3] Multi-CPU DSA support

2021-04-15 Thread Tobias Waldekranz
On Thu, Apr 15, 2021 at 02:39, Vladimir Oltean wrote: > On Wed, Apr 14, 2021 at 08:39:53PM +0200, Tobias Waldekranz wrote: >> In order to have two entries for the same destination, they must belong >> to different FIDs. But that FID is also used for automatic learning. So >> if all ports use their

[PATCH] infiniband: ulp: Remove unnecessary struct declaration

2021-04-15 Thread Wan Jiabing
struct ipoib_cm_tx is defined at 245th line. And the definition is independent on the MACRO. The declaration here is unnecessary. Remove it. Signed-off-by: Wan Jiabing --- drivers/infiniband/ulp/ipoib/ipoib.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/infiniband/ulp/ipoib/ipoib

Re: [PATCH v18 2/2] ufs: sysfs: Resume the proper scsi device

2021-04-15 Thread Adrian Hunter
On 14/04/21 9:58 pm, Asutosh Das wrote: > Resumes the actual scsi device the unit descriptor of which > is being accessed instead of the hba alone. > > Reviewed-by: Can Guo > Signed-off-by: Asutosh Das Reviewed-by: Adrian Hunter > --- > drivers/scsi/ufs/ufs-sysfs.c | 24 -

Re: [RFC][PATCH] locking: Generic ticket-lock

2021-04-15 Thread Will Deacon
On Thu, Apr 15, 2021 at 10:02:18AM +0100, Catalin Marinas wrote: > (fixed Will's email address) > > On Thu, Apr 15, 2021 at 10:09:54AM +0200, Peter Zijlstra wrote: > > On Thu, Apr 15, 2021 at 05:47:34AM +0900, Stafford Horne wrote: > > > > How's this then? Compile tested only on openrisc/simple_sm

Re: [PATCH 13/15] usb: dwc2: Add exit hibernation mode before removing drive

2021-04-15 Thread Sergei Shtylyov
On 15.04.2021 8:41, Artur Petrosyan wrote: When dwc2 core is in hibernation mode loading driver again causes driver fail. Because in that mode registers are not accessible. In order to exit from hibernation checking dwc2 core power saving state in "dwc2_driver_remove()" function. If core is in

Re: [RFC][PATCH] locking: Generic ticket-lock

2021-04-15 Thread Peter Zijlstra
On Thu, Apr 15, 2021 at 10:02:18AM +0100, Catalin Marinas wrote: > IIRC, one issue we had with ticket spinlocks on arm64 was on big.LITTLE > systems where the little CPUs were always last to get a ticket when > racing with the big cores. That was with load/store exclusives (LR/SC > style) and would

Re: [PATCH 2/2] iommu/amd: Remove performance counter pre-initialization test

2021-04-15 Thread Suthikulpanit, Suravee
David, On 4/14/2021 10:33 PM, David Coe wrote: Hi Suravee! I've re-run your revert+update patch on Ubuntu's latest kernel 5.11.0-14 partly to check my mailer's 'mangling' hadn't also reached the code! There are 3 sets of results in the attachment, all for the Ryzen 2400G. The as-distributed

[PATCH v2 1/2] net: phy: add genphy_c45_pma_suspend/resume

2021-04-15 Thread Radu Pirea (NXP OSS)
Add generic PMA suspend and resume callback functions for C45 PHYs. Signed-off-by: Radu Pirea (NXP OSS) --- drivers/net/phy/phy-c45.c | 43 +++ include/linux/phy.h | 2 ++ 2 files changed, 45 insertions(+) diff --git a/drivers/net/phy/phy-c45.c b/drive

[PATCH v2 0/2] TJA1103 driver

2021-04-15 Thread Radu Pirea (NXP OSS)
Hi, This small series adds the TJA1103 PHY driver. Changes in v2: - implemented genphy_c45_pma_suspend/genphy_c45_pma_suspend - set default internal delays set to 2ns(90 degrees) - added "VEND1_" prefix to the register definitions - disable rxid in case of txid - disable txid in case of rxid

[PATCH v2 2/2] phy: nxp-c45: add driver for tja1103

2021-04-15 Thread Radu Pirea (NXP OSS)
Add driver for tja1103 driver and for future NXP C45 PHYs. Signed-off-by: Radu Pirea (NXP OSS) --- MAINTAINERS | 6 + drivers/net/phy/Kconfig | 6 + drivers/net/phy/Makefile | 1 + drivers/net/phy/nxp-c45-tja11xx.c | 607

[PATCH 1/1] perf map: Fix error return code in maps__clone()

2021-04-15 Thread Zhen Lei
Although 'err' has been initialized to -ENOMEM, but it will be reassigned by the "err = unwind__prepare_access(...)" statement in the for loop. So that, the value of 'err' is unknown when map__clone() failed. Reported-by: Hulk Robot Signed-off-by: Zhen Lei --- tools/perf/util/map.c | 7 +--

Re: [RFC/RFT PATCH 1/3] memblock: update initialization of reserved pages

2021-04-15 Thread David Hildenbrand
Not sure we really need a new pagetype here, PG_Reserved seems to be quite enough to say "don't touch this". I generally agree that we could make PG_Reserved a PageType and then have several sub-types for reserved memory. This definitely will add clarity but I'm not sure that this justifies amoun

[PATCH] drm/radeon/si: Fix inconsistent indenting

2021-04-15 Thread Yang Li
Kernel test robot throws below warning -> smatch warnings: drivers/gpu/drm/radeon/si.c:4514 si_vm_packet3_cp_dma_check() warn: inconsistent indenting Fixed the inconsistent indenting. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/radeon/si.c | 2 +- 1 file changed, 1 ins

Re: [RFC/RFT PATCH 2/3] arm64: decouple check whether pfn is normal memory from pfn_valid()

2021-04-15 Thread David Hildenbrand
On 14.04.21 22:29, Mike Rapoport wrote: On Wed, Apr 14, 2021 at 05:58:26PM +0200, David Hildenbrand wrote: On 08.04.21 07:14, Anshuman Khandual wrote: On 4/7/21 10:56 PM, Mike Rapoport wrote: From: Mike Rapoport The intended semantics of pfn_valid() is to verify whether there is a struct pa

[PATCH] mm: ptdump: Fix build failure

2021-04-15 Thread Christophe Leroy
CC mm/ptdump.o In file included from : mm/ptdump.c: In function 'ptdump_pte_entry': ././include/linux/compiler_types.h:320:38: error: call to '__compiletime_assert_207' declared with attribute error: Unsupported access size for {READ,WRITE}_ONCE().

Re: [PATCH bpf-next v4 1/6] bpf: Factorize bpf_trace_printk and bpf_seq_printf

2021-04-15 Thread Florent Revest
On Thu, Apr 15, 2021 at 2:38 AM Andrii Nakryiko wrote: > On Wed, Apr 14, 2021 at 11:54 AM Florent Revest wrote: > > +static int try_get_fmt_tmp_buf(char **tmp_buf) > > +{ > > + struct bpf_printf_buf *bufs; > > + int used; > > + > > + if (*tmp_buf) > > + return 0; >

[PATCH bpf-next 1/2] bpf: Remove bpf_jit_enable=2 debugging mode

2021-04-15 Thread Jianlin Lv
For debugging JITs, dumping the JITed image to kernel log is discouraged, "bpftool prog dump jited" is much better way to examine JITed dumps. This patch get rid of the code related to bpf_jit_enable=2 mode and update the proc handler of bpf_jit_enable, also added auxiliary information to explain h

Re: [PATCH 48/57] staging: comedi: drivers: jr3_pci: Remove set but unused variable 'min_full_scale'

2021-04-15 Thread Ian Abbott
On 14/04/2021 19:11, Lee Jones wrote: Fixes the following W=1 kernel build warning(s): drivers/staging/comedi/drivers/jr3_pci.c: In function ‘jr3_pci_poll_subdevice’: drivers/staging/comedi/drivers/jr3_pci.c:507:22: warning: variable ‘min_full_scale’ set but not used [-Wunused-but-set-vari

Re: [PATCH 07/11] mm/page_alloc: Remove duplicate checks if migratetype should be isolated

2021-04-15 Thread Mel Gorman
On Wed, Apr 14, 2021 at 07:21:42PM +0200, Vlastimil Babka wrote: > On 4/14/21 3:39 PM, Mel Gorman wrote: > > Both free_pcppages_bulk() and free_one_page() have very similar > > checks about whether a page's migratetype has changed under the > > zone lock. Use a common helper. > > > > Signed-off-by

[PATCH bpf-next 2/2] docs: bpf: bpf_jit_enable mode changed

2021-04-15 Thread Jianlin Lv
Remove information about bpf_jit_enable=2 mode and added description for how to use the bpf_jit_disasm tool after get rid of =2 mode. Signed-off-by: Jianlin Lv --- Documentation/admin-guide/sysctl/net.rst | 1 - Documentation/networking/filter.rst | 25 ++-- 2 files cha

[PATCH] coresight: add support to enable more coresight paths

2021-04-15 Thread Tao Zhang
Current coresight implementation only supports enabling source ETMs or STM. This patch adds support to enable more kinds of coresight source to sink paths. We build a path from source to sink when any source is enabled and store it in a list. When the source is disabled, we fetch the corresponding

Re: [PATCH] ASoC: codecs: wcd934x: Fix missing IRQF_ONESHOT as only threaded handler

2021-04-15 Thread Srinivas Kandagatla
On 15/04/2021 08:38, zhuguangqin...@gmail.com wrote: From: Guangqing Zhu Coccinelle noticed: sound/soc/codecs/wcd934x.c:5041:7-32: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT Signed-off-by: Guangqing Zhu --- Thanks for the patch, Reviewed-by: Srinivas K

Re: [PATCH bpf-next v3 3/6] bpf: Add a bpf_snprintf helper

2021-04-15 Thread Florent Revest
On Thu, Apr 15, 2021 at 12:57 AM Andrii Nakryiko wrote: > > On Wed, Apr 14, 2021 at 2:46 AM Florent Revest wrote: > > > > On Wed, Apr 14, 2021 at 1:16 AM Andrii Nakryiko > > wrote: > > > On Mon, Apr 12, 2021 at 8:38 AM Florent Revest > > > wrote: > > > > + > > > > + return err + 1; > > >

Re: [PATCH 04/11] mm/vmstat: Inline NUMA event counter updates

2021-04-15 Thread Mel Gorman
On Wed, Apr 14, 2021 at 06:26:25PM +0200, Vlastimil Babka wrote: > On 4/14/21 6:20 PM, Vlastimil Babka wrote: > > On 4/14/21 3:39 PM, Mel Gorman wrote: > >> __count_numa_event is small enough to be treated similarly to > >> __count_vm_event so inline it. > >> > >> Signed-off-by: Mel Gorman > > >

[PATCH 1/8] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-jacuzzi-kappa

2021-04-15 Thread Hsin-Yi Wang
Kappa is known as HP Chromebook 11a. Signed-off-by: Hsin-Yi Wang --- Documentation/devicetree/bindings/arm/mediatek.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm/mediatek.yaml index aff57a

[PATCH 2/8] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-jacuzzi-willow

2021-04-15 Thread Hsin-Yi Wang
Willow is known as Acer Chromebook 311 (C722/C722T). Signed-off-by: Hsin-Yi Wang --- Documentation/devicetree/bindings/arm/mediatek.yaml | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm/mediate

[PATCH 3/8] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-jacuzzi-burnet

2021-04-15 Thread Hsin-Yi Wang
Burnet is known as HP Chromebook x360 11MK G3 EE. Signed-off-by: Hsin-Yi Wang --- Documentation/devicetree/bindings/arm/mediatek.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm/mediatek.yaml

[PATCH 4/8] dt-bindings: arm64: dts: mediatek: Add mt8183-kukui-jacuzzi-kenzo

2021-04-15 Thread Hsin-Yi Wang
Kenzo is known as Acer Chromebook 311. Signed-off-by: Hsin-Yi Wang --- Documentation/devicetree/bindings/arm/mediatek.yaml | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm/mediat

[PATCH 5/8] arm64: dts: mt8183: Add kukui-jacuzzi-kappa board

2021-04-15 Thread Hsin-Yi Wang
Kappa is known as HP Chromebook 11a Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/Makefile| 1 + .../dts/mediatek/mt8183-kukui-jacuzzi-kappa.dts | 16 2 files changed, 17 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8183-kukui-jac

[PATCH 6/8] arm64: dts: mt8183: Add kukui-jacuzzi-willow board

2021-04-15 Thread Hsin-Yi Wang
Willow is known as Acer Chromebook 311 (C722/C722T) Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/Makefile | 2 ++ .../mt8183-kukui-jacuzzi-willow-sku0.dts | 13 + .../mt8183-kukui-jacuzzi-willow-sku1.dts | 12 .../mediatek/mt8183-kukui-jacuzzi-

[PATCH 7/8] arm64: dts: mt8183: Add kukui-jacuzzi-burnet board

2021-04-15 Thread Hsin-Yi Wang
Burnet is known as HP Chromebook x360 11MK G3 EE Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../mediatek/mt8183-kukui-jacuzzi-burnet.dts | 33 +++ 2 files changed, 34 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8183

[PATCH 8/8] arm64: dts: mt8183: Add kukui-jacuzzi-kenzo board

2021-04-15 Thread Hsin-Yi Wang
Kenzo is known as Acer Chromebook 311. Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/Makefile| 1 + .../boot/dts/mediatek/mt8183-kukui-jacuzzi-kenzo.dts | 12 2 files changed, 13 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8183-ku

Re: [PATCH 2/2] drm/ingenic: Don't request full modeset if property is not modified

2021-04-15 Thread Maxime Ripard
Hi, On Mon, Mar 29, 2021 at 06:50:46PM +0100, Paul Cercueil wrote: > Avoid requesting a full modeset if the sharpness property is not > modified, because then we don't actually need it. > > Fixes: fc1acf317b01 ("drm/ingenic: Add support for the IPU") > Cc: # 5.8+ > Signed-off-by: Paul Cercueil

[PATCH 1/2] i2c: s3c2410: simplify getting of_device_id match data

2021-04-15 Thread Krzysztof Kozlowski
Use of_device_get_match_data() to make the code slightly smaller. Signed-off-by: Krzysztof Kozlowski --- drivers/i2c/busses/i2c-s3c2410.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c index 62a903f

  1   2   3   4   5   6   7   8   9   10   >