lingering loopback bugs?

2001-03-03 Thread agrawal
I have an encrypted filesystem mounted over loopback that I created under a 2.2.16 kernel. (Using AES, 128 bit key.) Works fine in 2.2.16. Sort of works under the unpatched 2.4 series. (Mounts okay, but hangs the system on random blocks.) Under various 2.4 kernels with Jens' patched, the filesys

Re: Hang when using loop device

2001-03-20 Thread agrawal
> Hello all, > > Recently my ext2 partition out of space so I have made a regular file > in the FAT32 partition and format it as ext2 partiton and mount it as > loop device.However,occasionaly when I extract a large tar to the loop device.. > The computer will hang while extracting. I wo

Re: X15 alpha release: as fast as TUX but in user space (fwd)

2001-05-03 Thread agrawal
On Thu, 3 May 2001, Pavel Machek wrote: > That means that for fooling closed-source statically-linked binary, > you now need to patch kernel. That's regression; subterfugue.org could > do this with normal user rights in 2.4.0. This is particularly pretty, but something that might work: 1. a "de

Problem using gtags target

2013-07-08 Thread Punit Agrawal
Hi, I am trying to use GNU global for kernel source browsing but have run into a problem when using "gtags" target in Makefile. The index files(GTAGS, GSYMS, GPATH, GRTAGS) don't work and on further investigation turned out to be 16kb each in size. My command line is - make ARCH=arm CROSS_COMPIL

Re: Problem using gtags target

2013-07-23 Thread Punit Agrawal
Michal Marek writes: > On 8.7.2013 19:22, Punit Agrawal wrote: >> Hi, >> >> I am trying to use GNU global for kernel source browsing but have run >> into a problem when using "gtags" target in Makefile. The index >> files(GTAGS, GSYMS, GPATH, GRTAGS)

Re: tty problem

2005-08-31 Thread Nilesh Agrawal
> > Please send more info --- output of dmesg, kernel config, hardware desription. > Tony I am compiling a 2.6.12 kernel, trying to have all relevant drivers in-built (no modules). Hardware details: Intel Motherboard, P4 2.0 GHz VideoCard: 82845 Chipset graphics controller IDE/ATA controller: 828

Re: tty problem

2005-08-31 Thread Nilesh Agrawal
On 8/31/05, Alan Cox <[EMAIL PROTECTED]> wrote: > On Mer, 2005-08-31 at 21:20 +0530, Nilesh Agrawal wrote: > > mdacon: MDA with 8K of memory detected. > > Console: switching consoles 1-16 to mono MDA-2 80x25 > > You've compiled in the MDA driver, probably not

[PATCH 2.6.10 1/1] netfilter: fix crash on nat+icmp packets

2005-03-01 Thread mukesh agrawal
This patch fixes a kernel crashing bug when using NAT. The crash occurs in the case when we send out a UDP packet to a closed port on another host, with the UDP packet being SNATed. The remote host replies with an ICMP port unreachable (type 3, code 3). We need to adjust the ICMP packet, becaus

Re: [RFC v2 PATCH 2/7] KVM: Track the pid of the VM process

2016-09-06 Thread Punit Agrawal
Christoffer Dall writes: > On Tue, Sep 06, 2016 at 04:22:17PM +0100, Punit Agrawal wrote: >> Christoffer Dall writes: >> >> > On Tue, Sep 06, 2016 at 12:07:59PM +0100, Punit Agrawal wrote: >> >> Christoffer Dall writes: >> >> >> >&g

[PATCH 0/7] Add support for monitoring guest TLB operations

2016-09-13 Thread Punit Agrawal
: tlbflush.h: add __tlbi() macro arm64/kvm: hyp: tlb: use __tlbi() helper Punit Agrawal (5): perf/trace: Add notification for perf trace events KVM: Track the pid of the VM process KVM: arm/arm64: Register perf trace event notifier arm64: KVM: Handle trappable TLB instructions arm64: KVM

[PATCH 1/7] perf/trace: Add notification for perf trace events

2016-09-13 Thread Punit Agrawal
specific contexts (e.g., virtual machines). Signed-off-by: Punit Agrawal Cc: Steven Rostedt Cc: Ingo Molnar --- include/linux/trace_events.h| 3 +++ kernel/trace/trace_event_perf.c | 24 2 files changed, 27 insertions(+) diff --git a/include/linux/trace_events.h b

[PATCH 3/7] KVM: arm/arm64: Register perf trace event notifier

2016-09-13 Thread Punit Agrawal
Register a notifier to track state changes of perf trace events. The notifier will enable taking appropriate action for trace events targeting VM. Signed-off-by: Punit Agrawal Cc: Christoffer Dall Cc: Marc Zyngier --- arch/arm/include/asm/kvm_host.h | 3 + arch/arm/kvm/arm.c

[PATCH 7/7] arm64: KVM: Enable selective trapping of TLB instructions

2016-09-13 Thread Punit Agrawal
for a specific virtual machine. Signed-off-by: Punit Agrawal Cc: Christoffer Dall Cc: Marc Zyngier --- arch/arm64/kvm/perf_trace.c | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm64/kvm/perf_trace.c b/arch/arm64/kvm/perf_trace.c index 1cafbc9

[PATCH 5/7] arm64/kvm: hyp: tlb: use __tlbi() helper

