public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: James Hogan <james.hogan@imgtec.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Ralf Baechle <ralf@linux-mips.org>, <linux-mips@linux-mips.org>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3 2/3] MIPS: Add CDMM bus support
Date: Thu, 26 Mar 2015 09:24:07 +0000	[thread overview]
Message-ID: <5513D037.40003@imgtec.com> (raw)
In-Reply-To: <20150325220339.GC10513@kroah.com>

[-- Attachment #1: Type: text/plain, Size: 2909 bytes --]

On 25/03/15 22:03, Greg Kroah-Hartman wrote:
> On Wed, Mar 25, 2015 at 03:39:50PM +0000, James Hogan wrote:
>> Add MIPS Common Device Memory Map (CDMM) support in the form of a bus in
>> the standard Linux device model. Each device attached via CDMM is
>> discoverable via an 8-bit type identifier and may contain a number of
>> blocks of memory mapped registers in the CDMM region. IRQs are expected
>> to be handled separately.
>>
>> Due to the per-cpu (per-VPE for MT cores) nature of the CDMM devices,
>> all the driver callbacks take place from workqueues which are run on the
>> right CPU for the device in question, so that the driver doesn't need to
>> be as concerned about which CPU it is running on. Callbacks also exist
>> for when CPUs are taken offline, so that any per-CPU resources used by
>> the driver can be disabled so they don't get forcefully migrated. CDMM
>> devices are created as children of the CPU device they are attached to.
>>
>> Any existing CDMM configuration by the bootloader will be inherited,
>> however platforms wishing to enable CDMM should implement the weak
>> mips_cdmm_phys_base() function (see asm/cdmm.h) so that the bus driver
>> knows where it should put the CDMM region in the physical address space
>> if the bootloader hasn't already enabled it.
>>
>> A mips_cdmm_early_probe() function is also provided to allow early boot
>> or particularly low level code to set up the CDMM region and probe for a
>> specific device type, for example early console or KGDB IO drivers for
>> the EJTAG Fast Debug Channel (FDC) CDMM device.
>>
>> Signed-off-by: James Hogan <james.hogan@imgtec.com>
>> Cc: Ralf Baechle <ralf@linux-mips.org>
>> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>> Cc: linux-mips@linux-mips.org
>> ---
>> Changes in v3:
>> - Convert to use dev_groups rather than dev_attrs (GregKH).
>> - Rename mips_cdmm_attr_func() macro to CDMM_ATTR for consistency with
>>   other similar macro names I've seen around the kernel.
>> - Add modalias attribute.
>>
>> Changes in v2:
>> - Fix some checkpatch errors.
>> - Correct CDMM name in various places. It is "Common Device Memory Map",
>>   rather than "Common Device Mapped Memory" (which for some reason had
>>   got stuck in my head).
>> ---
>>  arch/mips/include/asm/cdmm.h      |  87 +++++
>>  drivers/bus/Kconfig               |  13 +
>>  drivers/bus/Makefile              |   1 +
>>  drivers/bus/mips_cdmm.c           | 716 ++++++++++++++++++++++++++++++++++++++
>>  include/linux/mod_devicetable.h   |   8 +
>>  scripts/mod/devicetable-offsets.c |   3 +
>>  scripts/mod/file2alias.c          |  16 +
>>  7 files changed, 844 insertions(+)
>>  create mode 100644 arch/mips/include/asm/cdmm.h
>>  create mode 100644 drivers/bus/mips_cdmm.c
> 
> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Thanks Greg!

Cheers
James


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2015-03-26  9:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-02 11:45 [PATCH v2 0/3] Add MIPS CDMM bus support James Hogan
2015-02-02 11:45 ` [PATCH v2 1/3] MIPS: Add arch CDMM definitions and probing James Hogan
2015-02-02 11:45 ` [PATCH v2 2/3] MIPS: Add CDMM bus support James Hogan
2015-03-25 12:37   ` Greg Kroah-Hartman
2015-03-25 15:11     ` James Hogan
2015-03-25 15:39     ` [PATCH v3 " James Hogan
2015-03-25 22:03       ` Greg Kroah-Hartman
2015-03-26  9:24         ` James Hogan [this message]
2015-02-02 11:45 ` [PATCH v2 3/3] MIPS: Malta: Implement mips_cdmm_phys_base() James Hogan
2015-02-25 11:02 ` [PATCH v2 0/3] Add MIPS CDMM bus support James Hogan

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=5513D037.40003@imgtec.com \
    --to=james.hogan@imgtec.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.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