From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/7 v6] ARM: l2c: parse 'cache-size' and 'cache-sets' properties
Date: Mon, 08 Sep 2014 14:20:21 +0200 [thread overview]
Message-ID: <4685530.jbNLD4yaA8@wuerfel> (raw)
In-Reply-To: <1410176286-32533-6-git-send-email-linus.walleij@linaro.org>
On Monday 08 September 2014 13:38:04 Linus Walleij wrote:
> + of_property_read_u32(np, "cache-size", &size);
> + of_property_read_u32(np, "cache-sets", &sets);
> +
> + if (!size || !sets)
> + return;
> +
> + way_size = size / sets;
Going back to this one: Isn't (size / sets) the set-size rather
than the way-size?
After we discussed this on IRC, I had expected a calculation like
set_size = size / sets;
ways = set_size / line_size;
way_size = size / ways;
Arnd
next prev parent reply other threads:[~2014-09-08 12:20 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-08 11:37 [PATCH 0/7] ARM RealView DeviceTree support v6 Linus Walleij
2014-09-08 11:38 ` [PATCH 1/7 v6] leds: add a driver for syscon-based LEDs Linus Walleij
2014-09-12 8:56 ` Linus Walleij
2014-09-18 22:39 ` Linus Walleij
2015-01-13 20:19 ` Bryan Wu
2014-09-08 11:38 ` [PATCH 2/7 v6] leds: add device tree bindings for register bit LEDs Linus Walleij
2014-09-08 11:38 ` [PATCH 3/7 v6] power: reset: driver for the Versatile syscon reboot Linus Walleij
2014-09-12 8:55 ` Linus Walleij
2014-09-15 16:06 ` Sebastian Reichel
2014-09-08 11:38 ` [PATCH 4/7 v6] soc: add driver for the ARM RealView Linus Walleij
2014-09-08 11:38 ` [PATCH 5/7 v6] ARM: l2c: parse 'cache-size' and 'cache-sets' properties Linus Walleij
2014-09-08 12:20 ` Arnd Bergmann [this message]
2014-09-08 12:36 ` Linus Walleij
2014-09-08 13:16 ` Arnd Bergmann
2014-09-08 20:33 ` Florian Fainelli
2014-09-08 20:41 ` Arnd Bergmann
2014-09-09 7:14 ` Linus Walleij
2014-09-08 19:57 ` Florian Fainelli
2014-09-08 11:38 ` [PATCH 6/7 v6] ARM: l2x0: calculate associativity from ePAPR cache props Linus Walleij
2014-09-08 12:15 ` Arnd Bergmann
2014-09-08 12:43 ` Linus Walleij
2014-09-08 13:18 ` Arnd Bergmann
2014-09-08 11:38 ` [PATCH 7/7 v6] ARM: realview: basic device tree implementation Linus Walleij
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=4685530.jbNLD4yaA8@wuerfel \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.org \
/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