Re: [PATCH v2 04/13] lpfc: Add push-to-adapter support to sli4

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

 



> +	if ((if_type == LPFC_SLI_INTF_IF_TYPE_6) &&
> +	    (pci_resource_start(pdev, PCI_64BIT_BAR4))) {

The above contains a lot of unneeded parenthesis.

[...]

> +			/* Enable combined writes for DPP aperture */
> +			pg_addr = (unsigned long)(wq->dpp_regaddr) & PAGE_MASK;
> +#ifdef CONFIG_X86
> +			rc = set_memory_wc(pg_addr, 1);
> +			if (rc) {
> +				lpfc_printf_log(phba, KERN_ERR, LOG_INIT,
> +						"3272 Cannot setup Combined "
> +						"Write on WQ[%d] - disable DPP\n",
> +						wq->queue_id);
> +				phba->cfg_enable_dpp = 0;
> +			}
> +#else
> +			phba->cfg_enable_dpp = 0;
> +#endif
> +		} else
> +			wq->db_regaddr = phba->sli4_hba.WQDBregaddr;

I don't really like the set_memory_wc() call here. Neither do I like the ifdef
CONFIG_X86 special casing.

If you really need write combining, can't you at least use ioremap_wc()?

Thanks,
	Johannes

-- 
Johannes Thumshirn                                          Storage
jthumshirn@xxxxxxx                                +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux