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-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20161024.134645.2216722602983259081.davem@davemloft.net>
Date:   Mon, 24 Oct 2016 13:46:45 -0400 (EDT)
From:   David Miller <davem@...emloft.net>
To:     tushar.n.dave@...cle.com
Cc:     chris.hyser@...cle.com, sowmini.varadhan@...cle.com,
        vgupta@...opsys.com, robin.murphy@....com, jroedel@...e.de,
        egtvedt@...fundet.no, krzk@...nel.org, rkuo@...eaurora.org,
        sparclinux@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/6] sparc64: Add ATU (new IOMMU) support

From: Tushar Dave <tushar.n.dave@...cle.com>
Date: Mon, 10 Oct 2016 11:12:03 -0700

> +	/* calculate size of IOTSB */
> +	table_size = (atu->size / IO_PAGE_SIZE) * 8;
> +	table = kzalloc(table_size, GFP_KERNEL);
> +	if (!table) {
> +		err = -ENOMEM;
> +		goto table_failed;
> +	}
> +	table = (void *)IO_PAGE_ALIGN((u64)table);

If you use the page allocator directly you can avoid all of these
funny alignment calculations.

> @@ -931,8 +1046,10 @@ static int pci_sun4v_probe(struct platform_device *op)
>  	struct pci_pbm_info *pbm;
>  	struct device_node *dp;
>  	struct iommu *iommu;
> +	struct atu *atu;
>  	u32 devhandle;
>  	int i, err = -ENODEV;
> +	static bool hv_atu = 1;

Please use true/false with boolean variables.

> +			hv_atu = 0;

Likewise.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