From: Shameerali Kolothum Thodi <shameerali.kolothum.thodi@huawei.com> To: Sami Mujawar <Sami.Mujawar@arm.com>, "david.e.box@linux.intel.com" <david.e.box@linux.intel.com>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>, "linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>, "iommu@lists.linux-foundation.org" <iommu@lists.linux-foundation.org>, "devel@acpica.org" <devel@acpica.org> Cc: Linuxarm <linuxarm@huawei.com>, Lorenzo Pieralisi <Lorenzo.Pieralisi@arm.com>, "joro@8bytes.org" <joro@8bytes.org>, "Robin Murphy" <Robin.Murphy@arm.com>, wanghuiqiang <wanghuiqiang@huawei.com>, Jonathan Cameron <jonathan.cameron@huawei.com>, nd <nd@arm.com> Subject: RE: [Devel] Re: [RFC PATCH 2/4] ACPI/IORT: Add support for RMR node parsing Date: Thu, 19 Nov 2020 12:07:07 +0000 Message-ID: <735edb5c4da842609c1d2a0eed73b06c@huawei.com> (raw) In-Reply-To: <DB7PR08MB3097062CEEDB4635BF3F694784EA0@DB7PR08MB3097.eurprd08.prod.outlook.com> > -----Original Message----- > From: Sami Mujawar [mailto:Sami.Mujawar@arm.com] > Sent: 09 November 2020 12:30 > To: david.e.box@linux.intel.com; Shameerali Kolothum Thodi > <shameerali.kolothum.thodi@huawei.com>; > linux-arm-kernel@lists.infradead.org; linux-acpi@vger.kernel.org; > iommu@lists.linux-foundation.org; devel@acpica.org > Cc: Linuxarm <linuxarm@huawei.com>; Lorenzo Pieralisi > <Lorenzo.Pieralisi@arm.com>; joro@8bytes.org; Robin Murphy > <Robin.Murphy@arm.com>; wanghuiqiang <wanghuiqiang@huawei.com>; > Jonathan Cameron <jonathan.cameron@huawei.com>; nd <nd@arm.com> > Subject: RE: [Devel] Re: [RFC PATCH 2/4] ACPI/IORT: Add support for RMR node > parsing > > Hi, > > -----Original Message----- > From: David E. Box <david.e.box@linux.intel.com> > Sent: 28 October 2020 06:44 PM > To: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>; > linux-arm-kernel@lists.infradead.org; linux-acpi@vger.kernel.org; > iommu@lists.linux-foundation.org; devel@acpica.org > Cc: linuxarm@huawei.com; Lorenzo Pieralisi <Lorenzo.Pieralisi@arm.com>; > joro@8bytes.org; Robin Murphy <Robin.Murphy@arm.com>; > wanghuiqiang@huawei.com; jonathan.cameron@huawei.com > Subject: [Devel] Re: [RFC PATCH 2/4] ACPI/IORT: Add support for RMR node > parsing > > Hi, > > On Tue, 2020-10-27 at 11:26 +0000, Shameer Kolothum wrote: > > ... > > > @@ -1647,6 +1667,100 @@ static void __init iort_enable_acs(struct > > acpi_iort_node *iort_node) > > #else > > static inline void iort_enable_acs(struct acpi_iort_node *iort_node) > > { } > > #endif > > +static int iort_rmr_desc_valid(struct acpi_iort_rmr_desc *desc) > > +{ > > + struct iort_rmr_entry *e; > > + u64 end, start = desc->base_address, length = desc->length; > > + > > + if ((!IS_ALIGNED(start, SZ_64K)) || (length % SZ_64K != 0)) > > You could just do: > > if ((!IS_ALIGNED(start, SZ_64K)) || (length % SZ_64K)) > > [SAMI] In my opinion, the following may be better: > if (!IS_ALIGNED(start, SZ_64K) || !IS_ALIGNED(length, SZ_64K)) > [/SAMI] Thanks for your suggestions. I don't have a strong opinion on either of those, but will change it with the latter one for now. Thanks, Shameer > Regards, > > Sami Mujawar > > David > _______________________________________________ > Devel mailing list -- devel@acpica.org > To unsubscribe send an email to devel-leave@acpica.org > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
next prev parent reply index Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-10-27 11:26 [RFC PATCH 0/4] ACPI/IORT: Support for IORT RMR node Shameer Kolothum 2020-10-27 11:26 ` [RFC PATCH 1/4] ACPICA: IORT: Update for revision E Shameer Kolothum [not found] ` <BYAPR11MB3256AFF743B4FCC400F4181C87160@BYAPR11MB3256.namprd11.prod.outlook.com> [not found] ` <610c14ef56d64fe087ca52aede07d811@huawei.com> [not found] ` <MWHPR11MB1599988D7C857E3AFFA4A48AF0170@MWHPR11MB1599.namprd11.prod.outlook.com> 2020-10-28 18:40 ` [Devel] " Shameerali Kolothum Thodi 2020-10-27 11:26 ` [RFC PATCH 2/4] ACPI/IORT: Add support for RMR node parsing Shameer Kolothum 2020-10-28 18:43 ` [Devel] " David E. Box 2020-11-09 12:29 ` [Devel] " Sami Mujawar 2020-11-19 12:07 ` Shameerali Kolothum Thodi [this message] 2020-10-27 11:26 ` [RFC PATCH 3/4] ACPI/IORT: Add RMR memory regions reservation helper Shameer Kolothum 2020-11-05 18:03 ` Robin Murphy 2020-11-06 8:30 ` Shameerali Kolothum Thodi 2020-11-06 13:06 ` Robin Murphy 2020-11-06 16:00 ` Shameerali Kolothum Thodi 2020-10-27 11:26 ` [RFC PATCH 4/4] iommu/dma: Reserve any RMR regions associated with a dev Shameer Kolothum 2020-10-28 16:43 ` [RFC PATCH 0/4] ACPI/IORT: Support for IORT RMR node Steven Price 2020-10-28 18:24 ` Shameerali Kolothum Thodi 2020-11-06 15:22 ` Steven Price 2020-11-06 16:17 ` Shameerali Kolothum Thodi 2020-11-06 16:26 ` Steven Price 2020-11-06 17:09 ` Robin Murphy
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=735edb5c4da842609c1d2a0eed73b06c@huawei.com \ --to=shameerali.kolothum.thodi@huawei.com \ --cc=Lorenzo.Pieralisi@arm.com \ --cc=Robin.Murphy@arm.com \ --cc=Sami.Mujawar@arm.com \ --cc=david.e.box@linux.intel.com \ --cc=devel@acpica.org \ --cc=iommu@lists.linux-foundation.org \ --cc=jonathan.cameron@huawei.com \ --cc=joro@8bytes.org \ --cc=linux-acpi@vger.kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linuxarm@huawei.com \ --cc=nd@arm.com \ --cc=wanghuiqiang@huawei.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
Linux-ACPI Archive on lore.kernel.org Archives are clonable: git clone --mirror https://lore.kernel.org/linux-acpi/0 linux-acpi/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 linux-acpi linux-acpi/ https://lore.kernel.org/linux-acpi \ linux-acpi@vger.kernel.org public-inbox-index linux-acpi Example config snippet for mirrors Newsgroup available over NNTP: nntp://nntp.lore.kernel.org/org.kernel.vger.linux-acpi AGPL code for this site: git clone https://public-inbox.org/public-inbox.git