Re: [GIT PULL] perf tools fixes for v5.9: 2nd batch

2020-09-03 Thread pr-tracker-bot
The pull request you sent on Thu, 3 Sep 2020 23:07:28 -0300: > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > tags/perf-tools-fixes-for-v5.9-2020-09-03 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/59126901f200f5fc907153468b03c64e0081b6e6 Thank

Re: [PATCH] perf jevents: Fix suspicious code in fixregex()

2020-09-03 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 04, 2020 at 10:38:35AM +0900, Namhyung Kim escreveu: > On Fri, Sep 4, 2020 at 3:41 AM Arnaldo Carvalho de Melo > wrote: > > Em Thu, Sep 03, 2020 at 10:47:39AM -0700, Ian Rogers escreveu: > > > On Thu, Sep 3, 2020 at 8:25 AM Namhyung Kim wrote: > > > > The new string should have

Re: [GIT] Networking

2020-09-03 Thread pr-tracker-bot
The pull request you sent on Thu, 03 Sep 2020 17:03:19 -0700 (PDT): > git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git refs/heads/master has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/3e8d3bdc2a757cc6be5470297947799a7df445cc Thank you! -- Deet-doot-dot,

[GIT PULL] perf tools fixes for v5.9: 2nd batch

2020-09-03 Thread Arnaldo Carvalho de Melo
Hi Linus, Please consider pulling, Best regards, - Arnaldo Comprehensive test results are available in the signed tag. The following changes since commit e28f0104343d0c132fa37f479870c9e43355fee4: Merge tag 'fixes-2020-09-03' of

Re: [PATCH 2/4] mm,hwpoison: Refactor madvise_inject_error

2020-09-03 Thread 堀口 直也
On Wed, Sep 02, 2020 at 11:45:08AM +0200, Oscar Salvador wrote: > Make a proper if-else condition for {hard,soft}-offline. > > Signed-off-by: Oscar Salvador Acked-by: Naoya Horiguchi

[PATCH 4/4] drm/msm: Disable the RPTR shadow

2020-09-03 Thread Jordan Crouse
Disable the RPTR shadow across all targets. It will be selectively re-enabled later for targets that need it. Signed-off-by: Jordan Crouse --- drivers/gpu/drm/msm/adreno/a2xx_gpu.c | 5 + drivers/gpu/drm/msm/adreno/a3xx_gpu.c | 10 + drivers/gpu/drm/msm/adreno/a4xx_gpu.c |

[PATCH 2/4] drm/msm: Enable expanded apriv support for a650

2020-09-03 Thread Jordan Crouse
a650 supports expanded apriv support that allows us to map critical buffers (ringbuffer and memstore) as as privileged to protect them from corruption. Signed-off-by: Jordan Crouse --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 6 +- drivers/gpu/drm/msm/msm_gpu.c | 2 +-

[PATCH 3/4] drm/msm: Disable preemption on all 5xx targets

2020-09-03 Thread Jordan Crouse
Temporarily disable preemption on a5xx targets pending some improvements to protect the RPTR shadow from being corrupted. Signed-off-by: Jordan Crouse --- drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 0/4] drm/msm: Protect the RPTR shadow

2020-09-03 Thread Jordan Crouse
On Adreno GPUs there is an option to shadow the RPTR register in GPU accessible memory. The shadow memory allows the kernel driver to query the value of the RPTR for each ringbuffer even if it is preempted out or if the GPU is turned off during aggressive power management. There are risks to

[PATCH 1/4] drm/msm: Split the a5xx preemption record

2020-09-03 Thread Jordan Crouse
The main a5xx preemption record can be marked as privileged to protect it from user access but the counters storage needs to be remain unprivileged. Split the buffers and mark the critical memory as privileged. Cc: sta...@vger.kernel.org Signed-off-by: Jordan Crouse ---

RE: [RFC] sched/topology: NUMA topology limitations

2020-09-03 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Valentin Schneider [mailto:valentin.schnei...@arm.com] > Sent: Tuesday, September 1, 2020 9:41 PM > To: Song Bao Hua (Barry Song) > Cc: linux-kernel@vger.kernel.org; Ingo Molnar ; Peter > Zijlstra ; vincent.guit...@linaro.org; > dietmar.eggem...@arm.com;

Re: [PATCH 1/4] mm,hwpoison: Take free pages off the buddy freelists

2020-09-03 Thread 堀口 直也
On Wed, Sep 02, 2020 at 11:45:07AM +0200, Oscar Salvador wrote: > The crux of the matter is that historically we left poisoned pages > in the buddy system because we have some checks in place when > allocating a page that a gatekeeper for poisoned pages. > Unfortunately, we do have other users

RE: [RFC PATCH] cma: make number of CMA areas dynamic, remove CONFIG_CMA_AREAS

