[PATCH v2 2/2] power: supply: bq256xx: Introduce the BQ256XX charger driver

2020-08-28 Thread Ricardo Rivera-Matos
The BQ256XX family of devices are highly integrated buck chargers for single cell batteries. Signed-off-by: Ricardo Rivera-Matos --- drivers/power/supply/Kconfig | 11 + drivers/power/supply/Makefile |1 + drivers/power/supply/bq256xx_charger.c | 1769

[RFC PATCH v7 07/23] cpumask: Introduce a new iterator for_each_cpu_wrap_or

2020-08-28 Thread Julien Desfossez
From: Vineeth Pillai Hotplug fixes to core-scheduling require a new cpumask iterator which iterates through all online cpus in both the given cpumasks. This patch introduces it. Signed-off-by: Vineeth Pillai Signed-off-by: Joel Fernandes (Google) --- include/linux/cpumask.h | 42

[RFC PATCH v7 03/23] sched: Core-wide rq->lock

2020-08-28 Thread Julien Desfossez
From: Peter Zijlstra Introduce the basic infrastructure to have a core wide rq->lock. Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Julien Desfossez Signed-off-by: Vineeth Remanan Pillai --- kernel/Kconfig.preempt | 6 +++ kernel/sched/core.c| 95

[RFC PATCH v7 05/23] sched: Basic tracking of matching tasks

2020-08-28 Thread Julien Desfossez
From: Peter Zijlstra Introduce task_struct::core_cookie as an opaque identifier for core scheduling. When enabled; core scheduling will only allow matching task to be on the core; where idle matches everything. When task_struct::core_cookie is set (and core scheduling is enabled) these tasks

[RFC PATCH v7 02/23] sched: Introduce sched_class::pick_task()

2020-08-28 Thread Julien Desfossez
From: Peter Zijlstra Because sched_class::pick_next_task() also implies sched_class::set_next_task() (and possibly put_prev_task() and newidle_balance) it is not state invariant. This makes it unsuitable for remote task selection. Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Vineeth

[RFC PATCH v7 01/23] sched: Wrap rq::lock access

2020-08-28 Thread Julien Desfossez
From: Peter Zijlstra In preparation of playing games with rq->lock, abstract the thing using an accessor. Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Vineeth Remanan Pillai Signed-off-by: Julien Desfossez --- kernel/sched/core.c | 46 +- kernel/sched/cpuacct.c

[RFC PATCH v7 06/23] bitops: Introduce find_next_or_bit

2020-08-28 Thread Julien Desfossez
From: Vineeth Pillai Hotplug fixes to core-scheduling require a new bitops API. Introduce a new API find_next_or_bit() which returns the bit number of the next set bit in OR-ed bit masks of the given bit masks. Signed-off-by: Vineeth Pillai Signed-off-by: Joel Fernandes (Google) ---

[RFC PATCH v7 04/23] sched/fair: Add a few assertions

2020-08-28 Thread Julien Desfossez
From: Peter Zijlstra Signed-off-by: Peter Zijlstra (Intel) --- kernel/sched/fair.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 1a1bf726264a..af8c40191a19 100644 --- a/kernel/sched/fair.c +++

[RFC PATCH v7 00/23] Core scheduling v7

2020-08-28 Thread Julien Desfossez
Seventh iteration of the Core-Scheduling feature. (Note that this iteration is a repost of the combined v6 and v6+ series, and does not include the new interface discussed at LPC). Core scheduling is a feature that allows only trusted tasks to run concurrently on cpus sharing compute resources

[GIT PULL] ACPI fixes for v5.9-rc3

2020-08-28 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-5.9-rc3 with top-most commit 4f31d53c21ec98a2c8973cff759804bd1c217c93 Merge branch 'acpi-mm' on top of commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5 Linux 5.9-rc1 to receive

[GIT PULL] Power management fixes for v5.9-rc3

2020-08-28 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-5.9-rc3 with top-most commit ef7d960403ecd87276e12b69c26bf0fdd5f21a0e Merge branch 'pm-cpufreq' on top of commit d012a7190fc1fd72ed48911e77ca97ba4521bccd Linux 5.9-rc2 to receive

Re: [PATCH RFC v6 1/6] dt-bindings: display: add Unisoc's drm master bindings

2020-08-28 Thread Rob Herring
On Tue, Jul 28, 2020 at 4:08 AM Kevin Tang wrote: > > From: Kevin Tang > > The Unisoc DRM master device is a virtual device needed to list all > DPU devices or other display interface nodes that comprise the > graphics subsystem > > Cc: Orson Zhai > Cc: Chunyan Zhang > Signed-off-by: Kevin

Re: [PATCH 1/3] dt-bindings: sound: Remove unused 'linux,hdmi-audio'

2020-08-28 Thread Rob Herring
On Wed, Aug 26, 2020 at 12:54 PM Mark Brown wrote: > > On Wed, Aug 26, 2020 at 12:48:49PM -0600, Rob Herring wrote: > > The binding was added in 2013 and has had no driver since 2015. > > There is the hdmi-codec driver that covers such hardware and would be > compatible with the binding. Of

Re: [PATCH 00/10] dt-bindings: Convert SP805 to Json-schema (and fix users)

2020-08-28 Thread Florian Fainelli
On 8/28/20 6:05 AM, Andre Przywara wrote: > This is an attempt to convert the SP805 watchdog DT binding to yaml. > This is done in the first patch, the remaining nine fix some DT users. > > I couldn't test any of those DT files on actual machines, but tried > to make the changes in a way that

Re: [PATCH 03/10] arm64: dts: broadcom: Fix SP805 clock-names

2020-08-28 Thread Florian Fainelli
On 8/28/20 6:05 AM, Andre Przywara wrote: > The SP805 binding sets the name for the actual watchdog clock to > "wdog_clk" (with an underscore). > > Change the name in the DTs for Broadcom platforms to match that. The > Linux and U-Boot driver use the *first* clock for this purpose anyway, > so it

RE: [PATCH v4 19/23] kprobes: Remove kretprobe hash

2020-08-28 Thread eddy...@trendmicro.com
> -Original Message- > From: Masami Hiramatsu > > @@ -1311,24 +1257,23 @@ void kprobe_busy_end(void) > void kprobe_flush_task(struct task_struct *tk) > { > struct kretprobe_instance *ri; > - struct hlist_head *head; > - struct hlist_node *tmp; > - unsigned

Re: [PATCH 09/10] ARM: dts: NSP: Fix SP805 clock-names

2020-08-28 Thread Florian Fainelli
On 8/28/20 6:06 AM, Andre Przywara wrote: > The SP805 binding sets the name for the actual watchdog clock to > "wdog_clk" (with an underscore). > > Change the name in the DTs for the Broadcom NSP platform to match that. > The Linux and U-Boot driver use the *first* clock for this purpose >

Re: [PATCH 08/10] ARM: dts: Cygnus: Fix SP805 clocks

2020-08-28 Thread Florian Fainelli
On 8/28/20 6:06 AM, Andre Przywara wrote: > The SP805 DT binding requires two clocks to be specified, but the > Broadcom Cygnus DT currently only specifies one clock. > > In practice, Linux would pick a clock named "apb_pclk" for the bus > clock, and the Linux and U-Boot SP805 driver would use

Re: [PATCH] x86/uaccess: Use pointer masking to limit uaccess speculation

2020-08-28 Thread Josh Poimboeuf
On Wed, Aug 19, 2020 at 09:50:06AM -0500, Josh Poimboeuf wrote: > The x86 uaccess code uses barrier_nospec() in various places to prevent > speculative dereferencing of user-controlled pointers (which might be > combined with further gadgets or CPU bugs to leak data). > > There are some issues

Re: [PATCH v8 3/4] mm/madvise: introduce process_madvise() syscall: an external memory hinting API

2020-08-28 Thread Jens Axboe
On 8/28/20 12:24 PM, Jens Axboe wrote: > On 8/28/20 11:40 AM, Arnd Bergmann wrote: >> On Mon, Jun 22, 2020 at 9:29 PM Minchan Kim wrote: >>> So finally, the API is as follows, >>> >>> ssize_t process_madvise(int pidfd, const struct iovec *iovec, >>>unsigned long vlen, int

[PATCH v2] x86/mce: Increase maximum number of banks to 64

2020-08-28 Thread Yazen Ghannam
From: Akshay Gupta ...because future AMD systems will support up to 64 MCA banks per CPU. MAX_NR_BANKS is used to allocate a number of data structures, and it is used as a ceiling for values read from MCG_CAP[Count]. Therefore, this change will have no functional effect on existing systems with

Re: linux-next: Tree for Aug 26

2020-08-28 Thread Anders Roxell
On Fri, 28 Aug 2020 at 15:29, Paul E. McKenney wrote: > > On Fri, Aug 28, 2020 at 09:37:17AM +0200, Anders Roxell wrote: > > On Wed, 26 Aug 2020 at 21:39, Paul E. McKenney wrote: > > > > > > On Wed, Aug 26, 2020 at 08:19:01PM +0200, Anders Roxell wrote: > > > > On Wed, 26 Aug 2020 at 08:33,

Re: [PATCH v4 00/10] Function Granular KASLR

2020-08-28 Thread Josh Poimboeuf
On Fri, Aug 28, 2020 at 12:21:13PM +0200, Miroslav Benes wrote: > > Hi there! I was trying to find a super easy way to address this, so I > > thought the best thing would be if there were a compiler or linker > > switch to just eliminate any duplicate symbols at compile time for > > vmlinux. I

[PATCH] arm64: dts: imx8mq-librem5-devkit: Add missing clock-cells to PMIC

2020-08-28 Thread Krzysztof Kozlowski
The PMIC node can be a clock provider (for its 32 kHz clock) and authors of imx8mq-librem5-devkit.dts apparently wanted this because they added input clock and clock-output-names. Add necessary clock-cells to the PMIC node. Signed-off-by: Krzysztof Kozlowski ---

[PATCH 3/4] ARM: dts: imx28: Align GPMI NAND node name with schema

2020-08-28 Thread Krzysztof Kozlowski
Device tree schema expects NAND controller to be named "nand-controller", otherwise dtbs_check complain with a warning like: arch/arm/boot/dts/imx28-eukrea-mbmx283lc.dt.yaml: gpmi-nand@8000c000: $nodename:0: 'gpmi-nand@8000c000' does not match '^nand-controller(@.*)?' Signed-off-by:

[PATCH 2/4] ARM: dts: imx23: Align GPMI NAND node name with schema

2020-08-28 Thread Krzysztof Kozlowski
Device tree schema expects NAND controller to be named "nand-controller", otherwise dtbs_check complain with a warning like: arch/arm/boot/dts/imx28-eukrea-mbmx283lc.dt.yaml: gpmi-nand@8000c000: $nodename:0: 'gpmi-nand@8000c000' does not match '^nand-controller(@.*)?' Signed-off-by:

[PATCH 4/4] ARM: dts: imx: Align GPMI NAND node name with schema

2020-08-28 Thread Krzysztof Kozlowski
Device tree schema expects NAND controller to be named "nand-controller", otherwise dtbs_check complain with a warning like: arch/arm/boot/dts/imx6dl-apf6dev.dt.yaml: gpmi-nand@112000: $nodename:0: 'gpmi-nand@112000' does not match '^nand-controller(@.*)?' Signed-off-by: Krzysztof

[PATCH 1/4] dt-bindings: mtd: nand-controller: Fix matching with size-cells==1

2020-08-28 Thread Krzysztof Kozlowski
Most of Freescale/NXP GPMI device trees use size-cells==1 (even when actually not needed except few boards). This fixes dtbs_check warnings like: arch/arm64/boot/dts/freescale/imx8mm-beacon-kit.dt.yaml: nand-controller@33002000: #size-cells:0:0: 0 was expected Signed-off-by: Krzysztof

Re: [PATCH 1/3] pinctrl: mcp23s08: Fixup mcp23x17 regmap_config

2020-08-28 Thread Thomas Preston
Hey Andy, Linus, Thanks for looking at this. On 28/08/2020 11:09, Andy Shevchenko wrote: On Fri, Aug 14, 2020 at 1:35 PM Thomas Preston wrote: - Fix a typo where mcp23x17 configs are referred to as mcp23x16. I'm not sure it's correct. MPC23016 is an existing I²C IO expander. The

Re: [PATCH 3/3] drm/vc4: hdmi: Add pixel bvb clock control

2020-08-28 Thread Stefan Wahren
Hi Maxime, Am 28.08.20 um 17:25 schrieb Maxime Ripard: > Hi, > > On Fri, Aug 28, 2020 at 02:45:49PM +0200, Stefan Wahren wrote: >> Am 28.08.20 um 08:30 schrieb Hoegeun Kwon: >>> On 8/27/20 6:49 PM, Stefan Wahren wrote: Am 27.08.20 um 06:35 schrieb Hoegeun Kwon: > Hi Stefan, > >

Re: [PATCH] sparse: use static inline for __chk_{user,io}_ptr()

2020-08-28 Thread Miguel Ojeda
Hi Luc, On Fri, Aug 28, 2020 at 10:53 AM Luc Van Oostenryck wrote: > > Hi Miguel, > > Could you also take this patch in your queue? > It has already be sent twice but ignored by the other channels. Yeah, no problem. However, what about all those emails from the test bot? Is the bot using an old

Re: [PATCH v8 3/4] mm/madvise: introduce process_madvise() syscall: an external memory hinting API

2020-08-28 Thread Minchan Kim
On Fri, Aug 28, 2020 at 08:25:34PM +0200, Christian Brauner wrote: > On Fri, Aug 28, 2020 at 8:24 PM Jens Axboe wrote: > > > > On 8/28/20 11:40 AM, Arnd Bergmann wrote: > > > On Mon, Jun 22, 2020 at 9:29 PM Minchan Kim wrote: > > >> So finally, the API is as follows, > > >> > > >> ssize_t

Re: [PATCH v4 19/23] kprobes: Remove kretprobe hash

2020-08-28 Thread peterz
On Sat, Aug 29, 2020 at 03:37:26AM +0900, Masami Hiramatsu wrote: > cd /sys/kernel/debug/tracing/ > > echo r:schedule schedule >> kprobe_events > echo 1 > events/kprobes/enable > > sleep 333 Thanks! that does indeed trigger it reliably. Let me go have dinner and then I'll try and figure out

Re: [PATCH 1/1] i2c: busses: Add support for atomic transfers in Actions Semi Owl driver

2020-08-28 Thread Cristian Ciocaltea
Hi Mani, Thanks for the review! On Fri, Aug 28, 2020 at 06:34:04PM +0530, Manivannan Sadhasivam wrote: > On 0803, Cristian Ciocaltea wrote: > > Atomic transfers are required to properly power off a machine through > > an I2C controlled PMIC, such as the Actions Semi ATC260x series. > > > >

Re: [PATCH 2/2] media: uvcvideo: Convey full ycbcr colorspace information to v4l2

2020-08-28 Thread Adam Goode
Hi, I sent a v2 patch last night, thanks for all the comments here! Adam

Re: [PATCH v2] Documentation/x86: Add documentation for /proc/cpuinfo feature flags

2020-08-28 Thread Borislav Petkov
On Mon, Aug 24, 2020 at 11:04:12AM -0700, Kyung Min Park wrote: > +If the expected flag does not appear in /proc/cpuinfo, things are murkier. > +Users need to find out the reason why the flag is missing and find the way > +how to enable it, which is not always easy. There are several factors that

Re: [patch V2 43/46] genirq/msi: Provide and use msi_domain_set_default_info_flags()

2020-08-28 Thread Thomas Gleixner
On Thu, Aug 27 2020 at 09:17, Marc Zyngier wrote: > On 2020-08-26 12:17, Thomas Gleixner wrote: >> #ifdef CONFIG_GENERIC_MSI_IRQ_DOMAIN >> +void msi_domain_set_default_info_flags(struct msi_domain_info *info) >> +{ >> +/* Required so that a device latches a valid MSI message on startup >> */

Re: [PATCH v3 00/11] Fix PM hibernation in Xen guests

2020-08-28 Thread Anchal Agarwal
On Fri, Aug 28, 2020 at 08:29:24PM +0200, Rafael J. Wysocki wrote: > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you can confirm the sender and know the > content is safe. > > > > On Fri, Aug 28, 2020 at 8:26 PM Anchal

Re: [PATCH v33 6/6] ARM: dts: ste-href: Add reg property to the LP5521 channel nodes

2020-08-28 Thread Dan Murphy
Linus On 8/27/20 5:58 PM, Linus Walleij wrote: On Wed, Aug 12, 2020 at 9:50 PM Dan Murphy wrote: Add the reg property to each channel node. This update is to accommodate the multicolor framework. In addition to the accommodation this allows the LEDs to be placed on any channel and allow

Re: [PATCH v4 19/23] kprobes: Remove kretprobe hash

2020-08-28 Thread Masami Hiramatsu
On Fri, 28 Aug 2020 21:30:06 +0900 Masami Hiramatsu wrote: > From: Peter Zijlstra > > The kretprobe hash is mostly superfluous, replace it with a per-task > variable. > > This gets rid of the task hash and it's related locking. > > The whole invalidate_rp_inst() is tedious and could go away

Re: [PATCH v1 09/10] powerpc/pseries/iommu: Make use of DDW even if it does not map the partition

2020-08-28 Thread Leonardo Bras
On Mon, 2020-08-24 at 15:17 +1000, Alexey Kardashevskiy wrote: > > On 18/08/2020 09:40, Leonardo Bras wrote: > > As of today, if the biggest DDW that can be created can't map the whole > > partition, it's creation is skipped and the default DMA window > > "ibm,dma-window" is used instead. > > >

[PATCH] microblaze: fix kbuild redundant file warning

2020-08-28 Thread Randy Dunlap
From: Randy Dunlap Fix build warning since this file is already listed in include/asm-generic/Kbuild. ../scripts/Makefile.asm-generic:25: redundant generic-y found in arch/microblaze/include/asm/Kbuild: hw_irq.h Fixes: 7e8f54cd4e26 ("microblaze: Remove empty headers") Signed-off-by: Randy

Re: [PATCH] netfilter: nf_conntrack_sip: fix parsing error

2020-08-28 Thread Tong Zhang
I think the original code complaining parsing error is there for a reason, A better way is to modify ct_sip_parse_numerical_param() and let it return a real parsing error code instead of returning FOUND(1) and NOT FOUND(0) if deemed necessary Once again I'm not an expert and I'm may suggest

Re: [patch V2 34/46] PCI/MSI: Make arch_.*_msi_irq[s] fallbacks selectable

2020-08-28 Thread Thomas Gleixner
On Thu, Aug 27 2020 at 13:20, Bjorn Helgaas wrote: > On Wed, Aug 26, 2020 at 01:17:02PM +0200, Thomas Gleixner wrote: >> Make the architectures and drivers which rely on them select them in Kconfig >> and if not selected replace them by stub functions which emit a warning and >> fail the PCI/MSI

Re: [PATCH v3 00/11] Fix PM hibernation in Xen guests

2020-08-28 Thread Rafael J. Wysocki
On Fri, Aug 28, 2020 at 8:26 PM Anchal Agarwal wrote: > > On Fri, Aug 21, 2020 at 10:22:43PM +, Anchal Agarwal wrote: > > Hello, > > This series fixes PM hibernation for hvm guests running on xen hypervisor. > > The running guest could now be hibernated and resumed successfully at a > > later

Re: [PATCH 4/5] KVM: nVMX: Fix the update value of nested load IA32_PERF_GLOBAL_CTRL control

2020-08-28 Thread Jim Mattson
On Fri, Aug 28, 2020 at 1:54 AM Chenyi Qiang wrote: > > A minor fix for the update of VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL field > in exit_ctls_high. > > Fixes: 03a8871add95 ("KVM: nVMX: Expose load IA32_PERF_GLOBAL_CTRL > VM-{Entry,Exit} control") > Signed-off-by: Chenyi Qiang > Reviewed-by:

Re: [PATCH v3 00/11] Fix PM hibernation in Xen guests

2020-08-28 Thread Anchal Agarwal
On Fri, Aug 21, 2020 at 10:22:43PM +, Anchal Agarwal wrote: > Hello, > This series fixes PM hibernation for hvm guests running on xen hypervisor. > The running guest could now be hibernated and resumed successfully at a > later time. The fixes for PM hibernation are added to block and >

Re: [PATCH v8 3/4] mm/madvise: introduce process_madvise() syscall: an external memory hinting API

2020-08-28 Thread Christian Brauner
On Fri, Aug 28, 2020 at 8:24 PM Jens Axboe wrote: > > On 8/28/20 11:40 AM, Arnd Bergmann wrote: > > On Mon, Jun 22, 2020 at 9:29 PM Minchan Kim wrote: > >> So finally, the API is as follows, > >> > >> ssize_t process_madvise(int pidfd, const struct iovec *iovec, > >>unsigned

Re: [PATCH 2/5] KVM: nVMX: Verify the VMX controls MSRs with the global capability when setting VMX MSRs

2020-08-28 Thread Jim Mattson
On Fri, Aug 28, 2020 at 1:54 AM Chenyi Qiang wrote: > > When setting the nested VMX MSRs, verify it with the values in > vmcs_config.nested_vmx_msrs, which reflects the global capability of > VMX controls MSRs. > > Signed-off-by: Chenyi Qiang You seem to have entirely missed the point of this

Re: [PATCH v8 3/4] mm/madvise: introduce process_madvise() syscall: an external memory hinting API

2020-08-28 Thread Jens Axboe
On 8/28/20 11:40 AM, Arnd Bergmann wrote: > On Mon, Jun 22, 2020 at 9:29 PM Minchan Kim wrote: >> So finally, the API is as follows, >> >> ssize_t process_madvise(int pidfd, const struct iovec *iovec, >>unsigned long vlen, int advice, unsigned int flags); > > I had not

Re: [PATCH] gpio: dwapb: add support for new hisilicon ascend soc

2020-08-28 Thread Bartosz Golaszewski
On Thu, Aug 27, 2020 at 10:20 AM Andy Shevchenko wrote: > > On Tue, Aug 25, 2020 at 12:58 PM Serge Semin wrote: > > On Sat, Aug 22, 2020 at 12:27:53PM +0800, Ding Tianhong wrote: > > > BTW Linus, could you take a look at my series? Andy and Rob have finished > > reviewing > > it almost a month

Re: [PATCH] driver code: print symbolic error code

2020-08-28 Thread Tom Rix
On 8/28/20 9:14 AM, Michał Mirosław wrote: > dev_err_probe() prepends the message with an error code. Let's make it > more readable by translating the code to a more recognisable symbol. recognizable > > Fixes: a787e5400a1c ("driver core: add device probe log helper") is this change really to

Re: [PATCH] netfilter: nf_conntrack_sip: fix parsing error

2020-08-28 Thread Pablo Neira Ayuso
On Fri, Aug 28, 2020 at 02:14:48PM -0400, Tong Zhang wrote: > Hi Pablo, > I'm not an expert in this networking stuff. > But from my point of view there's no point in checking if this > condition is always true. Understood. > There's also no need of returning anything from the >

Re: [PATCH 1/6] gpio: bcm-kona: Simplify with dev_err_probe()

2020-08-28 Thread Bartosz Golaszewski
On Thu, Aug 27, 2020 at 10:08 PM Krzysztof Kozlowski wrote: > > Common pattern of handling deferred probe can be simplified with > dev_err_probe(). Less code and also it prints the error value. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/gpio/gpio-bcm-kona.c | 5 + > 1 file

Re: [PATCH] checkpatch: Allow not using -f with files that are in git

2020-08-28 Thread Joe Perches
On Tue, 2020-08-25 at 14:23 +0200, Rasmus Villemoes wrote: > On 25/08/2020 02.09, Joe Perches wrote: > > If a file exists in git and checkpatch is used without the -f > > flag for scanning a file, then checkpatch will scan the file > > assuming it's a patch [] > > +sub git_is_single_file { > > +

Re: [PATCH] netfilter: nf_conntrack_sip: fix parsing error

2020-08-28 Thread Tong Zhang
Hi Pablo, I'm not an expert in this networking stuff. But from my point of view there's no point in checking if this condition is always true. There's also no need of returning anything from the ct_sip_parse_numerical_param() if they are all being ignored like this. On Fri, Aug 28, 2020 at 2:07

Re: [PATCH v6 31/76] x86/head/64: Setup MSR_GS_BASE before calling into C code

2020-08-28 Thread Borislav Petkov
On Mon, Aug 24, 2020 at 10:54:26AM +0200, Joerg Roedel wrote: > diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S > index 2b2e91627221..800053219054 100644 > --- a/arch/x86/kernel/head_64.S > +++ b/arch/x86/kernel/head_64.S > @@ -78,6 +78,14 @@ SYM_CODE_START_NOALIGN(startup_64) >

Re: [PATCH] netfilter: nf_conntrack_sip: fix parsing error

2020-08-28 Thread Pablo Neira Ayuso
On Sat, Aug 15, 2020 at 12:50:30PM -0400, Tong Zhang wrote: > ct_sip_parse_numerical_param can only return 0 or 1, but the caller is > checking parsing error using < 0 Is this are real issue in your setup or probably some static analysis tool is reporting? You are right that

Re: [PATCH] ASoC: meson: axg-toddr: fix channel order on g12 platforms

2020-08-28 Thread Mark Brown
On Fri, 28 Aug 2020 17:14:38 +0200, Jerome Brunet wrote: > On g12 and following platforms, The first channel of record with more than > 2 channels ends being placed randomly on an even channel of the output. > > On these SoCs, a bit was added to force the first channel to be placed at > the

Re: [PATCH 2/2] drm: panel: simple: Add AM-1280800N3TZQW-T00H

2020-08-28 Thread Sam Ravnborg
Hi Jagan. On Fri, Aug 28, 2020 at 09:29:38PM +0530, Jagan Teki wrote: > Add Ampire, AM-1280800N3TZQW-T00H 10.1" TFT LCD panel timings. > > Signed-off-by: Jagan Teki > --- > drivers/gpu/drm/panel/panel-simple.c | 28 > 1 file changed, 28 insertions(+) > > diff

Re: [PATCH RFC v6 1/6] dt-bindings: display: add Unisoc's drm master bindings

2020-08-28 Thread Sam Ravnborg
Hi Kevin. > > > > Any specific reason why this is not a ports node like used by many other > > display bindings? > > In other words - I think this is too simple. > We only support one display pipeline now, other interface, like > DP(DisplayPort), HDMI...will be add later... > > ports: >

Re: [PATCH RFC v6 2/6] drm/sprd: add Unisoc's drm kms master

2020-08-28 Thread Sam Ravnborg
Hi Kevin > > > > > + > > > + drm->dev_private = sprd; > > dev_private is deprecated. Alwyas use upclassing. > dev_private is deprecated ? I see everyone is still using it, so it > will be deprecated in the future? It is deprecated - and a lot of drivers is in need up an update to get away

Re: [PATCH net-next] netfilter: xt_HMARK: Use ip_is_fragment() helper

2020-08-28 Thread Pablo Neira Ayuso
On Thu, Aug 27, 2020 at 10:08:13PM +0800, YueHaibing wrote: > Use ip_is_fragment() to simpify code. Applied.

Re: [PATCH 2/2] drm: panel: simple: Add AM-1280800N3TZQW-T00H

2020-08-28 Thread kernel test robot
Hi Jagan, I love your patch! Yet something to improve: [auto build test ERROR on robh/for-next] [also build test ERROR on drm-intel/for-linux-next drm-tip/drm-tip linus/master v5.9-rc2 next-20200828] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting

Re: kernel BUG at fs/inode.c:LINE! (2)

2020-08-28 Thread Al Viro
On Fri, Aug 28, 2020 at 04:38:25PM +0100, Al Viro wrote: > On Fri, Aug 28, 2020 at 06:18:17AM -0700, syzbot wrote: > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit:d012a719 Linux 5.9-rc2 > > git tree: upstream > > console output:

RE: [PATCH 2/2] usb: dwc3: Add driver for Xilinx platforms

2020-08-28 Thread Manish Narani
Hi Robin, Thanks for the review. Please find my comment below inline. > -Original Message- > From: Robin Murphy > Sent: Friday, August 28, 2020 12:17 AM > To: Manish Narani ; gre...@linuxfoundation.org; > robh...@kernel.org; Michal Simek ; ba...@kernel.org; > p.za...@pengutronix.de >

Re: [PATCH v2 09/18] iio: afe: iio-rescale: Simplify with dev_err_probe()

2020-08-28 Thread Joe Perches
On Fri, 2020-08-28 at 11:39 +0200, Peter Rosin wrote: > On 2020-08-28 09:03, Krzysztof Kozlowski wrote: > > > > If there is no consensus among discussing people, I find this 100 line > > > > more readable, already got review, checkpatch accepts it so if subsystem > > > > maintainer likes it, I

Re: [LKP] Re: [x86/mce] 1de08dccd3: will-it-scale.per_process_ops -14.1% regression

2020-08-28 Thread Borislav Petkov
On Tue, Aug 25, 2020 at 02:23:05PM +0800, Feng Tang wrote: > Also one good news is, we seem to identify the 2 key percpu variables > out of the list mentioned in previous email: > 'arch_freq_scale' > 'tsc_adjust' > > These 2 variables are accessed in 2 hot call stacks (for this 288

Re: [PATCH] drivers: power: axp20x-battery: support setting charge_full_design

2020-08-28 Thread Sebastian Reichel
Hi, On Wed, Jul 29, 2020 at 11:49:13AM +0100, Jack Mitchell wrote: > Signed-off-by: Jack Mitchell > --- ^ missing long description Also the patch does not apply and needs to be rebased. -- Sebastian > drivers/power/supply/axp20x_battery.c | 39 +++ > 1 file changed,

Re: [PATCH v11 25/25] x86/cet/shstk: Add arch_prctl functions for shadow stack

2020-08-28 Thread H.J. Lu
On Fri, Aug 28, 2020 at 10:39 AM Andy Lutomirski wrote: > > On Fri, Aug 28, 2020 at 4:38 AM H.J. Lu wrote: > > > > On Thu, Aug 27, 2020 at 11:24 PM Florian Weimer wrote: > > > > > > * H. J. Lu: > > > > > > > Can you think of ANY issues of passing more arguments to arch_prctl? > > > > > > On

Re: Aw: Re: [PATCH v5 3/7] drm/mediatek: disable tmds on mt2701

2020-08-28 Thread Matthias Brugger
On 28/08/2020 01:46, Chun-Kuang Hu wrote: Hi, Frank: Matthias Brugger 於 2020年8月27日 週四 下午10:28寫道: On 27/08/2020 15:41, Frank Wunderlich wrote: Hi Matthias, any opinions about the dts-changes? they look good to me. maybe series except the tmds-Patch get merged...so i add it only to

Re: [PATCH v4 2/5] powerpc: Use libfdt functions to fetch IMA buffer properties

2020-08-28 Thread Lakshmi Ramasubramanian
On 8/27/20 4:50 PM, Thiago Jung Bauermann wrote: Lakshmi Ramasubramanian writes: @@ -63,7 +29,22 @@ void remove_ima_buffer(void *fdt, int chosen_node) if (!prop) return; - ret = do_get_kexec_buffer(prop, len, , ); + ret = fdt_address_cells(fdt, chosen_node);

Re: [RFC] arm64: mm: Do not use both DMA zones when 30-bit address space unavailable

2020-08-28 Thread Catalin Marinas
Hi Nicolas, On Wed, Aug 19, 2020 at 08:24:33PM +0200, Nicolas Saenz Julienne wrote: > There is no benefit in splitting the 32-bit address space into two > distinct DMA zones when the 30-bit address space isn't even available on > a device. If that is the case, default to one big ZONE_DMA spanning

Re: [PATCH 1/5] KVM: nVMX: Fix VMX controls MSRs setup when nested VMX enabled

2020-08-28 Thread Jim Mattson
On Fri, Aug 28, 2020 at 1:54 AM Chenyi Qiang wrote: > > KVM supports the nested VM_{EXIT, ENTRY}_LOAD_IA32_PERF_GLOBAL_CTRL and > VM_{ENTRY_LOAD, EXIT_CLEAR}_BNDCFGS, but they doesn't expose during > the setup of nested VMX controls MSR. > Aren't these features added conditionally in

Re: [PATCH v3 1/6] power: supply: max17040: Use regmap i2c

2020-08-28 Thread Sebastian Reichel
Hi, On Wed, Jun 24, 2020 at 06:56:28PM +0300, Iskren Chernev wrote: > Rewrite i2c operations from i2c client read/write to regmap i2c. As > a result, most private functions now accept the private driver data > instead of an i2c client pointer. > > Signed-off-by: Iskren Chernev > --- This still

Re: [PATCH v3] Input: elants_i2c - Report resolution of ABS_MT_TOUCH_MAJOR by FW information.

2020-08-28 Thread Harry Cutts
On Thu, 27 Aug 2020 at 19:20, Johnny Chuang wrote: > > This patch adds a new behavior to report touch major resolution > based on information provided by firmware. > > In initial process, driver acquires touch information from touch ic. > It contains one byte about the resolution value of

Re: [PATCH v4 1/5] powerpc: Refactor kexec functions to move arch independent code to IMA

2020-08-28 Thread Lakshmi Ramasubramanian
On 8/27/20 6:23 PM, Thiago Jung Bauermann wrote: Lakshmi Ramasubramanian writes: +/** + * ima_get_kexec_buffer - get IMA buffer from the previous kernel + * @addr: On successful return, set to point to the buffer contents. + * @size: On successful return, set to the buffer size. +

[PATCH] iio: adc: rockchip_saradc: Select IIO_TRIGGERED_BUFFER

2020-08-28 Thread Alexandru Elisei
Building the Rockchip saradc driver can trigger the following error if the driver is compiled into the kernel, but the IIO triggered buffer is not: aarch64-linux-gnu-ld: drivers/iio/adc/rockchip_saradc.o: in function `rockchip_saradc_probe': /path/to/linux/drivers/iio/adc/rockchip_saradc.c:427:

Re: [PATCH v4 1/5] powerpc: Refactor kexec functions to move arch independent code to IMA

2020-08-28 Thread Lakshmi Ramasubramanian
On 8/27/20 4:35 PM, Thiago Jung Bauermann wrote: Lakshmi Ramasubramanian writes: The functions ima_get_kexec_buffer() and ima_free_kexec_buffer() that handle carrying forward the IMA measurement logs on kexec for powerpc do not have architecture specific code, but they are currently defined

Re: [PATCH v8 3/4] mm/madvise: introduce process_madvise() syscall: an external memory hinting API

2020-08-28 Thread Arnd Bergmann
On Mon, Jun 22, 2020 at 9:29 PM Minchan Kim wrote: > So finally, the API is as follows, > > ssize_t process_madvise(int pidfd, const struct iovec *iovec, >unsigned long vlen, int advice, unsigned int flags); I had not followed the discussion earlier and only now came across

Re: [PATCH v11 25/25] x86/cet/shstk: Add arch_prctl functions for shadow stack

2020-08-28 Thread Andy Lutomirski
On Fri, Aug 28, 2020 at 4:38 AM H.J. Lu wrote: > > On Thu, Aug 27, 2020 at 11:24 PM Florian Weimer wrote: > > > > * H. J. Lu: > > > > > Can you think of ANY issues of passing more arguments to arch_prctl? > > > > On x32, the glibc arch_prctl system call wrapper only passes two > > arguments to

[PATCH v4 5/5] arch_topology, arm, arm64: define arch_scale_freq_invariant()

2020-08-28 Thread Ionela Voinescu
From: Valentin Schneider arch_scale_freq_invariant() is used by schedutil to determine whether the scheduler's load-tracking signals are frequency invariant. Its definition is overridable, though by default it is hardcoded to 'true' if arch_scale_freq_capacity() is defined ('false' otherwise).

[PATCH v4 3/5] cpufreq: report whether cpufreq supports Frequency Invariance (FI)

2020-08-28 Thread Ionela Voinescu
Now that the update of the FI scale factor is done in cpufreq core for selected functions - target(), target_index() and fast_switch(), we can provide feedback to the task scheduler and architecture code on whether cpufreq supports FI. For this purpose provide an external function to expose

[PATCH v4 1/5] arch_topology: validate input frequencies to arch_set_freq_scale()

2020-08-28 Thread Ionela Voinescu
The current frequency passed to arch_set_freq_scale() could end up being 0, signaling an error in setting a new frequency. Also, if the maximum frequency in 0, this will result in a division by 0 error. Therefore, validate these input values before using them for the setting of the frequency

[PATCH v4 0/5] cpufreq: improve frequency invariance support

2020-08-28 Thread Ionela Voinescu
Hi guys, Please find here v4: - addressing Viresh's comments on patches 1/5 and 3/5, and - with his Acked-by applied for the rest of the patches; - v3 can be found at [3], and - this is based on linux-next 20200827. Many thanks for the review, Ionela. --- v2->v3 - v2 can be found at [2]

[PATCH v4 4/5] arch_topology, cpufreq: constify arch_* cpumasks

2020-08-28 Thread Ionela Voinescu
From: Valentin Schneider The passed cpumask arguments to arch_set_freq_scale() and arch_freq_counters_available() are only iterated over, so reflect this in the prototype. This also allows to pass system cpumasks like cpu_online_mask without getting a warning. Signed-off-by: Valentin Schneider

[PATCH v4 2/5] cpufreq: move invariance setter calls in cpufreq core

2020-08-28 Thread Ionela Voinescu
To properly scale its per-entity load-tracking signals, the task scheduler needs to be given a frequency scale factor, i.e. some image of the current frequency the CPU is running at. Currently, this scale can be computed either by using counters (APERF/MPERF on x86, AMU on arm64), or by

Re: [PATCH 00/10] power: supply: Charger-manager improvements

2020-08-28 Thread Sebastian Reichel
Hi, On Thu, May 14, 2020 at 04:04:25PM -0700, Jonathan Bakker wrote: > Charger-manager is a virtual driver for unifying chargers, fuel gauges, > extcon devices, and a thermal device into a battery management system. > > Unfortunately, it has been broken since commit 830ae442202e ("extcon: >

Re: [PATCH 1/3] pinctrl: mcp23s08: Fixup mcp23x17 regmap_config

2020-08-28 Thread Thomas Preston
On 28/08/2020 10:28, Andy Shevchenko wrote: On Fri, Aug 28, 2020 at 11:06:21AM +0200, Linus Walleij wrote: On Fri, Aug 14, 2020 at 12:04 PM Thomas Preston wrote: - Fix a typo where mcp23x17 configs are referred to as mcp23x16. - Fix precious range to include INTCAP{A,B}, which clear on read.

[PATCH 2/2] perf/x86/msr: Add Jasper Lake support

2020-08-28 Thread kan . liang
From: Kan Liang The Jasper Lake processor is also a Tremont microarchitecture. From the perspective of perf MSR, there is nothing changed compared with Elkhart Lake. Share the code path with Elkhart Lake. Signed-off-by: Kan Liang --- arch/x86/events/msr.c | 1 + 1 file changed, 1 insertion(+)

[PATCH 1/2] perf/x86/intel: Add Jasper Lake support

2020-08-28 Thread kan . liang
From: Kan Liang The Jasper Lake processor is also a Tremont microarchitecture. From the perspective of Intel PMU, there is nothing changed compared with Elkhart Lake. Share the perf code with Elkhart Lake. Signed-off-by: Kan Liang --- arch/x86/events/intel/core.c | 1 + 1 file changed, 1

Re: [trivial treewide PATCH] treewide: Fix misuses of 0x%x format specifiers

2020-08-28 Thread Joe Perches
On Fri, 2020-07-24 at 12:35 -0700, Joe Perches wrote: > These are almost all typos where the decimal length value > should be after the % not before it. Hey Jiri: Is the trivial tree still alive? Do you even look at this stuff anymore? If not, you should probably just kill the tree and your

Re: [PATCH] media: mtk-mdp: Fix Null pointer dereference when calling list_add

2020-08-28 Thread Matthias Brugger
On 28/08/2020 15:55, Dafna Hirschfeld wrote: In list_add, the first variable is the new node and the second is the list head. The function is called with a wrong order causing NULL dereference: [ 15.527030] Unable to handle kernel NULL pointer dereference at virtual address

Re: [PATCH v2] sched/debug: Add new tracepoint to track cpu_capacity

2020-08-28 Thread Qais Yousef
On 08/28/20 19:10, Dietmar Eggemann wrote: > On 28/08/2020 12:27, Qais Yousef wrote: > > On 08/28/20 10:00, vincent.donnef...@arm.com wrote: > >> From: Vincent Donnefort > >> > >> rq->cpu_capacity is a key element in several scheduler parts, such as EAS > >> task placement and load balancing.

[GIT PULL] arm64 fixes for 5.9-rc3

2020-08-28 Thread Catalin Marinas
Hi Linus, Please pull the arm64 fixes below. Thanks. The following changes since commit d012a7190fc1fd72ed48911e77ca97ba4521bccd: Linux 5.9-rc2 (2020-08-23 14:08:43 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux tags/arm64-fixes

[PATCH v7 7/9] efi: Rename arm-init to efi-init common for all arch

2020-08-28 Thread Atish Patra
arm-init is responsible for setting up efi runtime and doesn't actually do any ARM specific stuff. RISC-V can use the same source code as it is. Rename it to efi-init so that RISC-V can use it. Signed-off-by: Atish Patra Acked-by: Ard Biesheuvel --- drivers/firmware/efi/Makefile

[PATCH v7 9/9] RISC-V: Add page table dump support for uefi

2020-08-28 Thread Atish Patra
Extend the current page table dump support in RISC-V to include efi pages as well. Here is the output of efi runtime page table mappings. ---[ UEFI runtime start ]--- 0x20002000-0x20003000 0xbe732000 4K PTE D A . . . W R V 0x20018000-0x20019000

[PATCH v7 6/9] RISC-V: Add EFI stub support.

2020-08-28 Thread Atish Patra
Add a RISC-V architecture specific stub code that actually copies the actual kernel image to a valid address and jump to it after boot services are terminated. Enable UEFI related kernel configs as well for RISC-V. Signed-off-by: Atish Patra Link:

[PATCH v7 5/9] RISC-V: Add PE/COFF header for EFI stub

2020-08-28 Thread Atish Patra
Linux kernel Image can appear as an EFI application With appropriate PE/COFF header fields in the beginning of the Image header. An EFI application loader can directly load a Linux kernel Image and an EFI stub residing in kernel can boot Linux kernel directly. Add the necessary PE/COFF header.

[PATCH v7 8/9] RISC-V: Add EFI runtime services

2020-08-28 Thread Atish Patra
This patch adds EFI runtime service support for RISC-V. Signed-off-by: Atish Patra Acked-by: Ard Biesheuvel --- arch/riscv/Kconfig | 2 + arch/riscv/include/asm/efi.h| 20 arch/riscv/include/asm/mmu.h| 2 + arch/riscv/include/asm/pgtable.h

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