Re: [PATCH] mm/vmscan: drop unneeded assignment in kswapd()

2020-10-04 Thread Lukas Bulwahn
On Sun, 4 Oct 2020, Mel Gorman wrote: > On Sun, Oct 04, 2020 at 02:58:27PM +0200, Lukas Bulwahn wrote: > > The refactoring to kswapd() in commit e716f2eb24de ("mm, vmscan: prevent > > kswapd sleeping prematurely due to mismatched classzone_idx") turned an > > assignment to reclaim_order into a

Re: [PATCH] crypto: jitterentropy - bind statically into kernel

2020-10-04 Thread Christoph Hellwig
On Mon, Oct 05, 2020 at 08:44:39AM +0200, Ard Biesheuvel wrote: > On Mon, 5 Oct 2020 at 08:40, Stephan Mueller wrote: > > > > Am Montag, 5. Oktober 2020, 08:24:46 CEST schrieb Ard Biesheuvel: > > > > Hi Ard, > > > > > If jitterentropy is a special case, we could put a alternate > > > non-'static i

Re: [PATCH v1 3/5] mm/page_alloc: always move pages to the tail of the freelist in unset_migratetype_isolate()

2020-10-04 Thread Michal Hocko
On Fri 02-10-20 17:20:09, David Hildenbrand wrote: > On 02.10.20 15:24, Michal Hocko wrote: > > On Mon 28-09-20 20:21:08, David Hildenbrand wrote: > >> Page isolation doesn't actually touch the pages, it simply isolates > >> pageblocks and moves all free pages to the MIGRATE_ISOLATE freelist. > >>

Re: [sched/fair] fcf0553db6: netperf.Throughput_Mbps -30.8% regression

