[GIT PULL]: dma-buf updates for 3.9

2013-02-27 Thread Sumit Semwal
Hi Linus, Here's the 3.9 pull request for dma-buf framework updates: could you please pull? Thanks and best regards, ~Sumit. The following changes since commit d895cb1af15c04c522a25c79cc429076987c089b: Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs (2013-0

Re: [GIT PULL]: dma-buf updates for 3.12

2013-09-11 Thread Sumit Semwal
Hi Linus. Sincere apologies for the html post; this request is now in plain-text. (it has been convenient using the gmail interface, but I promise this is the last time you'll see a non-plain-text email from me. Apologies again! Best regards, ~Sumit. On 11 September 2013 17:07, Sumit S

[GIT PULL]: dma-buf updates for 3.8

2012-12-19 Thread Sumit Semwal
Hi Linus, A fairly small dma-buf pull request for 3.8 - only 2 patches. Could you please pull? Thanks! ~Sumit. The following changes since commit f01af9f85855e38fbd601e033a8eac204cc4cc1c: Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc (2012-12-19 20:31:02 -0800) are availabl

[GIT PULL]: dma-buf updates for 3.10

2013-05-01 Thread Sumit Semwal
6:22 +0530) 3.10 dma-buf updates Added debugfs support to dma-buf. -------- Sumit Semwal (2): dma-buf: replace dma_buf_export() with dma_buf_export_named() dma-buf: Add debugfs support Documentation/dma-buf-sharing

Re: [RFC PATCH 1/3] dma-fence: dma-buf synchronization (v5)

2012-08-05 Thread Sumit Semwal
Hi Maarten, On 27 July 2012 19:09, Maarten Lankhorst wrote: > A dma-fence can be attached to a buffer which is being filled or consumed > by hw, to allow userspace to pass the buffer without waiting to another > device. For example, userspace can call page_flip ioctl to display the > next frame o

Re: [PATCH 1/3] dma-fence: dma-buf synchronization (v7)

2012-08-07 Thread Sumit Semwal
maturely while > keeping everything stable. As such, aborting requests should only be done > in exceptional circumstances, in this case hardware died and things are > already locked up anyhow.. > > ~Maarten > -- Thanks and best regards, Sumit Semwal -- To unsubscribe from this

Re: [PATCH] dma-buf: add reference counting for exporter module

2012-08-08 Thread Sumit Semwal
t;> >>if (WARN_ON(!priv || !ops >> >> +|| !ops->owner >> >> Thank you for spotting this. >> I didn'y know that try_get_module returned true is module was NULL. >> >> BTW. Is it worth to add ".owner = THIS_MODULE,&

Re: [PATCH] dma-buf/sw_sync: mark sync_timeline_create() static

2016-09-20 Thread Sumit Semwal
uf/sw_sync.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) > > Thanks for finding this. Thanks for the patch; this doesn't apply to mainline yet, since the de-staging of sw_sync code is queued for 4.9 via Greg-KH's tree. CC'ing him. Greg, would it be possible to please take this via your tree? > > Reviewed-by: Gustavo Padovan > Acked-by: Sumit Semwal > Gustavo > Best regards, Sumi

Re: [PATCH] dma-buf/sync_file: fix documentation error

2016-09-20 Thread Sumit Semwal
Hi Emilio, On 19 September 2016 at 17:40, Gustavo Padovan wrote: > Hi Emilio, > > 2016-09-19 Emilio López : > >> The ioctl name and description on the documentation block don't >> match the ioctl being defined. This was probably overlooked while >> renaming the ioctls during the sync file destagi

Re: [PATCH v4 2/5] dma-buf/sync_file: refactor fence storage in struct sync_file

2016-07-28 Thread Sumit Semwal
Hi Greg, On 19 July 2016 at 17:51, Sumit Semwal wrote: > (Adding Greg KH) > > Hi Greg, > > On 19 July 2016 at 17:45, Sumit Semwal wrote: >> Hi Greg, >> >> >> On 12 July 2016 at 23:38, Gustavo Padovan wrote: >>> From: Gustavo Padovan >>

Re: [PATCH] staging: android: ion: Make ION_OF depend on OF_ADDRESS

2016-09-14 Thread Sumit Semwal
Hi Laura, On 14 September 2016 at 21:03, Laura Abbott wrote: > The Ion platform code uses of_platform_device_create which has > dependencies on OF_ADDRESS. Depending on OF is not sufficient > Thanks for the patch; looks good to me. Please feel free to apply my Reviewed-by: Sumit Semw

Re: [PATCH v2 1/2] selftests: lib: Skip tests on missing test modules

2017-06-19 Thread Sumit Semwal
Hi Kees, On 20 June 2017 at 00:21, Kees Cook wrote: > On Mon, Jun 19, 2017 at 6:44 AM, Sumit Semwal wrote: >> With older kernels, printf.sh and bitmap.sh fail because they can't find >> the respective test modules they are looking for. >> >> Add the skip p

[PATCH v3] selftests: lib: Skip tests on missing test modules

2017-06-19 Thread Sumit Semwal
t too, so use 'modprobe -q -n' to check presence of the module, instead of 'find ..'. v2: Per Shuah's review, search for the module rather than do modprobe. Signed-off-by: Sumit Semwal --- tools/testing/selftests/lib/bitmap.sh | 4 tools/testing/selftests/lib/printf.s

Re: [PATCH 4.9 00/60] 4.9.34-stable review

2017-06-20 Thread Sumit Semwal
Hi Greg, On 20 June 2017 at 05:40, Guenter Roeck wrote: > On 06/19/2017 08:16 AM, Greg Kroah-Hartman wrote: >> >> This is the start of the stable review cycle for the 4.9.34 release. >> There are 60 patches in this series, all will be posted as a response >> to this one. If anyone has any issues

Re: [PATCH 2/2] selftests: lib: prime_numbers: update presence check

2017-06-20 Thread Sumit Semwal
Hi Chris, On 20 June 2017 at 17:17, Chris Wilson wrote: > Quoting Sumit Semwal (2017-06-19 16:11:33) >> On 19 June 2017 at 20:27, Chris Wilson wrote: >> > Quoting Sumit Semwal (2017-06-19 15:46:20) >> >> Hi Chris, >> >> >> >> On 19 June 201

Re: [PATCH] Documentation: Add a file explaining the Linux kernel license

2017-10-16 Thread Sumit Semwal
by: Srinivas Kandagatla > Acked-by: Steven Rostedt (VMware) > Acked-by: Sven Eckelmann > Acked-by: Takashi Iwai (SUSE) > Acked-by: Tejun Heo > Acked-by: Thierry Reding > Acked-by: Tony Luck > Acked-by: Ulf Hansson > Acked-by: Vinod Koul > Acked-by:

Re: tracing, dma-buf: Remove unused trace event dma_fence_annotate_wait_on

2017-10-16 Thread Sumit Semwal
27;s just removing > unused traecpoints. I added it to my tree already (but haven't pushed > it to linux-next yet), with the Reviewed by from Christian. Is that OK? > It shouldn't cause any merge conflicts that Linus can't handle. I suspect it should be ok; please do feel

Re: [PATCH] selftests: remove obsolete kconfig fragment for cpu-hotplug

2017-11-02 Thread Sumit Semwal
Hello Lei, On 2 November 2017 at 07:43, lyang0 wrote: > > > On 2017年11月02日 06:59, Shuah Khan wrote: >> >> On 11/01/2017 04:52 PM, Thomas Gleixner wrote: >>> >>> On Wed, 1 Nov 2017, Shuah Khan wrote: On 10/17/2017 08:10 PM, lei.y...@windriver.com wrote: > > From: Lei Yang >

Re: [PATCH] selftests: breakpoints: fix compile error on breakpoint_test_arm64

2017-11-02 Thread Sumit Semwal
Hi Shuah, On 2 November 2017 at 02:22, Shuah Khan wrote: > On 10/23/2017 01:42 AM, Sumit Semwal wrote: >> The current mainline breakpoints test for arm64 fails to compile with >> >> breakpoint_test_arm64.c: In function ‘set_watchpoint’: >> breakpoint_test_arm64.c:97

Re: [PATCH 4.4 00/53] 4.4.113-stable review

2018-01-22 Thread Sumit Semwal
Hi Greg, On 23 January 2018 at 12:09, Greg Kroah-Hartman wrote: > On Tue, Jan 23, 2018 at 01:19:07AM +0530, Naresh Kamboju wrote: >> On 22 January 2018 at 14:09, Greg Kroah-Hartman >> wrote: >> > This is the start of the stable review cycle for the 4.4.113 release. >> > There are 53 patches in t

Re: [PATCH 1/6] MAINTAINERS: Remove ANDROID ION pattern

2018-01-28 Thread Sumit Semwal
the pattern. >> > > Acked-by: Laura Abbott > Acked-by: Sumit Semwal > >> Signed-off-by: Joe Perches >> cc: Laura Abbott >> cc: Sumit Semwal >> --- >> MAINTAINERS | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/M

Re: [RFC 1/4] dma-buf: Add constraints sharing information

2014-12-10 Thread Sumit Semwal
Hi Daniel, Thanks a bunch for your review comments! A few comments, post our discussion at LPC; On 12 October 2014 at 00:25, Daniel Vetter wrote: > On Sat, Oct 11, 2014 at 01:37:55AM +0530, Sumit Semwal wrote: >> At present, struct device lacks a mechanism of exposing memory

[RFC] dma-buf: cleanup dma_buf_export() to make it easily extensible

2015-01-22 Thread Sumit Semwal
() with dma_buf_export(), and change all callers accordingly. Signed-off-by: Sumit Semwal --- drivers/dma-buf/dma-buf.c | 47 +- drivers/gpu/drm/armada/armada_gem.c| 12 +-- drivers/gpu/drm/drm_prime.c| 14

Re: [RFCv2 2/2] dma-buf: add helpers for sharing attacher constraints with dma-parms

2015-01-26 Thread Sumit Semwal
Hi Russell! On 21 January 2015 at 23:01, Russell King - ARM Linux wrote: > On Wed, Jan 21, 2015 at 09:46:47AM +0530, Sumit Semwal wrote: >> +static int calc_constraints(struct device *dev, >> + struct dma_buf_constraints *calc_cons) >&g

[RFCv3 2/2] dma-buf: add helpers for sharing attacher constraints with dma-parms

2015-01-27 Thread Sumit Semwal
l the time, - dma_buf_recalc_constraints - which recalculates the constraints for all currently attached devices for the 'paranoid' ones amongst us. The idea of this patch is largely taken from Rob Clark's RFC at https://lkml.org/lkml/2012/7/19/285, and the comments received on it. Cc: Rob Clark Si

[RFCv3 1/2] device: add dma_params->max_segment_count

2015-01-27 Thread Sumit Semwal
[sumits: Minor updates wrt comments] Signed-off-by: Sumit Semwal --- v3: include Robin Murphy's fix[1] for handling '0' as a value for max_segment_count v2: minor updates wrt comments on the first version [1]: http://article.gmane.org/gmane.linux.kernel.iommu/8175/

[PATCH v2] dma-buf: cleanup dma_buf_export() to make it easily extensible

2015-01-27 Thread Sumit Semwal
() with dma_buf_export(), and change all callers accordingly. Signed-off-by: Sumit Semwal --- v2: add macro to zero out local struct, and fill KBUILD_MODNAME by default drivers/dma-buf/dma-buf.c | 47 +- drivers/gpu/drm/armada/armada_gem.c

Re: [PATCH v3] dma-buf: cleanup dma_buf_export() to make it easily extensible

2015-01-28 Thread Sumit Semwal
Hi Mauro, On 28 January 2015 at 18:53, Mauro Carvalho Chehab wrote: > Em Wed, 28 Jan 2015 18:24:03 +0530 > Sumit Semwal escreveu: > >> +/** >> + * helper macro for exporters; zeros and fills in most common values >> + */ >> +#define DEFINE_DMA_BUF_EXPORT

[PATCH v3] dma-buf: cleanup dma_buf_export() to make it easily extensible

2015-01-28 Thread Sumit Semwal
() with dma_buf_export(), and change all callers accordingly. Signed-off-by: Sumit Semwal --- v3: Daniel Thompson caught the C99 warning issue w/ using {0}; using {.exp_name = xxx} instead. v2: add macro to zero out local struct, and fill KBUILD_MODNAME by default drivers/dma-buf/dma-buf.c

Re: [PATCH v2] dma-buf: cleanup dma_buf_export() to make it easily extensible

2015-01-28 Thread Sumit Semwal
On 28 January 2015 at 16:50, Daniel Thompson wrote: > On 28/01/15 06:00, Sumit Semwal wrote: >> +/** >> + * helper macro for exporters; zeros and fills in most common values >> + */ >> +#define DEFINE_DMA_BUF_EXPORT_INFO(a)\ >> +

[GIT PULL]: dma-buf updates for 4.1-rc1

2015-04-24 Thread Sumit Semwal
rection of copy-paste stupidity while doing the cleanup -------- Sumit Semwal (2): dma-buf: cleanup dma_buf_export() to make it easily extensible staging: android: ion: fix wrong init of dma_buf_export_info Documentation/dma-

Re: [PATCH v3 3/3] usb: phy: hold wakeupsource when USB is enumerated in peripheral mode

2015-06-08 Thread Sumit Semwal
, considering >> some PHYs will not be able to report VBUS levels, I'm not sure what we >> should do here. >> > > My opinion is: if we need this feature, we should depend on gadget's > state, eg 'configured', not vbus level. The system suspend should b

Re: [Linaro-mm-sig] [RFCv3 2/2] dma-buf: add helpers for sharing attacher constraints with dma-parms

2015-06-03 Thread Sumit Semwal
On 3 June 2015 at 15:07, Hans Verkuil wrote: > On 06/03/15 10:41, Russell King - ARM Linux wrote: >> On Wed, Jun 03, 2015 at 08:39:55AM +0200, Hans Verkuil wrote: >>> Hi Sumit, >>> >>> On 05/05/2015 04:41 PM, Sumit Semwal wrote: >>>> Hi Russell, eve

Re: [RFC][PATCH 2/2] dma-buf: heaps: Fix the name used when exporting dmabufs to be the actual heap name

2021-02-08 Thread Sumit Semwal
ion with tooling, and there is > > > > the future potential where multiple heap types may be exported > > > > by the same module (but would all have the same name). > > > > > > > > So to avoid all this, set the exporter exp_name to the heap name. &g

[RESEND PATCH v3 2/2] drm: panel: Add tianma nt36672a panel driver

2020-08-11 Thread Sumit Semwal
Android. With current AOSP, we need to increase it to 200ms - this seems to be a safe high value to avoid a white screen occasionally. Signed-off-by: Sumit Semwal Cc: Benni Steini --- v2: increase reset sequence timing to a safe 200ms --- MAINTAINERS | 7

[RESEND PATCH v3 0/2] Add support for Tianma nt36672a video mode panel

2020-08-11 Thread Sumit Semwal
with just port in panel@0 node. [1]: Sumit Semwal (2): dt-bindings: display: panel: Add bindings for Tianma nt36672a panel drm: panel: Add tianma nt36672a panel driver .../display/panel/tianma,nt36672a.yaml| 95 ++ MAINTAINERS | 7 + drivers/gpu/drm

[RESEND PATCH v3 1/2] dt-bindings: display: panel: Add bindings for Tianma nt36672a panel

2020-08-11 Thread Sumit Semwal
The nt36672a panel from Tianma is a FHD+ panel with a resolution of 1080x2246 and 6.18 inches size. It is found in some of the Poco F1 phones. Signed-off-by: Sumit Semwal Reviewed-by: Rob Herring --- v2: remove ports node, making port@0 directly under panel@0 node. v3: updated to replace port@0

[PATCH v4 2/2] drm: panel: Add tianma nt36672a panel driver

2020-08-11 Thread Sumit Semwal
Android. With current AOSP, we need to increase it to 200ms - this seems to be a safe high value to avoid a white screen occasionally. Signed-off-by: Sumit Semwal Cc: Benni Steini --- v2: increase reset sequence timing to a safe 200ms v4: Since "0425662fdf05: drm: Nuke mode->vrefresh"

[PATCH v4 0/2] Add support for Tianma nt36672a video mode panel

2020-08-11 Thread Sumit Semwal
with just port in panel@0 node. v4: Since "0425662fdf05: drm: Nuke mode->vrefresh", we have to calculate vrefresh on demand. Update for it. Sumit Semwal (2): dt-bindings: display: panel: Add bindings for Tianma nt36672a panel drm: panel: Add tianma nt36672a panel driver .../

[PATCH v4 1/2] dt-bindings: display: panel: Add bindings for Tianma nt36672a panel

2020-08-11 Thread Sumit Semwal
The nt36672a panel from Tianma is a FHD+ panel with a resolution of 1080x2246 and 6.18 inches size. It is found in some of the Poco F1 phones. Signed-off-by: Sumit Semwal Reviewed-by: Rob Herring --- v2: remove ports node, making port@0 directly under panel@0 node. v3: updated to replace port

Re: [RESEND PATCH 1/2] dma-buf: Fix kerneldoc of dma_buf_set_name()

2020-08-19 Thread Sumit Semwal
Hello Krzystof, On Wed, 19 Aug 2020 at 23:21, Krzysztof Kozlowski wrote: > > Fix W=1 compile warnings (invalid kerneldoc): > > drivers/dma-buf/dma-buf.c:328: warning: Function parameter or member > 'dmabuf' not described in 'dma_buf_set_name' Thanks for the patch; I will apply it to drm-mis

[PATCH v5 0/2] Anonymous VMA naming patches

2020-08-19 Thread Sumit Semwal
Last version v4 of these patches was sent by Colin Cross a long time ago [1] and [2]. At the time, these patches were not merged, and it looks like they just fell off the radar since. In our efforts to run Android on mainline kernels, we realised that since past some time, this patchset is needed

Re: [PATCH] dma-buf: cma_heap: Fix memory leak in CMA heap

2021-01-08 Thread Sumit Semwal
ures the pagelist is also freed on release. Thanks for your patch. > > Cc: Bing Song > Cc: Sumit Semwal > Cc: Liam Mark > Cc: Laura Abbott > Cc: Brian Starkey > Cc: Hridya Valsaraju > Cc: Suren Baghdasaryan > Cc: Sandeep Patil > Cc: Daniel Mentz > Cc: Chr

Re: [PATCH v5 0/7] dma-buf: Performance improvements for system heap & a system-uncached implementation

2020-11-19 Thread Sumit Semwal
u, Nov 12, 2020 at 1:32 AM Daniel Vetter wrote: > > > > > On Thu, Nov 12, 2020 at 11:09:04AM +0530, Sumit Semwal wrote: > > > > > > On Tue, 10 Nov 2020 at 09:19, John Stultz > > > > > > wrote: > > > > > > > > > > > &

Re: [RESEND][PATCH 3/3] dma-buf: heaps: Rework heep allocation hooks to return struct dma_buf instead of fd

2021-01-21 Thread Sumit Semwal
le creating the fd via > dma_buf_fd(). Thanks for the patch! LGTM, feels a lot neater now. I'll merge into drm-misc-next. > > Cc: Sumit Semwal > Cc: Liam Mark > Cc: Laura Abbott > Cc: Brian Starkey > Cc: Hridya Valsaraju > Cc: Suren Baghdasaryan > Cc:

Re: [RESEND][PATCH 1/3] dma-buf: system_heap: Make sure to return an error if we abort

2021-01-21 Thread Sumit Semwal
ill push into drm-misc-next. > > Cc: Sumit Semwal > Cc: Liam Mark > Cc: Laura Abbott > Cc: Brian Starkey > Cc: Hridya Valsaraju > Cc: Suren Baghdasaryan > Cc: Sandeep Patil > Cc: Daniel Mentz > Cc: Chris Goldsworthy > Cc: Ørjan Eide > Cc: Robin Murphy

Re: [RESEND][PATCH 2/3] dma-buf: heaps: Add a WARN_ON should the vmap_cnt go negative

2021-01-21 Thread Sumit Semwal
or the vunmap count more than vmap count. Is there a specific need for this in the heaps? Best, Sumit. > > Cc: Sumit Semwal > Cc: Liam Mark > Cc: Laura Abbott > Cc: Brian Starkey > Cc: Hridya Valsaraju > Cc: Suren Baghdasaryan > Cc: Sandeep Patil > Cc: Daniel Me

Re: [Linaro-mm-sig] [PATCH] dmabuf: fix use-after-free of dmabuf's file->f_inode

2021-01-04 Thread Sumit Semwal
Hi Charan, On Mon, 4 Jan 2021 at 17:22, Christian König wrote: > > Am 04.01.21 um 12:36 schrieb Charan Teja Reddy: > > It is observed 'use-after-free' on the dmabuf's file->f_inode with the > > race between closing the dmabuf file and reading the dmabuf's debug > > info. > > > > Consider the belo

Re: [PATCH v3] dmabuf: Add the capability to expose DMA-BUF stats in sysfs

2021-01-28 Thread Sumit Semwal
Hi Hridya, On Wed, 27 Jan 2021 at 17:36, Greg KH wrote: > > On Tue, Jan 26, 2021 at 12:42:36PM -0800, Hridya Valsaraju wrote: > > This patch allows statistics to be enabled for each DMA-BUF in > > sysfs by enabling the config CONFIG_DMABUF_SYSFS_STATS. > > > > The following stats will be exposed

Re: [Linaro-mm-sig] [PATCH v3] dmabuf: Add the capability to expose DMA-BUF stats in sysfs

2021-01-28 Thread Sumit Semwal
On Thu, 28 Jan 2021 at 17:23, Christian König wrote: > > Am 28.01.21 um 12:00 schrieb Sumit Semwal: > > Hi Hridya, > > > > On Wed, 27 Jan 2021 at 17:36, Greg KH wrote: > >> On Tue, Jan 26, 2021 at 12:42:36PM -0800, Hridya Valsaraju wrote: > >>> This p

Re: [Linaro-mm-sig] [PATCH v3] dmabuf: Add the capability to expose DMA-BUF stats in sysfs

2021-01-28 Thread Sumit Semwal
Hi Simon, On Thu, 28 Jan 2021 at 20:01, Simon Ser wrote: > > On Thursday, January 28th, 2021 at 1:03 PM, Sumit Semwal > wrote: > > > Since he didn't comment over Hridya's last clarification about the > > tracepoints to track total GPU memory allocations bein

Re: [PATCH] dma-buf: cma_heap: Include linux/vmalloc.h to fix build failures on MIPS

2020-12-16 Thread Sumit Semwal
ction 'cma_heap_do_vmap': > drivers/dma-buf/heaps/cma_heap.c:195:10: error: implicit declaration of > function 'vmap' Thanks for the patch; I've merged it to drm-misc-next-fixes. > > Cc: Sumit Semwal > Cc: Liam Mark > Cc: Laura Abbott > Cc:

Re: [PATCH 1/6] MAINTAINERS: Update DMA BUFFER SHARING patterns

2014-07-29 Thread Sumit Semwal
Hi Joe! On 30 July 2014 09:08, Joe Perches wrote: > One pattern per F: line please... Thanks for catching this; Acked-by: Sumit Semwal > > Signed-off-by: Joe Perches > CC: Sumit Semwal > --- > MAINTAINERS | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > &g

Re: linux-next: manual merge of the dma-buf tree with the staging tree

2014-05-20 Thread Sumit Semwal
On 20 May 2014 12:36, Greg KH wrote: > On Tue, May 20, 2014 at 05:00:31PM +1000, Stephen Rothwell wrote: >> Hi Sumit, >> >> Today's linux-next merge of the dma-buf tree got a conflict in >> drivers/staging/android/sync.c between commit 10f62861b4a2 ("staging: >> android: fix missing a blank line a

Re: linux-next: manual merge of the dma-buf tree with the drm-intel tree

2014-05-20 Thread Sumit Semwal
On 20 May 2014 12:25, Stephen Rothwell wrote: > Hi Sumit, > > Today's linux-next merge of the dma-buf tree got a conflict in > drivers/gpu/drm/i915/i915_gem_dmabuf.c between commit 5cc9ed4b9a7a > ("drm/i915: Introduce mapping of user pages into video memory (userptr) > ioctl") from the drm-intel t

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

2014-05-20 Thread Sumit Semwal
*tegra_gem_prime_export(struct drm_device > *drm, >int flags) > { > return dma_buf_export(gem, &tegra_gem_prime_dmabuf_ops, gem->size, > - flags); > + flags, NULL); > } > struct drm_g

[GIT PULL]: dma-buf updates for 3.14

2014-02-17 Thread Sumit Semwal
for you to fetch changes up to c0b00a525c127d0055c1df6283300e17f601a1a1: dma-buf: update debugfs output (2014-02-13 10:08:52 +0530) Small dma-buf pull request for 3.14 -------- Sumit Sem

Re: [REPOST PATCH 1/8] fence: dma-buf cross-device synchronization (v17)

2014-06-18 Thread Sumit Semwal
>> Explicitly include linux/atomic.h. >>> v16: >>> Add trace events. >>> Import changes required by android syncpoints. >>> v17: >>> Use wake_up_state instead of try_to_wake_up. (Colin Cross) >>> Fix up commit description for

Re: [REPOST PATCH 1/8] fence: dma-buf cross-device synchronization (v17)

2014-06-18 Thread Sumit Semwal
On 19 June 2014 10:24, Greg KH wrote: > On Thu, Jun 19, 2014 at 09:57:35AM +0530, Sumit Semwal wrote: >> Hi Greg, >> >> >> >> >> Who is going to sign up to maintain this code? (hint, it's not me...) >> > >> > that would be

Re: [PATCH v2 0/9] Updated fence patch series

2014-07-08 Thread Sumit Semwal
day. >> >> btw should we add you as a (co)maintainer for driver/core/dma-buf since >> you seem to want to keep a closer tab on what the insane gfx folks are up >> to in there? > > Sure, why not, what's one more maintainership... > > Oh, does that mean you want

Re: [PATCH v2 0/9] Updated fence patch series

2014-07-07 Thread Sumit Semwal
Hi Greg, On 2 July 2014 11:07, Greg KH wrote: > On Tue, Jul 01, 2014 at 12:57:02PM +0200, Maarten Lankhorst wrote: >> So after some more hacking I've moved dma-buf to its own subdirectory, >> drivers/dma-buf and applied the fence patches to its new place. I believe >> that the >> first patch sho

Re: [PATCH] fence: Use smp_mb__before_atomic()

2014-06-05 Thread Sumit Semwal
Hi Greg, On 5 June 2014 17:21, Rob Clark wrote: > On Wed, Jun 4, 2014 at 1:49 PM, Greg Kroah-Hartman > wrote: >> On Wed, Jun 04, 2014 at 03:28:33PM +0200, Thierry Reding wrote: >>> On Wed, Jun 04, 2014 at 04:57:07PM +0530, Sumit Semwal wrote: >>> > Hi Greg, &g

Re: [PATCH] fence: Use smp_mb__before_atomic()

2014-06-05 Thread Sumit Semwal
; On Wed, Jun 04, 2014 at 04:57:07PM +0530, Sumit Semwal wrote: >> >> > Hi Greg, >> >> > >> >> > >> >> > On 30 May 2014 21:38, Greg Kroah-Hartman >> >> > wrote: >> >> > > On Fri, May 30, 2014 at 10:15:05AM +02

Re: [PATCH] Documentation/dma-buf-sharing.txt: update API descriptions

2014-05-20 Thread Sumit Semwal
struct sg_table *, >> +enum dma_data_direction); >> >> unmap_dma_buf signifies the end-of-DMA for the attachment provided. Like >> map_dma_buf, this API also must be implemented by the exporter. >> -- >> 1.7.9.5

Re: [PATCH linux-next] DRM: Armada: update dma_buf_export use

2014-05-27 Thread Sumit Semwal
for the prod Stephen! All, I'll merge it in today's for-next for me. > -- > Cheers, > Stephen Rothwell s...@canb.auug.org.au -- Thanks and regards, Sumit Semwal Graphics Engineer - Graphics working group Linaro.org │ Open source software for ARM SoCs -- T

Re: [PATCH] fence: Use smp_mb__before_atomic()

2014-06-04 Thread Sumit Semwal
Hi Greg, On 30 May 2014 21:38, Greg Kroah-Hartman wrote: > On Fri, May 30, 2014 at 10:15:05AM +0200, Thierry Reding wrote: >> On Wed, May 28, 2014 at 01:51:45PM -0700, Greg Kroah-Hartman wrote: >> > On Wed, May 28, 2014 at 04:26:32PM +0200, Thierry Reding wrote: >> > > From: Thierry Reding >> >

[GIT PULL]: few dma-buf updates for 3.17-rc3

2014-08-28 Thread Sumit Semwal
Hi Linus, The major changes for 3.17 already went via Greg-KH's tree this time as well; this is a small pull request for dma-buf - all documentation related. Could you please pull? The following changes since commit f1bd473f95e02bc382d4dae94d7f82e2a455e05d: Merge branch 'sec-v3.17-rc2' of gi

Re: [Linaro-mm-sig] [RFC 0/4] dma-buf Constraints-Enabled Allocation helpers

2014-10-14 Thread Sumit Semwal
Hi Laura, On 13 October 2014 13:42, Laura Abbott wrote: > On 10/10/2014 1:07 PM, Sumit Semwal wrote: >> >> Hi, >> >> Why: >> >> While sharing buffers using dma-buf, currently there's no mechanism to >> let >> devices share thei

Re: [RFC 2/4] cenalloc: Constraint-Enabled Allocation helpers for dma-buf

2014-10-14 Thread Sumit Semwal
Hi Greg, Daniel! On 12 October 2014 00:10, Daniel Vetter wrote: > On Fri, Oct 10, 2014 at 04:09:00PM -0700, Greg Kroah-Hartman wrote: >> On Sat, Oct 11, 2014 at 01:37:56AM +0530, Sumit Semwal wrote: >> > Devices sharing buffers using dma-buf could benefit from sharing their &g

Re: [Linaro-mm-sig] [RFC 2/4] cenalloc: Constraint-Enabled Allocation helpers for dma-buf

2014-10-14 Thread Sumit Semwal
Hi Laura, On 13 October 2014 14:05, Laura Abbott wrote: > On 10/10/2014 1:07 PM, Sumit Semwal wrote: >> >> Devices sharing buffers using dma-buf could benefit from sharing their >> constraints via struct device, and dma-buf framework would manage the >> common c

Re: [PATCH] MAINTAINERS: add entry for the Sync File Framework

2016-05-11 Thread Sumit Semwal
Hi Gustavo, On 11 May 2016 at 19:15, Gustavo Padovan wrote: > From: Gustavo Padovan > > Add Gustavo as maintainer for the Sync File Framework. Sumit is > co-maintainer as he maintains drivers/dma-buf/. It also uses Sumit's > tree as base. > > Cc: Sumit Semwal > S

Re: [PATCH v3 3/3] usb: phy: hold wakeupsource when USB is enumerated in peripheral mode

2015-07-20 Thread Sumit Semwal
On 13 July 2015 at 12:30, Peter Chen wrote: > On Mon, Jul 13, 2015 at 01:26:23PM +0530, Sumit Semwal wrote: >> Hi Peter, >> >> On 8 June 2015 at 14:02, Peter Chen wrote: >> > On Mon, Jun 08, 2015 at 12:37:00PM +0530, Sumit Semwal wrote: >> >> H Peter, Fe

Re: [PATCH v3 3/3] usb: phy: hold wakeupsource when USB is enumerated in peripheral mode

2015-07-20 Thread Sumit Semwal
Hi Peter, On 20 July 2015 at 12:45, Peter Chen wrote: > On Mon, Jul 20, 2015 at 01:18:35PM +0530, Sumit Semwal wrote: >> On 13 July 2015 at 12:30, Peter Chen wrote: >> > On Mon, Jul 13, 2015 at 01:26:23PM +0530, Sumit Semwal wrote: >> >> Hi Peter, >> >>

Re: [PATCH v1 2/3] usb: phy: Handle per-PHY event for connect and disconnect events

2014-11-24 Thread Sumit Semwal
gt; >> >> Cc: Felipe Balbi >> >> Cc: Greg Kroah-Hartman >> >> Cc: linux-kernel@vger.kernel.org >> >> Cc: linux-...@vger.kernel.org >> >> Cc: Android Kernel Team >> >> Cc: John Stultz >> >> Cc: Sumit Semwal &

Re: [PATCH v1 2/3] usb: phy: Handle per-PHY event for connect and disconnect events

2014-11-24 Thread Sumit Semwal
On 24 November 2014 at 21:24, Felipe Balbi wrote: > On Mon, Nov 24, 2014 at 09:19:09PM +0530, Sumit Semwal wrote: >> Hi Felipe, >> >> On 24 November 2014 at 20:08, Felipe Balbi wrote: >> > Hi, >> > >> > On Fri, Nov 21, 2014 at 09:13:00PM +0530, Ki

[RFC 0/4] dma-buf Constraints-Enabled Allocation helpers

2014-10-10 Thread Sumit Semwal
egards, ~Sumit. [1]: 'C'onstraints 'EN'abled 'ALLOC'ation helpers = cenalloc: it might not be a very appealing name, so suggestions are very welcome! Benjamin Gaignard (1): cenalloc: a sample allocator for contiguous page allocation Sumit Semwal (3): dma-buf: Add constraint

[RFC 2/4] cenalloc: Constraint-Enabled Allocation helpers for dma-buf

2014-10-10 Thread Sumit Semwal
c_buffer_free to free the buffer if refcount reaches zero; ** IMPORTANT** This mechanism of delayed allocation based on constraint-enablement will work *ONLY IF* the first map_attachment() call is made AFTER all attach() calls are done. Signed-off-by: Sumit Semwal Cc: linux-kernel@vger.kernel.org C

[RFC 4/4] cenalloc: a sample allocator for contiguous page allocation

2014-10-10 Thread Sumit Semwal
From: Benjamin Gaignard Signed-off-by: Benjamin Gaignard Signed-off-by: Sumit Semwal Cc: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman Cc: linux-me...@vger.kernel.org Cc: dri-de...@lists.freedesktop.org Cc: linaro-mm-...@lists.linaro.org --- drivers/cenalloc/Makefile

[RFC 1/4] dma-buf: Add constraints sharing information

2014-10-10 Thread Sumit Semwal
asis, while defining some common masks. Signed-off-by: Sumit Semwal Cc: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman Cc: linux-me...@vger.kernel.org Cc: dri-de...@lists.freedesktop.org Cc: linaro-mm-...@lists.linaro.org --- drivers/dma-buf/dma-buf.c

[RFC 3/4] cenalloc: Build files for constraint-enabled allocation helpers

2014-10-10 Thread Sumit Semwal
Add the build files for cenalloc, the constraints-enabled allocation helper framework for dma-buf. Signed-off-by: Sumit Semwal Cc: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman Cc: linux-me...@vger.kernel.org Cc: dri-de...@lists.freedesktop.org Cc: linaro-mm-...@lists.linaro.org

Re: [PATCH] dma-buf: Minor coding style fixes

2015-05-20 Thread Sumit Semwal
Hi Jagan, On 21 May 2015 at 01:09, Jagan Teki wrote: > - WARNING: Missing a blank line after declarations > - WARNING: line over 80 characters > - WARNING: please, no space before tabs > > Signed-off-by: Jagan Teki > Cc: Sumit Semwal Thanks for the patch; I've queued i

[PATCH] dma-buf: add ref counting for module as exporter

2015-05-07 Thread Sumit Semwal
[tomasz: Original author] Signed-off-by: Tomasz Stanislawski Acked-by: Daniel Vetter [sumits: updated & rebased as per review comments] Signed-off-by: Sumit Semwal [1]: https://lkml.org/lkml/2012/8/8/163 --- drivers/dma-buf/dma-buf.c | 9 - drivers/

Re: [PATCH] dma-buf: add ref counting for module as exporter

2015-05-07 Thread Sumit Semwal
On 7 May 2015 at 13:40, Greg KH wrote: > On Thu, May 07, 2015 at 01:00:52PM +0530, Sumit Semwal wrote: >> Add reference counting on a kernel module that exports dma-buf and >> implements its operations. This prevents the module from being unloaded >> while DMABUF file

[PATCH v2] dma-buf: add ref counting for module as exporter

2015-05-07 Thread Sumit Semwal
dma_buf, and use DEFINE_DMA_BUF_EXPORT_INFO macro to simplify the change. Signed-off-by: Sumit Semwal [1]: https://lkml.org/lkml/2012/8/8/163 --- drivers/dma-buf/dma-buf.c | 10 +- include/linux/dma-buf.h | 10 -- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a

[PATCH v3] dma-buf: add ref counting for module as exporter

2015-05-08 Thread Sumit Semwal
as possible, per gregkh's comment. v2: move owner to struct dma_buf, and use DEFINE_DMA_BUF_EXPORT_INFO macro to simplify the change. Signed-off-by: Sumit Semwal [1]: https://lkml.org/lkml/2012/8/8/163 --- drivers/dma-buf/dma-buf.c | 10 +- include/linux/dma-buf.h | 10

Re: [RFCv3 2/2] dma-buf: add helpers for sharing attacher constraints with dma-parms

2015-05-05 Thread Sumit Semwal
Hi Russell, everyone, First up, sincere apologies for being awol for sometime; had some personal / medical things to take care of, and then I thought I'd wait for the merge window to get over before beginning to discuss this again. On 11 February 2015 at 21:53, Russell King - ARM Linux wrote: >

[PATCH] staging: android: ion: fix wrong init of dma_buf_export_info

2015-02-24 Thread Sumit Semwal
113 exp_info.flags = O_RDWR; 1114 exp_info.priv = buffer; ^^ And here also. 1115 This patch corrects this stupidity. Reported-by: Dan Carpenter Signed-off-by: Sumit Semwal --- drivers/staging/android/ion/ion.c | 10 +- 1 file

Re: [RFCv3 2/2] dma-buf: add helpers for sharing attacher constraints with dma-parms

2015-02-01 Thread Sumit Semwal
Hi Russell, On 30 January 2015 at 00:56, Russell King - ARM Linux wrote: > On Thu, Jan 29, 2015 at 01:52:09PM -0500, Rob Clark wrote: >> Quite possibly for some of these edge some of cases, some of the >> dma-buf exporters are going to need to get more clever (ie. hand off >> different scatterlis

[GIT PULL]: dma-buf fixes for 4.0

2015-03-03 Thread Sumit Semwal
Hi Linus, May I please request you to pull a couple of fixes in dma-buf for 4.0-rc3? The following changes since commit b942c653ae265abbd31032f3b4f5f857e5c7c723: Merge tag 'trace-sh-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace (2015-01-22 06:26:07 +1200) are ava

Re: [RFCv3 2/2] dma-buf: add helpers for sharing attacher constraints with dma-parms

2015-01-29 Thread Sumit Semwal
Hi Russell! On 29 January 2015 at 20:09, Russell King - ARM Linux wrote: > On Tue, Jan 27, 2015 at 01:55:54PM +0530, Sumit Semwal wrote: >> +/* >> + * recalc_constraints - recalculates constraints for all attached devices; >> + * useful for detach() r

Re: [RFCv3 2/2] dma-buf: add helpers for sharing attacher constraints with dma-parms

2015-01-29 Thread Sumit Semwal
On 29 January 2015 at 21:17, Russell King - ARM Linux wrote: > On Thu, Jan 29, 2015 at 09:00:11PM +0530, Sumit Semwal wrote: >> So, short answer is, it is left to the exporter to decide. The dma-buf >> framework should not even attempt to decide or enforce any of the >>

[RFCv2 0/2] dma-parms, constraints and helpers for dma-buf

2015-01-20 Thread Sumit Semwal
the RFC for this one, to get feedback on whether this mechanism seems ok to everyone. [1] https://lkml.org/lkml/2014/10/10/340 [2] https://lkml.org/lkml/2012/7/19/285 Rob Clark (1): device: add dma_params->max_segment_count Sumit Semwal (1): dma-buf: add helpers for sharing attache

[RFCv2 1/2] device: add dma_params->max_segment_count

2015-01-20 Thread Sumit Semwal
[sumits: Minor updates wrt comments on the first version] Signed-off-by: Sumit Semwal --- include/linux/device.h | 1 + include/linux/dma-mapping.h | 19 +++ 2 files changed, 20 insertions(+) diff --git a/include/linux/device.h b/include/linux/device.h index fb50673..a32f

[RFCv2 2/2] dma-buf: add helpers for sharing attacher constraints with dma-parms

2015-01-20 Thread Sumit Semwal
the comments received on it. Cc: Rob Clark Signed-off-by: Sumit Semwal --- drivers/dma-buf/dma-buf.c | 132 +- include/linux/dma-buf.h | 22 2 files changed, 153 insertions(+), 1 deletion(-) diff --git a/drivers/dma-buf/dma-buf.c b/driver

Re: [PATCH RESEND] dma-mapping: tidy up dma_parms default handling

2015-01-21 Thread Sumit Semwal
ly more meaningful >> macros and removing the superfluous "else" statements. >> >> Signed-off-by: Robin Murphy > > > Acked-by: Marek Szyprowski Please feel free to add my Reviewed-by: Sumit Semwal > >> --- >> >> Hi, various maintainers fro

Re: [RFCv2 1/2] device: add dma_params->max_segment_count

2015-01-21 Thread Sumit Semwal
Hi Robin! On 22 January 2015 at 00:26, Robin Murphy wrote: > Hi Sumit, > > > On 21/01/15 04:16, Sumit Semwal wrote: >> >> From: Rob Clark >> >> For devices which have constraints about maximum number of segments in >> an sglist. For example, a de

[GIT PULL]: few dma-buf updates for 3.20-rc1

2015-02-20 Thread Sumit Semwal
ion: wait only with non-zero timeout specified (v3) dma-buf/fence: don't wait when specified timeout is zero Michel Dänzer (1): reservation: Remove shadowing local variable 'ret' Sumit Semwal (1): dma-buf: cleanup dma_buf_export() to make it easily extensible Docu

Re: [GIT PULL]: few dma-buf updates for 3.20-rc1

2015-02-22 Thread Sumit Semwal
Hi Linus, On 22 February 2015 at 01:42, Linus Torvalds wrote: > On Fri, Feb 20, 2015 at 8:27 AM, Sumit Semwal wrote: >> >> Could you please pull a few dma-buf changes for 3.20-rc1? Nothing >> fancy, minor cleanups. > > No. > > I pulled, and immediately unpulled

Re: [RESEND] fence: add missing descriptions for fence

2016-04-11 Thread Sumit Semwal
Hi Luis, On 12 April 2016 at 04:03, Luis de Bethencourt wrote: > On 11/04/16 21:09, Gustavo Padovan wrote: >> Hi Luis, >> >> 2016-04-11 Luis de Bethencourt : >> >>> The members child_list and active_list were added to the fence struct >>> without descriptions for the Documentation. Adding these.

Re: [PATCH] dma-buf: Documentation: fix: `make htmldocs` warnings

2020-04-30 Thread Sumit Semwal
Hello Everyone, On Thu, 30 Apr 2020 at 10:07, Sam Ravnborg wrote: > > On Wed, Apr 29, 2020 at 11:27:22PM -0300, Vitor Massaru Iha wrote: > > On Wed, 2020-04-29 at 19:06 -0700, Randy Dunlap wrote: > > > On 4/29/20 6:59 PM, Vitor Massaru Iha wrote: > > > > Add missed ":" on kernel-doc function para

  1   2   3   >