public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Felipe Contreras <felipe.contreras@nokia.com>
To: "ext Guzman Lugo, Fernando" <x0095840@ti.com>
Cc: Ameya Palande <ameya.palande@nokia.com>,
	linux-omap <linux-omap@vger.kernel.org>,
	Omar Ramirez Luna <omar.ramirez@ti.com>,
	Nishanth Menon <nm@ti.com>,
	"Chitriki Rudramuni, Deepak" <deepak.chitriki@ti.com>,
	Phil Carmody <ext-phil.2.carmody@nokia.com>
Subject: Re: [PATCH] DSPBRIDGE: Prevent memory corruption in DRV_ProcFreeDMMRes
Date: Wed, 10 Feb 2010 15:07:59 +0200	[thread overview]
Message-ID: <20100210130759.GC9214@annwn.felipec.org> (raw)
In-Reply-To: <496565EC904933469F292DDA3F1663E602AA725D82@dlee06.ent.ti.com>

On Wed, Feb 10, 2010 at 05:06:26AM +0100, ext Guzman Lugo, Fernando wrote:
> >At this point there's an obvious question; what's the point of
> >reserving a memory region and not mapping it?
> >
> >I remember the answer from Hari was: some clients prefer to reserve a
> >big region once, and map parts of it continuously. I have my doubts
> >that the use-case even works with the current code-base. But assuming
> >it does work, your proposed changes would break it.
> 
> Resource cleanup does not support that even without my proposed changes.

Aha! I suspected it :P

> I just proposed a solution which fixes two issues in one patch.
> Moreover if this change is merged when the second issue be fixed this
> patch will not needed anymore, so why don't merge the patch which
> fixes both errors at this moment?

simple patches > complicated patches

Personally I think your patches should be a continuation to the patches
I just proposed.

If nobody wants to split these patches, I'll gladly do so.

> >+			u32 dsp_res_addr = p_cur_res->ulDSPResAddr;
> >+
> >+			status = PROC_UnMap(p_cur_res->hProcessor,
> >+				 (void *)p_cur_res->ulDSPAddr, p_ctxt);
> >
> >It would be much easier to merge the two functions into one.
> 
> Yes, I am agreed.

Good. Perhaps we can start moving reserve/unreserve functionality to
map/unmap, and eventually depreate the former.

Cheers.

-- 
Felipe Contreras

  reply	other threads:[~2010-02-10 13:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-08 20:25 [PATCH] DSPBRIDGE: Prevent memory corruption in DRV_ProcFreeDMMRes Ameya Palande
2010-02-09 12:29 ` Felipe Contreras
2010-02-09 20:22   ` Guzman Lugo, Fernando
2010-02-09 23:48     ` Felipe Contreras
2010-02-10  4:06       ` Guzman Lugo, Fernando
2010-02-10 13:07         ` Felipe Contreras [this message]
2010-02-10 17:31           ` Guzman Lugo, Fernando
2010-02-11 15:53             ` Felipe Contreras
2010-02-11 18:44               ` Ameya Palande

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100210130759.GC9214@annwn.felipec.org \
    --to=felipe.contreras@nokia.com \
    --cc=ameya.palande@nokia.com \
    --cc=deepak.chitriki@ti.com \
    --cc=ext-phil.2.carmody@nokia.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=nm@ti.com \
    --cc=omar.ramirez@ti.com \
    --cc=x0095840@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox