[PATCH] ARM: dts: nuvoton: Fix flash layout

2021-02-18 Thread gmouse
From: "Anton D. Kachalov" This change satisfy OpenBMC requirements for flash layout. Signed-off-by: Anton D. Kachalov --- arch/arm/boot/dts/nuvoton-npcm750-evb.dts | 28 +++ 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/arch/arm/boot/dts/nuvoton-npcm750-evb

Re: [PATCH ghak124 v3] audit: log nftables configuration change events

2021-02-18 Thread Florian Westphal
Richard Guy Briggs wrote: > On 2021-02-18 09:22, Florian Westphal wrote: > > No. There is a hierarchy, e.g. you can't add a chain without first > > adding a table, BUT in case the table was already created by an earlier > > transaction it can also be stand-alone. > > Ok, so there could be a stan

Re: possible deadlock in mptcp_push_pending

2021-02-18 Thread Paolo Abeni
On Wed, 2021-02-17 at 09:31 -0800, syzbot wrote: > syzbot found the following issue on: > > HEAD commit:c48f8607 Merge branch 'PTP-for-DSA-tag_ocelot_8021q' > git tree: net-next > console output: https://syzkaller.appspot.com/x/log.txt?x=16525cb0d0 > kernel config: https://syzkaller

Re: [PATCH] lib: vsprintf: check for NULL device_node name in device_node_string()

2021-02-18 Thread Petr Mladek
On Wed 2021-02-17 15:50:00, Andy Shevchenko wrote: > On Wed, Feb 17, 2021 at 01:15:43PM +0100, Enrico Weigelt, metux IT consult > wrote: > > Under rare circumstances it may happen that a device node's name is NULL > > (most likely kernel bug in some other place). > > What circumstances? How can I

[PATCH v3 2/2] hwmon: (pmbus/stpddc60) Add ST STPDDC60 pmbus driver

2021-02-18 Thread Erik Rosen
Add hardware monitoring support for ST STPDDC60 Unversal Digital Multicell Controller. Signed-off-by: Erik Rosen --- Documentation/hwmon/index.rst| 1 + Documentation/hwmon/stpddc60.rst | 90 +++ MAINTAINERS | 7 + drivers/hwmon/pmbus/Kconfig | 10 ++

Re: [PATCH 1/2] mm: Make alloc_contig_range handle free hugetlb pages

2021-02-18 Thread Michal Hocko
On Thu 18-02-21 11:09:17, Oscar Salvador wrote: > On Wed, Feb 17, 2021 at 04:00:11PM +0100, Michal Hocko wrote: > > Is this really necessary? dissolve_free_huge_page will take care of this > > and the race windown you are covering is really tiny. > > Probably not, I was trying to shrink to race wi

Re: [PATCH v2 08/25] arm64: Always keep DAIF.[IF] in sync

2021-02-18 Thread Hector Martin
On 17/02/2021 21.22, Mark Rutland wrote: Root irqchip drivers can discriminate between IRQs and FIQs by checking the ISR_EL1 system register. I think we can remove this note for now. If we go with seperate handlers this won't be necessary, and if not this would be better placed on a commit addi

Re: [PATCH v2 1/2] staging: comedi: cast function output to assigned variable type

2021-02-18 Thread Atul Gopinathan
On Thu, Feb 18, 2021 at 01:21:05PM +0100, Greg KH wrote: > On Thu, Feb 18, 2021 at 04:17:55PM +0530, Atul Gopinathan wrote: > > On Thu, Feb 18, 2021 at 10:31:15AM +, Ian Abbott wrote: > > > On 18/02/2021 08:44, Atul Gopinathan wrote: > > > > Fix the following warning generated by sparse: > > >

Re: [PATCH] dt-bindings: cpufreq: cpufreq-qcom-hw: Document SM8350 CPUfreq compatible

2021-02-18 Thread Vinod Koul
On 17-02-21, 10:19, Viresh Kumar wrote: > On 16-02-21, 16:42, Vinod Koul wrote: > > Add the CPUfreq compatible for SM8350 SoC along with note for using the > > specific compatible for SoCs > > > > Signed-off-by: Vinod Koul > > --- > > Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.txt

Re: [PATCH 05/14] KVM: x86/mmu: Consult max mapping level when zapping collapsible SPTEs

2021-02-18 Thread Paolo Bonzini
On 13/02/21 01:50, Sean Christopherson wrote: pfn = spte_to_pfn(iter.old_spte); if (kvm_is_reserved_pfn(pfn) || - (!PageTransCompoundMap(pfn_to_page(pfn)) && -!kvm_is_zone_device_pfn(pfn))) + iter.level >= kv

Re: [PATCH] staging: comedi: cast to (unsigned int *)

2021-02-18 Thread Ian Abbott
On 17/02/2021 18:26, Greg KH wrote: On Wed, Feb 17, 2021 at 11:40:00PM +0530, Atul Gopinathan wrote: On Wed, Feb 17, 2021 at 06:35:15PM +0100, Greg KH wrote: On Wed, Feb 17, 2021 at 10:29:08PM +0530, Atul Gopinathan wrote: Resolve the following warning generated by sparse: drivers/staging//co

Re: [PATCH v5 1/8] smp: Run functions concurrently in smp_call_function_many_cond()

2021-02-18 Thread Peter Zijlstra
On Wed, Feb 17, 2021 at 01:02:41AM +, Nadav Amit wrote: > > On Feb 16, 2021, at 10:59 AM, Peter Zijlstra wrote: > > > > On Tue, Feb 16, 2021 at 06:53:09PM +, Nadav Amit wrote: > >>> On Feb 16, 2021, at 8:32 AM, Peter Zijlstra wrote: > > > >>> I'm not sure I can explain it yet. It did ge

