Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1442854

Re: [PATCH V8 4/9] vfio: platform: add support for ACPI probe

From Sinan Kaya <okaya@codeaurora.org>
Newsgroups linux.kernel
Subject Re: [PATCH V8 4/9] vfio: platform: add support for ACPI probe
Date 2016-07-13 23:10 +0200
Message-ID <rUzzP-8ue-15@gated-at.bofh.it> (permalink)
References <rM9Me-1Iv-11@gated-at.bofh.it> <rM9Me-1Iv-21@gated-at.bofh.it> <rNhHI-5Aq-31@gated-at.bofh.it> <rUyaJ-7qt-13@gated-at.bofh.it> <rUyNs-7VU-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 7/13/2016 4:09 PM, Alex Williamson wrote:
>> et me explain the rationale.
>> > 
>> > As you know, there can be two kernel build combinations. One build where 
>> > ACPI is not selected in Kconfig and another one with the ACPI Kconfig.
>> > 
>> > In the first case, CONFIG_ACPI is stubbed out in this file and DT user
>> > will not see any kind of messages from ACPI. 
>> > 
>> > In the second case, both DT and ACPI is compiled in but the system is booting with
>> > any of these combinations. 
>> > 
>> > If the firmware is DT type, then acpi_disabled is 1. The ACPI probe routine
>> > terminates immediately without any messages. 
>> > 
>> > If the firmware is ACPI type, then acpi_disabled is 0. All other checks are valid
>> > checks. We cannot claim that this system is DT.
> 
> Thanks, this sort of information and assumption should be documented in
> a comment since not all of us care whether a DT device can appear in an
> ACPI config or not.  Also note that acpi_disabled and ACPI_COMPANION
> are defined regardless of CONFIG_ACPI, so really we only need to wrap
> acpi_device_hid() in an #ifdef, we could skip the separate stub.
> Thanks,

Sure, I'll add the sentences above as a comment to top of the probe function.

I also got rid of stub vfio_platform_acpi_probe function and moved CONFIG_ACPI
inside the vfio_platform_acpi_probe function as you suggested.

-- 
Sinan Kaya
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: [PATCH V8 4/9] vfio: platform: add support for ACPI probe Sinan Kaya <okaya@codeaurora.org> - 2016-07-13 21:40 +0200
  Re: [PATCH V8 4/9] vfio: platform: add support for ACPI probe Alex Williamson <alex.williamson@redhat.com> - 2016-07-13 22:20 +0200
    Re: [PATCH V8 4/9] vfio: platform: add support for ACPI probe Sinan Kaya <okaya@codeaurora.org> - 2016-07-13 23:10 +0200

csiph-web