2016-09-13 Thread Punit Agrawal
-off-by: Mark Rutland Cc: Marc Zyngier [ rename tlbi -> __tlbi, convert additional sites, update commit log ] Signed-off-by: Punit Agrawal Acked-by: Christoffer Dall --- arch/arm64/kvm/hyp/tlb.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/kvm/

[PATCH 6/7] arm64: KVM: Handle trappable TLB instructions

2016-09-13 Thread Punit Agrawal
The ARMv8 architecture allows trapping of TLB maintenane instructions from EL0/EL1 to higher exception levels. On encountering a trappable TLB instruction in a guest, an exception is taken to EL2. Add functionality to handle emulating the TLB instructions. Signed-off-by: Punit Agrawal Cc

[PATCH 4/7] arm64: tlbflush.h: add __tlbi() macro

2016-09-13 Thread Punit Agrawal
existing tlbflush.h code is moved over to use the helper. Signed-off-by: Mark Rutland Cc: Catalin Marinas Cc: Marc Zyngier [ rename helper to __tlbi, update comment and commit log ] Signed-off-by: Punit Agrawal Reviewed-by: Will Deacon --- arch/arm64/include/asm/tlbflush.h | 34

[PATCH 2/7] KVM: Track the pid of the VM process

2016-09-13 Thread Punit Agrawal
: Punit Agrawal Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: Christoffer Dall Cc: Marc Zyngier --- include/linux/kvm_host.h | 1 + virt/kvm/kvm_main.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 9c28b4d..7c42c94 10

Re: [RFC PATCH 1/7] perf/trace: Add notification for perf trace events

2016-08-31 Thread Punit Agrawal
Punit Agrawal writes: > Add a mechanism to notify listeners about perf trace event state > changes. This enables listeners to take actions requiring the event > context (e.g., attached process). > > The notification mechanism can be used to reduce trace point based > pro

Re: [RFC PATCH 6/7] arm64: KVM: Handle trappable TLB instructions

2016-09-01 Thread Punit Agrawal
Will Deacon writes: > On Fri, Aug 26, 2016 at 10:37:08AM +0100, Punit Agrawal wrote: >> > Will Deacon writes: >> >> The easiest thing to do is just TLBI VMALLE1IS for all trapped operations, >> >> but you might want to see how that performs. >> > >

Re: [RFC PATCH 6/7] arm64: KVM: Handle trappable TLB instructions

2016-08-24 Thread Punit Agrawal
Will Deacon writes: > Hi Punit, > > On Tue, Aug 16, 2016 at 11:45:11AM +0100, Punit Agrawal wrote: >> The ARMv8 architecture allows trapping of TLB maintenane instructions >> from EL0/EL1 to higher exception levels. On encountering a trappable TLB >> instruction in a g

Re: [RFC PATCH 6/7] arm64: KVM: Handle trappable TLB instructions

2016-08-26 Thread Punit Agrawal
Punit Agrawal writes: > Will Deacon writes: > >> Hi Punit, >> >> On Tue, Aug 16, 2016 at 11:45:11AM +0100, Punit Agrawal wrote: >>> The ARMv8 architecture allows trapping of TLB maintenane instructions >>> from EL0/EL1 to higher exception levels. On en

[PATCH v2] ACPI / APEI: Suppress message if HEST not present

2017-08-16 Thread Punit Agrawal
the firmware provides this table and if it is not present skip any log output. The existing behaviour is preserved in all other cases. Suggested-by: Borislav Petkov Signed-off-by: Punit Agrawal Cc: Borislav Petkov Cc: James Morse --- drivers/acpi/apei/ghes.c | 4 ++-- drivers/acpi/apei

Re: [PATCH] ACPI/APEI: Add BERT data driver

2017-08-16 Thread Punit Agrawal
"Luck, Tony" writes: > On Tue, Aug 15, 2017 at 11:22:06AM +0100, Punit Agrawal wrote: >> There is already a bert driver which prints the error record. Would it >> make sense to integrate the character device there instead of creating a >> new driver? > > L

Re: [PATCH] ACPI/APEI: Add BERT data driver

2017-08-17 Thread Punit Agrawal
"Luck, Tony" writes: >> One thing I missed commenting on in the previous version - >> >> Have you thought of exposing the error records via /sys/firmware/acpi? >> The tables are already exposed there and as BERT is part of ACPI >> logically that's a better fit compared to a misc device. > > That

Re: [PATCH v5 0/8] Support for contiguous pte hugepages

2017-06-20 Thread Punit Agrawal
Andrew Morton writes: > On Mon, 19 Jun 2017 18:01:37 +0100 Punit Agrawal > wrote: > >> This is v5 of the patchset to update the hugetlb code to support >> contiguous hugepages. Previous version of the patchset can be found at >> [0]. > > Dumb question: is t

Re: [PATCH v5 0/8] Support for contiguous pte hugepages

2017-06-21 Thread Punit Agrawal
Andrew Morton writes: > On Tue, 20 Jun 2017 14:39:57 +0100 Punit Agrawal > wrote: > >> >> The architecture supports two flavours of hugepages - >> >> * Block mappings at the pud/pmd level >> >> These are regular hugepages where a pmd or a p

Re: [PATCH v4 2/5] firmware: arm_scpi: Extend to support sensors

2015-10-05 Thread Punit Agrawal
Sudeep Holla writes: > On 15/09/15 17:50, Punit Agrawal wrote: >> ARM System Control Processor (SCP) provides an API to query and use >> the sensors available in the system. Extend the SCPI driver to support >> sensor messages. >> >> Signed-off-by: Punit Agrawa

Re: [PATCH v2 1/2] thermal: mediatek: Add cpu power cooling model.

2015-10-12 Thread Punit Agrawal
Mark Rutland writes: > On Wed, Oct 07, 2015 at 08:22:40PM +0800, Dawei Chien wrote: >> From: "Dawei.Chien" >> >> This power model is base on Intelligent Power Allocation (IPA) technical, >> requires that the operating-points of the CPUs are registered using the >> kernel's opp library and the `

[PATCH] thermal: Fix thermal_zone_of_sensor_register to match documentation

2015-09-08 Thread Punit Agrawal
thermal_zone_of_sensor_register is documented as returning a pointer to either a valid thermal_zone_device on success, or a corresponding ERR_PTR() value. In contrast, the function returns NULL when THERMAL_OF is configured off. Fix this. Signed-off-by: Punit Agrawal Acked-by: Guenter Roeck Cc

Re: [PATCH v2 05/10] Documentation: add DT bindings for ARM SCPI sensors

2015-09-03 Thread Punit Agrawal
Punit Agrawal writes: > The System Control Processor (SCP) provides access to SoC sensors via > the System Control and Power Interface (SCPI) Message Protocol. Add > bindings to allow probing of these sensors. Also support referencing > of the sensors for setting up thermal zones via

[PATCH 1/3] ASoC: AMD: Make ACP->SYSMEM DMA non circular

2018-08-06 Thread Akshu Agrawal
In capture case we don't want ACP to SYSMEM dma to be circular. This is because if an in place DSP filter is applied to captured output then circular DMA can overwrite the filter value with stale data. Signed-off-by: Akshu Agrawal --- sound/soc/amd/acp-pcm-dma.c

[PATCH v2 2/3] ASoC: AMD: Modified DMA pointer for capture

2018-08-06 Thread Akshu Agrawal
From: "Mukunda, Vijendar" Give position on ACP->SYSMEM DMA channel for the number of bytes that have been transferred on the basis of current descriptor under service. Signed-off-by: Vijendar Mukunda Signed-off-by: Akshu Agrawal --- v2: Fixed position, now position = 0 if on 1

[PATCH v2 3/3] ASoC: AMD: Set delay value for the capture case

2018-08-06 Thread Akshu Agrawal
ACP->SYSMEM DMA happens at every I2S->SYSMEM period completion. Thus, there is delay of x frames till I2S->SYSMEM reaches a period length. This delay is communicated to user space. Signed-off-by: Akshu Agrawal --- v2: moved reading of bytes transfered from I2S->ACP to get more ac

Re: [PATCH 1/3] ASoC: AMD: Make ACP->SYSMEM DMA non circular

2018-08-06 Thread Agrawal, Akshu
On 8/2/2018 3:26 PM, Mark Brown wrote: > On Thu, Aug 02, 2018 at 12:11:54PM +0530, Akshu Agrawal wrote: >> In capture case we don't want ACP to SYSMEM dma >> to be circular. This is because if an in place DSP >> filter is applied to captured output then circular DMA &

Re: [v2, 2/2] ASoC: AMD: Configure channel 1 or channel 0 for capture

2018-06-20 Thread Agrawal, Akshu
On 6/20/2018 7:32 PM, Mark Brown wrote: > On Thu, Jun 07, 2018 at 02:48:44PM +0800, Akshu Agrawal wrote: > >> This patch is dependent on ASoC: AMD: Change codec to channel link as per >> hardware redesign >> https://patchwork.kernel.org/patch/10388099/ > > Can

[PATCH 1/2] ASoC: AMD: Change codec to channel link as per hardware redesign

2018-06-20 Thread Akshu Agrawal
From: "Agrawal, Akshu" This is a correction to match acutal hardware configuration. The hardware configuration looks like: I2S_BT -> SPK(Max) + DMIC(Adau) I2S_SP -> DA7219 Headset No actual products have been shipped with previous configuration. Signed-off-by: Akshu Agrawal --

[v2, 2/2] ASoC: AMD: Configure channel 1 or channel 0 for capture

2018-06-20 Thread Akshu Agrawal
information to dma driver. Signed-off-by: Akshu Agrawal --- v2: Split acp_dma_cap_channel into 2 functions. sound/soc/amd/acp-da7219-max98357a.c | 43 +++--- sound/soc/amd/acp-pcm-dma.c | 71 +++- sound/soc/amd/acp.h | 4 ++ 3

Re: [PATCH 1/4] drivers/bus: arm-cci: use SPDX license information

2018-06-22 Thread Punit Agrawal
Hi, Mawanda Henry writes: > SPDX license helps developers and machines to know the license governing > a particular file hence easing work > > Signed-off-by: Mawanda Henry > --- > drivers/bus/arm-cci.c | 10 +- > 1 file changed, 1 insertion(+), 9 deletions(-) > > diff --git a/drivers/b

Re: [PATCH 1/2] arm64: avoid alloc memory on offline node

2018-06-22 Thread Punit Agrawal
Michal Hocko writes: > On Fri 22-06-18 16:58:05, Hanjun Guo wrote: >> On 2018/6/20 19:51, Punit Agrawal wrote: >> > Xie XiuQi writes: >> > >> >> Hi Lorenzo, Punit, >> >> >> >> >> >> On 2018/6/20 0:32, Lorenzo Pieralisi

Re: [PATCH] dt-binding: arm/cpus.txt: fix dynamic-power-coefficient unit