Re: [PATCH] KVM: x86: dump_vmcs should not assume GUEST_IA32_EFER is valid

2021-02-18 Thread David Edmondson
On Thursday, 2021-02-18 at 12:54:52 +01, Paolo Bonzini wrote: > On 18/02/21 11:04, David Edmondson wrote: >> When dumping the VMCS, retrieve the current guest value of EFER from >> the kvm_vcpu structure if neither VM_EXIT_SAVE_IA32_EFER or >> VM_ENTRY_LOAD_IA32_EFER is set, which can occur if the

[PATCH v6 1/2] nbd: Fix NULL pointer in flush_workqueue

2021-02-18 Thread Sun Ke
Open /dev/nbdX first, the config_refs will be 1 and the pointers in nbd_device are still null. Disconnect /dev/nbdX, then reference a null recv_workq. The protection by config_refs in nbd_genl_disconnect is useless. [ 656.366194] BUG: kernel NULL pointer dereference, address: 0020 [

[PATCH v6 0/2] fix a NULL pointer bug and simplify the code

2021-02-18 Thread Sun Ke
fix a NULL pointer bug and simplify the code v6: Just add if (nbd->recv_workq) to nbd_disconnect_and_put(). v5: Adjust the title and add “Suggested-by”. v4: Share exception handling code for if branches and move put_nbd adjustment to a separate patch. v3: Do not use unlock and add put_nbd

[PATCH v6 2/2] nbd: share nbd_put and return by goto put_nbd

2021-02-18 Thread Sun Ke
Replace the following two statements by the statement “goto put_nbd;” nbd_put(nbd); return 0; Suggested-by: Markus Elfring Signed-off-by: Sun Ke --- drivers/block/nbd.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/block/nbd.c b/drivers/bloc

Re: [PATCH v4] printk: Userspace format enumeration support

2021-02-18 Thread Chris Down
Thanks for all your feedback, Petr and Steven. :-) Petr, I believe this is a comprehensive checklist of everything we discussed for v5 -- any chance you could double check I'm not missing anything you folks wanted? Thanks! - Use seq_file iterator again instead of simple_open + size - Remove d

Re: [PATCH v2 1/5] iio: Documentation: update definitions for bufferY and scan_elements

2021-02-18 Thread Jonathan Cameron
On Wed, 17 Feb 2021 10:34:34 +0200 Alexandru Ardelean wrote: > Since the new change to the IIO buffer infrastructure, the buffer/ and > scan_elements/ directories have been merged into bufferY/ to have some > attributes available per-buffer. > > This change updates the ABI docs to reflect this c

Re: [PATCH v7 1/3] scmi-cpufreq: Remove deferred probe

2021-02-18 Thread Nicola Mazzucato
Hi Viresh, On 2/18/21 10:35 AM, Viresh Kumar wrote: > On 15-02-21, 07:51, Nicola Mazzucato wrote: >> The current implementation of the scmi_cpufreq_init() function returns >> -EPROBE_DEFER when the OPP table is not populated. In practice the >> cpufreq core cannot handle this error code. >> There

Re: [PATCH 00/14] KVM: x86/mmu: Dirty logging fixes and improvements

2021-02-18 Thread Paolo Bonzini
On 13/02/21 01:50, Sean Christopherson wrote: Paolo, this is more or less ready, but on final read-through before sending I realized it would be a good idea to WARN during VM destruction if cpu_dirty_logging_count is non-zero. I wanted to get you this before the 5.12 window opens in case you wan

Re: [PATCH] sched/fair: Use true and false for bool variable

2021-02-18 Thread Peter Zijlstra
On Thu, Feb 18, 2021 at 06:10:11PM +0800, Jiapeng Chong wrote: > Fix the following coccicheck warnings: > > ./kernel/sched/fair.c:9504:9-10: WARNING: return of 0/1 in function > 'voluntary_active_balance' with return type bool. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong You an

[PATCH] arm64: kexec_file: fix memory leakage in create_dtb() when fdt_open_into() fails

2021-02-18 Thread qiuguorui1
in function create_dtb(), if fdt_open_into() fails, we need to vfree buf before return. Fixes: 52b2a8af74360 ("arm64: kexec_file: load initrd and device-tree") Cc: sta...@vger.kernel.org # v5.0 Signed-off-by: qiuguorui1 --- arch/arm64/kernel/machine_kexec_file.c | 4 +++- 1 file changed, 3 inser

Re: [PATCH v7 2/3] scmi-cpufreq: Get opp_shared_cpus from opp-v2 for EM

2021-02-18 Thread Nicola Mazzucato
Hi Viresh, On 2/18/21 11:00 AM, Viresh Kumar wrote: > On 15-02-21, 07:51, Nicola Mazzucato wrote: >> +/* >> + * Add OPPs only on those CPUs for which we haven't already done so. >> + */ >> nr_opp = dev_pm_opp_get_opp_count(cpu_dev); > > Please add a more detailed comment here ex

[PATCH] Marvell Sky2 Ethernet adapter: fix warning messages.

2021-02-18 Thread Krzysztof Halasa
sky2.c driver uses netdev_warn() before the net device is initialized. Fix it by using dev_warn() instead. Signed-off-by: Krzysztof Halasa --- a/drivers/net/ethernet/marvell/sky2.c +++ b/drivers/net/ethernet/marvell/sky2.c @@ -4806,12 +4806,11 @@ static struct net_device *sky2_init_netdev(struct

[net-next] net: mvpp2: skip RSS configurations on loopback port

2021-02-18 Thread stefanc
From: Stefan Chulski PPv2 loopback port doesn't support RSS, so we should skip RSS configurations for this port. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 25 +++- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/drivers/

Re: [PATCH] KVM: x86: dump_vmcs should not assume GUEST_IA32_EFER is valid

2021-02-18 Thread Paolo Bonzini
On 18/02/21 13:56, David Edmondson wrote: On Thursday, 2021-02-18 at 12:54:52 +01, Paolo Bonzini wrote: On 18/02/21 11:04, David Edmondson wrote: When dumping the VMCS, retrieve the current guest value of EFER from the kvm_vcpu structure if neither VM_EXIT_SAVE_IA32_EFER or VM_ENTRY_LOAD_IA32_

[PATCH] spi: spi-ti-qspi: Free DMA resources

2021-02-18 Thread Tudor Ambarus
Release the RX channel and free the dma coherent memory when devm_spi_register_master() fails Signed-off-by: Tudor Ambarus --- drivers/spi/spi-ti-qspi.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c

Re: [PATCH v2 10/25] asm-generic/io.h: Add a non-posted variant of ioremap()

2021-02-18 Thread Hector Martin
On 16/02/2021 19.53, Christoph Hellwig wrote: Your new iomremap variant needs proper documentation explaining the semantics in detail. What's the right place for this? I haven't found any generic ioremap documentation page in the tree yet. I suppose I could write an ARM64-specific blurb on IO

Re: [PATCH] perf tools: Simplify the calculation of variables

2021-02-18 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 05, 2021 at 10:49:15AM +0100, Jiri Olsa escreveu: > On Fri, Feb 05, 2021 at 11:54:15AM +0800, Jiapeng Chong wrote: > > Fix the following coccicheck warnings: > > > > ./tools/perf/util/header.c:3809:18-20: WARNING !A || A && B is > > equivalent to !A || B. > > > > Reported-by: Abaci Ro

Re: [PATCH v2 0/2] resolve read hystersis return invalid argument issue for hid sensors

2021-02-18 Thread Jonathan Cameron
On Mon, 1 Feb 2021 13:49:19 +0800 Ye Xiang wrote: > This patch series move get sensitivity attribute to common layer and > resolve read hystersis return invalid argument issue for hid sensors als, > incli-3d, rotation, and press on intel ISH Platform. Given Jiri was fine with the follow up seri

Re: [PATCH] KVM: x86: dump_vmcs should not assume GUEST_IA32_EFER is valid

2021-02-18 Thread David Edmondson
On Thursday, 2021-02-18 at 14:01:40 +01, Paolo Bonzini wrote: > On 18/02/21 13:56, David Edmondson wrote: >> On Thursday, 2021-02-18 at 12:54:52 +01, Paolo Bonzini wrote: >> >>> On 18/02/21 11:04, David Edmondson wrote: When dumping the VMCS, retrieve the current guest value of EFER from >>>

Re: [PATCH net-next] net: mscc: Fix MRP switchdev driver

2021-02-18 Thread Vladimir Oltean
Hi Horatiu, On Thu, Feb 18, 2021 at 12:47:26PM +0100, Horatiu Vultur wrote: > This patch fixes the ocelot MRP switchdev driver such that also DSA > driver can use these functions. Before the driver presumed that the > net_device uses a 'struct ocelot_port_private' as priv which was wrong. > > The

Re: [PATCH V3 0/4] tools: perf: Add JSON metrics for i.MX8M platforms

2021-02-18 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 18, 2021 at 10:14:29AM +, Joakim Zhang escreveu: > > Gentle pinging... Thanks, applied. - Arnaldo > Best Regards, > Joakim Zhang > > > -Original Message- > > From: John Garry > > Sent: 2021年1月27日 22:14 > > To: Joakim Zhang ; w...@kernel.org; > > mathieu.poir...@linar

Re: [PATCH v4 0/6] iio: core: Add mmap interface infrastructure

2021-02-18 Thread Jonathan Cameron
On Wed, 17 Feb 2021 09:36:32 +0200 Alexandru Ardelean wrote: Dropped v3 and applied v4 to the togreg branch of iio.git and pushed it out as testing for the autobuilders to poke at it and see what else they can find :) Jonathan > Changelog v3 -> v4: > * > https://lore.kernel.org/linux-iio/2021

Re: [PATCH v2 1/3] iio: Add relative sensitivity support

2021-02-18 Thread Jonathan Cameron
On Wed, 17 Feb 2021 12:55:41 +0100 (CET) Jiri Kosina wrote: > On Fri, 12 Feb 2021, Jonathan Cameron wrote: > > > > Some hid sensors may use relative sensitivity such as als sensor. > > > This patch adds relative sensitivity checking for all hid sensors. > > > > > > Signed-off-by: Ye Xiang >

[PATCH v3 5/9] scsi: ufshpb: Region inactivation in host mode

2021-02-18 Thread Avri Altman
I host mode, the host is expected to send HPB-WRITE-BUFFER with buffer-id = 0x1 when it inactivates a region. Use the map-requests pool as there is no point in assigning a designated cache for umap-requests. Signed-off-by: Avri Altman --- drivers/scsi/ufs/ufshpb.c | 120

[PATCH v3 3/9] scsi: ufshpb: Add region's reads counter

2021-02-18 Thread Avri Altman
In host control mode, reads are the major source of activation trials. Keep track of those reads counters, for both active as well inactive regions. We reset the read counter upon write - we are only interested in "clean" reads. less intuitive however, is that we also reset it upon region's deact

[PATCH v3 4/9] scsi: ufshpb: Make eviction depends on region's reads

2021-02-18 Thread Avri Altman
In host mode, eviction is considered an extreme measure. verify that the entering region has enough reads, and the exiting region has much less reads. Signed-off-by: Avri Altman --- drivers/scsi/ufs/ufshpb.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a

[PATCH v3 7/9] scsi: ufshpb: Add "Cold" regions timer

2021-02-18 Thread Avri Altman
In order not to hang on to “cold” regions, we shall inactivate a region that has no READ access for a predefined amount of time - READ_TO_MS. For that purpose we shall monitor the active regions list, polling it on every POLLING_INTERVAL_MS. On timeout expiry we shall add the region to the "to-be-i

[PATCH v3 9/9] scsi: ufshpb: Make host mode parameters configurable

2021-02-18 Thread Avri Altman
We can make use of this commit, to elaborate some more of the host control mode logic, explaining what role play each and every variable. While at it, allow those parameters to be configurable. Signed-off-by: Avri Altman --- Documentation/ABI/testing/sysfs-driver-ufs | 68 ++ drivers/scsi/

[PATCH v3 8/9] scsi: ufshpb: Add support for host control mode

2021-02-18 Thread Avri Altman
Support devices that report they are using host control mode. Signed-off-by: Avri Altman --- drivers/scsi/ufs/ufshpb.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/scsi/ufs/ufshpb.c b/drivers/scsi/ufs/ufshpb.c index 9a1c525204f7..2c0f63a828ca 100644 --- a/drivers/scsi/ufs/ufs

[PATCH v3 6/9] scsi: ufshpb: Add hpb dev reset response

2021-02-18 Thread Avri Altman
The spec does not define what is the host's recommended response when the device send hpb dev reset response (oper 0x2). We will update all active hpb regions: mark them and do that on the next read. Signed-off-by: Avri Altman --- drivers/scsi/ufs/ufshpb.c | 40 +

Re: [PATCH v3] leds: gpio: Set max brightness to 1

2021-02-18 Thread Pavel Machek
On Mon 2021-01-25 21:08:57, Dylan Van Assche wrote: > GPIO LEDs only know 2 states: ON or OFF and do not have PWM capabilities. > However, the max brightness is reported as 255. > > This patch sets the max brightness value of a GPIO controlled LED to 1. > > Tested on my PinePhone 1.2. > > Signed

[PATCH] bus: ti-sysc: Fix warning on unbind if reset is not deasserted

