From: Evan Lloyd <Evan.Lloyd@arm.com>
To: Ard Biesheuvel <ard.biesheuvel@linaro.org>,
Sami Mujawar <Sami.Mujawar@arm.com>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
"Zeng, Star" <star.zeng@intel.com>,
Eric Dong <eric.dong@intel.com>, Ruiyu Ni <ruiyu.ni@intel.com>,
Leif Lindholm <leif.lindholm@linaro.org>,
Matteo Carlini <Matteo.Carlini@arm.com>,
Stephanie Hughes-Fitt <Stephanie.Hughes-Fitt@arm.com>,
Thomas Abraham <thomas.abraham@arm.com>, nd <nd@arm.com>
Subject: Re: [PATCH v2] MdeModulePkg: Enable SATA Controller PCI mem space
Date: Fri, 15 Jun 2018 15:26:54 +0000 [thread overview]
Message-ID: <DB6PR08MB28065BBDAE2B4BB08B39B1948B7C0@DB6PR08MB2806.eurprd08.prod.outlook.com> (raw)
In-Reply-To: <CAKv+Gu8FeXDa4vEJAPbcHFzT2tai7xnBuRaJptOp1uPJObQgQw@mail.gmail.com>
Hi Ard, Zeng
> -----Original Message-----
> From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> Sent: 15 June 2018 15:17
> To: Sami Mujawar <Sami.Mujawar@arm.com>
> Cc: edk2-devel@lists.01.org; Zeng, Star <star.zeng@intel.com>; Eric Dong
> <eric.dong@intel.com>; Ruiyu Ni <ruiyu.ni@intel.com>; Leif Lindholm
> <leif.lindholm@linaro.org>; Matteo Carlini <Matteo.Carlini@arm.com>;
> Stephanie Hughes-Fitt <Stephanie.Hughes-Fitt@arm.com>; Evan Lloyd
> <Evan.Lloyd@arm.com>; Thomas Abraham <thomas.abraham@arm.com>;
> nd <nd@arm.com>
> Subject: Re: [PATCH v2] MdeModulePkg: Enable SATA Controller PCI mem
> space
>
> On 15 June 2018 at 16:13, Sami Mujawar <sami.mujawar@arm.com> wrote:
> > The SATA controller driver crashes while accessing the PCI memory
> > [AHCI Base Registers (ABAR)], as the PCI memory space is not enabled.
> >
> > Enable the PCI memory space access to prevent the SATA Controller
> > driver from crashing.
> >
> > Contributed-under: TianoCore Contribution Agreement 1.1
> > Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
> > ---
> > The changes can be viewed at
> >
> https://github.com/samimujawar/edk2/tree/284_sata_controler_pci_mem_f
> i
> > x_v2
> >
> > Notes:
> > v2:
> > - Improved log message and code documentation based on feedback
> [SAMI]
> > - Enable IO space, suggestion to use EFI_PCI_DEVICE_ENABLE [ZENG]
> > - This SATA Controller driver only uses the PCI BAR5 register
> > space which is the AHCI Base Address (ABAR). According to the
> > 'Serial ATA Advanced Host Controller Interface (AHCI) 1.3.1'
> > specification, section 2.1.11, 'This register allocates space
> > for the HBA memory registers'.
> > The section 2.1.10, allows provision for Optional BARs which
> > may support either memory or I/O spaces. However, in the context
> > of the current SATA controller driver, which only ever access
> > the ABAR, enabling I/O memory space is not required. [SAMI]
> > - Prefer to use // surrounding comments [ZENG]
> > - Doing this would violate the edk2 coding standard. See EDK2
> > Coding Standard Specification, revision 2.20, section 6.2.3. [SAMI]
> >
>
> Please stop obsessing about the coding standard. The maintainer was quite
> clear what he wanted, and in the past, I have also indicated that for the ARM
> related packages, I prefer readability and consistency over adherence to a
> dubious standard.
[[Evan Lloyd]] I'd like to make some points here:
1. It is perfectly reasonable for Sami to explain why he has done something a certain way - Zeng is then at liberty to respond with his preference, but we do not (yet) know what that might be.
2. "readability and consistency" is the very purpose of any coding standard. If consistency is valuable, doesn't that apply across modules? I understand that it may be particularly valuable for maintainers within their modules, but the rest of us benefit from a consistent style - especially when looking outside our normal demesne.
3. Applying a consistent Coding Standard across the whole project is a necessary pre-condition for automated CI checks on new submissions. I'd like to aim e.g. for an improved patchcheck.py, but that requires consistency across modules, at least for new code.
Note: I am not disputing the dubiosity of the CCS. It could be improved (a lot). However it is all we have right now.
Regards,
Evan
>
>
> > v1:
> > - Fix SATA Controller driver crash [SAMI]
...
> > --
> > 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'
> >
> >
next prev parent reply other threads:[~2018-06-15 15:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-15 14:13 [PATCH v2] MdeModulePkg: Enable SATA Controller PCI mem space Sami Mujawar
2018-06-15 14:16 ` Ard Biesheuvel
2018-06-15 15:26 ` Evan Lloyd [this message]
2018-06-15 15:56 ` Ard Biesheuvel
2018-06-15 16:13 ` Leif Lindholm
2018-06-19 2:21 ` Zeng, Star
2018-06-18 15:51 ` Laszlo Ersek
2018-06-18 17:19 ` Evan Lloyd
2018-06-19 2:21 ` Zeng, Star
2018-06-19 9:30 ` Sami Mujawar
2018-06-19 2:26 ` Zeng, Star
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-list 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=DB6PR08MB28065BBDAE2B4BB08B39B1948B7C0@DB6PR08MB2806.eurprd08.prod.outlook.com \
--to=devel@edk2.groups.io \
/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