[Skiboot] [RFC 06/12] npu2-opencapi: Simplify freset states

Andrew Donnellan ajd at linux.ibm.com
Fri Jun 21 10:27:26 AEST 2019


On 19/6/19 10:45 pm, Frederic Barrat wrote:
> Let's get rid of one transitional state, since there's no need to
> pause in between releasing the reset signals of the ODL and the
> adapter.
> 
> Signed-off-by: Frederic Barrat <fbarrat at linux.ibm.com>
> -		/*
> -		 * Minimal delay before taking adapter out of
> -		 * reset. Could be useless, but doesn't hurt
> -		 */
> -		return pci_slot_set_sm_timeout(slot, msecs_to_tb(1));
> -

So it turns out this is indeed useless?

Reviewed-by: Andrew Donnellan <ajd at linux.ibm.com>

> -	case OCAPI_SLOT_FRESET_DEASSERT_DELAY:
>   		deassert_adapter_reset(dev);
>   		pci_slot_set_state(slot,
> -				OCAPI_SLOT_FRESET_DEASSERT_DELAY2);
> +				OCAPI_SLOT_FRESET_DEASSERT_DELAY);
>   		/* give 250ms to device to be ready */
>   		return pci_slot_set_sm_timeout(slot, msecs_to_tb(250));
>   
> -	case OCAPI_SLOT_FRESET_DEASSERT_DELAY2:
> +	case OCAPI_SLOT_FRESET_DEASSERT_DELAY:
>   		unfence_brick(dev);
>   		set_init_pattern(chip_id, dev);
>   		pci_slot_set_state(slot,
> 

-- 
Andrew Donnellan              OzLabs, ADL Canberra
ajd at linux.ibm.com             IBM Australia Limited



More information about the Skiboot mailing list