2018-08-28 Thread Punit Agrawal
Vincent Guittot writes: > Hi Amit, > > On Wed, 22 Aug 2018 at 12:11, Punit Agrawal wrote: >> >> Hi Vincent, >> >> Thanks for the patch. One comment about the choice of units below. >> >> Vincent Guittot writes: >> >> > The unit of d

[PATCH 1/2] arm64: PCI: Remove node-local allocations when initialising host controller

2018-08-28 Thread Punit Agrawal
n as there is no benefit from doing so - the usage of these structures is independent from where the controller is located. Signed-off-by: Punit Agrawal Cc: Catalin Marinas Cc: Will Deacon Cc: Lorenzo Pieralisi Cc: linux-arm-ker...@lists.infradead.org --- arch/arm64/kernel/pci.c | 5 ++-

[PATCH 2/2] x86/PCI: Remove node-local allocation when initialising host controller

2018-08-28 Thread Punit Agrawal
additional context. Drop the node local allocation as there is no benefit from doing so - the usage of these structures is independent from where the controller is located. Signed-off-by: Punit Agrawal Cc: Bjorn Helgaas Cc: Thomas Gleixner Cc: "H. Peter Anvin" Cc: x...@kernel.org --- arc

[PATCH 0/2] Drop node-local allocation during host controller initialisation

2018-08-28 Thread Punit Agrawal
atches are based on v4.19-rc1 and has been boot tested on arm64 and compile tested on x86. Thanks, Punit [0] https://www.spinics.net/lists/arm-kernel/msg669746.html Punit Agrawal (2): arm64: PCI: Remove node-local allocations when initialising host controller x86/PCI: Remove node-local

Re: [PATCH] clk: x86: Set default parent to 48Mhz

2018-08-28 Thread Agrawal, Akshu
On 8/29/2018 3:59 AM, Stephen Boyd wrote: > Quoting Akshu Agrawal (2018-08-20 23:51:57) >> System clk provided in ST soc can be set to: >> 48Mhz, non-spread >> 25Mhz, spread >> To get accurate rate, we need it to set it at non-spread >> option which is 48Mhz. &

Re: [PATCH v2] dt-binding: arm/cpus.txt: fix dynamic-power-coefficient unit

2018-08-30 Thread Punit Agrawal
000)^2 = 10^15 mW > which is not realistic > > With the unit used by the code, the min power is > min power = 1 * 1000 * 1^2 = 1000uW = 1mW which is far more realistic > > Signed-off-by: Vincent Guittot Acked-by: Punit Agrawal Thanks for fixing the mismatch. > --- >

Re: [PATCH] arm64: PCI: Remove node-local allocations when initialising host controller

2018-08-08 Thread Punit Agrawal
ang Lui >> >> Jiang Liu does not work on the kernel anymore so we won't know >> anytime soon the reasoning behind commit 965cd0e4a5e5 >> >> > On 08/01/2018 12:31 PM, Punit Agrawal wrote: >> > >Memory for host controller data structures is allocated local

Re: [PATCH] arm64: PCI: Remove node-local allocations when initialising host controller

2018-08-09 Thread Punit Agrawal
Bjorn Helgaas writes: > On Wed, Aug 08, 2018 at 03:44:03PM +0100, Punit Agrawal wrote: >> Bjorn Helgaas writes: >> > On Thu, Aug 2, 2018 at 9:33 AM Lorenzo Pieralisi >> > wrote: >> >> On Wed, Aug 01, 2018 at 02:38:51PM -0500, Jeremy Linton wrote: >

[PATCH] clk: x86: Set default parent to 48Mhz

2018-08-20 Thread Akshu Agrawal
System clk provided in ST soc can be set to: 48Mhz, non-spread 25Mhz, spread To get accurate rate, we need it to set it at non-spread option which is 48Mhz. Signed-off-by: Akshu Agrawal --- drivers/clk/x86/clk-st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk

[PATCH] ASoC: AMD: Set constraints for DMIC and MAX98357a codec

2018-08-20 Thread Akshu Agrawal
We support dual channel, 48Khz. This constraint was set only for da7219. It is being extended to DMIC and MAX98357a. Signed-off-by: Akshu Agrawal --- sound/soc/amd/acp-da7219-max98357a.c | 33 + 1 file changed, 33 insertions(+) diff --git a/sound/soc/amd/acp

[PATCH] ASoC: AMD: Change MCLK to 48Mhz

2018-08-21 Thread Akshu Agrawal
25Mhz MCLK which was earlier used was of spread type. Thus, we were not getting accurate rate. The 48Mhz system clk is of non-spread type and we are changing to it to get accurate rate. Signed-off-by: Akshu Agrawal --- sound/soc/amd/acp-da7219-max98357a.c | 2 +- 1 file changed, 1 insertion

Re: [PATCH] dt-binding: arm/cpus.txt: fix dynamic-power-coefficient unit

2018-08-22 Thread Punit Agrawal
Hi Vincent, Thanks for the patch. One comment about the choice of units below. Vincent Guittot writes: > The unit of dynamic-power-coefficient is described as mW/MHz/uV^2 whereas > its usage in the code assumes that unit is mW/GHz/V^2 Instead of choosing GHz as the base, I'd prefer to use uW/M

[PATCH] ASoC: AMD: Fix build warning

