RE: [PATCH v6 2/2] scsi: ufs-qcom: Fix ufs RST_n specs violation

2021-01-12 Thread Avri Altman
> > > As per specs, e.g, JESD220E chapter 7.2, while powering > off/on the ufs device, RST_n signal should be between > VSS(Ground) and VCCQ/VCCQ2. > > Signed-off-by: Ziqi Chen Aked-by: Avri Altman

Re: [PATCHv6 0/4] perf: Add mmap2 build id support

2021-01-12 Thread Jiri Olsa
On Mon, Jan 11, 2021 at 06:49:58PM -0800, Alexei Starovoitov wrote: > On Mon, Jan 11, 2021 at 10:38:19PM +0100, Jiri Olsa wrote: > > hi, > > adding the support to have buildid stored in mmap2 event, > > so we can bypass the final perf record hunt on build ids. > > > > This patchset allows perf to

Re: [PATCH] edac: remove redundant error print in xgene_edac_probe

2021-01-12 Thread Robert Richter
On 12.01.21 00:46:05, menglong8.d...@gmail.com wrote: > From: Menglong Dong > > Coccinelle reports a redundant error print in xgene_edac_probe. > As 'platform_get_irq' already prints the error message, error > print here is redundant and can be removed. > > Signed-off-by: Menglong Dong > --- >

Re: [PATCH 1/4] sched/fair: Introduce primitives for CFS bandwidth burst

2021-01-12 Thread changhuaixin
> On Dec 21, 2020, at 9:53 PM, changhuaixin > wrote: > > > >> On Dec 17, 2020, at 9:36 PM, Peter Zijlstra wrote: >> >> On Thu, Dec 17, 2020 at 03:46:17PM +0800, Huaixin Chang wrote: >>> In this patch, we introduce the notion of CFS bandwidth burst. Unused >>> "quota" from pervious "period

[PATCH] mm: slub: Convert sys slab alloc_calls, free_calls to bin attribute

2021-01-12 Thread Faiyaz Mohammed
Reading the sys slab alloc_calls, free_calls returns the available object owners, but the size of this file is limited to PAGE_SIZE because of the limitation of sysfs attributes, it is returning the partial owner info, which is not sufficient to debug/account the slab memory and alloc_calls output

[PATCH v3] scsi: ufs: Remove unnecessary devm_kfree

2021-01-12 Thread Bean Huo
From: Bean Huo The memory allocated with devm_kzalloc() is freed automatically no need to explicitly call devm_kfree, so delete it and save some instruction cycles. Reviewed-by: Eric Biggers Signed-off-by: Bean Huo --- Nothing changed in this patch, just drop one patch from the patchset: http

Re: [RFC v3 2/2] vfio/platform: msi: add Broadcom platform devices

2021-01-12 Thread Auger Eric
Hi Vikas, On 12/14/20 6:45 PM, Vikas Gupta wrote: > Add msi support for Broadcom platform devices > > Signed-off-by: Vikas Gupta > --- > drivers/vfio/platform/Kconfig | 1 + > drivers/vfio/platform/Makefile| 1 + > drivers/vfio/platform/msi/Kconfig

Re: [PATCH v3 1/4] dp/dp_mst: Add support for sink event notify messages

2021-01-12 Thread Hans Verkuil
Hi Sam, This series still hasn't been merged. It still applies cleanly to v5.11-rc1. Daniel, can you merge this series for 5.12? Or Ack this series so I can merge it? The first three patches deal with DP MST support, and this needs review from you or David. Regards, Hans On 23/09/202

Re: [PATCH v2 1/6] drivers: crypto: qce: sha: Restore/save ahash state with custom struct in export/import

2021-01-12 Thread kernel test robot
submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Thara-Gopinath/Regression-fixes-clean-ups-in-the-Qualcomm-crypto-engine-driver/20210112-57 base: https://git.kernel.org/pub

[PATCH bpf 2/2] selftests/bpf: add verifier test for PTR_TO_MEM spill

2021-01-12 Thread Gilad Reti
Add test to check that the verifier is able to recognize spilling of PTR_TO_MEM registers. The patch was partially contibuted by CyberArk Software, Inc. Signed-off-by: Gilad Reti --- tools/testing/selftests/bpf/test_verifier.c | 12 +++- .../selftests/bpf/verifier/spill_fill.c | 30

Re: [PATCH] dmaengine: qcom: bam_dma: Add LOCK and UNLOCK flag bit support

2021-01-12 Thread mdalam
On 2020-12-21 23:03, mda...@codeaurora.org wrote: On 2020-12-21 14:53, Vinod Koul wrote: Hello, On 17-12-20, 20:07, Md Sadre Alam wrote: This change will add support for LOCK & UNLOCK flag bit support on CMD descriptor. If DMA_PREP_LOCK flag passed in prep_slave_sg then requester of this tran

Re: [PATCH] dmaengine: qcom: bam_dma: Add LOCK and UNLOCK flag bit support

2021-01-12 Thread mdalam
On 2020-12-22 17:48, mda...@codeaurora.org wrote: On 2020-12-21 23:39, Thara Gopinath wrote: On 12/21/20 2:35 AM, mda...@codeaurora.org wrote: On 2020-12-19 09:05, Thara Gopinath wrote: On 12/17/20 9:37 AM, Md Sadre Alam wrote: This change will add support for LOCK & UNLOCK flag bit support o

Re: [PATCH] perf test: Fix shadow stat test for non-bash shells