2020-10-04 Thread Peter Zijlstra
On Sun, Oct 04, 2020 at 05:21:08PM +0100, Mel Gorman wrote: > On Sun, Oct 04, 2020 at 09:27:16PM +0800, kernel test robot wrote: > > Greeting, > > > > FYI, we noticed a -30.8% regression of netperf.Throughput_Mbps due to > > commit: > > > > > > commit: fcf0553db6f4c79387864f6e4ab4a891601f395e (

Re: [sched/fair] fcf0553db6: netperf.Throughput_Mbps -30.8% regression

2020-10-04 Thread Peter Zijlstra
On Sun, Oct 04, 2020 at 09:27:16PM +0800, kernel test robot wrote: > Greeting, > > FYI, we noticed a -30.8% regression of netperf.Throughput_Mbps due to commit: > > > commit: fcf0553db6f4c79387864f6e4ab4a891601f395e ("sched/fair: Remove > meaningless imbalance calculation") This is the middle

[PATCH RFC] checkpatch: add new warnings to author signoff checks.

2020-10-04 Thread Dwaipayan Ray
The author signed-off-by checks are currently very vague. Cases like same name or same address are not handled separately. For example, running checkpatch on commit be6577af0cef ("parisc: Add atomic64_set_release() define to avoid CPU soft lockups"), gives: WARNING: Missing Signed-off-by: line by

Re: [PATCH] crypto: jitterentropy - bind statically into kernel

2020-10-04 Thread Ard Biesheuvel
On Mon, 5 Oct 2020 at 08:40, Stephan Mueller wrote: > > Am Montag, 5. Oktober 2020, 08:24:46 CEST schrieb Ard Biesheuvel: > > Hi Ard, > > > If jitterentropy is a special case, we could put a alternate > > non-'static inline' version of random_get_entropy() in the core > > kernel, and only export i

Re: [PATCH 2/2] panfrost: Add compatible string for bifrost

2020-10-04 Thread Tomeu Vizoso
On Fri, 19 Jun 2020 at 11:00, Steven Price wrote: > > On 11/06/2020 09:58, Tomeu Vizoso wrote: > > Mesa now supports some Bifrost devices, so enable it. > > > > Signed-off-by: Tomeu Vizoso > > Reviewed-by: Steven Price > > I've also dug out my Hikey960 (from the box it's been in since lock down

Re: [PATCH] crypto: jitterentropy - bind statically into kernel

2020-10-04 Thread Christoph Hellwig
[adding Thomas] On Mon, Oct 05, 2020 at 08:40:25AM +0200, Stephan Mueller wrote: > > If jitterentropy is a special case, we could put a alternate > > non-'static inline' version of random_get_entropy() in the core > > kernel, and only export it if JITTER_ENTROPY is built as a module in > > the fir

Re: [PATCH] crypto: jitterentropy - bind statically into kernel

2020-10-04 Thread Stephan Mueller
Am Montag, 5. Oktober 2020, 08:24:46 CEST schrieb Ard Biesheuvel: Hi Ard, > If jitterentropy is a special case, we could put a alternate > non-'static inline' version of random_get_entropy() in the core > kernel, and only export it if JITTER_ENTROPY is built as a module in > the first place. But

Re: [PATCH V2 3/8] drm/msm: Unconditionally call dev_pm_opp_of_remove_table()

2020-10-04 Thread Viresh Kumar
On 28-08-20, 11:37, Viresh Kumar wrote: > dev_pm_opp_of_remove_table() doesn't report any errors when it fails to > find the OPP table with error -ENODEV (i.e. OPP table not present for > the device). And we can call dev_pm_opp_of_remove_table() > unconditionally here. > > While at it, also create

Re: [PATCH] crypto: jitterentropy - bind statically into kernel

2020-10-04 Thread Ard Biesheuvel
On Mon, 5 Oct 2020 at 08:19, Christoph Hellwig wrote: > > On Sun, Oct 04, 2020 at 11:16:10PM +0200, Ard Biesheuvel wrote: > > On Sun, 4 Oct 2020 at 20:48, Stephan M??ller wrote: > > > > > > The RISC-V architecture is about to implement the callback > > > random_get_entropy with a function that is

Re: [Intel-wired-lan] [PATCH v4] e1000e: Increase polling timeout on MDIC ready bit

2020-10-04 Thread Kai-Heng Feng
Hi Vitaly, > On Sep 30, 2020, at 14:54, Vitaly Lifshits wrote: > > On 9/29/2020 18:08, Kai-Heng Feng wrote: > > Hello Kai-Heng, >>> On Sep 29, 2020, at 21:46, Neftin, Sasha wrote: >>> >>> Hello Kai-Heng, >>> On 9/29/2020 16:31, Kai-Heng Feng wrote: Hi Sasha, > On Sep 29, 2020, at 21:

Re: [PATCH] crypto: jitterentropy - bind statically into kernel

2020-10-04 Thread Christoph Hellwig
On Sun, Oct 04, 2020 at 11:16:10PM +0200, Ard Biesheuvel wrote: > On Sun, 4 Oct 2020 at 20:48, Stephan M??ller wrote: > > > > The RISC-V architecture is about to implement the callback > > random_get_entropy with a function that is not exported to modules. > > Why is that? Wouldn't it be better t

RE: [PATCH 5/8] usb: cdns3: Changed type of gadget_dev in cdns structure

2020-10-04 Thread Pawel Laszczak
>> >>On 20-09-28 14:27:38, Pawel Laszczak wrote: >>> Patch changes the type for gadget_dev pointer in cdns structure from >>> pointer to cdns3_device structure to void pointer. >>> This filed is in reusable code and after this change it will be used to >>> point to both cdns3_device or cdnsp_device

Re: [PATCH] mm: optionally disable brk()

2020-10-04 Thread Michal Hocko
On Sat 03-10-20 00:44:09, Topi Miettinen wrote: > On 2.10.2020 20.52, David Hildenbrand wrote: > > On 02.10.20 19:19, Topi Miettinen wrote: > > > The brk() system call allows to change data segment size (heap). This > > > is mainly used by glibc for memory allocation, but it can use mmap() > > > an

Re: [Bug 209317] ftrace kernel self test failure on RISC-V on 5.8, regression from 5.4.0

2020-10-04 Thread Zong Li
Hi Atish, I can take out some time to take a look at it together, if anyone here fixes it or has ideas, please share the information, thanks. On Sun, Oct 4, 2020 at 1:33 AM Atish Patra wrote: > > Hi Alan and Zong, > I initially suspected ftrace is broken between v5.6 & v5.7 as Kolin pointed > o

Re: [RFC V2] mm/vmstat: Add events for HugeTLB migration

2020-10-04 Thread Michal Hocko
On Mon 05-10-20 07:59:12, Anshuman Khandual wrote: > > > On 10/02/2020 05:34 PM, Michal Hocko wrote: > > On Wed 30-09-20 11:30:49, Anshuman Khandual wrote: > >> Add following new vmstat events which will track HugeTLB page migration. > >> > >> 1. HUGETLB_MIGRATION_SUCCESS > >> 2. HUGETLB_MIGRATIO

[RESEND v2 1/2] Revert "drivers: qcom: rpmh-rsc: Use rcuidle tracepoints for rpmh"

2020-10-04 Thread Maulik Shah
Commit efde2659b0fe ("drivers: qcom: rpmh-rsc: Use rcuidle tracepoints for rpmh") was written to fix a bug seen in an unmerged series that implemented a struct generic_pm_domain::power_off() callback calling rpmh_flush(). See stack trace below. Call trace: dump_backtrace+0x0/0x174

[RESEND v2 0/2] Modularize RPMH driver

2020-10-04 Thread Maulik Shah
Resending the patches rebasing on top of latest linux-next (next-20201002) Changes in v2: - Update commit message in patch 1 - send [4] again instead of revert's revert in patch 2. This series is to modularize RPMH driver The tracepoint in RPMH driver was changed to _rcuidle variant based on the

[RESEND v2 2/2] soc: qcom: rpmh: Allow RPMH driver to be loaded as a module

2020-10-04 Thread Maulik Shah
From: John Stultz This patch allow the rpmh driver to be loaded as a permenent module. Meaning it can be loaded from a module, but then cannot be unloaded. Ideally, it would include a remove hook and related logic, but the rpmh driver is fairly core to the system, so once its loaded with almost

Re: [PATCH v7 00/18] Implement NTB Controller using multiple PCI EP

2020-10-04 Thread Kishon Vijay Abraham I
Hi Jon Mason, Allen Hubbe, Dave Jiang, On 30/09/20 9:05 pm, Kishon Vijay Abraham I wrote: > This series is about implementing SW defined Non-Transparent Bridge (NTB) > using multiple endpoint (EP) instances. This series has been tested using > 2 endpoint instances in J7 connected to J7 board on on

RE: [PATCH] usb: cdns3: platform_get_irq_byname_optional instead platform_get_irq_byname

2020-10-04 Thread Pawel Laszczak
Roger, > >Pawel, > >On 02/10/2020 12:08, Pawel Laszczak wrote: >> Roger, >> >>> >>> On 30/09/2020 09:57, Pawel Laszczak wrote: To avoid duplicate error information patch replaces platform_get_irq_byname into platform_get_irq_byname_optional. >>> >>> What is duplicate error information? >>

Re: [PATCH v6 4/5] dmaengine: idxd: Clean up descriptors with fault error

2020-10-04 Thread Vinod Koul
On 04-10-20, 21:55, Dave Jiang wrote: > > > +static bool process_fault(struct idxd_desc *desc, u64 fault_addr) > > > +{ > > > + if ((u64)desc->hw == fault_addr || > > > + (u64)desc->completion == fault_addr) { > > > > you are casting descriptor address and completion, I can understand > > form

Re: [PATCH 0/2] phy: phy-brcm-sata: Allow configuration SATA AFE TX amplitude

2020-10-04 Thread Vinod Koul
Hi Florian, On 04-10-20, 19:56, Florian Fainelli wrote: > > > On 9/30/2020 8:19 PM, Florian Fainelli wrote: > > Hi Kishon, > > > > This patch series allows the configuration of the Broadcom SATA PHY TX > > amplitude which may be required in order to meet specific tests. > > Hi Vinod, > > Woul

[PATCH] iio: adc: exynos: do not rely on 'users' counter in ISR

2020-10-04 Thread dmitry . torokhov
The order in which 'users' counter is decremented vs calling drivers' close() method is implementation specific, and we should not rely on it. Let's introduce driver private flag and use it to signal ISR to exit when device is being closed. This has a side-effect of fixing issue of accessing inut-

Re: [PATCH v4 2/2] hwmon: pmbus: max20730: adjust the vout reading given voltage divider

2020-10-04 Thread Guenter Roeck
On 10/4/20 8:07 PM, Chu Lin wrote: > On Sun, Oct 4, 2020 at 8:43 AM Guenter Roeck wrote: >> >> On Sun, Oct 04, 2020 at 03:14:45AM +, Chu Lin wrote: >>> Problem: >>> We use voltage dividers so that the voltage presented at the voltage >>> sense pins is confusing. We might need to convert these

RE: [PATCH 01/10] fpga: fpga-mgr: Add devm_fpga_mgr_register() API

2020-10-04 Thread Wu, Hao
> Subject: [PATCH 01/10] fpga: fpga-mgr: Add devm_fpga_mgr_register() API > > Add a devm_fpga_mgr_register() API that can be used to register a FPGA > Manager that was created using devm_fpga_mgr_create(). > > Introduce a struct fpga_mgr_devres that makes the devres > allocation a little bit more

[PATCH] ACPI / button: fix handling lid state changes when input device closed

2020-10-04 Thread dmitry . torokhov
The original intent of 84d3f6b76447 was to delay evaluating lid state until all drivers have been loaded, with input device being opened from userspace serving as a signal for this condition. Let's ensure that state updates happen even if userspace closed (or in the future inhibited) input device.

Re: [PATCH v4 3/7] ACPI: button: Access input device's users under appropriate mutex

2020-10-04 Thread Dmitry Torokhov
On Thu, Jun 25, 2020 at 12:55:29PM +0200, Rafael J. Wysocki wrote: > On Thu, Jun 25, 2020 at 7:23 AM Dmitry Torokhov > wrote: > > > > On Wed, Jun 24, 2020 at 05:00:09PM +0200, Rafael J. Wysocki wrote: > > > On Mon, Jun 8, 2020 at 1:22 PM Andrzej Pietrasiewicz > > > wrote: > > > > > > > > Inspecti

[GIT] Networking

2020-10-04 Thread David Miller
1) Make sure SKB control block is in the proper state during IPSEC ESP-in-TCP encapsulation. From Sabrina Dubroca. 2) Various kinds of attributes were not being cloned properly when we build new xfrm_state objects from existing ones. Fix from Antony Antony. 3) Make sure to keep BTF s