2018-07-25 Thread Akshu Agrawal
Fixes sound/soc/amd/acp-da7219-max98357a.c: In function 'cz_probe': sound/soc/amd/acp-da7219-max98357a.c:367:3: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] dev_err(&pdev->dev, "Failed to register regulator: %d\n"

Re: linux-next: build warning after merge of the sound-asoc tree

2018-07-25 Thread Agrawal, Akshu
On 7/26/2018 7:49 AM, Stephen Rothwell wrote: > Hi all, > > After merging the sound-asoc tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > sound/soc/amd/acp-da7219-max98357a.c: In function 'cz_probe': > sound/soc/amd/acp-da7219-max98357a.c:367:3: warning: 'ret'

[PATCH v2] ASoC: AMD: Fix build warning

2018-07-25 Thread Akshu Agrawal
Fixes sound/soc/amd/acp-da7219-max98357a.c: In function 'cz_probe': sound/soc/amd/acp-da7219-max98357a.c:367:3: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] dev_err(&pdev->dev, "Failed to register regulator: %d\n", ret);

[PATCH] ASoC: soc-pcm: Use delay set in pointer function

2018-07-27 Thread Akshu Agrawal
ays from codec or cpu dai delay function if exposed. Signed-off-by: Akshu Agrawal --- sound/soc/soc-pcm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 98be04b..b1a2bc2 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/

Re: [alsa-devel] [PATCH] ASoC: soc-pcm: Use delay set in pointer function

2018-07-27 Thread Agrawal, Akshu
On 7/27/2018 8:39 PM, Pierre-Louis Bossart wrote: > On 7/27/18 5:13 AM, Akshu Agrawal wrote: >> There are cases where a pointer function populates >> runtime->delay, such as: >> ./sound/pci/hda/hda_controller.c >> ./sound/soc/intel/atom/sst-mfld-platform-pcm.c >

[PATCH] ASoC: AMD: Add a fix voltage regulator for DA7219 and ADAU7002

2018-07-19 Thread Akshu Agrawal
DA7219 for our platform need to be configured for 1.8V. Hence, we add a fixed volatge regulator with supplies of 1.8V in the machine driver. Signed-off-by: Akshu Agrawal --- sound/soc/amd/Kconfig| 2 ++ sound/soc/amd/acp-da7219-max98357a.c | 45

Re: [PATCH] ASoC: AMD: Add a fix voltage regulator for DA7219 and ADAU7002

2018-07-22 Thread Agrawal, Akshu
On 7/20/2018 5:48 PM, Mark Brown wrote: > On Fri, Jul 20, 2018 at 02:38:11PM +0800, Akshu Agrawal wrote: > >> static int cz_probe(struct platform_device *pdev) >> { >> int ret; >> struct snd_soc_card *card; >> struct acp_platfor

Re: [alsa-devel] [PATCH] ASoC: soc-pcm: Use delay set in pointer function

2018-07-30 Thread Agrawal, Akshu
On 7/30/2018 9:20 PM, Mark Brown wrote: > On Mon, Jul 30, 2018 at 05:32:21PM +0200, Takashi Iwai wrote: > >> That said, if delay callback of CPU dai provides the additional delay, >> the patch does correct thing. OTOH, if CPU dai provides the base >> delay instead, we need to clarify that it's

Re: [alsa-devel] [PATCH] ASoC: soc-pcm: Use delay set in pointer function

2018-07-31 Thread Agrawal, Akshu
On 7/31/2018 11:00 AM, Takashi Iwai wrote: > On Tue, 31 Jul 2018 03:25:06 +0200, > Agrawal, Akshu wrote: >> >> >> >> On 7/30/2018 9:20 PM, Mark Brown wrote: >>> On Mon, Jul 30, 2018 at 05:32:21PM +0200, Takashi Iwai wrote: >>> >>>> Tha

Re: [alsa-devel] [PATCH] ASoC: soc-pcm: Use delay set in pointer function

2018-07-31 Thread Agrawal, Akshu
On 7/31/2018 8:10 PM, Mark Brown wrote: > On Tue, Jul 31, 2018 at 03:56:52PM +0200, Takashi Iwai wrote: >> Mark Brown wrote: > >>> Yes. I'm saying that if the CPU DAI thinks it can figure out the base >>> delay something is confused. > >> Then basically Akshu's patch does the correct thing, I

[PATCH v2] ASoC: soc-pcm: Use delay set in component pointer function

2018-08-01 Thread Akshu Agrawal
dai delay function if exposed. Now, Total delay = base delay + cpu_dai delay + codec_dai delay Signed-off-by: Akshu Agrawal --- sound/soc/soc-pcm.c | 5 + 1 file changed, 5 insertions(+) diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 98be04b..e8b98bfd 100644 --- a/sound/soc/

[PATCH 2/3] ASoC: AMD: Modified DMA pointer for capture

2018-08-01 Thread Akshu Agrawal
From: "Mukunda, Vijendar" Give position on ACP->SYSMEM DMA channel for the number of bytes that have been transferred on the current descriptor under service. Signed-off-by: Vijendar Mukunda Signed-off-by: Akshu Agrawal --- sound/soc/amd/acp-p

[PATCH 3/3] ASoC: AMD: Set delay value for the capture case

2018-08-01 Thread Akshu Agrawal
ACP->SYSMEM DMA happens at every I2S->SYSMEM period completion. Thus, there is delay of x frames till I2S->SYSMEM reaches a period length. This delay is communicated to user space. Signed-off-by: Akshu Agrawal --- sound/soc/amd/acp-pcm-dma.c | 19 +++ 1 file ch

[PATCH 1/3] ASoC: AMD: Make ACP->SYSMEM DMA non circular

2018-08-01 Thread Akshu Agrawal
In capture case we don't want ACP to SYSMEM dma to be circular. This is because if an in place DSP filter is applied to captured output then circular DMA can overwrite the filter value with stale data. Signed-off-by: Akshu Agrawal --- sound/soc/amd/acp-pcm-dma.c

Re: [PATCH] ASoC: AMD: Add a fix voltage regulator for DA7219 and ADAU7002

2018-07-25 Thread Agrawal, Akshu
On 7/24/2018 10:44 PM, Mark Brown wrote: > On Mon, Jul 23, 2018 at 10:56:44AM +0530, Agrawal, Akshu wrote: > >> This approach shows inconsistencies and in some boot cycles da7219 fails >> to get regulator. Form the logs (below) it shows time gap between t

[PATCH v2] ASoC: AMD: Add a fix voltage regulator for DA7219 and ADAU7002

2018-07-25 Thread Akshu Agrawal
DA7219 for our platform need to be configured for 1.8V. Hence, we add a volatge regulator with supplies of 1.8V in the machine driver. Signed-off-by: Adam Thomson Signed-off-by: Akshu Agrawal --- sound/soc/amd/Kconfig| 1 + sound/soc/amd/acp-da7219-max98357a.c | 43

[PATCH 2/2] ASoC: AMD: For capture have interrupts on I2S->ACP channel

2018-07-16 Thread Akshu Agrawal
Having interrupts enabled for ACP<->SYSMEM DMA transfer, we are in for an interrupt storm. For both playback and capture interrupts should be enabled for I2S<->ACP DMA. Signed-off-by: Akshu Agrawal --- sound/soc/amd/acp-pcm-dma.c | 14 ++ 1 file changed, 6 insertions(+),

[PATCH 1/2] ASoC: AMD: Send correct channel for configuring DMA descriptors

2018-07-16 Thread Akshu Agrawal
Earlier, ch1 was used to define ACP-SYSMEM transfer and ch2 for ACP-I2S transfer. With recent patches ch1 is used to define channel order number 1 and ch2 as channel order number 2. Thus, Playback: ch1:SYSMEM->ACP ch2:ACP->I2S Capture: ch1:I2S->ACP ch1:ACP->SYSMEM Signed-off-by: A

[RFC 0/4] KVM: Support PUD hugepages at stage 2

2018-01-10 Thread Punit Agrawal
7;m sending the patchset as RFC to get feedback on the code as well as allow evaluation on real systems. Thanks, Punit [0] https://patchwork.kernel.org/patch/10145339/ Punit Agrawal (4): arm64: Correct type for PUD macros KVM: arm64: Support dirty page tracking for PUD hugepages KVM: arm/

[RFC 1/4] arm64: Correct type for PUD macros

2018-01-10 Thread Punit Agrawal
: 084bd29810a56 ("ARM64: mm: HugeTLB support.") Fixes: 206a2a73a62d3 ("arm64: mm: Create gigabyte kernel logical mappings where possible") Signed-off-by: Punit Agrawal Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/include/asm/pgtable-hwdef.h | 6 +++--- 1 file changed, 3 insert

[RFC 2/4] KVM: arm64: Support dirty page tracking for PUD hugepages

2018-01-10 Thread Punit Agrawal
compile on arm32. Signed-off-by: Punit Agrawal Cc: Christoffer Dall Cc: Marc Zyngier --- arch/arm/include/asm/kvm_mmu.h | 9 + arch/arm64/include/asm/kvm_mmu.h | 10 ++ virt/kvm/arm/mmu.c | 9 ++--- 3 files changed, 25 insertions(+), 3 deletions(-) diff --git

[RFC 3/4] KVM: arm/arm64: Refactor Stage2 PMD hugepages support

2018-01-10 Thread Punit Agrawal
with this patch. Signed-off-by: Punit Agrawal Cc: Christoffer Dall Cc: Marc Zyngier --- virt/kvm/arm/mmu.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/virt/kvm/arm/mmu.c b/virt/kvm/arm/mmu.c index 02eefda5d71e..f02219a91b19 100644 --- a/virt/kvm/arm

[RFC 4/4] KVM: arm64: Add support for PUD hugepages at stage 2

2018-01-10 Thread Punit Agrawal
sizes in the TLB entries. Signed-off-by: Punit Agrawal Cc: Marc Zyngier Cc: Christoffer Dall Cc: Catalin Marinas --- arch/arm/include/asm/kvm_mmu.h | 10 + arch/arm/include/asm/pgtable-3level.h | 2 + arch/arm64/include/asm/kvm_mmu.h | 19 + arch/arm64/include/asm

Re: [PATCH] KVM: arm/arm64: Check pagesize when allocating a hugepage at Stage 2

2018-01-11 Thread Punit Agrawal
Christoffer Dall writes: > On Thu, Jan 04, 2018 at 06:24:33PM +, Punit Agrawal wrote: >> KVM only supports PMD hugepages at stage 2 but doesn't actually check >> that the provided hugepage memory pagesize is PMD_SIZE before populating >> stage 2 entries. >>

Re: [PATCH] KVM: arm/arm64: Check pagesize when allocating a hugepage at Stage 2

2018-01-11 Thread Punit Agrawal
Christoffer Dall writes: > On Thu, Jan 11, 2018 at 01:01:07PM +, Punit Agrawal wrote: >> Christoffer Dall writes: >> >> > On Thu, Jan 04, 2018 at 06:24:33PM +, Punit Agrawal wrote: >> >> KVM only supports PMD hugepages at stage 2 but doesn'

[PATCH] KVM: arm/arm64: Check pagesize when allocating a hugepage at Stage 2

2018-01-04 Thread Punit Agrawal
ating stage 2 mappings that extend beyond the supplied memory. Fix this by checking for the pagesize of userspace vma before creating PMD hugepage at stage 2. Fixes: ad361f093c1e31d ("KVM: ARM: Support hugetlbfs backed huge pages") Signed-off-by: Punit Agrawal Cc: Christoffer Dall C

Re: [RFC 1/4] arm64: Correct type for PUD macros

2018-01-16 Thread Punit Agrawal
Catalin Marinas writes: > On Wed, Jan 10, 2018 at 07:07:26PM +, Punit Agrawal wrote: >> The PUD macros (PUD_TABLE_BIT, PUD_TYPE_MASK, PUD_TYPE_SECT) use the >> pgdval_t even when pudval_t is available. Even though the underlying >> type for both (u64) is the same it is c

Re: [RFC, PATCH 07/22] x86/mm: Mask out KeyID bits from page table entry pfn

2018-03-22 Thread Punit Agrawal
Hi Kirill, A flyby comment below. "Kirill A. Shutemov" writes: > MKTME claims several upper bits of the physical address in a page table > entry to encode KeyID. It effectively shrinks number of bits for > physical address. We should exclude KeyID bits from physical addresses. > > For instance,

Re: [RFC, PATCH 08/22] mm: Introduce __GFP_ENCRYPT

2018-03-22 Thread Punit Agrawal
"Kirill A. Shutemov" writes: > The patch adds new gfp flag to indicate that we're allocating encrypted > page. > > Architectural code may need to do special preparation for encrypted > pages such as flushing cache to avoid aliasing. > > Signed-off-by: Kirill A. Shutemov > --- > include/linux/gf

[PATCH 1/2] ASoC: Fix function return type

2018-12-04 Thread Agrawal, Akshu
Function returns -1 on error and the return type should be int. Signed-off-by: Akshu Agrawal --- include/sound/soc.h | 2 +- sound/soc/soc-io.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/sound/soc.h b/include/sound/soc.h index 8ec1de8..591d743 100644 --- a

[PATCH 2/2] ASoC: DA7219: Implement error check on reg read and write

2018-12-04 Thread Agrawal, Akshu
Failed i2c transaction can lead to failure in reg read or write. Need to have error check for each read write operation. Signed-off-by: Akshu Agrawal --- sound/soc/codecs/da7219.c | 323 +++--- sound/soc/codecs/da7219.h | 2 +- 2 files changed, 247

Re: [PATCH 2/2] ASoC: DA7219: Implement error check on reg read and write

2018-12-04 Thread Agrawal, Akshu
On 12/5/2018 2:46 AM, Adam Thomson wrote: > On 04 December 2018 18:36, Akshu Agrawal wrote: > >> Failed i2c transaction can lead to failure in reg read or write. >> Need to have error check for each read write operation. >> > > I'm not really clear what th

[PATCH v2] ASoC: DA7219: Implement error check on reg read and write

2018-12-05 Thread Agrawal, Akshu
Failed i2c transaction can lead to failure in reg read or write. Need to have error check for each read write operation. Signed-off-by: Akshu Agrawal --- v2: replaced snd_soc_component_read32 by snd_soc_component_read Since, snd_soc_component_read32 implementation has error, in coming patches we

Re: [PATCH] drm/amdgpu/acp: Fix slab-out-of-bounds in mfd_add_device in acp_hw_init

2018-07-08 Thread Agrawal, Akshu
Was this patch ever picked up? I can't find it in agd5f/linux. >>> >>> >>> It wasn't applied. I don't see 51f7415039d4 ("drm/amd/amdgpu: >>> creating two I2S instances for stoney/cz") upstream yet either. >>> Daniel, Vijendar, which ones do you want applied? Can you send me the >>> patches?

[PATCH v5 0/7] KVM: Support PUD hugepages at stage 2

2018-07-09 Thread Punit Agrawal
should have exec permission [1/4] * Fix broken condition to detect THP hugepage [1/4] * Fix in-correct hunk resulting from a rebase [4/4] [0] https://www.spinics.net/lists/arm-kernel/msg663562.html [1] https://www.spinics.net/lists/kvm/msg171065.html Punit Agrawal (7): KVM: arm/arm64: Share common code

[PATCH v5 0/7] KVM: Support PUD hugepages at stage 2

2018-07-09 Thread Punit Agrawal
should have exec permission [1/4] * Fix broken condition to detect THP hugepage [1/4] * Fix in-correct hunk resulting from a rebase [4/4] [0] https://www.spinics.net/lists/arm-kernel/msg663562.html [1] https://www.spinics.net/lists/kvm/msg171065.html Punit Agrawal (7): KVM: arm/arm64: Sha

Re: [PATCH 1/2] arm64: avoid alloc memory on offline node

2018-06-26 Thread Punit Agrawal
Jonathan Cameron writes: [...] > > I'll test it when back in the office, but I had a similar issue with > memory only nodes when I moved the SRAT listing for cpus from the 4 > 4th mode to the 3rd node to fake some memory I could hot unplug. > This gave a memory only node for the last node on the

Re: [PATCH 1/2] arm64: avoid alloc memory on offline node

2018-06-26 Thread Punit Agrawal
Jonathan Cameron writes: [...] > > I'll test it when back in the office, but I had a similar issue with > memory only nodes when I moved the SRAT listing for cpus from the 4 > 4th mode to the 3rd node to fake some memory I could hot unplug. > This gave a memory only node for the last node on the

use-after-free in NFS

2018-06-29 Thread Punit Agrawal
Hi, Nightly LTP runs are hitting a use-after-free on upstream kernels when running with 64k pages. There isn't a specific test triggering the issue. Also, the problem is not encountered with 4k pages. The boards used for the nightly runs mount their filesystem (Debian Jessie) via NFS with the fol

[PATCH] ASoC: AMD: make channel 1 dma as circular

2018-05-25 Thread Akshu Agrawal
channel 1: SYSMEM<->ACP channel 2: ACP<->I2S Instead of waiting on period interrupt of ch 2 and then starting dma on ch1, we make ch1 dma as circular. This removes dependency of period granularity on hw pointer. Signed-off-by: Akshu Agrawal --- sound/soc/amd/acp-pc

[v2] ASoC: AMD: make channel 1 dma as circular

2018-05-27 Thread Akshu Agrawal
channel 1: SYSMEM<->ACP channel 2: ACP<->I2S Instead of waiting on period interrupt of ch 2 and then starting dma on ch1, we make ch1 dma as circular. This removes dependency of period granularity on hw pointer. Signed-off-by: Akshu Agrawal Reviewed-by: Daniel Kurtz Tested-by:

[PATCH v3 0/4] KVM: Support PUD hugepages at stage 2

2018-05-14 Thread Punit Agrawal
orrect hunk resulting from a rebase [4/4] [0] https://www.spinics.net/lists/arm-kernel/msg628053.html [1] https://lkml.org/lkml/2018/4/20/566 [2] https://lkml.org/lkml/2018/5/1/133 [3] https://lwn.net/Articles/750176/ Punit Agrawal (4): KVM: arm/arm64: Share common code in user_mem_abort() KV

[PATCH v3 1/4] KVM: arm/arm64: Share common code in user_mem_abort()

2018-05-14 Thread Punit Agrawal
erent pagesizes. Signed-off-by: Punit Agrawal Reviewed-by: Christoffer Dall Cc: Marc Zyngier --- virt/kvm/arm/mmu.c | 69 +++--- 1 file changed, 40 insertions(+), 29 deletions(-) diff --git a/virt/kvm/arm/mmu.c b/virt/kvm/arm/mmu.c index 7f6a944

[PATCH v3 2/4] KVM: arm/arm64: Introduce helpers to manupulate page table entries

2018-05-14 Thread Punit Agrawal
. Signed-off-by: Punit Agrawal Acked-by: Christoffer Dall Cc: Marc Zyngier Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon --- arch/arm/include/asm/kvm_mmu.h | 5 + arch/arm64/include/asm/kvm_mmu.h | 5 + virt/kvm/arm/mmu.c | 7 --- 3 files changed, 14 insertions

[PATCH v3 4/4] KVM: arm64: Add support for PUD hugepages at stage 2

2018-05-14 Thread Punit Agrawal
. Signed-off-by: Punit Agrawal Reviewed-by: Christoffer Dall Cc: Marc Zyngier Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon --- arch/arm/include/asm/kvm_mmu.h | 19 arch/arm64/include/asm/kvm_mmu.h | 15 ++ arch/arm64/include/asm/pgtable-hwdef.h | 4

[PATCH v3 3/4] KVM: arm64: Support dirty page tracking for PUD hugepages

2018-05-14 Thread Punit Agrawal
code with arm32. Signed-off-by: Punit Agrawal Reviewed-by: Christoffer Dall Cc: Marc Zyngier Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon --- arch/arm/include/asm/kvm_mmu.h | 16 arch/arm64/include/asm/kvm_mmu.h | 10 ++ virt/kvm/arm/mmu.c

Re: [PATCH v10 02/25] x86/mm: define ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT

2018-05-14 Thread Punit Agrawal
Laurent Dufour writes: > On 08/05/2018 13:04, Punit Agrawal wrote: >> Hi Laurent, >> >> Laurent Dufour writes: >> >>> Set ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT which turns on the >>> Speculative Page Fault handler when building for 64bit. >>&g

Re: [PATCH 1/2] arm64: avoid alloc memory on offline node

2018-06-19 Thread Punit Agrawal
Michal Hocko writes: > On Tue 19-06-18 20:03:07, Xie XiuQi wrote: > [...] >> I tested on a arm board with 128 cores 4 numa nodes, but I set >> CONFIG_NR_CPUS=72. >> Then node 3 is not be created, because node 3 has no memory, and no cpu. >> But some pci device may related to node 3, which be set

Re: [PATCH 1/2] arm64: avoid alloc memory on offline node

2018-06-19 Thread Punit Agrawal
Lorenzo Pieralisi writes: > On Tue, Jun 19, 2018 at 01:52:16PM +0100, Punit Agrawal wrote: >> Michal Hocko writes: >> >> > On Tue 19-06-18 20:03:07, Xie XiuQi wrote: >> > [...] >> >> I tested on a arm board with 128 cores 4 numa nodes, but I set

  1   2   3   4   5   6   7   >