Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1472811 > unrolled thread

Re: [PATCH v11 2/4] tee: generic TEE subsystem

Started by"Andrew F. Davis" <afd@ti.com>
First post2016-08-30 21:40 +0200
Last post2016-08-31 14:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v11 2/4] tee: generic TEE subsystem "Andrew F. Davis" <afd@ti.com> - 2016-08-30 21:40 +0200
    Re: [PATCH v11 2/4] tee: generic TEE subsystem Jens Wiklander <jens.wiklander@linaro.org> - 2016-08-31 14:50 +0200

#1472811 — Re: [PATCH v11 2/4] tee: generic TEE subsystem

From"Andrew F. Davis" <afd@ti.com>
Date2016-08-30 21:40 +0200
SubjectRe: [PATCH v11 2/4] tee: generic TEE subsystem
Message-ID<sbX33-GW-1@gated-at.bofh.it>
On 08/22/2016 08:00 AM, Jens Wiklander wrote:
> +/*
> + * Unprivileged devices in the in the lower half range and privileged

                                ^^ in the in the
[snip]

> +
> +	rc = alloc_chrdev_region(&tee_devt, 0, TEE_NUM_DEVICES, "tee");
> +	if (rc < 0) {

if (rc) ?

[snip]

> + * Memory allocated as global shared memory is automatically freed when the
> + * TEE file pointer is closed. The @flags field uses the bits defined by
> + * TEE_SHM_* above. TEE_SHM_MAPPED must currently always be set. If

             ^^^ not really above anymore, out of file now looks like

> + * TEE_SHM_DMA_BUF global shared memory will be allocated and associated
> + * with a dma-buf handle, else driver private memory.
> + *
> + * @returns a pointer to 'struct tee_shm'

Doesn't say anything, is this really needed?

[snip]

> +/**
> + * struct tee_shm_pool_mem_info - holds information needed to create a shared
> + * memory pool
> + * @vaddr:	Virtual address of start of pool
> + * @paddr:	Physical address of start of pool
> + * @size:	Size in bytes of the pool
> + */
> +struct tee_shm_pool_mem_info {
> +	unsigned long vaddr;
> +	unsigned long paddr;

phys_addr_t paddr; ?

[toc] | [next] | [standalone]


#1473424

FromJens Wiklander <jens.wiklander@linaro.org>
Date2016-08-31 14:50 +0200
Message-ID<scd7P-2sm-5@gated-at.bofh.it>
In reply to#1472811
On Tue, Aug 30, 2016 at 02:29:45PM -0500, Andrew F. Davis wrote:
> On 08/22/2016 08:00 AM, Jens Wiklander wrote:
> > +/*
> > + * Unprivileged devices in the in the lower half range and privileged
> 
>                                 ^^ in the in the
> [snip]
> 
> > +
> > +	rc = alloc_chrdev_region(&tee_devt, 0, TEE_NUM_DEVICES, "tee");
> > +	if (rc < 0) {
> 
> if (rc) ?
> 
> [snip]
> 
> > + * Memory allocated as global shared memory is automatically freed when the
> > + * TEE file pointer is closed. The @flags field uses the bits defined by
> > + * TEE_SHM_* above. TEE_SHM_MAPPED must currently always be set. If
> 
>              ^^^ not really above anymore, out of file now looks like
> 
> > + * TEE_SHM_DMA_BUF global shared memory will be allocated and associated
> > + * with a dma-buf handle, else driver private memory.
> > + *
> > + * @returns a pointer to 'struct tee_shm'
> 
> Doesn't say anything, is this really needed?
> 
> [snip]
> 
> > +/**
> > + * struct tee_shm_pool_mem_info - holds information needed to create a shared
> > + * memory pool
> > + * @vaddr:	Virtual address of start of pool
> > + * @paddr:	Physical address of start of pool
> > + * @size:	Size in bytes of the pool
> > + */
> > +struct tee_shm_pool_mem_info {
> > +	unsigned long vaddr;
> > +	unsigned long paddr;
> 
> phys_addr_t paddr; ?

Thanks for taking the time to review this. I'll address all your
comments here in the next version of the patch set.

--
Jens

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web