Re: [PATCH v4 4/7] ACPI: button: Use input_device_enabled() helper

2020-10-04 Thread Dmitry Torokhov
On Wed, Jun 24, 2020 at 10:24:46PM -0700, Dmitry Torokhov wrote: > On Mon, Jun 08, 2020 at 01:22:08PM +0200, Andrzej Pietrasiewicz wrote: > > A new helper is available, so use it. > > > > Signed-off-by: Andrzej Pietrasiewicz > > --- > > drivers/acpi/button.c | 4 ++-- > > 1 file changed, 2 inser

ld.lld: warning: drivers/built-in.a(hwmon/drivetemp.o):(.data..compoundliteral) is being placed in '.data..compoundliteral'

2020-10-04 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 549738f15da0e5a00275977623be199fbbf7df50 commit: 1e1b6d63d6340764e00356873e5794225a2a03ea lib/string.c: implement stpcpy date: 9 days ago config: powerpc-randconfig-r002-20201005 (attached as .config) compi

Re: [PATCH] dt-bindings: Fix 'reg' size issues in zynqmp examples

2020-10-04 Thread Vinod Koul
On 28-09-20, 10:59, Rob Herring wrote: > The default sizes in examples for 'reg' are 1 cell each. Fix the > incorrect sizes in zynqmp examples: > > Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.example.dt.yaml: > example-0: dma-controller@fd4c:reg:0: [0, 4249616384, 0, 4096]

Re: [PATCH v6 4/5] dmaengine: idxd: Clean up descriptors with fault error

