public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Will Newton <will.newton@gmail.com>
Cc: linux-omap@vger.kernel.org,
	"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	Kishon Vijay Abraham I <kishon@ti.com>,
	Ravikumar Kattekola <rk@ti.com>,
	Peter Ujfalusi <peter.ujfalusi@ti.com>
Subject: Re: [PATCH] omap_hsmmc: Reduce max_segs
Date: Tue, 20 Jun 2017 23:24:27 -0700	[thread overview]
Message-ID: <20170621062427.GP3730@atomide.com> (raw)
In-Reply-To: <CAFbHwiSuAAophPr2tyHOq2iWrC1Uo2N+EOuvhiNcc9xERuvZZA@mail.gmail.com>

* Will Newton <will.newton@gmail.com> [170620 05:39]:
> Just adding a few people to CC. I'd love to get some feedback as to
> whether this patch makes sense or not.
>
> On Mon, Jun 19, 2017 at 10:36 AM, Will Newton <will.newton@gmail.com> wrote:
> > Reduce max_segs to a value that allows allocation of an entire
> > descriptor list within a single page. This avoids doing a
> > higher order GFP_ATOMIC allocation when setting up a transfer
> > which can potentially fail and lead to I/O failures.

I recall we only ever have few SG entries so if there is no performance
impact I see no reason to lower it to save memory. Care to check
if that's the case still?

Regards,

Tony


> > Signed-off-by: Will Newton <willn@resin.io>
> > ---
> >  drivers/mmc/host/omap_hsmmc.c | 6 +++---
> >  1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
> > index 1438a72..d5f42d9 100644
> > --- a/drivers/mmc/host/omap_hsmmc.c
> > +++ b/drivers/mmc/host/omap_hsmmc.c
> > @@ -2864,9 +2864,9 @@ static int omap_hsmmc_probe(struct platform_device *pdev)
> >                         host->use_adma = true;
> >         }
> >
> > -       /* Since we do only SG emulation, we can have as many segs
> > -        * as we want. */
> > -       mmc->max_segs = 1024;
> > +       /* Set this to a value that allows allocating an entire descriptor
> > +          list within a page (zero order allocation). */
> > +       mmc->max_segs = 64;
> >
> >         mmc->max_blk_size = 512;       /* Block Length at max can be 1024 */
> >         mmc->max_blk_count = 0xFFFF;    /* No. of Blocks is 16 bits */
> > --
> > 2.7.4
> >
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2017-06-21  6:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20170619093644.16054-1-willn@resin.io>
2017-06-20 12:39 ` [PATCH] omap_hsmmc: Reduce max_segs Will Newton
2017-06-21  6:24   ` Tony Lindgren [this message]
2017-06-21  8:18     ` Will Newton
2017-06-21  8:32       ` Tony Lindgren
2017-06-21  9:16         ` Ravikumar
2017-06-21 15:09           ` Will Newton
2017-06-22  5:41             ` Ravikumar
2017-06-22  6:27               ` Kishon Vijay Abraham I

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=20170621062427.GP3730@atomide.com \
    --to=tony@atomide.com \
    --cc=kishon@ti.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=peter.ujfalusi@ti.com \
    --cc=rk@ti.com \
    --cc=will.newton@gmail.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