lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Tue,  7 Apr 2015 12:31:05 +0800
From:	Jiang Liu <jiang.liu@...ux.intel.com>
To:	"Rafael J . Wysocki" <rjw@...ysocki.net>,
	Bjorn Helgaas <bhelgaas@...gle.com>
Cc:	Jiang Liu <jiang.liu@...ux.intel.com>,
	Lv Zheng <lv.zheng@...el.com>,
	LKML <linux-kernel@...r.kernel.org>, linux-pci@...r.kernel.org,
	linux-acpi@...r.kernel.org, "x86 @ kernel . org" <x86@...nel.org>
Subject: [RFC 0/7] Consolidate common ACPI PCI host bridge code into ACPI core

As suggested by Bjorn, this patch set consolidates common ACPI PCI host
bridge code from x86 and IA64 into ACPI core. It may also help to
support ACPI PCI host bridge on ARM64 platfrom too in future.

It introduces struct acpi_pci_root_ops and acpi_pci_root_create().
Arch code only needs to implement struct acpi_pci_root_ops and then
invoke acpi_pci_root_create() to parse ACPI resources and create
PCI root bus.
struct acpi_pci_root_info_common {
        struct pci_controller           controller;
        struct acpi_pci_root            *root;
        struct acpi_device              *bridge;
        struct acpi_pci_root_ops        *ops;
        struct list_head                resources;
        char                            name[16];
};
struct acpi_pci_root_ops {
	struct pci_ops *pci_ops;
	int (*init_info)(struct acpi_pci_root_info_common *info);
	void (*release_info)(struct acpi_pci_root_info_common *info);
	int (*prepare_resources)(struct acpi_pci_root_info_common *info,
				 int status);
};
extern struct pci_bus *acpi_pci_root_create(struct acpi_pci_root *root,
					    struct acpi_pci_root_ops *ops,
					    size_t extra_size);
It passes Fengguang's 0day test suite and has been tested on 
1) An Intel x86 4 socket platform
2) An Intel IA64 SDV
3) An HP IA64 platform

And you may access it at:
https://github.com/jiangliu/linux.git acpi_pci_root_v1

Thanks!
Gerry

Jiang Liu (7):
  ACPI/PCI: Enhance ACPI core to support sparse IO space
  ia64/PCI/ACPI: Use common ACPI resource parsing interface for host
    bridge
  ia64/PCI: Use common struct resource_entry to replace struct
    iospace_resource
  x86/PCI: Rename struct pci_sysdata as struct pci_controller
  PCI/ACPI: Consolidate common PCI host bridge code into ACPI core
  x86/PCI/ACPI: Use common interface to support PCI host bridge
  ia64/PCI/ACPI: Use common interface to support PCI host bridge

 arch/ia64/include/asm/pci.h   |    5 -
 arch/ia64/pci/pci.c           |  360 ++++++++++-------------------------------
 arch/x86/include/asm/pci.h    |   12 +-
 arch/x86/include/asm/pci_64.h |    4 +-
 arch/x86/pci/acpi.c           |  283 +++++++++-----------------------
 arch/x86/pci/common.c         |    2 +-
 drivers/acpi/pci_root.c       |  215 ++++++++++++++++++++++++
 drivers/acpi/resource.c       |    9 +-
 include/linux/ioport.h        |    1 +
 include/linux/pci-acpi.h      |   24 +++
 10 files changed, 409 insertions(+), 506 deletions(-)

-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