Re: [PATCH v2 03/24] virtio: allow __virtioXX, __leXX in config space

2020-08-05 Thread Michael S. Tsirkin
On Thu, Aug 06, 2020 at 11:37:38AM +0800, Jason Wang wrote: > > On 2020/8/5 下午7:45, Michael S. Tsirkin wrote: > > > >#define virtio_cread(vdev, structname, member, ptr) > > > > \ > > > > do { > > > > \ > > >

[PATCH 1/2] exfat: add NameLength check when extracting name

2020-08-05 Thread Tetsuhiro Kohada
The current implementation doesn't care NameLength when extracting the name from Name dir-entries, so the name may be incorrect. (Without null-termination, Insufficient Name dir-entry, etc) Add a NameLength check when extracting the name from Name dir-entries to extract correct name. And, change

[PATCH 2/2] exfat: unify name extraction

2020-08-05 Thread Tetsuhiro Kohada
Name extraction in exfat_find_dir_entry() also doesn't care NameLength, so the name may be incorrect. Replace the name extraction in exfat_find_dir_entry() with using exfat_entry_set_cache and exfat_get_uniname_from_name_entries(), like exfat_readdir(). Replace the name extraction with using

RE: [PATCH v7] cpufreq: intel_pstate: Implement passive mode with HWP enabled

2020-08-05 Thread Doug Smythies
On 2020.08.05 09:56 Rafael J. Wysocki wrote: > v6 -> v7: >* Cosmetic changes in store_energy_performance_prefernce() to reduce the > LoC number and make it a bit easier to read. No intentional functional > impact. ?? V7 is identical to V6. Diff: $ diff hwppassive-v6-2-2.patch

Re: [PATCH 4/4] vhost: vdpa: report iova range

2020-08-05 Thread Michael S. Tsirkin
On Thu, Aug 06, 2020 at 11:29:16AM +0800, Jason Wang wrote: > > On 2020/8/5 下午8:58, Michael S. Tsirkin wrote: > > On Wed, Jun 17, 2020 at 11:29:47AM +0800, Jason Wang wrote: > > > This patch introduces a new ioctl for vhost-vdpa device that can > > > report the iova range by the device. For

RE: [PATCH] cpufreq: intel_pstate: Implement passive mode with HWP enabled

2020-08-05 Thread Doug Smythies
On 2020.08.03 10:09 Rafael J. Wysocki wrote: > On Sunday, August 2, 2020 5:17:39 PM CEST Doug Smythies wrote: > > On 2020.07.19 04:43 Rafael J. Wysocki wrote: > > > On Fri, Jul 17, 2020 at 3:37 PM Doug Smythies wrote: > > > > On 2020.07.16 05:08 Rafael J. Wysocki wrote: > > > > > On Wed, Jul 15,

Re: [PATCH 1/4] vdpa: introduce config op to get valid iova range

2020-08-05 Thread Michael S. Tsirkin
On Thu, Aug 06, 2020 at 11:25:11AM +0800, Jason Wang wrote: > > On 2020/8/5 下午8:51, Michael S. Tsirkin wrote: > > On Wed, Jun 17, 2020 at 11:29:44AM +0800, Jason Wang wrote: > > > This patch introduce a config op to get valid iova range from the vDPA > > > device. > > > > > > Signed-off-by:

Re: [PATCH v2 19/24] vdpa: make sure set_features in invoked for legacy

2020-08-05 Thread Michael S. Tsirkin
On Thu, Aug 06, 2020 at 11:23:05AM +0800, Jason Wang wrote: > > On 2020/8/5 下午7:40, Michael S. Tsirkin wrote: > > On Wed, Aug 05, 2020 at 02:14:07PM +0800, Jason Wang wrote: > > > On 2020/8/4 上午5:00, Michael S. Tsirkin wrote: > > > > Some legacy guests just assume features are 0 after reset. > >

Re: [PATCH] jbd2: fix incorrect code style

2020-08-05 Thread tytso
On Sat, Jul 18, 2020 at 08:57:37AM -0400, Xianting Tian wrote: > Remove unnecessary blank. > > Signed-off-by: Xianting Tian Thanks, applied. - Ted

Re: [RFC PATCH] mm: silence soft lockups from unlock_page

2020-08-05 Thread Hugh Dickins
On Mon, 27 Jul 2020, Greg KH wrote: > > Linus just pointed me at this thread. > > If you could run: > echo -n 'module xhci_hcd =p' > /sys/kernel/debug/dynamic_debug/control > and run the same workload to see if anything shows up in the log when > xhci crashes, that would be great. Thanks,

Re: [PATCH v10 2/5] powerpc/vdso: Prepare for switching VDSO to generic C implementation.

2020-08-05 Thread Christophe Leroy
Hi, On 08/05/2020 06:40 PM, Segher Boessenkool wrote: Hi! On Wed, Aug 05, 2020 at 04:40:16PM +, Christophe Leroy wrote: It cannot optimise it because it does not know shift < 32. The code below is incorrect for shift equal to 32, fwiw. Is there a way to tell it ? Sure, for example

Re: [PATCH 2/2] Add a new sysctl knob: unprivileged_userfaultfd_user_mode_only