2020-09-03 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Mike Kravetz [mailto:mike.krav...@oracle.com] > Sent: Thursday, September 3, 2020 3:02 PM > To: linux...@kvack.org; linux-kernel@vger.kernel.org; > linux-arm-ker...@lists.infradead.org; linux-m...@vger.kernel.org > Cc: Roman Gushchin ; Song Bao Hua (Barry

Re: [PATCH v13 00/10] Guest Last Branch Recording Enabling (KVM part)

2020-09-03 Thread Xu, Like
Hi Paolo, Do you have time or plan to review this patch series in this kernel cycle since we have merged perf patches in the upstream to make it happen ? Thanks, Like Xu On 2020/8/14 16:48, Xu, Like wrote: Are there no interested reviewers or users? Just a kindly ping. On 2020/7/26 23:32,

Re: linux-next: Fixes tag needs some work in the scsi-fixes tree

2020-09-03 Thread Martin K. Petersen
Stephen, > Fixes: 320e77acb3 scsi: mpt3sas: Irq poll to avoid CPU hard lockups > Fixes: a6ffd5bf681 scsi: megaraid_sas: Call disable_irq from process IRQ > poll Ah, my regex missed the short SHAs due to the missing description quotation marks. Fixed my script and fixed up the commits.

[PATCH] ALSA: usb-audio: quirks: Add USB_QUIRK_DISCONNECT_SUSPEND quirk for Lenovo A630Z TIO built-in usb audio card

2020-09-03 Thread Penghao
Add a USB_QUIRK_DISCONNECT_SUSPEND quirk for the Lenovo TIO built-in usb-audio.when A630Z going into S3,the system immediately wakeup 7-8 seconds later by usb-audio disconnect interrupt.to avoids the issue. Seeking a better fix, we've tried a lot of things, including: - Check that the device's

[PATCH] HID: quirks: Add USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for BYD zhaoxin notebook

2020-09-03 Thread Penghao
Add a USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for the BYD zhaoxin notebook. This notebook come with usb touchpad. And we would like to disable touchpad wakeup on this notebook by default. Signed-off-by: Penghao --- drivers/usb/core/quirks.c | 4 1 file changed, 4 insertions(+) diff --git

回复: [PATCH v2] debugobjects: install cpu hotplug callback

2020-09-03 Thread Zhang, Qiang
tglx please review. Thanks Qiang 发件人: linux-kernel-ow...@vger.kernel.org 代表 qiang.zh...@windriver.com 发送时间: 2020年8月27日 13:06 收件人: t...@linutronix.de; long...@redhat.com; el...@google.com 抄送: linux-kernel@vger.kernel.org 主题: [PATCH v2] debugobjects:

RE: [PATCH v1 1/1] scsi: ufshcd: Allow zero value setting to Auto-Hibernate Timer

2020-09-03 Thread Stanley Chu
On Wed, 2020-09-02 at 05:10 +, Avri Altman wrote: > > > > On 2020-08-29 00:32, Avri Altman wrote: > > >> > > >> The zero value Auto-Hibernate Timer is a valid setting, and it > > >> indicates the Auto-Hibernate feature being disabled. Correctly > > > Right. So " ufshcd_auto_hibern8_enable" is

Re: [PATCH] perf jevents: Fix suspicious code in fixregex()

2020-09-03 Thread Namhyung Kim
Hi Arnaldo and Ian, On Fri, Sep 4, 2020 at 3:41 AM Arnaldo Carvalho de Melo wrote: > > Em Thu, Sep 03, 2020 at 10:47:39AM -0700, Ian Rogers escreveu: > > On Thu, Sep 3, 2020 at 8:25 AM Namhyung Kim wrote: > > > The new string should have enough space for the original string and > > > the back

Re: [PATCH net-next] net: sch_generic: aviod concurrent reset and enqueue op for lockless qdisc

2020-09-03 Thread John Fastabend
Cong Wang wrote: > On Wed, Sep 2, 2020 at 7:22 PM Yunsheng Lin wrote: > > > > On 2020/9/3 9:48, Cong Wang wrote: > > > On Wed, Sep 2, 2020 at 6:22 PM Yunsheng Lin > > > wrote: > > >> > > >> On 2020/9/3 8:35, Cong Wang wrote: > > >>> On Tue, Sep 1, 2020 at 11:35 PM Yunsheng Lin > > >>> wrote:

Re: [PATCH v3 2/2] media: i2c: ov772x: Add test pattern control

2020-09-03 Thread Laurent Pinchart
Hi Prabhakar, Thank you for the patch. On Mon, Aug 24, 2020 at 08:04:06PM +0100, Lad Prabhakar wrote: > Add support for test pattern control supported by the sensor. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Biju Das > --- > drivers/media/i2c/ov772x.c | 25 - >

Re: [PATCH kcsan 18/19] bitops, kcsan: Partially revert instrumentation for non-atomic bitops

2020-09-03 Thread Boqun Feng
On Wed, Sep 02, 2020 at 08:13:15AM +0200, Marco Elver wrote: > On Wed, Sep 02, 2020 at 11:30AM +0800, Boqun Feng wrote: > > Hi Paul and Marco, > > > > The whole update patchset looks good to me, just one question out of > > curiosity fo this one, please see below: > > > > On Mon, Aug 31, 2020 at

Re: [PATCH v3 1/2] media: i2c: ov772x: Add support for BT656 mode

2020-09-03 Thread Laurent Pinchart
Hi Prabhakar, Thank you for the patch. On Mon, Aug 24, 2020 at 08:04:05PM +0100, Lad Prabhakar wrote: > Add support to read the bus-type and enable BT656 mode if needed. > > Also fail probe if unsupported bus_type is detected. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Biju Das > --- >

Re: [PATCH v2 05/17] virt: acrn: Introduce ACRN HSM basic driver

2020-09-03 Thread Liu, Shuo A
On 9/3/2020 20:53, Greg Kroah-Hartman wrote: > On Thu, Sep 03, 2020 at 08:41:49PM +0800, shuo.a@intel.com wrote: >> From: Shuo Liu >> >> ACRN Hypervisor Service Module (HSM) is a kernel module in Service VM >> which communicates with ACRN userspace through ioctls and talks to ACRN >>

WARNING: can't access registers at asm_sysvec_apic_timer_interrupt

2020-09-03 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:dcc5c6f0 Merge tag 'x86-urgent-2020-08-30' of git://git.ke.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1752eac190 kernel config: https://syzkaller.appspot.com/x/.config?x=978db74cb30aa994

[PATCH v2 1/1] iommu/vt-d: Use device numa domain if RHSA is missing

2020-09-03 Thread Lu Baolu
If there are multiple NUMA domains but the RHSA is missing in ACPI/DMAR table, we could default to the device NUMA domain as fall back. This could also benefit a vIOMMU use case where only single vIOMMU is exposed, hence no RHSA will be present but device numa domain can be correct. Cc: Jacob Pan

Re: [f2fs-dev] [PATCH v2] f2fs: change i_compr_blocks of inode to atomic value

2020-09-03 Thread Chao Yu
On 2020/9/4 1:48, Jaegeuk Kim wrote: On 09/03, Daeho Jeong wrote: From: Daeho Jeong writepages() can be concurrently invoked for the same file by different threads such as a thread fsyncing the file and a kworker kernel thread. So, changing i_compr_blocks without protection is racy and we

drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:959:30: warning: variable 'topology' set but not used

2020-09-03 Thread kernel test robot
Hi Drew, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: e28f0104343d0c132fa37f479870c9e43355fee4 commit: de3916c70a24e3e1bdbf6b0a77d75b069d8953d9 drm/msm/dpu: Track resources in global state date: 6 months ago

Re: [PATCH v2 3/6] ARM: dts: NSP: Fix SP804 compatible node

2020-09-03 Thread André Przywara
On 02/09/2020 00:04, Florian Fainelli wrote: Hi Florian, sorry, the mail got swamped in my inbox... > On 8/28/2020 10:12 AM, Florian Fainelli wrote: >> On 8/28/20 7:20 AM, Andre Przywara wrote: >>> The DT binding for SP804 requires to have an "arm,primecell" compatible >>> string. >>> Add this

Re: [PATCH v2] KVM: Check the allocation of pv cpu mask

2020-09-03 Thread Haiwei Li
On 20/9/3 18:39, Vitaly Kuznetsov wrote: Haiwei Li writes: From: Haiwei Li check the allocation of per-cpu __pv_cpu_mask. Initialize ops only when successful. Signed-off-by: Haiwei Li --- arch/x86/kernel/kvm.c | 24 1 file changed, 20 insertions(+), 4

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

2020-09-03 Thread Alexey Kardashevskiy
On 02/09/2020 16:11, Leonardo Bras wrote: On Mon, 2020-08-31 at 14:35 +1000, Alexey Kardashevskiy wrote: On 29/08/2020 04:36, Leonardo Bras wrote: 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

Re: [PATCH] Remove unused variables

2020-09-03 Thread Anant Thazhemadam
This patch was generated, and sent by a script I was working on (and apparently, still am), that would run sparse, detect unused variables and eliminate them. However, upon manual inspection, it became clear to me that these functions are in fact necessary. I'm sorry this mistake happened. Kindly

Re: [PATCH kcsan 6/9] tools/memory-model: Expand the cheatsheet.txt notion of relaxed

2020-09-03 Thread Boqun Feng
On Thu, Sep 03, 2020 at 04:30:37PM -0700, Paul E. McKenney wrote: > On Wed, Sep 02, 2020 at 08:37:15PM +0800, Boqun Feng wrote: > > On Wed, Sep 02, 2020 at 12:14:12PM +0200, pet...@infradead.org wrote: > > > On Wed, Sep 02, 2020 at 11:54:48AM +0800, Boqun Feng wrote: > > > > On Mon, Aug 31, 2020

Re: [PATCH v3] usb: dwc3: Stop active transfers before halting the controller

2020-09-03 Thread Thinh Nguyen
Wesley Cheng wrote: > In the DWC3 databook, for a device initiated disconnect or bus reset, the > driver is required to send dependxfer commands for any pending transfers. > In addition, before the controller can move to the halted state, the SW > needs to acknowledge any pending events. If the

Re: [PATCH v2 02/14] perf mem: Introduce weak function perf_mem_events__ptr()

2020-09-03 Thread Leo Yan
Hi Jiri, On Thu, Sep 03, 2020 at 03:50:54PM +0200, Jiri Olsa wrote: > On Tue, Sep 01, 2020 at 09:38:03AM +0100, Leo Yan wrote: > > SNIP > > > @@ -2941,30 +2942,38 @@ static int perf_c2c__record(int argc, const char > > **argv) > > rec_argv[i++] = "record"; > > > > if (!event_set) { >

[PATCH] Remove unused variables

2020-09-03 Thread Anant Thazhemadam
A few unused variables that were defined were found and removed. Signed-off-by: Anant Thazhemadam --- drivers/staging/comedi/drivers/dt2814.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/dt2814.c b/drivers/staging/comedi/drivers/dt2814.c index

Re: [PATCH] selftests/bpf: Fix check in global_data_init.

2020-09-03 Thread Alexei Starovoitov
On Thu, Sep 3, 2020 at 1:36 PM Andrii Nakryiko wrote: > > On Thu, Sep 3, 2020 at 1:06 PM Hao Luo wrote: > > > > The returned value of bpf_object__open_file() should be checked with > > libbpf_get_error() rather than NULL. This fix prevents test_progs from > > crash when test_global_data.o is not

[PATCH] spi: fsl-espi: Only process interrupts for expected events

2020-09-03 Thread Chris Packham
The SPIE register contains counts for the TX FIFO so any time the irq handler was invoked we would attempt to process the RX/TX fifos. Use the SPIM value to mask the events so that we only process interrupts that were expected. This was a latent issue exposed by commit 3282a3da25bd ("powerpc/64:

Re: [PATCH] ext4: flag as supporting buffered async reads

2020-09-03 Thread Jens Axboe
On 8/26/20 7:54 PM, Jens Axboe wrote: > On 8/25/20 8:18 AM, Jens Axboe wrote: >> On 8/24/20 4:56 AM, Jens Axboe wrote: >>> On 8/22/20 9:48 AM, Jens Axboe wrote: On 8/22/20 8:33 AM, Theodore Y. Ts'o wrote: > On Fri, Aug 21, 2020 at 03:26:35PM -0600, Jens Axboe wrote: > Resending

Re: [PATCH v3 1/3] remoteproc: Expose remoteproc configuration through sysfs

2020-09-03 Thread Bjorn Andersson
On Thu 03 Sep 18:03 CDT 2020, Rishabh Bhatnagar wrote: > Add a feature flag to expose some of the remoteproc configuration > through sysfs. This feature is helpful in systems where debugfs is > not available/mounted. Currently the recovery and coredump > configuration is exposed through sysfs

[GIT] Networking

2020-09-03 Thread David Miller
1) Use netif_rx_ni() when necessary in batman-adv stack, from Jussi Kivilinna. 2) Fix loss of RTT samples in rxrpc, from David Howells. 3) Memory leak in hns_nic_dev_probe(), from Dignhao Liu. 4) ravb module cannot be unloaded, fix from Yuusuke Ashizuka. 5) We disable BH for too lokng in

