RE: [PATCH v4] platform:x86: add Intel P-Unit mailbox IPC driver

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

 



>>> +	ipcdev.base[BIOS_MAILBOX] = addr;
>>> +	addr += MAILBOX_REGISTER_SPACE;
>>> +	ipcdev.base[GTDRIVER_MAILBOX] = addr;
>>> +	addr += MAILBOX_REGISTER_SPACE;
>>> +	ipcdev.base[ISPDRIVER_MAILBOX] = addr;

>>Looks akward, does the platform have the several resources for different purpose? Why do you unify them (who does guarantee the non-breakable segment for all resources?) first and then split up?
>>Please, refactor.

>From spec, these three parts are consecutive, so only define one acpi resource entry is reasonable way,
>But BIOS maintainer finally make the resource like this due to request from Window os driver,
>So can't treat these three as three separate parts.

 Andriy, Darren:  this is my before feedback, and
a) Punit function is configured as ACPI device in BIOS, not PCI device(seems can't configure as PCI).
b) To make it compatible(same acpi entry) for WOS, BIOS define Punit mem resource as res0,  so this driver is coding as this.
     So this driver is depend on acpi entry in BIOS to get device resource like all acpi device drivers.
     In future, I don't think BIOS will change current defined resource for Punit function.
 


--
To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux