[PATCH v2 00/10] gpio: dwapb: Refactor GPIO resources initialization

2020-07-30 Thread Serge Semin
This series is about the DW APB GPIO device initialization procedure cleaning up. First of all it has been discovered that having a vendor-specific "snps,nr-gpios" property isn't only redundant but also might be dangerous (see the commit log for details). Instead we suggest to use the generic

[PATCH v2 02/10] gpio: dwapb: Add ngpios DT-property support

2020-07-30 Thread Serge Semin
Indeed generic GPIO DT-schema implies that number of GPIOs should be described by the "ngpios" property located under a GPIO-provider DT node. In that case it's redundant to have a vendor-specific "snps,nr-gpios" property describing the same setting. Moreover it might be errors prone. Since

[PATCH v2 05/10] gpio: dwapb: Convert driver to using the GPIO-lib-based IRQ-chip

2020-07-30 Thread Serge Semin
GPIO-lib provides a ready-to-use interface to initialize an IRQ-chip on top of a GPIO chip. It's better from maintainability and readability point of view to use one instead of supporting a hand-written Generic IRQ-chip-based implementation. Moreover the new implementation won't cause much

[PATCH v2 08/10] gpio: dwapb: Get reset control by means of resource managed interface

2020-07-30 Thread Serge Semin
The reset control interface provides the resource managed version of the reset_control_get() method. The only thing which needs to be also automated is the reset lane assertion on the device removal. It can be implemented by means of the custom action definition. After that the reset control will

[PATCH v2 10/10] gpio: dwapb: Use resource managed GPIO-chip add data method

2020-07-30 Thread Serge Semin
Since the resource managed version of gpiochip_add_data() will handle the GPIO-chip data automated cleanup we can freely remove the DW APB GPIO driver code responsible for that. After doing so the DW APB GPIO driver removal callback can be also fully discarded since there is nothing left to be

[PATCH v2 09/10] gpio: dwapb: Get clocks by means of resource managed interface

2020-07-30 Thread Serge Semin
The kernel clock framework provides the resource managed version of the clk_bulk_get() method. The only thing which needs to be also automated is the clocks disable/unprepare procedure executed on the device removal. It can be implemented by means of the custom action definition. After that the

[PATCH v2 04/10] gpio: dwapb: Add max GPIOs macro

2020-07-30 Thread Serge Semin
Add a new macro DWAPB_MAX_GPIOS which defines the maximum possible number of GPIO lines corresponding to the maximum DW APB GPIO controller port width. Use the new macro instead of number literal 32 where it's applicable. Signed-off-by: Serge Semin --- drivers/gpio/gpio-dwapb.c|

[PATCH v2 01/10] dt-bindings: gpio: dwapb: Add ngpios property support

2020-07-30 Thread Serge Semin
It's redundant to have a vendor-specific property describing a number of GPIOS while there is a generic one. Let's mark the former one as deprecated and define the "ngpios" property supported with constraints of being within [1; 32] range. Signed-off-by: Serge Semin Reviewed-by: Rob Herring ---

[PATCH v2 06/10] gpio: dwapb: Discard GPIO-to-IRQ mapping function

2020-07-30 Thread Serge Semin
Since GPIOlib-based IRQ-chip interface is now utilized there is no need in setting up a custom GPIO-to-IRQ mapping method. GPIO-lib defines the standard mapping method - gpiochip_to_irq(), which will be used anyway no matter whether the custom to_irq callback is specified or not. Signed-off-by:

[PATCH v2 07/10] gpio: dwapb: Discard ACPI GPIO-chip IRQs request

2020-07-30 Thread Serge Semin
Since GPIOlib-based IRQ-chip interface is now utilized there is no need in calling the methods acpi_gpiochip_{request,free}_interrupts() here. They will be called from gpiochip_add_irqchip()/gpiochip_irqchip_remove() anyway. Signed-off-by: Serge Semin --- Changelog v2: - This is a new patch

[PATCH v2 03/10] gpio: dwapb: Move MFD-specific IRQ handler

2020-07-30 Thread Serge Semin
For better readability let's group all the IRQ handlers in a single place of the driver instead of having them scatter around all over the file. Signed-off-by: Serge Semin Reviewed-by: Andy Shevchenko --- drivers/gpio/gpio-dwapb.c | 10 +- 1 file changed, 5 insertions(+), 5

Re: [PATCH 09/23] ns: Introduce ns_idr to be able to iterate all allocated namespaces in the system

2020-07-30 Thread Matthew Wilcox
On Thu, Jul 30, 2020 at 04:32:22PM +0300, Kirill Tkhai wrote: > On 30.07.2020 15:23, Matthew Wilcox wrote: > > xa_erase_irqsave(); > > static inline void *xa_erase_irqsave(struct xarray *xa, unsigned long index) > { > unsigned long flags; > void *entry; > >

Re: [PATCH] KVM: arm: Add trace name for ARM_NISV

2020-07-30 Thread Marc Zyngier
On Thu, 30 Jul 2020 11:44:41 +0200, Alexander Graf wrote: > Commit c726200dd106d ("KVM: arm/arm64: Allow reporting non-ISV data aborts > to userspace") introduced a mechanism to deflect MMIO traffic the kernel > can not handle to user space. For that, it introduced a new exit reason. > > However,

Re: [PATCH v2 0/6] Add new controls for CQ and Frame-skip

2020-07-30 Thread Nicolas Dufresne
Le mardi 21 juillet 2020 à 10:45 +0300, Stanimir Varbanov a écrit : > Hello, > > Here is v2 with following changes: > > * 3/6 Added references for VBV size and h264 CPB size - requested by Nicolas Thanks for this enhancement. No more comments on the doc from me. > * 4/6 Fixed compile warning

Re: [RFC 1/2] devlink: add simple fw crash helpers

2020-07-30 Thread Johannes Berg
Hi, Sorry ... long delay. > > The reason I'm asking is that it's starting to sound like we really > > ought to be implementing devlink, but we've got a bunch of > > infrastructure that uses the devcoredump, and it'll take time > > (significantly so) to change all that... > > In devlink world

Re: [PATCH] trace : use kvmalloc instead of kmalloc

2020-07-30 Thread Steven Rostedt
On Thu, 30 Jul 2020 19:04:12 +0800 Zhaoyang Huang wrote: > High order memory stuff within trace could introduce OOM, use kvmalloc > instead. > > Please find the bellowing for the call stack we run across in an android > system. The scenario happens when traced_probes is woken up to get a

Re: [PATCH v2] usb: typec: tcpm: Migrate workqueue to RT priority for processing events

2020-07-30 Thread Guenter Roeck
On 7/29/20 8:37 PM, Badhri Jagan Sridharan wrote: > Hi Guenter, > > I see that Hans is saying that he has submitted some patch here. > https://lore.kernel.org/lkml/65f27abc-69c8-3877-be5b-e5e478153...@redhat.com/ > But, haven't found the actual patches yet ! >

Je to naléhavá zpráva,

2020-07-30 Thread Luis F. Godard
Je to naléhavá zpráva, Jak obecně? Doufám, že se tato zpráva s vámi dobře setkává. Nezapomeňte prosím tuto zprávu na rozdíl od dřívějších, protože váš dědický fond ve výši 9,2 milionu USD nyní odhaluje vaši okamžitou pozitivní odpověď. Vyzývám vás však, abyste laskavě předali své celé jméno:

Re: [PATCH] trace : use kvmalloc instead of kmalloc

2020-07-30 Thread Steven Rostedt
This is also the second version of the patch. Please add a v2 to the subject, otherwise it gets confusing to know which one to pull in. "[PATCH v2] ..." -- Steve On Thu, 30 Jul 2020 19:04:12 +0800 Zhaoyang Huang wrote: > High order memory stuff within trace could introduce OOM, use

[PATCH v3] coccinelle: api: add kvfree script

2020-07-30 Thread Denis Efremov
Check that alloc and free types of functions match each other. Signed-off-by: Denis Efremov --- Changes in v2: - Lines are limited to 80 characters where possible - Confidence changed from High to Medium because of fs/btrfs/send.c:1119 false-positive - __vmalloc_area_node() explicitly

Re: [PATCH v3] coccinelle: api: add kvfree script

2020-07-30 Thread Denis Efremov
> + > +@script: python depends on org@ > +v << kfree.v; > +p << kfree.p; > +@@ > + > +msg = "WARNING: vmalloc is used to allocate this memory at line %s" % > (v[0].line) > +coccilib.org.print_todo(p[0], Just noticed this error. I will resend the patch in 5mins. Regards, Denis

Re: [PATCH v2 04/10] gpio: dwapb: Add max GPIOs macro

2020-07-30 Thread Andy Shevchenko
On Thu, Jul 30, 2020 at 04:55:30PM +0300, Serge Semin wrote: > Add a new macro DWAPB_MAX_GPIOS which defines the maximum possible number > of GPIO lines corresponding to the maximum DW APB GPIO controller port > width. Use the new macro instead of number literal 32 where it's > applicable. Since

Re: [PATCH v3 0/4] Remove dependency of check subcmd upon orc

2020-07-30 Thread Josh Poimboeuf
On Thu, Jul 30, 2020 at 10:41:39AM +0100, Julien Thierry wrote: > Hi, > > Matt Helsley's change[1] provided a base framework to opt-in/out > objtool subcommands at compile time. This makes it easier for > architectures to port objtool, one subcommand at a time. > > Orc generation relies on the

Re: [PATCH 01/23] ns: Add common refcount into ns_common add use it as counter for net_ns

2020-07-30 Thread Kirill Tkhai
On 30.07.2020 16:35, Christian Brauner wrote: > On Thu, Jul 30, 2020 at 02:59:25PM +0300, Kirill Tkhai wrote: >> Currently, every type of namespaces has its own counter, >> which is stored in ns-specific part. Say, @net has >> struct net::count, @pid has struct pid_namespace::kref, etc. >> >> This

[PATCH bpf-next v7 4/7] bpf: Split bpf_local_storage to bpf_sk_storage

2020-07-30 Thread KP Singh
From: KP Singh A purely mechanical change: bpf_sk_storage.c = bpf_sk_storage.c + bpf_local_storage.c bpf_sk_storage.h = bpf_sk_storage.h + bpf_local_storage.h Signed-off-by: KP Singh --- include/linux/bpf_local_storage.h | 163 include/net/bpf_sk_storage.h | 61

[PATCH bpf-next v7 3/7] bpf: Generalize bpf_sk_storage

2020-07-30 Thread KP Singh
From: KP Singh Refactor the functionality in bpf_sk_storage.c so that concept of storage linked to kernel objects can be extended to other objects like inode, task_struct etc. Each new local storage will still be a separate map and provide its own set of helpers. This allows for future object

Re: [PATCH v2 04/10] gpio: dwapb: Add max GPIOs macro

2020-07-30 Thread Serge Semin
On Thu, Jul 30, 2020 at 05:05:26PM +0300, Andy Shevchenko wrote: > On Thu, Jul 30, 2020 at 04:55:30PM +0300, Serge Semin wrote: > > Add a new macro DWAPB_MAX_GPIOS which defines the maximum possible number > > of GPIO lines corresponding to the maximum DW APB GPIO controller port > > width. Use

[PATCH v4] coccinelle: api: add kvfree script

2020-07-30 Thread Denis Efremov
Check that alloc and free types of functions match each other. Signed-off-by: Denis Efremov --- Changes in v2: - Lines are limited to 80 characters where possible - Confidence changed from High to Medium because of fs/btrfs/send.c:1119 false-positive - __vmalloc_area_node() explicitly

[PATCH bpf-next v7 5/7] bpf: Implement bpf_local_storage for inodes

2020-07-30 Thread KP Singh
From: KP Singh Similar to bpf_local_storage for sockets, add local storage for inodes. The life-cycle of storage is managed with the life-cycle of the inode. i.e. the storage is destroyed along with the owning inode. The BPF LSM allocates an __rcu pointer to the bpf_local_storage in the

[PATCH bpf-next v7 7/7] bpf: Add selftests for local_storage

2020-07-30 Thread KP Singh
From: KP Singh inode_local_storage: * Hook to the file_open and inode_unlink LSM hooks. * Create and unlink a temporary file. * Store some information in the inode's bpf_local_storage during file_open. * Verify that this information exists when the file is unlinked. sk_local_storage: * Hook

[PATCH bpf-next v7 0/7] Generalizing bpf_local_storage

2020-07-30 Thread KP Singh
From: KP Singh # v6 -> v7 - Updated the series to use Martin's POC patch: https://lore.kernel.org/bpf/20200725013047.4006241-1-ka...@fb.com/ I added a Co-developed-by: tag, but would need Martin's Signoff (was not sure of the procedure here). - Rebase. # v5 -> v6 - Fixed a build

[PATCH bpf-next v7 6/7] bpf: Allow local storage to be used from LSM programs

2020-07-30 Thread KP Singh
From: KP Singh Adds support for both bpf_{sk, inode}_storage_{get, delete} to be used in LSM programs. These helpers are not used for tracing programs (currently) as their usage is tied to the life-cycle of the object and should only be used where the owning object won't be freed (when the

[PATCH] sched: Provide USF for the portable equipment.

2020-07-30 Thread Dongdong Yang
From: Dongdong Yang This patch provides USF(User Sensitive Feedback factor) auxiliary cpufreq governor to support high level layer sysfs inodes setting for utils adjustment purpose from the identified scenario on portable equipment. Because the power consumption and UI response are more cared

[PATCH bpf-next v7 1/7] A purely mechanical change to split the renaming from the actual generalization.

2020-07-30 Thread KP Singh
From: KP Singh Flags/consts: SK_STORAGE_CREATE_FLAG_MASK BPF_LOCAL_STORAGE_CREATE_FLAG_MASK BPF_SK_STORAGE_CACHE_SIZE BPF_LOCAL_STORAGE_CACHE_SIZE MAX_VALUE_SIZEBPF_LOCAL_STORAGE_MAX_VALUE_SIZE Structs: bucketbpf_local_storage_map_bucket

[PATCH] sched: Provide USF for the portable equipment.

2020-07-30 Thread Dongdong Yang
From: Dongdong Yang The power consumption and UI response are more cared for by the portable equipment users. USF(User Sensitive Feedback factor) auxiliary cpufreq governor is providing more utils adjustment settings to a high level by scenario identification. >From the view of portable

[PATCH bpf-next v7 2/7] bpf: Generalize caching for sk_storage.

2020-07-30 Thread KP Singh
From: KP Singh Provide the a ability to define local storage caches on a per-object type basis. The caches and caching indices for different objects should not be inter-mixed as suggested in: https://lore.kernel.org/bpf/20200630193441.kdwnkestulg5e...@kafai-mbp.dhcp.thefacebook.com/

Re: [PATCH v3 1/4] objtool: Move object file loading out of check

2020-07-30 Thread Josh Poimboeuf
On Thu, Jul 30, 2020 at 10:41:40AM +0100, Julien Thierry wrote: > +struct objtool_file *objtool_setup_file(const char *_objname) > +{ > + if (objname) { > + if (strcmp(objname, _objname)) { > + WARN("won't handle more than one file at a time"); > +

Re: [PATCH] Module argument to control whether intel-spi-pci attempts to turn the SPI flash chip writeable

2020-07-30 Thread Arnd Bergmann
On Thu, Jul 30, 2020 at 2:21 PM Daniel Gutson wrote: > El jue., 30 jul. 2020 2:31 a. m., Greg Kroah-Hartman > escribió: >> >> Again, module parameters are working on a per-chunk-of-code basis, while >> you want to work on a per-device basis, > > > I think there is a misunderstanding. What I

Re: [PATCH 09/23] ns: Introduce ns_idr to be able to iterate all allocated namespaces in the system

2020-07-30 Thread Kirill Tkhai
On 30.07.2020 16:56, Matthew Wilcox wrote: > On Thu, Jul 30, 2020 at 04:32:22PM +0300, Kirill Tkhai wrote: >> On 30.07.2020 15:23, Matthew Wilcox wrote: >>> xa_erase_irqsave(); >> >> static inline void *xa_erase_irqsave(struct xarray *xa, unsigned long index) >> { >> unsigned long flags; >>

Re: [PATCH 8/8] modules: inherit TAINT_PROPRIETARY_MODULE

2020-07-30 Thread Jessica Yu
+++ Christoph Hellwig [30/07/20 08:10 +0200]: If a TAINT_PROPRIETARY_MODULE exports symbol, inherit the taint flag for all modules importing these symbols, and don't allow loading symbols from TAINT_PROPRIETARY_MODULE modules if the module previously imported gplonly symbols. Add a

Re: [PATCH] iocost: Fix check condition of iocg abs_vdebt

2020-07-30 Thread Tejun Heo
Hello, On Thu, Jul 30, 2020 at 05:03:21PM +0800, Chengming Zhou wrote: > We shouldn't skip iocg when its abs_vdebt is not zero. > > Fixes: 0b80f9866e6b ("iocost: protect iocg->abs_vdebt with > iocg->waitq.lock") > > Signed-off-by: Chengming Zhou Acked-by: Tejun Heo Thanks. -- tejun

[PATCH] clk: bcm2835: Do not use prediv with bcm2711's PLLs

2020-07-30 Thread Nicolas Saenz Julienne
Contrary to previous SoCs, bcm2711 doesn't have a prescaler in the PLL feedback loop. Bypass it by zeroing fb_prediv_mask. Note that, since the prediv configuration bits were re-purposed, this was triggering a miscalculation on all clock hanging from the VPU clock, notably the aux UART, making

Re: [PATCH rdma-rc 0/3] Simple fixes to DIM and mlx5

2020-07-30 Thread Jason Gunthorpe
On Thu, Jul 30, 2020 at 11:27:16AM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky > > Hi, > > First patch fixes an issue observed after auto-PID series was merged, > but because the bug that not-initialized mutex existed before, the > patch is sent to -rc. > > Other two patches are

Re: kswapd warning at kernel/rcu/tree.c:1358 rcu_advance_cbs_nowake causing processes to enter d state

2020-07-30 Thread Joseph Feather
Resending as plaintext. From: Joseph Feather Sent: Thursday, July 30, 2020 9:59 AM To: Paul E. McKenney ; Josh Triplett Cc: linux-kernel@vger.kernel.org ; Timothy Heilman ; Wilfredo Crespo ; Michael Barr Subject: kswapd warning at kernel/rcu/tree.c:1358 rcu_advance_cbs_nowake causing

Re: [PATCH] iocost_monitor: start from the oldest usage index

2020-07-30 Thread Tejun Heo
On Thu, Jul 30, 2020 at 08:31:04PM +0800, Chengming Zhou wrote: > iocg usage_idx is the latest usage index, we should start from the > oldest usage index to show the consecutive NR_USAGE_SLOTS usages. > > Signed-off-by: Chengming Zhou Acked-by: Tejun Heo Thanks. -- tejun

Re: [PATCH 09/23] ns: Introduce ns_idr to be able to iterate all allocated namespaces in the system

2020-07-30 Thread Matthew Wilcox
On Thu, Jul 30, 2020 at 05:12:09PM +0300, Kirill Tkhai wrote: > On 30.07.2020 16:56, Matthew Wilcox wrote: > > On Thu, Jul 30, 2020 at 04:32:22PM +0300, Kirill Tkhai wrote: > >> On 30.07.2020 15:23, Matthew Wilcox wrote: > >>> xa_erase_irqsave(); > >> > >> static inline void

Re: [PATCH v3 2/4] objtool: Move orc outside of check

2020-07-30 Thread Josh Poimboeuf
On Thu, Jul 30, 2020 at 02:29:20PM +0100, Julien Thierry wrote: > > > On 7/30/20 2:22 PM, pet...@infradead.org wrote: > > On Thu, Jul 30, 2020 at 01:40:42PM +0100, Julien Thierry wrote: > > > > > > > > > On 7/30/20 10:57 AM, pet...@infradead.org wrote: > > > > On Thu, Jul 30, 2020 at

Re: [PATCH v2 00/10] gpio: dwapb: Refactor GPIO resources initialization

2020-07-30 Thread Serge Semin
Wou, I've confused my SOB tag here. Linus, if no additional patchset revision is required, could you please replace it with: Signed-off-by: Serge Semin ? Alternatively I could resend the series with correct version of the tag. -Sergey On Thu, Jul 30, 2020 at 04:55:26PM +0300, Serge Semin

Re: [PATCH] Module argument to control whether intel-spi-pci attempts to turn the SPI flash chip writeable

2020-07-30 Thread Daniel Gutson
On Thu, Jul 30, 2020 at 11:09 AM Arnd Bergmann wrote: > > On Thu, Jul 30, 2020 at 2:21 PM Daniel Gutson wrote: > > El jue., 30 jul. 2020 2:31 a. m., Greg Kroah-Hartman > > escribió: > >> > >> Again, module parameters are working on a per-chunk-of-code basis, while > >> you want to work on a

[Question] the check of ioeventfd collision in kvm_*assign_ioeventfd_idx

2020-07-30 Thread Zhenyu Ye
Hi all, There are checks of ioeventfd collision in both kvm_assign_ioeventfd_idx() and kvm_deassign_ioeventfd_idx(), however, with different logic. In kvm_assign_ioeventfd_idx(), this is done by ioeventfd_check_collision(): ---8<--- if (_p->bus_idx == p->bus_idx && _p->addr

Re: [PATCH 09/23] ns: Introduce ns_idr to be able to iterate all allocated namespaces in the system

2020-07-30 Thread Kirill Tkhai
On 30.07.2020 17:15, Matthew Wilcox wrote: > On Thu, Jul 30, 2020 at 05:12:09PM +0300, Kirill Tkhai wrote: >> On 30.07.2020 16:56, Matthew Wilcox wrote: >>> On Thu, Jul 30, 2020 at 04:32:22PM +0300, Kirill Tkhai wrote: On 30.07.2020 15:23, Matthew Wilcox wrote: > xa_erase_irqsave();

Re: [PATCH] Module argument to control whether intel-spi-pci attempts to turn the SPI flash chip writeable

2020-07-30 Thread Daniel Gutson
On Thu, Jul 30, 2020 at 11:18 AM Daniel Gutson wrote: > > On Thu, Jul 30, 2020 at 11:09 AM Arnd Bergmann wrote: > > > > On Thu, Jul 30, 2020 at 2:21 PM Daniel Gutson wrote: > > > El jue., 30 jul. 2020 2:31 a. m., Greg Kroah-Hartman > > > escribió: > > >> > > >> Again, module parameters are

Re: [PATCH bpf-next 1/1] arm64: bpf: Add BPF exception tables

2020-07-30 Thread Jean-Philippe Brucker
On Thu, Jul 30, 2020 at 08:28:56AM -0400, Qian Cai wrote: > On Tue, Jul 28, 2020 at 05:21:26PM +0200, Jean-Philippe Brucker wrote: > > When a tracing BPF program attempts to read memory without using the > > bpf_probe_read() helper, the verifier marks the load instruction with > > the

[PATCH 1/2] ASoC: tlv320adcx140: Fix GPO register start address

2020-07-30 Thread Dan Murphy
The header was updated to align with the data sheet to start the GPO_CFG at GPO_CFG0. The code was not updated to the change and therefore the GPO_CFG0 register was not written to. Fixes: 6617cff6a05e ("ASoC: tlv320adcx140: Add GPO configuration and drive output config") Signed-off-by: Dan

Re: [PATCH v2 04/10] gpio: dwapb: Add max GPIOs macro

2020-07-30 Thread Serge Semin
On Thu, Jul 30, 2020 at 05:05:26PM +0300, Andy Shevchenko wrote: > On Thu, Jul 30, 2020 at 04:55:30PM +0300, Serge Semin wrote: > > Add a new macro DWAPB_MAX_GPIOS which defines the maximum possible number > > of GPIO lines corresponding to the maximum DW APB GPIO controller port > > width. Use

[PATCH 2/2] ASoC: tlv320adcx140: Move device reset to before programming

2020-07-30 Thread Dan Murphy
Reset the device before programming the registers or all programming will be lost as the device resets registers to default settings. Signed-off-by: Dan Murphy --- sound/soc/codecs/tlv320adcx140.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [PATCH v1 2/4] [RFC] x86/trampfd: Provide support for the trampoline file descriptor

2020-07-30 Thread Madhavan T. Venkataraman
Yes. I will fix this. Thanks. Madhavan On 7/30/20 4:06 AM, Greg KH wrote: > On Tue, Jul 28, 2020 at 08:10:48AM -0500, madve...@linux.microsoft.com wrote: >> +EXPORT_SYMBOL_GPL(trampfd_valid_regs); > Why are all of these exported? I don't see a module user in this > series, or did I miss it

Re: [PATCH v2 06/10] gpio: dwapb: Discard GPIO-to-IRQ mapping function

2020-07-30 Thread Andy Shevchenko
On Thu, Jul 30, 2020 at 04:55:32PM +0300, Serge Semin wrote: > Since GPIOlib-based IRQ-chip interface is now utilized there is no need in > setting up a custom GPIO-to-IRQ mapping method. GPIO-lib defines the > standard mapping method - gpiochip_to_irq(), which will be used anyway no > matter

Re: [PATCH v2 05/10] gpio: dwapb: Convert driver to using the GPIO-lib-based IRQ-chip

2020-07-30 Thread Andy Shevchenko
On Thu, Jul 30, 2020 at 04:55:31PM +0300, Serge Semin wrote: > GPIO-lib provides a ready-to-use interface to initialize an IRQ-chip on > top of a GPIO chip. It's better from maintainability and readability > point of view to use one instead of supporting a hand-written Generic > IRQ-chip-based

Re: [PATCH v2 07/10] gpio: dwapb: Discard ACPI GPIO-chip IRQs request

2020-07-30 Thread Andy Shevchenko
On Thu, Jul 30, 2020 at 04:55:33PM +0300, Serge Semin wrote: > Since GPIOlib-based IRQ-chip interface is now utilized there is no need > in calling the methods acpi_gpiochip_{request,free}_interrupts() here. > They will be called from gpiochip_add_irqchip()/gpiochip_irqchip_remove() > anyway.

Re: [PATCH v3 4/4] objtool: orc_gen: Move orc_entry out of instruction structure

2020-07-30 Thread Josh Poimboeuf
On Thu, Jul 30, 2020 at 02:45:46PM +0100, Julien Thierry wrote: > > > But I agree the proposed code is not ideal and on the other we've tried > > > avoiding #ifdef in the code. Ideally I'd have an empty orc_entry > > > definition > > > when SUBCMD_ORC is not implemented. > > > > > > Would you

Re: [PATCH 11/23] fs: Add /proc/namespaces/ directory

2020-07-30 Thread Kirill Tkhai
On 30.07.2020 16:26, Christian Brauner wrote: > On Thu, Jul 30, 2020 at 03:00:19PM +0300, Kirill Tkhai wrote: >> This is a new directory to show all namespaces, which can be >> accessed from this /proc tasks credentials. >> >> Every /proc is related to a pid_namespace, and the pid_namespace >> is

Re: [PATCH 01/23] ns: Add common refcount into ns_common add use it as counter for net_ns

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 02:59:25PM +0300, Kirill Tkhai wrote: > Currently, every type of namespaces has its own counter, > which is stored in ns-specific part. Say, @net has > struct net::count, @pid has struct pid_namespace::kref, etc. > > This patchset introduces unified counter for all types >

Re: [PATCH 02/23] uts: Use generic ns_common::count

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 02:59:31PM +0300, Kirill Tkhai wrote: > Convert uts namespace to use generic counter instead of kref. > > Signed-off-by: Kirill Tkhai > --- (sidenote: given that kref is implemented on top of refcount_t I wonder whether we shouldn't just slowly convert all places where

[PATCH] RFC: selinux avc trace

2020-07-30 Thread peter enderborg
I did manage to rebase it but this is about my approach. Compared to Thiébaud Weksteen patch this adds: 1 Filtering. Types goes to trace so we can put up a filter for contexts or type etc. 2 It tries also to cover non denies.  And upon that you should be able to do coverage tools. I think

[PATCH 1/2] power: bq27xxx: Update to SPDX licensing

2020-07-30 Thread Dan Murphy
Update the license to the SPDX licensing format. Signed-off-by: Dan Murphy --- drivers/power/supply/bq27xxx_battery.c | 9 + drivers/power/supply/bq27xxx_battery_hdq.c | 9 + drivers/power/supply/bq27xxx_battery_i2c.c | 10 +- 3 files changed, 3 insertions(+), 25

[PATCH] Introduce support for Systems Management Driver over WMI for Dell Systems

2020-07-30 Thread Divya Bharathi
From: Divya Bharathi The Dell WMI Systems Management Driver provides a sysfs interface for systems management to enable BIOS configuration capability on certain Dell Systems. This driver allows user to configure Dell systems with a uniform common interface. To facilitate this, the patch

[PATCH 2/2] power: bq27xxx: Fix spacing style and white space issues

2020-07-30 Thread Dan Murphy
Fix spacing style issues with the chip data array. As well as fix missing new line after variable declaration. Signed-off-by: Dan Murphy --- drivers/power/supply/bq27xxx_battery.c | 63 ++ 1 file changed, 33 insertions(+), 30 deletions(-) diff --git

Re: [PATCH 03/23] ipc: Use generic ns_common::count

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 02:59:36PM +0300, Kirill Tkhai wrote: > Convert uts namespace to use generic counter. > > Signed-off-by: Kirill Tkhai > --- Acked-by: Christian Brauner > include/linux/ipc_namespace.h |3 +-- > ipc/msgutil.c |2 +- > ipc/namespace.c

Re: [PATCH 01/23] ns: Add common refcount into ns_common add use it as counter for net_ns

2020-07-30 Thread Kirill Tkhai
On 30.07.2020 17:30, Christian Brauner wrote: > On Thu, Jul 30, 2020 at 02:59:25PM +0300, Kirill Tkhai wrote: >> Currently, every type of namespaces has its own counter, >> which is stored in ns-specific part. Say, @net has >> struct net::count, @pid has struct pid_namespace::kref, etc. >> >> This

Re: [PATCH 00/23] proc: Introduce /proc/namespaces/ directory to expose namespaces lineary

2020-07-30 Thread Eric W. Biederman
Kirill Tkhai writes: > Currently, there is no a way to list or iterate all or subset of namespaces > in the system. Some namespaces are exposed in /proc/[pid]/ns/ directories, > but some also may be as open files, which are not attached to a process. > When a namespace open fd is sent over unix

Re: [PATCH 04/23] pid: Use generic ns_common::count

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 02:59:41PM +0300, Kirill Tkhai wrote: > Convert pid namespace to use generic counter. > > Signed-off-by: Kirill Tkhai > --- Looks good! Acked-by: Christian Brauner > include/linux/pid_namespace.h |4 +--- > kernel/pid.c |2 +- >

Re: [PATCH v2 05/10] gpio: dwapb: Convert driver to using the GPIO-lib-based IRQ-chip

2020-07-30 Thread Serge Semin
On Thu, Jul 30, 2020 at 05:26:18PM +0300, Andy Shevchenko wrote: > On Thu, Jul 30, 2020 at 04:55:31PM +0300, Serge Semin wrote: > > GPIO-lib provides a ready-to-use interface to initialize an IRQ-chip on > > top of a GPIO chip. It's better from maintainability and readability > > point of view to

Re: [PATCH 01/23] ns: Add common refcount into ns_common add use it as counter for net_ns

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 05:34:28PM +0300, Kirill Tkhai wrote: > On 30.07.2020 17:30, Christian Brauner wrote: > > On Thu, Jul 30, 2020 at 02:59:25PM +0300, Kirill Tkhai wrote: > >> Currently, every type of namespaces has its own counter, > >> which is stored in ns-specific part. Say, @net has > >>

Re: (resend) [PATCH [linux-4.14.y]] dm cache: submit writethrough writes in parallel to origin and cache

2020-07-30 Thread John Donnelly
> On Jul 30, 2020, at 12:21 AM, Greg KH wrote: > > On Wed, Jul 29, 2020 at 06:45:46PM -0500, John Donnelly wrote: >> >> >> On 7/29/20 9:16 AM, Mike Snitzer wrote: >>> On Wed, Jul 29 2020 at 7:55am -0400, >>> Greg KH wrote: >>> On Wed, Jul 29, 2020 at 01:51:19PM +0200, Greg KH wrote:

Re: [RFC PATCH 01/14] coresight: etm4x: Skip save/restore before device registration

2020-07-30 Thread Suzuki K Poulose
On 07/29/2020 07:01 PM, Mathieu Poirier wrote: Hi Suzuki, I have starte to review this - comments will be scattered over a few days. On Wed, Jul 22, 2020 at 06:20:27PM +0100, Suzuki K Poulose wrote: Skip cpu save/restore before the coresight device is registered. Cc: Mathieu Poirier Cc:

Re: [PATCH v1 0/4] [RFC] Implement Trampoline File Descriptor

2020-07-30 Thread Madhavan T. Venkataraman
For some reason my email program is not delivering to all the recipients because of some formatting issues. I am resending. I apologize. I will try to get this fixed. Sorry for the delay. I just needed to think about it a little. I will respond to your first suggestion in this email. I will

Re: [PATCH v2 5/9] objtool: Make relocation in alternative handling arch dependent

2020-07-30 Thread Josh Poimboeuf
On Thu, Jul 30, 2020 at 10:46:48AM +0100, Julien Thierry wrote: > As pointed out by the comment in handle_group_alt(), support of > relocation for instructions in an alternative group depends on whether > arch specific kernel code handles it. > > So, let objtool arch specific code decide whether

Re: [PATCH v3 0/4] Remove dependency of check subcmd upon orc

2020-07-30 Thread Julien Thierry
On 7/30/20 3:06 PM, Josh Poimboeuf wrote: On Thu, Jul 30, 2020 at 10:41:39AM +0100, Julien Thierry wrote: Hi, Matt Helsley's change[1] provided a base framework to opt-in/out objtool subcommands at compile time. This makes it easier for architectures to port objtool, one subcommand at a

Re: [PATCH v3 1/4] objtool: Move object file loading out of check

2020-07-30 Thread Julien Thierry
On 7/30/20 3:09 PM, Josh Poimboeuf wrote: On Thu, Jul 30, 2020 at 10:41:40AM +0100, Julien Thierry wrote: +struct objtool_file *objtool_setup_file(const char *_objname) +{ + if (objname) { + if (strcmp(objname, _objname)) { + WARN("won't handle more

Re: [PATCH 00/23] proc: Introduce /proc/namespaces/ directory to expose namespaces lineary

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 09:34:01AM -0500, Eric W. Biederman wrote: > Kirill Tkhai writes: > > > Currently, there is no a way to list or iterate all or subset of namespaces > > in the system. Some namespaces are exposed in /proc/[pid]/ns/ directories, > > but some also may be as open files, which

Re: [PATCH v3 2/4] objtool: Move orc outside of check

2020-07-30 Thread Julien Thierry
On 7/30/20 3:15 PM, Josh Poimboeuf wrote: On Thu, Jul 30, 2020 at 02:29:20PM +0100, Julien Thierry wrote: On 7/30/20 2:22 PM, pet...@infradead.org wrote: On Thu, Jul 30, 2020 at 01:40:42PM +0100, Julien Thierry wrote: On 7/30/20 10:57 AM, pet...@infradead.org wrote: On Thu, Jul 30,

Re: [PATCH 05/23] user: Use generic ns_common::count

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 02:59:47PM +0300, Kirill Tkhai wrote: > Convert user namespace to use generic counter. > > Signed-off-by: Kirill Tkhai > --- Looks good! Acked-by: Christian Brauner > include/linux/user_namespace.h |5 ++--- > kernel/user.c |2 +- >

[PATCH v2 0/3] More IPU cleanups v2

2020-07-30 Thread Paul Cercueil
Patch [1/3] unchanged. Patches [2/3] and [3/3] have had their commit message slightly modified, but the patches themselves are the same as before. Cheers, -Paul Paul Cercueil (3): drm/ingenic: ipu: Only restart manually on older SoCs drm/ingenic: ipu: Remove YUV422 from supported formats on

[PATCH v2 3/3] drm/ingenic: ipu: Only enable clock when needed

2020-07-30 Thread Paul Cercueil
Instead of keeping the IPU clock enabled constantly, enable and disable it on demand, when the IPU plane is used. That way, we won't use any extra power when the IPU is not used. v2: Explain the reason of this patch Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-ipu.c | 23

[PATCH v2 2/3] drm/ingenic: ipu: Remove YUV422 from supported formats on JZ4725B

2020-07-30 Thread Paul Cercueil
When configuring the IPU for packed YUV 4:2:2, depending on the scaling ratios given by the source and destination resolutions, it is possible to crash the IPU block, to the point where a software reset of the IP does not fix it. This can happen anytime, in the first few frames, or after dozens of

[PATCH v2 1/3] drm/ingenic: ipu: Only restart manually on older SoCs

2020-07-30 Thread Paul Cercueil
On older SoCs, it is necessary to restart manually the IPU when a frame is done processing. Doing so on newer SoCs (JZ4760/70) kinds of work too, until the input or output resolutions or the framerate are too high. Make it work properly on newer SoCs by letting the LCD controller trigger the IPU

Re: [PATCH 06/23] mnt: Use generic ns_common::count

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 02:59:52PM +0300, Kirill Tkhai wrote: > Convert mount namespace to use generic counter. > > Signed-off-by: Kirill Tkhai > --- Looks good! Acked-by: Christian Brauner > fs/mount.h |3 +-- > fs/namespace.c |4 ++-- > 2 files changed, 3 insertions(+), 4

Re: [PATCH 07/23] cgroup: Use generic ns_common::count

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 02:59:57PM +0300, Kirill Tkhai wrote: > Convert cgroup namespace to use generic counter. > > Signed-off-by: Kirill Tkhai > --- Looks good! Acked-by: Christian Brauner > include/linux/cgroup.h|5 ++--- > kernel/cgroup/cgroup.c|2 +- >

Re: [PATCH] RFC: selinux avc trace

2020-07-30 Thread Stephen Smalley
On Thu, Jul 30, 2020 at 10:29 AM peter enderborg wrote: > > I did manage to rebase it but this is about my approach. > > Compared to Thiébaud Weksteen patch this adds: > > 1 Filtering. Types goes to trace so we can put up a filter for contexts or > type etc. > > 2 It tries also to cover non

Re: [PATCH 08/23] time: Use generic ns_common::count

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 03:00:03PM +0300, Kirill Tkhai wrote: > Convert time namespace to use generic counter. > > Signed-off-by: Kirill Tkhai > --- Looks good! Acked-by: Christian Brauner > include/linux/time_namespace.h |9 - > kernel/time/namespace.c|9 +++-- >

Re: [RFC PATCH 02/14] coresight: Introduce device access abstraction

2020-07-30 Thread Suzuki K Poulose
On 07/29/2020 08:56 PM, Mathieu Poirier wrote: On Wed, Jul 22, 2020 at 06:20:28PM +0100, Suzuki K Poulose wrote: We are about to introduce support for sysreg access to ETMv4.4+ component. Since there are generic routines that access the registers (e.g, CS_LOCK/UNLOCK , claim/disclaim

Re: [PATCH v2 8/9] frame: Make unwind hints definitions available to other architectures

2020-07-30 Thread Josh Poimboeuf
On Thu, Jul 30, 2020 at 10:46:51AM +0100, Julien Thierry wrote: > Unwind hints are useful to provide objtool with information about stack > states in non-standard functions/code. > While the type of information being provided might be very arch > specific, the mechanism to provide the information

Re: [PATCH][next] ALSA: vmaster: Use flex_array_size() helper in memcpy()

2020-07-30 Thread Takashi Iwai
On Thu, 30 Jul 2020 15:12:33 +0200, Gustavo A. R. Silva wrote: > > > > On 7/30/20 03:41, Takashi Iwai wrote: > > On Thu, 30 Jul 2020 00:18:29 +0200, > > Gustavo A. R. Silva wrote: > >> > >> Make use of the flex_array_size() helper to calculate the size of a > >> flexible array member within an

[PATCH 2/2] power: supply: bq25790: Introduce the BQ25790 charger driver

2020-07-30 Thread Dan Murphy
BQ25790 is a highly integrated switch-mode buck-boost charger for 1-4 cell Li-ion battery and Li-polymer battery. Signed-off-by: Dan Murphy --- drivers/power/supply/Kconfig |8 + drivers/power/supply/Makefile |1 + drivers/power/supply/bq25790_charger.c | 1117

[PATCH 1/2] dt-bindings: power: Add the bq25790 dt bindings

2020-07-30 Thread Dan Murphy
Add the bindings for the bq25790. Signed-off-by: Ricardo Rivera-Matos Signed-off-by: Dan Murphy --- .../bindings/power/supply/bq25790.yaml| 87 +++ 1 file changed, 87 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/bq25790.yaml diff

Re: linux-next: build failure after merge of the origin tree

2020-07-30 Thread Will Deacon
On Thu, Jul 30, 2020 at 11:09:23AM +0100, Catalin Marinas wrote: > On Thu, Jul 30, 2020 at 10:59:09AM +0100, Marc Zyngier wrote: > > From 33d819f4efa0a4474b5dc2e4bcaef1b886ca30c3 Mon Sep 17 00:00:00 2001 > > From: Marc Zyngier > > Date: Thu, 30 Jul 2020 10:53:05 +0100 > > Subject: [PATCH] arm64:

Re: [PATCH 00/23] proc: Introduce /proc/namespaces/ directory to expose namespaces lineary

2020-07-30 Thread Kirill Tkhai
On 30.07.2020 17:34, Eric W. Biederman wrote: > Kirill Tkhai writes: > >> Currently, there is no a way to list or iterate all or subset of namespaces >> in the system. Some namespaces are exposed in /proc/[pid]/ns/ directories, >> but some also may be as open files, which are not attached to a

Re: [PATCH v5 1/4] IMA: Add func to measure LSM state and policy

2020-07-30 Thread Tyler Hicks
On 2020-07-29 20:47:21, Lakshmi Ramasubramanian wrote: > Critical data structures of security modules need to be measured to > enable an attestation service to verify if the configuration and > policies for the security modules have been setup correctly and > that they haven't been tampered with

Re: [PATCH v2 9/9] objtool: Abstract unwind hint reading

2020-07-30 Thread Josh Poimboeuf
On Thu, Jul 30, 2020 at 10:46:52AM +0100, Julien Thierry wrote: > The type of unwind hints and the semantics associated with them depend > on the architecture. Let arch specific code convert unwind hints into > objtool stack state descriptions. > > Signed-off-by: Julien Thierry > --- >

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