2020-10-04 Thread Dave Jiang
On 10/4/2020 9:42 PM, Vinod Koul wrote: On 24-09-20, 11:00, Dave Jiang wrote: Add code to "complete" a descriptor when the descriptor or its completion address hit a fault error when SVA mode is being used. This error can be triggered due to bad programming by the user. A lock is introduced i

Re: [Patch 2/2] cpufreq: tegra194: Fix unlisted boot freq warning

2020-10-04 Thread Viresh Kumar
On 16-09-20, 22:41, Sumit Gupta wrote: > Warning coming during boot because the boot freq set by bootloader > gets filtered out due to big freq steps while creating freq_table. > Fixing this by setting closest ndiv value from freq_table. > Warning: > cpufreq: cpufreq_online: CPU0: Running at unli

[PATCH v10 6/7] Asoc: qcom: lpass-platform : Increase buffer size

2020-10-04 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Increase buffer size to support audio over DP. Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao Mandadapu --- sound/soc/qcom/lpass-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/qcom/lpass-platform.c b/sound/

[PATCH v10 7/7] ASoC: qcom: sc7180: Add support for audio over DP

2020-10-04 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Add support for audio playback over DP in lpass sc7180 platform driver. Update lpass_variant structure for hdmi data configuaration. Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao --- sound/soc/qcom/lpass-sc7180.c | 116

[PATCH v10 5/7] ASoC: qcom: Add support for lpass hdmi driver

2020-10-04 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Upadate lpass cpu and platform driver to support audio over dp. Also add lpass-hdmi.c and lpass-hdmi.h. Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao --- sound/soc/qcom/Kconfig | 5 + sound/soc/qcom/Makefile | 2 + sound/soc

Re: [PATCH 09/14] dmaengine: rcar-dmac: drop double zeroing

2020-10-04 Thread Vinod Koul
On 20-09-20, 13:26, Julia Lawall wrote: > sg_init_table zeroes its first argument, so the allocation of that argument > doesn't have to. > > the semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) Applied, thanks -- ~Vinod

Re: [PATCH 04/14] dmaengine: sh: drop double zeroing

2020-10-04 Thread Vinod Koul
On 20-09-20, 13:26, Julia Lawall wrote: > sg_init_table zeroes its first argument, so the allocation of that argument > doesn't have to. > > the semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) Applied, thanks -- ~Vinod

[PATCH v10 3/7] Asoc:qcom:lpass-cpu:Update dts property read API

2020-10-04 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Update dts property read API call with platform get property by name, as it make code more readable and avoid conflicts when array of properties to be used. Signed-off-by: V Sujith Kumar Reddy Reviewed-by: Srinivas Kandagatla Signed-off-by: Srinivasa Rao --- sound/

[PATCH v10 4/7] Asoc: qcom: lpass:Update lpaif_dmactl members order

2020-10-04 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Update the lpaif_dmactl struct members order to match HDMI reg map members sequence. Separate Interface reg map as it is used for I2S control but not for HDMI control, to make use of bulk API, which makes code more readable. Signed-off-by: V Sujith Kumar Reddy Reviewe

[PATCH v10 0/7] Qualcomm's lpass-hdmi ASoC driver to support audio over dp port

2020-10-04 Thread Srinivasa Rao Mandadapu
These patches are to support audio over DP port on Qualcomm's SC7180 LPASS Asoc. It includes machine driver, cpu driver, platform driver updates for HDMI path support, device tree documention, lpass variant structure optimization and configuration changes. These patches depends on the DP patch se

[PATCH v10 2/7] ASoC: dt-bindings: Add dt binding for lpass hdmi

2020-10-04 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Adds bindings for lpass hdmi interface which can support audio path over dp. Signed-off-by: V Sujith Kumar Reddy Reviewed-by: Rob Herring Signed-off-by: Srinivasa Rao --- .../devicetree/bindings/sound/qcom,lpass-cpu.yaml | 74 +++--- 1 file changed

[PATCH v10 1/7] ASoC: Add sc7180-lpass binding header hdmi define

2020-10-04 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Add header defining hdmi dai-id for SC7180 lpass soc in dt bindings. Signed-off-by: V Sujith Kumar Reddy Acked-by: Rob Herring Signed-off-by: Srinivasa Rao --- include/dt-bindings/sound/sc7180-lpass.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-b

Re: [PATCH] dmaengine: ioat: Allocate correct size for descriptor chunk

2020-10-04 Thread Vinod Koul
On 22-09-20, 14:08, Logan Gunthorpe wrote: > dma_alloc_coherent() is called with a fixed SZ_2M size, but frees happen > with IOAT_CHUNK_SIZE. Recently, IOAT_CHUNK_SIZE was reduced to 512M but > the allocation did not change. To fix, change to using the > IOAT_CHUNK_SIZE define. > > This was caught

Re: [Patch 1/2] cpufreq: tegra194: get consistent cpuinfo_cur_freq

2020-10-04 Thread Viresh Kumar
On 16-09-20, 22:41, Sumit Gupta wrote: > Frequency returned by 'cpuinfo_cur_freq' using counters is not fixed > and keeps changing slightly. This change returns a consistent value > from freq_table. If the reconstructed frequency has acceptable delta > from the last written value, then return the f

Re: [PATCH] test_power: add missing newlines when printing parameters by sysfs