Re: [PATCH v2 0/3] Expose recovery/coredump configuration from sysfs

2020-09-03 Thread Bjorn Andersson
On Tue 01 Sep 17:05 CDT 2020, Mathieu Poirier wrote: > Hi Rishabh, > > On Thu, Aug 27, 2020 at 12:48:48PM -0700, Rishabh Bhatnagar wrote: > > From Android R onwards Google has restricted access to debugfs in user > > and user-debug builds. This restricts access to most of the features > >

Re: [PATCH v2 0/4] Support non-blocking pidfds

2020-09-03 Thread Josh Triplett
On Wed, Sep 02, 2020 at 12:21:26PM +0200, Christian Brauner wrote: > Hi, > > Passing a non-blocking pidfd to waitid() currently has no effect, i.e. > is not supported. There are users which would like to use waitid() on > pidfds that are O_NONBLOCK and mix it with pidfds that are blocking and >

Re: fsl_espi errors on v5.7.15

2020-09-03 Thread Chris Packham
On 1/09/20 6:14 pm, Nicholas Piggin wrote: > Excerpts from Chris Packham's message of September 1, 2020 11:25 am: >> On 1/09/20 12:33 am, Heiner Kallweit wrote: >>> On 30.08.2020 23:59, Chris Packham wrote: On 31/08/20 9:41 am, Heiner Kallweit wrote: > On 30.08.2020 23:00, Chris Packham