2021-01-12 Thread Jiri Olsa
On Fri, Jan 08, 2021 at 04:47:12PM +0900, Namhyung Kim wrote: > It was using some bash-specific features and failed to parse when > running with a different shell like below: > > root@kbl-ppc:~/kbl-ws/perf-dev/lck-9077/acme.tmp/tools/perf# ./perf test 83 > -vv > 83: perf stat metrics (shadow

[PATCH] kvm: Fixes lack of KVM_CAP_MANUAL_DIRTY_LOG_PROTECT2 enabled check

2021-01-12 Thread Kunkun Jiang
The KVM_CLEAR_DIRTY_LOG ioctl lacks the check whether the capability KVM_CAP_MANUAL_DIRTY_LOG_PROTECT is enabled or not. This may cause some problems if userspace calls the KVM_CLEAR_DIRTY_LOG ioctl, but dose't enable this capability. So we'd better to add it. Fixes: 2a31b9db15353 ("kvm: introduce

Re: [PATCH v5 0/5] MSFT offloading support for advertisement monitor

2021-01-12 Thread Archie Pusaka
Hi maintainers, Gentle ping to review this patch, thanks~! Regards, Archie On Tue, 22 Dec 2020 at 18:26, Archie Pusaka wrote: > > From: Archie Pusaka > > > Hi linux-bluetooth, > > This series of patches manages the hardware offloading part of MSFT > extension API. The full documentation can b

RE: [PATCH v1] i2c: tegra: Fix i2c_writesl() to use writel() instead of writesl()

2021-01-12 Thread David Laight
From: Sowjanya Komatineni > Sent: 11 January 2021 17:38 ... > Using writesl() for filling TX_FIFO causing silent hang immediate on any > i2c register access after filling FIFO with 8 words and some times with > 6 words as well. > > So couldn't INTERRUPT_STATUS registers to check for TX FIFO Overfl

[PATCH v2 0/3] scsi: add runtime PM workaround for SD cardreaders

2021-01-12 Thread Martin Kepplinger
revision history v2: * move module parameter to sd * add Documentation v1: https://lore.kernel.org/linux-scsi/2021052029.28426-1-martin.kepplin...@puri.sm/T/#t hi, In short: there are SD cardreaders that send MEDIA_CHANGED on runtime resume. We cannot use runtime PM with

[PATCH v2 2/3] scsi: sd: add ignore_resume_medium_changed disk setting

2021-01-12 Thread Martin Kepplinger
Add a userspace knob for scsi disks that deliver a MEDIA CHANGED unit attention when the device actually only resumes from (runtime) suspend. Those devices need the new ignore_resume_medium_changed knob set to 1 in order to be able to use runtime PM. To enable runtime PM for an SD cardreader (here

[PATCH v2 3/3] scsi: sd: Documentation: describe ignore_resume_medium_changed

2021-01-12 Thread Martin Kepplinger
Add notes about the new sd sysfs knob that works around problems with runtime PM for certain types of SD cardreaders. Signed-off-by: Martin Kepplinger --- Documentation/scsi/sd-parameters.rst | 14 ++ 1 file changed, 14 insertions(+) diff --git a/Documentation/scsi/sd-parameters.rst

Re: [PATCH] char_dev: replace cdev_map with an xarray

2021-01-12 Thread Greg KH
On Mon, Jan 11, 2021 at 08:58:18PM +, Matthew Wilcox wrote: > On Mon, Jan 11, 2021 at 06:05:13PM +0100, Christoph Hellwig wrote: > > @@ -486,14 +491,22 @@ int cdev_add(struct cdev *p, dev_t dev, unsigned > > count) > > if (WARN_ON(dev == WHITEOUT_DEV)) > > return -EBUSY; > >

[PATCH v2 1/5] mm: Move pfn_to_online_page() out of line

2021-01-12 Thread Dan Williams
pfn_to_online_page() is already too large to be a macro or an inline function. In anticipation of further logic changes / growth, move it out of line. No functional change, just code movement. Cc: David Hildenbrand Reported-by: Michal Hocko Signed-off-by: Dan Williams --- include/linux/memory

[PATCH v2 0/5] mm: Fix pfn_to_online_page() with respect to ZONE_DEVICE

2021-01-12 Thread Dan Williams
Changes since v1 [1]: - Clarify the failing condition in patch 3 (Michal) - Clarify how subsection collisions manifest in shipping systems (Michal) - Use zone_idx() (Michal) - Move section_taint_zone_device() conditions to move_pfn_range_to_zone() (Michal) - Fix pfn_to_online_page() to account

[PATCH v2 3/5] mm: Teach pfn_to_online_page() about ZONE_DEVICE section collisions

2021-01-12 Thread Dan Williams
While pfn_to_online_page() is able to determine pfn_valid() at subsection granularity it is not able to reliably determine if a given pfn is also online if the section is mixes ZONE_{NORMAL,MOVABLE} with ZONE_DEVICE. This means that pfn_to_online_page() may return invalid @page objects. For example

[PATCH v2 2/5] mm: Teach pfn_to_online_page() to consider subsection validity

2021-01-12 Thread Dan Williams
pfn_section_valid() determines pfn validity on subsection granularity. pfn_valid_within() internally uses pfn_section_valid(), but gates it with early_section() to preserve the traditional behavior of pfn_valid() before subsection support was added. pfn_to_online_page() wants the explicit precisi

[PATCH v2 1/3] scsi: add expecting_media_change flag to error path

2021-01-12 Thread Martin Kepplinger
SD Cardreaders (especially) sometimes lose the state during suspend and deliver a "media changed" unit attention when really only a (runtime) suspend/resume cycle has been done. For such devices, I/O fails when runtime PM is enabled, see below. Add a flag for drivers to use when this is expected.

[PATCH v2 4/5] mm: Fix page reference leak in soft_offline_page()

2021-01-12 Thread Dan Williams
The conversion to move pfn_to_online_page() internal to soft_offline_page() missed that the get_user_pages() reference needs to be dropped when pfn_to_online_page() fails. When soft_offline_page() is handed a pfn_valid() && !pfn_to_online_page() pfn the kernel hangs at dax-device shutdown due to a

[PATCH v2 5/5] libnvdimm/namespace: Fix visibility of namespace resource attribute

2021-01-12 Thread Dan Williams
Legacy pmem namespaces lost support for the "resource" attribute when the code was cleaned up to put the permission visibility in the declaration. Restore this by listing 'resource' in the default attributes. A new ndctl regression test for pfn_to_online_page() corner cases builds on this fix. Fi

Re: [RFC PATCH v2] selinux: security: Move selinux_state to a separate page

2021-01-12 Thread pnagar
On 2021-01-08 22:41, Casey Schaufler wrote: On 1/8/2021 1:49 AM, Preeti Nagar wrote: The changes introduce a new security feature, RunTime Integrity Check (RTIC), designed to protect Linux Kernel at runtime. The motivation behind these changes is: 1. The system protection offered by SE for Andro

Re: [PATCH 2/2] scsi: ufs: Protect PM ops and err_handler from user access through sysfs

2021-01-12 Thread Stanley Chu
On Sat, 2021-01-02 at 05:59 -0800, Can Guo wrote: > User layer may access sysfs nodes when system PM ops or error handling > is running, which can cause various problems. Rename eh_sem to host_sem > and use it to protect PM ops and error handling from user layer intervene. > > Signed-off-by: Can G

Re: [RFC 0/2] kbuild: Add support to build overlays (%.dtbo)

2021-01-12 Thread Viresh Kumar
On 12-01-21, 02:02, Masahiro Yamada wrote: > On Tue, Jan 12, 2021 at 1:13 AM Rob Herring wrote: > > On Mon, Jan 11, 2021 at 9:40 AM Masahiro Yamada > > wrote: > We do not need the dtbo-y syntax. +1 And we are left with much simpler diff with what we agreed on. Does this look okay now ? --- .

RE: [PATCH V5 7/8] remoteproc: imx_rproc: ignore mapping vdev regions

2021-01-12 Thread Peng Fan
> Subject: Re: [PATCH V5 7/8] remoteproc: imx_rproc: ignore mapping vdev > regions > > On Tue, Dec 29, 2020 at 11:30:18AM +0800, peng@nxp.com wrote: > > From: Peng Fan > > > > vdev regions are vdev0vring0, vdev0vring1, vdevbuffer and similar. > > They are handled by remoteproc common code, no

Re: [PATCH v3 1/6] mm: migrate: do not migrate HugeTLB page whose refcount is one

2021-01-12 Thread Michal Hocko
On Sun 10-01-21 20:40:12, Muchun Song wrote: > If the refcount is one when it is migrated, it means that the page > was freed from under us. So we are done and do not need to migrate. I would consider the following easier to understand. Feel free to reuse. " All pages isolated for the migration ha

Re: [PATCH v2 01/10] vfs: move cap_convert_nscap() call into vfs_setxattr()

2021-01-12 Thread Miklos Szeredi
On Tue, Jan 12, 2021 at 1:15 AM Eric W. Biederman wrote: > > Miklos Szeredi writes: > > > On Fri, Jan 01, 2021 at 11:35:16AM -0600, Eric W. Biederman wrote: > > For one: a v2 fscap is supposed to be equivalent to a v3 fscap with a > > rootid of > > zero, right? > > Yes. This assumes that every

Re: [External] Re: [PATCH v3 1/6] mm: migrate: do not migrate HugeTLB page whose refcount is one

2021-01-12 Thread Muchun Song
On Tue, Jan 12, 2021 at 5:42 PM Michal Hocko wrote: > > On Sun 10-01-21 20:40:12, Muchun Song wrote: > > If the refcount is one when it is migrated, it means that the page > > was freed from under us. So we are done and do not need to migrate. > > I would consider the following easier to understan

Re: [PATCH v4 2/2] venus: venc : Add support for priority ID control.

2021-01-12 Thread Stanimir Varbanov
On 1/4/21 7:41 AM, Dikshita Agarwal wrote: > Add support for base layer priority ID control in > encoder. > This is a preparation patch to support v6. > > Signed-off-by: Dikshita Agarwal > --- > drivers/media/platform/qcom/venus/core.h | 2 ++ > drivers/media/platform/qcom/venus/venc_ct

Re: [PATCH] mm: Teach pfn_to_online_page() about ZONE_DEVICE section collisions

2021-01-12 Thread David Hildenbrand
On 12.01.21 10:18, Dan Williams wrote: > On Thu, Jan 7, 2021 at 1:16 AM David Hildenbrand wrote: >> >> [...] >> > Well, I would love to have no surprises either. So far there was not > actual argument why the pmem reserved space cannot be fully initialized. Yes, I'm still hoping

Re: [PATCH v4 3/3] venus: venc: Add support for frame-specific min/max qp controls

2021-01-12 Thread Stanimir Varbanov
On 12/24/20 1:25 PM, Dikshita Agarwal wrote: > Add support for frame type specific min and max qp controls > for encoder. > This is a preparation patch to support v6. > > Signed-off-by: Dikshita Agarwal > --- > drivers/media/platform/qcom/venus/core.h | 18 > drivers/media/platfor

Re: [PATCH v3 2/6] mm: hugetlbfs: fix cannot migrate the fallocated HugeTLB page

2021-01-12 Thread Michal Hocko
On Sun 10-01-21 20:40:13, Muchun Song wrote: > If a new hugetlb page is allocated during fallocate it will not be > marked as active (set_page_huge_active) which will result in a later > isolate_huge_page failure when the page migration code would like to > move that page. Such a failure would be u

Re: [PATCH v2 1/5] mm: Move pfn_to_online_page() out of line

2021-01-12 Thread David Hildenbrand
On 12.01.21 10:34, Dan Williams wrote: > pfn_to_online_page() is already too large to be a macro or an inline > function. In anticipation of further logic changes / growth, move it out > of line. > > No functional change, just code movement. > > Cc: David Hildenbrand > Reported-by: Michal Hocko

[PATCH V6 00/10] remoteproc: imx_rproc: support iMX8MQ/M

2021-01-12 Thread peng . fan
From: Peng Fan V6: Add R-b tag from Mathieu Convert imx-rproc.txt to yaml and add dt-bindings support for i.MX8MQ/M, patch 1/10 2/10 No other changes. V5: Apply on Linux next Add V5 subject prefix Add R-b tag from Bjorn for 1/8, 2/8, 3/8 https://patchwork.kernel.org/project/linux-remote

[PATCH] mm, compaction: move high_pfn to the for loop scope.

2021-01-12 Thread Rokudo Yan
In fast_isolate_freepages, high_pfn will be used if a prefered one(PFN >= low_fn) not found. But the high_pfn is not reset before searching an free area, so when it was used as freepage, it may from another free area searched before. And move_freelist_head(freelist, freepage) will have unexpected

[PATCH V6 04/10] remoteproc: add is_iomem to da_to_va

2021-01-12 Thread peng . fan
From: Peng Fan Introduce an extra parameter is_iomem to da_to_va, then the caller could take the memory as normal memory or io mapped memory. Reviewed-by: Bjorn Andersson Signed-off-by: Peng Fan Reported-by: kernel test robot Reported-by: kernel test robot Reviewed-by: Mathieu Poirier ---

[PATCH V6 03/10] remoteproc: introduce is_iomem to rproc_mem_entry

2021-01-12 Thread peng . fan
From: Peng Fan Introduce is_iomem to indicate this piece memory is iomem or not. Reviewed-by: Bjorn Andersson Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- include/linux/remoteproc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/remoteproc.h b/include/linux/r

[PATCH V6 05/10] remoteproc: imx_rproc: correct err message

2021-01-12 Thread peng . fan
From: Peng Fan It is using devm_ioremap, so not devm_ioremap_resource. Correct the error message and print out sa/size. Reviewed-by: Bjorn Andersson Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 4 ++-- 1 file changed,

[PATCH V6 07/10] remoteproc: imx_rproc: add i.MX specific parse fw hook

2021-01-12 Thread peng . fan
From: Peng Fan The hook is used to parse memory-regions and load resource table from the address the remote processor published. Signed-off-by: Peng Fan Reviewed-by: Richard Zhu Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 93 ++ 1 file ch

[PATCH V6 01/10] dt-bindings: remoteproc: convert imx rproc bindings to json-schema

2021-01-12 Thread peng . fan
From: Peng Fan Convert the imx rproc binding to DT schema format using json-schema. Signed-off-by: Peng Fan --- .../bindings/remoteproc/fsl,imx-rproc.yaml| 59 +++ .../bindings/remoteproc/imx-rproc.txt | 33 --- 2 files changed, 59 insertions(+), 33 deletion

[PATCH V6 02/10] dt-bindings: remoteproc: imx_rproc: add i.MX8MQ/M support

2021-01-12 Thread peng . fan
From: Peng Fan Add i.MX8MQ/M support, also include mailbox for rpmsg/virtio usage. Signed-off-by: Peng Fan --- .../bindings/remoteproc/fsl,imx-rproc.yaml| 49 +++ 1 file changed, 49 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml

[PATCH V6 08/10] remoteproc: imx_rproc: support i.MX8MQ/M

2021-01-12 Thread peng . fan
From: Peng Fan Add i.MX8MQ dev/sys addr map and configuration data structure i.MX8MM share i.MX8MQ settings. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 39 ++ 1 file changed, 39 insertions

[PATCH V6 09/10] remoteproc: imx_rproc: ignore mapping vdev regions

2021-01-12 Thread peng . fan
From: Peng Fan vdev regions are vdev0vring0, vdev0vring1, vdevbuffer and similar. They are handled by remoteproc common code, no need to map in imx rproc driver. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/remoteproc

[PATCH V6 06/10] remoteproc: imx_rproc: use devm_ioremap

2021-01-12 Thread peng . fan
From: Peng Fan We might need to map an region multiple times, becaue the region might be shared between remote processors, such i.MX8QM with dual M4 cores. So use devm_ioremap, not devm_ioremap_resource. Reviewed-by: Oleksij Rempel Reviewed-by: Richard Zhu Signed-off-by: Peng Fan Reviewed-by:

[PATCH V6 10/10] remoteproc: imx_proc: enable virtio/mailbox

2021-01-12 Thread peng . fan
From: Peng Fan Use virtio/mailbox to build connection between Remote Proccessors and Linux. Add work queue to handle incoming messages. Reviewed-by: Richard Zhu Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 115 - 1 file changed, 112 insertions(+

[PATCH v2] rtw88: Simplify bool comparison

2021-01-12 Thread YANG LI
Fix the following coccicheck warning: ./drivers/net/wireless/realtek/rtw88/debug.c:800:17-23: WARNING: Comparison of 0/1 to bool variable Reported-by: Abaci Robot Signed-off-by: YANG LI --- Changes in v2: make "rtw88:" as subject prefix drivers/net/wireless/realtek/rtw88/debug.c | 2 +- 1 fi

Re: [External] Re: [PATCH v3 4/6] mm: hugetlb: add return -EAGAIN for dissolve_free_huge_page

2021-01-12 Thread Muchun Song
On Tue, Jan 12, 2021 at 4:33 PM Michal Hocko wrote: > > On Mon 11-01-21 17:20:51, Mike Kravetz wrote: > > On 1/10/21 4:40 AM, Muchun Song wrote: > > > There is a race between dissolve_free_huge_page() and put_page(), > > > and the race window is quite small. Theoretically, we should return > > > -

Re: [RFC PATCH v2 15/26] of/fdt: Introduce early_init_dt_add_memory_hyp()

2021-01-12 Thread Quentin Perret
On Monday 11 Jan 2021 at 08:45:10 (-0600), Rob Herring wrote: > On Fri, Jan 8, 2021 at 6:16 AM Quentin Perret wrote: > > > > Introduce early_init_dt_add_memory_hyp() to allow KVM to conserve a copy > > of the memory regions parsed from DT. This will be needed in the context > > of the protected nV

[PATCH 2/9] arm64: dts: imx8mq-librem5: Mark charger IRQ as High-Z

2021-01-12 Thread Martin Kepplinger
From: Guido Günther This is consistent with other IRQs and makes keeps currents low. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/free

[PATCH 3/9] arm64: dts: imx8mq-librem5: Don't mark buck3 as always on

2021-01-12 Thread Martin Kepplinger
From: Guido Günther With the pmic driver fixed we can now shut off the regulator in the gpc. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx

[PATCH 0/9] Config and devicetree updates for the Librem 5 phone

2021-01-12 Thread Martin Kepplinger
This is another set of updates in order to maintain support for the Librem 5 phone: Guido Günther (5): arm64: defconfig: Enable vibra-pwm arm64: dts: imx8mq-librem5: Mark charger IRQ as High-Z arm64: dts: imx8mq-librem5: Don't mark buck3 as always on arm64: dts: imx8mq-librem5: Add usb-c c

[PATCH 1/9] arm64: defconfig: Enable vibra-pwm

2021-01-12 Thread Martin Kepplinger
From: Guido Günther The haptic motor for the Librem 5 uses this. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 838301650a79..0

[PATCH 5/9] arm64: dts: imx8mq-librem5: Add LCD_1V8 regulator

2021-01-12 Thread Martin Kepplinger
From: Guido Günther It's a supply for to touch and LCD. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b

Re: [PATCH v2 4/5] mm: Fix page reference leak in soft_offline_page()

2021-01-12 Thread Oscar Salvador
On Tue, Jan 12, 2021 at 01:34:58AM -0800, Dan Williams wrote: > The conversion to move pfn_to_online_page() internal to > soft_offline_page() missed that the get_user_pages() reference needs to > be dropped when pfn_to_online_page() fails. I would be more specific here wrt. get_user_pages (madvise

Re: [PATCH net-next 0/5] skbuff: introduce skbuff_heads bulking and reusing

2021-01-12 Thread Edward Cree
Without wishing to weigh in on whether this caching is a good idea... Wouldn't it be simpler, rather than having two separate "alloc" and "flush" caches, to have a single larger cache, such that whenever it becomes full we bulk flush the top half, and when it's empty we bulk alloc the bottom hal

[PATCH 4/9] arm64: dts: imx8mq-librem5: Add usb-c chip as supplier for the charger

2021-01-12 Thread Martin Kepplinger
From: Guido Günther The tps65982 feeds the bq25895 charge controller on the Librem 5. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-li

[PATCH 7/9] arm64: dts: imx8mq-librem5: set regulators boot-on

2021-01-12 Thread Martin Kepplinger
Expect all those regulators to be turned on initially. Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8

[PATCH 8/9] arm64: dts: Add Librem5 Evergreen

2021-01-12 Thread Martin Kepplinger
Add librem5-r4 with specifics to that revision like the near-level, battery and charger properties. For schematics and more information, see https://developer.puri.sm/Librem5/Hardware_Reference/Evergreen.html Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/Makefile| 1

[PATCH 9/9] dt-bindings: arm: fsl: Add the librem 5 Evergreen revision

2021-01-12 Thread Martin Kepplinger
Add an entry for the Librem 5 phone, Evergreen revision which is supported by "r4". Schematics and more information can be found at https://developer.puri.sm/Librem5/Hardware_Reference/Evergreen.html Signed-off-by: Martin Kepplinger --- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 fil

Re: [PATCH v2 2/5] mm: Teach pfn_to_online_page() to consider subsection validity

2021-01-12 Thread David Hildenbrand
On 12.01.21 10:34, Dan Williams wrote: > pfn_section_valid() determines pfn validity on subsection granularity. > > pfn_valid_within() internally uses pfn_section_valid(), but gates it > with early_section() to preserve the traditional behavior of pfn_valid() > before subsection support was added.

[PATCH 6/9] arm64: dts: imx8mq-librem5: enable the LCD panel

2021-01-12 Thread Martin Kepplinger
This enables the Librem5's ft8006p based LCD panel driven by the imx8mq's Northwest Logic DSI IP core and mxsfb display controller. Signed-off-by: Martin Kepplinger --- .../boot/dts/freescale/imx8mq-librem5.dtsi| 51 ++- 1 file changed, 49 insertions(+), 2 deletions(-) diff

Re: [PATCH v2 1/3] regulator: mt6360: Add OF match table

2021-01-12 Thread Matthias Brugger
On Mon, Jan 11, 2021 at 04:41:18PM +, Mark Brown wrote: > On Sat, Jan 09, 2021 at 12:26:09PM +0100, matthias@kernel.org wrote: > > From: Matthias Brugger > > > > Binding documentation mentions that a compatible is required for the > > MT6360 device node, but the driver doesn't provide a O

Re: [PATCH] drivers: core: Detach device from power domain on shutdown

2021-01-12 Thread Dmitry Osipenko
02.12.2020 00:30, Furquan Shaikh пишет: > When the system is powered off or rebooted, devices are not detached > from their PM domain. This results in ACPI PM not being invoked and > hence PowerResouce _OFF method not being invoked for any of the > devices. Because the ACPI power resources are not

mmotm 2021-01-12-01-57 uploaded

2021-01-12 Thread akpm
The mm-of-the-moment snapshot 2021-01-12-01-57 has been uploaded to https://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: https://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

Re: [PATCH v3 1/1] can: dev: add software tx timestamps

2021-01-12 Thread Vincent MAILHOL
On Tue. 12 Jan 2021 at 16:58, Marc Kleine-Budde wrote: > > On 1/12/21 1:00 AM, Vincent MAILHOL wrote: > [...] > > > Mark: do you want me to send a v4 of that patch with above > > comment removed or can you directly do the change in your testing > > branch? > > Please send a patch on-top of linux-c

Re: [PATCH v6 5/5] media: i2c: max9286: Configure reverse channel amplitude

2021-01-12 Thread Jacopo Mondi
Hi Geert On Tue, Jan 12, 2021 at 10:10:39AM +0100, Geert Uytterhoeven wrote: > Hi Jacopo, > > On Tue, Jan 12, 2021 at 10:07 AM Jacopo Mondi wrote: > > On Tue, Jan 12, 2021 at 07:03:42AM +0200, Laurent Pinchart wrote: > > > On Mon, Jan 11, 2021 at 12:20:23PM +0100, Jacopo Mondi wrote: > > > > On M

Re: [PATCH v3 3/6] mm: hugetlb: fix a race between freeing and dissolving the page

2021-01-12 Thread Michal Hocko
On Sun 10-01-21 20:40:14, Muchun Song wrote: [...] > @@ -1770,6 +1788,14 @@ int dissolve_free_huge_page(struct page *page) > int nid = page_to_nid(head); > if (h->free_huge_pages - h->resv_huge_pages == 0) > goto out; > + > + /* > +

Re: [PATCH v2 3/5] mm: Teach pfn_to_online_page() about ZONE_DEVICE section collisions

2021-01-12 Thread David Hildenbrand
On 12.01.21 10:34, Dan Williams wrote: > While pfn_to_online_page() is able to determine pfn_valid() at > subsection granularity it is not able to reliably determine if a given > pfn is also online if the section is mixes ZONE_{NORMAL,MOVABLE} with > ZONE_DEVICE. This means that pfn_to_online_page(

Re: [PATCH v2 2/8] serial: stm32: fix code cleaning warnings and checks

2021-01-12 Thread Erwan LE RAY
Hello Greg, As the V2 is already in your tty-next branch, how do want me to proceed to deliver the fix for Jiri remark ? Do you expect a V3 or a new fix ? Best Regards, Erwan. On 1/11/21 10:58 AM, Jiri Slaby wrote: On 06. 01. 21, 17:21, Erwan Le Ray wrote: --- a/drivers/tty/serial/stm32-us

RE: [PATCH] char_dev: replace cdev_map with an xarray

2021-01-12 Thread David Laight
From: Greg KH > Sent: 12 January 2021 09:35 > > On Mon, Jan 11, 2021 at 08:58:18PM +, Matthew Wilcox wrote: > > On Mon, Jan 11, 2021 at 06:05:13PM +0100, Christoph Hellwig wrote: > > > @@ -486,14 +491,22 @@ int cdev_add(struct cdev *p, dev_t dev, unsigned > > > count) > > > if (WARN_ON(dev

Re: [PATCH] xen/privcmd: allow fetching resource sizes

2021-01-12 Thread Roger Pau Monné
On Tue, Jan 12, 2021 at 06:57:30AM +0100, Jürgen Groß wrote: > On 11.01.21 16:29, Roger Pau Monne wrote: > > Allow issuing an IOCTL_PRIVCMD_MMAP_RESOURCE ioctl with num = 0 and > > addr = 0 in order to fetch the size of a specific resource. > > > > Add a shortcut to the default map resource path,

Re: [PATCH v2 01/10] vfs: move cap_convert_nscap() call into vfs_setxattr()

2021-01-12 Thread Miklos Szeredi
On Tue, Jan 12, 2021 at 10:43 AM Miklos Szeredi wrote: > The following semantics would make a ton more sense, since getting a > v2 would indicate that rootid is unknown: > > - if cap is v2 convert to v3 with zero rootid > - after this, check if rootid needs to be translated, if not return v3 > -

Re: [PATCH v2 1/4] media: v4l2-ctrls: Add intra-refresh period control

2021-01-12 Thread Hans Verkuil
On 06/12/2020 11:27, Stanimir Varbanov wrote: > Add a control to set intra-refresh period. > > Signed-off-by: Stanimir Varbanov > --- > .../userspace-api/media/v4l/ext-ctrls-codec.rst | 11 +++ > drivers/media/v4l2-core/v4l2-ctrls.c | 2 ++ > include/uapi/linux/v4

Re: [PATCH v4] perf stat: Fix wrong skipping for per-die aggregation

2021-01-12 Thread Jiri Olsa
On Tue, Jan 05, 2021 at 10:36:15AM +0800, Jin Yao wrote: SNIP > diff --git a/tools/perf/util/stat.c b/tools/perf/util/stat.c > index 8ce1479c98f0..a658e0ffaf2a 100644 > --- a/tools/perf/util/stat.c > +++ b/tools/perf/util/stat.c > @@ -13,6 +13,7 @@ > #include "evlist.h" > #include "evsel.h" >

Re: [External] Re: [PATCH v3 4/6] mm: hugetlb: add return -EAGAIN for dissolve_free_huge_page

2021-01-12 Thread Michal Hocko
On Tue 12-01-21 17:51:05, Muchun Song wrote: > On Tue, Jan 12, 2021 at 4:33 PM Michal Hocko wrote: > > > > On Mon 11-01-21 17:20:51, Mike Kravetz wrote: > > > On 1/10/21 4:40 AM, Muchun Song wrote: > > > > There is a race between dissolve_free_huge_page() and put_page(), > > > > and the race windo

Re: [PATCH v2 3/4] media: v4l2-ctrls: Add control for AUD generation

2021-01-12 Thread Hans Verkuil
On 06/12/2020 11:27, Stanimir Varbanov wrote: > Add a control to enable inserting of AUD NALU into encoded > bitstream. > > Signed-off-by: Stanimir Varbanov Reviewed-by: Hans Verkuil Looks good! Hans > --- > Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst | 5 + > driv

[PATCH 1/1] spi: cadence-quadspi: Fix a compilation warning for 64-bit platform

2021-01-12 Thread Zhen Lei
The __typecheck() requires that the two arguments of max() must be of the same type. For the current max(), the type of the first parameter "len" is size_t. But the type of size_t is not fixed, it's "unsigned int" on 32-bit platforms and "unsigned long" on 64-bit platforms. So both the suffix "U" a

[PATCH 0/1] spi: cadence-quadspi: Fix a compilation warning for 64-bit platform

2021-01-12 Thread Zhen Lei
This patch is based on the latest linux-next. So the Fixes commit-id maybe changed when it merged int v5.12-rc1. For details about the problem analysis, see the patch description. The auxiliary information is listed here. 1) the type of size_t on 32-bit and 64-bit platforms include/uapi/asm-generi

[PATCH v3 1/2] regulator: mt6358: Add OF match table

2021-01-12 Thread matthias . bgg
From: Matthias Brugger The binding documentation mentions that a compatible is required for the MT6358 device node. But the driver does not provide a OF match table. This way auto-loading is broken as the MFD driver that registers the device has a .of_compatible set which makes the platform .ueve

[PATCH v3 2/2] regulator: mt6323: Add OF match table

2021-01-12 Thread matthias . bgg
From: Matthias Brugger The binding documentation mentions that a compatible is required for the MT6323 device node. But the driver does not provide a OF match table. This way auto-loading is broken as the MFD driver that registers the device has a .of_compatible set which makes the platform .ueve

Re: [PATCH][next] drm/amdgpu: Add missing BOOTUP_DEFAULT to profile_name[]

2021-01-12 Thread Dan Carpenter
On Mon, Jan 11, 2021 at 11:46:38AM +, Colin King wrote: > From: Colin Ian King > > A recent change added a new BOOTUP_DEFAULT power profile mode > to the PP_SMC_POWER_PROFILE enum but omitted updating the > corresponding profile_name array. Fix this by adding in the > missing BOOTUP_DEFAULT

Re: [PATCH V5 1/3] drm/vkms: Add vkms_config type

2021-01-12 Thread Melissa Wen
On 01/12, Sumera Priyadarsini wrote: > Currently, data for the device instance is held by vkms_device. > Add a separate type, vkms_config to contain configuration details > for the device and various modes to be later used by configfs. > This config data stays constant once the device is created. >

Re: [PATCH v2] perf stat: Append to default list if use -e +event

2021-01-12 Thread Jiri Olsa
On Mon, Jan 04, 2021 at 10:18:37AM +0800, Jin Yao wrote: > The default event list includes the most common events which are widely > used by users. But with -e option, the current perf only counts the events > assigned by -e option. Users may want to collect some extra events with > the default lis

Re: [PATCH] arm64: dts: qcom: sm8150: Add support for deep CPU cluster idle

2021-01-12 Thread Ulf Hansson
+ Lina On Wed, 6 Jan 2021 at 00:05, Bjorn Andersson wrote: > > On Tue 05 Jan 12:10 PST 2021, Danny Lin wrote: > > > This commit adds support for deep idling of the entire unified DynamIQ > > CPU cluster on sm8150. In this idle state, the LLCC (Last-Level Cache > > Controller) is powered off and t

Re: [PATCH V5 2/3] drm/vkms: Add support for writeback module

2021-01-12 Thread Melissa Wen
On 01/12, Sumera Priyadarsini wrote: > Add enable_writeback feature to vkms_config as a module. > > Signed-off-by: Sumera Priyadarsini > --- > drivers/gpu/drm/vkms/vkms_drv.c| 5 + > drivers/gpu/drm/vkms/vkms_drv.h| 1 + > drivers/gpu/drm/vkms/vkms_output.c | 9 ++--- > 3 files c

Re: [PATCH V2 1/3] mm/hotplug: Prevalidate the address range being added with platform

2021-01-12 Thread David Hildenbrand
On 12.01.21 04:51, Anshuman Khandual wrote: > > > On 1/11/21 7:13 PM, Oscar Salvador wrote: >> On Mon, Jan 11, 2021 at 11:51:47AM +0100, David Hildenbrand wrote: >>> AFAIKs, all memhp_get_pluggable_range() users pass "1". >>> >>> What about the "add_pages()-only" path? >> >> I guess you refer to

Re: [PATCH] dmaengine: qcom: bam_dma: Add LOCK and UNLOCK flag bit support

2021-01-12 Thread Vinod Koul
On 12-01-21, 15:01, mda...@codeaurora.org wrote: > On 2020-12-21 23:03, mda...@codeaurora.org wrote: > > On 2020-12-21 14:53, Vinod Koul wrote: > > > Hello, > > > > > > On 17-12-20, 20:07, Md Sadre Alam wrote: > > > > This change will add support for LOCK & UNLOCK flag bit support > > > > on CMD d

Re: [PATCH 1/5] mm: Introduce ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE

2021-01-12 Thread David Hildenbrand
On 12.01.21 08:26, Oscar Salvador wrote: > On Mon, Jan 11, 2021 at 05:52:19PM +0100, David Hildenbrand wrote: >> On 17.12.20 14:07, Oscar Salvador wrote: >>> In order to use self-hosted memmap array, the platform needs to have >>> support for CONFIG_SPARSEMEM_VMEMMAP and altmap. >>> Currently, only

Re: [External] Re: [PATCH v3 3/6] mm: hugetlb: fix a race between freeing and dissolving the page

2021-01-12 Thread Muchun Song
On Tue, Jan 12, 2021 at 6:02 PM Michal Hocko wrote: > > On Sun 10-01-21 20:40:14, Muchun Song wrote: > [...] > > @@ -1770,6 +1788,14 @@ int dissolve_free_huge_page(struct page *page) > > int nid = page_to_nid(head); > > if (h->free_huge_pages - h->resv_huge_pages == 0)

Re: [PATCH] arm64: rename S_FRAME_SIZE to PT_REGS_SIZE

2021-01-12 Thread Mark Rutland
On Tue, Jan 12, 2021 at 09:58:13AM +0800, Jianlin Lv wrote: > S_FRAME_SIZE is the size of the pt_regs structure, no longer the size of > the kernel stack frame, the name is misleading. In keeping with arm32, > rename S_FRAME_SIZE to PT_REGS_SIZE. > > Signed-off-by: Jianlin Lv I think PT_REGS_SIZ

Re: [PATCH V5 3/3] drm/vkms: Add information about module options

2021-01-12 Thread Melissa Wen
On 01/12, Sumera Priyadarsini wrote: > Update vkms documentation to contain usage of `modinfo` > command and steps to load vkms with module options enabled. > > Signed-off-by: Sumera Priyadarsini > --- > Documentation/gpu/vkms.rst | 12 > 1 file changed, 12 insertions(+) > > diff -

Re: [PATCH 2/2] dmaengine: ti: k3-udma: Add support for burst_size configuration for mem2mem

2021-01-12 Thread Vinod Koul
On 14-12-20, 10:13, Peter Ujfalusi wrote: > The UDMA and BCDMA can provide higher throughput if the burst_size of the > channel is changed from it's default (which is 64 bytes) for Ultra-high > and high capacity channels. > > This performance benefit is even more visible when the buffers are align

Re: [PATCH] of: unittest: Statically apply overlays using fdtoverlay

2021-01-12 Thread Bill Mills
On 1/12/21 3:37 AM, Viresh Kumar wrote: On 11-01-21, 20:22, Bill Mills wrote: On 1/11/21 5:06 PM, Frank Rowand wrote: NACK to this specific patch, in its current form. There are restrictions on applying an overlay at runtime that do not apply to applying an overlay to an FDT that will be lo

Re: [PATCH v3 1/3] v4l: Add HDR10 static metadata controls

2021-01-12 Thread Hans Verkuil
On 08/12/2020 15:59, Stanimir Varbanov wrote: > Here we introduce a new Colorimetry control class and add > Content light level and Mastering display colour volume v4l2 > compound controls, relevant payload structures and validation. > > Signed-off-by: Stanimir Varbanov > --- > .../media/videode

<    1   2   3   4   5   6   7   8   9   10   >