2020-10-04 Thread Harley A.W. Lorenzo
On Monday, October 5, 2020 12:19 AM, Joe Perches wrote: > I did not suggest this. My apologies. Revised patch (still diffing from Xiongfeng Wang) here. [PATCH v2] test_power: revise parameter printing to use sprintf Signed-off-by: Harley A.W. Lorenzo Suggested-by: Joe Perches --- drivers/pow

Re: [PATCH v6 5/5] dmaengine: idxd: Add ABI documentation for shared wq

2020-10-04 Thread Vinod Koul
On 24-09-20, 11:00, Dave Jiang wrote: > Add the sysfs attribute bits in ABI/stable for shared wq support. OK I take back the documentation comment now > > Signed-off-by: Jing Lin > Signed-off-by: Dave Jiang > Reviewed-by: Tony Luck > Reviewed-by: Dan Williams > --- > Documentation/ABI/s

Re: [PATCH v6 4/5] dmaengine: idxd: Clean up descriptors with fault error

2020-10-04 Thread Vinod Koul
On 24-09-20, 11:00, Dave Jiang wrote: > Add code to "complete" a descriptor when the descriptor or its completion > address hit a fault error when SVA mode is being used. This error can be > triggered due to bad programming by the user. A lock is introduced in order > to protect the descriptor comp

Re: [PATCH v1] trace: Fix race in trace_open and buffer resize call

2020-10-04 Thread Gaurav Kohli
Hi Steven, please let us know, if below looks good to you or need modifications. Thanks Gaurav On 9/24/2020 7:25 PM, Gaurav Kohli wrote: Below race can come, if trace_open and resize of cpu buffer is running parallely on different cpus CPUXCPUY

Re: [PATCH v6 3/5] dmaengine: idxd: Add shared workqueue support