2021-02-18 Thread Tony Lindgren
We currently get thefollowing on driver unbind if a reset is configured and asserted: WARNING: CPU: 0 PID: 993 at drivers/reset/core.c:432 reset_control_assert ... (reset_control_assert) from [] (sysc_remove+0x190/0x1e4) (sysc_remove) from [] (platform_remove+0x24/0x3c) (platform_remove) from [] (

[PATCH v2] spi: spi-ti-qspi: Free DMA resources

2021-02-18 Thread Tudor Ambarus
Release the RX channel and free the dma coherent memory when devm_spi_register_master() fails. Fixes: 5720ec0a6d26 ("spi: spi-ti-qspi: Add DMA support for QSPI mmap read") Cc: sta...@vger.kernel.org Signed-off-by: Tudor Ambarus --- v2: Add Fixes tag and Cc stable. drivers/spi/spi-ti-qspi.c | 20

[PATCH v3 1/9] scsi: ufshpb: Cache HPB Control mode on init

2021-02-18 Thread Avri Altman
We will use it later, when we'll need to differentiate between device and host control modes. Signed-off-by: Avri Altman --- drivers/scsi/ufs/ufshcd.h | 2 ++ drivers/scsi/ufs/ufshpb.c | 8 +--- drivers/scsi/ufs/ufshpb.h | 2 ++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/

[PATCH] soc: ti: omap-prm: Fix occasional abort on reset deassert for dra7 iva

2021-02-18 Thread Tony Lindgren
On reset deassert, we must wait a bit after the rstst bit change before we allow clockdomain autoidle again. Otherwise we get the following oops sometimes on dra7 with iva: Unhandled fault: imprecise external abort (0x1406) at 0x 4400.ocp:L3 Standard Error: MASTER MPU TARGET IVA_CONFIG

[PATCH v3 0/9] Add Host control mode to HPB

2021-02-18 Thread Avri Altman
v2 -> v3: - Attend Greg's and Can's comments - rebase on Daejun's v21 v1 -> v2: - attend Greg's and Daejun's comments - add patch 9 making host mode parameters configurable - rebase on Daejun's v19 The HPB spec defines 2 control modes - device control mode and host control mode. In oppose t

Re: [PATCH v2 17/25] tty: serial: samsung_tty: Separate S3C64XX ops structure

2021-02-18 Thread Hector Martin
On 16/02/2021 03.06, Krzysztof Kozlowski wrote: On Mon, Feb 15, 2021 at 09:17:05PM +0900, Hector Martin wrote: +static void s3c64xx_serial_shutdown(struct uart_port *port) +{ + struct s3c24xx_uart_port *ourport = to_ourport(port); + + free_irq(port->irq, ourport); + + wr_regl(p

[PATCH v3 2/9] scsi: ufshpb: Add host control mode support to rsp_upiu

2021-02-18 Thread Avri Altman
In device control mode, the device may recommend the host to either activate or inactivate a region, and the host should follow. Meaning those are not actually recommendations, but more of instructions. On the contrary, in host control mode, the recommendation protocol is slightly changed: a) The

Re: [RFC PATCH 01/13] futex2: Implement wait and wake functions

2021-02-18 Thread André Almeida
Hi Gabriel, Às 16:59 de 15/02/21, Gabriel Krisman Bertazi escreveu: André Almeida writes: +/** + * struct futexv_head - List of futexes to be waited + * @task:Task to be awaken + * @hint:Was someone on this list awakened? + * @objects: List of futexes + */ +struct futexv_head { +

Re: [PATCH] perf record: Fix continue profiling after draining the buffer

2021-02-18 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 05, 2021 at 11:46:12AM +0100, Jiri Olsa escreveu: > On Fri, Feb 05, 2021 at 07:35:22PM +0900, Namhyung Kim wrote: > > Hello, > > > > On Fri, Feb 5, 2021 at 3:50 PM Yang Jihong wrote: > > > > > > commit da231338ec9c098707c8a1e4d8a50e2400e2fe17 uses eventfd to solve > > > rare race > >

[PATCH] spi: atmel: Drop unused variable

2021-02-18 Thread Tudor Ambarus
The DMA cap mask is no longer used since: commit 7758e390699f ("spi: atmel: remove compat for non DT board when requesting dma chan") Drop it now. Signed-off-by: Tudor Ambarus --- drivers/spi/spi-atmel.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/spi/spi-atmel.c b/drivers/sp

Re: [PATCH v2 10/11] drm/qxl: rework cursor plane

2021-02-18 Thread Thomas Zimmermann
Hi Am 18.02.21 um 12:50 schrieb Gerd Hoffmann: Hi, I'm still trying to wrap my head around the qxl cursor code. Getting vmap out of the commit tail is good, but I feel like this isn't going in the right direction overall. In ast, these helper functions were only good when converting the d

Re: [PATCH ghak124 v3] audit: log nftables configuration change events

2021-02-18 Thread Richard Guy Briggs
On 2021-02-18 13:52, Florian Westphal wrote: > Richard Guy Briggs wrote: > > On 2021-02-18 09:22, Florian Westphal wrote: > > > No. There is a hierarchy, e.g. you can't add a chain without first > > > adding a table, BUT in case the table was already created by an earlier > > > transaction it can

Re: [PATCH 1/2] mm: Make alloc_contig_range handle free hugetlb pages

2021-02-18 Thread Oscar Salvador
On Thu, Feb 18, 2021 at 01:52:38PM +0100, Michal Hocko wrote: > > Ok, makes sense. > > __GFP_THISNODE will not allow fallback to other node's zones. > > Since we only allow the nid the page belongs to, nodemask should be > > NULL, right? > > I would have to double check because hugetlb has a sligh

Re: [PATCH v11] leds: trigger: implement a tty trigger

2021-02-18 Thread Pavel Machek
Hi! > > > so that I can queue it up? > > > > Oh, so you are LED maintainer now? My congratulations. > > (Honestly, do you plan to apply this without their ack? Not that I'm > > against you doing that, I'm happy if I can archive this patch series as > > done, but I'm a bit surprised.) > > It's dr

Re: [PATCH][RESEND] iio: dac: ad5686: Add support for AD5673R/AD5677R

2021-02-18 Thread Jonathan Cameron
On Wed, 17 Feb 2021 09:41:02 +0200 Alexandru Ardelean wrote: > From: Mircea Caprioru > > The AD5673R/AD5677R are low power, 16-channel, 12-/16-bit buffered voltage > output digital-to-analog converters (DACs). They include a 2.5 V internal > reference (enabled by default). > > These devices ar

Re: [PATCH v6 03/24] iio: make use of devm_iio_kfifo_buffer_setup() helper

2021-02-18 Thread Jonathan Cameron
On Thu, 18 Feb 2021 00:22:38 -0800 Matt Ranostay wrote: > On Tue, Feb 16, 2021 at 3:46 PM Gwendal Grignou wrote: > > > > Reviewed-by: Gwendal Grignou > > Looks fine to me as well. > > Reviewed-by: Matt Ranostay Thanks. Both tags added. Jonathan > > > > > On Mon, Feb 15, 2021 at 4:11 AM

Re: [PATCH v2 1/5] iio: Documentation: update definitions for bufferY and scan_elements

2021-02-18 Thread Jonathan Cameron
On Thu, 18 Feb 2021 12:19:48 + Jonathan Cameron wrote: > On Wed, 17 Feb 2021 10:34:34 +0200 > Alexandru Ardelean wrote: > > > Since the new change to the IIO buffer infrastructure, the buffer/ and > > scan_elements/ directories have been merged into bufferY/ to have some > > attributes avai

[PATCH] ARM: dts: at91: sam9x60: fix mux-mask for PA7 so it can be set to A, B and C

2021-02-18 Thread nicolas.ferre
From: Federico Pellegrin According to the datasheet PA7 can be set to either function A, B or C (see table 6-2 of DS60001579D). The previous value would permit just configuring with function C. Signed-off-by: Federico Pellegrin Fixes: 1e5f532c2737 ("ARM: dts: at91: sam9x60: add device tree for

Re: [PATCH v2 18/25] tty: serial: samsung_tty: add s3c24xx_port_type

2021-02-18 Thread Hector Martin
On 16/02/2021 03.26, Krzysztof Kozlowski wrote: This removes s3c24xx_serial_has_interrupt_mask, which was just checking for a specific type anyway, and adds the ucon_mask port info member to avoid having S3C2440 as a distinct type. Please split setting the ucon_mask to separate patch. It's a ni

[PATCH] simplify copy_mm()

2021-02-18 Thread Rolf Eike Beer
All this can happen without a single goto. Signed-off-by: Rolf Eike Beer --- kernel/fork.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/kernel/fork.c b/kernel/fork.c index d66cd1014211..1cad8c622b34 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -1382,7

Re: [PATCH v11] leds: trigger: implement a tty trigger

2021-02-18 Thread Pavel Machek
Hi! Close, but see below: > +static ssize_t ttyname_store(struct device *dev, > + struct device_attribute *attr, const char *buf, > + size_t size) > +{ > + struct ledtrig_tty_data *trigger_data = led_trigger_get_drvdata(dev); > + char *tty

Re: [PATCH ghak124 v3] audit: log nftables configuration change events

2021-02-18 Thread Florian Westphal
Richard Guy Briggs wrote: > Ok, can I get one more clarification on this "hierarchy"? Is it roughly > in the order they appear in nf_tables_commit() after step 3? It appears > it might be mostly already. If it isn't already, would it be reasonable > to re-order them? Would you suggest a differ

Re: [PATCH v2 0/5] iio: Add output buffer support

2021-02-18 Thread Jonathan Cameron
On Wed, 17 Feb 2021 10:34:33 +0200 Alexandru Ardelean wrote: > This patchset is based on the new multibuffer set. > It doesn't require the high-speed/mmap interface. > That will come later on a v2. > > Changelog v1 -> v2: > * > https://lore.kernel.org/linux-iio/20210212102021.47276-4-alexandru.

Re: [PATCH 11/18] arm64: dts: qcom: msm8994-octagon: Add uSD card and disable HS400 on eMMC

2021-02-18 Thread Pavel Machek
On Sun 2021-01-31 02:38:42, Konrad Dybcio wrote: > From: Gustave Monce > > Lumia 950/XL, like other phones, ship with different storage chips. > Some of them are not capable of stable operation at HS400. Disable it. > > Signed-off-by: Gustave Monce > Signed-off-by: Konrad Dybcio > --- > .../d

Re: [PATCH v2 2/5] iio: Add output buffer support

2021-02-18 Thread Jonathan Cameron
On Wed, 17 Feb 2021 10:34:35 +0200 Alexandru Ardelean wrote: > From: Lars-Peter Clausen > > Currently IIO only supports buffer mode for capture devices like ADCs. Add > support for buffered mode for output devices like DACs. > > The output buffer implementation is analogous to the input buffer

Re: [PATCH 12/18] arm64: dts: qcom: msm8994-octagon: Configure Lattice iCE40 FPGA

2021-02-18 Thread Pavel Machek
On Sun 2021-01-31 02:38:43, Konrad Dybcio wrote: > From: Gustave Monce > > Octagon devices have a Lattice iCE40 FPGA connected over SPI. > Configure it. > + status = "okay"; > + > + /* > + * This device is a Lattice UC120 USB-C PD PHY. > + * It is actually a Lattice iCE40 FPGA

Business Plans..

2021-02-18 Thread Ms. Reem Ebrahim
Hello, My name is Ms. Reem Ebrahim Al-Hashimi, I am the "Minister of state and Petroleum" also "Minister of State for International Cooperation" in UAE. I write to you on behalf of my other "three (3) colleagues" who has approved me to solicit for your "partnership in claiming of {us$47=Million

Re: [PATCH v2 1/2] staging: comedi: cast function output to assigned variable type

2021-02-18 Thread Greg KH
On Thu, Feb 18, 2021 at 06:22:20PM +0530, Atul Gopinathan wrote: > On Thu, Feb 18, 2021 at 01:21:05PM +0100, Greg KH wrote: > > On Thu, Feb 18, 2021 at 04:17:55PM +0530, Atul Gopinathan wrote: > > > On Thu, Feb 18, 2021 at 10:31:15AM +, Ian Abbott wrote: > > > > On 18/02/2021 08:44, Atul Gopina

Re: [PATCH v3 9/9] scsi: ufshpb: Make host mode parameters configurable

2021-02-18 Thread Greg KH
On Thu, Feb 18, 2021 at 03:19:32PM +0200, Avri Altman wrote: > We can make use of this commit, to elaborate some more of the host > control mode logic, explaining what role play each and every variable. > > While at it, allow those parameters to be configurable. > > Signed-off-by: Avri Altman >

Re: [PATCH V3 XRT Alveo 00/18] XRT Alveo driver overview

2021-02-18 Thread Tom Rix
On 2/17/21 10:40 PM, Lizhi Hou wrote: > Hello, > > This is V3 of patch series which adds management physical function driver for > Xilinx > Alveo PCIe accelerator cards, > https://www.xilinx.com/products/boards-and-kits/alveo.html > This driver is part of Xilinx Runtime (XRT) open source stack.

Re: linux-next: manual merge of the devicetree tree with the powerpc tree

2021-02-18 Thread Rob Herring
On Thu, Feb 18, 2021 at 5:34 AM Stephen Rothwell wrote: > > Hi Michael, > > On Thu, 18 Feb 2021 21:44:37 +1100 Michael Ellerman > wrote: > > > > I think it just needs this? > > > > diff --git a/arch/powerpc/kexec/elf_64.c b/arch/powerpc/kexec/elf_64.c > > index 87e34611f93d..0492ca6003f3 100644

Re: [PATCH v2 19/25] tty: serial: samsung_tty: IRQ rework

2021-02-18 Thread Hector Martin
On 16/02/2021 03.40, Krzysztof Kozlowski wrote: On Mon, Feb 15, 2021 at 09:17:07PM +0900, Hector Martin wrote: * Split out s3c24xx_serial_tx_chars from s3c24xx_serial_tx_irq, where only the latter acquires the port lock. I miss here information why you do all this. Added an explanation fo

Re: [RFC] IRQ handlers run with some high-priority interrupts(not NMI) enabled on some platform

2021-02-18 Thread Arnd Bergmann
On Thu, Feb 18, 2021 at 1:30 PM Geert Uytterhoeven wrote: > > The reason drivers/ide is doing that may be related to IDE hard drive > quirks. The old WD Caviar drives didn't obey disabling the IDE interrupt > at the drive level. On PC, that worked fine, as IRQs 14 and 15 weren't > shared with ot

Re: [PATCH 1/2] mm: Make alloc_contig_range handle free hugetlb pages

2021-02-18 Thread Michal Hocko
On Thu 18-02-21 14:32:50, Oscar Salvador wrote: > On Thu, Feb 18, 2021 at 01:52:38PM +0100, Michal Hocko wrote: > > > Ok, makes sense. > > > __GFP_THISNODE will not allow fallback to other node's zones. > > > Since we only allow the nid the page belongs to, nodemask should be > > > NULL, right? > >

Re: [RFC] execve.2: SYNOPSIS: Document both glibc wrapper and kernel sycalls

2021-02-18 Thread Alejandro Colomar (man-pages)
Hi Micahel, On 2/18/21 1:27 PM, Michael Kerrisk (man-pages) wrote: Hi Alex, On 2/14/21 2:39 PM, Alejandro Colomar wrote: Until now, the manual pages have (usually) documented only either the glibc (or another library) wrapper for a syscall, or the raw syscall (this only when there's not a wrap

Re: [PATCH v2 20/25] tty: serial: samsung_tty: Use devm_ioremap_resource

2021-02-18 Thread Hector Martin
On 16/02/2021 03.51, Krzysztof Kozlowski wrote: Also fix a bug checking the return value, which should use IS_ERR(). No, no, no. We never, never combine fixing bugs with some rework. However devm_ioremap() returns NULL so where is the error? Sorry, this was a commit message mistake. The code

Re: [PATCH] Revert "ath9k: fix ath_tx_process_buffer() potential null ptr dereference"

2021-02-18 Thread Shuah Khan
On 2/17/21 11:23 PM, Kalle Valo wrote: Shuah Khan wrote: This reverts commit a56c14bb21b296fb6d395164ab62ef2e419e5069. ath_tx_process_buffer() doesn't dereference or check sta and passes it to ath_tx_complete_aggr() and ath_tx_complete_buf(). ath_tx_complete_aggr() checks the pointer before

Re: [PATCH v2 5/5] iio: dac: ad5686: Add PWM as a trigger source

2021-02-18 Thread Jonathan Cameron
On Wed, 17 Feb 2021 10:34:38 +0200 Alexandru Ardelean wrote: > From: Mircea Caprioru > > A PWM signal will be used as a trigger source to have a deterministic > sampling frequency since this family of DAC has no hardware interrupt > source. > > This feature is made optional however, as there a

Re: [PATCH v3 0/4] Introduce pcim_alloc_irq_vectors()

2021-02-18 Thread Andy Shevchenko
On Thu, Feb 18, 2021 at 10:36:28AM +0100, Robert Richter wrote: > On 17.02.21 00:02:45, Dejin Zheng wrote: > > Introduce pcim_alloc_irq_vectors(), a device-managed version of > > pci_alloc_irq_vectors(), In some i2c drivers, If pcim_enable_device() > > has been called before, then pci_alloc_irq_vec

Re: possible deadlock in mptcp_push_pending

2021-02-18 Thread Dmitry Vyukov
On Thu, Feb 18, 2021 at 1:41 PM Paolo Abeni wrote: > > On Wed, 2021-02-17 at 09:31 -0800, syzbot wrote: > > syzbot found the following issue on: > > > > HEAD commit:c48f8607 Merge branch 'PTP-for-DSA-tag_ocelot_8021q' > > git tree: net-next > > console output: https://syzkaller.appspot.c

[PATCH 34/33] netfs: Pass flag rather than use in_softirq()

2021-02-18 Thread David Howells
Christoph Hellwig wrote: > On Tue, Feb 16, 2021 at 09:29:31AM +, David Howells wrote: > > Is there a better way to do it? The intent is to process the assessment > > phase in the calling thread's context if possible rather than bumping over > > to a worker thread. For synchronous I/O, for e

RE: [PATCH v3 9/9] scsi: ufshpb: Make host mode parameters configurable

2021-02-18 Thread Avri Altman
> > +What: > /sys/class/scsi_device/*/device/hpb_param_sysfs/timeout_polling_interval_ms > > +Date:February 2021 > > +Contact: Avri Altman > > +Description: the frequency in which the delayed worker that checks the > > + read_timeouts is awaken. > > +>>> ef6bf08

Re: [PATCH v2] gpio: pca953x: add support for open drain pins on PCAL6524

2021-02-18 Thread andy.shevche...@gmail.com
On Wed, Feb 17, 2021 at 06:57:20PM +, Bedel, Alban wrote: > On Wed, 2021-02-17 at 16:19 +0200, Andy Shevchenko wrote: > > On Wed, Feb 17, 2021 at 3:11 PM Bedel, Alban > > wrote: > > > On Tue, 2021-02-16 at 19:50 +0200, Andy Shevchenko wrote: > > > > On Tue, Feb 16, 2021 at 6:37 PM Bedel, Alban

Re: [PATCH v2 1/2] staging: comedi: cast function output to assigned variable type

2021-02-18 Thread Atul Gopinathan
On Thu, Feb 18, 2021 at 02:46:48PM +0100, Greg KH wrote: > On Thu, Feb 18, 2021 at 06:22:20PM +0530, Atul Gopinathan wrote: > > On Thu, Feb 18, 2021 at 01:21:05PM +0100, Greg KH wrote: > > > On Thu, Feb 18, 2021 at 04:17:55PM +0530, Atul Gopinathan wrote: > > > > On Thu, Feb 18, 2021 at 10:31:15AM

Re: [PATCH V8 1/1] i2c: i2c-qcom-geni: Add shutdown callback for i2c

2021-02-18 Thread rojay
Hi Stephen, On 2021-01-13 12:24, Stephen Boyd wrote: Quoting Roja Rani Yarubandi (2021-01-08 07:05:45) diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c index 214b4c913a13..c3f584795911 100644 --- a/drivers/i2c/busses/i2c-qcom-geni.c +++ b/drivers/i2c/busses/

Re: [PATCH v3 3/4] i2c: designware: Use the correct name of device-managed function

2021-02-18 Thread Dejin Zheng
On Wed, Feb 17, 2021 at 03:47:01PM +0200, Andy Shevchenko wrote: > On Wed, Feb 17, 2021 at 07:40:14PM +0800, Dejin Zheng wrote: > > On Tue, Feb 16, 2021 at 06:46:01PM +0100, Krzysztof Wilczyński wrote: > > ... > > > > The change simplifies the error handling path, how? A line of two which > > >

Re: [PATCH v2 22/25] tty: serial: samsung_tty: Add support for Apple UARTs

2021-02-18 Thread Hector Martin
On 16/02/2021 04.13, Krzysztof Kozlowski wrote: On Mon, Feb 15, 2021 at 09:17:10PM +0900, Hector Martin wrote: @@ -389,10 +396,12 @@ static void enable_tx_pio(struct s3c24xx_uart_port *ourport) ucon = rd_regl(port, S3C2410_UCON); ucon &= ~(S3C64XX_UCON_TXMODE_MASK); ucon

Re: [PATCH v2 10/11] drm/qxl: rework cursor plane

2021-02-18 Thread Gerd Hoffmann
Hi, > > Well. I suspect I could easily spend a month cleaning up and party > > redesign the qxl driver (specifically qxl_draw.c + qxl_image.c). > > > > I'm not sure I'll find the time to actually do that anytime soon. > > I have plenty of other stuff on my TODO list, and given that the > > wor

Re: [PATCH v4] printk: Userspace format enumeration support

2021-02-18 Thread Petr Mladek
On Thu 2021-02-18 12:41:39, Chris Down wrote: > Petr Mladek writes: > > > - See if it's safe to pass a printk_fmt_sec to seq_file instead of a > > > module > > > > Also it might be needed to store the pointer to struct module. > > You mean, have a `struct module` entry for this? I somewhat suspe

Re: [PATCH v2 08/25] arm64: Always keep DAIF.[IF] in sync

2021-02-18 Thread Mark Rutland
On Thu, Feb 18, 2021 at 09:51:40PM +0900, Hector Martin wrote: > On 17/02/2021 21.22, Mark Rutland wrote: > > > Root irqchip drivers can discriminate between IRQs and FIQs by checking > > > the ISR_EL1 system register. > > > > I think we can remove this note for now. If we go with seperate handler

Re: 5.10 LTS Kernel: 2 or 6 years?

2021-02-18 Thread Greg Kroah-Hartman
On Thu, Feb 18, 2021 at 04:15:11PM +0200, Jari Ruusu wrote: > Willy Tarreau wrote: > > The only set of fixes that can be trusted are the "official" stable > > kernels, because they are the only ones that are approved by the patches > > authors themselves. Adding more stuff on top of stable kernels

Re: [PATCH V3 11/14] coresight: sink: Add TRBE driver

2021-02-18 Thread Mike Leach
HI Suzuki, On Thu, 18 Feb 2021 at 07:50, Suzuki K Poulose wrote: > > Hi Mike > > On 2/16/21 9:00 AM, Mike Leach wrote: > > Hi Anshuman, > > > > There have been plenty of detailed comments so I will restrict mine to > > a few general issues:- > > > > 1) Currently there appears to be no sysfs suppo

Re: 5.10 LTS Kernel: 2 or 6 years?

2021-02-18 Thread Jari Ruusu
Willy Tarreau wrote: > The only set of fixes that can be trusted are the "official" stable > kernels, because they are the only ones that are approved by the patches > authors themselves. Adding more stuff on top of stable kernels is fine > (and done at your own risk), but randomly dropping stuff f

Re: [PATCH v6 1/2] media: v4l2-ctrl: add controls for long term reference.

2021-02-18 Thread Hans Verkuil
On 10/02/2021 17:03, Nicolas Dufresne wrote: > Le jeudi 04 février 2021 à 11:05 +0100, Hans Verkuil a écrit : >> On 04/02/2021 06:01, diksh...@codeaurora.org wrote: >>> On 2021-02-01 16:50, Hans Verkuil wrote: On 25/01/2021 06:51, Dikshita Agarwal wrote: > Long Term Reference (LTR) frames

Re: [PATCH v2 5/5] iio: dac: ad5686: Add PWM as a trigger source

2021-02-18 Thread Rob Herring
On Thu, Feb 18, 2021 at 8:05 AM Jonathan Cameron wrote: > > On Wed, 17 Feb 2021 10:34:38 +0200 > Alexandru Ardelean wrote: > > > From: Mircea Caprioru > > > > A PWM signal will be used as a trigger source to have a deterministic > > sampling frequency since this family of DAC has no hardware int

[PATCH v4] vfs: fix copy_file_range regression in cross-fs copies

2021-02-18 Thread Luis Henriques
A regression has been reported by Nicolas Boichat, found while using the copy_file_range syscall to copy a tracefs file. Before commit 5dae222a5ff0 ("vfs: allow copy_file_range to copy across devices") the kernel would return -EXDEV to userspace when trying to copy a file across different filesyst

Re: [PATCH v2 00/25] Apple M1 SoC platform bring-up

2021-02-18 Thread Mark Rutland
On Mon, Feb 15, 2021 at 09:16:48PM +0900, Hector Martin wrote: > This series brings up initial support for the Apple M1 SoC, used in the > 2020 Mac Mini, MacBook Pro, and MacBook Air models. > > The following features are supported in this initial port: > > - UART (samsung-style) with earlycon su

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