Re: [PATCH v2 2/4] exit: support non-blocking pidfds

2020-09-03 Thread Josh Triplett
On Wed, Sep 02, 2020 at 12:21:28PM +0200, Christian Brauner wrote: > Passing a non-blocking pidfd to waitid() currently has no effect, i.e. is not > supported. There are users which would like to use waitid() on pidfds that are > O_NONBLOCK and mix it with pidfds that are blocking and both pass

Re: [PATCH RESEND] epic100: switch from 'pci_' to 'dma_' API

2020-09-03 Thread David Miller
From: Christophe JAILLET Date: Thu, 3 Sep 2020 22:05:09 +0200 > The wrappers in include/linux/pci-dma-compat.h should go away. > > The patch has been generated with the coccinelle script below and has been > hand modified to replace GFP_ with a correct flag. > It has been compile tested. > >

Re: [PATCH RESEND] smsc9420: switch from 'pci_' to 'dma_' API

2020-09-03 Thread David Miller
From: Christophe JAILLET Date: Thu, 3 Sep 2020 22:10:55 +0200 > The wrappers in include/linux/pci-dma-compat.h should go away. > > The patch has been generated with the coccinelle script below and has been > hand modified to replace GFP_ with a correct flag. > It has been compile tested. > >

Re: [PATCH v2 2/4] exit: support non-blocking pidfds

2020-09-03 Thread Josh Triplett
On Thu, Sep 03, 2020 at 05:38:47PM +0200, Christian Brauner wrote: > On Thu, Sep 03, 2020 at 04:22:42PM +0200, Oleg Nesterov wrote: > > On 09/02, Christian Brauner wrote: > > > > > > It also makes the API more consistent and uniform. In essence, waitid() is > > > treated like a read on a

Re: [PATCH net-next v2] net: phy: dp83867: Fix various styling and space issues

2020-09-03 Thread David Miller
From: Dan Murphy Date: Thu, 3 Sep 2020 14:51:12 -0500 > Fix spacing issues reported for misaligned switch..case and extra new > lines. > > Also updated the file header to comply with networking commet style. > > Reviewed-by: Florian Fainelli > Signed-off-by: Dan Murphy Applied, thank you.

Re: [PATCH v2 1/4] pidfd: support PIDFD_NONBLOCK in pidfd_open()

2020-09-03 Thread Josh Triplett
On Wed, Sep 02, 2020 at 12:21:27PM +0200, Christian Brauner wrote: > Introduce PIDFD_NONBLOCK to support non-blocking pidfd file descriptors. > > Ever since the introduction of pidfds and more advanced async io various > programming languages such as Rust have grown support for async event >

Re: [PATCH kcsan 9/9] tools/memory-model: Document locking corner cases

2020-09-03 Thread Paul E. McKenney
On Tue, Sep 01, 2020 at 04:11:10PM -0400, Alan Stern wrote: > On Tue, Sep 01, 2020 at 10:04:21AM -0700, Paul E. McKenney wrote: > > On Mon, Aug 31, 2020 at 09:45:04PM -0400, Alan Stern wrote: > > > > The question is, what are you trying to accomplish in this section? Are > > > you trying to

Re: [PATCH v2 01/28] x86/boot/compressed: Disable relocation relaxation

2020-09-03 Thread Arvind Sankar
On Thu, Sep 03, 2020 at 02:44:41PM -0700, Kees Cook wrote: > On Thu, Sep 03, 2020 at 01:30:26PM -0700, Sami Tolvanen wrote: > > From: Arvind Sankar > > > > Patch series [4] is a solution to allow the compressed kernel to be > > linked with -pie unconditionally, but even if merged is unlikely to

Re: [PATCH v2 00/28] Add support for Clang LTO

2020-09-03 Thread Kees Cook
On Thu, Sep 03, 2020 at 01:30:25PM -0700, Sami Tolvanen wrote: > This patch series adds support for building x86_64 and arm64 kernels > with Clang's Link Time Optimization (LTO). > [...] > base-commit: e28f0104343d0c132fa37f479870c9e43355fee4 And if you're not a b4 user, this tree can be found at

Re: [PATCH v2 00/28] Add support for Clang LTO

2020-09-03 Thread Kees Cook
On Thu, Sep 03, 2020 at 01:30:25PM -0700, Sami Tolvanen wrote: > This patch series adds support for building x86_64 and arm64 kernels > with Clang's Link Time Optimization (LTO). Tested-by: Kees Cook FWIW, this gives me a happy booting x86 kernel: # cat /proc/version Linux version 5.9.0-rc3+

Re: [PATCH v2 08/10] phy: qcom-qmp: Add support for sc7180 DP phy

