[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 12/17] xen/arm: Add support for Xilinx ZynqMP PCI host controller


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Rahul Singh <rahul.singh@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 30 Sep 2021 09:48:13 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=X7HAhWs+o1SPKsixdaXKwcMz49MgaVt+tkC+p8wyH7Y=; b=dG9dwnOFgAkgj6voJQCY3AXnQbuBm3n5fEhDb7A0rbj/J1nK2ftjduHaP5jyVmhwkSszMK/f2O1+s2K9L+JfXpm8rxxhhwTKBPO+3AJUaAzLCmmH83qKO5KyXVqAIl3ER8VIhpyW6G6SFtcEZzkj88akTJGmqsmhh7zFsiNvlJcilE3ARu096tW1K+K7icc5YM949QEESEcE6rrwo+zhH34xGxok+Tfsx6Ye7j1uNr4WZsRzzUA4Kaov5L2RhHuMo+O9iC90MHgYotRCa/IjC3z6IAdfzA81+vAOZHpcPDCeWx7DC81va6feeBbjIlMnvB33pbvsQnGQe256J8VKxA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ohB+IxDjBSxZwH+rtV1DyBSYoSIL7r860l4RhOwawwm37JCRw+gyZsgBlApyHOm98rqIso3vUwUchHdlAuwgVBzA4Qa08jaRAOQq7HpHu99omEWv/oQ4bsFv0Pib3kyoPWkkk33ID49jnk5GjtiUggr7FYQ6uGI5Ucqii1vLgQ8o19Q1GXLG4iLCMEBiGQ20NIJUZIQwIik7UZlOSe3RUW6u8WjK+zP4F47vsBft9s9ujSiVZoTTj6gBaQGH9aruzS84lFvUI7twHikxZ+19gf0WSEHG5SPhas8b0gMet0dKRi86VobaHCqTyfrBxrWh1cjHswFOdT5thiNFJjNwjQ==
  • Authentication-results: epam.com; dkim=none (message not signed) header.d=none;epam.com; dmarc=none action=none header.from=suse.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, bertrand.marquis@xxxxxxx, Andre.Przywara@xxxxxxx, Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Thu, 30 Sep 2021 07:48:25 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 29.09.2021 18:41, Stefano Stabellini wrote:
> On Tue, 28 Sep 2021, Rahul Singh wrote:
>> --- /dev/null
>> +++ b/xen/arch/arm/pci/pci-host-zynqmp.c
>> @@ -0,0 +1,63 @@
>> +/*
>> + * Based on Linux drivers/pci/controller/pci-host-common.c
>> + * Based on Linux drivers/pci/controller/pci-host-generic.c
>> + * Based on xen/arch/arm/pci/pci-host-generic.c
>> + *
>> + * This program is free software; you can redistribute it and/or modify
>> + * it under the terms of the GNU General Public License version 2 as
>> + * published by the Free Software Foundation.
>> + *
>> + * This program is distributed in the hope that it will be useful,
>> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
>> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>> + * GNU General Public License for more details.
>> + *
>> + * You should have received a copy of the GNU General Public License
>> + * along with this program.  If not, see <http://www.gnu.org/licenses/>.
>> + */
>> +
>> +#include <asm/device.h>
>> +#include <xen/pci.h>
>> +#include <asm/pci.h>
>> +
>> +static int nwl_cfg_reg_index(struct dt_device_node *np)
>> +{
>> +    return dt_property_match_string(np, "reg-names", "cfg");
>> +}
> 
> Can this be __init?
> 
> 
>> +/* ECAM ops */
>> +const struct pci_ecam_ops nwl_pcie_ops = {
>> +    .bus_shift  = 20,
>> +    .cfg_reg_index = nwl_cfg_reg_index,
>> +    .pci_ops    = {
>> +        .map_bus                = pci_ecam_map_bus,
>> +        .read                   = pci_generic_config_read,
>> +        .write                  = pci_generic_config_write,
>> +    }
>> +};
>> +
>> +static const struct dt_device_match nwl_pcie_dt_match[] = {
> 
> This should probably be __initconst

__initconstrel again as it seems.

Jan




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.