2020-08-05 Thread Michael S. Tsirkin
On Wed, Aug 05, 2020 at 05:43:02PM -0700, Nick Kralevich wrote: > On Fri, Jul 24, 2020 at 6:40 AM Michael S. Tsirkin wrote: > > > > On Thu, Jul 23, 2020 at 05:13:28PM -0700, Nick Kralevich wrote: > > > On Thu, Jul 23, 2020 at 10:30 AM Lokesh Gidra > > > wrote: > > > > From the discussion so far

[PATCH] tty: synclink_gt: switch from 'pci_' to 'dma_' API

2020-08-05 Thread Christophe JAILLET
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. When memory is allocated in 'alloc_desc()' and 'alloc_bufs()', GFP_KERNEL can

Re: [PATCH 06/18] fsinfo: Add a uniquifier ID to struct mount [ver #21]

2020-08-05 Thread Ian Kent
On Wed, 2020-08-05 at 20:33 +0100, Matthew Wilcox wrote: > On Wed, Aug 05, 2020 at 04:30:10PM +0100, David Howells wrote: > > Miklos Szeredi wrote: > > > > > idr_alloc_cyclic() seems to be a good template for doing the > > > lower > > > 32bit allocation, and we can add code to increment the high

Re: [PATCH V2] venus: core: add shutdown callback for venus

2020-08-05 Thread kernel test robot
Hi Mansur, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v5.8 next-20200805] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base

RE: [PATCH] kprobes: fix compiler warning for !CONFIG_KPROBES_ON_FTRACE

2020-08-05 Thread John Fastabend
Muchun Song wrote: > Fix compiler warning(as show below) for !CONFIG_KPROBES_ON_FTRACE. > > kernel/kprobes.c: In function 'kill_kprobe': > kernel/kprobes.c:1116:33: warning: statement with no effect > [-Wunused-value] > 1116 | #define disarm_kprobe_ftrace(p) (-ENODEV) > |

Re: ext4: fix spelling typos in ext4_mb_initialize_context

2020-08-05 Thread tytso
On Wed, Jul 15, 2020 at 11:00:44AM +0800, brookxu wrote: > Fix spelling typos in ext4_mb_initialize_context. > > Signed-off-by: Chunguang Xu Thanks, applied. - Ted

Re: [PATCH 1/2] sched/topology: Allow archs to override cpu_smt_mask

2020-08-05 Thread Michael Ellerman
pet...@infradead.org writes: > On Tue, Aug 04, 2020 at 05:40:07PM +0530, Srikar Dronamraju wrote: >> * pet...@infradead.org [2020-08-04 12:45:20]: >> >> > On Tue, Aug 04, 2020 at 09:03:06AM +0530, Srikar Dronamraju wrote: >> > > cpu_smt_mask tracks topology_sibling_cpumask. This would be good

Re: [PATCH v5 4/4] clk: qcom: lpass: Add support for LPASS clock controller for SC7180

