Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1625755
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | "Rafael J. Wysocki" <rafael@kernel.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] ACPI: emits change uevents to all physical companion devices of container's children |
| Date | Wed, 19 Apr 2017 02:40:02 +0200 |
| Message-ID | <txLP4-4F9-9@gated-at.bofh.it> (permalink) |
| References | <tscyB-nv-3@gated-at.bofh.it> |
| X-Original-To | "Lee, Chun-Yi" <joeyli.kernel@gmail.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=GR++2g1ytJR9+IzSXusTE9juIKRF0SepsyjH9pymNF8=; b=AMtdpXr/9z/FJ+aJ4SoxypBVFTFYOdhDbCA8OuPK89UPIHr5DG1vesDkJkX9Z19ECR XZXj1+NDFUaTEYQGt4Isx/ERUeXL94Rg0wROx40cQ/kG0HSD68IpQzErdFC/lGf+yfpM ghVeNs3aWRDjWXYXSsoPPGK3cVTy3leSLuJWY5rAaha3+FMjd9v+EGHMTSrG/3yr+DUb zBNfvvqx0xgqzvMFZOJItvSW9z56yrYHdiB7q2bnr2ER3+bOXhh9ho2/tZwxvEcZz4Bw 8KLoz4z4xYPQvfOF5HLUGoL1iHl88WBB0TW8oDA/Zalpfa5W3CdBfKViIbiy/697qZ3P qrvw== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=GR++2g1ytJR9+IzSXusTE9juIKRF0SepsyjH9pymNF8=; b=OAMRev27bik6ivXVgh5WGAm5Ml7WUyN6PKEjaIkz43vaMCD6eVnDa2uUtFQjn+uaoJ bx2n1EcYjpNmYh8nULZZ0W2S7mQ8tJ6jEjWtjnHHv972q1iBXszG6rxnX2a93ediNfDp 6kDYFLJIPomV+U3Bh689+g7OhmV7I0qgf8JxaL73YI7A6cS4dEt2Y9BvBJx/N8ADA5Eg JRJW5OOxiVOE8T/gqFz34/BlUaIQF/m4U+Xp6q6A33Lk3pUnz8OBn94TZ9DaPQ+qfXK1 thyvdp6GIec/ou/XyRXsJUBKz/0w46EZFVQNCEXXtrwQ13qbRzbwPla/xpcN9ZRxNyAH 1fVw== |
| X-Gm-Message-State | AN3rC/68HJA2E3tP2te8goJfA0SwTL7TsDl+gJbHt6VBAqFiDrdhNT+o hCMijwS0WcP5nhjh2IVTPLHdtZlZ7g== |
| X-Received | by 10.202.4.139 with SMTP id 133mr76752oie.51.1492561819060; Tue, 18 Apr 2017 17:30:19 -0700 (PDT) |
| MIME-Version | 1.0 |
| X-Google-Sender-Auth | 7MKoojRbXZVDdM13nReo4OlO_tM |
| Content-Type | text/plain; charset=UTF-8 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 35 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | "Rafael J . Wysocki" <rjw@rjwysocki.net>, Len Brown <lenb@kernel.org>, ACPI Devel Maling List <linux-acpi@vger.kernel.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, "Lee, Chun-Yi" <jlee@suse.com>, Michal Hocko <mhocko@suse.com>, Jiri Kosina <jkosina@suse.cz> |
| X-Original-Date | Wed, 19 Apr 2017 02:30:18 +0200 |
| X-Original-Message-ID | <CAJZ5v0je_2gk_M7B1PBnvFVtoaiAxm59c2PBWQootZ13eY6tkQ@mail.gmail.com> |
| X-Original-References | <20170403155533.30283-1-jlee@suse.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1625755 |
Show key headers only | View raw
On Mon, Apr 3, 2017 at 5:55 PM, Lee, Chun-Yi <joeyli.kernel@gmail.com> wrote: > The caa73ea1 patch, "ACPI / hotplug / driver core: Handle containers > in a special way", introduced the offline callback of acpi container. > In the patch description, it mentions: > > For ACPI containers that callback simply walks the list of ACPI > device objects right below the container object (its children) and > checks if all of their physical companion devices are offline. If > that's not the case, it returns -EBUSY and the container system > devivce cannot be put offline. Consequently, to put the container > system device offline, it is necessary to put all of the physical > devices depending on its ACPI companion object offline beforehand. > > Looks that it means acpi_container_offline() should walks all physical > companion devices of container's children and checks their offline > state. And, the comment in source code is "Check all of the dependent > devices' physical companions", which means it should checks _all_ > physical companions. > > But, the checking code just stops at the first not-offlined physical > companion device of the first not-offlined child, then kernel only > emits KOBJ_CHANGE uevent to the one device. It doesn't really walk > all children's all physical companion devices and doesn't send change > uevent to them. It is unclear to me from the description whether or not this is a practical issue. Also there is an alternative, which is not to send KOBJ_CHANGE uevents to any children at all. Why is the approach you chose better? Thanks, Rafael
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH] ACPI: emits change uevents to all physical companion devices of container's children "Rafael J. Wysocki" <rafael@kernel.org> - 2017-04-19 02:40 +0200 Re: [PATCH] ACPI: emits change uevents to all physical companion devices of container's children joeyli <jlee@suse.com> - 2017-04-19 11:00 +0200
csiph-web