[PATCH 4/4] irqchip: qcom-pdc: Introduce irq_set_wake call

2020-05-22 Thread Maulik Shah
Remove irq_disable callback to allow lazy disable for pdc interrupts. Add irq_set_wake callback that unmask interrupt in HW when drivers mark interrupt for wakeup. Interrupt will be cleared in HW during lazy disable if its not marked for wakeup. Signed-off-by: Maulik Shah --- drivers/irqchip/qc

[PATCH 3/4] pinctrl: qcom: Add msmgpio irqchip flags

2020-05-22 Thread Maulik Shah
Add irqchip specific flags for msmgpio irqchip to mask non wakeirqs during suspend and mask before setting irq type. Signed-off-by: Maulik Shah --- drivers/pinctrl/qcom/pinctrl-msm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/

[PATCH 0/4] irqchip: qcom: pdc: Introduce irq_set_wake call

2020-05-22 Thread Maulik Shah
This series adds support to lazy disable pdc interrupt. Some drivers using gpio interrupts want to configure gpio for wakeup using enable_irq_wake() but during suspend entry disables irq and expects system to resume when interrupt occurs. In the driver resume call interrupt is re-enabled and remov

[PATCH 2/4] pinctrl: qcom: Remove irq_disable callback from msmgpio irqchip

2020-05-22 Thread Maulik Shah
The gpio can be marked for wakeup and drivers can invoke disable_irq() during suspend, in such cases unlazy approach will also disable at HW and such gpios will not wakeup device from suspend to RAM. Remove irq_disable callback to allow gpio interrupts to lazy disabled. The gpio interrupts will ge

Re: [PATCH] drivers/hwmon/nct7802: Replace container_of() API

2020-05-22 Thread Guenter Roeck
On Tue, May 19, 2020 at 08:25:19AM -0400, zhenghaili wrote: > From: hailizheng > > Replace container_of() API with kobj_to_dev(). > > Signed-off-by: hailizheng Applied. Thanks, Guenter > --- > drivers/hwmon/nct7802.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --

Re: Re: [PATCH] media: staging: tegra-vde: fix runtime pm imbalance on error

2020-05-22 Thread Dan Carpenter
On Fri, May 22, 2020 at 03:10:31PM +0200, Thierry Reding wrote: > On Thu, May 21, 2020 at 08:39:02PM +0300, Dan Carpenter wrote: > > On Thu, May 21, 2020 at 05:22:05PM +0200, Rafael J. Wysocki wrote: > > > On Thu, May 21, 2020 at 11:15 AM Dan Carpenter > > > wrote: > > > > > > > > On Thu, May 21,

Re: Re: [PATCH] drm/panfrost: fix runtime pm imbalance on error

2020-05-22 Thread dinghao . liu
Thank you for your further explanation! It's all clear for me and I will write a new patch to fix this imbalance. Regards, Dinghao > On 21/05/2020 08:00, dinghao@zju.edu.cn wrote: > > Hi Steve, > > > > There are two bailing out points in panfrost_job_hw_submit(): one is > > the error path b

Re: [PATCH v13 11/11] pwm: core: Convert period and duty cycle to u64

2020-05-22 Thread Uwe Kleine-König
On Tue, Apr 21, 2020 at 07:57:23PM -0700, Guru Das Srinagesh wrote: > Because period and duty cycle are defined as ints with units of > nanoseconds, the maximum time duration that can be set is limited to > ~2.147 seconds. Change their definitions to u64 in the structs of the > PWM framework so tha

Re: [PATCH V2 2/3] mmc: sdhci-msm: Use internal voltage control

2020-05-22 Thread Veerabhadrarao Badiganti
Hi Bjorn, On 5/22/2020 12:37 AM, Bjorn Andersson wrote: On Thu 21 May 08:23 PDT 2020, Veerabhadrarao Badiganti wrote: On qcom SD host controllers voltage switching be done after the HW is ready for it. The HW informs its readiness through power irq. The voltage switching should happen only the

Re: [PATCH 00/13] Reconcile NUMA balancing decisions with the load balancer v6

2020-05-22 Thread Mel Gorman
On Thu, May 21, 2020 at 01:41:32PM +0200, Peter Zijlstra wrote: > On Thu, May 21, 2020 at 11:38:16AM +0100, Mel Gorman wrote: > > IIUC, this patch front-loads as much work as possible before checking if > > the task is on_rq and then the waker/wakee shares a cache, queue task on > > the wake_list a

Re: [GRUB PATCH RFC 15/18] i386/txt: Add Intel TXT core implementation

