lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHp75Vf7+UN=GXbEa_jce-kGbBtc1Bg7GTz9ancmyprwLOQdsQ@mail.gmail.com>
Date:   Thu, 1 Mar 2018 16:20:15 +0200
From:   Andy Shevchenko <andy.shevchenko@...il.com>
To:     Ivan Gorinov <ivan.gorinov@...el.com>
Cc:     Thomas Gleixner <tglx@...utronix.de>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        Ingo Molnar <mingo@...hat.com>
Subject: Re: [PATCH v2 2/3] x86: devicetree: enable multiprocessing in DT

On Thu, Mar 1, 2018 at 4:45 AM, Ivan Gorinov <ivan.gorinov@...el.com> wrote:
> Adding code to register processors described in Device Tree.
> APIC ID is specified in 'intel-apic_id' propery as used in U-Boot.
> First address specified in 'reg' is used as default APIC ID.

> +       version = GET_APIC_VERSION(apic_read(APIC_LVR));
> +       for_each_node_by_type(dn, "cpu") {
> +               prop = of_get_property(dn, "intel,apic-id", NULL);
> +               if (prop) {
> +                       apic_id = be32_to_cpup(prop);
> +               } else {
> +                       ret = of_address_to_resource(dn, 0, &r);

> +                       if (WARN_ON(ret))

Wouldn't be too much?

Options:
- add _ONCE
- convert to plain pr_warn()

> +                               continue;
> +                       apic_id = r.start;
> +               }
> +               generic_processor_info(apic_id, version);
> +       }


-- 
With Best Regards,
Andy Shevchenko

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