2020-09-03 Thread Jonathan Marek
On 9/2/20 7:02 PM, Stephen Boyd wrote: ... +static const struct qmp_phy_cfg sc7180_dpphy_cfg = { + .type = PHY_TYPE_DP, + .nlanes = 1, + + .serdes_tbl = qmp_v3_dp_serdes_tbl, + .serdes_tbl_num =

Re: [PATCH kcsan 6/9] tools/memory-model: Expand the cheatsheet.txt notion of relaxed

2020-09-03 Thread Paul E. McKenney
On Wed, Sep 02, 2020 at 08:37:15PM +0800, Boqun Feng wrote: > On Wed, Sep 02, 2020 at 12:14:12PM +0200, pet...@infradead.org wrote: > > On Wed, Sep 02, 2020 at 11:54:48AM +0800, Boqun Feng wrote: > > > On Mon, Aug 31, 2020 at 11:20:34AM -0700, paul...@kernel.org wrote: > > > > From: "Paul E.

Re: [PATCH] mmc: sdhci-msm: Prefer asynchronous probe

2020-09-03 Thread Doug Anderson
Hi, On Thu, Sep 3, 2020 at 7:44 AM Ulf Hansson wrote: > > On Thu, 3 Sep 2020 at 16:35, Doug Anderson wrote: > > > > Hi, > > > > On Thu, Sep 3, 2020 at 1:10 AM Ulf Hansson wrote: > > > > > > On Thu, 3 Sep 2020 at 01:43, Douglas Anderson > > > wrote: > > > > > > > > Turning on initcall debug

Re: [PATCH v2 07/10] phy: qcom-qmp: Add support for DP in USB3+DP combo phy

2020-09-03 Thread Jonathan Marek
On 9/2/20 7:02 PM, Stephen Boyd wrote: ... +static int qcom_qmp_phy_configure_dp_phy(struct qmp_phy *qphy) +{ + const struct qmp_phy_dp_clks *dp_clks = qphy->dp_clks; + const struct phy_configure_opts_dp *dp_opts = >dp_opts; + u32 val, phy_vco_div, status; + unsigned

Re: [PATCH 12/14] x86: remove address space overrides using set_fs()

2020-09-03 Thread Linus Torvalds
On Thu, Sep 3, 2020 at 2:30 PM David Laight wrote: > > A non-canonical (is that the right term) address between the highest > valid user address and the lowest valid kernel address (7ffe to fffe?) > will fault anyway. Yes. But we actually warn against that fault, because it's been a good way to

Re: [PATCH v2 07/10] phy: qcom-qmp: Add support for DP in USB3+DP combo phy

2020-09-03 Thread Jonathan Marek
On 9/3/20 6:41 PM, Stephen Boyd wrote: Quoting Jonathan Marek (2020-09-03 13:43:10) On 9/2/20 7:02 PM, Stephen Boyd wrote: This code is based on a submission of this phy and PLL in the drm subsystem. I updated my upstream-based sm8150/sm8250 displayport stack [1] to use these patches.

[PATCH 6/6] mmc: Set PROBE_PREFER_ASYNCHRONOUS for drivers that are newer than 5.4

2020-09-03 Thread Douglas Anderson
This is like commit 3d3451124f3d ("mmc: sdhci-msm: Prefer asynchronous probe") but applied to a whole pile of drivers. This batch converts the drivers that appeared to have been added after kernel 5.4. Signed-off-by: Douglas Anderson --- drivers/mmc/host/meson-mx-sdhc-mmc.c | 1 +

[PATCH 5/6] mmc: Set PROBE_PREFER_ASYNCHRONOUS for drivers that existed in v5.4

2020-09-03 Thread Douglas Anderson
This is like commit 3d3451124f3d ("mmc: sdhci-msm: Prefer asynchronous probe") but applied to a whole pile of drivers. This batch converts the drivers that appeared to be around in the v5.4 timeframe. Signed-off-by: Douglas Anderson --- drivers/mmc/host/alcor.c | 1 +

[PATCH 4/6] mmc: Set PROBE_PREFER_ASYNCHRONOUS for drivers that existed in v4.19

2020-09-03 Thread Douglas Anderson
This is like commit 3d3451124f3d ("mmc: sdhci-msm: Prefer asynchronous probe") but applied to a whole pile of drivers. This batch converts the drivers that appeared to be around in the v4.19 timeframe. Signed-off-by: Douglas Anderson --- drivers/mmc/host/dw_mmc-bluefield.c | 1 +

[PATCH 3/6] mmc: Set PROBE_PREFER_ASYNCHRONOUS for drivers that existed in v4.14

2020-09-03 Thread Douglas Anderson
This is like commit 3d3451124f3d ("mmc: sdhci-msm: Prefer asynchronous probe") but applied to a whole pile of drivers. This batch converts the drivers that appeared to be around in the v4.14 timeframe. Signed-off-by: Douglas Anderson --- drivers/mmc/host/bcm2835.c| 1 +

[PATCH 2/6] mmc: Set PROBE_PREFER_ASYNCHRONOUS for drivers that existed in v4.9

2020-09-03 Thread Douglas Anderson
This is like commit 3d3451124f3d ("mmc: sdhci-msm: Prefer asynchronous probe") but applied to a whole pile of drivers. This batch converts the drivers that appeared to be around in the v4.9 timeframe. Signed-off-by: Douglas Anderson --- drivers/mmc/host/sdhci-brcmstb.c | 1 +

Re: [PATCH v5 3/6] genirq/PM: Introduce IRQCHIP_ENABLE_WAKEUP_ON_SUSPEND flag

2020-09-03 Thread Doug Anderson
Hi, On Thu, Sep 3, 2020 at 5:57 AM Thomas Gleixner wrote: > > On Wed, Sep 02 2020 at 13:26, Doug Anderson wrote: > > Specifically I think it gets back to the idea that, from a device > > driver's point of view, there isn't a separate concept of disabling an > > IRQ (turn it off and stop tracking

[PATCH v3 1/3] remoteproc: Expose remoteproc configuration through sysfs

2020-09-03 Thread Rishabh Bhatnagar
Add a feature flag to expose some of the remoteproc configuration through sysfs. This feature is helpful in systems where debugfs is not available/mounted. Currently the recovery and coredump configuration is exposed through sysfs rather than debugfs when this feature is selected. Signed-off-by:

[PATCH v3 2/3] remoteproc: Add coredump configuration to sysfs

2020-09-03 Thread Rishabh Bhatnagar
Expose coredump configuration in sysfs under a feature flag. This is useful for systems where access to debugfs might be limited. Signed-off-by: Rishabh Bhatnagar --- Documentation/ABI/testing/sysfs-class-remoteproc | 24 +++ drivers/remoteproc/remoteproc_debugfs.c | 90

[PATCH v3 3/3] remoteproc: Add recovery configuration to sysfs

2020-09-03 Thread Rishabh Bhatnagar
Expose recovery configuration in sysfs under a feature flag. This is useful for systems where access to debugfs might be limited. Signed-off-by: Rishabh Bhatnagar --- Documentation/ABI/testing/sysfs-class-remoteproc | 20 ++ drivers/remoteproc/remoteproc_debugfs.c | 78

[PATCH v3 0/3] Expose recovery/coredump configuration from sysfs

2020-09-03 Thread Rishabh Bhatnagar
>From Android R onwards Google has restricted access to debugfs in user and user-debug builds. This restricts access to most of the features exposed through debugfs. This patch series removes the recovery/coredump entries from debugfs and adds a configurable option to expose these interfaces from

[PATCH] mm: workingset: ignore slab memory size when calculating shadows pressure

2020-09-03 Thread Roman Gushchin
In the memcg case count_shadow_nodes() sums the number of pages in lru lists and the amount of slab memory (reclaimable and non-reclaimable) as a baseline for the allowed number of shadow entries. It seems to be a good analogy for the !memcg case, where node_present_pages() is used. However, it's

Re: [PATCH v2 5/8] rpmsg: introduce reserved rpmsg driver for ns announcement

2020-09-03 Thread Mathieu Poirier
On Tue, Aug 25, 2020 at 06:49:04PM +0200, Arnaud Pouliquen wrote: > The name service announcement should not be linked to the RPMsg virtio bus > but to the RPMsg protocol itself. > > This patch proposes to break the dependency with the RPmsg virtio bus by > the introduction of the reserved RPMsg

Re: [PATCH v1 6/9] phy: qcom-qmp: Add support for DP in USB3+DP combo phy

2020-09-03 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2020-09-03 05:37:02) > On 02/09/2020 04:01, Stephen Boyd wrote: > > Quoting Dmitry Baryshkov (2020-09-01 06:36:34) > >> With these functions I'm struggling between introducing > >> PHY_TYPE_DP_V3/V4 and introducing callbacks into qmp_phy_cfg. What would > >> you prefer? >

Re: [PATCH v5 0/7] make hdmi work on bananapi-r2

2020-09-03 Thread Chun-Kuang Hu
Frank Wunderlich 於 2020年9月3日 週四 下午11:07寫道: > > Hi > > Any opinion about DTS Patches? Which maintainer will include it in tree? Is > any ack/review needed? According to maintainer list [1], the maintainer is ARM/Mediatek SoC support M: Matthias Brugger L: linux-arm-ker...@lists.infradead.org

Re: [PATCH v2 28/28] x86, build: allow LTO_CLANG and THINLTO to be selected

2020-09-03 Thread Kees Cook
On Thu, Sep 03, 2020 at 01:30:53PM -0700, Sami Tolvanen wrote: > Allow CONFIG_LTO_CLANG and CONFIG_THINLTO to be enabled. > > Signed-off-by: Sami Tolvanen I think it might be worth detailing why these arguments aren't handled in the normal fashion under Clang's LTO. Regardless, it's needed to

Re: [PATCH v2 27/28] x86, relocs: Ignore L4_PAGE_OFFSET relocations

2020-09-03 Thread Kees Cook
On Thu, Sep 03, 2020 at 01:30:52PM -0700, Sami Tolvanen wrote: > L4_PAGE_OFFSET is a constant value, so don't warn about absolute > relocations. > > Signed-off-by: Sami Tolvanen Any other details on this? I assume this is an ld.lld-ism. Any idea why this is only a problem under LTO? (Or is this

Re: [PATCH v2 26/28] x86, vdso: disable LTO only for vDSO

2020-09-03 Thread Kees Cook
On Thu, Sep 03, 2020 at 01:30:51PM -0700, Sami Tolvanen wrote: > Remove the undefined DISABLE_LTO flag from the vDSO, and filter out > CC_FLAGS_LTO flags instead where needed. Note that while we could use > Clang's LTO for the 64-bit vDSO, it won't add noticeable benefit for > the small amount of

Re: [PATCH v2 24/28] KVM: arm64: disable LTO for the nVHE directory

2020-09-03 Thread Kees Cook
On Thu, Sep 03, 2020 at 01:30:49PM -0700, 'Sami Tolvanen' via Clang Built Linux wrote: > We use objcopy to manipulate ELF binaries for the nvhe code, > which fails with LTO as the compiler produces LLVM bitcode > instead. Disable LTO for this code to allow objcopy to be used. > > Signed-off-by:

Re: [PATCH v2 25/28] arm64: allow LTO_CLANG and THINLTO to be selected

2020-09-03 Thread Kees Cook
On Thu, Sep 03, 2020 at 01:30:50PM -0700, Sami Tolvanen wrote: > Allow CONFIG_LTO_CLANG and CONFIG_THINLTO to be enabled. > > Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook -- Kees Cook

Re: [PATCH v2 22/28] arm64: export CC_USING_PATCHABLE_FUNCTION_ENTRY

2020-09-03 Thread Kees Cook
On Thu, Sep 03, 2020 at 01:30:47PM -0700, Sami Tolvanen wrote: > Since arm64 does not use -pg in CC_FLAGS_FTRACE with > DYNAMIC_FTRACE_WITH_REGS, skip running recordmcount by > exporting CC_USING_PATCHABLE_FUNCTION_ENTRY. > > Signed-off-by: Sami Tolvanen How stand-alone is this? Does it depend

Re: [PATCH v2 23/28] arm64: vdso: disable LTO

2020-09-03 Thread Kees Cook
On Thu, Sep 03, 2020 at 01:30:48PM -0700, Sami Tolvanen wrote: > Disable LTO for the vDSO by filtering out CC_FLAGS_LTO, as there's no > point in using link-time optimization for the small about of C code. > > Signed-off-by: Sami Tolvanen Yup. (And another replacement of the non-functional

Re: [PATCH v2 20/28] efi/libstub: disable LTO

2020-09-03 Thread Kees Cook
On Thu, Sep 03, 2020 at 01:30:45PM -0700, Sami Tolvanen wrote: > With CONFIG_LTO_CLANG, we produce LLVM bitcode instead of ELF object > files. Since LTO is not really needed here and the Makefile assumes we > produce an object file, disable LTO for libstub. > > Signed-off-by: Sami Tolvanen

Re: [PATCH v2 19/28] scripts/mod: disable LTO for empty.c

2020-09-03 Thread Kees Cook
On Thu, Sep 03, 2020 at 01:30:44PM -0700, Sami Tolvanen wrote: > With CONFIG_LTO_CLANG, clang generates LLVM IR instead of ELF object > files. As empty.o is used for probing target properties, disable LTO > for it to produce an object file instead. > > Signed-off-by: Sami Tolvanen Reviewed-by:

Re: [PATCH v2 18/28] modpost: lto: strip .lto from module names

2020-09-03 Thread Kees Cook
On Thu, Sep 03, 2020 at 01:30:43PM -0700, Sami Tolvanen wrote: > With LTO, everything is compiled into LLVM bitcode, so we have to link > each module into native code before modpost. Kbuild uses the .lto.o > suffix for these files, which also ends up in module information. This > change strips the

Re: [PATCH v2 16/28] init: lto: fix PREL32 relocations

2020-09-03 Thread Kees Cook
On Thu, Sep 03, 2020 at 01:30:41PM -0700, 'Sami Tolvanen' via Clang Built Linux wrote: > With LTO, the compiler can rename static functions to avoid global > naming collisions. As initcall functions are typically static, > renaming can break references to them in inline assembly. This > change

Re: [PATCH v2 17/28] PCI: Fix PREL32 relocations for LTO

2020-09-03 Thread Kees Cook
On Thu, Sep 03, 2020 at 01:30:42PM -0700, Sami Tolvanen wrote: > With Clang's Link Time Optimization (LTO), the compiler can rename > static functions to avoid global naming collisions. As PCI fixup > functions are typically static, renaming can break references > to them in inline assembly. This

Re: [PATCH v2 15/28] init: lto: ensure initcall ordering

2020-09-03 Thread Kees Cook
On Thu, Sep 03, 2020 at 01:30:40PM -0700, Sami Tolvanen wrote: > With LTO, the compiler doesn't necessarily obey the link order for > initcalls, and initcall variables need globally unique names to avoid > collisions at link time. > > This change exports __KBUILD_MODNAME and adds the

Re: [PATCH v2 07/10] phy: qcom-qmp: Add support for DP in USB3+DP combo phy

2020-09-03 Thread Stephen Boyd
Quoting Jonathan Marek (2020-09-03 13:43:10) > On 9/2/20 7:02 PM, Stephen Boyd wrote: > > > > This code is based on a submission of this phy and PLL in the drm > > subsystem. > > I updated my upstream-based sm8150/sm8250 displayport stack [1] to use > these patches. Great! > > This commit

[PATCH bpf-next v2 3/6] bpf/selftests: ksyms_btf to test typed ksyms

2020-09-03 Thread Hao Luo
Selftests for typed ksyms. Tests two types of ksyms: one is a struct, the other is a plain int. This tests two paths in the kernel. Struct ksyms will be converted into PTR_TO_BTF_ID by the verifier while int typed ksyms will be converted into PTR_TO_MEM. Signed-off-by: Hao Luo ---

Re: [PATCH v7 9/9] x86/mmu: Allocate/free PASID

2020-09-03 Thread Fenghua Yu
Hi, Thomas, Andy, et al, On Thu, Aug 27, 2020 at 08:06:34AM -0700, Fenghua Yu wrote: > A PASID is allocated for an "mm" the first time any thread binds > to an SVM capable device and is freed from the "mm" when the SVM is > unbound by the last thread. It's possible for the "mm" to have different

[PATCH bpf-next v2 5/6] bpf: Introduce bpf_this_cpu_ptr()

2020-09-03 Thread Hao Luo
Add bpf_this_cpu_ptr() to help access percpu var on this cpu. This helper always returns a valid pointer, therefore no need to check returned value for NULL. Also note that all programs run with preemption disabled, which means that the returned pointer is stable during all the execution of the

[PATCH bpf-next v2 2/6] bpf/libbpf: BTF support for typed ksyms

2020-09-03 Thread Hao Luo
If a ksym is defined with a type, libbpf will try to find the ksym's btf information from kernel btf. If a valid btf entry for the ksym is found, libbpf can pass in the found btf id to the verifier, which validates the ksym's type and value. Typeless ksyms (i.e. those defined as 'void') will not

[PATCH bpf-next v2 4/6] bpf: Introduce bpf_per_cpu_ptr()

2020-09-03 Thread Hao Luo
Add bpf_per_cpu_ptr() to help bpf programs access percpu vars. bpf_per_cpu_ptr() has the same semantic as per_cpu_ptr() in the kernel except that it may return NULL. This happens when the cpu parameter is out of range. So the caller must check the returned value. Acked-by: Andrii Nakryiko

[PATCH bpf-next v2 0/6] bpf: BTF support for ksyms

2020-09-03 Thread Hao Luo
v1 -> v2: - Move check_pseudo_btf_id from check_ld_imm() to replace_map_fd_with_map_ptr() and rename the latter. - Add bpf_this_cpu_ptr(). - Use bpf_core_types_are_compat() in libbpf.c for checking type compatibility. - Rewrite typed ksym extern type in BTF with int to save space. -

[PATCH bpf-next v2 1/6] bpf: Introduce pseudo_btf_id

2020-09-03 Thread Hao Luo
Pseudo_btf_id is a type of ld_imm insn that associates a btf_id to a ksym so that further dereferences on the ksym can use the BTF info to validate accesses. Internally, when seeing a pseudo_btf_id ld insn, the verifier reads the btf_id stored in the insn[0]'s imm field and marks the dst_reg as

[PATCH bpf-next v2 6/6] bpf/selftests: Test for bpf_per_cpu_ptr() and bpf_this_cpu_ptr()

2020-09-03 Thread Hao Luo
Test bpf_per_cpu_ptr() and bpf_this_cpu_ptr(). Test two paths in the kernel. If the base pointer points to a struct, the returned reg is of type PTR_TO_BTF_ID. Direct pointer dereference can be applied on the returned variable. If the base pointer isn't a struct, the returned reg is of type

Re: [PATCH v2 14/28] kbuild: lto: remove duplicate dependencies from .mod files

2020-09-03 Thread Kees Cook
On Thu, Sep 03, 2020 at 01:30:39PM -0700, Sami Tolvanen wrote: > With LTO, llvm-nm prints out symbols for each archive member > separately, which results in a lot of duplicate dependencies in the > .mod file when CONFIG_TRIM_UNUSED_SYMS is enabled. When a module > consists of several compilation

[PATCH v2 3/7] dt-bindings: clock: combine qcom,sdm845-dispcc and qcom,sc7180-dispcc

2020-09-03 Thread Jonathan Marek
These two bindings are almost identical, so combine them into one. This will make it easier to add the sm8150 and sm8250 dispcc bindings. Signed-off-by: Jonathan Marek --- ...om,sdm845-dispcc.yaml => qcom,dispcc.yaml} | 18 ++-- .../bindings/clock/qcom,sc7180-dispcc.yaml| 86

[PATCH v2 4/7] dt-bindings: clock: Introduce QCOM SM8150 display clock bindings

2020-09-03 Thread Jonathan Marek
Add device tree bindings for display clock controller for Qualcomm Technology Inc's SM8150 SoCs. Signed-off-by: Jonathan Marek --- .../bindings/clock/qcom,dispcc.yaml | 4 +- .../dt-bindings/clock/qcom,dispcc-sm8150.h| 69 +++ 2 files changed, 72 insertions(+), 1

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