2020-05-22 Thread Krystian Hebel
On 05.05.2020 01:21, Daniel Kiper wrote: +static grub_err_t +init_txt_heap (struct grub_slaunch_params *slparams, struct grub_txt_acm_header *sinit) +{ + grub_uint8_t *txt_heap; + grub_uint32_t os_sinit_data_ver, sinit_caps; + grub_uint64_t *size; + struct grub_txt_os_mle_data *os_mle_data

[PATCH v5 1/2] dt-bindings: mailbox: Add the Spreadtrum mailbox documentation

2020-05-22 Thread Baolin Wang
From: Baolin Wang Add the Spreadtrum mailbox documentation. Reviewed-by: Rob Herring Signed-off-by: Baolin Wang Signed-off-by: Baolin Wang --- Changes from v4: -None. Changes from v3: - None. Changes from v2: - Add reviewed tag from Rob. - Remove redundant 'minItems'. Changes from v1:

[PATCH v5 2/2] mailbox: sprd: Add Spreadtrum mailbox driver

2020-05-22 Thread Baolin Wang
From: Baolin Wang The Spreadtrum mailbox controller supports 8 channels to communicate with MCUs, and it contains 2 different parts: inbox and outbox, which are used to send and receive messages by IRQ mode. Signed-off-by: Baolin Wang Signed-off-by: Baolin Wang --- Changes from v4: - Implemen

Re: Re: [PATCH] PCI: dwc: Warn only for non-prefetchable memory resource size >4GB

2020-05-22 Thread Lorenzo Pieralisi
On Fri, May 22, 2020 at 02:06:55PM +0200, Thierry Reding wrote: > On Wed, May 20, 2020 at 04:48:16PM -0600, Rob Herring wrote: > > On Wed, May 20, 2020 at 11:16:32PM +0530, Vidya Sagar wrote: > > > > > > > > > On 20-May-20 4:47 PM, Thierry Reding wrote: > > > > On Tue, May 19, 2020 at 10:08:54PM

Re: [PATCH v10 2/5] PCI: Add Loongson PCI Controller support

2020-05-22 Thread Jiaxun Yang
于 2020年5月22日 GMT+08:00 下午9:10:18, Lorenzo Pieralisi 写到: >On Wed, May 20, 2020 at 07:57:29PM +0800, Jiaxun Yang wrote: >> >> >> 于 2020年5月14日 GMT+08:00 下午9:16:38, Jiaxun Yang 写到: >> >This controller can be found on Loongson-2K SoC, Loongson-3 >> >systems with RS780E/LS7A PCH. >> > >> >The RS7

Re: [PATCH 09/14] mm: deactivations shouldn't bias the LRU balance

2020-05-22 Thread Qian Cai
On Wed, May 20, 2020 at 07:25:20PM -0400, Johannes Weiner wrote: > Operations like MADV_FREE, FADV_DONTNEED etc. currently move any > affected active pages to the inactive list to accelerate their reclaim > (good) but also steer page reclaim toward that LRU type, or away from > the other (bad). >

[PATCH RFC v2] sched/headers: Fix sched_setattr userspace compilation issues

2020-05-22 Thread Joel Fernandes (Google)
On a modern Linux distro, compiling the following program fails: #include #include #include #include void main() { struct sched_attr sa; return; } with: /usr/include/linux/sched/types.h:8:8: \ error: redefinition of ‘struct sched_param’ 8 | str

VERY VERY URGENT,

2020-05-22 Thread Mr.Basham Zebdani
FROM MR.BASHAM ZEBDANI AUDIT& ACCOUNT MANAGER BANK OF AFRICA (B.O.A) OUAGADOUGOU BURKINA FASO WEST AFRICA. Dear Friend, With due respect, I have decided to contact you on abusinesstransaction that will be beneficial to both of us. At the bank last account and auditing evaluation, my staffs came

Re: [PATCH RFC] sched/headers: Fix sched_setattr userspace compilation issues

2020-05-22 Thread Joel Fernandes
On Fri, May 22, 2020 at 03:13:55PM +0200, Christian Brauner wrote: > On Thu, May 21, 2020 at 11:55:21AM -0400, Joel Fernandes wrote: > > On Thu, May 21, 2020 at 11:53 AM Joel Fernandes (Google) > > wrote: > > > > > > On a modern Linux distro, compiling the following program fails: > > > #include

Re: [PATCH v2 7/8] exec: Generic execfd support

2020-05-22 Thread Eric W. Biederman
Rob Landley writes: > On 5/21/20 10:28 PM, Eric W. Biederman wrote: >> >> Rob Landley writes: >> >>> On 5/20/20 11:05 AM, Eric W. Biederman wrote: >> The file descriptor is stored in mm->exe_file. Probably the most straight forward implementation is to allow execveat(AT_EXE_FIL

Re: [GIT PULL 0/7] EFI fixes for v5.7

2020-05-22 Thread Borislav Petkov
On Fri, May 22, 2020 at 03:06:20PM +0200, Ard Biesheuvel wrote: > Ping? Did you want to make your tags unique from the next pull request onwards and I were supposed to pull this one as is? Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette

Re: [PATCH v10 2/5] PCI: Add Loongson PCI Controller support

2020-05-22 Thread Lorenzo Pieralisi
On Fri, May 22, 2020 at 09:32:10PM +0800, Jiaxun Yang wrote: [...] > >> Is it possible to let this series go into next tree soon? > >> > >> As LS7A dts patch would depend on this series, and I want to > >> make the whole LS7A basic support as a part of 5.8 release. > > > >I think you have all ne

Re: drivers/ide/ide-ioctls.c:15:24: sparse: sparse: incorrect type in initializer (different address spaces)

2020-05-22 Thread Arnd Bergmann
octl handling into drivers/ide > date: 5 months ago > config: xtensa-randconfig-s002-20200522 (attached as .config) > compiler: xtensa-linux-gcc (GCC) 9.3.0 > reproduce: > # apt-get install sparse > # sparse version: v0.6.1-193-gb

[PATCH] [v2] drm/panfrost: Fix runtime PM imbalance on error

2020-05-22 Thread Dinghao Liu
The caller expects panfrost_job_hw_submit() to increase runtime PM usage counter. The refcount decrement on the error branch of WARN_ON() will break the counter balance and needs to be removed. Signed-off-by: Dinghao Liu --- Changelog: v2: - Remove refcount decrement on the error path of

Re: [PATCH] capabilities: Introduce CAP_RESTORE

2020-05-22 Thread Christian Brauner
On Fri, May 22, 2020 at 07:53:50AM +0200, Adrian Reber wrote: > This enables CRIU to checkpoint and restore a process as non-root. > > Over the last years CRIU upstream has been asked a couple of time if it > is possible to checkpoint and restore a process as non-root. The answer > usually was: 'a

Re: [GIT PULL 0/7] EFI fixes for v5.7

2020-05-22 Thread Ard Biesheuvel
On Fri, 22 May 2020 at 15:40, Borislav Petkov wrote: > > On Fri, May 22, 2020 at 03:06:20PM +0200, Ard Biesheuvel wrote: > > Ping? > > Did you want to make your tags unique from the next pull request onwards > and I were supposed to pull this one as is? > What usually happens is that Ingo applies

Re: [PATCH RFC] sched/headers: Fix sched_setattr userspace compilation issues

2020-05-22 Thread Christian Brauner
On Fri, May 22, 2020 at 09:38:16AM -0400, Joel Fernandes wrote: > On Fri, May 22, 2020 at 03:13:55PM +0200, Christian Brauner wrote: > > On Thu, May 21, 2020 at 11:55:21AM -0400, Joel Fernandes wrote: > > > On Thu, May 21, 2020 at 11:53 AM Joel Fernandes (Google) > > > wrote: > > > > > > > > On a

[PATCH] x86/unwind/orc: Fix unwind_get_return_address_ptr() for inactive tasks

2020-05-22 Thread Josh Poimboeuf
Normally, show_trace_log_lvl() scans the stack, looking for text addresses to print. In parallel, it unwinds the stack with unwind_next_frame(). If the stack address matches the pointer returned by unwind_get_return_address_ptr() for the current frame, the text address is printed normally without

Re: [PATCH RFC] sched/headers: Fix sched_setattr userspace compilation issues

2020-05-22 Thread Peter Zijlstra
On Thu, May 21, 2020 at 11:55:21AM -0400, Joel Fernandes wrote: > On Thu, May 21, 2020 at 11:53 AM Joel Fernandes (Google) > wrote: > > > > On a modern Linux distro, compiling the following program fails: > > #include > > #include > > #include > > #include > > > > void main() { > > s

Re: PCI: dwc: Warn only for non-prefetchable memory resource size >4GB

2020-05-22 Thread Lorenzo Pieralisi
On Tue, May 19, 2020 at 07:33:04PM -0700, Alan Mikhak wrote: > Hi Lorenzo, > > I came across this issue when implementing a Linux NVMe endpoint function > driver under the Linux PCI Endpoint Framework: > https://lwn.net/Articles/804369/ > > I needed to map up to 128GB of host memory using a singl

Re: [GIT PULL 0/7] EFI fixes for v5.7

2020-05-22 Thread Thomas Gleixner
Ard, Ard Biesheuvel writes: > On Fri, 22 May 2020 at 15:40, Borislav Petkov wrote: >> >> On Fri, May 22, 2020 at 03:06:20PM +0200, Ard Biesheuvel wrote: >> > Ping? >> >> Did you want to make your tags unique from the next pull request onwards >> and I were supposed to pull this one as is? > > Wh

Re: Re: [PATCH] PCI: dwc: Warn only for non-prefetchable memory resource size >4GB

2020-05-22 Thread Thierry Reding
On Fri, May 22, 2020 at 02:32:49PM +0100, Lorenzo Pieralisi wrote: > On Fri, May 22, 2020 at 02:06:55PM +0200, Thierry Reding wrote: > > On Wed, May 20, 2020 at 04:48:16PM -0600, Rob Herring wrote: > > > On Wed, May 20, 2020 at 11:16:32PM +0530, Vidya Sagar wrote: > > > > > > > > > > > > On 20-Ma

[GIT PULL] Please pull powerpc/linux.git powerpc-5.7-5 tag

2020-05-22 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull some more powerpc fixes for 5.7: The following changes since commit 249c9b0cd193d983c3a0b00f3fd3b92333bfeebe: powerpc/40x: Make more space for system call exception (2020-05-12 21:22:11 +1000) are available in the git rep

Re: [PATCH] mm, memcg: unify reclaim retry limits with page allocator

2020-05-22 Thread Shakeel Butt
On Wed, May 20, 2020 at 9:32 AM Chris Down wrote: > > Reclaim retries have been set to 5 since the beginning of time in > 66e1707bc346 ("Memory controller: add per cgroup LRU and reclaim"). > However, we now have a generally agreed-upon standard for page reclaim: > MAX_RECLAIM_RETRIES (currently 1

Re: [PATCH 0/5] STM32 CRC update

2020-05-22 Thread Herbert Xu
On Tue, May 12, 2020 at 04:11:08PM +0200, Nicolas Toromanoff wrote: > This set of patches update the STM32 CRC driver. > It contains bug fix. > > First fixes issue if we enable STM32 CRC32 hardware accelerator with > ext4 (with metadata-chksum enable) and other fs that use same direct > access to

Re: [PATCH v6 11/12] mmap locking API: convert mmap_sem API comments

2020-05-22 Thread Davidlohr Bueso
On Tue, 19 May 2020, Michel Lespinasse wrote: Convert comments that reference old mmap_sem APIs to reference corresponding new mmap locking APIs instead. Signed-off-by: Michel Lespinasse Reviewed-by: Davidlohr Bueso

Re: [RFC PATCH v12 07/11] psci: Add hypercall service for kvm ptp.

2020-05-22 Thread Steven Price
On 22/05/2020 09:37, Jianyong Wu wrote: ptp_kvm modules will get this service through smccc call. The service offers real time and counter cycle of host for guest. Also let caller determine which cycle of virtual counter or physical counter to return. Signed-off-by: Jianyong Wu --- include/li

Re: [PATCH v2 2/2] hwmon: Add Baikal-T1 PVT sensor driver

2020-05-22 Thread Guenter Roeck
On Sun, May 10, 2020 at 01:32:11PM +0300, Serge Semin wrote: > Baikal-T1 SoC provides an embedded process, voltage and temperature > sensor to monitor an internal SoC environment (chip temperature, supply > voltage and process monitor) and on time detect critical situations, > which may cause the s

Re: [PATCH] mm/compaction: Fix the incorrect hole in fast_isolate_freepages()

2020-05-22 Thread Mike Rapoport
Hello Baoquan, On Fri, May 22, 2020 at 03:25:24PM +0800, Baoquan He wrote: > On 05/22/20 at 03:01pm, Baoquan He wrote: > > > > So let's add these unavailable ranges into memblock and reserve them > > in init_unavailable_range() instead. With this change, they will be added > > into appropriate no

Re: [PATCH v6 07/12] mmap locking API: add mmap_read_trylock_non_owner()

2020-05-22 Thread Davidlohr Bueso
On Tue, 19 May 2020, Michel Lespinasse wrote: Add a couple APIs used by kernel/bpf/stackmap.c only: - mmap_read_trylock_non_owner() - mmap_read_unlock_non_owner() (may be called from a work queue). It's still not ideal that bpf/stackmap subverts the lock ownership in this way. Thanks to Peter Z

Re: [PATCH] i2c: core: fix NULL pointer dereference in suspend/resume callbacks

2020-05-22 Thread Wolfram Sang
On Fri, May 22, 2020 at 01:15:12PM +0200, Marek Szyprowski wrote: > Hi All, > > On 22.05.2020 12:13, Marek Szyprowski wrote: > > Commit 6fe12cdbcfe3 ("i2c: core: support bus regulator controlling in > > adapter") added generic suspend and resume functions for i2c devices. > > Those functions uncon

Re: [PATCH v6 10/12] mmap locking API: rename mmap_sem to mmap_lock

2020-05-22 Thread Davidlohr Bueso
On Tue, 19 May 2020, Michel Lespinasse wrote: Rename the mmap_sem field to mmap_lock. Any new uses of this lock should now go through the new mmap locking api. The mmap_lock is still implemented as a rwsem, though this could change in the future. Signed-off-by: Michel Lespinasse Reviewed-by: V

Re: [PATCH v6 12/12] mmap locking API: convert mmap_sem comments

2020-05-22 Thread Vlastimil Babka
On 5/21/20 7:25 PM, Andrew Morton wrote: > On Thu, 21 May 2020 00:50:56 -0700 Michel Lespinasse > wrote: > >> > > * Must be called holding task's alloc_lock to protect task's >> > > mems_allowed >> > > - * and mempolicy. May also be called holding the mmap_semaphore for >> > > write. >> > >

[PATCH V5 0/5] iio: adc: Add support for QCOM SPMI PMIC7 ADC

2020-05-22 Thread Jishnu Prakash
The following changes are made in V5: Made some recommended minor changes in the third patch and accordingly moved some return value check corrections From fourth patch to third. Cleaned up commit message of fifth patch. Jishnu Prakash (5): iio: adc: Convert the QCOM SPMI ADC bindings to .yaml

[PATCH V5 3/5] iio: adc: Add support for PMIC7 ADC

2020-05-22 Thread Jishnu Prakash
The ADC architecture on PMIC7 is changed as compared to PMIC5. The major change from PMIC5 is that all SW communication to ADC goes through PMK8350, which communicates with other PMICs through PBS when the ADC on PMK8350 works in master mode. The SID register is used to identify the PMICs with whic

[PATCH V5 2/5] iio: adc: Add PMIC7 ADC bindings

2020-05-22 Thread Jishnu Prakash
Add documentation for PMIC7 ADC peripheral. For the PMIC7-type PMICs, ADC peripheral is present in HW for the following PMICs: PMK8350, PM8350, PM8350b, PMR735a and PMR735b. Of these, only the ADC peripheral on PMK8350 is exposed directly to SW. If SW needs to communicate with ADCs on other PMICs,

[PATCH V5 1/5] iio: adc: Convert the QCOM SPMI ADC bindings to .yaml format

2020-05-22 Thread Jishnu Prakash
Convert the adc bindings from .txt to .yaml format. Signed-off-by: Jishnu Prakash Reviewed-by: Amit Kucheria Reviewed-by: Rob Herring Acked-by: Linus Walleij --- .../devicetree/bindings/iio/adc/qcom,spmi-vadc.txt | 173 -- .../bindings/iio/adc/qcom,spmi-vadc.yaml | 252 +

[PATCH V5 4/5] iio: adc: Update debug prints

2020-05-22 Thread Jishnu Prakash
Change pr_err/pr_debug statements to dev_err/dev_dbg for increased clarity. Signed-off-by: Jishnu Prakash --- drivers/iio/adc/qcom-spmi-adc5.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/iio/adc/qcom-spmi-adc5.c b/drivers/iio/adc/qcom-spmi-adc5.

[PATCH V5 5/5] iio: adc: Clean up ADC code common to PMIC5 and PMIC7

2020-05-22 Thread Jishnu Prakash
This commit includes the following changes: Add a common function used for read_raw callback for both PMIC5 and PMIC7 ADCs. Add exit function for ADC. Add info_property under adc_data to more efficiently distinguish PMIC5 and PMIC7 ADCs. Signed-off-by: Jishnu Prakash --- drivers/iio/adc/qcom-

[PATCH 1/2] docs: lzo: fix first byte interpretation off-by-one

2020-05-22 Thread C. Masloch
There was an error in the description of the initial byte's interpretation. While "18..21" was listed as "copy 0..3 literals", it should actually be interpreted as "copy 1..4 literals". The "byte - 17" part is correct. 17 would encode copying "zero" literals, but does not occur. 18 encodes copyin

Re: [PATCH v2 1/4] dt-bindings: iio: imu: bmi160: convert txt format to yaml

2020-05-22 Thread Jonathan Albrieux
On Fri, May 22, 2020 at 01:47:21PM +0300, Daniel Baluta wrote: > > > > > > > + > > > > > > +maintainers: > > > > > > + - can't find a mantainer, author is Daniel Baluta > > > > > > > > > > > Daniel is still active in the kernel, just not at Intel any more. +CC > > > > Oh ok thank you! Daniel ar

[PATCH 2/2] docs: lzo: fix incorrect statement about distance zero for EOS

2020-05-22 Thread C. Masloch
The encoded distance bits are zero, but the distance that is calculated from this is actually equal to 16384. So correct this statement to read that the 0001HLLL instruction means EOS when a distance of 16384 is seen. This matches with the description of the instruction itself later on. Signed-off

Re: [PATCH v10 4/5] MIPS: DTS: Loongson64: Add PCI Controller Node

2020-05-22 Thread Thomas Bogendoerfer
On Thu, May 14, 2020 at 09:16:40PM +0800, Jiaxun Yang wrote: > Add PCI Host controller node for Loongson64 with RS780E PCH dts. > Note that PCI interrupts are probed via legacy way, as different > machine have different interrupt arrangement, we can't cover all > of them in dt. > > Signed-off-by:

Re: [PATCH v10 2/5] PCI: Add Loongson PCI Controller support

2020-05-22 Thread Thomas Bogendoerfer
On Fri, May 22, 2020 at 02:40:48PM +0100, Lorenzo Pieralisi wrote: > On Fri, May 22, 2020 at 09:32:10PM +0800, Jiaxun Yang wrote: > > [...] > > > >> Is it possible to let this series go into next tree soon? > > >> > > >> As LS7A dts patch would depend on this series, and I want to > > >> make th

Re: [PATCH v10 2/5] PCI: Add Loongson PCI Controller support

2020-05-22 Thread Thomas Bogendoerfer
On Fri, May 22, 2020 at 09:32:10PM +0800, Jiaxun Yang wrote: > > > 于 2020年5月22日 GMT+08:00 下午9:10:18, Lorenzo Pieralisi > 写到: > >On Wed, May 20, 2020 at 07:57:29PM +0800, Jiaxun Yang wrote: > >> > >> > >> 于 2020年5月14日 GMT+08:00 下午9:16:38, Jiaxun Yang 写到: > >> >This controller can be found on

Re: [PATCH v10 5/5] MIPS: Loongson64: Switch to generic PCI driver

2020-05-22 Thread Thomas Bogendoerfer
On Thu, May 14, 2020 at 09:16:41PM +0800, Jiaxun Yang wrote: > We can now enable generic PCI driver in Kconfig, and remove legacy > PCI driver code. > > Radeon vbios quirk is moved to the platform folder to fit the > new structure. > > Signed-off-by: Jiaxun Yang > -- > v9: Fix licenses tag > ---

Re: [patch V9 00/39] x86/entry: Rework leftovers (was part V)

2020-05-22 Thread Boris Ostrovsky
On 5/21/20 4:05 PM, Thomas Gleixner wrote: > > The full series is available from: > > git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git > entry-v9-the-rest Did you mean noinstr-v9-the-rest? I don't see entry-v9-the-rest tag. (Also, this series as posted probably won't build. At le

Re: [PATCH 09/15] device core: Add ability to handle multiple dma offsets

2020-05-22 Thread Jim Quinlan
Hi Nicolas, On Wed, May 20, 2020 at 7:28 AM Nicolas Saenz Julienne wrote: > > Hi Jim, > thanks for having a go at this! My two cents. > > On Tue, 2020-05-19 at 16:34 -0400, Jim Quinlan wrote: > > The device variable 'dma_pfn_offset' is used to do a single > > linear map between cpu addrs and dma

Re: Some -serious- BPF-related litmus tests

2020-05-22 Thread Alan Stern
On Fri, May 22, 2020 at 11:44:07AM +0200, Peter Zijlstra wrote: > On Thu, May 21, 2020 at 05:38:50PM -0700, Paul E. McKenney wrote: > > Hello! > > > > Just wanted to call your attention to some pretty cool and pretty serious > > litmus tests that Andrii did as part of his BPF ring-buffer work: > >

Re: [PATCH v2 0/7] Share events between metrics

2020-05-22 Thread Arnaldo Carvalho de Melo
Em Fri, May 22, 2020 at 02:55:46PM +0530, kajoljain escreveu: > On 5/20/20 11:50 PM, Ian Rogers wrote: > > Metric groups contain metrics. Metrics create groups of events to > > ideally be scheduled together. Often metrics refer to the same events, > > for example, a cache hit and cache miss rate. U

[PATCH v2] kdb: Make kdb_printf robust to run in NMI context

2020-05-22 Thread Sumit Garg
While rounding up CPUs via NMIs, its possible that a rounded up CPU maybe holding a console port lock leading to kgdb master CPU stuck in a deadlock during invocation of console write operations. So in order to avoid such a deadlock, invoke bust_spinlocks() prior to invocation of console handlers.

[RFC] kdb: Switch kdb_printf to use safer console poll APIs

2020-05-22 Thread Sumit Garg
In kgdb NMI context, polling driver APIs are more safer to use instead of console APIs since the polling drivers know they will execute from all sorts of crazy places. And for the most common use cases this would also result in no console handler ever being called. So switch to use polling driver A

Re: Some -serious- BPF-related litmus tests

2020-05-22 Thread Alan Stern
On Fri, May 22, 2020 at 03:56:59AM -0700, Paul E. McKenney wrote: > On Fri, May 22, 2020 at 11:44:07AM +0200, Peter Zijlstra wrote: > > On Thu, May 21, 2020 at 05:38:50PM -0700, Paul E. McKenney wrote: > > > Hello! > > > > > > Just wanted to call your attention to some pretty cool and pretty serio

Re: [PATCH v4 01/16] spi: dw: Add Tx/Rx finish wait methods to the MID DMA

2020-05-22 Thread Andy Shevchenko
On Fri, May 22, 2020 at 05:00:25PM +0300, Serge Semin wrote: > On Fri, May 22, 2020 at 04:27:43PM +0300, Serge Semin wrote: > > On Fri, May 22, 2020 at 02:10:13PM +0100, Mark Brown wrote: > > > On Fri, May 22, 2020 at 03:44:06PM +0300, Serge Semin wrote: > > > > On Fri, May 22, 2020 at 03:34:27PM +

Re: [PATCH 00/13] Reconcile NUMA balancing decisions with the load balancer v6

2020-05-22 Thread Peter Zijlstra
On Fri, May 22, 2020 at 02:28:54PM +0100, Mel Gorman wrote: > Is something like this on top of your patch what you had in mind? All under the assumption that is makes it go faster of course ;-) > ---8<--- static inline bool ttwu_queue_cond() { /* * If the CPU does not share cac

Re: Writeback bug causing writeback stalls

2020-05-22 Thread Jan Kara
Hi! On Fri 22-05-20 11:57:42, Martijn Coenen wrote: > So, the sequence of events is something like this. Let's assume the inode is > already on b_dirty_time for valid reasons. Then: > > CPU1 CPU2 > fuse_flush() > write_inode_now() > writeback_singl

Re: Re: [PATCH] media: staging: tegra-vde: fix runtime pm imbalance on error

2020-05-22 Thread Thierry Reding
On Fri, May 22, 2020 at 04:23:18PM +0300, Dan Carpenter wrote: > On Fri, May 22, 2020 at 03:10:31PM +0200, Thierry Reding wrote: > > On Thu, May 21, 2020 at 08:39:02PM +0300, Dan Carpenter wrote: > > > On Thu, May 21, 2020 at 05:22:05PM +0200, Rafael J. Wysocki wrote: > > > > On Thu, May 21, 2020 a

[GIT PULL] sound fixes for 5.6-rc7

2020-05-22 Thread Takashi Iwai
Linus, please pull sound fixes for v5.7-rc7 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-5.7-rc7 The topmost commit is 259eb82475316672a5d682a94dc8bdd53cf8d8c3 sound fixes for 5.7-rc7 Just a

[PATCH 00/11] mmc: sdio: Move SDIO IDs from drivers to common include file

2020-05-22 Thread Pali Rohár
Most SDIO IDs are defined in the common include file linux/mmc/sdio_ids.h. But some drivers define IDs locally or do not use existing macros from the common include file. This patch series fixes above inconsistency. It defines missing macro names and moves all remaining SDIO IDs from drivers to th

Re: [PATCH 1/3] x86/amd_nb: add AMD family 17h model 60h PCI IDs

2020-05-22 Thread Guenter Roeck
On Sun, May 10, 2020 at 08:48:40PM +, Alexander Monakov wrote: > Add PCI IDs for AMD Renoir (4000-series Ryzen CPUs). This is necessary > to enable support for temperature sensors via the k10temp module. > > Signed-off-by: Alexander Monakov > Cc: Thomas Gleixner > Cc: Borislav Petkov > Cc:

Re: [GIT PULL 0/7] EFI fixes for v5.7

2020-05-22 Thread Ard Biesheuvel
On Fri, 22 May 2020 at 16:04, Thomas Gleixner wrote: > > Ard, > > Ard Biesheuvel writes: > > On Fri, 22 May 2020 at 15:40, Borislav Petkov wrote: > >> > >> On Fri, May 22, 2020 at 03:06:20PM +0200, Ard Biesheuvel wrote: > >> > Ping? > >> > >> Did you want to make your tags unique from the next p

[PATCH 05/11] mmc: sdio: Move SDIO IDs from btmtksdio driver to common include file

2020-05-22 Thread Pali Rohár
Define appropriate macro names for consistency with other macros. Signed-off-by: Pali Rohár --- drivers/bluetooth/btmtksdio.c | 4 ++-- include/linux/mmc/sdio_ids.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/bluetooth/btmtksdio.c b/drivers/bluetooth/btmtksdio

[PATCH 06/11] mmc: sdio: Move SDIO IDs from smssdio driver to common include file

2020-05-22 Thread Pali Rohár
Define appropriate macro names for consistency with other Siano macros. Signed-off-by: Pali Rohár --- drivers/media/mmc/siano/smssdio.c | 10 +- include/linux/mmc/sdio_ids.h | 5 + 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/media/mmc/siano/smssdio.c

[PATCH 10/11] mmc: sdio: Fix Cypress SDIO IDs macros in common include file

2020-05-22 Thread Pali Rohár
All macro names for SDIO device IDs are prefixed by vendor name to which device ID belongs. So for consistency add Broadcom string vendor prefix to all Cypress macro names as they belong to SDIO Broadcom vendor ID. Change also Cypress 43012 value from decimal do hexadecimal notation to be consiste

[PATCH 09/11] mmc: sdio: Move SDIO IDs from b43-sdio driver to common include file

2020-05-22 Thread Pali Rohár
Define appropriate macro names for consistency with other macros. Signed-off-by: Pali Rohár --- drivers/net/wireless/broadcom/b43/sdio.c | 4 ++-- include/linux/mmc/sdio_ids.h | 4 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/broadcom/b43/s

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

2020-05-22 Thread Jens Axboe
On 5/22/20 5:32 AM, Stephen Rothwell wrote: > Hi all, > > After merging the block tree, today's linux-next build (x86_64 > allnoconfig) failed like this: > > fs/libfs.c: In function 'generic_file_fsync': > fs/libfs.c:1116:9: error: too few arguments to function 'blkdev_issue_flush' > 1116 | ret

[PATCH 08/11] mmc: sdio: Move SDIO IDs from ath10k driver to common include file

2020-05-22 Thread Pali Rohár
Also replace generic MANUFACTURER macros by proper SDIO IDs macros. Checks for device IDs are slightly modified to use SDIO device IDs. This allows removal of all custom MANUFACTURER macros from ath10k. Signed-off-by: Pali Rohár --- drivers/net/wireless/ath/ath10k/sdio.c | 25 ++

[PATCH 11/11] mmc: sdio: Sort all SDIO IDs in common include file

2020-05-22 Thread Pali Rohár
Fix ordering of SDIO IDs to conform to the comment above, which says vendor first, device next. Signed-off-by: Pali Rohár --- include/linux/mmc/sdio_ids.h | 43 ++-- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/include/linux/mmc/sdio_ids.h b/inc

[PATCH 03/11] mmc: sdio: Move SDIO IDs from mwifiex driver to common include file

2020-05-22 Thread Pali Rohár
Add _WLAN suffix to macro names for consistency with other Marvell macros. These IDs represents wlan function of combo bt/wlan cards. Other functions of these cards have different IDs. Signed-off-by: Pali Rohár --- drivers/net/wireless/marvell/mwifiex/sdio.c | 38 + include/l

[PATCH 02/11] mmc: sdio: Change macro names for Marvell 8688 modules

2020-05-22 Thread Pali Rohár
Add underscore as separator in Marvell 8688 macro names for better readability and consistency. Signed-off-by: Pali Rohár --- drivers/net/wireless/marvell/libertas/if_sdio.c | 2 +- include/linux/mmc/sdio_ids.h| 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff -

Re: [PATCH v12 2/3] i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver

2020-05-22 Thread Wolfram Sang
On Thu, May 21, 2020 at 02:09:09PM +0300, Tali Perry wrote: > Add Nuvoton NPCM BMC I2C controller driver. > > Signed-off-by: Tali Perry This is a very complex driver, so I can really comment only about high level things. Thank you very much for keeping at it! My code checkers say: CHECKPATCH:

[PATCH 01/11] mmc: sdio: Fix macro name for Marvell device with ID 0x9134

2020-05-22 Thread Pali Rohár
Marvell SDIO device ID 0x9134 is used in SDIO Common CIS (Card Information Structure) and not in SDIO wlan function (with ID 1). SDIO Common CIS is accessed by function ID 0. So change this misleading macro name to SDIO_DEVICE_ID_MARVELL_8887_F0 as it does not refer to wlan function. It refers to

[PATCH 07/11] mmc: sdio: Move SDIO IDs from ath6kl driver to common include file

2020-05-22 Thread Pali Rohár
Also replace generic MANUFACTURER macros by proper SDIO IDs macros. Check for "AR6003 or later" is slightly modified to use SDIO device IDs. This allows removal of all custom MANUFACTURER macros from ath6kl. Signed-off-by: Pali Rohár --- drivers/net/wireless/ath/ath6kl/hif.h | 6 -- drive

Re: [PATCH 2/2] firmware: smccc: Add ARCH_SOC_ID support

2020-05-22 Thread Arnd Bergmann
On Fri, May 22, 2020 at 2:50 PM Sudeep Holla wrote: > + > + soc_id_rev = res.a0; > + > + soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); > + if (!soc_dev_attr) > + return -ENOMEM; > + > + sprintf(soc_id_str, "0x%04x", IMP_DEF_SOC_ID(soc_id_version))

[PATCH 04/11] mmc: sdio: Move SDIO IDs from btmrvl driver to common include file

2020-05-22 Thread Pali Rohár
Define appropriate macro names for consistency with other Marvell macros. Signed-off-by: Pali Rohár --- drivers/bluetooth/btmrvl_sdio.c | 18 +- include/linux/mmc/sdio_ids.h| 8 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/drivers/bluetooth/btmrvl

Re: [PATCH 16/17] dt-bindings: watchdog: renesas,wdt: Document r8a7742 support

2020-05-22 Thread Guenter Roeck
On Fri, May 15, 2020 at 04:08:56PM +0100, Lad Prabhakar wrote: > RZ/G1H (R8A7742) watchdog implementation is compatible with R-Car Gen2, > therefore add relevant documentation. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > > Reviewed-by: Wolfram Sang > Reviewed-by:

Re: [PATCH] perf list: Add metrics to command line usage

2020-05-22 Thread Arnaldo Carvalho de Melo
Em Thu, May 21, 2020 at 11:45:46PM -0700, Ian Rogers escreveu: > Before: > Usage: perf list [] [hw|sw|cache|tracepoint|pmu|sdt|event_glob] > After: > Usage: perf list [] > [hw|sw|cache|tracepoint|pmu|sdt|metric|metricgroup|event_glob] > Signed-off-by: Ian Rogers > --- > tools/perf/builtin-list

[PATCH] f2fs: avoid inifinite loop to wait for flushing node pages at cp_error

2020-05-22 Thread Jaegeuk Kim
Shutdown test is somtime hung, since dirty node pages weren't flushed out. Let's drop dirty pages at umount after shutdown. Signed-off-by: Jaegeuk Kim --- fs/f2fs/node.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index e632de10aeda

Re: [PATCH v2 0/7] Share events between metrics

2020-05-22 Thread Arnaldo Carvalho de Melo
Em Fri, May 22, 2020 at 12:13:11PM +0200, Jiri Olsa escreveu: > On Thu, May 21, 2020 at 02:22:35PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Thu, May 21, 2020 at 01:43:25PM +0200, Jiri Olsa escreveu: > > > On Wed, May 20, 2020 at 11:20:04AM -0700, Ian Rogers wrote: > > > > > > SNIP > > > > >

[PATCH AUTOSEL 5.6 06/41] ARM: dts: rockchip: swap clock-names of gpu nodes

2020-05-22 Thread Sasha Levin
From: Johan Jonker [ Upstream commit b14f3898d2c25a9b47a61fb879d0b1f3af92c59b ] Dts files with Rockchip 'gpu' nodes were manually verified. In order to automate this process arm,mali-utgard.txt has been converted to yaml. In the new setup dtbs_check with arm,mali-utgard.yaml expects clock-names

[PATCH AUTOSEL 5.6 04/41] arm64: dts: rockchip: fix status for &gmac2phy in rk3328-evb.dts

2020-05-22 Thread Sasha Levin
From: Johan Jonker [ Upstream commit c617ed88502d0b05149e7f32f3b3fd8a0663f7e2 ] The status was removed of the '&gmac2phy' node with the apply of a patch long time ago, so fix status for '&gmac2phy' in 'rk3328-evb.dts'. Signed-off-by: Johan Jonker Link: https://lore.kernel.org/r/20200425122345.

[PATCH AUTOSEL 5.6 03/41] ARM: dts: rockchip: fix phy nodename for rk3229-xms6

2020-05-22 Thread Sasha Levin
From: Johan Jonker [ Upstream commit 621c8d0c233e260232278a4cfd3380caa3c1da29 ] A test with the command below gives for example this error: arch/arm/boot/dts/rk3229-xms6.dt.yaml: phy@0: '#phy-cells' is a required property The phy nodename is normally used by a phy-handle. This node is however

[PATCH AUTOSEL 5.6 17/41] drm/amdgpu: drop unnecessary cancel_delayed_work_sync on PG ungate

2020-05-22 Thread Sasha Levin
From: Evan Quan [ Upstream commit 1fe48ec08d9f2e26d893a6c05bd6c99a3490f9ef ] As this is already properly handled in amdgpu_gfx_off_ctrl(). In fact, this unnecessary cancel_delayed_work_sync may leave a small time window for race condition and is dangerous. Signed-off-by: Evan Quan Reviewed-by:

[PATCH AUTOSEL 5.6 29/41] riscv: stacktrace: Fix undefined reference to `walk_stackframe'

2020-05-22 Thread Sasha Levin
From: Kefeng Wang [ Upstream commit 0502bee37cdef755d63eee60236562e5605e2480 ] Drop static declaration to fix following build error if FRAME_POINTER disabled, riscv64-linux-ld: arch/riscv/kernel/perf_callchain.o: in function `.L0': perf_callchain.c:(.text+0x2b8): undefined reference to `walk

[PATCH AUTOSEL 5.6 19/41] drm/amdgpu: Use GEM obj reference for KFD BOs

2020-05-22 Thread Sasha Levin
From: Felix Kuehling [ Upstream commit 39b3128d7ffd44e400e581e6f49e88cb42bef9a1 ] Releasing the AMDGPU BO ref directly leads to problems when BOs were exported as DMA bufs. Releasing the GEM reference makes sure that the AMDGPU/TTM BO is not freed too early. Also take a GEM reference when impor

[PATCH AUTOSEL 5.6 13/41] kselftests: dmabuf-heaps: Fix confused return value on expected error testing

2020-05-22 Thread Sasha Levin
From: John Stultz [ Upstream commit 4bb9d46d47b105a774f9dca642f5271375bca4b2 ] When I added the expected error testing, I forgot I need to set the return to zero when we successfully see an error. Without this change we only end up testing a single heap before the test quits. Cc: Shuah Khan C

[PATCH AUTOSEL 5.6 28/41] riscv: Fix unmet direct dependencies built based on SOC_VIRT

2020-05-22 Thread Sasha Levin
From: Kefeng Wang [ Upstream commit ab7fbad0c7d7a4f9b320a059a171a92a34b6d409 ] Fix unmet direct dependencies Warning and fix Kconfig indent. WARNING: unmet direct dependencies detected for POWER_RESET_SYSCON Depends on [n]: POWER_RESET [=n] && OF [=y] && HAS_IOMEM [=y] Selected by [y]: -

[PATCH AUTOSEL 5.6 01/41] arm64: dts: qcom: db820c: fix audio configuration

2020-05-22 Thread Sasha Levin
From: Srinivas Kandagatla [ Upstream commit 7710f80ecd9c74544a22557ab581cf603e713f51 ] After patch f864edff110d ("ASoC: qdsp6: q6routing: remove default routing") and 9b60441692d9 ("ASoC: qdsp6: q6asm-dai: only enable dais from device tree") asm dais and routing needs to be properly specified at

[PATCH AUTOSEL 5.6 11/41] ARM: dts: omap4-droid4: Fix occasional lost wakeirq for uart1

2020-05-22 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit 738b150ecefbffb6e55cfa8a3b66a844f777d8fb ] Looks like using the UART CTS pin does not always trigger for a wake-up when the SoC is idle. This is probably because the modem first uses gpio_149 to signal the SoC that data will be sent, and the CTS will only g

[PATCH AUTOSEL 5.6 33/41] csky: Fixup perf callchain unwind

2020-05-22 Thread Sasha Levin
From: Mao Han [ Upstream commit 229a0ddee1108a3f82a873e6cbbe35c92c540444 ] [ 5221.974084] Unable to handle kernel paging request at virtual address 0xf000, pc: 0x8002c18e [ 5221.985929] Oops: [ 5221.989488] [ 5221.989488] CURRENT PROCESS: [ 5221.989488] [ 5221.992877] COMM=ca

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