2020-08-05 Thread Taniya Das
Hi Stephen, On 8/6/2020 1:54 AM, Stephen Boyd wrote: Quoting Taniya Das (2020-07-24 09:07:58) + +static struct clk_rcg2 core_clk_src = { + .cmd_rcgr = 0x1d000, + .mnd_width = 8, + .hid_width = 5, + .parent_map = lpass_core_cc_parent_map_2, + .clkr.hw.init =

Re: [PATCH v6 15/18] nitro_enclaves: Add Makefile for the Nitro Enclaves driver

2020-08-05 Thread Paraschiv, Andra-Irina
On 05/08/2020 17:23, kernel test robot wrote: Hi Andra, Thank you for the patch! Yet something to improve: [auto build test ERROR on linux/master] [also build test ERROR on linus/master v5.8 next-20200805] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

[PATCH] dt-bindings: sound: Convert NXP spdif to json-schema

2020-08-05 Thread Anson Huang
Convert the NXP SPDIF binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/sound/fsl,spdif.txt| 68 - .../devicetree/bindings/sound/fsl,spdif.yaml | 108 + 2 files changed, 108 insertions(+), 68

Re: [RFC PATCH] mm: silence soft lockups from unlock_page

2020-08-05 Thread Hugh Dickins
Nice to see the +130.0% this morning. I got back on to this on Monday, here's some follow-up. On Sun, 26 Jul 2020, Hugh Dickins wrote: > > The comparison runs have not yet completed (except for the one started > early), but they have all got past the most interesting tests, and it's > clear

Re: [PATCH v2 2/2] dma-pool: Only allocate from CMA when in same memory zone

2020-08-05 Thread Christoph Hellwig
On Tue, Aug 04, 2020 at 11:43:15AM +0200, Nicolas Saenz Julienne wrote: > > Second I don't see the need (and actually some harm) in preventing > > GFP_KERNEL > > allocations from dipping into lower CMA areas - something that we did > > support > > before 5.8 with the single pool. > > My

[PATCH 9/9] scsi: ufs: Properly release resources if a task is aborted successfully

2020-08-05 Thread Can Guo
In current UFS task abort hook, namely ufshcd_abort(), if a task is aborted successfully, clock scaling busy time statistics is not updated and, most important, clk_gating.active_reqs is not decreased, which makes clk_gating.active_reqs stay above zero forever, thus clock gating would never

[PATCH 1/9] scsi: ufs: Add checks before setting clk-gating states

2020-08-05 Thread Can Guo
Clock gating features can be turned on/off selectively which means its state information is only important if it is enabled. This change makes sure that we only look at state of clk-gating if it is enabled. Signed-off-by: Can Guo Reviewed-by: Avri Altman Reviewed-by: Hongwu Su Reviewed-by:

[PATCH 7/9] scsi: ufs: Move dumps in IRQ handler to error handler

2020-08-05 Thread Can Guo
Sometime dumps in IRQ handler are heavy enough to cause system stability issues, move them to error handler and only print basic host regs here. Signed-off-by: Can Guo Reviewed-by: Bean Huo diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 6a10003..a79fbbd 100644 ---

[PATCH 6/9] scsi: ufs: Recover hba runtime PM error in error handler

2020-08-05 Thread Can Guo
Current error handler cannot work well or recover hba runtime PM error if ufshcd_suspend/resume has failed due to UFS errors, e.g. hibern8 enter/exit error or SSU cmd error. When this happens, error handler may fail doing full reset and restore because error handler always assumes that powers,

[PATCH 5/9] scsi: ufs: Fix concurrency of error handler and other error recovery paths

2020-08-05 Thread Can Guo
Error recovery can be invoked from multiple paths, including hibern8 enter/exit (from ufshcd_link_recovery), ufshcd_eh_host_reset_handler and eh_work scheduled from IRQ context. Ultimately, these paths are trying to invoke ufshcd_reset_and_restore, in either sync or async manner. Having both sync

[PATCH 8/9] scsi: ufs: Fix a racing problem btw error handler and runtime PM ops

2020-08-05 Thread Can Guo
Current IRQ handler blocks scsi requests before scheduling eh_work, when error handler calls pm_runtime_get_sync, if ufshcd_suspend/resume sends a scsi cmd, most likely the SSU cmd, since scsi requests are blocked, pm_runtime_get_sync() will never return because ufshcd_suspend/reusme is blocked by

[PATCH 4/9] scsi: ufs: Add some debug infos to ufshcd_print_host_state

2020-08-05 Thread Can Guo
The infos of the last interrupt status and its timestamp are very helpful when debug system stability issues, e.g. IRQ starvation, so add them to ufshcd_print_host_state. Meanwhile, UFS device infos like model name and its FW version also come in handy during debug. In addition, this change makes

[PATCH 3/9] scsi: ufs-qcom: Remove testbus dump in ufs_qcom_dump_dbg_regs

2020-08-05 Thread Can Guo
Dumping testbus registers is heavy enough to cause stability issues sometime, just remove them as of now. Signed-off-by: Can Guo Reviewed-by: Hongwu Su Reviewed-by: Avri Altman Reviewed-by: Bean Huo diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c index 823eccf..6b75338

[PATCH 2/9] ufs: ufs-qcom: Fix race conditions caused by func ufs_qcom_testbus_config

2020-08-05 Thread Can Guo
If ufs_qcom_dump_dbg_regs() calls ufs_qcom_testbus_config() from ufshcd_suspend/resume and/or clk gate/ungate context, pm_runtime_get_sync() and ufshcd_hold() will cause racing problems. Fix this by removing the unnecessary calls of pm_runtime_get_sync() and ufshcd_hold(). Signed-off-by: Can Guo

Re: [PATCH] Replace HTTP links with HTTPS ones: Ext4

2020-08-05 Thread tytso
On Mon, Jul 06, 2020 at 09:03:39PM +0200, Alexander A. Klimov wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. Thanks, applied. - Ted

Re: [PATCH v9 8/9] scsi: ufs: Fix a racing problem btw error handler and runtime PM ops

2020-08-05 Thread Can Guo
On 2020-08-05 09:31, Martin K. Petersen wrote: Can, Current IRQ handler blocks scsi requests before scheduling eh_work, when error handler calls pm_runtime_get_sync, if ufshcd_suspend/resume sends a scsi cmd, most likely the SSU cmd, since scsi requests are blocked, pm_runtime_get_sync() will

drivers/usb/host/ehci.h:743:17: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-08-05 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fffe3ae0ee84e25d2befe2ae59bc32aa2b6bc77b commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 7 weeks ago config: mips-randconfig-s031-20200806 (attached

[PATCH v4] PCI: Reduce warnings on possible RW1C corruption

2020-08-05 Thread Mark Tomlinson
For hardware that only supports 32-bit writes to PCI there is the possibility of clearing RW1C (write-one-to-clear) bits. A rate-limited messages was introduced by fb2659230120, but rate-limiting is not the best choice here. Some devices may not show the warnings they should if another device has

[PATCH] softirq: add irq off checking for __raise_softirq_irqoff

2020-08-05 Thread Jiafei Pan
__raise_softirq_irqoff will update per-CPU mask of pending softirqs, it need to be called in irq disabled context in order to keep it atomic operation, otherwise it will be interrupted by hardware interrupt, and per-CPU softirqs pending mask will be corrupted, the result is there will be

[PATCH] leds: Add an optional property named 'sdb-gpios'

2020-08-05 Thread Grant Feng
The chip enters hardware shutdown when the SDB pin is pulled low. The chip releases hardware shutdown when the SDB pin is pulled high. Signed-off-by: Grant Feng --- Documentation/devicetree/bindings/leds/leds-is31fl32xx.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git

RE: [EXT] Re: [PATCH v4 2/2] net: dsa: ocelot: Add support for QinQ Operation

2020-08-05 Thread Hongbo Wang
> On 8/3/2020 11:36 PM, Hongbo Wang wrote: > >>> + if (vlan->proto == ETH_P_8021AD) { > >>> + ocelot->enable_qinq = true; > >>> + ocelot_port->qinq_mode = true; > >>> + } > >> ... > >>> + if (vlan->proto == ETH_P_8021AD) { > >>> +

Re: [PATCH v4 01/12] ASoC: qcom: Add common array to initialize soc based core clocks

2020-08-05 Thread Rohit Kumar
Thanks Stephen for reviewing. On 8/6/2020 6:01 AM, Stephen Boyd wrote: Quoting Rohit kumar (2020-07-22 03:31:44) From: Ajit Pandey LPASS variants have their own soc specific clocks that needs to be enabled for MI2S audio support. Added a common variable in drvdata to initialize such clocks

Re: [PATCH v2] mm: vmstat: fix /proc/sys/vm/stat_refresh generating false warnings

2020-08-05 Thread Roman Gushchin
On Wed, Aug 05, 2020 at 08:01:33PM -0700, Hugh Dickins wrote: > On Mon, 3 Aug 2020, Roman Gushchin wrote: > > On Fri, Jul 31, 2020 at 07:17:05PM -0700, Hugh Dickins wrote: > > > On Fri, 31 Jul 2020, Roman Gushchin wrote: > > > > On Thu, Jul 30, 2020 at 09:06:55PM -0700, Hugh Dickins wrote: > > > >

Re: [PATCH v17 01/21] mm/vmscan: remove unnecessary lruvec adding

2020-08-05 Thread Alex Shi
在 2020/7/25 下午8:59, Alex Shi 写道: > We don't have to add a freeable page into lru and then remove from it. > This change saves a couple of actions and makes the moving more clear. > > The SetPageLRU needs to be kept here for list intergrity. > Otherwise: > #0 mave_pages_to_lru #1

Re: [PATCH] venus: core: add shutdown callback for venus

2020-08-05 Thread mansur
Hi Sai, On 2020-06-24 12:17, Sai Prakash Ranjan wrote: Hi Mansur, On 2020-06-13 16:03, Mansur Alisha Shaik wrote: After the SMMU translation is disabled in the arm-smmu shutdown callback during reboot, if any subsystem are still alive then IOVAs they are using will become PAs on bus, which

[PATCH V2] venus: core: add shutdown callback for venus

2020-08-05 Thread Mansur Alisha Shaik
After the SMMU translation is disabled in the arm-smmu shutdown callback during reboot, if any subsystem are still alive then IOVAs they are using will become PAs on bus, which may lead to crash. Below are the consumers of smmu from venus arm-smmu: consumer: aa0.video-codec

Re: [PATCH 0/2] locking/qspinlock: Break qspinlock_types.h header loop

2020-08-05 Thread Vineet Gupta
On 7/30/20 12:50 AM, Herbert Xu wrote: > On Thu, Jul 30, 2020 at 10:47:16AM +0300, Andy Shevchenko wrote: >> We may ask Synopsys folks to look at this as well. >> Vineet, any ideas if we may unify ATOMIC64_INIT() across the architectures? > I don't think there is any technical difficulty. The

Re: [PATCH v2 03/24] virtio: allow __virtioXX, __leXX in config space

2020-08-05 Thread Jason Wang
On 2020/8/5 下午7:45, Michael S. Tsirkin wrote: #define virtio_cread(vdev, structname, member, ptr) \ do {\ might_sleep(); \ /* Must

Re: linux-next: manual merge of the hmm tree with the kvm-ppc tree

2020-08-05 Thread Stephen Rothwell
Hi all, On Thu, 30 Jul 2020 19:16:10 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the hmm tree got a conflict in: > > arch/powerpc/kvm/book3s_hv_uvmem.c > > between commit: > > f1b87ea8784b ("KVM: PPC: Book3S HV: Move kvmppc_svm_page_out up") > > from the kvm-ppc tree

Re: [PATCH 4/4] vhost: vdpa: report iova range

2020-08-05 Thread Jason Wang
On 2020/8/5 下午8:58, Michael S. Tsirkin wrote: On Wed, Jun 17, 2020 at 11:29:47AM +0800, Jason Wang wrote: This patch introduces a new ioctl for vhost-vdpa device that can report the iova range by the device. For device that depends on platform IOMMU, we fetch the iova range via

[GIT PULL] erofs fixes for 5.9-rc1

2020-08-05 Thread Gao Xiang
Hi Linus, Could you consider this pull request for 5.9-rc1? This cycle mainly addresses an issue out of some extended inode with designated location, which can hardly be generated by current mkfs but needs to handle at runtime anyway. The others are quite trivial ones. All commits have been

Re: [PATCH 3/4] vdpa: get_iova_range() is mandatory for device specific DMA translation

2020-08-05 Thread Jason Wang
On 2020/8/5 下午8:55, Michael S. Tsirkin wrote: On Wed, Jun 17, 2020 at 11:29:46AM +0800, Jason Wang wrote: In order to let userspace work correctly, get_iova_range() is a must for the device that has its own DMA translation logic. I guess you mean for a device. However in absence of ths op,

Re: WARNING in rxrpc_recvmsg

2020-08-05 Thread syzbot
syzbot suspects this issue was fixed by commit: commit 65550098c1c4db528400c73acf3e46bfa78d9264 Author: David Howells Date: Tue Jul 28 23:03:56 2020 + rxrpc: Fix race between recvmsg and sendmsg on immediate call failure bisection log:

Re: [PATCH 1/4] vdpa: introduce config op to get valid iova range

2020-08-05 Thread Jason Wang
On 2020/8/5 下午8:51, Michael S. Tsirkin wrote: On Wed, Jun 17, 2020 at 11:29:44AM +0800, Jason Wang wrote: This patch introduce a config op to get valid iova range from the vDPA device. Signed-off-by: Jason Wang --- include/linux/vdpa.h | 14 ++ 1 file changed, 14 insertions(+)

Re: [PATCH v2 22/24] vdpa_sim: fix endian-ness of config space

2020-08-05 Thread Jason Wang
On 2020/8/5 下午8:06, Michael S. Tsirkin wrote: On Wed, Aug 05, 2020 at 02:21:07PM +0800, Jason Wang wrote: On 2020/8/4 上午5:00, Michael S. Tsirkin wrote: VDPA sim accesses config space as native endian - this is wrong since it's a modern device and actually uses LE. It only supports modern

Re: [PATCH v2 19/24] vdpa: make sure set_features in invoked for legacy

2020-08-05 Thread Jason Wang
On 2020/8/5 下午7:40, Michael S. Tsirkin wrote: On Wed, Aug 05, 2020 at 02:14:07PM +0800, Jason Wang wrote: On 2020/8/4 上午5:00, Michael S. Tsirkin wrote: Some legacy guests just assume features are 0 after reset. We detect that config space is accessed before features are set and set features

Re: Is anyone else getting a bad signature from kernel.org's 5.8 sources+Greg's sign?

2020-08-05 Thread David Niklas
On Wed, 5 Aug 2020 18:36:08 -0700 Randy Dunlap wrote: > On 8/5/20 5:59 PM, David Niklas wrote: > > Hello, > > I downloaded the kernel sources from kernel.org using curl, then > > opera, and finally lynx (to rule out an html parsing bug). I did the > > same with the sign and I keep getting: > >

Re: [GIT PULL] LEDs changes for v5.9-rc1

2020-08-05 Thread pr-tracker-bot
The pull request you sent on Wed, 5 Aug 2020 23:33:29 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds.git/ > tags/leds-5.9-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e4a7b2dc35d9582c253cf5e6d6c3605aabc7284d Thank you! --

[PATCH RESEND v1 06/11] perf mem: Support Arm SPE events

2020-08-05 Thread Leo Yan
This patch is to add Arm SPE events for perf memory profiling. It supports three Arm SPE events: - spe-load: memory event for only recording memory load ops; - spe-store: memory event for only recording memory store ops; - spe-ldst: memory event for recording memory load and store ops.

[PATCH RESEND v1 05/11] perf mem: Support AUX trace

2020-08-05 Thread Leo Yan
Perf memory profiling doesn't support aux trace data so the tool cannot receive the synthesized samples from hardware tracing data. On the Arm64 platform, though it doesn't support PMU events for memory load and store, but Armv8's SPE is a good candidate for memory profiling, the hardware tracer

[PATCH RESEND v1 04/11] perf mem: Only initialize memory event for recording

2020-08-05 Thread Leo Yan
It's needless to initialize memory events for perf reporting, so only initialize memory event for perf recording. This change allows to parse perf data on cross platforms, e.g. perf tool can output reports even the machine doesn't enable any memory events. Signed-off-by: Leo Yan ---

[PATCH RESEND v1 11/11] perf arm-spe: Set sample's data source field

2020-08-05 Thread Leo Yan
The sample structure contains the field 'data_src' which is used to tell the detailed info for data operations, e.g. this field indicates the data operation is loading or storing, on which cache level, it's snooping or remote accessing, etc. At the end, the 'data_src' will be parsed by perf

[PATCH RESEND v1 03/11] perf mem: Support new memory event PERF_MEM_EVENTS__LOAD_STORE

2020-08-05 Thread Leo Yan
The existed architectures which have supported perf memory profiling, usually it contains two types of hardware events: load and store, so if want to profile memory for both load and store operations, the tool will use these two events at the same time. But this is not valid for aux tracing

[PATCH RESEND v1 08/11] perf arm-spe: Save memory addresses in packet

2020-08-05 Thread Leo Yan
This patch is to save virtual and physical memory addresses in packet, the address info can be used for generating memory samples. Signed-off-by: Leo Yan --- tools/perf/util/arm-spe-decoder/arm-spe-decoder.c | 4 tools/perf/util/arm-spe-decoder/arm-spe-decoder.h | 2 ++ 2 files changed, 6

[PATCH RESEND v1 10/11] perf arm-spe: Fill address info for memory samples

2020-08-05 Thread Leo Yan
Since the Arm SPE backend decoder has passed virtual and physical addresses info through packet, these addresses info can be filled into the synthesize samples, finally the address info can be used for memory profiling. To support memory related samples, this patch divides into two functions for

Re: [git pull] drm next for 5.9-rc1

2020-08-05 Thread pr-tracker-bot
The pull request you sent on Thu, 6 Aug 2020 11:07:02 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-next-2020-08-06 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/8186749621ed6b8fc42644c399e8c755a2b6f630 Thank you! -- Deet-doot-dot, I am a bot.

[PATCH RESEND v1 09/11] perf arm-spe: Store operation types in packet

2020-08-05 Thread Leo Yan
This patch is to store operation types into packet structure, this can be used by frontend to generate memory accessing info for samples. Signed-off-by: Leo Yan --- tools/perf/util/arm-spe-decoder/arm-spe-decoder.c | 11 +++ tools/perf/util/arm-spe-decoder/arm-spe-decoder.h | 6 ++

[PATCH RESEND v1 07/11] perf arm-spe: Enable attribution PERF_SAMPLE_DATA_SRC

2020-08-05 Thread Leo Yan
This patch is to enable attribution PERF_SAMPLE_DATA_SRC for the perf data, when decoding the tracing data, it will tells the tool it contains memory data. Signed-off-by: Leo Yan --- tools/perf/util/arm-spe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH RESEND v1 01/11] perf mem: Search event name with more flexible path

2020-08-05 Thread Leo Yan
Perf tool searches memory event name under the folder '/sys/devices/cpu/events/', this leads to the limitation for selection memory profiling event which must be under this folder. Thus it's impossible to use any other event as memory event which is not under this specific folder, e.g. Arm SPE

[PATCH RESEND v1 00/11] perf mem: Support AUX trace and Arm SPE

2020-08-05 Thread Leo Yan
This patch set is to support AUX trace and Arm SPE as the first enabled hardware tracing for Perf memory tool. Patches 01 ~ 04 are preparasion patches which mainly resolve the issue for memory events, since the existed code is hard coded the memory events which based on x86 and PowerPC

[PATCH RESEND v1 02/11] perf mem: Introduce weak function perf_mem_events__ptr()

2020-08-05 Thread Leo Yan
Different architectures might use different event or different event parameters for memory profiling, this patch introduces weak function perf_mem_events__ptr(), which allows to return back architecture specific memory event. After the function perf_mem_events__ptr() is introduced, the variable

drivers/net/ethernet/xilinx/ll_temac_main.c:93:2: warning: Non-boolean value returned from function returning bool

2020-08-05 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fffe3ae0ee84e25d2befe2ae59bc32aa2b6bc77b commit: e8b6c54f6d57822e228027d41a1edb317034a08c net: xilinx: temac: Relax Kconfig dependencies date: 4 months ago compiler: ia64-linux-gcc (GCC) 9.3.0 If you fix

Re: [PATCH v2] mm: vmstat: fix /proc/sys/vm/stat_refresh generating false warnings

2020-08-05 Thread Hugh Dickins
On Mon, 3 Aug 2020, Roman Gushchin wrote: > On Fri, Jul 31, 2020 at 07:17:05PM -0700, Hugh Dickins wrote: > > On Fri, 31 Jul 2020, Roman Gushchin wrote: > > > On Thu, Jul 30, 2020 at 09:06:55PM -0700, Hugh Dickins wrote: > > > > > > > > Though another alternative did occur to me overnight: we

RE: [PATCH] ath10k: Fix the size used in a 'dma_free_coherent()' call in an error handling path

2020-08-05 Thread Rakesh Pillai
> -Original Message- > From: Christophe JAILLET > Sent: Sunday, August 2, 2020 5:52 PM > To: kv...@codeaurora.org; da...@davemloft.net; k...@kernel.org; > pill...@codeaurora.org > Cc: ath...@lists.infradead.org; linux-wirel...@vger.kernel.org; > net...@vger.kernel.org;

cma_alloc(), add sleep-and-retry for temporary page pinning

2020-08-05 Thread Chris Goldsworthy
On mobile devices, failure to allocate from a CMA area constitutes a functional failure. Sometimes during CMA allocations, we have observed that pages in a CMA area allocated through alloc_pages(), that we're trying to migrate away to make room for a CMA allocation, are temporarily pinned. This

[PATCH] mm: cma: retry allocations in cma_alloc

2020-08-05 Thread Chris Goldsworthy
CMA allocations will fail if 'pinned' pages are in a CMA area, since we cannot migrate pinned pages. The _refcount of a struct page being greater than _mapcount for that page can cause pinning for anonymous pages. This is because try_to_unmap(), which (1) is called in the CMA allocation path, and

Re: [PATCH v3 2/4] fpga: dfl: map feature mmio resources in their own feature drivers

2020-08-05 Thread Xu Yilun
On Wed, Aug 05, 2020 at 08:15:27PM +0800, Wu, Hao wrote: > > Subject: [PATCH v3 2/4] fpga: dfl: map feature mmio resources in their own > > feature drivers > > > > +static int dfl_binfo_prepare(struct build_feature_devs_info *binfo, > > + resource_size_t start, resource_size_t len) > > +{ > >

[PATCH v1 04/11] perf mem: Only initialize memory event for recording

2020-08-05 Thread Leo Yan
It's needless to initialize memory events for perf reporting, so only initialize memory event for perf recording. This change allows to parse perf data on cross platforms, e.g. perf tool can output reports even the machine doesn't enable any memory events. Signed-off-by: Leo Yan ---

[PATCH v1 09/11] perf arm-spe: Store operation types in packet

2020-08-05 Thread Leo Yan
This patch is to store operation types into packet structure, this can be used by frontend to generate memory accessing info for samples. Signed-off-by: Leo Yan --- tools/perf/util/arm-spe-decoder/arm-spe-decoder.c | 11 +++ tools/perf/util/arm-spe-decoder/arm-spe-decoder.h | 6 ++

Re: [PATCH RFC] sched/fair: simplfy the work when reweighting entity

2020-08-05 Thread 蒋彪
> On Aug 6, 2020, at 12:21 AM, Dietmar Eggemann > wrote: > > On 04/08/2020 09:12, Jiang Biao wrote: >> If a se is on_rq when reweighting entity, all we need should be >> updating the load of cfs_rq, other dequeue/enqueue works could be >> redundant, such as, >> *

[PATCH v1 02/11] perf mem: Introduce weak function perf_mem_events__ptr()

2020-08-05 Thread Leo Yan
Different architectures might use different event or different event parameters for memory profiling, this patch introduces weak function perf_mem_events__ptr(), which allows to return back architecture specific memory event. After the function perf_mem_events__ptr() is introduced, the variable

[PATCH v1 03/11] perf mem: Support new memory event PERF_MEM_EVENTS__LOAD_STORE

2020-08-05 Thread Leo Yan
The existed architectures which have supported perf memory profiling, usually it contains two types of hardware events: load and store, so if want to profile memory for both load and store operations, the tool will use these two events at the same time. But this is not valid for aux tracing

Re: 答复: 答复: 答复: 答复: 答复: [PATCH] iommu/vt-d:Add support for ACPI device in RMRR

2020-08-05 Thread Lu Baolu
Hi Felix, On 8/5/20 3:37 PM, FelixCui-oc wrote: Hi baolu, Let me talk about why acpi_device_create_direct_mappings() is needed and please tell me if there is an error. Sure. Before that, let me sync my understanding with you. You have an acpi namespace device in ANDD table,

[PATCH v1 06/11] perf mem: Support Arm SPE events

2020-08-05 Thread Leo Yan
This patch is to add Arm SPE events for perf memory profiling. It supports three Arm SPE events: - spe-load: memory event for only recording memory load ops; - spe-store: memory event for only recording memory store ops; - spe-ldst: memory event for recording memory load and store ops.

[PATCH v1 07/11] perf arm-spe: Enable attribution PERF_SAMPLE_DATA_SRC

2020-08-05 Thread Leo Yan
This patch is to enable attribution PERF_SAMPLE_DATA_SRC for the perf data, when decoding the tracing data, it will tells the tool it contains memory data. Signed-off-by: Leo Yan --- tools/perf/util/arm-spe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v1 08/11] perf arm-spe: Save memory addresses in packet

2020-08-05 Thread Leo Yan
This patch is to save virtual and physical memory addresses in packet, the address info can be used for generating memory samples. Signed-off-by: Leo Yan --- tools/perf/util/arm-spe-decoder/arm-spe-decoder.c | 4 tools/perf/util/arm-spe-decoder/arm-spe-decoder.h | 2 ++ 2 files changed, 6

[PATCH v1 05/11] perf mem: Support AUX trace

2020-08-05 Thread Leo Yan
Perf memory profiling doesn't support aux trace data so the tool cannot receive the synthesized samples from hardware tracing data. On the Arm64 platform, though it doesn't support PMU events for memory load and store, but Armv8's SPE is a good candidate for memory profiling, the hardware tracer

[PATCH v1 01/11] perf mem: Search event name with more flexible path

2020-08-05 Thread Leo Yan
Perf tool searches memory event name under the folder '/sys/devices/cpu/events/', this leads to the limitation for selection memory profiling event which must be under this folder. Thus it's impossible to use any other event as memory event which is not under this specific, e.g. it cannot support

[PATCH v1 00/11] perf mem: Support AUX trace and Arm SPE

2020-08-05 Thread Leo Yan
This patch set is to support AUX trace and Arm SPE as the first enabled hardware tracing for Perf memory tool. Patches 01 ~ 04 are preparasion patches which mainly resolve the issue for memory events, since the existed code is hard coded the memory events which based on x86 and PowerPC

[PATCH] ARM: dts: am335x: add common dtsi for MOXA UC-8100 series

2020-08-05 Thread 陳昭勳
Add am335x-moxa-uc-8100-common.dtsi for many products of MOXA UC-8100 series, and remove common nodes from am335x-moxa-uc-8100-me-t.dts. Signed-off-by: Johnson Chen --- .../boot/dts/am335x-moxa-uc-8100-common.dtsi | 427 ++ .../arm/boot/dts/am335x-moxa-uc-8100-me-t.dts | 404

Re: [PATCH 1/2] net: tls: add compat for get/setsockopt

2020-08-05 Thread kernel test robot
Hi Rouven, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.8] [cannot apply to next-20200805] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base

[PATCH] nfc: enforce CAP_NET_RAW for raw sockets When creating a raw AF_NFC socket, CAP_NET_RAW needs to be checked first.

2020-08-05 Thread Qingyu Li
Signed-off-by: Qingyu Li --- net/nfc/rawsock.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/nfc/rawsock.c b/net/nfc/rawsock.c index ba5ffd3badd3..c1302b689a98 100644 --- a/net/nfc/rawsock.c +++ b/net/nfc/rawsock.c @@ -332,8 +332,11 @@ static int

Re: [git pull] drm next for 5.9-rc1

2020-08-05 Thread Dave Airlie
On Thu, 6 Aug 2020 at 11:07, Dave Airlie wrote: > > Hi Linus, > > This the main drm pull request for 5.9-rc1. > > New xilinx displayport driver, AMD support for two new GPUs (more > header files), i915 initial support for RocketLake and some work on > their DG1 (discrete chip). > > The core also

Re: [PATCH v1 2/2] perf/core: Fake regs for leaked kernel samples

2020-08-05 Thread Jin, Yao
Hi Peter, On 8/5/2020 8:44 PM, pet...@infradead.org wrote: On Wed, Aug 05, 2020 at 10:15:26AM +0800, Jin, Yao wrote: Hi Peter, On 8/4/2020 7:49 PM, pet...@infradead.org wrote: On Fri, Jul 31, 2020 at 10:56:17AM +0800, Jin Yao wrote: @@ -6973,7 +6973,8 @@ static struct perf_callchain_entry

Re: Patch "KVM: arm64: Make vcpu_cp1x() work on Big Endian hosts" has been added to the 4.4-stable tree

2020-08-05 Thread yangerkun
Hi, Not familiar with kvm. And I have a question about this patch. Maybe backport this patch 3204be4109ad("KVM: arm64: Make vcpu_cp1x() work on Big Endian hosts") without 52f6c4f02164 ("KVM: arm64: Change 32-bit handling of VM system registers") seems not right? Thanks, Kun. 在 2020/6/16

Re: [PATCH v4] ext4: fix direct I/O read error

2020-08-05 Thread 姜迎
Sorry,I will fix this error on 4.4 and 4.9,and then send a patch for 4.4 and 4.9,thanks! 发自我的iPhone > 在 2020年8月6日,上午9:19,Sasha Levin 写道: > > On Wed, Aug 05, 2020 at 10:51:07AM +0200, Jan Kara wrote: >> Note to stable tree maintainers (summary from the rather long changelog): >> This is a

Re: [PATCH] kbuild: Add dtc flag test

2020-08-05 Thread Masahiro Yamada
On Thu, Aug 6, 2020 at 2:59 AM Elliot Berman wrote: > > Host dtc may not support the same flags as kernel's copy of dtc. Test > if dtc supports each flag when the dtc comes from host. > > Signed-off-by: Elliot Berman I think this supports only the newer external DTC, but not older ones. This

[PATCH] sound: pci: delete repeated words in comments

2020-08-05 Thread Randy Dunlap
|2 +- sound/pci/hda/hda_generic.c |2 +- sound/pci/hda/patch_sigmatel.c |2 +- sound/pci/ice1712/prodigy192.c |2 +- sound/pci/oxygen/xonar_dg.c |2 +- 7 files changed, 7 insertions(+), 7 deletions(-) --- linux-next-20200805.orig/sound/pci

[PATCH] sound: isa: delete repeated words in comments

2020-08-05 Thread Randy Dunlap
-next-20200805.orig/sound/isa/cs423x/cs4236_lib.c +++ linux-next-20200805/sound/isa/cs423x/cs4236_lib.c @@ -39,7 +39,7 @@ * D7: consumer serial port enable (CS4237B,CS4238B) * D6: channels status block reset (CS4237B,CS4238B) * D5: user bit in sub-frame of digital audio data (CS4237B

Re: [PATCH] drivers/net/wan/lapbether: Added needed_headroom and a skb->len check

2020-08-05 Thread Xie He
I'm sorry I forgot to include the "net" prefix again. I remembered "PATCH" but not "net" this time. I'll try to remember both next time. If requested I can resend the patch with the correct prefix. Sorry.

Re: PROBLEM: IO lockup on reiserfs FS.

2020-08-05 Thread Metztli Information Technology
On Wed, Aug 5, 2020 at 5:01 PM wrote: > On Wed, 5 Aug 2020 12:51:41 -0700 > Linus Torvalds wrote: > > On Wed, Aug 5, 2020 at 9:53 AM wrote: > > > > > > It's been over 1 week since I sent this into the reiserfs-devel > > > mailing list. I'm escalating this as the kernel docs recommend. > > >

Re: [PATCH v8 5/8] powerpc/vdso: Prepare for switching VDSO to generic C implementation.

2020-08-05 Thread Michael Ellerman
Segher Boessenkool writes: > On Wed, Aug 05, 2020 at 04:24:16PM +1000, Michael Ellerman wrote: >> Christophe Leroy writes: >> > Indeed, 32-bit doesn't have a redzone, so I believe it needs a stack >> > frame whenever it has anything to same. >> >> Yeah OK that would explain it. >> >> > Here

  1   2   3   4   5   6   7   8   9   10   >