2020-10-04 Thread Vinod Koul
On 24-09-20, 11:00, Dave Jiang wrote: > @@ -1154,6 +1268,8 @@ static struct attribute *idxd_wq_attributes[] = { > &dev_attr_wq_mode.attr, > &dev_attr_wq_size.attr, > &dev_attr_wq_priority.attr, > + &dev_attr_wq_block_on_fault.attr, > + &dev_attr_wq_threshold.attr, >

Re: [Patch 1/2] cpufreq: tegra194: get consistent cpuinfo_cur_freq

2020-10-04 Thread Viresh Kumar
On 17-09-20, 09:36, Jon Hunter wrote: > Viresh, ideally we need to include this fix for v5.9. Do you need Sumit > to resend with the Fixes tag or are you happy to add? I understand that this fixes a patch which got merged recently, but I am not sure if anything is broken badly right now, i.e. will

Re: [PATCH] dma: dma-jz4780: Fix race in jz4780_dma_tx_status

2020-10-04 Thread Vinod Koul
On 04-10-20, 16:03, Paul Cercueil wrote: > The jz4780_dma_tx_status() function would check if a channel's cookie > state was set to 'completed', and if not, it would enter the critical > section. However, in that time frame, the jz4780_dma_chan_irq() function > was able to set the cookie to 'comple

Re: [PATCH] test_power: add missing newlines when printing parameters by sysfs

2020-10-04 Thread Joe Perches
On Mon, 2020-10-05 at 01:30 +, Harley A.W. Lorenzo wrote: > Here is the updated patch using sprintf, diffing from the original patch by > Xiongfeng Wang. > > [PATCH] test_power: revise parameter printing to use sprintf > > Signed-off-by: Harley A.W. Lorenzo > Suggested-by: Joe Perches I d

Re: [PATCH net-next v2 0/2] net: Constify struct genl_small_ops

2020-10-04 Thread David Miller
From: Rikard Falkeborn Date: Mon, 5 Oct 2020 01:44:15 +0200 > Make a couple of static struct genl_small_ops const to allow the compiler > to put them in read-only memory. Patches are independent. > > v2: Rebase on net-next, genl_ops -> genl_small_ops Applied, thank you.

[PATCH v9 0/7] Qualcomm's lpass-hdmi ASoC driver to support audio over dp port

2020-10-04 Thread Srinivasa Rao Mandadapu
These patches are to support audio over DP port on Qualcomm's SC7180 LPASS Asoc. It includes machine driver, cpu driver, platform driver updates for HDMI path support, device tree documention, lpass variant structure optimization and configuration changes. These patches depends on the DP patch se

[PATCH v9 7/7] ASoC: qcom: sc7180: Add support for audio over DP

2020-10-04 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Add support for audio playback over DP in lpass sc7180 platform driver. Update lpass_variant structure for hdmi data configuaration. Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao --- sound/soc/qcom/lpass-sc7180.c | 116

[PATCH v9 2/7] ASoC: dt-bindings: Add dt binding for lpass hdmi

2020-10-04 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Adds bindings for lpass hdmi interface which can support audio path over dp. Signed-off-by: V Sujith Kumar Reddy Reviewed-by: Rob Herring Signed-off-by: Srinivasa Rao --- .../devicetree/bindings/sound/qcom,lpass-cpu.yaml | 74 +++--- 1 file changed

[PATCH v9 5/7] ASoC: qcom: Add support for lpass hdmi driver

2020-10-04 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Upadate lpass cpu and platform driver to support audio over dp. Also add lpass-hdmi.c and lpass-hdmi.h. Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao --- sound/soc/qcom/Kconfig | 5 + sound/soc/qcom/Makefile | 2 + sound/soc

[PATCH v9 6/7] Asoc: qcom: lpass-platform : Increase buffer size

2020-10-04 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Increase buffer size to support audio over DP. Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao Mandadapu --- sound/soc/qcom/lpass-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/qcom/lpass-platform.c b/sound/

[PATCH v9 4/7] Asoc: qcom: lpass:Update lpaif_dmactl members order

2020-10-04 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Update the lpaif_dmactl struct members order to match HDMI reg map members sequence. Separate Interface reg map as it is used for I2S control but not for HDMI control, to make use of bulk API, which makes code more readable. Signed-off-by: V Sujith Kumar Reddy Reviewe

[PATCH v9 1/7] ASoC: Add sc7180-lpass binding header hdmi define

2020-10-04 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Add header defining hdmi dai-id for SC7180 lpass soc in dt bindings. Signed-off-by: V Sujith Kumar Reddy Acked-by: Rob Herring Signed-off-by: Srinivasa Rao --- include/dt-bindings/sound/sc7180-lpass.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-b

[PATCH v9 3/7] Asoc:qcom:lpass-cpu:Update dts property read API

2020-10-04 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Update dts property read API call with platform get property by name, as it make code more readable and avoid conflicts when array of properties to be used. Signed-off-by: V Sujith Kumar Reddy Reviewed-by: Srinivas Kandagatla Signed-off-by: Srinivasa Rao --- sound/

Re: [PATCH] Input: stmpe: Add axis inversion and swapping capability

2020-10-04 Thread Dmitry Torokhov
On Tue, Sep 22, 2020 at 11:39:03AM +0200, Stefan Riedmueller wrote: > Make use of generic touchscreen_properties structure to add axis > inversion and swapping capabilities. It's configurable via devicetree > properties: > touchscreen-inverted-x > touchscreen-inverted-y > touchscreen-swapped-

Re: INFO: task can't die in request_wait_answer

2020-10-04 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:2172e358 Add linux-next specific files for 20201002 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1596c7a390 kernel config: https://syzkaller.appspot.com/x/.config?x=70698f530a7e85

Re: [PATCH v3] Bluetooth: Check for encryption key size on connect

2020-10-04 Thread Archie Pusaka
[Re-sending in plain text] Hi Marcel, I tried Alex's patch and it works for me as well. Thanks, Archie On Thu, 1 Oct 2020 at 15:14, Marcel Holtmann wrote: > > Hi Archie, > > > When receiving connection, we only check whether the link has been > > encrypted, but not the encrypti

[PATCH v2 2/3] KEYS: trusted: Reserve TPM for seal and unseal operations

2020-10-04 Thread Jarkko Sakkinen
When TPM 2.0 trusted keys code was moved to the trusted keys subsystem, the operations were unwrapped from tpm_try_get_ops() and tpm_put_ops(), which are used to take temporarily the ownership of the TPM chip. The ownership is only taken inside tpm_send(), but this is not sufficient, as in the key

[PATCH v2 3/3] KEYS: trusted: Fix migratable=1 failing

2020-10-04 Thread Jarkko Sakkinen
Consider the following transcript: $ keyctl add trusted kmk "new 32 blobauth=helloworld keyhandle=8000 migratable=1" @u add_key: Invalid argument The documentation has the following description: migratable= 0|1 indicating permission to reseal to new PCR values, default 1

[PATCH v2 1/3] KEYS: trusted: Fix incorrect handling of tpm_get_random()

2020-10-04 Thread Jarkko Sakkinen
When tpm_get_random() was introduced, it defined the following API for the return value: 1. A positive value tells how many bytes of random data was generated. 2. A negative value on error. However, in the call sites the API was used incorrectly, i.e. as it would only return negative values and o

Re: [RFC PATCH v3 2/4] objtool: x86 instruction decoder and big endian cross compiles

2020-10-04 Thread Masami Hiramatsu
On Fri, 2 Oct 2020 10:18:41 -0500 Josh Poimboeuf wrote: > On Thu, Oct 01, 2020 at 12:17:25AM +0200, Vasily Gorbik wrote: > > From: Martin Schwidefsky > > > > Currently objtool seems to be the only tool from build tools needed > > which breaks x86 cross compilation on big endian systems. Make th

Re: [PATCH v2] media: mtk-vcodec: fix builds when remoteproc is disabled

2020-10-04 Thread Alexandre Courbot
On Sun, Oct 4, 2020 at 9:22 PM Alexandre Courbot wrote: > > The addition of MT8183 support added a dependency on the SCP remoteproc > module. However the initial patch used the "select" Kconfig directive, > which may result in the SCP module to not be compiled if remoteproc was > disabled. In such

[GIT PULL v2] extcon next for v5.10

2020-10-04 Thread Chanwoo Choi
Dear Greg, This is extcon-next pull request for v5.10. I add detailed description of this pull request on below. Please pull extcon with following updates. Changes from v1: - Fix the wrong commit id of patch. Best Regards, Chanwoo Choi The following changes since commit 856deb866d16e29bd65952e

Re: [PATCH v4 2/2] hwmon: pmbus: max20730: adjust the vout reading given voltage divider

2020-10-04 Thread Chu Lin
On Sun, Oct 4, 2020 at 8:43 AM Guenter Roeck wrote: > > On Sun, Oct 04, 2020 at 03:14:45AM +, Chu Lin wrote: > > Problem: > > We use voltage dividers so that the voltage presented at the voltage > > sense pins is confusing. We might need to convert these readings to more > > meaningful reading

Re: [PATCH v39 11/24] x86/sgx: Add SGX enclave driver

2020-10-04 Thread Jarkko Sakkinen
On Mon, Oct 05, 2020 at 02:30:53AM +0100, Matthew Wilcox wrote: > > In my Geminilake NUC the maximum size of the address space is 64GB for > > an enclave, and it is not fixed but can grow in microarchitectures > > beyond that. > > > > That means that in (*artificial*) worst case the locks would be

[PATCH v2] vmlinux.lds.h: Keep .ctors.* with .ctors

2020-10-04 Thread Kees Cook
Under some circumstances, the compiler generates .ctors.* sections. This is seen doing a cross compile of x86_64 from a powerpc64el host: x86_64-linux-gnu-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_clock.o' being placed in section `.ctors.65435' x86_64-linux-gnu-ld: warni

Re: [PATCH 0/2] phy: phy-brcm-sata: Allow configuration SATA AFE TX amplitude

2020-10-04 Thread Florian Fainelli
On 9/30/2020 8:19 PM, Florian Fainelli wrote: Hi Kishon, This patch series allows the configuration of the Broadcom SATA PHY TX amplitude which may be required in order to meet specific tests. Hi Vinod, Would you need me to resend these two patches? For some reason get_maintainers.pl did

[PATCH] vmlinux.lds.h: Keep .ctors.* with .ctors

2020-10-04 Thread Kees Cook
Under some circumstances, the compiler generates .ctors.* sections. This is seen doing a cross compile of x86_64 from a powerpc64el host: x86_64-linux-gnu-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_clock.o' being placed in section `.ctors.65435' x86_64-linux-gnu-ld: warni

Re: [PATCH v3 1/2] Input: synaptics-rmi4 - rename f30_data to gpio_data

2020-10-04 Thread Dmitry Torokhov
On Wed, Sep 30, 2020 at 05:41:46PM +0800, Vincent Huang wrote: > f30_data in rmi_device_platform_data could be also referenced by RMI > function 3A, so rename it and the structure name to avoid confusion. > > Signed-off-by: Vincent Huang > Reviewed-by: Hans de Goede > Tested-by: Hans de Goede

Re: [PATCH v3 2/2] Input: synaptics-rmi4 - add support for F3A

2020-10-04 Thread Dmitry Torokhov
On Wed, Sep 30, 2020 at 05:41:47PM +0800, Vincent Huang wrote: > RMI4 F3A supports the touchpad GPIO function, it's designed to > support more GPIOs and used on newer touchpads. This patch adds > support of the touchpad buttons. > > Signed-off-by: Vincent Huang > Reviewed-by: Hans de Goede > Tes

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

2020-10-04 Thread Kees Cook
On Sun, Oct 04, 2020 at 09:00:18PM +1100, Stephen Rothwell wrote: > Hi Kees, > > On Sun, 4 Oct 2020 01:27:01 -0700 Kees Cook wrote: > > > > I assume CONFIG_CONSTRUCTORS is enabled for your build (it should be for > > yes, indeed. > > > allmodconfig). Does this patch fix it? (I'm kind of blindly

[RESEND,PATCH v4 0/3] Try to release mmap_lock temporarily in smaps_rollup

2020-10-04 Thread Chinwen Chang
Recently, we have observed some janky issues caused by unpleasantly long contention on mmap_lock which is held by smaps_rollup when probing large processes. To address the problem, we let smaps_rollup detect if anyone wants to acquire mmap_lock for write attempts. If yes, just release the lock temp

[RESEND, PATCH v4 2/3] mm: smaps*: extend smap_gather_stats to support specified beginning

2020-10-04 Thread Chinwen Chang
Extend smap_gather_stats to support indicated beginning address at which it should start gathering. To achieve the goal, we add a new parameter @start assigned by the caller and try to refactor it for simplicity. If @start is 0, it will use the range of @vma for gathering. Change since v2: - This

[RESEND, PATCH v4 1/3] mmap locking API: add mmap_lock_is_contended()

2020-10-04 Thread Chinwen Chang
Add new API to query if someone wants to acquire mmap_lock for write attempts. Using this instead of rwsem_is_contended makes it more tolerant of future changes to the lock type. Change-Id: Idb21478bb0580ba72b9926aba3bbc4b1f75deec2 Signed-off-by: Chinwen Chang Reviewed-by: Steven Price Acked-by

[RESEND, PATCH v4 3/3] mm: proc: smaps_rollup: do not stall write attempts on mmap_lock

2020-10-04 Thread Chinwen Chang
smaps_rollup will try to grab mmap_lock and go through the whole vma list until it finishes the iterating. When encountering large processes, the mmap_lock will be held for a longer time, which may block other write requests like mmap and munmap from progressing smoothly. There are upcoming mmap_l

Re: Litmus test for question from Al Viro

2020-10-04 Thread Alan Stern
On Sun, Oct 04, 2020 at 04:31:46PM -0700, Paul E. McKenney wrote: > Nice simple example! How about like this? > > Thanx, Paul > > > > commit c964f404eabe4d8ce294e59dda7

Re: [RFC 1/3] Initialize devlink health dump framework for the dlge driver

2020-10-04 Thread Coiby Xu
On Fri, Aug 21, 2020 at 11:08:22AM +0800, Coiby Xu wrote: On Sun, Aug 16, 2020 at 11:56:40AM +0900, Benjamin Poirier wrote: On 2020-08-15 00:05 +0800, Coiby Xu wrote: Initialize devlink health dump framework for the dlge driver so the coredump could be done via devlink. Signed-off-by: Coiby Xu

Re: [RFC V2] mm/vmstat: Add events for HugeTLB migration

2020-10-04 Thread Anshuman Khandual
On 10/02/2020 05:34 PM, Michal Hocko wrote: > On Wed 30-09-20 11:30:49, Anshuman Khandual wrote: >> Add following new vmstat events which will track HugeTLB page migration. >> >> 1. HUGETLB_MIGRATION_SUCCESS >> 2. HUGETLB_MIGRATION_FAILURE >> >> It follows the existing semantics to accommodate H

Re: [PATCH v7 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-10-04 Thread Hector Yuan
On Fri, 2020-09-25 at 15:25 +0800, Hector Yuan wrote: > Hi, Rob sir: > > Yes, my patch follows > Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.txt way to > define frequency domain. > Is it OK to you if I use the same way to do? > And if there exist any schema problem, please kindly let

Re: [PATCH 1/6] efistub: pass uefi secureboot flag via fdt params

2020-10-04 Thread Chester Lin
On Mon, Sep 14, 2020 at 04:05:22PM +0800, Chester Lin wrote: > Hi Ard, > > On Fri, Sep 11, 2020 at 06:01:09PM +0300, Ard Biesheuvel wrote: > > On Fri, 4 Sep 2020 at 10:29, Chester Lin wrote: > > > > > > Add a new UEFI parameter: "linux,uefi-secure-boot" in fdt boot params > > > as other architect

[PATCH v2] rcu/tree: nocb: Avoid raising softirq when there are ready to execute CBs

2020-10-04 Thread Joel Fernandes (Google)
During testing, I see it is possible that rcu_pending() returns 1 when offloaded callbacks are ready to execute thus raising the RCU softirq. However, softirq does not execute offloaded callbacks. They are executed in a kthread which is awakened independent of the softirq. This commit therefore a

Re: [PATCH] USB: serial: option: Add Telit FT980-KS composition

2020-10-04 Thread Lars Melin
On 10/4/2020 23:03, Leonid Bloch wrote: Lars, Thank you for your review! The changes which you have suggested also made ModemManager to recognize the device (which it didn't do before). Please check out the v2. Cheers, Leonid. The v2 looks good to me br Lars

Re: [PATCH] ARM: dts: aspeed-g6: Add sgpiom/sgpios node

2020-10-04 Thread Billy Tsai
Hi Andrew, On 2020/10/1, 8:36 AM, Andrew Jeffery wrote: Hi Billy, On Wed, 30 Sep 2020, at 14:41, Billy Tsai wrote: > This commit add two sgpiom and two sgpios node into aspeed-g6.dtsi > and change the register range of gpio0 to fix the hardware design. > > Signed-of

Re: [PATCH v2 06/12] soc: mediatek: pm-domains: Add SMI block as bus protection block

2020-10-04 Thread Nicolas Boichat
On Fri, Oct 2, 2020 at 4:56 PM Matthias Brugger wrote: > > > > On 01/10/2020 18:01, Enric Balletbo i Serra wrote: > > From: Matthias Brugger > > > > Apart from the infracfg block, the SMI block is used to enable the bus > > protection for some power domains. Add support for this block. > > > > Si

[PATCH resend] seccomp: Make duplicate listener detection non-racy

2020-10-04 Thread Jann Horn
Currently, init_listener() tries to prevent adding a filter with SECCOMP_FILTER_FLAG_NEW_LISTENER if one of the existing filters already has a listener. However, this check happens without holding any lock that would prevent another thread from concurrently installing a new filter (potentially with

Re: [PATCH v2 02/12] soc: mediatek: Add MediaTek SCPSYS power domains

2020-10-04 Thread Nicolas Boichat
On Fri, Oct 2, 2020 at 12:02 AM Enric Balletbo i Serra wrote: > > The System Control Processor System (SCPSYS) has several power management > related tasks in the system. This driver implements support to handle > the different power domains supported in order to meet high performance > and low po

Re: [PATCH 1/2] mmap locking API: Order lock of nascent mm outside lock of live mm

2020-10-04 Thread Jann Horn
On Sat, Oct 3, 2020 at 11:30 PM Michel Lespinasse wrote: > Unrelated to the above: copy_from_user and copy_to_user should not be > called with mmap_lock held; it may be worth adding these assertions > too (probably in separate patches) ? We already have that: All (hopefully?) the userspace access

Re: [PATCH v39 11/24] x86/sgx: Add SGX enclave driver

2020-10-04 Thread Matthew Wilcox
On Mon, Oct 05, 2020 at 02:41:53AM +0300, Jarkko Sakkinen wrote: > On Sun, Oct 04, 2020 at 11:27:50PM +0100, Matthew Wilcox wrote: > > int ret = 0; > > > > mutex_lock(&encl->lock); > > rcu_read_lock(); > > Right, so xa_*() take RCU lock implicitly and xas_* do not. Not necessarily th

Re: [PATCH] test_power: add missing newlines when printing parameters by sysfs

2020-10-04 Thread Harley A.W. Lorenzo
Here is the updated patch using sprintf, diffing from the original patch by Xiongfeng Wang. [PATCH] test_power: revise parameter printing to use sprintf Signed-off-by: Harley A.W. Lorenzo Suggested-by: Joe Perches --- drivers/power/supply/test_power.c | 27 ++- 1 file

  1   2   3   4   >