Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6047110yba; Tue, 14 May 2019 00:18:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwCfZGnv2WIptV539RGD0/fLbDMIlHL0NWWQv/QskPefAUipeDKuVZAX2yylQuXvEidi0eB X-Received: by 2002:a65:4243:: with SMTP id d3mr25576649pgq.57.1557818329750; Tue, 14 May 2019 00:18:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557818329; cv=none; d=google.com; s=arc-20160816; b=qxijPE9F7luLKuoFOjmwp8PPQp436GbwnyqdRHgWudTih7Cq5HWCceh9tLs9wWB24R MGs8D8fTgreGlheGsRKaWa1/ax9yKKKUBhCs1i+SDRd9SwivJ8UcVkgWYFJfYijP0sWg xko/Ds/pUzkCiuyArnzGlawGPEHmEw/OUcF+WgBo2Pd4dc2J0HNG2Wpqx1ei2I/utQbf czkRwrXWeFi8pqxAXG0l9NBC19TI8qMHMGe7fJwXfmZ7U9jq+myXWAhWJ/sm83CwIINC my5X8G7ysL45sSF1G/TEEzDqYuBZiySUcOYo1oNnqZNumJeO+LPAl59ZXc4iS/dXt1nr 1OpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=Yp0fJxub6ZjKZY0jtIHu8KIkPHhsLNLtdfrqfrKo7/o=; b=DAM3wep085AHKLTaX9hY1yMYdHyAloJ7YGSazgh3BA0y1ty07cKY0siYWtxm+6I3Og uo6o288gBEu8n7ZRuK112rVfMI5DZoBExsjTkc4GwwmGIyOyuzxbqgWBMmbv5rHDccG5 qn1r2hUqNSsrdNHzRTKsQyOu1xzzUh1u7TaCggZjZchGhtNvJifXXG7xqNwGtYrgqRcC MkLoemR1hmqYp/sn+nbiCGUequM1vOaCyWDxOgerOKLDx7vQnd1KDvF+KtPITILTfXeE 4obuBhWFHcfn/ClT8l9x+zLAvBN8UKcduol9/9OsAoxMqyHYooQ9mNHZV1yf4U8DEP6t zkEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si19053809pge.550.2019.05.14.00.18.34; Tue, 14 May 2019 00:18:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726622AbfENHQQ (ORCPT + 99 others); Tue, 14 May 2019 03:16:16 -0400 Received: from mail-vs1-f67.google.com ([209.85.217.67]:43994 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726218AbfENHQQ (ORCPT ); Tue, 14 May 2019 03:16:16 -0400 Received: by mail-vs1-f67.google.com with SMTP id d128so9633060vsc.10; Tue, 14 May 2019 00:16:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Yp0fJxub6ZjKZY0jtIHu8KIkPHhsLNLtdfrqfrKo7/o=; b=PnRrrvyZN4sxJnSz77QMiPa/5s93YWvQRg3E+l1dbNlo7qmqHnVKZwKVy5L8ZxnaPq 1aBAA6CNnKv0p/r3b7zpJT7iYgqqPappVpDqLD5dNgTS1EEyn/ieayxTLX+mU47XggvE dIPTF83rguG+HtG3KFAID0digI0FV9dE2zxOt3+2No1B6dILy6mpQmApuCrWS39vHxkN xoFq0Kcyz8+2WK24O4wMLXQJ/gQwG/5xA0v70L+Zl0raiLzAN7lp3kR+1E+p5GZ8rMin 6rS6SXL3AxkAzAyFy9DkL99oNGIUU9omwXWR8hNlWYpicyoJFSJI/jiALYeJ583HslBy Ah9Q== X-Gm-Message-State: APjAAAX9gd0xZ3raIP/3jxiTBiJJiLrTHu+RadUkYTdx9BBGHPNAf2cd LZiQz5LslnC+bbDjrZv5u0XCDa8zL1ZbZCMw7Gg= X-Received: by 2002:a67:7c93:: with SMTP id x141mr8341728vsc.96.1557818175047; Tue, 14 May 2019 00:16:15 -0700 (PDT) MIME-Version: 1.0 References: <1557505377-28577-1-git-send-email-olekstysh@gmail.com> <25f5f60e-46ff-18af-2a65-1e3f6719ef49@gmail.com> In-Reply-To: <25f5f60e-46ff-18af-2a65-1e3f6719ef49@gmail.com> From: Geert Uytterhoeven Date: Tue, 14 May 2019 09:16:03 +0200 Message-ID: Subject: Re: [RFC PATCH] ARM: mach-shmobile: Parse DT to get ARCH timer memory region To: Oleksandr Cc: Julien Grall , Linux-Renesas , Linux Kernel Mailing List , Simon Horman , Magnus Damm , Russell King , Oleksandr Tyshchenko Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Oleksandr, On Mon, May 13, 2019 at 6:00 PM Oleksandr wrote: > On 13.05.19 18:13, Geert Uytterhoeven wrote: > >> So, if the DT bindings for the counter module is not an option (if I > >> correctly understood a discussion pointed by Geert in another letter), > >> we should probably prevent all timer code here from being executed if > >> PSCI is in use. > >> What I mean is to return to [2], but with the modification to use > >> psci_smp_available() helper as an indicator of PSCI usage. > >> > >> Julien, Geert, what do you think? > > Yes, that sounds good to me. > > > > Note that psci_smp_available() seems to return false if CONFIG_SMP=n, > > so checking for that is not sufficient to avoid crashes when running a > > uniprocessor kernel on a PSCI-enabled system. > > Indeed, you are right. > > > Nothing than just check for psci_ops.cpu_on == NULL directly comes to > mind... > > Have already checked with CONFIG_SMP=n, it works. > > Sounds ok? Fine for me, thanks! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds